diginet-core-ui 1.4.47-beta.13 → 1.4.47-beta.15
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/images/menu/dhr/MHRM38N0010.svg +13 -0
- package/assets/images/menu/dhr/MHRM38N0011.svg +16 -0
- package/components/accordion/details.js +1 -1
- package/components/accordion/group.js +1 -1
- package/components/accordion/index.js +1 -1
- package/components/accordion/summary.js +1 -1
- package/components/alert/index.js +1 -1
- package/components/alert/notify.js +1 -1
- package/components/avatar/index.js +2 -2
- package/components/badge/index.js +1 -1
- package/components/breadcrumb/index.js +1 -1
- package/components/button/icon.js +1 -1
- package/components/button/index.js +1 -1
- package/components/button/more.js +2 -2
- package/components/button/ripple-effect.js +1 -1
- package/components/card/body.js +1 -1
- package/components/card/extra.js +1 -1
- package/components/card/footer.js +1 -1
- package/components/card/header.js +1 -1
- package/components/card/index.js +1 -1
- package/components/chart/Pie/Circle.js +1 -1
- package/components/chart/Pie/Sector.js +1 -1
- package/components/chart/Pie/index.js +1 -1
- package/components/chart/Pie-v2/Circle.js +1 -1
- package/components/chart/Pie-v2/Sector.js +1 -1
- package/components/chart/Pie-v2/index.js +1 -1
- package/components/chart/bar/Bar.js +1 -1
- package/components/chart/bar/index.js +1 -1
- package/components/chart/bar-v2/Bar.js +1 -1
- package/components/chart/bar-v2/index.js +1 -1
- package/components/chart/line/index.js +1 -1
- package/components/chart/line-v2/index.js +1 -1
- package/components/check-text/index.js +1 -1
- package/components/check-text/interview-confirmation.js +1 -1
- package/components/check-text/interview-status.js +1 -1
- package/components/chip/index.js +1 -1
- package/components/collapse/index.js +1 -1
- package/components/divider/index.js +1 -1
- package/components/form-control/attachment/index.js +1 -1
- package/components/form-control/calendar/index.js +1 -1
- package/components/form-control/calendar/range.js +1 -1
- package/components/form-control/checkbox/index.js +1 -1
- package/components/form-control/control/index.js +1 -1
- package/components/form-control/date-input/index.js +1 -1
- package/components/form-control/date-picker/index.js +1 -1
- package/components/form-control/date-range-picker/index.js +1 -1
- package/components/form-control/dropdown/index.js +16 -13
- package/components/form-control/dropdown-box/index.js +1 -1
- package/components/form-control/form-group/index.js +1 -1
- package/components/form-control/helper-text/index.js +1 -1
- package/components/form-control/input-base/UncontrolledInputBase.js +1 -1
- package/components/form-control/input-base/index.js +1 -1
- package/components/form-control/label/index.js +1 -1
- package/components/form-control/money-input/index.js +1 -1
- package/components/form-control/password-input/index.js +1 -1
- package/components/form-control/phone-input/index.js +1 -1
- package/components/form-control/radio/index.js +1 -1
- package/components/form-control/text-input/index.js +1 -1
- package/components/form-control/time-picker/index.js +1 -1
- package/components/form-control/time-picker/v2/index.js +1 -1
- package/components/form-control/toggle/index.js +1 -1
- package/components/form-view/input.js +1 -1
- package/components/grid/index.js +1 -1
- package/components/image/index.js +1 -1
- package/components/list/list-item-action.js +1 -1
- package/components/list/list-item-icon.js +1 -1
- package/components/list/list-item-text.js +1 -1
- package/components/list/list-item.js +1 -1
- package/components/list/list.js +1 -1
- package/components/list/sub-header.js +1 -1
- package/components/modal/body.js +1 -1
- package/components/modal/footer.js +1 -1
- package/components/modal/header.js +1 -1
- package/components/modal/index.js +1 -1
- package/components/modal/modal.js +1 -1
- package/components/others/option-wrapper/index.js +1 -1
- package/components/paging/page-info.js +1 -1
- package/components/paging/page-selector.js +1 -1
- package/components/paper/index.js +1 -1
- package/components/popover/body.js +1 -1
- package/components/popover/footer.js +1 -1
- package/components/popover/header.js +1 -1
- package/components/popover/index.js +1 -1
- package/components/popup/index.js +1 -1
- package/components/popup/v2/index.js +1 -1
- package/components/progress/circular.js +1 -1
- package/components/progress/linear.js +1 -1
- package/components/rating/index.js +1 -1
- package/components/skeleton/index.js +1 -1
- package/components/slider/slider-container.js +1 -1
- package/components/slider/slider-item.js +1 -1
- package/components/status/index.js +1 -1
- package/components/tab/tab-container.js +1 -1
- package/components/tab/tab-header.js +1 -1
- package/components/tab/tab-panel.js +1 -1
- package/components/tab/tab.js +1 -1
- package/components/tooltip/index.js +1 -1
- package/components/transfer/index.js +1 -1
- package/components/tree-view/index.js +1 -1
- package/components/typography/index.js +1 -1
- package/icons/effect.js +1 -1
- package/icons/menu/v2/index.js +1 -1
- package/package.json +1 -1
- package/styles/general.js +4 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2232_72)">
|
|
3
|
+
<path d="M12 20.0001L21 16.0001L12.3 14.1001C12 14.0001 11.7 14.0001 11.4 14.1001L8.8 15.2001C8.4 15.4001 8.2 15.7001 8.1 16.0001C8 16.4001 8.1 16.8001 8.3 17.1001L12 20.0001Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M38.9 14.1001C38.2 12.4001 33.8 12.7001 32.1 13.4001L8.1 23.6001C5.2 21.4001 6.1 22.1001 4.1 20.5001C3.7 20.2001 3.2 20.2001 2.8 20.3001L0.7 21.2001C0.4 21.3001 0.1 21.6001 0 22.0001C0 22.3001 0 22.7001 0.2 23.0001C1.9 26.0001 1.1 24.5001 4.2 30.1001C4.8 31.2001 6.1 31.6001 7.2 31.1001C9.3 30.2001 6.7 31.3001 16.3 27.2001C17.1 30.5001 16.5 27.9001 18.9 37.9001C19 38.3001 19.2 38.6001 19.6 38.7001C19.9 38.9001 20.3 38.9001 20.7 38.7001L23.3 37.6001C23.7 37.4001 23.9 37.1001 24 36.8001C27.5 24.8001 27 26.4001 28.3 22.1001L34.7 19.3001C36.4 18.7001 39.6 15.8001 38.9 14.1001Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M15.8002 7.50005V11C15.8002 11.4 16.1002 11.8 16.5002 12C23.3002 14.6 23.2002 14.6 23.5002 14.6C23.8002 14.6 23.7002 14.6 30.5002 12C30.9002 11.8 31.2002 11.5 31.2002 11V7.60005C31.2002 7.30005 30.9002 7.10005 30.6002 7.20005L24.0002 9.20005C23.7002 9.30005 23.3002 9.30005 23.0002 9.20005L16.4002 7.00005C16.1002 6.90005 15.8002 7.10005 15.8002 7.50005Z" fill="#FF8C00"/>
|
|
6
|
+
<path d="M33.0002 3.20005L31.3002 2.60005L23.7002 4.88311e-05C23.5002 -0.0999512 23.3002 -0.0999512 23.1002 4.88311e-05L15.1002 2.80005L13.6002 3.30005C12.9002 3.60005 12.9002 4.60005 13.6002 4.90005L15.7002 5.60005L23.0002 8.10005C23.2002 8.20005 23.4002 8.20005 23.6002 8.10005L31.5002 5.60005L32.1002 5.40005V10.6C32.1002 11.1 32.5002 11.5 33.0002 11.5C33.5002 11.5 33.9002 11.1 33.9002 10.6V4.50005C34.0002 3.90005 33.6002 3.40005 33.0002 3.20005Z" fill="#FF8C00"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_2232_72">
|
|
10
|
+
<rect width="39" height="39" fill="white"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2232_68)">
|
|
3
|
+
<path d="M9.3998 15.3C7.5998 15.3 6.0998 13.8 6.0998 11.9C6.0998 10 7.5998 8.5 9.3998 8.5C11.1998 8.5 12.6998 10 12.6998 11.9C12.6998 13.8 11.1998 15.3 9.3998 15.3Z" fill="#FFC766"/>
|
|
4
|
+
<path d="M14.0998 20.3H5.7998V16.8C5.8998 16.7 6.0998 16.6 6.1998 16.6C7.1998 16.2 7.8998 15.8 7.8998 15.8L8.6998 18.4L8.7998 18.7L9.1998 17.7C8.3998 16.5 9.2998 16.5 9.3998 16.5C9.5998 16.5 10.4998 16.6 9.5998 17.7L9.9998 18.7L10.0998 18.4L10.8998 15.8C10.8998 15.8 11.4998 16.2 12.5998 16.6C13.1998 16.8 13.4998 17.2 13.5998 17.8L13.7998 18.7C13.8998 18.9 13.8998 19.3 14.0998 20.3Z" fill="#FFC766"/>
|
|
5
|
+
<path d="M4.9002 20.2001C4.9002 17.2001 4.9002 11.1001 4.9002 8.1001C4.9002 7.7001 4.9002 7.5001 5.4002 7.5001C8.4002 7.5001 11.4002 7.5001 14.4002 7.5001C14.7002 7.2001 15.0002 6.9001 15.3002 6.8001C15.5002 6.2001 15.8002 5.7001 16.1002 5.1001H4.3002C2.8002 5.1001 2.2002 5.7001 2.2002 7.2001C2.2002 11.3001 2.2002 18.8001 2.2002 22.8001C2.2002 23.5001 2.4002 23.7001 3.0002 23.7001C6.7002 23.7001 10.5002 23.7001 14.2002 23.7001C14.4002 22.7001 14.9002 21.9001 15.5002 21.2001H4.9002V20.2001Z" fill="#FF8C00"/>
|
|
6
|
+
<path d="M14.1999 25.8V28.7001H2.29993C0.599928 28.7001 -0.300072 26.6 -7.21663e-05 24.8H10.1999C10.2999 25.8 10.9999 25.9 11.7999 25.9C12.5999 25.8 13.3999 25.8 14.1999 25.8Z" fill="#FF8C00"/>
|
|
7
|
+
<path d="M26.6999 19.9C22.0999 19.9 18.3999 16.1 18.3999 11.4C18.3999 6.69998 22.1999 2.89998 26.7999 2.99998C31.3999 2.99998 35.0999 6.89998 35.0999 11.5C34.9999 16.2 31.2999 20 26.6999 19.9Z" fill="#2680EB"/>
|
|
8
|
+
<path d="M38.9001 9.5C38.8001 8.4 38.1001 7.7 37.3001 7.5C36.8001 6 35.9001 4.6 34.7001 3.4C32.6001 1.2 29.7001 0 26.7001 0C23.7001 0 20.8001 1.2 18.7001 3.3C17.5001 4.5 16.6001 5.9 16.0001 7.5C15.3001 7.7 14.6001 8.4 14.5001 9.5C14.3001 10.8 14.3001 12.1 14.5001 13.4C14.6001 14.5 15.3001 15.2 16.0001 15.4C16.3001 15.5 16.6001 15.5 16.9001 15.4C17.2001 15.3 17.4001 15.2 17.5001 15C18.1001 14.5 18.3001 13.7 18.2001 12.9C18.1001 12 18.1001 11 18.2001 10.1C18.3001 9.3 18.0001 8.5 17.5001 8C18.0001 6.7 18.8001 5.5 19.8001 4.5C21.6001 2.6 24.1001 1.6 26.7001 1.6C29.3001 1.6 31.7001 2.7 33.6001 4.5C34.6001 5.5 35.3001 6.7 35.8001 7.9C35.3001 8.5 35.0001 9.3 35.1001 10C35.2001 10.9 35.2001 11.9 35.1001 12.8C35.0001 13.6 35.3001 14.4 35.8001 14.9C36.0001 15.1 36.2001 15.2 36.5001 15.3C36.8001 15.4 37.1001 15.4 37.4001 15.3C38.1001 15.1 38.8001 14.4 38.9001 13.3C39.1001 12.1 39.1001 10.8 38.9001 9.5Z" fill="#2680EB"/>
|
|
9
|
+
<path d="M36.5 31.6V24.6C36.5 22.5001 34.8 20.8 32.7 20.8H19C16.9 20.8 15.2 22.5001 15.2 24.6V31.4H10.3C8.2 31.4 6.5 33.1001 6.5 35.2001C6.5 37.3001 8.2 39 10.3 39H35.2C37.3 39 39 37.3001 39 35.2001C39 33.6001 37.9 32.2 36.5 31.6Z" fill="#2680EB"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<clipPath id="clip0_2232_68">
|
|
13
|
+
<rect width="39" height="39" fill="white"/>
|
|
14
|
+
</clipPath>
|
|
15
|
+
</defs>
|
|
16
|
+
</svg>
|
|
@@ -7,7 +7,7 @@ import { boxBorder, overflowHidden, parseHeight, pointerEventsNone, positionRela
|
|
|
7
7
|
import { useTheme } from "../../theme";
|
|
8
8
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
9
9
|
import { classNames, getProp } from "../../utils";
|
|
10
|
-
const AccordionDetails = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
|
+
const AccordionDetails = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
11
11
|
if (!reference) reference = useRef(null);
|
|
12
12
|
const theme = useTheme();
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ import { borderRadius, borderRadius4px } from "../../styles/general";
|
|
|
7
7
|
import { useTheme } from "../../theme";
|
|
8
8
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
9
9
|
import { classNames } from "../../utils";
|
|
10
|
-
const AccordionGroup = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
|
+
const AccordionGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
11
11
|
if (!reference) reference = useRef(null);
|
|
12
12
|
const theme = useTheme();
|
|
13
13
|
|
|
@@ -45,7 +45,7 @@ const handleTransition = (timer, el, beginHeight, endHeight = null) => {
|
|
|
45
45
|
el.style.height = endHeight;
|
|
46
46
|
}, duration);
|
|
47
47
|
};
|
|
48
|
-
const Accordion = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
48
|
+
const Accordion = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
49
49
|
var _ref$current;
|
|
50
50
|
if (!reference) reference = useRef(null);
|
|
51
51
|
const theme = useTheme();
|
|
@@ -9,7 +9,7 @@ import { useTheme } from "../../theme";
|
|
|
9
9
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
10
10
|
import { classNames, getProp } from "../../utils";
|
|
11
11
|
import AccordionContext from "./context";
|
|
12
|
-
const AccordionSummary = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
|
+
const AccordionSummary = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
13
13
|
if (!reference) reference = useRef(null);
|
|
14
14
|
const theme = useTheme();
|
|
15
15
|
const {
|
|
@@ -15,7 +15,7 @@ const primaryTypoMap = new Map([['tiny', 'typography.heading5'], ['small', 'typo
|
|
|
15
15
|
const iconSizeMap = new Map([['tiny', 16], ['small', 20], ['medium', 24]]);
|
|
16
16
|
const linearProgressSizeMap = new Map([['tiny', 2], ['small', 3], ['medium', 4]]);
|
|
17
17
|
const transitionTime = 300;
|
|
18
|
-
const Alert = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
18
|
+
const Alert = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
19
19
|
if (!reference) reference = useRef(null);
|
|
20
20
|
const theme = useTheme();
|
|
21
21
|
const {
|
|
@@ -27,7 +27,7 @@ const positionHorizontalMap = new Map([['left', css`
|
|
|
27
27
|
`], ['right', css`
|
|
28
28
|
right: 15px;
|
|
29
29
|
`]]);
|
|
30
|
-
const Notify = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
30
|
+
const Notify = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
31
31
|
if (!reference) reference = useRef(null);
|
|
32
32
|
const theme = useTheme();
|
|
33
33
|
|
|
@@ -22,7 +22,7 @@ const checkFileType = (type, matchType) => {
|
|
|
22
22
|
return new RegExp(matchType).test(type);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const Avatar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
25
|
+
const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
26
26
|
if (!reference) reference = useRef(null);
|
|
27
27
|
const theme = useTheme();
|
|
28
28
|
|
|
@@ -108,7 +108,7 @@ const Avatar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) =>
|
|
|
108
108
|
!!onRemove && onRemove();
|
|
109
109
|
};
|
|
110
110
|
const renderData = () => {
|
|
111
|
-
if (/*#__PURE__*/isValidElement(data)) return data;
|
|
111
|
+
if ( /*#__PURE__*/isValidElement(data)) return data;
|
|
112
112
|
const info = Object.keys(data || {});
|
|
113
113
|
if (info !== null && info !== void 0 && info.length) {
|
|
114
114
|
return info.map((key, index) => {
|
|
@@ -57,7 +57,7 @@ const calDotPos = (anchorOrigin, contentDirection, dotSize, hasContent, size) =>
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
const Badge = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
60
|
+
const Badge = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
61
61
|
if (!reference) reference = useRef(null);
|
|
62
62
|
const theme = useTheme();
|
|
63
63
|
const {
|
|
@@ -14,7 +14,7 @@ import { classNames, getProp } from "../../utils";
|
|
|
14
14
|
const sizeIconMap = new Map([['tiny', 16], ['small', 18], ['medium', 20]]);
|
|
15
15
|
const sizeTypographyPMap = new Map([['tiny', 'p3'], ['small', 'p2'], ['medium', 'p1']]);
|
|
16
16
|
const sizeTypographyHMap = new Map([['tiny', 'h5'], ['small', 'h4'], ['medium', 'h3']]);
|
|
17
|
-
const Breadcrumb = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
17
|
+
const Breadcrumb = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
18
18
|
if (!reference) reference = useRef(null);
|
|
19
19
|
const theme = useTheme();
|
|
20
20
|
const {
|
|
@@ -48,7 +48,7 @@ const IconLoadingView = iconSize => {
|
|
|
48
48
|
width: parseInt(iconSize)
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
const ButtonIcon = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
51
|
+
const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
52
52
|
var _sizeMap$get, _sizeMap$get2;
|
|
53
53
|
if (!reference) reference = useRef(null);
|
|
54
54
|
const theme = useTheme();
|
|
@@ -55,7 +55,7 @@ const typographySizeMap = new Map([['tiny', 'h5'], ['small', 'h5'], ['medium', '
|
|
|
55
55
|
const minHeightSizeMap = new Map([['tiny', '24px'], ['small', '32px'], ['medium', '40px'], ['large', '48px'], ['giant', '56px']]);
|
|
56
56
|
const minHeightSizeLinkMap = new Map([['tiny', '16px'], ['small', '20px'], ['medium', '24px'], ['large', '32px'], ['giant', '40px']]);
|
|
57
57
|
const alphaLoading = 0.2;
|
|
58
|
-
const Button = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
58
|
+
const Button = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
59
59
|
var _iconSizeMap;
|
|
60
60
|
if (!reference) reference = useRef(null);
|
|
61
61
|
const theme = useTheme();
|
|
@@ -9,7 +9,7 @@ import { bgColor, borderNone, cursorPointer, displayFlex, flexCol, flexRow, item
|
|
|
9
9
|
import { useTheme } from "../../theme";
|
|
10
10
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
11
11
|
import { classNames, getProp } from "../../utils";
|
|
12
|
-
const ButtonMore = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
|
+
const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
13
13
|
if (!reference) reference = useRef(null);
|
|
14
14
|
const theme = useTheme();
|
|
15
15
|
|
|
@@ -56,7 +56,7 @@ const ButtonMore = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
|
|
|
56
56
|
});
|
|
57
57
|
const renderOptions = () => {
|
|
58
58
|
return options.map((item, idx) => {
|
|
59
|
-
if (item !== null && item !== void 0 && item.hidden) return null;else if (/*#__PURE__*/isValidElement(item)) return item;else {
|
|
59
|
+
if (item !== null && item !== void 0 && item.hidden) return null;else if ( /*#__PURE__*/isValidElement(item)) return item;else {
|
|
60
60
|
const icon = item === null || item === void 0 ? void 0 : item.icon;
|
|
61
61
|
const label = item === null || item === void 0 ? void 0 : item.label;
|
|
62
62
|
const action = () => {
|
|
@@ -13,7 +13,7 @@ const useDebouncedRippleCleanUp = (rippleCount, duration, cleanUpFunction) => {
|
|
|
13
13
|
return undefined;
|
|
14
14
|
}, [rippleCount, duration, cleanUpFunction]);
|
|
15
15
|
};
|
|
16
|
-
const Ripple = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
16
|
+
const Ripple = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
17
17
|
duration = 850,
|
|
18
18
|
color = 'system/standard',
|
|
19
19
|
circular = false,
|
package/components/card/body.js
CHANGED
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
|
7
7
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
8
8
|
import { classNames, refType as ref } from "../../utils";
|
|
9
|
-
const CardBody = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
9
|
+
const CardBody = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
10
|
if (!reference) reference = useRef(null);
|
|
11
11
|
|
|
12
12
|
// props priority: `inProps` > `themeDefaultProps`
|
package/components/card/extra.js
CHANGED
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
|
7
7
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
8
8
|
import { classNames, refType as ref } from "../../utils";
|
|
9
|
-
const CardExtra = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
9
|
+
const CardExtra = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
10
|
if (!reference) reference = useRef(null);
|
|
11
11
|
|
|
12
12
|
// props priority: `inProps` > `themeDefaultProps`
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
|
7
7
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
8
8
|
import { classNames, refType as ref } from "../../utils";
|
|
9
|
-
const CardFooter = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
9
|
+
const CardFooter = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
10
|
if (!reference) reference = useRef(null);
|
|
11
11
|
|
|
12
12
|
// props priority: `inProps` > `themeDefaultProps`
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
|
8
8
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
9
9
|
import { classNames, refType as ref } from "../../utils";
|
|
10
|
-
const CardHeader = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
|
+
const CardHeader = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
11
11
|
if (!reference) reference = useRef(null);
|
|
12
12
|
|
|
13
13
|
// props priority: `inProps` > `themeDefaultProps`
|
package/components/card/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { CardBody } from "./body";
|
|
|
12
12
|
import { CardFooter } from "./footer";
|
|
13
13
|
import CardHeader from "./header";
|
|
14
14
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
15
|
-
const Card = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
15
|
+
const Card = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
16
16
|
if (!reference) reference = useRef(null);
|
|
17
17
|
const theme = useTheme();
|
|
18
18
|
const {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
const Circle = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
6
|
+
const Circle = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
7
7
|
center,
|
|
8
8
|
color,
|
|
9
9
|
onMouseEnter,
|
|
@@ -4,7 +4,7 @@ import { useRef, memo, forwardRef } from 'react';
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
const Sector = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
7
|
+
const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
fill,
|
|
9
9
|
strokeColor,
|
|
10
10
|
strokeLinejoin,
|
|
@@ -7,7 +7,7 @@ import { jsx, css } from '@emotion/core';
|
|
|
7
7
|
import Circle from "./Circle";
|
|
8
8
|
import Sectors from "./Sectors";
|
|
9
9
|
import Sector from "./Sector";
|
|
10
|
-
const PieChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
10
|
+
const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
11
11
|
expandOnHover,
|
|
12
12
|
renderSelectedItem,
|
|
13
13
|
type,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
const Circle = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
6
|
+
const Circle = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
7
7
|
center,
|
|
8
8
|
color,
|
|
9
9
|
onMouseEnter,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useRef, memo, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
const Sector = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
6
|
+
const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
7
7
|
fill,
|
|
8
8
|
strokeColor,
|
|
9
9
|
strokeLinejoin,
|
|
@@ -9,7 +9,7 @@ import { typography } from "../../../styles/typography";
|
|
|
9
9
|
import Circle from "./Circle";
|
|
10
10
|
import Sectors from "./Sectors";
|
|
11
11
|
import Sector from "./Sector";
|
|
12
|
-
const PieChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
12
|
+
const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
expandOnHover,
|
|
14
14
|
renderSelectedItem,
|
|
15
15
|
// type,
|
|
@@ -5,7 +5,7 @@ import { css, jsx } from '@emotion/core';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import Labels from "./Labels";
|
|
7
7
|
import { typography } from "../../../styles/typography";
|
|
8
|
-
const Bars = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
8
|
+
const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
// barsOpacity,
|
|
10
10
|
barsMargin,
|
|
11
11
|
barsColor,
|
|
@@ -9,7 +9,7 @@ import Labels from "./Labels";
|
|
|
9
9
|
import Grid from "./Grid";
|
|
10
10
|
import Bars from "./Bar";
|
|
11
11
|
import { randomString } from "../../../utils";
|
|
12
|
-
const BarChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
12
|
+
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
labelsVisible,
|
|
14
14
|
labelsCharacterWidth,
|
|
15
15
|
labelsCountY,
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import Labels from "./Labels";
|
|
7
7
|
import { randomString } from "../../../utils";
|
|
8
8
|
import { typography } from "../../../styles/typography";
|
|
9
|
-
const Bars = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
9
|
+
const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
10
10
|
// barsOpacity,
|
|
11
11
|
barsMargin,
|
|
12
12
|
barsColor,
|
|
@@ -9,7 +9,7 @@ import Labels from "./Labels";
|
|
|
9
9
|
import Grid from "./Grid";
|
|
10
10
|
import Bars from "./Bar";
|
|
11
11
|
import { randomString } from "../../../utils";
|
|
12
|
-
const BarChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
12
|
+
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
labelsVisible,
|
|
14
14
|
labelsCharacterWidth,
|
|
15
15
|
labelsCountY,
|
|
@@ -10,7 +10,7 @@ import Points from "./Point";
|
|
|
10
10
|
// import Title from './Title';
|
|
11
11
|
import Path from "./Path";
|
|
12
12
|
import { randomString } from "../../../utils";
|
|
13
|
-
const LineChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
13
|
+
const LineChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
14
14
|
labelsVisible,
|
|
15
15
|
labelsCharacterWidth,
|
|
16
16
|
labelsCountY,
|
|
@@ -10,7 +10,7 @@ import Points from "./Point";
|
|
|
10
10
|
// import Title from './Title';
|
|
11
11
|
import Path from "./Path";
|
|
12
12
|
import { randomString } from "../../../utils";
|
|
13
|
-
const BarChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
13
|
+
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
14
14
|
labelsVisible,
|
|
15
15
|
labelsCharacterWidth,
|
|
16
16
|
labelsCountY,
|
package/components/chip/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const iconSizeMap = new Map([['small', `16px`], ['medium', `20px`], ['large', `2
|
|
|
15
15
|
const typographySizeMap = new Map([['small', 'p3'], ['medium', 'p2'], ['large', 'p1']]);
|
|
16
16
|
const paddingSizeMap = new Map([['small', `0px 6px`], ['medium', `0px 8px`], ['large', `0px 10px`]]);
|
|
17
17
|
const minHeightSizeMap = new Map([['small', `20px`], ['medium', `24px`], ['large', `28px`]]);
|
|
18
|
-
const Chip = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
18
|
+
const Chip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
19
19
|
if (!reference) reference = useRef(null);
|
|
20
20
|
const theme = useTheme();
|
|
21
21
|
const {
|
|
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/core';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
6
6
|
import { displayBlock, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
7
|
-
const Collapse = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
7
|
+
const Collapse = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
children,
|
|
9
9
|
className,
|
|
10
10
|
id,
|
|
@@ -8,7 +8,7 @@ import { bgColor, borderNone, flexShrink0, parseWidthHeight } from "../../styles
|
|
|
8
8
|
import { useTheme } from "../../theme";
|
|
9
9
|
import useThemeProps from "../../theme/utils/useThemeProps";
|
|
10
10
|
import { classNames, getProp } from "../../utils";
|
|
11
|
-
const Divider = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
11
|
+
const Divider = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
12
|
if (!reference) reference = useRef(null);
|
|
13
13
|
const theme = useTheme();
|
|
14
14
|
const {
|
|
@@ -127,7 +127,7 @@ const handleDownload = (url, name, onDownload) => {
|
|
|
127
127
|
const divideSizeMap = new Map([['B', 1], ['KB', 1024], ['MB', 1024 ** 2], ['GB', 1024 ** 3], ['TB', 1024 ** 4]]);
|
|
128
128
|
const viewTypeIconMap = new Map([['detail', 'ListView'], ['icon', 'IconView'], ['picture', 'ModuleView']]);
|
|
129
129
|
const viewTypeSwitchMap = new Map([['detail', 'icon'], ['icon', 'picture'], ['picture', 'detail']]);
|
|
130
|
-
const Attachment = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
130
|
+
const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
131
131
|
if (!reference) reference = useRef(null);
|
|
132
132
|
const theme = useTheme();
|
|
133
133
|
const {
|
|
@@ -7,7 +7,7 @@ import { useTheme } from "../../../theme";
|
|
|
7
7
|
import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
8
8
|
import { classNames, date as moment } from "../../../utils";
|
|
9
9
|
import { generateCalendarCSS, isAfterLimit, isBeforeLimit, isValidDate, onUpdateCalendar, renderHeader, renderNavigator } from "./function";
|
|
10
|
-
const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
10
|
+
const Calendar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
11
11
|
var _zoomLevel$get, _zoomLevel$get2;
|
|
12
12
|
if (!reference) reference = useRef(null);
|
|
13
13
|
const theme = useTheme();
|
|
@@ -9,7 +9,7 @@ import { useTheme } from "../../../theme";
|
|
|
9
9
|
import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
10
10
|
import { getProp } from "../../../utils";
|
|
11
11
|
import { generateCalendarCSS, isValidDate, onUpdateCalendar, renderHeader, renderNavigator } from "./function";
|
|
12
|
-
const CalendarRange = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
|
+
const CalendarRange = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
13
13
|
if (!reference) reference = useRef(null);
|
|
14
14
|
const theme = useTheme();
|
|
15
15
|
const {
|
|
@@ -9,7 +9,7 @@ import { useTheme } from "../../../theme";
|
|
|
9
9
|
import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
10
10
|
import { classNames, getProp, randomString, refType as ref } from "../../../utils";
|
|
11
11
|
const padding = 0.75;
|
|
12
|
-
const Checkbox = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
|
+
const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
13
13
|
if (!reference) reference = useRef(null);
|
|
14
14
|
|
|
15
15
|
// props priority: `inProps` > `themeDefaultProps`
|
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import { displayBlock, pointerEventsNone, positionRelative, textColor, userSelectNone } from "../../../styles/general";
|
|
8
8
|
import { getProp } from "../../../utils";
|
|
9
9
|
import { useTheme } from "../../../theme";
|
|
10
|
-
const Control = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
10
|
+
const Control = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
11
11
|
children,
|
|
12
12
|
className,
|
|
13
13
|
disabled,
|
|
@@ -14,7 +14,7 @@ import useDateInputState from "./useDateInputState";
|
|
|
14
14
|
import useIsFocused from "./useIsFocused";
|
|
15
15
|
import useKeyboardInputEvent from "./useKeyboardInputEvent";
|
|
16
16
|
import { getInputSelectedState, isFieldFullValue, useEventCallback, useInputSelection, validateDateTime } from "./utils";
|
|
17
|
-
const DateInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
17
|
+
const DateInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
18
18
|
if (!reference) reference = useRef(null);
|
|
19
19
|
|
|
20
20
|
// props priority: `inProps` > `themeDefaultProps`
|
|
@@ -42,7 +42,7 @@ const parseValueToDate = valueProp => {
|
|
|
42
42
|
return valueProp;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
const DatePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
45
|
+
const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
46
46
|
var _ref, _pickerReturnFormat$g, _ipRef$current, _ipRef$current2;
|
|
47
47
|
if (!reference) reference = useRef(null);
|
|
48
48
|
const theme = useTheme();
|
|
@@ -65,7 +65,7 @@ const isAfter = (max, time) => {
|
|
|
65
65
|
const parseDate = day => {
|
|
66
66
|
return Date.parse(new Date(day));
|
|
67
67
|
};
|
|
68
|
-
const DateRangePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
68
|
+
const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
69
69
|
// props priority: `inProps` > `themeDefaultProps`
|
|
70
70
|
const props = useThemeProps({
|
|
71
71
|
props: inProps,
|
|
@@ -7,7 +7,7 @@ import { getGlobal } from "../../../global";
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Fragment, forwardRef, memo, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import ReactDOM from 'react-dom';
|
|
10
|
-
import { animation, bgColor, border, borderBottom, borderBottomColor, borderColor, borderNone, borderRadius, bottom, boxBorder, breakWord, cursorDefault, cursorNotAllowed, cursorPointer, displayBlock, displayFlex, fill, flexRow, flexWrap, inset, insetX, invisible, italic, itemsCenter, justifyCenter, justifyStart, outlineNone,
|
|
10
|
+
import { animation, bgColor, border, borderBottom, borderBottomColor, borderColor, borderNone, borderRadius, bottom, boxBorder, breakWord, cursorDefault, cursorNotAllowed, cursorPointer, displayBlock, displayFlex, fill, flexRow, flexWrap, inset, insetX, invisible, italic, itemsCenter, justifyCenter, justifyStart, outlineNone, overflowScroll, overflowHidden, parseHeight, parseMaxHeight, parseMaxWidth, parseMinHeight, parseWidth, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative, textColor, top, userSelectNone, z } from "../../../styles/general";
|
|
11
11
|
import { useTheme } from "../../../theme";
|
|
12
12
|
import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
13
13
|
import { classNames, getProp, isMobile, randomString } from "../../../utils";
|
|
@@ -47,7 +47,7 @@ const uniqBy = (arr, iteratee) => {
|
|
|
47
47
|
return true;
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
const Dropdown = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
50
|
+
const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
51
51
|
if (!reference) reference = useRef(null);
|
|
52
52
|
const theme = useTheme();
|
|
53
53
|
const {
|
|
@@ -167,7 +167,8 @@ const Dropdown = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
167
167
|
const _OverFlowPopoverCSS = OverFlowPopoverCSS(theme);
|
|
168
168
|
const _IconCSS = IconCSS(viewType, theme);
|
|
169
169
|
const _DropdownFormCSS = viewType === 'outlined' ? DropdownFormOutlinedCSS(disabled, readOnly, placeholder, theme) : DropdownFormCSS(viewType, multiple, disabled, readOnly, placeholder, _DropdownInputCSS.name, theme);
|
|
170
|
-
const _DropdownListCSS = DropdownListCSS(
|
|
170
|
+
const _DropdownListCSS = DropdownListCSS(theme);
|
|
171
|
+
const _DropdownBoxCSS = DropdownBoxCSS(loadingState, theme);
|
|
171
172
|
const _DropdownItemCSS = DropdownItemCSS(multiple, selectBox, theme);
|
|
172
173
|
const _DropdownRootCSS = DropdownRootCSS(_DropdownFormCSS.name, _DropdownInputCSS.name, theme);
|
|
173
174
|
const _CheckBoxCSS = CheckBoxCSS(theme);
|
|
@@ -210,7 +211,8 @@ const Dropdown = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
210
211
|
defaultValue: txtSearch,
|
|
211
212
|
onChange: onChangeInput,
|
|
212
213
|
style: {
|
|
213
|
-
marginBottom: 1
|
|
214
|
+
marginBottom: 1,
|
|
215
|
+
boxShadow: 'unset'
|
|
214
216
|
},
|
|
215
217
|
onKeyDown: pressESCHandler,
|
|
216
218
|
readOnly: loadingState,
|
|
@@ -220,6 +222,7 @@ const Dropdown = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
220
222
|
padding: ${spacing([2, 4])};
|
|
221
223
|
`
|
|
222
224
|
}, getGlobal('selected'), " ", (valueMulti === null || valueMulti === void 0 ? void 0 : valueMulti.length) || 0, "/", maximumSelectionLength) : null, jsx("div", {
|
|
225
|
+
css: _DropdownBoxCSS,
|
|
223
226
|
className: 'DGN-Dropdown-Box'
|
|
224
227
|
}, dropdown), loadingState ? jsx("div", {
|
|
225
228
|
css: LoadingProgressCSS,
|
|
@@ -1499,20 +1502,23 @@ const DropdownFormCSS = (viewType, multiple, disabled, readOnly, placeholder, Dr
|
|
|
1499
1502
|
transition: all 0.2s ease;
|
|
1500
1503
|
}
|
|
1501
1504
|
`;
|
|
1502
|
-
const DropdownListCSS = (
|
|
1503
|
-
colors
|
|
1504
|
-
spacing
|
|
1505
|
+
const DropdownListCSS = ({
|
|
1506
|
+
colors
|
|
1505
1507
|
}) => css`
|
|
1506
1508
|
${displayBlock};
|
|
1507
1509
|
${positionRelative};
|
|
1508
1510
|
${boxBorder};
|
|
1509
1511
|
${borderRadius(4)};
|
|
1510
1512
|
${parseWidth('100%')};
|
|
1511
|
-
${parseMaxHeight(280)};
|
|
1512
|
-
${loading ? overflowHidden : overflowAuto};
|
|
1513
1513
|
${bgColor(getProp(colors, 'system/standard'))};
|
|
1514
|
-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
1515
1514
|
${z(1)};
|
|
1515
|
+
${overflowHidden}
|
|
1516
|
+
`;
|
|
1517
|
+
const DropdownBoxCSS = (loading, {
|
|
1518
|
+
colors
|
|
1519
|
+
}) => css`
|
|
1520
|
+
${loading ? overflowHidden : overflowScroll};
|
|
1521
|
+
${parseMaxHeight(280)};
|
|
1516
1522
|
&::-webkit-scrollbar {
|
|
1517
1523
|
${borderRadius(4)};
|
|
1518
1524
|
${parseWidth(24)};
|
|
@@ -1526,9 +1532,6 @@ const DropdownListCSS = (loading, {
|
|
|
1526
1532
|
mix-blend-mode: normal;
|
|
1527
1533
|
background-clip: content-box;
|
|
1528
1534
|
}
|
|
1529
|
-
.DGN-UI-TreeView {
|
|
1530
|
-
padding: ${spacing([0.25])};
|
|
1531
|
-
}
|
|
1532
1535
|
`;
|
|
1533
1536
|
const DropdownItemCSS = (multiple, selectBox, {
|
|
1534
1537
|
colors,
|
|
@@ -10,7 +10,7 @@ import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
|
10
10
|
import { classNames, getProp } from "../../../utils";
|
|
11
11
|
const regexBetween = /[^{}]+(?=})/g;
|
|
12
12
|
const regexInclude = /{|}/g;
|
|
13
|
-
const DropdownBox = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference) => {
|
|
13
|
+
const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
14
14
|
if (!reference) reference = useRef(null);
|
|
15
15
|
const theme = useTheme();
|
|
16
16
|
const {
|
|
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/core';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Children, forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';
|
|
6
6
|
import { useTheme } from "../../../theme";
|
|
7
|
-
const FormGroup = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
7
|
+
const FormGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
fullWidth,
|
|
9
9
|
oneHelperText,
|
|
10
10
|
marginRight,
|