diginet-core-ui 1.3.88 → 1.3.89

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 (437) hide show
  1. package/assets/avatar/default.svg +3 -3
  2. package/assets/images/icons/wifi.svg +3 -3
  3. package/assets/images/menu/bem/WA3F0100.svg +6 -6
  4. package/assets/images/menu/bem/WA3F1025.svg +10 -10
  5. package/assets/images/menu/bem/WA3F2000.svg +10 -10
  6. package/assets/images/menu/bem/WA3F2020.svg +6 -6
  7. package/assets/images/menu/bem/WA3F2030.svg +14 -14
  8. package/assets/images/menu/bem/WA3F2040.svg +8 -8
  9. package/assets/images/menu/bem/WA3F2100.svg +6 -6
  10. package/assets/images/menu/dhr/ALL.svg +6 -6
  11. package/assets/images/menu/dhr/D00.svg +12 -12
  12. package/assets/images/menu/dhr/D09.svg +8 -8
  13. package/assets/images/menu/dhr/D13.svg +10 -10
  14. package/assets/images/menu/dhr/D15.svg +10 -10
  15. package/assets/images/menu/dhr/D21.svg +10 -10
  16. package/assets/images/menu/dhr/D25.svg +11 -11
  17. package/assets/images/menu/dhr/D29.svg +11 -11
  18. package/assets/images/menu/dhr/D38.svg +6 -6
  19. package/assets/images/menu/dhr/D39.svg +10 -10
  20. package/assets/images/menu/dhr/D51.svg +12 -12
  21. package/assets/images/menu/dhr/D52.svg +16 -16
  22. package/assets/images/menu/dhr/D77.svg +16 -16
  23. package/assets/images/menu/dhr/D84.svg +12 -12
  24. package/assets/images/menu/dhr/D89.svg +8 -8
  25. package/assets/images/menu/dhr/Default.svg +13 -13
  26. package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
  27. package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
  28. package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
  29. package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
  30. package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
  31. package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
  32. package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
  33. package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
  34. package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
  35. package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
  36. package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
  37. package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
  38. package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
  39. package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
  40. package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
  41. package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
  42. package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
  43. package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
  44. package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
  45. package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
  46. package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
  47. package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
  48. package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
  49. package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
  50. package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
  51. package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
  52. package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
  53. package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
  54. package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
  55. package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
  56. package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
  57. package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
  58. package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
  59. package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
  60. package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
  61. package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
  62. package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
  63. package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
  64. package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
  65. package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
  66. package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
  67. package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
  68. package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
  69. package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
  70. package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
  71. package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
  72. package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
  73. package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
  74. package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
  75. package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
  76. package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
  77. package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
  78. package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
  79. package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
  80. package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
  81. package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
  82. package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
  83. package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
  84. package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
  85. package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
  86. package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
  87. package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
  88. package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
  89. package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
  90. package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
  91. package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
  92. package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
  93. package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
  94. package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
  95. package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
  96. package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
  97. package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
  98. package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
  99. package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
  100. package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
  101. package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
  102. package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
  103. package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
  104. package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
  105. package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
  106. package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
  107. package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
  108. package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
  109. package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
  110. package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
  111. package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
  112. package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
  113. package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
  114. package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
  115. package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
  116. package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
  117. package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
  118. package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
  119. package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
  120. package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
  121. package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
  122. package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
  123. package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
  124. package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
  125. package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
  126. package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
  127. package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
  128. package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
  129. package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
  130. package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
  131. package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
  132. package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
  133. package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
  134. package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
  135. package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
  136. package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
  137. package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
  138. package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
  139. package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
  140. package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
  141. package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
  142. package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
  143. package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
  144. package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
  145. package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
  146. package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
  147. package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
  148. package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
  149. package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
  150. package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
  151. package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
  152. package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
  153. package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
  154. package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
  155. package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
  156. package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
  157. package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
  158. package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
  159. package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
  160. package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
  161. package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
  162. package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
  163. package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
  164. package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
  165. package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
  166. package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
  167. package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
  168. package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
  169. package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
  170. package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
  171. package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
  172. package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
  173. package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
  174. package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
  175. package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
  176. package/assets/images/menu/dhr/TASK.svg +9 -9
  177. package/assets/images/menu/dhr/W00F0001.svg +3 -3
  178. package/assets/images/menu/dhr/W00F0002.svg +3 -3
  179. package/assets/images/menu/dhr/W00F0003.svg +3 -3
  180. package/assets/images/menu/dhr/W00F0004.svg +3 -3
  181. package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
  182. package/assets/images/menu/dhr/W09F2000.svg +4 -4
  183. package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
  184. package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
  185. package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
  186. package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
  187. package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
  188. package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
  189. package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
  190. package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
  191. package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
  192. package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
  193. package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
  194. package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
  195. package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
  196. package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
  197. package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
  198. package/assets/images/menu/dhr/W77F1011.svg +19 -19
  199. package/assets/images/menu/dhr/W77F1013.svg +22 -22
  200. package/assets/images/menu/erp/D05.svg +8 -8
  201. package/assets/images/menu/erp/D06.svg +4 -4
  202. package/assets/images/menu/erp/D90R.svg +9 -9
  203. package/assets/images/menu/erp/DBC.svg +9 -9
  204. package/assets/images/menu/erp/W00F0001.svg +3 -3
  205. package/assets/images/menu/erp/W00F0002.svg +3 -3
  206. package/assets/images/menu/erp/W00F0003.svg +3 -3
  207. package/assets/images/menu/erp/W00F0004.svg +3 -3
  208. package/assets/images/menu/erp/W05F0001.svg +16 -16
  209. package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
  210. package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
  211. package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
  212. package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
  213. package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
  214. package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
  215. package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
  216. package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
  217. package/assets/images/menu/erp/W06F0001.svg +17 -17
  218. package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
  219. package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
  220. package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
  221. package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
  222. package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
  223. package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
  224. package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
  225. package/assets/images/menu/erp/WA3F1025.svg +5 -5
  226. package/assets/images/menu/erp/WA3F2100.svg +10 -10
  227. package/assets/storybook/avatar01.svg +9 -9
  228. package/assets/storybook/cover01.svg +9 -9
  229. package/components/accordion/details.js +2 -6
  230. package/components/accordion/group.js +2 -9
  231. package/components/accordion/index.js +2 -15
  232. package/components/accordion/summary.js +4 -27
  233. package/components/alert/index.js +2 -33
  234. package/components/alert/notify.js +12 -22
  235. package/components/avatar/index.js +22 -81
  236. package/components/badge/index.js +20 -45
  237. package/components/button/icon.js +25 -56
  238. package/components/button/index.js +16 -65
  239. package/components/button/more.js +15 -35
  240. package/components/button/ripple-effect.js +0 -10
  241. package/components/card/body.js +2 -7
  242. package/components/card/extra.js +2 -7
  243. package/components/card/footer.js +2 -7
  244. package/components/card/header.js +2 -7
  245. package/components/card/index.js +2 -22
  246. package/components/chart/Pie/Circle.js +0 -1
  247. package/components/chart/Pie/Sector.js +2 -19
  248. package/components/chart/Pie/Sectors.js +0 -10
  249. package/components/chart/Pie/index.js +4 -36
  250. package/components/chart/Pie-v2/Circle.js +0 -1
  251. package/components/chart/Pie-v2/Sector.js +2 -15
  252. package/components/chart/Pie-v2/Sectors.js +0 -20
  253. package/components/chart/Pie-v2/index.js +11 -38
  254. package/components/chart/bar/Axis.js +0 -12
  255. package/components/chart/bar/Bar.js +13 -35
  256. package/components/chart/bar/Grid.js +0 -18
  257. package/components/chart/bar/Labels.js +4 -22
  258. package/components/chart/bar/Points.js +0 -17
  259. package/components/chart/bar/index.js +6 -26
  260. package/components/chart/bar-v2/Axis.js +0 -12
  261. package/components/chart/bar-v2/Bar.js +15 -36
  262. package/components/chart/bar-v2/Grid.js +0 -18
  263. package/components/chart/bar-v2/Labels.js +4 -22
  264. package/components/chart/bar-v2/Points.js +0 -17
  265. package/components/chart/bar-v2/index.js +6 -26
  266. package/components/chart/line/Axis.js +4 -16
  267. package/components/chart/line/Grid.js +2 -19
  268. package/components/chart/line/Labels.js +4 -22
  269. package/components/chart/line/Path.js +24 -34
  270. package/components/chart/line/Point.js +7 -41
  271. package/components/chart/line/Title.js +0 -3
  272. package/components/chart/line/index.js +12 -35
  273. package/components/chart/line-v2/Axis.js +0 -13
  274. package/components/chart/line-v2/Grid.js +0 -18
  275. package/components/chart/line-v2/Labels.js +4 -22
  276. package/components/chart/line-v2/Path.js +23 -33
  277. package/components/chart/line-v2/Point.js +6 -35
  278. package/components/chart/line-v2/Title.js +0 -3
  279. package/components/chart/line-v2/index.js +12 -30
  280. package/components/check-text/index.js +7 -15
  281. package/components/check-text/interview-confirmation.js +24 -31
  282. package/components/check-text/interview-status.js +24 -31
  283. package/components/chip/attach.js +9 -22
  284. package/components/chip/index.js +13 -38
  285. package/components/collapse/index.js +0 -13
  286. package/components/divider/index.js +2 -13
  287. package/components/form-control/attachment/index.js +41 -202
  288. package/components/form-control/calendar/function.js +154 -208
  289. package/components/form-control/calendar/index.js +21 -46
  290. package/components/form-control/calendar/range.js +11 -28
  291. package/components/form-control/checkbox/index.js +12 -46
  292. package/components/form-control/control/index.js +4 -14
  293. package/components/form-control/date-picker/index-old.js +18 -0
  294. package/components/form-control/date-picker/index.js +23 -99
  295. package/components/form-control/date-range-picker/index.js +44 -180
  296. package/components/form-control/dropdown/index.js +101 -314
  297. package/components/form-control/dropdown-box/index.js +7 -37
  298. package/components/form-control/form/index.js +0 -2
  299. package/components/form-control/form-group/index.js +1 -6
  300. package/components/form-control/helper-text/index.js +2 -9
  301. package/components/form-control/input-base/index.js +4 -68
  302. package/components/form-control/label/index.js +2 -12
  303. package/components/form-control/money-input/index.js +54 -143
  304. package/components/form-control/number-input/index.js +26 -124
  305. package/components/form-control/number-input/index2.js +95 -134
  306. package/components/form-control/phone-input/index.js +23 -85
  307. package/components/form-control/radio/index.js +16 -35
  308. package/components/form-control/text-input/index.js +10 -46
  309. package/components/form-control/time-picker/index.js +43 -100
  310. package/components/form-control/time-picker/swiper.js +21 -73
  311. package/components/form-control/toggle/index.js +26 -40
  312. package/components/form-view/helper-text.js +2 -2
  313. package/components/form-view/index.js +0 -14
  314. package/components/form-view/input.js +2 -13
  315. package/components/form-view/label.js +0 -2
  316. package/components/grid/Col.js +2 -16
  317. package/components/grid/Container.js +2 -21
  318. package/components/grid/Row.js +2 -21
  319. package/components/grid/index.js +2 -44
  320. package/components/image/index.js +2 -22
  321. package/components/index.js +62 -31
  322. package/components/list/list-item-action.js +12 -21
  323. package/components/list/list-item-icon.js +10 -19
  324. package/components/list/list-item-text.js +0 -5
  325. package/components/list/list-item.js +27 -38
  326. package/components/list/list.js +37 -50
  327. package/components/list/sub-header.js +13 -17
  328. package/components/modal/body.js +2 -6
  329. package/components/modal/footer.js +2 -11
  330. package/components/modal/header.js +2 -12
  331. package/components/modal/index.js +2 -10
  332. package/components/modal/modal.js +11 -52
  333. package/components/others/extra/index.js +3 -10
  334. package/components/others/import/index.js +0 -7
  335. package/components/others/option-wrapper/index.js +4 -7
  336. package/components/others/scrollbar/index.js +0 -3
  337. package/components/paging/page-info.js +35 -99
  338. package/components/paging/page-selector.js +10 -38
  339. package/components/paging/page-selector2.js +35 -74
  340. package/components/paper/index.js +23 -34
  341. package/components/popover/body.js +2 -6
  342. package/components/popover/footer.js +2 -11
  343. package/components/popover/header.js +2 -7
  344. package/components/popover/index.js +54 -146
  345. package/components/popup/danger_popup.js +0 -19
  346. package/components/popup/index.js +4 -50
  347. package/components/popup/proposals_popup.js +11 -50
  348. package/components/popup/v2/index.js +13 -47
  349. package/components/progress/circular.js +10 -48
  350. package/components/progress/linear.js +58 -74
  351. package/components/rating/index.js +10 -35
  352. package/components/slider/slider-container.js +4 -41
  353. package/components/slider/slider-item.js +10 -25
  354. package/components/status/index.js +2 -14
  355. package/components/tab/tab-container.js +4 -18
  356. package/components/tab/tab-header.js +4 -24
  357. package/components/tab/tab-panel.js +4 -16
  358. package/components/tab/tab.js +8 -33
  359. package/components/tooltip/index.js +12 -97
  360. package/components/tooltip/portal.js +0 -2
  361. package/components/transfer/index.js +28 -73
  362. package/components/tree-view/index.js +62 -202
  363. package/components/typography/index.js +14 -42
  364. package/global/index.js +0 -8
  365. package/icons/basic.js +0 -48
  366. package/icons/effect.js +15 -32
  367. package/icons/general/clock/clock.js +0 -2
  368. package/icons/general/color-handler/background.js +0 -2
  369. package/icons/general/color-handler/text.js +0 -2
  370. package/icons/general/emoji/emoji.js +0 -2
  371. package/icons/general/font-properties/bold.js +0 -2
  372. package/icons/general/font-properties/font-family.js +0 -2
  373. package/icons/general/font-properties/font-size.js +0 -2
  374. package/icons/general/font-properties/italic.js +0 -2
  375. package/icons/general/font-properties/underline.js +0 -2
  376. package/icons/general/hyperlink/hyperlink.js +0 -2
  377. package/icons/general/indent/decrease.js +0 -2
  378. package/icons/general/indent/increase.js +0 -2
  379. package/icons/general/list/bullets.js +0 -2
  380. package/icons/general/list/numbering.js +0 -2
  381. package/icons/general/picture/picture.js +0 -2
  382. package/icons/general/steps/redo.js +0 -2
  383. package/icons/general/steps/undo.js +0 -2
  384. package/icons/general/text-align/center.js +0 -2
  385. package/icons/general/text-align/justify.js +0 -2
  386. package/icons/general/text-align/left.js +0 -2
  387. package/icons/general/text-align/right.js +0 -2
  388. package/icons/menu/dhr.js +2 -1
  389. package/icons/menu/index.js +2 -2
  390. package/icons/menu/v2/index.js +2 -15
  391. package/package.json +42 -42
  392. package/readme.md +1034 -1027
  393. package/styles/animation.js +15 -58
  394. package/styles/color-helper.js +127 -157
  395. package/styles/colors.js +17 -9
  396. package/styles/general.js +16 -57
  397. package/styles/typography.js +4 -4
  398. package/styles/utils.js +18 -18
  399. package/theme/createBreakpoints.js +7 -18
  400. package/theme/make-styles.js +2 -5
  401. package/theme/set-theme.js +6 -9
  402. package/theme/settings.js +17 -22
  403. package/theme/theme-provider.js +0 -1
  404. package/utils/array/array.js +45 -54
  405. package/utils/classNames/index.js +0 -5
  406. package/utils/console.js +0 -6
  407. package/utils/date.js +69 -138
  408. package/utils/error/error.js +3 -11
  409. package/utils/error/errors.js +100 -147
  410. package/utils/getFileType.js +0 -9
  411. package/utils/handleBreakpoints.js +0 -5
  412. package/utils/intersectionObserver.js +0 -5
  413. package/utils/iterator.js +0 -9
  414. package/utils/map-parent.js +3 -10
  415. package/utils/object/extend.js +0 -10
  416. package/utils/object/object.js +12 -11
  417. package/utils/parseHTML.js +0 -1
  418. package/utils/promisify.js +0 -5
  419. package/utils/randomString.js +0 -7
  420. package/utils/remove-unicode.js +0 -1
  421. package/utils/render-portal.js +1 -9
  422. package/utils/renderHTML.js +4 -6
  423. package/utils/renderIcon.js +9 -19
  424. package/utils/sb-template.js +6 -5
  425. package/utils/string/capitalize.js +0 -1
  426. package/utils/string/capitalizeSentenceCase.js +0 -2
  427. package/utils/string/string.js +0 -13
  428. package/utils/type.js +0 -21
  429. package/utils/updatePosition.js +4 -5
  430. package/utils/useDelayUnmount.js +0 -4
  431. package/utils/useElementSize.js +9 -3
  432. package/utils/useEventListener.js +12 -6
  433. package/utils/useInput.js +0 -6
  434. package/utils/useMediaQuery/index.js +8 -10
  435. package/utils/useOnClickOutside.js +2 -4
  436. package/utils/usePortal.js +12 -19
  437. package/utils/validate.js +39 -53
@@ -1,5 +1,4 @@
1
1
  /** @jsxRuntime classic */
2
-
3
2
  /** @jsx jsx */
4
3
  import { css, jsx } from '@emotion/core';
5
4
  import { ButtonIcon, Divider, Dropdown, NumberInput, Typography } from "./..";
@@ -29,18 +28,14 @@ const {
29
28
  },
30
29
  spacing
31
30
  } = useTheme();
32
-
33
31
  const getLastPage = (totalItems, itemsPerPage) => {
34
32
  let _lastPage = 0;
35
-
36
33
  if (totalItems && totalItems >= 0 && itemsPerPage && itemsPerPage > 0) {
37
34
  _lastPage = Math.ceil(totalItems / itemsPerPage);
38
35
  return _lastPage;
39
36
  }
40
-
41
37
  return _lastPage + 1;
42
38
  };
43
-
44
39
  const delayOnInput = getGlobal('delayOnInput');
45
40
  const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
46
41
  action = {},
@@ -72,9 +67,7 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
72
67
  const [disablePrevState, setDisablePrevState] = useState(true);
73
68
  const [disableNextState, setDisableNextState] = useState(!(totalItems > itemsPerPage));
74
69
  const [inputPageValue, setInputPageValue] = useState(currentPage);
75
-
76
70
  const _pagingInfoCSS = pagingInfoCSS(bgColor, typeShort);
77
-
78
71
  const _onChangePage = async ({
79
72
  page,
80
73
  e,
@@ -82,36 +75,35 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
82
75
  }) => {
83
76
  const lastPage = getLastPage(totalItemsState, itemsPerPageState);
84
77
  let disablePrev = false;
85
- let disableNext = false; // If last page = 1. Disable all
78
+ let disableNext = false;
86
79
 
80
+ // If last page = 1. Disable all
87
81
  if (lastPage === 1) {
88
82
  disablePrev = true;
89
83
  disableNext = true;
90
- } // If current page = last page. Disable Next and Last
91
-
84
+ }
92
85
 
86
+ // If current page = last page. Disable Next and Last
93
87
  if (page + 1 >= lastPage) {
94
88
  disableNext = true;
95
- } // If current page = 0. Disable Previous and First
96
-
89
+ }
97
90
 
91
+ // If current page = 0. Disable Previous and First
98
92
  if (page === 0) {
99
93
  disablePrev = true;
100
94
  }
101
-
102
95
  setDisablePrevState(disablePrev);
103
96
  setDisableNextState(disableNext);
104
97
  if (page === currentPageState) return;
105
-
106
98
  if (onChangingPage) {
107
- const event = { ...e,
99
+ const event = {
100
+ ...e,
108
101
  cancel: false,
109
102
  prevPage: currentPageState,
110
103
  newPage: page,
111
104
  changeBy: changeBy
112
105
  };
113
106
  await onChangingPage(event);
114
-
115
107
  if (event.cancel) {
116
108
  if (e !== null && e !== void 0 && e.reset) e.reset();
117
109
  currentPageRef.current = currentPageState;
@@ -120,23 +112,21 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
120
112
  return;
121
113
  }
122
114
  }
123
-
124
115
  currentPageRef.current = page;
125
116
  setCurrentPageState(page);
126
117
  setInputPageValue(page);
127
118
  if (onChangePage) onChangePage(page);
128
119
  };
129
-
130
120
  const _onChangePerPage = async per => {
131
121
  if (per === itemsPerPageState) return;
132
122
  const lastPage = getLastPage(totalItemsState, per);
133
123
  per = parseInt(per, 10);
134
- let disableNext = false; // If last page = 1. Disable all
124
+ let disableNext = false;
135
125
 
126
+ // If last page = 1. Disable all
136
127
  if (lastPage === 1) {
137
128
  disableNext = true;
138
129
  }
139
-
140
130
  if (onChangingPerPage) {
141
131
  const event = {
142
132
  cancel: false,
@@ -144,30 +134,23 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
144
134
  newPerPage: per
145
135
  };
146
136
  await onChangingPerPage(event);
147
-
148
137
  if (event.cancel) {
149
138
  return;
150
139
  }
151
140
  }
152
-
153
141
  setItemsPerPageState(per);
154
-
155
142
  _onChangePage({
156
143
  page: 0
157
144
  });
158
-
159
145
  setDisablePrevState(true);
160
146
  setDisableNextState(disableNext);
161
147
  if (onChangePerPage) onChangePerPage(per);
162
148
  };
163
-
164
149
  const onTypePaging = e => {
165
150
  var _e$value;
166
-
167
151
  if (timer.current) {
168
152
  clearTimeout(timer.current);
169
153
  }
170
-
171
154
  const value = (_e$value = e === null || e === void 0 ? void 0 : e.value) !== null && _e$value !== void 0 ? _e$value : e;
172
155
  const lastPage = getLastPage(totalItemsState, itemsPerPageState);
173
156
  const page = !value || parseInt(value) < 0 ? 1 : parseInt(value) > lastPage ? lastPage : parseInt(value);
@@ -179,13 +162,11 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
179
162
  });
180
163
  }, delayOnInput);
181
164
  };
182
-
183
165
  const checkKeyPress = e => {
184
166
  if (/,/.test(e.key)) {
185
167
  e.preventDefault();
186
168
  }
187
169
  };
188
-
189
170
  useEffect(() => {
190
171
  setTotalItemsState(totalItems);
191
172
  }, [totalItems]);
@@ -225,103 +206,81 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
225
206
  setTotalItems: items => setTotalItemsState(items),
226
207
  ...action
227
208
  }; // methods
228
-
229
209
  _instance.__proto__ = {}; // hidden methods
230
-
231
210
  currentRef.instance = _instance;
232
-
233
211
  currentRef.onChangePage = page => _onChangePage({
234
212
  page: page,
235
213
  changeBy: 'ref'
236
214
  });
237
-
238
215
  currentRef.onChangePerPage = per => _onChangePerPage(per);
239
-
240
216
  currentRef.setTotalItems = items => setTotalItemsState(items);
241
-
242
217
  return currentRef;
243
218
  });
244
-
245
219
  const updateSize = () => {
246
220
  if (timer.current) {
247
221
  clearTimeout(timer.current);
248
222
  }
249
-
250
223
  timer.current = setTimeout(() => {
251
224
  var _ref$current;
252
-
253
225
  let conti = true;
254
226
  [...(((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.children) || [])].reverse().forEach(item => {
255
227
  if (item !== null && item !== void 0 && item.style) {
256
228
  item.style.display = 'flex';
257
-
258
229
  if (!conti) {
259
230
  item.style.opacity = 1;
260
231
  return;
261
232
  }
262
233
  }
263
-
264
234
  conti = hiddenEle(item);
265
235
  });
266
236
  }, 300);
267
237
  };
268
-
269
238
  useLayoutEffect(() => {
270
239
  window.addEventListener('resize', updateSize);
271
240
  updateSize();
272
241
  return () => window.removeEventListener('resize', updateSize);
273
242
  }, []);
274
-
275
243
  const hiddenEle = child => {
276
244
  setTimeout(() => {
277
245
  var _ref$current2;
278
-
279
246
  const infoChild = child === null || child === void 0 ? void 0 : child.getBoundingClientRect();
280
247
  const infoParent = (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.getBoundingClientRect();
281
- if (!infoChild || !infoParent) return; // getBoundingClientRect includes margin => phải trừ đi margin
248
+ if (!infoChild || !infoParent) return;
282
249
 
250
+ // getBoundingClientRect includes margin => phải trừ đi margin
283
251
  const style = window.getComputedStyle(child) || child.currentStyle;
284
252
  const margin = parseInt((style === null || style === void 0 ? void 0 : style.marginLeft) || 0) + parseInt((style === null || style === void 0 ? void 0 : style.marginRight) || 0);
285
-
286
253
  if (infoChild.right - margin >= infoParent.right) {
287
254
  child.style.opacity = 0;
288
255
  child.style.setProperty('display', 'none', 'important');
289
256
  } else {
290
257
  child.style.opacity = 1;
291
258
  }
292
-
293
259
  return infoChild.right >= infoParent.right;
294
260
  });
295
261
  };
296
-
297
262
  const setWithNumber = useCallback((totalRefs = totalRef, numberRefs = numberRef) => {
298
263
  var _totalRefs;
299
-
300
264
  if (!totalRefs) totalRefs = totalRef.current;
301
265
  if (!numberRefs) numberRefs = numberRef.current;
302
266
  if (!totalRefs || !numberRefs) return;
303
267
  const infoText = (_totalRefs = totalRefs) === null || _totalRefs === void 0 ? void 0 : _totalRefs.getBoundingClientRect();
304
-
305
268
  if (infoText && numberRefs) {
306
269
  numberRefs.style.width = `${infoText.width * 2 + 6}px`;
307
270
  numberRefs.style.minWidth = `${infoText.width * 2 + 6}px`;
308
271
  }
309
272
  }, [totalRef, numberRef]);
310
-
311
273
  const checkShowPaging = () => {
312
274
  switch (hideWithPage) {
313
275
  case 'empty':
314
276
  return totalItemsState !== 0;
315
-
316
277
  case 'single':
317
278
  return totalItemsState / itemsPerPageState > 1;
318
-
319
279
  case 'none':
320
280
  default:
321
281
  return true;
322
282
  }
323
283
  };
324
-
325
284
  return useMemo(() => {
326
285
  const lastPage = getLastPage(totalItemsState, itemsPerPageState);
327
286
  let listPerPageData = !listPerPageState.includes(itemsPerPageState) ? [{
@@ -350,11 +309,9 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
350
309
  onClick: e => {
351
310
  setInputPageValue(0);
352
311
  currentPageRef.current = 0;
353
-
354
312
  if (timer.current) {
355
313
  clearTimeout(timer.current);
356
314
  }
357
-
358
315
  timer.current = setTimeout(() => {
359
316
  _onChangePage({
360
317
  page: 0,
@@ -371,11 +328,9 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
371
328
  onClick: e => {
372
329
  setInputPageValue(inputPageValue - 1);
373
330
  currentPageRef.current = currentPageRef.current === 0 ? 0 : currentPageRef.current - 1;
374
-
375
331
  if (timer.current) {
376
332
  clearTimeout(timer.current);
377
333
  }
378
-
379
334
  timer.current = setTimeout(() => {
380
335
  _onChangePage({
381
336
  page: currentPageRef.current,
@@ -421,11 +376,9 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
421
376
  onClick: e => {
422
377
  setInputPageValue(inputPageValue + 1);
423
378
  currentPageRef.current = currentPageRef.current === lastPage ? lastPage : currentPageRef.current + 1;
424
-
425
379
  if (timer.current) {
426
380
  clearTimeout(timer.current);
427
381
  }
428
-
429
382
  timer.current = setTimeout(() => {
430
383
  _onChangePage({
431
384
  page: currentPageRef.current,
@@ -442,11 +395,9 @@ const PagingInfo = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
442
395
  onClick: e => {
443
396
  setInputPageValue(lastPage - 1);
444
397
  currentPageRef.current = lastPage - 1;
445
-
446
398
  if (timer.current) {
447
399
  clearTimeout(timer.current);
448
400
  }
449
-
450
401
  timer.current = setTimeout(() => {
451
402
  _onChangePage({
452
403
  page: lastPage - 1,
@@ -495,7 +446,6 @@ const ViewNumberInput = css`
495
446
  transition: all 0.1s;
496
447
  margin: ${spacing([0, 1])};
497
448
  `;
498
-
499
449
  const pagingInfoCSS = (bgColor, typeShort) => css`
500
450
  ${flexRow};
501
451
  ${itemsCenter};
@@ -562,7 +512,6 @@ const pagingInfoCSS = (bgColor, typeShort) => css`
562
512
  transition: opacity 0.3s ease;
563
513
  }
564
514
  `;
565
-
566
515
  PagingInfo.defaultProps = {
567
516
  bgColor: systemWhite,
568
517
  className: '',
@@ -576,66 +525,53 @@ PagingInfo.defaultProps = {
576
525
  PagingInfo.propTypes = {
577
526
  /** Background color for component. */
578
527
  bgColor: PropTypes.string,
579
-
580
528
  /** Class for component. */
581
529
  className: PropTypes.string,
582
-
583
530
  /** Specifies the current page. */
584
531
  currentPage: PropTypes.number,
585
-
586
532
  /** Hidden mode for page selector. */
587
533
  hideWithPage: PropTypes.oneOf(['none', 'empty', 'single']),
588
-
589
534
  /** The quantity of items per page. */
590
535
  itemsPerPage: PropTypes.number,
591
-
592
536
  /** The list to choose the number of elements to display per page. */
593
537
  listPerPage: PropTypes.array,
594
-
595
538
  /** Callback fired when page number changed. */
596
539
  onChangePage: PropTypes.func,
597
-
598
540
  /** Callback fired when quantity on per page changed. */
599
541
  onChangePerPage: PropTypes.func,
600
-
601
- /**
602
- * Callback fired when page number is changing.
603
- *
604
- * * prevPage: Page before changed
605
- * * newPage: Page after changed
606
- * * cancel(value): Function cancel change page
607
- * * @param {value} - bool
542
+ /**
543
+ * Callback fired when page number is changing.
544
+ *
545
+ * * prevPage: Page before changed
546
+ * * newPage: Page after changed
547
+ * * cancel(value): Function cancel change page
548
+ * * @param {value} - bool
608
549
  */
609
550
  onChangingPage: PropTypes.func,
610
-
611
- /**
612
- * Callback fired when quantity on item per page is changing.
613
- *
614
- * * prevPerPage: Items per page before changed
615
- * * newPerPage: Items per page after changed
616
- * * cancel(value): Function cancel change items per page
617
- * * @param {value} - bool
551
+ /**
552
+ * Callback fired when quantity on item per page is changing.
553
+ *
554
+ * * prevPerPage: Items per page before changed
555
+ * * newPerPage: Items per page after changed
556
+ * * cancel(value): Function cancel change items per page
557
+ * * @param {value} - bool
618
558
  */
619
559
  onChangingPerPage: PropTypes.func,
620
-
621
560
  /** Style inline of component. */
622
561
  style: PropTypes.object,
623
-
624
562
  /** Total items. */
625
563
  totalItems: PropTypes.number,
626
-
627
564
  /** Compact type for mobile. */
628
565
  typeShort: PropTypes.bool,
629
-
630
- /**
631
- * ref methods (ref.current.instance.*method*)
632
- *
633
- * * onChangePage(page): Change page number
634
- * * @param {page} - number
635
- * * onChangePerPage(per): Change quantity on per page
636
- * * @param {per} - number
637
- * * setTotalItems(items): Set total items
638
- * * @param {items} - number
566
+ /**
567
+ * ref methods (ref.current.instance.*method*)
568
+ *
569
+ * * onChangePage(page): Change page number
570
+ * * @param {page} - number
571
+ * * onChangePerPage(per): Change quantity on per page
572
+ * * @param {per} - number
573
+ * * setTotalItems(items): Set total items
574
+ * * @param {items} - number
639
575
  */
640
576
  reference: ref
641
577
  };
@@ -1,5 +1,4 @@
1
1
  /** @jsxRuntime classic */
2
-
3
2
  /** @jsx jsx */
4
3
  import React, { memo, useRef, useState, useEffect, forwardRef } from 'react';
5
4
  import PropTypes from 'prop-types';
@@ -23,7 +22,6 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
23
22
  if (!ref) {
24
23
  ref = useRef(null);
25
24
  }
26
-
27
25
  const [currentPage, setCurrentPage] = useState(currentPageProps);
28
26
  const [paging, setPaging] = useState([1]);
29
27
  const PageItemNum = css`
@@ -58,7 +56,7 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
58
56
  width: ${size === 'small' ? 20 : 24}px;
59
57
  height: ${size === 'small' ? 20 : 24}px;
60
58
  font-size: ${size === 'small' ? 12 : 14}px;
61
- background-color: ${theme.colors.border};
59
+ background-color: ${theme.colors.system.rest};
62
60
  border-radius: 50%;
63
61
  text-align: center;
64
62
  display: flex;
@@ -69,36 +67,29 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
69
67
  cursor: pointer;
70
68
  position: relative;
71
69
  &:hover {
72
- background-color: ${theme.colors.hover};
70
+ background-color: ${theme.colors.fill.hover};
73
71
  &:not(.active) .css-${PageItemNum.name} {
74
- color: ${theme.colors.primary};
72
+ color: ${theme.colors.system.active};
75
73
  }
76
74
  }
77
75
  &.active {
78
76
  background-color: ${theme.colors.brand};
79
77
  }
80
78
  `;
81
-
82
79
  const setPagination = (newCurrentPage = 1) => {
83
80
  const newLastPage = Math.ceil(totalItems / itemsPerPage);
84
-
85
81
  if (newCurrentPage > newLastPage || newCurrentPage < 0) {
86
82
  newCurrentPage = 1;
87
83
  }
88
-
89
84
  setCurrentPage(newCurrentPage);
90
-
91
85
  if (newLastPage > 1) {
92
86
  const newPaging = [1];
93
-
94
87
  if (newLastPage > 5) {
95
88
  if (newCurrentPage < 4) {
96
89
  newPaging.push(...[2, 3]);
97
90
  let morePageRight = [];
98
-
99
91
  if (newCurrentPage === 3) {
100
92
  newPaging.push(4);
101
-
102
93
  for (let r = newCurrentPage + 2; r < newLastPage; r++) {
103
94
  morePageRight.push(r);
104
95
  }
@@ -107,15 +98,12 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
107
98
  morePageRight.push(r);
108
99
  }
109
100
  }
110
-
111
101
  if (morePageRight.length === 1) {
112
102
  morePageRight = morePageRight[0];
113
103
  }
114
-
115
104
  newPaging.push(...[morePageRight, newLastPage]);
116
105
  } else if (newCurrentPage > newLastPage - 3) {
117
106
  let morePageLeft = [];
118
-
119
107
  if (newCurrentPage - 2 === 2) {
120
108
  morePageLeft = 2;
121
109
  } else {
@@ -123,18 +111,14 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
123
111
  morePageLeft.push(l);
124
112
  }
125
113
  }
126
-
127
114
  newPaging.push(morePageLeft);
128
-
129
115
  if (newCurrentPage === newLastPage - 2) {
130
116
  newPaging.push(newLastPage - 3);
131
117
  }
132
-
133
118
  newPaging.push(...[newLastPage - 2, newLastPage - 1, newLastPage]);
134
119
  } else {
135
120
  let morePageLeft = [],
136
- morePageRight = [];
137
-
121
+ morePageRight = [];
138
122
  if (newCurrentPage - 2 === 2) {
139
123
  morePageLeft = 2;
140
124
  } else {
@@ -142,7 +126,6 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
142
126
  morePageLeft.push(l);
143
127
  }
144
128
  }
145
-
146
129
  if (newLastPage - 1 === newCurrentPage + 2) {
147
130
  morePageRight = newCurrentPage + 2;
148
131
  } else {
@@ -150,7 +133,6 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
150
133
  morePageRight.push(r);
151
134
  }
152
135
  }
153
-
154
136
  newPaging.push(...[morePageLeft, newCurrentPage - 1, newCurrentPage, newCurrentPage + 1, morePageRight, newLastPage]);
155
137
  }
156
138
  } else {
@@ -158,41 +140,36 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
158
140
  newPaging.push(i);
159
141
  }
160
142
  }
161
-
162
143
  return newPaging;
163
144
  } else if (paging.length !== 1) {
164
145
  return [1];
165
146
  }
166
147
  };
167
-
168
148
  const onChangePageHandler = (e, pageNum) => {
169
149
  if (!e.currentTarget.classList.contains('active')) {
170
150
  if (isNaN(pageNum)) {
171
151
  const el = e.currentTarget.querySelector(`.css-${morePaging.name}`);
172
-
173
152
  if (!el.classList.contains('visible')) {
174
153
  el.classList.add('visible');
175
154
  }
176
-
177
155
  el.setAttribute('tabIndex', -1);
178
156
  el.focus();
179
157
  } else {
180
158
  setCurrentPage(pageNum);
181
- setPaging(setPagination(pageNum)); // paginationRef.current.querySelector('.active').classList.remove('active');
182
-
159
+ setPaging(setPagination(pageNum));
160
+ // paginationRef.current.querySelector('.active').classList.remove('active');
183
161
  if (onChangePage) onChangePage(pageNum);
184
162
  }
185
163
  }
186
164
  };
187
-
188
165
  const closeMorePaging = e => {
189
166
  if (e.currentTarget.classList.contains('visible')) {
190
167
  e.currentTarget.classList.remove('visible');
191
168
  e.currentTarget.blur();
192
169
  }
193
- }; // Get totalItems, itemsPerPage to set last page
194
-
170
+ };
195
171
 
172
+ // Get totalItems, itemsPerPage to set last page
196
173
  useEffect(() => {
197
174
  setPaging(setPagination(currentPageProps));
198
175
  }, [currentPageProps]);
@@ -239,7 +216,8 @@ const PagingSelector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
239
216
  css: PageItemNum
240
217
  }, page)))), jsx("p", null, "...")) : pageNum));
241
218
  });
242
- return jsx("div", { ...props,
219
+ return jsx("div", {
220
+ ...props,
243
221
  ref: ref,
244
222
  style: {
245
223
  display: 'inline-flex',
@@ -260,22 +238,16 @@ PagingSelector.defaultProps = {
260
238
  PagingSelector.propTypes = {
261
239
  /** size of paging */
262
240
  size: PropTypes.oneOf(['small', 'medium']),
263
-
264
241
  /** current of paging */
265
242
  currentPage: PropTypes.number,
266
-
267
243
  /** total items of paging */
268
244
  totalItems: PropTypes.number.isRequired,
269
-
270
245
  /** the quantity of items on per page */
271
246
  itemsPerPage: PropTypes.number,
272
-
273
247
  /** style inline for PagingSelector */
274
248
  style: PropTypes.object,
275
-
276
249
  /** style inline for page number element */
277
250
  pageItemStyle: PropTypes.object,
278
-
279
251
  /** the function will run after change page number */
280
252
  onChangePage: PropTypes.func
281
253
  };