diginet-core-ui 1.4.54 → 1.4.55-beta.2

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 (109) hide show
  1. package/assets/images/menu/dhr/MHRM09N1401.svg +14 -0
  2. package/assets/images/menu/dhr/MHRM09N1402.svg +15 -0
  3. package/assets/images/menu/dhr/MHRM21N0001.svg +13 -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 +16 -7
  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 +22 -22
  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 +274 -38
  49. package/components/form-control/dropdown/index.js +34 -11
  50. package/components/form-control/dropdown-box/index.js +64 -22
  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 +1 -1
  57. package/components/form-control/number-input/index2.js +5 -2
  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 +35 -35
  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/global/index.js +3 -0
  105. package/icons/basic.js +134 -0
  106. package/icons/effect.js +1 -1
  107. package/icons/menu/v2/index.js +1 -1
  108. package/package.json +78 -44
  109. package/readme.md +10 -0
@@ -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_2363_38)">
3
+ <path d="M39 9.7C38.9 9.1 38.9 8.4 38.7 7.7C37.6 3.4 33.8 0.3 29.2 0H29C28.9 0 28.8 0 28.6 0C27.9 0 27.5 0.5 27.5 1.1C27.5 1.7 28 2.1 28.6 2.1H28.7C29 2.1 29.3 2.1 29.6 2.2C33.7 2.7 36.8 6.1 36.9 10.1C36.9 10.8 37.3 11.2 37.9 11.2C38.2 11.2 38.5 11.1 38.7 10.9C39 10.6 39 10.3 39 9.9V9.7Z" fill="#FFC766"/>
4
+ <path d="M35.3 10.1C35.3 10 35.3 9.9 35.3 9.7C34.9 7.3 33.6 5.6 31.4 4.5C30.4 4 29.3 3.8 28.1 3.8C27.5 3.8 27.1 4.2 27.1 4.7C27.1 5.2 27.4 5.7 27.9 5.8C28 5.8 28.1 5.8 28.2 5.8H28.3C29.9 5.9 31.2 6.5 32.2 7.6C32.9 8.4 33.3 9.4 33.3 10.4C33.3 11 33.7 11.5 34.3 11.5C34.9 11.5 35.3 11 35.3 10.4V10.1Z" fill="#FFC766"/>
5
+ <path d="M0 29.3C0.1 29.9 0.1 30.6 0.3 31.3C1.4 35.6 5.2 38.7 9.8 39H10C10.1 39 10.2 39 10.4 39C11.1 39 11.5 38.5 11.5 37.9C11.5 37.3 11 36.9 10.4 36.9H10.3C10 36.9 9.7 36.9 9.4 36.8C5.2 36.4 2.1 33 2.1 29C2.1 28.3 1.7 27.9 1.1 27.9C0.8 27.9 0.5 28 0.3 28.2C0.1 28.4 0 28.7 0 29V29.3Z" fill="#FFC766"/>
6
+ <path d="M3.7 28.9C3.7 29 3.7 29.1 3.7 29.3C4.1 31.7 5.4 33.4 7.6 34.5C8.6 35 9.7 35.2 10.9 35.2C11.5 35.2 11.9 34.8 11.9 34.3C11.9 33.8 11.6 33.3 11.1 33.2C11 33.2 10.9 33.2 10.8 33.2H10.7C9.1 33.1 7.8 32.5 6.8 31.4C6.1 30.6 5.7 29.6 5.7 28.6C5.7 28 5.3 27.5 4.7 27.5C4.1 27.5 3.7 28 3.7 28.6V28.9Z" fill="#FFC766"/>
7
+ <path d="M31.8001 26.9999C31.8001 29.8999 30.6001 32.1999 28.2001 33.7999C24.7001 36.1999 20.4001 35.7999 17.3001 32.6999L11.1001 26.4999L9.30009 24.6999C7.70009 23.0999 6.10009 21.4999 4.50009 19.8999C4.10009 19.3999 3.90009 18.9999 4.00009 18.3999C4.10009 17.7999 4.50009 17.3999 5.10009 17.1999C5.70009 16.9999 6.30009 17.1999 6.70009 17.5999C8.20009 19.0999 9.70009 20.5999 11.2001 22.0999L13.0001 23.8999C13.0001 23.9999 13.1001 23.9999 13.2001 24.0999C13.5001 24.2999 13.8001 24.2999 14.1001 24.0999C14.4001 23.7999 14.4001 23.4999 14.2001 23.1999C14.2001 23.0999 14.1001 23.0999 14.0001 22.9999L7.40009 16.3999C6.50009 15.4999 5.70009 14.6999 4.80009 13.7999C4.40009 13.3999 4.30009 12.8999 4.40009 12.3999C4.50009 11.8999 4.80009 11.4999 5.30009 11.1999C5.90009 10.8999 6.60009 11.0999 7.20009 11.5999L12.9001 17.2999L16.2001 20.5999C16.3001 20.6999 16.3001 20.6999 16.4001 20.7999C16.7001 20.9999 17.0001 20.9999 17.3001 20.7999C17.6001 20.5999 17.6001 20.1999 17.4001 19.9999C17.4001 19.8999 17.3001 19.8999 17.2001 19.7999L7.40009 9.99994C7.30009 9.89994 7.20009 9.69994 7.10009 9.59994C6.70009 9.09994 6.70009 8.29994 7.10009 7.69994C7.40009 7.29994 7.80009 7.09994 8.20009 7.09994C8.70009 7.09994 9.20009 7.29994 9.60009 7.59994C11.9001 9.99994 14.4001 12.3999 16.7001 14.6999L19.4001 17.2999L19.6001 17.4999C19.9001 17.7999 20.3001 17.7999 20.5001 17.4999C20.8001 17.1999 20.8001 16.8999 20.5001 16.4999C20.4001 16.3999 20.4001 16.3999 20.3001 16.2999L12.8001 8.99994C12.4001 8.59994 12.2001 8.09994 12.3001 7.59994C12.4001 6.99994 12.8001 6.49994 13.4001 6.29994C14.0001 6.09994 14.6001 6.19994 15.0001 6.69994C18.9001 10.5999 22.8001 14.4999 26.7001 18.3999C26.9001 18.5999 27.2001 18.8999 27.6001 18.6999C28.0001 18.4999 28.0001 18.0999 28.0001 17.8999V17.3999C28.0001 16.0999 28.0001 14.6999 28.0001 13.3999C28.0001 12.2999 28.8001 11.4999 29.9001 11.4999C31.0001 11.4999 31.8001 12.2999 31.8001 13.3999V16.3999C31.8001 19.7999 31.8001 23.3999 31.8001 26.9999Z" fill="#FFAA00"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_2363_38">
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_2363_39)">
3
+ <path d="M38.6992 9.52442L29.5758 0.401028C29.275 0.100257 28.9743 0 28.6735 0H12.6324C10.7275 0 9.22363 1.50386 9.22363 3.40874V6.01542C9.72492 6.11568 10.2262 6.3162 10.527 6.71722L11.4293 7.61954V3.40874C11.4293 2.8072 11.9306 2.30591 12.5321 2.30591H27.4704V8.02057C27.4704 9.92545 28.9743 11.4293 30.8792 11.4293H36.5938V35.6915C36.5938 36.2931 36.0925 36.7943 35.491 36.7943H12.6324C12.0308 36.7943 11.5295 36.2931 11.5295 35.6915V31.8817C11.4293 31.7815 11.329 31.6812 11.2288 31.581L9.22363 29.5758V35.5913C9.22363 37.4961 10.7275 39 12.6324 39H35.5912C37.4961 39 39 37.4961 39 35.5913V10.3265C39 10.0257 38.8997 9.72493 38.6992 9.52442ZM30.9794 9.12339C30.3779 9.12339 29.7763 8.62211 29.7763 8.02057V3.91003L34.9897 9.12339H30.9794Z" fill="#2680EB"/>
4
+ <path d="M34.0002 26.3C34.0002 26.9 33.5002 27.4 32.9002 27.4H25.8002C25.9002 26.8 26.0002 26.2 26.0002 25.6V25.1H32.9002C33.5002 25.2 34.0002 25.7 34.0002 26.3Z" fill="#2680EB"/>
5
+ <path d="M34.0002 21.2C34.0002 21.8 33.5002 22.3 32.9002 22.3H26.0002C26.0002 21.5 26.0002 20.8 26.0002 20H32.9002C33.5002 20.1 34.0002 20.6 34.0002 21.2Z" fill="#2680EB"/>
6
+ <path d="M34.0002 16.1C34.0002 16.7 33.5002 17.3 32.9002 17.3H26.0002V15H32.9002C33.5002 15 34.0002 15.5 34.0002 16.1Z" fill="#2680EB"/>
7
+ <path d="M29.4002 31.4C29.4002 32 28.9002 32.5 28.3002 32.5H22.4002C23.3002 31.8 24.1002 31.1 24.7002 30.2H28.3002C28.9002 30.3 29.4002 30.8 29.4002 31.4Z" fill="#2680EB"/>
8
+ <path d="M25.0001 25.7C25.0001 28.3 23.9001 30.4 21.8001 31.8C18.7001 34 14.8001 33.6 12.1001 30.9L4.9001 23.7C3.5001 22.3 2.0001 20.8 0.600098 19.4C0.100098 18.9 -0.0999023 18.5 9.76566e-05 18C0.100098 17.4 0.400098 17.1 1.0001 16.9C1.6001 16.7 2.1001 16.9 2.5001 17.3C3.8001 18.6 5.2001 20 6.6001 21.3L8.3001 23C8.6001 23.2 8.9001 23.2 9.1001 23C9.4001 22.8 9.4001 22.5 9.2001 22.2C9.1001 22.2 9.0001 22.1 9.0001 22L3.0001 16.1C2.2001 15.3 1.4001 14.5 0.700098 13.8C0.400098 13.5 0.200098 13 0.300098 12.6C0.400098 12.1 0.700098 11.8 1.1001 11.6C1.7001 11.3 2.3001 11.5 2.8001 12L8.0001 17L11.0001 20C11.1001 20.1 11.1001 20.1 11.2001 20.2C11.5001 20.4 11.7001 20.4 12.0001 20.2C12.2001 20 12.3001 19.7 12.1001 19.4C12.1001 19.3 12.0001 19.3 11.9001 19.2L3.2001 10.4C3.1001 10.3 3.0001 10.2 2.9001 10.1C2.5001 9.6 2.6001 8.9 2.9001 8.4C3.2001 8.1 3.5001 7.9 3.9001 7.9C4.3001 7.9 4.8001 8.1 5.1001 8.4C7.2001 10.5 9.4001 12.7 11.5001 14.8L14.1001 17.4C14.4001 17.6 14.7001 17.6 14.9001 17.4C15.1001 17.2 15.1001 16.8 14.9001 16.5C14.8001 16.4 14.8001 16.4 14.7001 16.3L7.9001 9.5C7.6001 9.1 7.4001 8.7 7.5001 8.2C7.6001 7.6 7.9001 7.2 8.5001 7.1C9.0001 6.9 9.5001 7 9.9001 7.4C13.4001 10.9 16.9001 14.4 20.4001 17.9C20.6001 18.1 20.8001 18.3 21.2001 18.2C21.6001 18 21.6001 17.7 21.6001 17.5V17C21.6001 15.8 21.6001 14.6 21.6001 13.4C21.6001 12.4 22.3001 11.7 23.3001 11.7C24.3001 11.7 25.0001 12.4 25.0001 13.4V16.1C25.0001 19.2 25.0001 22.5 25.0001 25.7Z" fill="#FFAA00"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2363_39">
12
+ <rect width="39" height="39" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -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_2376_31)">
3
+ <path d="M34.4 6.99995C30.9 6.29995 27.6 5.09995 24.6 3.19995C23.3 2.39995 22 1.39995 20.8 0.399951C20.1 -0.200049 19 -0.200049 18.3 0.399951C17.1 1.39995 15.8 2.39995 14.4 3.19995C11.4 5.09995 8.1 6.39995 4.6 6.99995C3.7 7.19995 3 8.09995 3 8.99995V18.4C3 26.0999 7.3 33.2 14 36.4L18.7 38.7C19.2 39 19.9 39 20.4 38.7C20.4 38.7 22 37.9 24.4 36.7C26.7 35.5 28 34.6 28.8 33.9C29.3 33.5 29.9 33 30.3 32.5C33.9 29 36 23.9 36 18.5V8.99995C36 8.09995 35.3 7.19995 34.4 6.99995Z" fill="#1CA261"/>
4
+ <path d="M32.1 8.99995C29.2 8.39995 26.4 7.39995 23.8 5.79995C22.7 5.09995 21.6 4.29995 20.5 3.39995C19.9 2.89995 19 2.89995 18.3 3.39995C17.3 4.29995 16.2 5.09995 15 5.79995C12.6 7.29995 9.8 8.39995 6.9 8.99995C6.1 9.19995 5.5 9.89995 5.5 10.7V18.7C5.5 25.2 9.1 31.2 14.8 34L18.8 35.9C19.3 36.1 19.8 36.1 20.3 35.9C20.3 35.9 21.7 35.2 23.7 34.2C25.7 33.2 26.8 32.4 27.5 31.8C28 31.4 28.4 31 28.8 30.6C31.8 27.5 33.6 23.2 33.6 18.6V10.6C33.5 9.79995 32.9 9.09995 32.1 8.99995Z" fill="#72E395"/>
5
+ <path d="M29.8 10.9C27.4 10.4 25.1 9.59995 23 8.29995C22.1 7.69995 21.2 7.09995 20.3 6.39995C19.8 5.99995 19 5.99995 18.5 6.39995C17.7 7.09995 16.8 7.79995 15.8 8.29995C13.7 9.59995 11.4 10.4 9 10.9C8.4 11 7.9 11.6 7.9 12.3V18.7999C7.9 24.0999 10.9 28.9999 15.5 31.2999L18.7 32.9C19.1 33.1 19.5 33.1 19.9 32.9C19.9 32.9 21 32.3 22.7 31.5C24.3 30.7 25.2 30.1 25.8 29.6C26.2 29.3 26.5 29 26.9 28.6C29.4 26.1 30.8 22.4999 30.8 18.7999V12.3C30.9 11.6 30.5 11 29.8 10.9Z" fill="#1CA261"/>
6
+ <path d="M24.6 18.1H20.9V14.4C20.9 13.6 20.3 13 19.5 13C18.7 13 18.1 13.6 18.1 14.4V18.1H14.4C13.6 18.1 13 18.7 13 19.5C13 20.3 13.6 20.9 14.4 20.9H18.1V24.6C18.1 25.4 18.7 26 19.5 26C20.3 26 20.9 25.4 20.9 24.6V20.9H24.6C25.4 20.9 26 20.3 26 19.5C26 18.7 25.4 18.1 24.6 18.1Z" fill="white"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2376_31">
10
+ <rect width="39" height="39" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </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
 
@@ -29,7 +29,8 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referenc
29
29
  options,
30
30
  optionType,
31
31
  popoverProp,
32
- style
32
+ style,
33
+ onClick
33
34
  } = props;
34
35
  const isOptionFull = optionType === 'full';
35
36
  let anchor = anchorProp;
@@ -38,7 +39,8 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referenc
38
39
  const [iconState, setIconState] = useState(false);
39
40
  const _OptionFullCSS = OptionFullCSS(theme);
40
41
  const _PopoverCSS = PopoverCSS(isOptionFull, theme);
41
- const openPopover = () => {
42
+ const openPopover = e => {
43
+ onClick && onClick(e);
42
44
  setOpenState(true);
43
45
  };
44
46
  const closePopover = () => {
@@ -56,9 +58,11 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referenc
56
58
  });
57
59
  const renderOptions = () => {
58
60
  return options.map((item, idx) => {
59
- if (item !== null && item !== void 0 && item.hidden) return null;else if ( /*#__PURE__*/isValidElement(item)) return item;else {
61
+ if (item !== null && item !== void 0 && item.hidden) return null;else if (/*#__PURE__*/isValidElement(item)) return item;else {
60
62
  const icon = item === null || item === void 0 ? void 0 : item.icon;
61
63
  const label = item === null || item === void 0 ? void 0 : item.label;
64
+ const className = (item === null || item === void 0 ? void 0 : item.className) || '';
65
+ const style = (item === null || item === void 0 ? void 0 : item.style) || {};
62
66
  const action = () => {
63
67
  closePopover();
64
68
  if (typeof (item === null || item === void 0 ? void 0 : item.action) === 'function') item === null || item === void 0 ? void 0 : item.action();
@@ -67,7 +71,8 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referenc
67
71
  return isOptionFull ? jsx("button", {
68
72
  key: idx,
69
73
  css: _OptionFullCSS,
70
- className: 'DGN-UI-ButtonMore-Option',
74
+ className: `DGN-UI-ButtonMore-Option ${className}`,
75
+ style: style,
71
76
  onClick: action
72
77
  }, icon ? jsx(Icon, {
73
78
  className: 'DGN-UI-ButtonMore-Option-Icon',
@@ -197,14 +202,18 @@ ButtonMore.propTypes = {
197
202
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
198
203
  icon: PropTypes.string,
199
204
  action: PropTypes.func,
200
- hidden: PropTypes.bool
205
+ hidden: PropTypes.bool,
206
+ className: PropTypes.string,
207
+ style: PropTypes.object
201
208
  })),
202
209
  /** The variant of option's type. */
203
210
  optionType: PropTypes.oneOf(['full', 'icon']),
204
211
  /** [Props](https://core.diginet.com.vn/ui/?path=/docs/components-popover) applied to the main `Popover`. */
205
212
  popoverProp: PropTypes.object,
206
213
  /** Style inline of component. */
207
- style: PropTypes.object
214
+ style: PropTypes.object,
215
+ /** Callback fired when the component is clicked. */
216
+ onClick: PropTypes.func
208
217
  };
209
218
  export { ButtonMore };
210
219
  export default OptionWrapper(ButtonMore);
@@ -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 {
@@ -1442,17 +1442,17 @@ Attachment.propTypes = {
1442
1442
  allowSort: PropTypes.bool,
1443
1443
  /** Class for component. */
1444
1444
  className: PropTypes.string,
1445
- /** List attachment:<br />
1446
- * [{<br />
1447
- * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1448
- * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
1449
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1450
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1451
- * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1452
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1453
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1454
- * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1455
- * }, ...]
1445
+ /** List attachment:<br />
1446
+ * [{<br />
1447
+ * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1448
+ * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
1449
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1450
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1451
+ * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1452
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1453
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1454
+ * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1455
+ * }, ...]
1456
1456
  */
1457
1457
  data: PropTypes.array,
1458
1458
  /** The message to display when deleting files. */
@@ -1483,16 +1483,16 @@ Attachment.propTypes = {
1483
1483
  onChange: PropTypes.func,
1484
1484
  /** Download attached event, if not it will use default. */
1485
1485
  onDownload: PropTypes.func,
1486
- /**
1487
- * event when removed file(s)
1488
- *
1489
- * return data: {<br/>
1490
- * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1491
- * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1492
- * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1493
- * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1494
- * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1495
- * }
1486
+ /**
1487
+ * event when removed file(s)
1488
+ *
1489
+ * return data: {<br/>
1490
+ * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1491
+ * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1492
+ * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1493
+ * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1494
+ * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1495
+ * }
1496
1496
  */
1497
1497
  onRemove: PropTypes.func,
1498
1498
  /** View attached event, if not it will use default. */
@@ -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: ['lowercase']
655
+ format: ['sentence']
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)) {
229
+ if (defaultValue && defaultValue !== '' && isValidDate(defaultValue) && !value) {
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`