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
package/ui/Pagination/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Pagination = _interopRequireWildcard(require("./Pagination"));
|
|
7
|
-
exports.default = _Pagination.default;
|
|
8
|
-
Object.keys(_Pagination).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] === _Pagination[key]) return;
|
|
12
|
-
exports[key] = _Pagination[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 "./Pagination";
|
package/ui/Paper/Paper.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
4
|
const Paper = props => {
|
|
9
5
|
let {
|
|
10
6
|
children,
|
|
@@ -13,9 +9,9 @@ const Paper = props => {
|
|
|
13
9
|
variant = 'elevation',
|
|
14
10
|
...divPops
|
|
15
11
|
} = props;
|
|
16
|
-
return /*#__PURE__*/(
|
|
17
|
-
children: /*#__PURE__*/(
|
|
18
|
-
className: (
|
|
12
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
13
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
14
|
+
className: clsx('arm-paper', className, {
|
|
19
15
|
'arm-paper_elevation': variant === 'elevation',
|
|
20
16
|
'arm-paper_outlined': variant === 'outlined',
|
|
21
17
|
'arm-paper_dark': theme === 'dark'
|
|
@@ -25,5 +21,4 @@ const Paper = props => {
|
|
|
25
21
|
})
|
|
26
22
|
});
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
module.exports = exports.default;
|
|
24
|
+
export default Paper;
|
package/ui/Paper/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Paper';
|
|
2
|
-
export
|
|
2
|
+
export { type PaperProps } from './Paper';
|
package/ui/Paper/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Paper = _interopRequireWildcard(require("./Paper"));
|
|
7
|
-
exports.default = _Paper.default;
|
|
8
|
-
Object.keys(_Paper).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] === _Paper[key]) return;
|
|
12
|
-
exports[key] = _Paper[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 "./Paper";
|
package/ui/Popover/Popover.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _PopperBase = require("../Popper/PopperBase");
|
|
8
|
-
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
const Popover = props => {
|
|
1
|
+
import BackDrop from "../BackDrop";
|
|
2
|
+
import { PopperBase } from "../Popper/PopperBase";
|
|
3
|
+
import Paper from "../Paper";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
export const Popover = props => {
|
|
11
7
|
const {
|
|
12
8
|
onClose,
|
|
13
9
|
matchWidth = false,
|
|
@@ -16,13 +12,13 @@ const Popover = props => {
|
|
|
16
12
|
...popperProps
|
|
17
13
|
} = props;
|
|
18
14
|
if (!props.open || !popperProps.anchorEl) return null;
|
|
19
|
-
return /*#__PURE__*/(
|
|
20
|
-
children: /*#__PURE__*/(
|
|
15
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
16
|
+
children: /*#__PURE__*/_jsx(BackDrop, {
|
|
21
17
|
onClick: onClose,
|
|
22
|
-
children: /*#__PURE__*/(
|
|
18
|
+
children: /*#__PURE__*/_jsx(PopperBase, {
|
|
23
19
|
...popperProps,
|
|
24
20
|
anchorEl: popperProps.anchorEl,
|
|
25
|
-
children: /*#__PURE__*/(
|
|
21
|
+
children: /*#__PURE__*/_jsx(Paper, {
|
|
26
22
|
className: classes == null ? void 0 : classes.paper,
|
|
27
23
|
style: matchWidth ? {
|
|
28
24
|
width: popperProps.anchorEl.clientWidth
|
|
@@ -33,5 +29,4 @@ const Popover = props => {
|
|
|
33
29
|
})
|
|
34
30
|
});
|
|
35
31
|
};
|
|
36
|
-
|
|
37
|
-
var _default = exports.default = Popover;
|
|
32
|
+
export default Popover;
|
package/ui/Popover/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Popover';
|
|
2
|
-
export
|
|
2
|
+
export { type PopoverProps } from './Popover';
|
package/ui/Popover/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Popover = _interopRequireWildcard(require("./Popover"));
|
|
7
|
-
exports.default = _Popover.default;
|
|
8
|
-
Object.keys(_Popover).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] === _Popover[key]) return;
|
|
12
|
-
exports[key] = _Popover[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 "./Popover";
|
package/ui/Popper/Popper.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { createPortal } from 'react-dom';
|
|
2
|
+
import { PopperBase } from "./PopperBase";
|
|
2
3
|
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.Popper = void 0;
|
|
5
|
-
var _reactDom = require("react-dom");
|
|
6
|
-
var _PopperBase = require("./PopperBase");
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
4
|
//TODO TESTS
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
export const Popper = props => {
|
|
11
8
|
if (!props.open) return null;
|
|
12
|
-
return /*#__PURE__*/(
|
|
13
|
-
children: /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
10
|
+
children: /*#__PURE__*/createPortal( /*#__PURE__*/_jsx(PopperBase, {
|
|
14
11
|
...props,
|
|
15
12
|
children: props.children
|
|
16
13
|
}), document.body)
|
|
17
14
|
});
|
|
18
15
|
};
|
|
19
|
-
|
|
20
|
-
var _default = exports.default = Popper;
|
|
16
|
+
export default Popper;
|
package/ui/Popper/PopperBase.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const PopperBase = props => {
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { createPopper } from '@popperjs/core';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
export const PopperBase = props => {
|
|
10
8
|
const {
|
|
11
9
|
anchorEl,
|
|
12
10
|
children,
|
|
@@ -15,8 +13,8 @@ const PopperBase = props => {
|
|
|
15
13
|
anchorPosition,
|
|
16
14
|
open
|
|
17
15
|
} = props;
|
|
18
|
-
const tooltipRef =
|
|
19
|
-
|
|
16
|
+
const tooltipRef = useRef(null);
|
|
17
|
+
useEffect(() => {
|
|
20
18
|
let modifiers = [{
|
|
21
19
|
name: 'offset',
|
|
22
20
|
options: {
|
|
@@ -36,7 +34,7 @@ const PopperBase = props => {
|
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
|
-
const popper =
|
|
37
|
+
const popper = createPopper(anchorEl, tooltipRef.current, {
|
|
40
38
|
placement: placement,
|
|
41
39
|
modifiers: modifiers
|
|
42
40
|
});
|
|
@@ -45,13 +43,12 @@ const PopperBase = props => {
|
|
|
45
43
|
// handlePopperRefRef.current!(null)
|
|
46
44
|
};
|
|
47
45
|
}, [open, placement]);
|
|
48
|
-
return /*#__PURE__*/(
|
|
49
|
-
children: /*#__PURE__*/(
|
|
46
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
47
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
50
48
|
ref: tooltipRef,
|
|
51
49
|
className: className,
|
|
52
50
|
children: children
|
|
53
51
|
})
|
|
54
52
|
});
|
|
55
53
|
};
|
|
56
|
-
|
|
57
|
-
var _default = exports.default = PopperBase;
|
|
54
|
+
export default PopperBase;
|
package/ui/Popper/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Popper';
|
|
2
|
-
export
|
|
2
|
+
export { PopperBase, type PopperBaseProps } from './PopperBase';
|
package/ui/Popper/index.js
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
var _exportNames = {};
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _Popper = _interopRequireDefault(require("./Popper"));
|
|
8
|
-
exports.default = _Popper.default;
|
|
9
|
-
var _PopperBase = require("./PopperBase");
|
|
10
|
-
Object.keys(_PopperBase).forEach(function (key) {
|
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
13
|
-
if (key in exports && exports[key] === _PopperBase[key]) return;
|
|
14
|
-
exports[key] = _PopperBase[key];
|
|
15
|
-
});
|
|
16
|
-
module.exports = exports.default;
|
|
1
|
+
export { default } from "./Popper";
|
|
2
|
+
export { PopperBase } from "./PopperBase";
|
package/ui/Skeleton/Skeleton.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
3
|
const Skeleton = props => {
|
|
9
4
|
const {
|
|
10
5
|
width = '100%',
|
|
@@ -13,9 +8,9 @@ const Skeleton = props => {
|
|
|
13
8
|
circle,
|
|
14
9
|
...divProps
|
|
15
10
|
} = props;
|
|
16
|
-
return /*#__PURE__*/(
|
|
11
|
+
return /*#__PURE__*/_jsx("div", {
|
|
17
12
|
...divProps,
|
|
18
|
-
className: (
|
|
13
|
+
className: clsx(className, 'arm-skeleton', {
|
|
19
14
|
'arm-skeleton_circle': !!circle
|
|
20
15
|
}),
|
|
21
16
|
style: {
|
|
@@ -24,5 +19,4 @@ const Skeleton = props => {
|
|
|
24
19
|
}
|
|
25
20
|
});
|
|
26
21
|
};
|
|
27
|
-
|
|
28
|
-
module.exports = exports.default;
|
|
22
|
+
export default Skeleton;
|
package/ui/Skeleton/index.d.ts
CHANGED
package/ui/Skeleton/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Skeleton = _interopRequireWildcard(require("./Skeleton"));
|
|
7
|
-
exports.default = _Skeleton.default;
|
|
8
|
-
Object.keys(_Skeleton).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] === _Skeleton[key]) return;
|
|
12
|
-
exports[key] = _Skeleton[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 "./Skeleton";
|
package/ui/Slider/RcSlider.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/ui/Slider/Slider.js
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
require("!style-loader!css-loader!./style.css");
|
|
8
|
-
var _HelperText = _interopRequireDefault(require("../HelperText/HelperText"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import RcSlider from 'rc-slider';
|
|
2
|
+
import '!style-loader!css-loader!./style.css';
|
|
3
|
+
import HelperText from "../HelperText/HelperText";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
7
|
const Slider = props => {
|
|
11
8
|
let {
|
|
12
9
|
size = 'large',
|
|
13
10
|
...restProps
|
|
14
11
|
} = props;
|
|
15
|
-
return /*#__PURE__*/(
|
|
16
|
-
children: /*#__PURE__*/(
|
|
17
|
-
children: [/*#__PURE__*/(
|
|
12
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
13
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
14
|
+
children: [/*#__PURE__*/_jsx(RcSlider, {
|
|
18
15
|
...restProps,
|
|
19
16
|
className: '_' + size
|
|
20
|
-
}), restProps.min !== undefined && restProps.max !== undefined && /*#__PURE__*/(
|
|
17
|
+
}), restProps.min !== undefined && restProps.max !== undefined && /*#__PURE__*/_jsxs("div", {
|
|
21
18
|
className: 'arm-slider__text',
|
|
22
|
-
children: [/*#__PURE__*/(
|
|
23
|
-
children: /*#__PURE__*/(
|
|
19
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
20
|
+
children: /*#__PURE__*/_jsx(HelperText, {
|
|
24
21
|
children: restProps.min
|
|
25
22
|
})
|
|
26
|
-
}), /*#__PURE__*/(
|
|
27
|
-
children: /*#__PURE__*/(
|
|
23
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
24
|
+
children: /*#__PURE__*/_jsx(HelperText, {
|
|
28
25
|
children: restProps.max
|
|
29
26
|
})
|
|
30
27
|
})]
|
|
@@ -32,5 +29,4 @@ const Slider = props => {
|
|
|
32
29
|
})
|
|
33
30
|
});
|
|
34
31
|
};
|
|
35
|
-
|
|
36
|
-
module.exports = exports.default;
|
|
32
|
+
export default Slider;
|
package/ui/Slider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Slider';
|
|
2
|
-
export
|
|
2
|
+
export { type SliderProps } from './Slider';
|
package/ui/Slider/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Slider = _interopRequireWildcard(require("./Slider"));
|
|
7
|
-
exports.default = _Slider.default;
|
|
8
|
-
Object.keys(_Slider).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] === _Slider[key]) return;
|
|
12
|
-
exports[key] = _Slider[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 "./Slider";
|
package/ui/Stack/Stack.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _react = require("react");
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { cloneElement } from 'react';
|
|
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 wrapItem = (item, spacing, index) => {
|
|
10
|
-
if (!Array.isArray(item)) return [/*#__PURE__*/
|
|
6
|
+
if (!Array.isArray(item)) return [/*#__PURE__*/cloneElement( /*#__PURE__*/_jsx(StackItem, {
|
|
11
7
|
spacing: spacing,
|
|
12
8
|
children: item
|
|
13
9
|
}, index))];
|
|
@@ -29,14 +25,14 @@ const Stack = props => {
|
|
|
29
25
|
// childrenProp = children.map((child, index) => {
|
|
30
26
|
// return cloneElement(<StackItem key={index} spacing={spacing}>{child}</StackItem>)
|
|
31
27
|
// })
|
|
32
|
-
} else childrenProp = /*#__PURE__*/(
|
|
28
|
+
} else childrenProp = /*#__PURE__*/_jsx(StackItem, {
|
|
33
29
|
spacing: spacing,
|
|
34
30
|
children: children
|
|
35
31
|
});
|
|
36
|
-
return /*#__PURE__*/(
|
|
37
|
-
children: /*#__PURE__*/(
|
|
32
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
33
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
38
34
|
...divProps,
|
|
39
|
-
className: (
|
|
35
|
+
className: clsx('arm-stack', 'flex', className, {
|
|
40
36
|
'flex-wrap': !!wrap,
|
|
41
37
|
'items-center': center,
|
|
42
38
|
['arm-stack_spacing_' + spacing]: !!spacing
|
|
@@ -50,12 +46,11 @@ const StackItem = props => {
|
|
|
50
46
|
children,
|
|
51
47
|
spacing
|
|
52
48
|
} = props;
|
|
53
|
-
return /*#__PURE__*/(
|
|
54
|
-
className: (
|
|
49
|
+
return /*#__PURE__*/_jsx("div", {
|
|
50
|
+
className: clsx({
|
|
55
51
|
['arm-stack-item_spacing_' + spacing]: !!spacing
|
|
56
52
|
}),
|
|
57
53
|
children: children
|
|
58
54
|
});
|
|
59
55
|
};
|
|
60
|
-
|
|
61
|
-
module.exports = exports.default;
|
|
56
|
+
export default Stack;
|
package/ui/Stack/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Stack';
|
|
2
|
-
export
|
|
2
|
+
export { type StackProps } from './Stack';
|
package/ui/Stack/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Stack = _interopRequireWildcard(require("./Stack"));
|
|
7
|
-
exports.default = _Stack.default;
|
|
8
|
-
Object.keys(_Stack).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] === _Stack[key]) return;
|
|
12
|
-
exports[key] = _Stack[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 "./Stack";
|
package/ui/Status/Status.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
5
|
function Status(props) {
|
|
9
6
|
let {
|
|
10
7
|
color,
|
|
@@ -17,21 +14,20 @@ function Status(props) {
|
|
|
17
14
|
...restProps
|
|
18
15
|
} = props;
|
|
19
16
|
const Component = as || 'span';
|
|
20
|
-
return /*#__PURE__*/(
|
|
21
|
-
children: /*#__PURE__*/(
|
|
17
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
18
|
+
children: /*#__PURE__*/_jsxs(Component, {
|
|
22
19
|
...restProps,
|
|
23
|
-
className: (
|
|
20
|
+
className: clsx('arm-status', ['arm-status_' + color], className, {
|
|
24
21
|
['arm-status_size_' + size]: !!size
|
|
25
22
|
}),
|
|
26
|
-
children: [/*#__PURE__*/(
|
|
23
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
27
24
|
className: 'arm-status__content',
|
|
28
25
|
children: text || children
|
|
29
|
-
}), icon && /*#__PURE__*/(
|
|
30
|
-
className: (
|
|
26
|
+
}), icon && /*#__PURE__*/_jsx("span", {
|
|
27
|
+
className: clsx('arm-status__icon', 'material_icon'),
|
|
31
28
|
children: icon
|
|
32
29
|
})]
|
|
33
30
|
})
|
|
34
31
|
});
|
|
35
32
|
}
|
|
36
|
-
|
|
37
|
-
module.exports = exports.default;
|
|
33
|
+
export default Status;
|
package/ui/Status/index.d.ts
CHANGED
package/ui/Status/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _Status = _interopRequireWildcard(require("./Status"));
|
|
7
|
-
exports.default = _Status.default;
|
|
8
|
-
Object.keys(_Status).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] === _Status[key]) return;
|
|
12
|
-
exports[key] = _Status[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 "./Status";
|
package/ui/Stepper/StepItem.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
-
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import StepItemIcon from "./StepItemIcon";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import Button from "../Button/Button";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
7
|
const StepItem = props => {
|
|
11
8
|
let {
|
|
12
9
|
title,
|
|
@@ -18,31 +15,31 @@ const StepItem = props => {
|
|
|
18
15
|
orientation = 'horizontal',
|
|
19
16
|
...iconProps
|
|
20
17
|
} = props;
|
|
21
|
-
return /*#__PURE__*/(
|
|
22
|
-
children: /*#__PURE__*/(
|
|
23
|
-
className: (
|
|
18
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
19
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
20
|
+
className: clsx('arm-step-item', ['arm-step-item_' + props.size], {
|
|
24
21
|
'arm-step-item_last': last,
|
|
25
22
|
'arm-step-item_horizontal': orientation === 'horizontal'
|
|
26
23
|
}),
|
|
27
|
-
children: [/*#__PURE__*/(
|
|
24
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
28
25
|
className: 'arm-step-item__inner',
|
|
29
|
-
children: [/*#__PURE__*/(
|
|
26
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
30
27
|
className: 'arm-step-item__icon',
|
|
31
|
-
children: /*#__PURE__*/(
|
|
28
|
+
children: /*#__PURE__*/_jsx(StepItemIcon, {
|
|
32
29
|
...iconProps
|
|
33
30
|
})
|
|
34
|
-
}), !!title && /*#__PURE__*/(
|
|
35
|
-
className: (
|
|
31
|
+
}), !!title && /*#__PURE__*/_jsx("p", {
|
|
32
|
+
className: clsx('arm-step-item__title', {
|
|
36
33
|
'arm-step-item__title_error': iconProps.error,
|
|
37
34
|
'arm-step-item__title_with_content': content || children
|
|
38
35
|
}),
|
|
39
36
|
children: title
|
|
40
37
|
})]
|
|
41
|
-
}), /*#__PURE__*/(
|
|
38
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
42
39
|
className: 'arm-step-item__content',
|
|
43
|
-
children: [content || children, !!button && /*#__PURE__*/(
|
|
40
|
+
children: [content || children, !!button && /*#__PURE__*/_jsx("div", {
|
|
44
41
|
className: 'arm-step-item__button',
|
|
45
|
-
children: /*#__PURE__*/(
|
|
42
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
46
43
|
...buttonProps,
|
|
47
44
|
children: button
|
|
48
45
|
})
|
|
@@ -51,5 +48,4 @@ const StepItem = props => {
|
|
|
51
48
|
})
|
|
52
49
|
});
|
|
53
50
|
};
|
|
54
|
-
|
|
55
|
-
module.exports = exports.default;
|
|
51
|
+
export default StepItem;
|