armtek-uikit-react 1.0.153 → 1.0.155
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/index.js +1 -2
- package/lib/const/styles.js +1 -5
- package/lib/helpers/genericForwardRef.js +3 -7
- package/lib/helpers/getColorClasses.js +6 -10
- package/lib/helpers/getSizeClasses.js +5 -9
- package/lib/helpers/getVariantClasses.js +5 -9
- package/lib/helpers/helpers.js +10 -19
- package/lib/helpers/index.d.ts +1 -1
- package/lib/helpers/index.js +1 -9
- package/lib/hooks/useClickOutside.js +4 -8
- package/lib/hooks/useEnhancedEffect.js +3 -8
- package/lib/hooks/useEventCallback.js +4 -11
- package/lib/hooks/useLazyRef.js +4 -8
- package/lib/hooks/useTimeout.js +6 -12
- package/lib/services/DateService.js +2 -7
- package/package.json +1 -1
- package/types/theme.js +1 -3
- package/ui/Accordion/Accordion.classes.js +14 -19
- package/ui/Accordion/Accordion.js +35 -38
- package/ui/Accordion/index.d.ts +1 -1
- package/ui/Accordion/index.js +1 -16
- package/ui/Adornment/Adornment.js +11 -16
- package/ui/Adornment/index.js +2 -9
- package/ui/Alert/Alert.js +16 -20
- package/ui/Alert/index.d.ts +1 -1
- package/ui/Alert/index.js +1 -16
- package/ui/Avatar/Avatar.js +18 -22
- package/ui/Avatar/index.d.ts +1 -1
- package/ui/Avatar/index.js +1 -16
- package/ui/AvatarGroup/AvatarGroup.js +14 -18
- package/ui/AvatarGroup/index.d.ts +1 -1
- package/ui/AvatarGroup/index.js +1 -16
- package/ui/BackDrop/BackDrop.js +9 -13
- package/ui/BackDrop/BackDropBase.js +11 -15
- package/ui/BackDrop/index.d.ts +0 -1
- package/ui/BackDrop/index.js +1 -16
- package/ui/Badge/Badge.js +12 -16
- package/ui/Badge/index.d.ts +1 -2
- package/ui/Badge/index.js +1 -16
- package/ui/Button/Button.js +15 -19
- package/ui/Button/index.d.ts +1 -1
- package/ui/Button/index.js +1 -16
- package/ui/ButtonGroup/ButtonGroup.js +10 -15
- package/ui/ButtonGroup/index.d.ts +1 -1
- package/ui/ButtonGroup/index.js +2 -16
- package/ui/ButtonIcon/ButtonIcon.js +11 -16
- package/ui/ButtonIcon/index.d.ts +1 -1
- package/ui/ButtonIcon/index.js +1 -16
- package/ui/Card/Card.js +7 -12
- package/ui/Card/index.d.ts +1 -1
- package/ui/Card/index.js +1 -16
- package/ui/Chip/Chip.js +15 -19
- package/ui/Chip/index.d.ts +1 -1
- package/ui/Chip/index.js +1 -16
- package/ui/Dropdown/Dropdown.js +16 -20
- package/ui/Dropdown/index.d.ts +1 -1
- package/ui/Dropdown/index.js +1 -16
- package/ui/Form/Checkbox/Checkbox.js +19 -22
- package/ui/Form/Checkbox/index.d.ts +1 -1
- package/ui/Form/Checkbox/index.js +1 -16
- package/ui/Form/DateField/DateField.js +25 -28
- package/ui/Form/DateField/index.d.ts +1 -1
- package/ui/Form/DateField/index.js +1 -16
- package/ui/Form/DatePicker/DatePicker.js +13 -21
- package/ui/Form/DatePicker/index.d.ts +1 -1
- package/ui/Form/DatePicker/index.js +1 -16
- package/ui/Form/FormControls/FormControls.js +15 -19
- package/ui/Form/FormControls/index.d.ts +1 -1
- package/ui/Form/FormControls/index.js +1 -16
- package/ui/Form/Interval/Interval.js +20 -23
- package/ui/Form/Interval/IntervalSlide.js +13 -16
- package/ui/Form/Interval/index.d.ts +1 -1
- package/ui/Form/Interval/index.js +2 -20
- package/ui/Form/Password/Password.js +14 -17
- package/ui/Form/Password/index.d.ts +0 -1
- package/ui/Form/Password/index.js +1 -16
- package/ui/Form/Period/Period.js +21 -24
- package/ui/Form/Period/index.d.ts +1 -1
- package/ui/Form/Period/index.js +1 -16
- package/ui/Form/PeriodSelect/PeriodSelect.js +9 -13
- package/ui/Form/PeriodSelect/index.d.ts +0 -1
- package/ui/Form/PeriodSelect/index.js +1 -16
- package/ui/Form/Radio/Radio.js +8 -13
- package/ui/Form/Radio/index.d.ts +0 -1
- package/ui/Form/Radio/index.js +1 -16
- package/ui/Form/Rating/Rating.js +13 -16
- package/ui/Form/Rating/index.d.ts +0 -1
- package/ui/Form/Rating/index.js +1 -16
- package/ui/Form/Select/Select.js +49 -50
- package/ui/Form/Select/SelectOptionList.js +8 -13
- package/ui/Form/Select/SelectOptionsContainer.js +6 -11
- package/ui/Form/Select/SelectSummary.js +32 -37
- package/ui/Form/Select/index.d.ts +2 -2
- package/ui/Form/Select/index.js +3 -23
- package/ui/Form/Switch/Switch.js +10 -14
- package/ui/Form/Switch/index.d.ts +0 -1
- package/ui/Form/Switch/index.js +1 -16
- package/ui/Form/TextArea/TextArea.js +15 -19
- package/ui/Form/TextArea/index.d.ts +1 -1
- package/ui/Form/TextArea/index.js +1 -16
- package/ui/Form/TextField/TextField.js +34 -39
- package/ui/Form/TextField/index.d.ts +1 -1
- package/ui/Form/TextField/index.js +2 -11
- package/ui/Form/TimeField/TimeField.js +8 -13
- package/ui/Form/TimeField/index.d.ts +0 -1
- package/ui/Form/TimeField/index.js +1 -16
- package/ui/Form/TimePicker/TimePicker.js +8 -12
- package/ui/Form/TimePicker/index.d.ts +0 -1
- package/ui/Form/TimePicker/index.js +1 -16
- package/ui/HelperText/HelperText.js +7 -12
- package/ui/HelperText/index.d.ts +0 -1
- package/ui/HelperText/index.js +1 -16
- package/ui/Icon/Icon.js +9 -14
- package/ui/Icon/Mi.js +10 -15
- package/ui/Icon/Mis.js +7 -11
- package/ui/Icon/index.d.ts +1 -1
- package/ui/Icon/index.js +3 -22
- package/ui/Link/Link.js +7 -12
- package/ui/Link/index.d.ts +1 -1
- package/ui/Link/index.js +1 -16
- package/ui/List/ListItem.js +20 -26
- package/ui/List/index.d.ts +1 -1
- package/ui/List/index.js +1 -16
- package/ui/Loader/Loader.js +7 -12
- package/ui/Loader/index.d.ts +1 -1
- package/ui/Loader/index.js +1 -16
- package/ui/Logo/Logo.js +25 -29
- package/ui/Logo/index.d.ts +1 -1
- package/ui/Logo/index.js +1 -16
- package/ui/Modal/BaseModal.js +24 -28
- package/ui/Modal/Modal.js +8 -13
- package/ui/Modal/index.d.ts +1 -1
- package/ui/Modal/index.js +1 -16
- package/ui/Pagination/Pagination.js +36 -39
- package/ui/Pagination/index.d.ts +1 -1
- package/ui/Pagination/index.js +1 -16
- package/ui/Paper/Paper.js +7 -12
- package/ui/Paper/index.d.ts +1 -1
- package/ui/Paper/index.js +1 -16
- package/ui/Popover/Popover.js +11 -16
- package/ui/Popover/index.d.ts +1 -1
- package/ui/Popover/index.js +1 -16
- package/ui/Popper/Popper.js +8 -12
- package/ui/Popper/PopperBase.js +11 -14
- package/ui/Popper/index.d.ts +1 -1
- package/ui/Popper/index.js +2 -16
- package/ui/Skeleton/Skeleton.js +5 -11
- package/ui/Skeleton/index.d.ts +0 -1
- package/ui/Skeleton/index.js +1 -16
- package/ui/Slider/RcSlider.js +0 -1
- package/ui/Slider/Slider.js +15 -19
- package/ui/Slider/index.d.ts +1 -1
- package/ui/Slider/index.js +1 -16
- package/ui/Stack/Stack.js +12 -17
- package/ui/Stack/index.d.ts +1 -1
- package/ui/Stack/index.js +1 -16
- package/ui/Status/Status.js +11 -15
- package/ui/Status/index.d.ts +0 -1
- package/ui/Status/index.js +1 -16
- package/ui/Stepper/StepItem.js +18 -22
- package/ui/Stepper/StepItemIcon.js +11 -16
- package/ui/Stepper/Stepper.js +13 -17
- package/ui/Stepper/index.d.ts +1 -1
- package/ui/Stepper/index.js +1 -16
- package/ui/Table/Table.js +17 -19
- package/ui/Table/TableBase.js +6 -11
- package/ui/Table/TableCell.js +10 -15
- package/ui/Table/TableRow.js +8 -13
- package/ui/Table/index.js +3 -10
- package/ui/Tooltip/Tooltip.js +20 -23
- package/ui/Tooltip/index.d.ts +1 -1
- package/ui/Tooltip/index.js +1 -16
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _Button = _interopRequireDefault(require("../../Button"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import Button from "../../Button";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
6
|
const FormControls = props => {
|
|
10
7
|
const {
|
|
11
8
|
onSubmit,
|
|
@@ -16,33 +13,32 @@ const FormControls = props => {
|
|
|
16
13
|
classes,
|
|
17
14
|
...divProps
|
|
18
15
|
} = props;
|
|
19
|
-
return /*#__PURE__*/(
|
|
20
|
-
children: /*#__PURE__*/(
|
|
16
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
17
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
21
18
|
...divProps,
|
|
22
|
-
className: (
|
|
23
|
-
children: [onSubmit && /*#__PURE__*/(
|
|
19
|
+
className: clsx(className, 'arm-form-controls'),
|
|
20
|
+
children: [onSubmit && /*#__PURE__*/_jsx("div", {
|
|
24
21
|
className: 'arm-form-controls__button',
|
|
25
|
-
children: /*#__PURE__*/(
|
|
22
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
26
23
|
variant: 'contained',
|
|
27
24
|
color: 'primary',
|
|
28
25
|
onClick: onSubmit,
|
|
29
26
|
...submitProps,
|
|
30
|
-
className: (
|
|
27
|
+
className: clsx('arm-form-controls__btn', classes == null ? void 0 : classes.submitBtn),
|
|
31
28
|
children: submitProps == null ? void 0 : submitProps.text
|
|
32
29
|
})
|
|
33
|
-
}), onCancel && /*#__PURE__*/(
|
|
30
|
+
}), onCancel && /*#__PURE__*/_jsx("div", {
|
|
34
31
|
className: 'arm-form-controls__button',
|
|
35
|
-
children: /*#__PURE__*/(
|
|
32
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
36
33
|
variant: 'outlined',
|
|
37
34
|
color: 'primary',
|
|
38
35
|
onClick: onCancel,
|
|
39
36
|
...cancelProps,
|
|
40
|
-
className: (
|
|
37
|
+
className: clsx('arm-form-controls__btn', classes == null ? void 0 : classes.cancelBtn),
|
|
41
38
|
children: cancelProps == null ? void 0 : cancelProps.text
|
|
42
39
|
})
|
|
43
40
|
})]
|
|
44
41
|
})
|
|
45
42
|
});
|
|
46
43
|
};
|
|
47
|
-
|
|
48
|
-
module.exports = exports.default;
|
|
44
|
+
export default FormControls;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './FormControls';
|
|
2
|
-
export
|
|
2
|
+
export { type FormControlsProps } from './FormControls';
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _FormControls = _interopRequireWildcard(require("./FormControls"));
|
|
7
|
-
exports.default = _FormControls.default;
|
|
8
|
-
Object.keys(_FormControls).forEach(function (key) {
|
|
9
|
-
if (key === "default" || key === "__esModule") return;
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
11
|
-
if (key in exports && exports[key] === _FormControls[key]) return;
|
|
12
|
-
exports[key] = _FormControls[key];
|
|
13
|
-
});
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./FormControls";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
3
|
+
import { forwardRef, useState } from 'react';
|
|
4
|
+
import { TextFieldContainer, TextFieldInput } from "../TextField/TextField";
|
|
5
|
+
import HelperText from "../../HelperText/HelperText";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
const Interval = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12
10
|
let {
|
|
13
11
|
value,
|
|
14
12
|
defaultValue,
|
|
@@ -22,9 +20,9 @@ const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
22
20
|
max = 0,
|
|
23
21
|
...inputProps
|
|
24
22
|
} = props;
|
|
25
|
-
let [focused, setFocused] =
|
|
26
|
-
let [currentMin, setCurrentMin] =
|
|
27
|
-
let [currentMax, setCurrentMax] =
|
|
23
|
+
let [focused, setFocused] = useState(false);
|
|
24
|
+
let [currentMin, setCurrentMin] = useState(min);
|
|
25
|
+
let [currentMax, setCurrentMax] = useState(max);
|
|
28
26
|
const handleFocus = () => {
|
|
29
27
|
setFocused(true);
|
|
30
28
|
};
|
|
@@ -49,19 +47,19 @@ const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
49
47
|
realMin = value[0];
|
|
50
48
|
realMax = value[1];
|
|
51
49
|
}
|
|
52
|
-
return /*#__PURE__*/(
|
|
53
|
-
children: /*#__PURE__*/(
|
|
54
|
-
children: [/*#__PURE__*/(
|
|
50
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
51
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
52
|
+
children: [/*#__PURE__*/_jsx(TextFieldContainer, {
|
|
55
53
|
focused: focused,
|
|
56
54
|
error: error,
|
|
57
55
|
disabled: disabled,
|
|
58
56
|
size: inputProps.size,
|
|
59
57
|
variant: inputProps.variant,
|
|
60
|
-
children: /*#__PURE__*/(
|
|
58
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
61
59
|
className: 'arm-interval',
|
|
62
|
-
children: [/*#__PURE__*/(
|
|
60
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
63
61
|
className: 'arm-interval__item',
|
|
64
|
-
children: /*#__PURE__*/(
|
|
62
|
+
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
65
63
|
...inputProps,
|
|
66
64
|
value: realMin,
|
|
67
65
|
label: labelStart,
|
|
@@ -71,9 +69,9 @@ const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
71
69
|
focused: true,
|
|
72
70
|
onChange: handleMin
|
|
73
71
|
})
|
|
74
|
-
}), /*#__PURE__*/(
|
|
72
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
75
73
|
className: 'arm-interval__item',
|
|
76
|
-
children: /*#__PURE__*/(
|
|
74
|
+
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
77
75
|
...inputProps,
|
|
78
76
|
value: realMax,
|
|
79
77
|
label: labelEnd,
|
|
@@ -86,7 +84,7 @@ const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
86
84
|
})
|
|
87
85
|
})]
|
|
88
86
|
})
|
|
89
|
-
}), helperText && /*#__PURE__*/(
|
|
87
|
+
}), helperText && /*#__PURE__*/_jsx(HelperText, {
|
|
90
88
|
className: 'arm-interval__helper',
|
|
91
89
|
error: error,
|
|
92
90
|
children: helperText
|
|
@@ -94,5 +92,4 @@ const Interval = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
94
92
|
})
|
|
95
93
|
});
|
|
96
94
|
});
|
|
97
|
-
|
|
98
|
-
module.exports = exports.default;
|
|
95
|
+
export default Interval;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
import Interval from "./Interval";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import Slider from "../../Slider/Slider";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
9
|
const IntervalSlide = props => {
|
|
12
10
|
let {
|
|
13
11
|
onChange,
|
|
14
12
|
...restProps
|
|
15
13
|
} = props;
|
|
16
|
-
let [value, setValue] =
|
|
14
|
+
let [value, setValue] = useState([props.min, props.max]);
|
|
17
15
|
const handleChange = value => {
|
|
18
16
|
setValue(value);
|
|
19
17
|
if (onChange) onChange(value);
|
|
@@ -21,15 +19,15 @@ const IntervalSlide = props => {
|
|
|
21
19
|
const handleSlide = value => {
|
|
22
20
|
if (Array.isArray(value)) handleChange(value);
|
|
23
21
|
};
|
|
24
|
-
return /*#__PURE__*/(
|
|
25
|
-
children: /*#__PURE__*/(
|
|
26
|
-
children: [/*#__PURE__*/(
|
|
22
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
23
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
24
|
+
children: [/*#__PURE__*/_jsx(Interval, {
|
|
27
25
|
value: value,
|
|
28
26
|
...restProps,
|
|
29
27
|
onChange: setValue
|
|
30
|
-
}), /*#__PURE__*/(
|
|
28
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
31
29
|
className: 'arm-intervalslide__slider',
|
|
32
|
-
children: /*#__PURE__*/(
|
|
30
|
+
children: /*#__PURE__*/_jsx(Slider, {
|
|
33
31
|
range: true,
|
|
34
32
|
min: props.min,
|
|
35
33
|
max: props.max,
|
|
@@ -42,5 +40,4 @@ const IntervalSlide = props => {
|
|
|
42
40
|
})
|
|
43
41
|
});
|
|
44
42
|
};
|
|
45
|
-
|
|
46
|
-
module.exports = exports.default;
|
|
43
|
+
export default IntervalSlide;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
var _exportNames = {
|
|
6
|
-
IntervalSlide: true
|
|
7
|
-
};
|
|
8
|
-
exports.default = exports.IntervalSlide = void 0;
|
|
9
|
-
var _Interval = _interopRequireWildcard(require("./Interval"));
|
|
10
|
-
exports.default = _Interval.default;
|
|
11
|
-
Object.keys(_Interval).forEach(function (key) {
|
|
12
|
-
if (key === "default" || key === "__esModule") return;
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
14
|
-
if (key in exports && exports[key] === _Interval[key]) return;
|
|
15
|
-
exports[key] = _Interval[key];
|
|
16
|
-
});
|
|
17
|
-
var _IntervalSlide = _interopRequireDefault(require("./IntervalSlide"));
|
|
18
|
-
exports.IntervalSlide = _IntervalSlide.default;
|
|
19
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
1
|
+
export { default } from "./Interval";
|
|
2
|
+
export { default as IntervalSlide } from "./IntervalSlide";
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
const Password = exports.Password = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
3
|
+
import TextField from "../TextField/TextField";
|
|
4
|
+
import { forwardRef, useRef, useState } from 'react';
|
|
5
|
+
import ButtonIcon from "../../ButtonIcon";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
export const Password = /*#__PURE__*/forwardRef((props, ref) => {
|
|
12
9
|
let {
|
|
13
10
|
onChange,
|
|
14
11
|
...restProps
|
|
15
12
|
} = props;
|
|
16
|
-
let [value, setValue] =
|
|
17
|
-
let [isPassword, setIsPassword] =
|
|
18
|
-
const inputRef =
|
|
13
|
+
let [value, setValue] = useState('');
|
|
14
|
+
let [isPassword, setIsPassword] = useState(true);
|
|
15
|
+
const inputRef = useRef(ref);
|
|
19
16
|
const handleChange = e => {
|
|
20
17
|
setValue(e.target.value);
|
|
21
18
|
if (onChange) onChange(e);
|
|
@@ -23,19 +20,19 @@ const Password = exports.Password = /*#__PURE__*/(0, _react.forwardRef)((props,
|
|
|
23
20
|
const handleClick = () => {
|
|
24
21
|
setIsPassword(prev => !prev);
|
|
25
22
|
};
|
|
26
|
-
return /*#__PURE__*/(
|
|
27
|
-
children: /*#__PURE__*/(
|
|
23
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
24
|
+
children: /*#__PURE__*/_jsx(TextField, {
|
|
28
25
|
value: value,
|
|
29
26
|
ref: inputRef,
|
|
30
27
|
...restProps,
|
|
31
28
|
type: isPassword ? 'password' : 'text',
|
|
32
29
|
onChange: handleChange,
|
|
33
|
-
endAdornment: /*#__PURE__*/(
|
|
30
|
+
endAdornment: /*#__PURE__*/_jsx(ButtonIcon, {
|
|
34
31
|
size: 'medium',
|
|
35
32
|
variant: 'transparent',
|
|
36
33
|
color: 'neutral',
|
|
37
34
|
onClick: handleClick,
|
|
38
|
-
children: /*#__PURE__*/(
|
|
35
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
39
36
|
className: 'material_icon',
|
|
40
37
|
children: isPassword ? 'visibility_off' : 'visibility'
|
|
41
38
|
})
|
|
@@ -43,4 +40,4 @@ const Password = exports.Password = /*#__PURE__*/(0, _react.forwardRef)((props,
|
|
|
43
40
|
})
|
|
44
41
|
});
|
|
45
42
|
});
|
|
46
|
-
|
|
43
|
+
export default Password;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Password = _interopRequireWildcard(require("./Password"));
|
|
7
|
-
exports.default = _Password.default;
|
|
8
|
-
Object.keys(_Password).forEach(function (key) {
|
|
9
|
-
if (key === "default" || key === "__esModule") return;
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
11
|
-
if (key in exports && exports[key] === _Password[key]) return;
|
|
12
|
-
exports[key] = _Password[key];
|
|
13
|
-
});
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./Password";
|
package/ui/Form/Period/Period.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const Period = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
3
|
+
import TextField from "../TextField/TextField";
|
|
4
|
+
import { forwardRef, useState } from 'react';
|
|
5
|
+
import ButtonIcon from "../../ButtonIcon";
|
|
6
|
+
import Card from "../../Card/Card";
|
|
7
|
+
import DatePicker from "../DatePicker/DatePicker";
|
|
8
|
+
import { DateService } from "../../../lib/services/DateService";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
const Period = /*#__PURE__*/forwardRef((props, ref) => {
|
|
15
13
|
let {
|
|
16
14
|
onChange,
|
|
17
15
|
format = 'dd.MM.yyyy',
|
|
18
16
|
onInput,
|
|
19
17
|
...restProps
|
|
20
18
|
} = props;
|
|
21
|
-
let [active, setActive] =
|
|
22
|
-
let [value, setValue] =
|
|
19
|
+
let [active, setActive] = useState(false);
|
|
20
|
+
let [value, setValue] = useState([new Date(), null]);
|
|
23
21
|
const handleClick = () => {
|
|
24
22
|
setActive(true);
|
|
25
23
|
};
|
|
@@ -42,30 +40,30 @@ const Period = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
42
40
|
};
|
|
43
41
|
let realValue = Array.isArray(props.value) ? props.value : value;
|
|
44
42
|
let displayValue = '';
|
|
45
|
-
if (realValue[0] && realValue[1]) displayValue = `${
|
|
46
|
-
return /*#__PURE__*/(
|
|
47
|
-
children: /*#__PURE__*/(
|
|
43
|
+
if (realValue[0] && realValue[1]) displayValue = `${DateService(realValue[0]).format('dd.MM.yyyy')} - ${DateService(realValue[1]).format('dd.MM.yyyy')}`;
|
|
44
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
45
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
48
46
|
className: 'arm-period',
|
|
49
|
-
children: [/*#__PURE__*/(
|
|
47
|
+
children: [/*#__PURE__*/_jsx(TextField, {
|
|
50
48
|
ref: ref,
|
|
51
49
|
placeholder: 'дд.мм.гггг - дд.мм.гггг',
|
|
52
50
|
...restProps,
|
|
53
51
|
value: displayValue,
|
|
54
52
|
onChange: () => null,
|
|
55
53
|
onFocus: handleClick,
|
|
56
|
-
endAdornment: /*#__PURE__*/(
|
|
54
|
+
endAdornment: /*#__PURE__*/_jsx(ButtonIcon, {
|
|
57
55
|
size: 'medium',
|
|
58
56
|
variant: 'transparent',
|
|
59
57
|
color: 'neutral',
|
|
60
58
|
onClick: handleClick,
|
|
61
|
-
children: /*#__PURE__*/(
|
|
59
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
62
60
|
className: 'material_icon',
|
|
63
61
|
children: "calendar_today"
|
|
64
62
|
})
|
|
65
63
|
})
|
|
66
|
-
}), active && /*#__PURE__*/(
|
|
64
|
+
}), active && /*#__PURE__*/_jsx(Card, {
|
|
67
65
|
className: 'arm-period__picker',
|
|
68
|
-
children: /*#__PURE__*/(
|
|
66
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
|
69
67
|
onChange: handleChange,
|
|
70
68
|
selectsRange: true,
|
|
71
69
|
onBlur: () => {
|
|
@@ -79,5 +77,4 @@ const Period = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
79
77
|
})
|
|
80
78
|
});
|
|
81
79
|
});
|
|
82
|
-
|
|
83
|
-
module.exports = exports.default;
|
|
80
|
+
export default Period;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Period';
|
|
2
|
-
export
|
|
2
|
+
export { type PeriodChangeEvent } from './Period';
|
package/ui/Form/Period/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Period = _interopRequireWildcard(require("./Period"));
|
|
7
|
-
exports.default = _Period.default;
|
|
8
|
-
Object.keys(_Period).forEach(function (key) {
|
|
9
|
-
if (key === "default" || key === "__esModule") return;
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
11
|
-
if (key in exports && exports[key] === _Period[key]) return;
|
|
12
|
-
exports[key] = _Period[key];
|
|
13
|
-
});
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./Period";
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
import DatePicker from "../DatePicker/DatePicker";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
7
|
const PeriodSelect = () => {
|
|
11
|
-
const [startDate, setStartDate] =
|
|
12
|
-
const [endDate, setEndDate] =
|
|
8
|
+
const [startDate, setStartDate] = useState(new Date());
|
|
9
|
+
const [endDate, setEndDate] = useState(null);
|
|
13
10
|
const handleChange = date => {
|
|
14
11
|
setStartDate(date[0]);
|
|
15
12
|
setEndDate(date[1]);
|
|
16
13
|
};
|
|
17
|
-
return /*#__PURE__*/(
|
|
18
|
-
children: /*#__PURE__*/(
|
|
14
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
15
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
|
19
16
|
selected: startDate,
|
|
20
17
|
onChange: handleChange,
|
|
21
18
|
startDate: startDate,
|
|
@@ -24,5 +21,4 @@ const PeriodSelect = () => {
|
|
|
24
21
|
})
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
module.exports = exports.default;
|
|
24
|
+
export default PeriodSelect;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _PeriodSelect = _interopRequireWildcard(require("./PeriodSelect"));
|
|
7
|
-
exports.default = _PeriodSelect.default;
|
|
8
|
-
Object.keys(_PeriodSelect).forEach(function (key) {
|
|
9
|
-
if (key === "default" || key === "__esModule") return;
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
11
|
-
if (key in exports && exports[key] === _PeriodSelect[key]) return;
|
|
12
|
-
exports[key] = _PeriodSelect[key];
|
|
13
|
-
});
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./PeriodSelect";
|
package/ui/Form/Radio/Radio.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Checkbox = _interopRequireDefault(require("../Checkbox/Checkbox"));
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import Checkbox from "../Checkbox/Checkbox";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
5
|
const Radio = props => {
|
|
10
|
-
return /*#__PURE__*/(
|
|
11
|
-
children: /*#__PURE__*/(
|
|
6
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
7
|
+
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
12
8
|
...props,
|
|
13
|
-
className: (
|
|
9
|
+
className: clsx(props.className, 'arm-radio'),
|
|
14
10
|
type: 'radio'
|
|
15
11
|
})
|
|
16
12
|
});
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
module.exports = exports.default;
|
|
14
|
+
export default Radio;
|
package/ui/Form/Radio/index.d.ts
CHANGED
package/ui/Form/Radio/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Radio = _interopRequireWildcard(require("./Radio"));
|
|
7
|
-
exports.default = _Radio.default;
|
|
8
|
-
Object.keys(_Radio).forEach(function (key) {
|
|
9
|
-
if (key === "default" || key === "__esModule") return;
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
11
|
-
if (key in exports && exports[key] === _Radio[key]) return;
|
|
12
|
-
exports[key] = _Radio[key];
|
|
13
|
-
});
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./Radio";
|
package/ui/Form/Rating/Rating.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
8
|
const Rating = props => {
|
|
11
9
|
let {
|
|
12
10
|
size = 'large',
|
|
13
11
|
onChange,
|
|
14
12
|
...restProps
|
|
15
13
|
} = props;
|
|
16
|
-
let [value, setValue] =
|
|
17
|
-
let [hovered, setHovered] =
|
|
14
|
+
let [value, setValue] = useState(props.defaultValue || 0);
|
|
15
|
+
let [hovered, setHovered] = useState(0);
|
|
18
16
|
let realValue = props.value !== undefined ? props.value : value;
|
|
19
17
|
const handleClick = index => () => {
|
|
20
18
|
setValue(index);
|
|
@@ -26,19 +24,19 @@ const Rating = props => {
|
|
|
26
24
|
const handleLeaveRating = () => {
|
|
27
25
|
setHovered(realValue);
|
|
28
26
|
};
|
|
29
|
-
return /*#__PURE__*/(
|
|
30
|
-
children: /*#__PURE__*/(
|
|
27
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
28
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
31
29
|
className: 'arm-rating',
|
|
32
30
|
onMouseLeave: handleLeaveRating,
|
|
33
|
-
children: [/*#__PURE__*/(
|
|
31
|
+
children: [/*#__PURE__*/_jsx("input", {
|
|
34
32
|
value: value,
|
|
35
33
|
...restProps,
|
|
36
34
|
type: "hidden"
|
|
37
35
|
}), [...Array(5)].map((_, index) => {
|
|
38
|
-
return /*#__PURE__*/(
|
|
36
|
+
return /*#__PURE__*/_jsx("div", {
|
|
39
37
|
onClick: handleClick(index + 1),
|
|
40
38
|
onMouseEnter: handleMouseEnter(index + 1),
|
|
41
|
-
className: (
|
|
39
|
+
className: clsx('material_icon', {
|
|
42
40
|
['material_icon_solid']: index + 1 <= hovered || index + 1 <= realValue,
|
|
43
41
|
'arm-rating__item_disabled': !!restProps.disabled
|
|
44
42
|
}, 'arm-rating__item', ['arm-rating__item_' + size]),
|
|
@@ -48,5 +46,4 @@ const Rating = props => {
|
|
|
48
46
|
})
|
|
49
47
|
});
|
|
50
48
|
};
|
|
51
|
-
|
|
52
|
-
module.exports = exports.default;
|
|
49
|
+
export default Rating;
|