armtek-uikit-react 1.0.120 → 1.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Accordion.scss +24 -24
- package/assets/Adornment.scss +5 -5
- package/assets/Alert.scss +8 -11
- package/assets/Avatar.scss +29 -27
- package/assets/AvatarGroup.scss +10 -12
- package/assets/BackDrop.scss +3 -4
- package/assets/Badge.scss +12 -14
- package/assets/Button.scss +110 -109
- package/assets/ButtonGroup.scss +3 -4
- package/assets/ButtonIcon.scss +19 -18
- package/assets/Card.scss +1 -2
- package/assets/Checkbox.scss +45 -46
- package/assets/Chip.scss +54 -55
- package/assets/Dropdown.scss +1 -2
- package/assets/FormControls.scss +3 -4
- package/assets/HelperText.scss +4 -5
- package/assets/Icon.scss +19 -19
- package/assets/Interval.scss +5 -6
- package/assets/Link.scss +16 -16
- package/assets/ListItem.scss +12 -12
- package/assets/Loader.scss +9 -9
- package/assets/Logo.scss +7 -7
- package/assets/Modal.scss +7 -7
- package/assets/Paper.scss +5 -5
- package/assets/Period.scss +2 -4
- package/assets/Rating.scss +5 -6
- package/assets/Select.scss +16 -16
- package/assets/Skeleton.scss +2 -2
- package/assets/Slider.scss +1 -1
- package/assets/Stack.scss +9 -10
- package/assets/Status.scss +11 -12
- package/assets/StepItem.scss +21 -22
- package/assets/StepItemIcon.scss +8 -9
- package/assets/Stepper.scss +6 -9
- package/assets/Switch.scss +9 -10
- package/assets/Table.scss +13 -15
- package/assets/TextArea.scss +7 -7
- package/assets/TextField.scss +56 -57
- package/assets/Tooltip.scss +2 -3
- package/assets/styles.min.css +1 -0
- package/assets/styles.min.css.map +1 -0
- package/assets/styles.scss +26 -15
- package/lib/const/styles.d.ts +1 -1
- package/lib/const/styles.js +1 -1
- package/lib/helpers/getColorClasses.d.ts +1 -0
- package/lib/helpers/getColorClasses.js +11 -0
- package/lib/helpers/getSizeClasses.d.ts +1 -0
- package/lib/helpers/getSizeClasses.js +8 -0
- package/lib/helpers/getVariantClasses.d.ts +1 -0
- package/lib/helpers/getVariantClasses.js +8 -0
- package/lib/helpers/helpers.d.ts +17 -2
- package/lib/helpers/helpers.js +28 -11
- package/package.json +1 -1
- package/ui/Accordion/Accordion.classes.d.ts +2 -0
- package/ui/Accordion/Accordion.classes.js +29 -0
- package/ui/Accordion/Accordion.d.ts +1 -1
- package/ui/Accordion/Accordion.js +16 -14
- package/ui/Adornment/Adornment.js +5 -6
- package/ui/Alert/Alert.js +5 -6
- package/ui/Avatar/Avatar.js +11 -16
- package/ui/AvatarGroup/AvatarGroup.js +3 -8
- package/ui/BackDrop/BackDropBase.js +3 -4
- package/ui/Badge/Badge.js +6 -11
- package/ui/Button/Button.js +9 -10
- package/ui/ButtonGroup/ButtonGroup.js +1 -6
- package/ui/ButtonIcon/ButtonIcon.js +2 -7
- package/ui/Card/Card.d.ts +1 -1
- package/ui/Card/Card.js +1 -6
- package/ui/Chip/Chip.js +8 -13
- package/ui/Dropdown/Dropdown.js +6 -7
- package/ui/Form/Checkbox/Checkbox.js +11 -16
- package/ui/Form/FormControls/FormControls.js +5 -6
- package/ui/Form/Interval/Interval.js +5 -10
- package/ui/Form/Interval/IntervalSlide.js +1 -6
- package/ui/Form/Period/Period.js +2 -7
- package/ui/Form/Radio/Radio.js +1 -6
- package/ui/Form/Rating/Rating.js +3 -8
- package/ui/Form/Select/Select.js +6 -11
- package/ui/Form/Select/SelectSummary.js +12 -13
- package/ui/Form/Switch/Switch.js +3 -8
- package/ui/Form/TextArea/TextArea.js +2 -7
- package/ui/Form/TextField/TextField.js +19 -24
- package/ui/HelperText/HelperText.js +2 -7
- package/ui/Icon/Icon.js +5 -6
- package/ui/Link/Link.js +7 -8
- package/ui/List/ListItem.js +11 -16
- package/ui/Loader/Loader.js +4 -9
- package/ui/Logo/Logo.js +5 -10
- package/ui/Modal/BaseModal.js +6 -7
- package/ui/Modal/Modal.js +1 -2
- package/ui/Paper/Paper.js +4 -5
- package/ui/Skeleton/Skeleton.js +2 -3
- package/ui/Slider/Slider.js +1 -6
- package/ui/Stack/Stack.js +3 -4
- package/ui/Status/Status.js +4 -9
- package/ui/Stepper/StepItem.js +10 -15
- package/ui/Stepper/StepItemIcon.js +7 -12
- package/ui/Stepper/Stepper.js +3 -8
- package/ui/Table/TableBase.js +1 -2
- package/ui/Table/TableCell.js +6 -7
- package/ui/Table/TableRow.js +2 -3
- package/ui/Tooltip/Tooltip.js +1 -6
- package/ui/Accordion/Accordion.module.scss +0 -1
- package/ui/Adornment/Adornment.module.scss +0 -1
- package/ui/Alert/Alert.module.scss +0 -1
- package/ui/Avatar/Avatar.module.scss +0 -1
- package/ui/AvatarGroup/AvatarGroup.module.scss +0 -1
- package/ui/BackDrop/BackDrop.module.scss +0 -1
- package/ui/Badge/Badge.module.scss +0 -1
- package/ui/Button/Button.module.scss +0 -1
- package/ui/ButtonGroup/ButtonGroup.module.scss +0 -2
- package/ui/ButtonIcon/ButtonIcon.module.scss +0 -1
- package/ui/Card/Card.module.scss +0 -1
- package/ui/Chip/Chip.module.scss +0 -1
- package/ui/Dropdown/Dropdown.module.scss +0 -1
- package/ui/Form/Checkbox/Checkbox.module.scss +0 -1
- package/ui/Form/DateField/DateField.module.scss +0 -1
- package/ui/Form/DatePicker/DatePicker.module.scss +0 -1
- package/ui/Form/FormControls/FormControls.module.scss +0 -1
- package/ui/Form/Interval/Interval.module.scss +0 -1
- package/ui/Form/Period/Period.module.scss +0 -2
- package/ui/Form/Radio/Radio.module.scss +0 -1
- package/ui/Form/Rating/Rating.module.scss +0 -1
- package/ui/Form/Select/Select.module.scss +0 -1
- package/ui/Form/Switch/Switch.module.scss +0 -1
- package/ui/Form/TextArea/TextArea.module.scss +0 -1
- package/ui/Form/TextField/TextField.module.scss +0 -2
- package/ui/HelperText/HelperText.module.scss +0 -1
- package/ui/Icon/Icon.module.scss +0 -1
- package/ui/Link/Link.module.scss +0 -1
- package/ui/List/ListItem.module.scss +0 -1
- package/ui/Loader/Loader.module.scss +0 -1
- package/ui/Logo/Logo.module.scss +0 -1
- package/ui/Modal/Modal.module.scss +0 -1
- package/ui/Paper/Paper.module.scss +0 -1
- package/ui/Skeleton/Skeleton.module.scss +0 -1
- package/ui/Slider/Slider.module.scss +0 -1
- package/ui/Stack/Stack.module.scss +0 -1
- package/ui/Status/Status.module.scss +0 -1
- package/ui/Stepper/StepItem.module.scss +0 -1
- package/ui/Stepper/StepItemIcon.module.scss +0 -1
- package/ui/Stepper/Stepper.module.scss +0 -1
- package/ui/Table/Table.module.scss +0 -1
- package/ui/Tooltip/Tooltip.module.scss +0 -1
- /package/assets/{global.css → global.scss} +0 -0
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { Children, cloneElement, isValidElement } from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import css from "./ButtonGroup.module.scss";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
const ButtonGroupClasses = ['button_group', 'button_group_inline', 'button_group_column'];
|
|
7
|
-
|
|
8
|
-
// const css = getCssPrefix(ButtonGroupClasses)
|
|
9
|
-
|
|
10
5
|
const ButtonGroup = props => {
|
|
11
6
|
let {
|
|
12
7
|
orientation = 'inline',
|
|
@@ -17,7 +12,7 @@ const ButtonGroup = props => {
|
|
|
17
12
|
let arrChildren = Children.toArray(children);
|
|
18
13
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
19
14
|
children: /*#__PURE__*/_jsx("div", {
|
|
20
|
-
className: clsx(
|
|
15
|
+
className: clsx('arm-button-group', ['arm-button-group_' + orientation], className),
|
|
21
16
|
children: arrChildren.map((item, index) => {
|
|
22
17
|
return /*#__PURE__*/isValidElement(item) && /*#__PURE__*/cloneElement(item, {
|
|
23
18
|
...item.props,
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import Button from "../Button/Button";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import css from "./ButtonIcon.module.scss";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
const ButtonIconClasses = ['button_icon'];
|
|
7
|
-
|
|
8
|
-
// const css = getCssPrefix(ButtonIconClasses)
|
|
9
|
-
|
|
10
5
|
function ButtonIcon(props) {
|
|
11
6
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
12
7
|
children: /*#__PURE__*/_jsx(Button, {
|
|
@@ -14,8 +9,8 @@ function ButtonIcon(props) {
|
|
|
14
9
|
variant: 'transparent',
|
|
15
10
|
...props,
|
|
16
11
|
asIcon: true,
|
|
17
|
-
className: clsx(
|
|
18
|
-
|
|
12
|
+
className: clsx('arm-button-icon', ['arm-button-icon_' + props.size], props.className, {
|
|
13
|
+
'arm-button-icon_square': props.radius === false,
|
|
19
14
|
'border-radius': props.radius === true
|
|
20
15
|
}),
|
|
21
16
|
children: props.children
|
package/ui/Card/Card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type CardProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
declare const Card: (props:
|
|
3
|
+
declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Card;
|
package/ui/Card/Card.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import css from "./Card.module.scss";
|
|
3
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
3
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
const CssClasses = ['card'];
|
|
6
|
-
|
|
7
|
-
// const css = getCssPrefix(CssClasses)
|
|
8
|
-
|
|
9
4
|
const Card = props => {
|
|
10
5
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
11
6
|
children: /*#__PURE__*/_jsx("div", {
|
|
12
7
|
...props,
|
|
13
|
-
className: clsx(
|
|
8
|
+
className: clsx('arm-card', props.className)
|
|
14
9
|
})
|
|
15
10
|
});
|
|
16
11
|
};
|
package/ui/Chip/Chip.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import css from "./Chip.module.scss";
|
|
3
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
3
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
const CssClasses = ['chip', 'chip__inner', 'chip__icon', 'chip__close', 'chip__close_primary', 'chip__close_secondary', 'chip_small', 'chip__icon_small', 'chip__close_small', 'chip_outlined', 'chip_secondary', 'chip_primary'];
|
|
7
|
-
|
|
8
|
-
// const css = getCssPrefix(CssClasses)
|
|
9
|
-
|
|
10
5
|
function Chip(props) {
|
|
11
6
|
let {
|
|
12
7
|
size,
|
|
@@ -24,21 +19,21 @@ function Chip(props) {
|
|
|
24
19
|
let Component = as || 'span';
|
|
25
20
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
26
21
|
children: /*#__PURE__*/_jsx(Component, {
|
|
27
|
-
className: clsx('
|
|
28
|
-
|
|
29
|
-
},
|
|
22
|
+
className: clsx('arm-chip', className, {
|
|
23
|
+
'arm-chip_disabled': !!disabled
|
|
24
|
+
}, ['arm-chip_' + size], ['arm-chip_' + variant], ['arm-chip_' + color], ['arm-chip_' + shape]),
|
|
30
25
|
children: /*#__PURE__*/_jsxs("span", {
|
|
31
|
-
className:
|
|
26
|
+
className: 'arm-chip__inner',
|
|
32
27
|
children: [icon && /*#__PURE__*/_jsx("span", {
|
|
33
|
-
className: clsx('material_icon',
|
|
28
|
+
className: clsx('material_icon', 'arm-chip__icon', ['arm-chip__icon_' + size]),
|
|
34
29
|
children: icon
|
|
35
30
|
}), /*#__PURE__*/_jsx("span", {
|
|
36
|
-
className:
|
|
31
|
+
className: 'arm-chip__text',
|
|
37
32
|
children: text || children
|
|
38
33
|
}), onClose && /*#__PURE__*/_jsx("span", {
|
|
39
34
|
className: clsx('material_icon_solid', {
|
|
40
|
-
|
|
41
|
-
},
|
|
35
|
+
'arm-chip__close_disabled': !!disabled
|
|
36
|
+
}, ['arm-chip__close_' + size], ['arm-chip__close_' + color], 'arm-chip__close'),
|
|
42
37
|
onClick: onClose,
|
|
43
38
|
children: /*#__PURE__*/_jsx("span", {
|
|
44
39
|
className: 'material_icon',
|
package/ui/Dropdown/Dropdown.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { CSSTransition } from 'react-transition-group';
|
|
6
|
-
import css from "./Dropdown.module.scss";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
8
|
function Dropdown(props) {
|
|
@@ -24,17 +23,17 @@ function Dropdown(props) {
|
|
|
24
23
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
25
24
|
children: /*#__PURE__*/_jsx("div", {
|
|
26
25
|
...divProps,
|
|
27
|
-
className: clsx('
|
|
26
|
+
className: clsx('arm-dropdown', className),
|
|
28
27
|
children: /*#__PURE__*/_jsx("div", {
|
|
29
28
|
className: clsx({
|
|
30
29
|
// [css.Dropdown__ContentWrapper_hidden]: !expanded
|
|
31
30
|
}),
|
|
32
31
|
children: /*#__PURE__*/_jsx(CSSTransition, {
|
|
33
32
|
classNames: {
|
|
34
|
-
'enter':
|
|
35
|
-
'enterActive':
|
|
36
|
-
'exit':
|
|
37
|
-
'exitActive':
|
|
33
|
+
'enter': 'arm-dropdown__ContentWrapperEnter',
|
|
34
|
+
'enterActive': 'arm-dropdown__ContentWrapperEnterActive',
|
|
35
|
+
'exit': 'arm-dropdown__ContentWrapperExit',
|
|
36
|
+
'exitActive': 'arm-dropdown__ContentWrapperExitActive'
|
|
38
37
|
},
|
|
39
38
|
in: expanded,
|
|
40
39
|
timeout: duration,
|
|
@@ -43,7 +42,7 @@ function Dropdown(props) {
|
|
|
43
42
|
children: /*#__PURE__*/_jsx("div", {
|
|
44
43
|
ref: nodeRef,
|
|
45
44
|
children: /*#__PURE__*/_jsx("div", {
|
|
46
|
-
className:
|
|
45
|
+
className: 'arm-dropdown__Content',
|
|
47
46
|
children: children
|
|
48
47
|
})
|
|
49
48
|
})
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { isValidElement, useRef, useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import css from "./Checkbox.module.scss";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
-
const CssClasses = ['checkbox', 'checkbox__input', 'checkbox__label', 'checkbox__text', 'checkbox_disabled', 'checkbox_medium', 'checkbox_small', 'checkbox__label_intermediate', 'checkbox__label_checked', 'checkbox__label_disabled', 'checkbox_contained', 'checkbox_outlined', 'checkbox_primary', 'checkbox_secondary', 'checkbox_neutral', 'checkbox_success', 'checkbox_error', 'checkbox_warning', 'radio'];
|
|
10
|
-
|
|
11
|
-
// const css = getCssPrefix(CssClasses)
|
|
12
|
-
|
|
13
8
|
const Checkbox = props => {
|
|
14
9
|
let {
|
|
15
10
|
label,
|
|
@@ -29,20 +24,20 @@ const Checkbox = props => {
|
|
|
29
24
|
};
|
|
30
25
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
31
26
|
children: /*#__PURE__*/_jsxs("div", {
|
|
32
|
-
className: clsx(
|
|
33
|
-
|
|
27
|
+
className: clsx('arm-checkbox', className, {
|
|
28
|
+
'arm-checkbox_text': ! /*#__PURE__*/isValidElement(label)
|
|
34
29
|
}),
|
|
35
30
|
children: [/*#__PURE__*/_jsx("label", {
|
|
36
31
|
ref: labelRef,
|
|
37
|
-
className: clsx(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
className: clsx('arm-checkbox__label', ['arm-checkbox_' + size], ['arm-checkbox_' + variant], ['arm-checkbox_' + color], {
|
|
33
|
+
'arm-checkbox__label_checked': inputProps.checked !== undefined ? inputProps.checked : checked,
|
|
34
|
+
'arm-checkbox__label_intermediate': !!intermediate,
|
|
35
|
+
'arm-checkbox__label_disabled': !!inputProps.disabled
|
|
41
36
|
}),
|
|
42
37
|
children: /*#__PURE__*/_jsx("input", {
|
|
43
38
|
...inputProps,
|
|
44
|
-
className: clsx(
|
|
45
|
-
'
|
|
39
|
+
className: clsx('arm-checkbox__input', {
|
|
40
|
+
'arm-checkbox__input_checked': !!inputProps.checked
|
|
46
41
|
}),
|
|
47
42
|
onChange: handleChange,
|
|
48
43
|
type: props.type || 'checkbox'
|
|
@@ -52,9 +47,9 @@ const Checkbox = props => {
|
|
|
52
47
|
var _labelRef$current;
|
|
53
48
|
return (_labelRef$current = labelRef.current) == null ? void 0 : _labelRef$current.click();
|
|
54
49
|
},
|
|
55
|
-
className: clsx(
|
|
56
|
-
|
|
57
|
-
[
|
|
50
|
+
className: clsx('arm-checkbox__text', {
|
|
51
|
+
'arm-checkbox__text_raw': ! /*#__PURE__*/isValidElement(label),
|
|
52
|
+
['arm-checkbox_text_size_' + size]: size
|
|
58
53
|
}),
|
|
59
54
|
children: label
|
|
60
55
|
})]
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import css from "./FormControls.module.scss";
|
|
3
2
|
import Button from "../../Button";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -17,25 +16,25 @@ const FormControls = props => {
|
|
|
17
16
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
18
17
|
children: /*#__PURE__*/_jsxs("div", {
|
|
19
18
|
...divProps,
|
|
20
|
-
className: clsx(className, '
|
|
19
|
+
className: clsx(className, 'arm-form-controls'),
|
|
21
20
|
children: [/*#__PURE__*/_jsx("div", {
|
|
22
|
-
className:
|
|
21
|
+
className: 'arm-form-controls__button',
|
|
23
22
|
children: /*#__PURE__*/_jsx(Button, {
|
|
24
23
|
variant: 'contained',
|
|
25
24
|
color: 'primary',
|
|
26
25
|
onClick: onSubmit,
|
|
27
26
|
...submitProps,
|
|
28
|
-
className: clsx('
|
|
27
|
+
className: clsx('arm-form-controls__btn', classes == null ? void 0 : classes.submitBtn),
|
|
29
28
|
children: submitProps == null ? void 0 : submitProps.text
|
|
30
29
|
})
|
|
31
30
|
}), onCancel && /*#__PURE__*/_jsx("div", {
|
|
32
|
-
className:
|
|
31
|
+
className: 'arm-form-controls__button',
|
|
33
32
|
children: /*#__PURE__*/_jsx(Button, {
|
|
34
33
|
variant: 'outlined',
|
|
35
34
|
color: 'primary',
|
|
36
35
|
onClick: onCancel,
|
|
37
36
|
...cancelProps,
|
|
38
|
-
className: clsx('
|
|
37
|
+
className: clsx('arm-form-controls__btn', classes == null ? void 0 : classes.cancelBtn),
|
|
39
38
|
children: cancelProps == null ? void 0 : cancelProps.text
|
|
40
39
|
})
|
|
41
40
|
})]
|
|
@@ -3,14 +3,9 @@
|
|
|
3
3
|
import { forwardRef, useState } from 'react';
|
|
4
4
|
import { TextFieldContainer, TextFieldInput } from "../TextField/TextField";
|
|
5
5
|
import HelperText from "../../HelperText/HelperText";
|
|
6
|
-
import css from "./Interval.module.scss";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
const CssClasses = ['interval', 'interval__end', 'interval__item', 'interval__helperText', 'intervalslide__slider'];
|
|
11
|
-
|
|
12
|
-
// const css = getCssPrefix(CssClasses)
|
|
13
|
-
|
|
14
9
|
const Interval = /*#__PURE__*/forwardRef((props, ref) => {
|
|
15
10
|
let {
|
|
16
11
|
value,
|
|
@@ -61,9 +56,9 @@ const Interval = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
61
56
|
size: inputProps.size,
|
|
62
57
|
variant: inputProps.variant,
|
|
63
58
|
children: /*#__PURE__*/_jsxs("div", {
|
|
64
|
-
className:
|
|
59
|
+
className: 'arm-interval',
|
|
65
60
|
children: [/*#__PURE__*/_jsx("div", {
|
|
66
|
-
className:
|
|
61
|
+
className: 'arm-interval__item',
|
|
67
62
|
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
68
63
|
...inputProps,
|
|
69
64
|
value: realMin,
|
|
@@ -75,7 +70,7 @@ const Interval = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
75
70
|
onChange: handleMin
|
|
76
71
|
})
|
|
77
72
|
}), /*#__PURE__*/_jsx("div", {
|
|
78
|
-
className:
|
|
73
|
+
className: 'arm-interval__item',
|
|
79
74
|
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
80
75
|
...inputProps,
|
|
81
76
|
value: realMax,
|
|
@@ -83,14 +78,14 @@ const Interval = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
83
78
|
type: 'number',
|
|
84
79
|
onFocus: handleFocus,
|
|
85
80
|
onBlur: handleBlur,
|
|
86
|
-
className:
|
|
81
|
+
className: 'arm-interval__end',
|
|
87
82
|
focused: true,
|
|
88
83
|
onChange: handleMax
|
|
89
84
|
})
|
|
90
85
|
})]
|
|
91
86
|
})
|
|
92
87
|
}), helperText && /*#__PURE__*/_jsx(HelperText, {
|
|
93
|
-
className:
|
|
88
|
+
className: 'arm-interval__helper',
|
|
94
89
|
error: error,
|
|
95
90
|
children: helperText
|
|
96
91
|
})]
|
|
@@ -3,14 +3,9 @@
|
|
|
3
3
|
import Interval from "./Interval";
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import Slider from "../../Slider/Slider";
|
|
6
|
-
import css from "./Interval.module.scss";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
const CssClasses = ['intervalslide__slider'];
|
|
11
|
-
|
|
12
|
-
// const css = getCssPrefix(CssClasses)
|
|
13
|
-
|
|
14
9
|
const IntervalSlide = props => {
|
|
15
10
|
let {
|
|
16
11
|
onChange,
|
|
@@ -31,7 +26,7 @@ const IntervalSlide = props => {
|
|
|
31
26
|
...restProps,
|
|
32
27
|
onChange: setValue
|
|
33
28
|
}), /*#__PURE__*/_jsx("div", {
|
|
34
|
-
className:
|
|
29
|
+
className: 'arm-intervalslide__slider',
|
|
35
30
|
children: /*#__PURE__*/_jsx(Slider, {
|
|
36
31
|
range: true,
|
|
37
32
|
min: props.min,
|
package/ui/Form/Period/Period.js
CHANGED
|
@@ -6,14 +6,9 @@ import ButtonIcon from "../../ButtonIcon";
|
|
|
6
6
|
import Card from "../../Card/Card";
|
|
7
7
|
import DatePicker from "../DatePicker/DatePicker";
|
|
8
8
|
import { DateService } from "../../../lib/services/DateService";
|
|
9
|
-
import css from "./Period.module.scss";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
const CssClasses = ['dateField', 'dateField__picker'];
|
|
14
|
-
|
|
15
|
-
// const css = getCssPrefix(CssClasses)
|
|
16
|
-
|
|
17
12
|
const Period = /*#__PURE__*/forwardRef((props, ref) => {
|
|
18
13
|
let {
|
|
19
14
|
onChange,
|
|
@@ -48,7 +43,7 @@ const Period = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
48
43
|
if (realValue[0] && realValue[1]) displayValue = `${DateService(realValue[0]).format('dd.MM.yyyy')} - ${DateService(realValue[1]).format('dd.MM.yyyy')}`;
|
|
49
44
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
50
45
|
children: /*#__PURE__*/_jsxs("div", {
|
|
51
|
-
className:
|
|
46
|
+
className: 'arm-period',
|
|
52
47
|
children: [/*#__PURE__*/_jsx(TextField, {
|
|
53
48
|
ref: ref,
|
|
54
49
|
placeholder: 'дд.мм.гггг - дд.мм.гггг',
|
|
@@ -67,7 +62,7 @@ const Period = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
67
62
|
})
|
|
68
63
|
})
|
|
69
64
|
}), active && /*#__PURE__*/_jsx(Card, {
|
|
70
|
-
className:
|
|
65
|
+
className: 'arm-period__picker',
|
|
71
66
|
children: /*#__PURE__*/_jsx(DatePicker, {
|
|
72
67
|
onChange: handleChange,
|
|
73
68
|
selectsRange: true,
|
package/ui/Form/Radio/Radio.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import Checkbox from "../Checkbox/Checkbox";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import css from "./Radio.module.scss";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
const CssClasses = ['radio'];
|
|
7
|
-
|
|
8
|
-
// const css = getCssPrefix(CssClasses)
|
|
9
|
-
|
|
10
5
|
const Radio = props => {
|
|
11
6
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
12
7
|
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
13
8
|
...props,
|
|
14
|
-
className: clsx(props.className,
|
|
9
|
+
className: clsx(props.className, 'arm-radio'),
|
|
15
10
|
type: 'radio'
|
|
16
11
|
})
|
|
17
12
|
});
|
package/ui/Form/Rating/Rating.js
CHANGED
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import css from "./Rating.module.scss";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
-
const CssClasses = ['rating', 'rating__item', 'rating_medium', 'rating_small', 'rating__item_disabled'];
|
|
10
|
-
|
|
11
|
-
// const css = getCssPrefix(CssClasses)
|
|
12
|
-
|
|
13
8
|
const Rating = props => {
|
|
14
9
|
let {
|
|
15
10
|
size = 'large',
|
|
@@ -31,7 +26,7 @@ const Rating = props => {
|
|
|
31
26
|
};
|
|
32
27
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
33
28
|
children: /*#__PURE__*/_jsxs("div", {
|
|
34
|
-
className:
|
|
29
|
+
className: 'arm-rating',
|
|
35
30
|
onMouseLeave: handleLeaveRating,
|
|
36
31
|
children: [/*#__PURE__*/_jsx("input", {
|
|
37
32
|
value: value,
|
|
@@ -43,8 +38,8 @@ const Rating = props => {
|
|
|
43
38
|
onMouseEnter: handleMouseEnter(index + 1),
|
|
44
39
|
className: clsx('material_icon', {
|
|
45
40
|
['material_icon_solid']: index + 1 <= hovered || index + 1 <= realValue,
|
|
46
|
-
|
|
47
|
-
},
|
|
41
|
+
'arm-rating__item_disabled': !!restProps.disabled
|
|
42
|
+
}, 'arm-rating__item', ['arm-rating__item_' + size]),
|
|
48
43
|
children: "star"
|
|
49
44
|
}, index);
|
|
50
45
|
})]
|
package/ui/Form/Select/Select.js
CHANGED
|
@@ -5,7 +5,6 @@ import { forwardRef, useRef, useState } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import ListItem from "../../List/ListItem";
|
|
7
7
|
import useClickOutside from "../../../lib/hooks/useClickOutside";
|
|
8
|
-
import css from "./Select.module.scss";
|
|
9
8
|
import ButtonIcon from "../../ButtonIcon";
|
|
10
9
|
import Adornment from "../../Adornment";
|
|
11
10
|
import { SelectSummary, SelectSummaryChips } from "./SelectSummary";
|
|
@@ -13,10 +12,6 @@ import Popover from "../../Popover";
|
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
const CssClasses = ['select', 'select__input_wrapper', 'select__input', 'options', 'options_inline'];
|
|
17
|
-
|
|
18
|
-
// const css = getCssPrefix(CssClasses)
|
|
19
|
-
|
|
20
15
|
export const getOptionValue = option => option.value || option.text;
|
|
21
16
|
|
|
22
17
|
// let selectEl!: HTMLSelectElement
|
|
@@ -126,9 +121,9 @@ function Select(props) {
|
|
|
126
121
|
children: /*#__PURE__*/_jsxs("div", {
|
|
127
122
|
className: className,
|
|
128
123
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
129
|
-
className:
|
|
124
|
+
className: 'arm-select',
|
|
130
125
|
children: [/*#__PURE__*/_jsx("div", {
|
|
131
|
-
className:
|
|
126
|
+
className: 'arm-select__input_wrapper',
|
|
132
127
|
onClick: handleOpen,
|
|
133
128
|
ref: anchorEl,
|
|
134
129
|
children: /*#__PURE__*/_jsx(TextField, {
|
|
@@ -138,7 +133,7 @@ function Select(props) {
|
|
|
138
133
|
onFocus: handleFocus,
|
|
139
134
|
onBlur: handleBlur,
|
|
140
135
|
value: !search ? selectedText : q,
|
|
141
|
-
className: clsx(
|
|
136
|
+
className: clsx('arm-select__input'),
|
|
142
137
|
endAdornment: selectEndAdornment,
|
|
143
138
|
style: {
|
|
144
139
|
pointerEvents: 'none'
|
|
@@ -200,8 +195,8 @@ const SelectOptions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
200
195
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
201
196
|
children: /*#__PURE__*/_jsxs("div", {
|
|
202
197
|
ref: ref,
|
|
203
|
-
className: clsx(
|
|
204
|
-
|
|
198
|
+
className: clsx('arm-options', {
|
|
199
|
+
'arm-options_inline': !!inline
|
|
205
200
|
}),
|
|
206
201
|
children: [options.map((item, index) => {
|
|
207
202
|
let optValue = getOptionValue(item);
|
|
@@ -215,7 +210,7 @@ const SelectOptions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
215
210
|
children: item.text
|
|
216
211
|
}, index);
|
|
217
212
|
}), listStyle === 'checkbox' && !!multiple && /*#__PURE__*/_jsx("div", {
|
|
218
|
-
className:
|
|
213
|
+
className: 'arm-selectSummary__wrapper',
|
|
219
214
|
children: /*#__PURE__*/_jsx(SelectSummary, {
|
|
220
215
|
options: options,
|
|
221
216
|
value: value,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Badge from "../../Badge";
|
|
2
2
|
import Button from "../../Button";
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import css from "./Select.module.scss";
|
|
5
4
|
import Chip from "../../Chip";
|
|
6
5
|
import { getOptionValue } from "./Select";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -26,19 +25,19 @@ export const SelectSummary = props => {
|
|
|
26
25
|
let resetAllDisabled = disabled || selectedOptions.length === 0;
|
|
27
26
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
28
27
|
children: /*#__PURE__*/_jsxs("div", {
|
|
29
|
-
className:
|
|
28
|
+
className: 'arm-selectSummary',
|
|
30
29
|
children: [selectedOptions.length > 0 && /*#__PURE__*/_jsx("div", {
|
|
31
|
-
className:
|
|
30
|
+
className: 'arm-selectSummary__options',
|
|
32
31
|
children: /*#__PURE__*/_jsx(SelectSummaryChips, {
|
|
33
32
|
options: selectedOptions,
|
|
34
33
|
onDelete: onClose,
|
|
35
34
|
disabled: disabled
|
|
36
35
|
})
|
|
37
36
|
}), /*#__PURE__*/_jsxs("div", {
|
|
38
|
-
className:
|
|
37
|
+
className: 'arm-selectSummary__row',
|
|
39
38
|
children: [!!onSelectAll && /*#__PURE__*/_jsx("div", {
|
|
40
|
-
className: clsx(
|
|
41
|
-
|
|
39
|
+
className: clsx('arm-selectSummary__check', {
|
|
40
|
+
'arm-selectSummary__check_disabled': selectAllDisabled
|
|
42
41
|
}),
|
|
43
42
|
children: /*#__PURE__*/_jsx(Badge, {
|
|
44
43
|
badgeText: options.length,
|
|
@@ -46,14 +45,14 @@ export const SelectSummary = props => {
|
|
|
46
45
|
color: 'info',
|
|
47
46
|
position: 'center-right',
|
|
48
47
|
children: /*#__PURE__*/_jsx("span", {
|
|
49
|
-
className:
|
|
48
|
+
className: 'arm-selectSummary__checkLabel',
|
|
50
49
|
onClick: onSelectAll,
|
|
51
50
|
children: label_check_all
|
|
52
51
|
})
|
|
53
52
|
})
|
|
54
53
|
}), !!onClearAll && /*#__PURE__*/_jsx("div", {
|
|
55
|
-
className: clsx(
|
|
56
|
-
|
|
54
|
+
className: clsx('arm-selectSummary__check', {
|
|
55
|
+
'arm-selectSummary__check_disabled': resetAllDisabled
|
|
57
56
|
}),
|
|
58
57
|
children: /*#__PURE__*/_jsx(Badge, {
|
|
59
58
|
badgeText: selectedOptions.length,
|
|
@@ -61,14 +60,14 @@ export const SelectSummary = props => {
|
|
|
61
60
|
color: 'info',
|
|
62
61
|
position: 'center-right',
|
|
63
62
|
children: /*#__PURE__*/_jsx("span", {
|
|
64
|
-
className:
|
|
63
|
+
className: 'arm-selectSummary__checkLabel',
|
|
65
64
|
onClick: onClearAll,
|
|
66
65
|
children: label_uncheck_all
|
|
67
66
|
})
|
|
68
67
|
})
|
|
69
68
|
}), !!onSubmit && /*#__PURE__*/_jsx("div", {
|
|
70
69
|
children: /*#__PURE__*/_jsx(Button, {
|
|
71
|
-
className:
|
|
70
|
+
className: 'arm-selectSummary__button',
|
|
72
71
|
disabled: disabled,
|
|
73
72
|
variant: 'transparent',
|
|
74
73
|
size: 'small',
|
|
@@ -90,11 +89,11 @@ export const SelectSummaryChips = props => {
|
|
|
90
89
|
} = props;
|
|
91
90
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
92
91
|
children: /*#__PURE__*/_jsx("div", {
|
|
93
|
-
className:
|
|
92
|
+
className: 'arm-selectSummary__optionList',
|
|
94
93
|
children: options.map(option => {
|
|
95
94
|
return /*#__PURE__*/_jsx(Chip, {
|
|
96
95
|
disabled: disabled,
|
|
97
|
-
className:
|
|
96
|
+
className: 'arm-selectSummary__option',
|
|
98
97
|
text: option.text,
|
|
99
98
|
onClose: e => onDelete(e, option)
|
|
100
99
|
}, getOptionValue(option));
|
package/ui/Form/Switch/Switch.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import css from "./Switch.module.scss";
|
|
3
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
3
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
const CssClasses = ['switch', 'switch__input', 'switch__slider', 'switch_small'];
|
|
7
|
-
|
|
8
|
-
// const css = getCssPrefix(CssClasses)
|
|
9
|
-
|
|
10
5
|
const Switch = props => {
|
|
11
6
|
let {
|
|
12
7
|
onChange,
|
|
@@ -15,13 +10,13 @@ const Switch = props => {
|
|
|
15
10
|
} = props;
|
|
16
11
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
17
12
|
children: /*#__PURE__*/_jsxs("label", {
|
|
18
|
-
className: clsx(
|
|
13
|
+
className: clsx('arm-switch', ['arm-switch_' + props.size]),
|
|
19
14
|
children: [/*#__PURE__*/_jsx("input", {
|
|
20
|
-
className:
|
|
15
|
+
className: 'arm-switch__input',
|
|
21
16
|
...restProps,
|
|
22
17
|
type: "checkbox"
|
|
23
18
|
}), /*#__PURE__*/_jsx("span", {
|
|
24
|
-
className:
|
|
19
|
+
className: 'arm-switch__slider'
|
|
25
20
|
})]
|
|
26
21
|
})
|
|
27
22
|
});
|
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
import TextField from "../TextField/TextField";
|
|
4
4
|
import { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import css from "./TextArea.module.scss";
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
-
const CssClasses = ['textarea', 'size_small'];
|
|
10
|
-
|
|
11
|
-
// const css = getCssPrefix(CssClasses)
|
|
12
|
-
|
|
13
8
|
const TextArea = props => {
|
|
14
9
|
var _textareaRef$current, _textareaRef$current2;
|
|
15
10
|
let {
|
|
@@ -33,11 +28,11 @@ const TextArea = props => {
|
|
|
33
28
|
ref: textareaRef,
|
|
34
29
|
value: value,
|
|
35
30
|
...restProps,
|
|
36
|
-
className: clsx(
|
|
31
|
+
className: clsx('arm-textarea', ['arm-textarea_size_' + restProps.size], className),
|
|
37
32
|
onChange: handleChange,
|
|
38
33
|
multiline: true,
|
|
39
34
|
classes: {
|
|
40
|
-
root:
|
|
35
|
+
root: 'arm-textarea__root'
|
|
41
36
|
},
|
|
42
37
|
style: {
|
|
43
38
|
height: textHeight + 'px'
|