diginet-core-ui 1.4.52-beta.9 → 1.4.53

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.
Files changed (107) hide show
  1. package/assets/images/menu/dhr/MHRP09N0036.svg +13 -0
  2. package/assets/images/menu/dhr/MHRP09N0037.svg +14 -0
  3. package/assets/images/menu/dhr/MHRP25N0009.svg +15 -0
  4. package/components/accordion/details.js +1 -1
  5. package/components/accordion/group.js +1 -1
  6. package/components/accordion/index.js +1 -1
  7. package/components/accordion/summary.js +1 -1
  8. package/components/alert/index.js +1 -1
  9. package/components/alert/notify.js +1 -1
  10. package/components/avatar/index.js +2 -2
  11. package/components/badge/index.js +1 -1
  12. package/components/breadcrumb/index.js +1 -1
  13. package/components/button/icon.js +1 -1
  14. package/components/button/index.js +1 -1
  15. package/components/button/more.js +2 -2
  16. package/components/button/ripple-effect.js +1 -1
  17. package/components/card/body.js +1 -1
  18. package/components/card/extra.js +1 -1
  19. package/components/card/footer.js +1 -1
  20. package/components/card/header.js +1 -1
  21. package/components/card/index.js +1 -1
  22. package/components/chart/Pie/Circle.js +1 -1
  23. package/components/chart/Pie/Sector.js +1 -1
  24. package/components/chart/Pie/index.js +1 -1
  25. package/components/chart/Pie-v2/Circle.js +1 -1
  26. package/components/chart/Pie-v2/Sector.js +1 -1
  27. package/components/chart/Pie-v2/index.js +1 -1
  28. package/components/chart/bar/Bar.js +1 -1
  29. package/components/chart/bar/index.js +1 -1
  30. package/components/chart/bar-v2/Bar.js +1 -1
  31. package/components/chart/bar-v2/index.js +1 -1
  32. package/components/chart/line/index.js +1 -1
  33. package/components/chart/line-v2/index.js +1 -1
  34. package/components/check-text/index.js +1 -1
  35. package/components/check-text/interview-confirmation.js +1 -1
  36. package/components/check-text/interview-status.js +1 -1
  37. package/components/chip/index.js +1 -1
  38. package/components/collapse/index.js +1 -1
  39. package/components/divider/index.js +1 -1
  40. package/components/form-control/attachment/index.js +3 -3
  41. package/components/form-control/calendar/function.js +1 -1
  42. package/components/form-control/calendar/index.js +2 -2
  43. package/components/form-control/calendar/range.js +1 -1
  44. package/components/form-control/checkbox/index.js +1 -1
  45. package/components/form-control/control/index.js +1 -1
  46. package/components/form-control/date-input/index.js +1 -1
  47. package/components/form-control/date-picker/index.js +1 -1
  48. package/components/form-control/date-range-picker/index.js +1 -1
  49. package/components/form-control/dropdown/index.js +1 -1
  50. package/components/form-control/dropdown-box/index.js +22 -64
  51. package/components/form-control/form-group/index.js +1 -1
  52. package/components/form-control/helper-text/index.js +1 -1
  53. package/components/form-control/input-base/UncontrolledInputBase.js +1 -1
  54. package/components/form-control/input-base/index.js +1 -1
  55. package/components/form-control/label/index.js +1 -1
  56. package/components/form-control/money-input/index.js +28 -11
  57. package/components/form-control/number-input/index2.js +24 -27
  58. package/components/form-control/password-input/index.js +1 -1
  59. package/components/form-control/phone-input/index.js +1 -1
  60. package/components/form-control/radio/index.js +1 -1
  61. package/components/form-control/text-input/index.js +1 -1
  62. package/components/form-control/time-picker/index.js +1 -1
  63. package/components/form-control/time-picker/v2/index.js +1 -1
  64. package/components/form-control/toggle/index.js +1 -1
  65. package/components/form-view/input.js +1 -1
  66. package/components/grid/index.js +1 -1
  67. package/components/image/index.js +1 -1
  68. package/components/list/list-item-action.js +1 -1
  69. package/components/list/list-item-icon.js +1 -1
  70. package/components/list/list-item-text.js +1 -1
  71. package/components/list/list-item.js +1 -1
  72. package/components/list/list.js +1 -1
  73. package/components/list/sub-header.js +1 -1
  74. package/components/modal/body.js +1 -1
  75. package/components/modal/footer.js +1 -1
  76. package/components/modal/header.js +1 -1
  77. package/components/modal/index.js +1 -1
  78. package/components/modal/modal.js +1 -1
  79. package/components/others/option-wrapper/index.js +1 -1
  80. package/components/paging/page-info.js +1 -1
  81. package/components/paging/page-selector.js +1 -1
  82. package/components/paper/index.js +1 -1
  83. package/components/popover/body.js +1 -1
  84. package/components/popover/footer.js +1 -1
  85. package/components/popover/header.js +1 -1
  86. package/components/popover/index.js +14 -14
  87. package/components/popup/index.js +1 -1
  88. package/components/popup/v2/index.js +1 -1
  89. package/components/progress/circular.js +1 -1
  90. package/components/progress/linear.js +1 -1
  91. package/components/rating/index.js +1 -1
  92. package/components/skeleton/index.js +1 -1
  93. package/components/slider/slider-container.js +1 -1
  94. package/components/slider/slider-item.js +1 -1
  95. package/components/status/index.js +1 -1
  96. package/components/tab/tab-container.js +1 -1
  97. package/components/tab/tab-header.js +1 -1
  98. package/components/tab/tab-panel.js +1 -1
  99. package/components/tab/tab.js +1 -1
  100. package/components/tooltip/index.js +1 -1
  101. package/components/transfer/index.js +1 -1
  102. package/components/tree-view/index.js +1 -1
  103. package/components/typography/index.js +1 -1
  104. package/icons/effect.js +1 -1
  105. package/icons/menu/v2/index.js +1 -1
  106. package/package.json +44 -78
  107. package/readme.md +7 -0
@@ -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_2302_32)">
3
+ <path d="M0 32.6C0 32.8 0.1 33 0.3 33.1C4.1 35 8 36.9 11.8 38.8C11.9 38.9 12 38.9 12.1 39C12.1 39 12.1 39 12.2 39C12.2 37 12.2 35 12.2 32.9H21.4C21.9 32.9 22.3 32.5 22.3 32V21L20.3 23V30.9C17.6 30.9 14.9 30.9 12.2 30.9C12.2 30.8 12.2 30.6 12.2 30.5C12.2 24.8 12.2 12.6 12.2 7C12.2 6.5 11.9 6 11.4 5.7C9.1 4.5 6.8 3.4 4.4 2.2C4.4 2.2 4.3 2.1 4.1 2C9.5 2 14.9 2 20.2 2V11L22.2 13V0.9C22.2 0.4 21.8 0 21.3 0H0C0 0.1 0 0.2 0 0.3C0 8.9 0 24 0 32.6ZM8.4 22.5C8.4 22 8.8 21.6 9.3 21.6C9.8 21.6 10.2 22 10.2 22.5C10.2 23 9.8 23.4 9.3 23.4C8.9 23.4 8.4 23 8.4 22.5Z" fill="#FFAA00"/>
4
+ <path d="M32.8002 12.7V22.2C32.8002 22.8 33.6002 23.2 34.0002 22.7L38.8002 17.9C39.1002 17.6 39.1002 17.2 38.8002 16.9L34.0002 12.2C33.6002 11.8 32.8002 12.1 32.8002 12.7Z" fill="#FF4444"/>
5
+ <path d="M24.8002 12.7V22.2C24.8002 22.8 25.6002 23.2 26.0002 22.7L30.8002 17.9C31.1002 17.6 31.1002 17.2 30.8002 16.9L26.0002 12.1C25.6002 11.8 24.8002 12.1 24.8002 12.7Z" fill="#FF4444"/>
6
+ <path d="M16.7002 12.7V22.2C16.7002 22.8 17.5002 23.2 17.9002 22.7L22.7002 17.9C23.0002 17.6 23.0002 17.2 22.7002 16.9L17.9002 12.1C17.5002 11.8 16.7002 12.1 16.7002 12.7Z" fill="#FF4444"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2302_32">
10
+ <rect width="39" height="39" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,14 @@
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_2302_42)">
3
+ <path d="M21.4 0H0V0.3C0 8.9 0 24 0 32.6C0 32.8 0.1 33 0.3 33.1C4.1 35 8 36.9 11.8 38.8C11.9 38.9 12 38.9 12.1 39H12.2V32.9H18.8C18.5 32.3 18.4 31.6 18.2 30.9H12.2V6.9C12.2 6.4 11.9 5.9 11.4 5.6C9.1 4.5 6.8 3.4 4.5 2.2C4.4 2.2 4.3 2.1 4.1 2H20.2V7L22.2 9V0.9C22.3 0.4 21.9 0 21.4 0ZM9.4 21.5C9.9 21.5 10.4 21.9 10.4 22.5C10.4 23.1 10 23.4 9.4 23.4C8.8 23.4 8.4 23 8.4 22.5C8.4 22 8.9 21.5 9.4 21.5Z" fill="#FFAA00"/>
4
+ <path d="M32.4999 7.29994V17.1999C32.4999 17.8999 33.2999 18.1999 33.7999 17.6999L38.7999 12.6999C39.0999 12.3999 39.0999 11.8999 38.7999 11.5999L33.7999 6.59994C33.3999 6.29994 32.4999 6.69994 32.4999 7.29994Z" fill="#FF4444"/>
5
+ <path d="M24.2999 7.29994V17.1999C24.2999 17.8999 25.0999 18.1999 25.5999 17.6999L30.5999 12.6999C30.8999 12.3999 30.8999 11.8999 30.5999 11.5999L25.5999 6.59994C25.0999 6.29994 24.2999 6.69994 24.2999 7.29994Z" fill="#FF4444"/>
6
+ <path d="M15.8999 7.29994V17.1999C15.8999 17.8999 16.6999 18.1999 17.1999 17.6999L22.1999 12.6999C22.4999 12.3999 22.4999 11.8999 22.1999 11.5999L17.1999 6.59994C16.6999 6.29994 15.8999 6.69994 15.8999 7.29994Z" fill="#FF4444"/>
7
+ <path d="M34.4 20.6C32.8 19.6 31 19 29 19C28.5 19 28.1 19 27.7 19.1C26.9 19.2 26 19.4 25.3 19.7C24.9 19.9 24.4 20.1 24 20.3C22 21.4 20.5 23.2 19.7 25.3C19.2 26.5 19 27.7 19 29C19 34.5 23.5 39 29 39C34.5 39 39 34.5 39 29C39 25.5 37.1 22.3 34.4 20.6ZM35.2 25.8L29.3 33.8C29 34.3 28.4 34.6 27.8 34.6H27.7C27.2 34.6 26.6 34.4 26.3 34L22.8 30.2C22.3 29.6 22.3 28.7 22.9 28.1C23.2 27.8 23.5 27.7 23.9 27.7C24.3 27.7 24.7 27.9 25 28.2L27.5 30.9L27.6 31C27.7 31 27.7 31 27.7 30.9L32.7 24.1C33 23.7 33.4 23.5 33.9 23.5C34.2 23.5 34.5 23.6 34.8 23.8C35.6 24.2 35.7 25.1 35.2 25.8Z" fill="#1CA261"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_2302_42">
11
+ <rect width="39" height="39" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,15 @@
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_2319_30)">
3
+ <path d="M19.5 19.2015C19.9 19.5995 20.3 19.898 20.8 20.2959C21.8 20.8929 23 21.4898 24.1 21.6888C24.8 21.8878 26.6 21.7883 26.9 21.7883C27.8 21.6888 28.7 21.4898 29.5 21.1913C30.5 20.7934 31.4 20.2959 32.1 19.5995C31.9 18.6046 31.7 17.6097 31.5 16.7143C31.3 15.9184 30.8 15.4209 30 15.4209H21.6C20.7 15.4209 20.2 15.9184 20 16.8138C19.9 17.5102 19.7 18.3061 19.5 19.2015Z" fill="#2680EB"/>
4
+ <path d="M25.8 13.8291C28.5 13.8291 30.6 11.6403 30.6 8.9541C30.6 6.26788 28.4 4.0791 25.8 4.0791C23.2 4.0791 21 6.26788 21 8.9541C21 11.7398 23.2 13.9286 25.8 13.8291Z" fill="#2680EB"/>
5
+ <path d="M35.2001 3.78061C32.8001 1.39286 29.5001 0 26.0001 0C25.7001 0 25.4001 0 25.1001 0C25.0001 0 25.0001 0 24.9001 0H9.1001C8.5001 0 8.0001 0.497449 8.0001 1.09439C8.0001 1.69133 8.5001 2.18878 9.1001 2.18878H18.6001C18.0001 2.58673 17.4001 3.08418 16.8001 3.68112C16.4001 4.07908 16.1001 4.47704 15.7001 4.875H7.0001C6.4001 4.97449 5.9001 5.47194 5.9001 6.06888C5.9001 6.66582 6.4001 7.26275 7.0001 7.26275H14.3001C13.9001 8.15816 13.6001 9.05357 13.3001 9.94898H9.0001C8.4001 9.94898 7.9001 10.4464 7.9001 11.0434C7.9001 11.6403 8.4001 12.1378 9.0001 12.1378H13.0001C13.0001 12.3367 13.0001 12.5357 13.0001 12.7347C13.0001 13.4311 13.1001 14.1276 13.2001 14.9235H5.0001C4.4001 14.9235 3.9001 15.4209 3.9001 16.0179C3.9001 16.6148 4.4001 17.1122 5.0001 17.1122H13.9001C14.3001 18.2066 14.9001 19.301 15.6001 20.2959L1.6001 31.3393C-0.3999 33.2296 -0.5999 36.2143 1.1001 37.8061C2.8001 39.4974 5.7001 39.2985 7.7001 37.4082L19.0001 23.5791C21.1001 24.8724 23.5001 25.5689 26.0001 25.5689C29.5001 25.5689 32.8001 24.176 35.2001 21.7883C37.6001 19.4005 39.0001 16.1173 39.0001 12.7347C39.0001 9.35204 37.6001 6.16837 35.2001 3.78061ZM33.4001 20.0969C32.4001 21.0918 31.3001 21.7883 30.0001 22.2857C28.7001 22.7832 27.3001 23.0816 26.0001 23.0816C23.9001 23.0816 21.9001 22.4847 20.2001 21.2908C18.5001 20.0969 17.1001 18.5051 16.3001 16.6148C15.5001 14.7245 15.3001 12.6352 15.7001 10.6454C16.1001 8.65561 17.1001 6.76531 18.6001 5.37245C20.1001 3.97959 22.0001 2.98469 24.0001 2.58673C26.0001 2.18878 28.2001 2.38776 30.1001 3.18367C32.0001 3.97959 33.6001 5.27296 34.8001 7.06378C35.9001 8.7551 36.6001 10.7449 36.5001 12.8342C36.5001 14.227 36.2001 15.5204 35.7001 16.8138C35.2001 18.0077 34.4001 19.102 33.4001 20.0969Z" fill="#FF8C00"/>
6
+ <path d="M1.1001 12.2372H5.8001C6.4001 12.2372 6.9001 11.7398 6.9001 11.1429C6.9001 10.5459 6.5001 9.94898 5.9001 9.94898H1.1001C0.5001 9.94898 0.000100322 10.4464 0.000100322 11.0434C0.000100322 11.6403 0.5001 12.2372 1.1001 12.2372Z" fill="#FF8C00"/>
7
+ <path d="M3.0001 7.26275H4.0001C4.6001 7.26275 5.1001 6.76531 5.1001 6.16837C5.1001 5.57143 4.6001 4.97449 4.0001 4.97449H3.0001C2.4001 4.97449 1.9001 5.47194 1.9001 6.06888C1.9001 6.66582 2.4001 7.26275 3.0001 7.26275Z" fill="#FF8C00"/>
8
+ <path d="M11.0001 22.1862C11.6001 22.1862 12.1001 21.6888 12.1001 21.0918C12.1001 20.4949 11.6001 19.898 11.0001 19.898H8.1001C7.5001 19.898 7.0001 20.3954 7.0001 20.9923C7.0001 21.5893 7.5001 22.0867 8.1001 22.0867H11.0001V22.1862Z" fill="#FF8C00"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2319_30">
12
+ <rect width="39" height="39" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </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,
@@ -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`
@@ -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`
@@ -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,
@@ -13,7 +13,7 @@ const colorNum = {
13
13
  option2: 2,
14
14
  option3: 3
15
15
  };
16
- const InterviewStatus = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
16
+ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
17
17
  disabled,
18
18
  readOnly,
19
19
  chosen,
@@ -12,7 +12,7 @@ const colorNum = {
12
12
  Maybe: 1,
13
13
  No: 2
14
14
  };
15
- const InterviewConfirmation = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
15
+ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
16
16
  disabled,
17
17
  readOnly,
18
18
  chosen,
@@ -12,7 +12,7 @@ const colorNum = {
12
12
  Started: 1,
13
13
  Cancel: 2
14
14
  };
15
- const InterviewStatus = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
15
+ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
16
16
  disabled,
17
17
  readOnly,
18
18
  chosen,
@@ -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 {
@@ -454,6 +454,7 @@ const Attachment = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
454
454
  allNewAttached: tempNewDataState
455
455
  });
456
456
  !!onRemoveProp && onRemoveProp(recentRemovedAttached);
457
+ removeActiveChosenItem();
457
458
  onClosePopup();
458
459
  };
459
460
  const clearAllAttached = (confirmPopup = false) => {
@@ -689,13 +690,12 @@ const Attachment = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
689
690
  }
690
691
  };
691
692
  const clickOutOfItem = e => {
692
- var _popupRef$current, _popupRef$current$sty;
693
693
  if (!attachedRef || !attachedRef.current) {
694
694
  document.removeEventListener('keydown', onKeyDown);
695
695
  document.removeEventListener('click', clickOutOfItem);
696
696
  return;
697
697
  }
698
- if (!(attachedRef.current.contains(e.target) && attachedRef.current !== e.target) && !attachmentHandleIconRef.current.contains(e.target) && !isDeleteAll.current && (((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : (_popupRef$current$sty = _popupRef$current.style) === null || _popupRef$current$sty === void 0 ? void 0 : _popupRef$current$sty.display) !== 'flex' || popupRef.current.querySelector('button.filled.info').contains(e.target))) {
698
+ if (!(attachedRef.current.contains(e.target) && attachedRef.current !== e.target) && !attachmentHandleIconRef.current.contains(e.target) && !isDeleteAll.current && !(popupRef.current instanceof Element)) {
699
699
  removeAllChosenItems();
700
700
  removeActiveChosenItem();
701
701
  }
@@ -652,7 +652,7 @@ const renderNavigator = (className, refs, dbLeftFn, leftFn, rightFn, dbRightFn,
652
652
  color: 'primary',
653
653
  type: 'h3',
654
654
  ref: refs.content,
655
- format: ['sentence']
655
+ format: ['lowercase']
656
656
  }))), jsx("div", {
657
657
  className: className.navigator.around
658
658
  }, jsx(ButtonIcon, {
@@ -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();
@@ -226,7 +226,7 @@ const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
226
226
  * START EFFECT
227
227
  */
228
228
  useEffect(() => {
229
- if (defaultValue && defaultValue !== '' && isValidDate(defaultValue) && !value) {
229
+ if (defaultValue && defaultValue !== '' && isValidDate(defaultValue)) {
230
230
  if (isBeforeLimit(min, defaultValue)) {
231
231
  onUpdate(min);
232
232
  } else if (isAfterLimit(max, defaultValue)) {
@@ -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,
@@ -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 {