diginet-core-ui 1.3.87 → 1.3.88

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 (438) 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 +6 -2
  230. package/components/accordion/group.js +9 -2
  231. package/components/accordion/index.js +15 -2
  232. package/components/accordion/summary.js +27 -4
  233. package/components/alert/index.js +33 -2
  234. package/components/alert/notify.js +22 -12
  235. package/components/avatar/index.js +81 -22
  236. package/components/badge/index.js +45 -20
  237. package/components/button/icon.js +56 -25
  238. package/components/button/index.js +65 -16
  239. package/components/button/more.js +35 -15
  240. package/components/button/ripple-effect.js +10 -0
  241. package/components/card/body.js +7 -2
  242. package/components/card/extra.js +7 -2
  243. package/components/card/footer.js +7 -2
  244. package/components/card/header.js +7 -2
  245. package/components/card/index.js +22 -2
  246. package/components/chart/Pie/Circle.js +1 -0
  247. package/components/chart/Pie/Sector.js +19 -2
  248. package/components/chart/Pie/Sectors.js +10 -0
  249. package/components/chart/Pie/index.js +36 -4
  250. package/components/chart/Pie-v2/Circle.js +1 -0
  251. package/components/chart/Pie-v2/Sector.js +15 -2
  252. package/components/chart/Pie-v2/Sectors.js +20 -0
  253. package/components/chart/Pie-v2/index.js +38 -11
  254. package/components/chart/bar/Axis.js +12 -0
  255. package/components/chart/bar/Bar.js +35 -13
  256. package/components/chart/bar/Grid.js +18 -0
  257. package/components/chart/bar/Labels.js +18 -0
  258. package/components/chart/bar/Points.js +17 -0
  259. package/components/chart/bar/index.js +26 -6
  260. package/components/chart/bar-v2/Axis.js +12 -0
  261. package/components/chart/bar-v2/Bar.js +36 -15
  262. package/components/chart/bar-v2/Grid.js +18 -0
  263. package/components/chart/bar-v2/Labels.js +18 -0
  264. package/components/chart/bar-v2/Points.js +17 -0
  265. package/components/chart/bar-v2/index.js +26 -6
  266. package/components/chart/line/Axis.js +16 -4
  267. package/components/chart/line/Grid.js +19 -2
  268. package/components/chart/line/Labels.js +18 -0
  269. package/components/chart/line/Path.js +33 -23
  270. package/components/chart/line/Point.js +40 -6
  271. package/components/chart/line/Title.js +3 -0
  272. package/components/chart/line/index.js +35 -12
  273. package/components/chart/line-v2/Axis.js +13 -0
  274. package/components/chart/line-v2/Grid.js +18 -0
  275. package/components/chart/line-v2/Labels.js +18 -0
  276. package/components/chart/line-v2/Path.js +33 -23
  277. package/components/chart/line-v2/Point.js +35 -6
  278. package/components/chart/line-v2/Title.js +3 -0
  279. package/components/chart/line-v2/index.js +30 -12
  280. package/components/check-text/index.js +8 -0
  281. package/components/check-text/interview-confirmation.js +7 -0
  282. package/components/check-text/interview-status.js +7 -0
  283. package/components/chip/attach.js +22 -9
  284. package/components/chip/index.js +33 -6
  285. package/components/collapse/index.js +13 -0
  286. package/components/divider/index.js +13 -2
  287. package/components/form-control/attachment/index.js +202 -41
  288. package/components/form-control/calendar/function.js +207 -153
  289. package/components/form-control/calendar/index.js +46 -21
  290. package/components/form-control/calendar/range.js +28 -11
  291. package/components/form-control/checkbox/index.js +37 -4
  292. package/components/form-control/control/index.js +13 -3
  293. package/components/form-control/date-picker/index-old.js +0 -18
  294. package/components/form-control/date-picker/index.js +99 -23
  295. package/components/form-control/date-range-picker/index.js +180 -44
  296. package/components/form-control/dropdown/index.js +314 -101
  297. package/components/form-control/dropdown-box/index.js +35 -6
  298. package/components/form-control/form/index.js +2 -0
  299. package/components/form-control/form-group/index.js +6 -1
  300. package/components/form-control/helper-text/index.js +9 -2
  301. package/components/form-control/input-base/index.js +73 -9
  302. package/components/form-control/label/index.js +12 -2
  303. package/components/form-control/money-input/index.js +143 -54
  304. package/components/form-control/number-input/index.js +124 -26
  305. package/components/form-control/number-input/index2.js +119 -78
  306. package/components/form-control/phone-input/index.js +85 -23
  307. package/components/form-control/radio/index.js +28 -9
  308. package/components/form-control/text-input/index.js +46 -10
  309. package/components/form-control/time-picker/index.js +71 -14
  310. package/components/form-control/time-picker/swiper.js +73 -21
  311. package/components/form-control/toggle/index.js +23 -8
  312. package/components/form-view/helper-text.js +2 -2
  313. package/components/form-view/index.js +14 -0
  314. package/components/form-view/input.js +13 -2
  315. package/components/form-view/label.js +2 -0
  316. package/components/grid/Col.js +16 -2
  317. package/components/grid/Container.js +21 -2
  318. package/components/grid/Row.js +21 -2
  319. package/components/grid/index.js +44 -2
  320. package/components/image/index.js +22 -2
  321. package/components/index.js +31 -62
  322. package/components/list/list-item-action.js +9 -0
  323. package/components/list/list-item-icon.js +9 -0
  324. package/components/list/list-item-text.js +5 -0
  325. package/components/list/list-item.js +11 -0
  326. package/components/list/list.js +13 -0
  327. package/components/list/sub-header.js +4 -0
  328. package/components/modal/body.js +6 -2
  329. package/components/modal/footer.js +11 -2
  330. package/components/modal/header.js +12 -2
  331. package/components/modal/index.js +10 -2
  332. package/components/modal/modal.js +52 -11
  333. package/components/others/extra/index.js +10 -3
  334. package/components/others/import/index.js +7 -0
  335. package/components/others/option-wrapper/index.js +7 -4
  336. package/components/others/scrollbar/index.js +3 -0
  337. package/components/paging/page-info.js +99 -35
  338. package/components/paging/page-selector.js +35 -7
  339. package/components/paging/page-selector2.js +74 -35
  340. package/components/paper/index.js +11 -0
  341. package/components/popover/body.js +6 -2
  342. package/components/popover/footer.js +11 -2
  343. package/components/popover/header.js +7 -2
  344. package/components/popover/index.js +146 -54
  345. package/components/popup/danger_popup.js +19 -0
  346. package/components/popup/index.js +48 -2
  347. package/components/popup/proposals_popup.js +49 -10
  348. package/components/popup/v2/index.js +47 -13
  349. package/components/progress/circular.js +48 -10
  350. package/components/progress/linear.js +20 -4
  351. package/components/rating/index.js +32 -8
  352. package/components/slider/slider-container.js +40 -3
  353. package/components/slider/slider-item.js +25 -10
  354. package/components/status/index.js +14 -2
  355. package/components/tab/tab-container.js +18 -4
  356. package/components/tab/tab-header.js +24 -4
  357. package/components/tab/tab-panel.js +16 -4
  358. package/components/tab/tab.js +30 -6
  359. package/components/tooltip/index.js +97 -12
  360. package/components/tooltip/portal.js +2 -0
  361. package/components/transfer/index.js +70 -25
  362. package/components/tree-view/index.js +202 -62
  363. package/components/typography/index.js +70 -47
  364. package/global/index.js +8 -0
  365. package/icons/basic.js +232 -0
  366. package/icons/effect.js +32 -15
  367. package/icons/general/clock/clock.js +2 -0
  368. package/icons/general/color-handler/background.js +2 -0
  369. package/icons/general/color-handler/text.js +2 -0
  370. package/icons/general/emoji/emoji.js +2 -0
  371. package/icons/general/font-properties/bold.js +2 -0
  372. package/icons/general/font-properties/font-family.js +2 -0
  373. package/icons/general/font-properties/font-size.js +2 -0
  374. package/icons/general/font-properties/italic.js +2 -0
  375. package/icons/general/font-properties/underline.js +2 -0
  376. package/icons/general/hyperlink/hyperlink.js +2 -0
  377. package/icons/general/indent/decrease.js +2 -0
  378. package/icons/general/indent/increase.js +2 -0
  379. package/icons/general/list/bullets.js +2 -0
  380. package/icons/general/list/numbering.js +2 -0
  381. package/icons/general/picture/picture.js +2 -0
  382. package/icons/general/steps/redo.js +2 -0
  383. package/icons/general/steps/undo.js +2 -0
  384. package/icons/general/text-align/center.js +2 -0
  385. package/icons/general/text-align/justify.js +2 -0
  386. package/icons/general/text-align/left.js +2 -0
  387. package/icons/general/text-align/right.js +2 -0
  388. package/icons/menu/dhr.js +1 -2
  389. package/icons/menu/index.js +2 -2
  390. package/icons/menu/v2/index.js +15 -2
  391. package/package.json +42 -42
  392. package/readme.md +1027 -1022
  393. package/styles/animation.js +58 -15
  394. package/styles/color-helper.js +157 -127
  395. package/styles/colors.js +9 -17
  396. package/styles/general.js +80 -18
  397. package/styles/typography.js +4 -4
  398. package/styles/utils.js +20 -19
  399. package/theme/createBreakpoints.js +18 -7
  400. package/theme/make-styles.js +5 -2
  401. package/theme/set-theme.js +9 -6
  402. package/theme/settings.js +2 -3
  403. package/theme/theme-provider.js +1 -0
  404. package/utils/array/array.js +54 -45
  405. package/utils/{classNames.js → classNames/index.js} +5 -0
  406. package/utils/console.js +6 -0
  407. package/utils/date.js +138 -69
  408. package/utils/error/error.js +11 -3
  409. package/utils/error/errors.js +147 -100
  410. package/utils/getFileType.js +9 -0
  411. package/utils/handleBreakpoints.js +5 -0
  412. package/utils/intersectionObserver.js +5 -0
  413. package/utils/{isMobile.js → isMobile/index.js} +0 -0
  414. package/utils/iterator.js +9 -0
  415. package/utils/map-parent.js +10 -3
  416. package/utils/object/extend.js +10 -0
  417. package/utils/object/object.js +11 -12
  418. package/utils/parseHTML.js +1 -0
  419. package/utils/promisify.js +5 -0
  420. package/utils/randomString.js +7 -0
  421. package/utils/remove-unicode.js +1 -0
  422. package/utils/render-portal.js +9 -1
  423. package/utils/renderHTML.js +6 -4
  424. package/utils/renderIcon.js +19 -9
  425. package/utils/sb-template.js +5 -6
  426. package/utils/string/capitalize.js +1 -0
  427. package/utils/string/capitalizeSentenceCase.js +2 -0
  428. package/utils/string/string.js +13 -0
  429. package/utils/type.js +21 -0
  430. package/utils/updatePosition.js +5 -4
  431. package/utils/useDelayUnmount.js +4 -0
  432. package/utils/useElementSize.js +3 -9
  433. package/utils/useEventListener.js +6 -12
  434. package/utils/useInput.js +6 -0
  435. package/utils/{useMediaQuery.js → useMediaQuery/index.js} +10 -8
  436. package/utils/useOnClickOutside.js +4 -2
  437. package/utils/usePortal.js +19 -12
  438. package/utils/validate.js +53 -39
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { memo, useState, useEffect, useRef, useImperativeHandle, forwardRef, Fragment } from 'react';
4
5
  import { createPortal } from 'react-dom';
@@ -58,8 +59,8 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
58
59
  allowSymbol: false
59
60
  }));
60
61
  const [open, setOpen] = useState(false);
61
-
62
62
  /* Start handler */
63
+
63
64
  const onTriggerDropdown = e => {
64
65
  if (!open) {
65
66
  openDropdownBox();
@@ -68,16 +69,19 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
68
69
  e.currentTarget.blur();
69
70
  }
70
71
  };
72
+
71
73
  const onClickOutsideOfInput = event => {
72
74
  if (ref.current && !ref.current.contains(event.target) && dropdownBoxRef.current && !dropdownBoxRef.current.contains(event.target)) {
73
75
  closeDropdownBox();
74
76
  }
75
77
  };
78
+
76
79
  const pressESCHandler = event => {
77
80
  if (event.key === 'Escape') {
78
81
  closeDropdownBox();
79
82
  }
80
83
  };
84
+
81
85
  const openDropdownBox = () => {
82
86
  setOpen(true);
83
87
  setTimeout(() => {
@@ -95,12 +99,16 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
95
99
  !!onOpened && onOpened(ref.current);
96
100
  }, 10);
97
101
  };
102
+
98
103
  const closeDropdownBox = certain => {
99
104
  var _Array$from, _Array$from$classList;
105
+
100
106
  const portals = document.querySelectorAll('.DGN-UI-Portal');
107
+
101
108
  if (!certain && portals && portals.length > 1 && Array.from(portals)[portals.length - 1] && !Array.from(portals)[portals.length - 1].contains(ref.current) && !((_Array$from = Array.from(portals)[portals.length - 1]) !== null && _Array$from !== void 0 && (_Array$from$classList = _Array$from.classList) !== null && _Array$from$classList !== void 0 && _Array$from$classList.contains('DGN-UI-Modal'))) {
102
109
  return;
103
110
  }
111
+
104
112
  if (dropdownBoxRef.current) {
105
113
  dropdownBoxRef.current.style.pointerEvents = `none`;
106
114
  dropdownBoxRef.current.style.opacity = 0;
@@ -113,6 +121,7 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
113
121
  }, 300);
114
122
  }
115
123
  };
124
+
116
125
  useEffect(() => {
117
126
  return () => {
118
127
  closeDropdownBox();
@@ -128,6 +137,7 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
128
137
  closeDropdownBox(true);
129
138
  }
130
139
  }));
140
+
131
141
  const renderEndIcon = () => {
132
142
  return endIcon && jsx(ButtonIcon, {
133
143
  viewType: 'ghost',
@@ -135,15 +145,14 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
135
145
  onClick: openOnClickAt === 'icon' ? onTriggerDropdown : null
136
146
  });
137
147
  };
148
+
138
149
  return jsx(Fragment, null, jsx("div", {
139
150
  ref: ref,
140
151
  css: DropdownBoxRootCSS(bgColor),
141
152
  className: ['DGN-UI-Dropdown-Box', open && 'dropdown-showing', className].join(' ').trim().replace(/\s+/g, ' '),
142
153
  style: style
143
- }, label ? jsx(Label, {
144
- ...labelProps
145
- }, label) : null, jsx(InputBase, {
146
- ...inputProps,
154
+ }, label ? jsx(Label, { ...labelProps
155
+ }, label) : null, jsx(InputBase, { ...inputProps,
147
156
  className: open ? 'dropdown-focus' : '',
148
157
  style: inputStyle,
149
158
  viewType: viewType,
@@ -161,8 +170,8 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
161
170
  css: DropdownBoxCSS(zIndex)
162
171
  }, children), document.body));
163
172
  }));
164
-
165
173
  /* Start styled */
174
+
166
175
  const DropdownBoxRootCSS = bgColor => css`
167
176
  &.DGN-UI-Dropdown-Box {
168
177
  ${displayBlock}
@@ -192,6 +201,7 @@ const DropdownBoxRootCSS = bgColor => css`
192
201
  }
193
202
  }
194
203
  `;
204
+
195
205
  const DropdownBoxCSS = zIndex => css`
196
206
  ${displayBlock};
197
207
  ${paragraph1};
@@ -225,6 +235,7 @@ const DropdownBoxCSS = zIndex => css`
225
235
  `;
226
236
  /* End styled */
227
237
 
238
+
228
239
  DropdownBox.defaultProps = {
229
240
  className: '',
230
241
  label: '',
@@ -240,40 +251,58 @@ DropdownBox.defaultProps = {
240
251
  DropdownBox.propTypes = {
241
252
  /** class for dropdown */
242
253
  className: PropTypes.string,
254
+
243
255
  /** label for input */
244
256
  label: PropTypes.string,
257
+
245
258
  /** hints for input */
246
259
  placeholder: PropTypes.string,
260
+
247
261
  /** the content to display in input */
248
262
  value: PropTypes.string,
263
+
249
264
  /** icon at start */
250
265
  startIcon: PropTypes.string,
266
+
251
267
  /** icon at end */
252
268
  endIcon: PropTypes.string,
269
+
253
270
  /** background color of DropdownBox input */
254
271
  bgColor: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
272
+
255
273
  /** viewType of InputBase */
256
274
  viewType: PropTypes.oneOf(['underlined', 'outlined']),
275
+
257
276
  /** viewType of InputBase */
258
277
  openOnClickAt: PropTypes.oneOf(['full', 'icon']),
278
+
259
279
  /** style inline for dropdown */
260
280
  style: PropTypes.object,
281
+
261
282
  /** props of input in DropdownBox component */
262
283
  inputProps: PropTypes.object,
284
+
263
285
  /** style inline of input in DropdownBox component */
264
286
  inputStyle: PropTypes.object,
287
+
265
288
  /** the function will run when entering input */
266
289
  onChangeInput: PropTypes.func,
290
+
267
291
  /** delay time on input */
268
292
  delayOnInput: PropTypes.number,
293
+
269
294
  /** style inline of label in DropdownBox component */
270
295
  labelProps: PropTypes.object,
296
+
271
297
  /** z-index for DropdownBox component */
272
298
  zIndex: PropTypes.number,
299
+
273
300
  /** the contents in DropdownBox box (Exp: TreeView) */
274
301
  children: PropTypes.node.isRequired,
302
+
275
303
  /** the function will run after open */
276
304
  onOpened: PropTypes.func,
305
+
277
306
  /** the function will run after close */
278
307
  onClosed: PropTypes.func
279
308
  };
@@ -13,11 +13,13 @@ const Form = /*#__PURE__*/forwardRef(({
13
13
  if (!ref) {
14
14
  ref = useRef(null);
15
15
  }
16
+
16
17
  const submitHandler = e => {
17
18
  e.preventDefault();
18
19
  !!onValidate && onValidate();
19
20
  !!onSubmit && onSubmit(e);
20
21
  };
22
+
21
23
  useEffect(() => {
22
24
  !!onLoaded && onLoaded(ref.current);
23
25
  }, []);
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { memo, useRef, useEffect, forwardRef, Children, useImperativeHandle } from 'react';
4
5
  import PropTypes from 'prop-types';
@@ -17,8 +18,8 @@ const FormGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
17
18
  }, reference) => {
18
19
  const ref = useRef(null);
19
20
  const previousError = useRef(false);
20
-
21
21
  /* Start styled */
22
+
22
23
  const FormGroupRoot = css`
23
24
  position: relative;
24
25
  align-items: flex-end;
@@ -58,9 +59,11 @@ const FormGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
58
59
  /* End styled */
59
60
 
60
61
  /* Start handler */
62
+
61
63
  const resetLabelPosition = () => {
62
64
  const allUnderlined = ref.current.querySelectorAll('.DGN-UI-InputBase.underlined');
63
65
  const outlined = ref.current.querySelector('.DGN-UI-InputBase.outlined');
66
+
64
67
  if (allUnderlined.length && outlined) {
65
68
  allUnderlined.forEach(input => {
66
69
  if (input.previousElementSibling) {
@@ -69,6 +72,7 @@ const FormGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
69
72
  });
70
73
  }
71
74
  };
75
+
72
76
  useEffect(() => {
73
77
  if (ref.current) {
74
78
  resetLabelPosition();
@@ -82,6 +86,7 @@ const FormGroup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
82
86
  isError = true;
83
87
  }
84
88
  });
89
+
85
90
  if (previousError.current !== isError) {
86
91
  previousError.current = isError;
87
92
  ref.current.querySelectorAll('.DGN-UI-TextInput, .DGN-UI-Dropdown, .DGN-UI-InputBase').forEach(node => {
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { css, jsx } from '@emotion/core';
4
5
  import PropTypes from 'prop-types';
@@ -37,10 +38,11 @@ const HelperText = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
37
38
  useImperativeHandle(reference, () => {
38
39
  const currentRef = ref.current || {};
39
40
  currentRef.element = ref.current;
40
- const _instance = {
41
- ...action
41
+ const _instance = { ...action
42
42
  }; // methods
43
+
43
44
  _instance.__proto__ = {}; // hidden methods
45
+
44
46
  currentRef.instance = _instance;
45
47
  return currentRef;
46
48
  });
@@ -70,14 +72,19 @@ HelperText.defaultProps = {
70
72
  HelperText.propTypes = {
71
73
  /** If true, the component is disabled. */
72
74
  disabled: PropTypes.bool,
75
+
73
76
  /** status type to display color for input (only available for type is inform) */
74
77
  status: PropTypes.oneOf(['default', 'warning', 'success', 'danger', 'info']),
78
+
75
79
  /** Class for component. */
76
80
  className: PropTypes.string,
81
+
77
82
  /** Style inline of component. */
78
83
  style: PropTypes.object,
84
+
79
85
  /** Content to display in component. */
80
86
  children: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
87
+
81
88
  /** [Props](https://core.diginet.com.vn/ui/?path=/docs/typography) of Typography */
82
89
  props: PropTypes.any
83
90
  };
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { css, jsx } from '@emotion/core';
4
5
  import { Icon, Typography } from "../..";
@@ -76,10 +77,12 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
76
77
  }, reference) => {
77
78
  if (!reference) reference = useRef(null);
78
79
  if (!autoWidth && inputProps !== null && inputProps !== void 0 && inputProps.autoWidth) autoWidth = inputProps.autoWidth;
80
+
79
81
  const _onChange = e => {
80
82
  onChange && onChange(e);
81
83
  dynamicWidth(e);
82
84
  };
85
+
83
86
  const {
84
87
  bind,
85
88
  value
@@ -92,19 +95,28 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
92
95
  const styleInputBase = useRef(null);
93
96
  const widthInit = useRef(null);
94
97
  const isEnabled = !readOnly && !disabled;
98
+
95
99
  const _InputBaseCSS = InputBaseCSS(readOnly, status);
100
+
96
101
  const _SingleLineCSS = SingleLineCSS(autoWidth, readOnly);
102
+
97
103
  const _InputCSS = InputCSS(autoWidth, isEnabled, hoverTooltip);
104
+
98
105
  const _TypoCSS = TypoCSS(disabled);
106
+
99
107
  const _TextAreaCSS = TextAreaCSS(resize, readOnly);
108
+
100
109
  const _MultilineCSS = MultilineCSS(_TextAreaCSS.name, rows, maxRows);
101
- const _InputBaseIconCSS = InputBaseIconCSS(multiline);
102
110
 
111
+ const _InputBaseIconCSS = InputBaseIconCSS(multiline);
103
112
  /* Start handler */
113
+
114
+
104
115
  const onInputTextArea = e => {
105
116
  if (!/\d+/.test(rows)) {
106
117
  const el = e.target;
107
118
  const defaultHeight = 24;
119
+
108
120
  if (el.value) {
109
121
  el.style.height = 0;
110
122
  el.style.height = Math.max(defaultHeight, el.scrollHeight) + 'px';
@@ -112,8 +124,10 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
112
124
  el.style.height = defaultHeight + 'px';
113
125
  }
114
126
  }
127
+
115
128
  !!onInput && onInput(e);
116
129
  };
130
+
117
131
  useEffect(() => {
118
132
  if (defaultValue !== undefined && defaultValue !== '') {
119
133
  if (multiline && !/\d+/.test(rows) && inputRef.current) {
@@ -126,15 +140,18 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
126
140
  if (multiline && !/\d+/.test(rows) && inputRef.current && !(inputRef.current.value || inputRef.current.value === 0)) {
127
141
  inputRef.current.style.height = '24px';
128
142
  }
143
+
129
144
  if (autoFocus) {
130
145
  inputRef.current.focus();
131
146
  }
132
147
  }, [multiline]);
133
148
  useEffect(() => {
134
149
  const defaultHeight = 24;
150
+
135
151
  if (valueProp !== undefined) {
136
152
  valueArray.current.push(valueProp);
137
- inputRefProp.current.value = valueProp;
153
+ inputRef.current.value = valueProp;
154
+
138
155
  if (multiline && !/\d+/.test(rows)) {
139
156
  inputRef.current.style.height = 0;
140
157
  inputRef.current.style.height = Math.max(defaultHeight, inputRef.current.scrollHeight) + 'px';
@@ -146,6 +163,7 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
146
163
  });
147
164
  }
148
165
  }
166
+
149
167
  return () => {
150
168
  if (valueProp !== undefined && multiline && !/\d+/.test(rows) && inputRef.current) {
151
169
  inputRef.current.style.height = defaultHeight + 'px';
@@ -155,35 +173,40 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
155
173
  /* End handler */
156
174
 
157
175
  useImperativeHandle(reference, () => {
158
- const currentRef = inputRefProp.current || {};
159
- const _instance = {
160
- ...action
176
+ const currentRef = inputRef.current || {};
177
+ const _instance = { ...action
161
178
  }; // methods
179
+
162
180
  _instance.__proto__ = {}; // hidden methods
181
+
163
182
  currentRef.instance = _instance;
164
183
  return currentRef;
165
184
  });
185
+
166
186
  const saveInitInfo = refs => {
167
187
  if (!autoWidth) return;
168
188
  const style = window.getComputedStyle(refs) || refs.currentStyle;
169
189
  if (!widthInit.current) widthInit.current = parseInt(style.width);
170
190
  styleInputBase.current = style;
171
191
  };
192
+
172
193
  const dynamicWidth = e => {
173
- if (!autoWidth || !inputRefProp.current) return;
174
- if (!canvas || !styleInputBase.current || !inputRefProp.current) return;
194
+ if (!autoWidth || !inputRef.current) return;
195
+ if (!canvas || !styleInputBase.current || !inputRef.current) return;
175
196
  const context = canvas.getContext('2d');
176
197
  context.font = styleInputBase.current.font;
177
198
  const {
178
199
  width
179
200
  } = context.measureText(e.target.value);
180
- inputRefProp.current.style.width = `${Math.max(width, widthInit.current)}px`;
201
+ inputRef.current.style.width = `${Math.max(width, widthInit.current)}px`;
181
202
  };
182
-
183
203
  /* Start component */
204
+
205
+
184
206
  const newClass = viewType + (viewType === 'none' || nonStyle ? ' non-style' : '');
185
207
  const StartIcon = useMemo(() => {
186
208
  let node = startIcon;
209
+
187
210
  if (typeof node === 'string') {
188
211
  node = jsx(Icon, {
189
212
  name: startIcon,
@@ -191,6 +214,7 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
191
214
  ...startIconProps
192
215
  });
193
216
  }
217
+
194
218
  return jsx("div", {
195
219
  css: _InputBaseIconCSS,
196
220
  className: classNames('DGN-UI-InputBase-Start-Icon', startIconProps.className),
@@ -199,6 +223,7 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
199
223
  }, [startIcon, startIconProps]);
200
224
  const EndIcon = useMemo(() => {
201
225
  let node = endIcon;
226
+
202
227
  if (typeof node === 'string') {
203
228
  node = jsx(Icon, {
204
229
  name: endIcon,
@@ -206,6 +231,7 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
206
231
  ...endIconProps
207
232
  });
208
233
  }
234
+
209
235
  return jsx("div", {
210
236
  css: _InputBaseIconCSS,
211
237
  className: classNames('DGN-UI-InputBase-End-Icon', endIconProps.className),
@@ -281,6 +307,7 @@ const InputBase = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
281
307
 
282
308
  return multiline ? MultipleInputComp : InputComp;
283
309
  }));
310
+
284
311
  const InputBaseCSS = (readOnly, status) => css`
285
312
  ${flexRow};
286
313
  ${positionRelative};
@@ -411,6 +438,7 @@ const InputBaseCSS = (readOnly, status) => css`
411
438
  top: 100%;
412
439
  }
413
440
  `;
441
+
414
442
  const SingleLineCSS = (autoWidth, readOnly) => css`
415
443
  ${parseWidthHeight(autoWidth ? 'max-content' : 'auto', 'max-content')}
416
444
  ${itemsCenter};
@@ -429,6 +457,7 @@ const SingleLineCSS = (autoWidth, readOnly) => css`
429
457
  ${bgColor(systemWhite)};
430
458
  }
431
459
  `;
460
+
432
461
  const InputCSS = (autoWidth, isEnabled, hoverTooltip) => css`
433
462
  ${parseWidthHeight(autoWidth ? '10px' : '100%', 24)};
434
463
  ${borderNone};
@@ -458,6 +487,7 @@ const InputCSS = (autoWidth, isEnabled, hoverTooltip) => css`
458
487
  }
459
488
  ${!isEnabled && hoverTooltip && displayNone};
460
489
  `;
490
+
461
491
  const TypoCSS = disabled => css`
462
492
  ${parseHeight(24)};
463
493
  &:focus {
@@ -469,6 +499,7 @@ const TypoCSS = disabled => css`
469
499
  }
470
500
  ${disabled && userSelectNone};
471
501
  `;
502
+
472
503
  const MultilineCSS = (TextAreaCSSName, rows, maxRows) => css`
473
504
  ${parseWidthHeight('100%', 'max-content')};
474
505
  &.outlined {
@@ -486,6 +517,7 @@ const MultilineCSS = (TextAreaCSSName, rows, maxRows) => css`
486
517
  }
487
518
  }
488
519
  `;
520
+
489
521
  const TextAreaCSS = (resize, readOnly) => css`
490
522
  ${displayBlock};
491
523
  ${paragraph1};
@@ -524,6 +556,7 @@ const TextAreaCSS = (resize, readOnly) => css`
524
556
  background-clip: content-box;
525
557
  }
526
558
  `;
559
+
527
560
  const InputBaseIconCSS = multiple => css`
528
561
  ${flexRow};
529
562
  ${multiple && selfEnd};
@@ -538,6 +571,7 @@ const InputBaseIconCSS = multiple => css`
538
571
  ${mgl([1])};
539
572
  }
540
573
  `;
574
+
541
575
  InputBase.defaultProps = {
542
576
  autoComplete: 'off',
543
577
  autoFocus: false,
@@ -563,64 +597,94 @@ InputBase.defaultProps = {
563
597
  InputBase.propTypes = {
564
598
  /** This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). */
565
599
  autoComplete: PropTypes.string,
600
+
566
601
  /** If `true`, the input element is focused during the first mount. */
567
602
  autoFocus: PropTypes.bool,
603
+
568
604
  /** If `true`, the width of the component will automatically be set according to the contents inside the input, don't run with multiline = true */
569
605
  autoWidth: PropTypes.bool,
606
+
570
607
  /** Class for component. */
571
608
  className: PropTypes.string,
609
+
572
610
  /** The default value. Use when the component is not controlled. */
573
611
  defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
612
+
574
613
  /** The number of milliseconds to wait before call onChange. */
575
614
  delayOnChange: PropTypes.number,
615
+
576
616
  /** If `true`, the component is disabled.*/
577
617
  disabled: PropTypes.bool,
618
+
578
619
  /** [Icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic--basic) or element placed to the right of input. */
579
620
  endIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
621
+
580
622
  /** Props of end icon. */
581
623
  endIconProps: PropTypes.object,
624
+
582
625
  /** Style inline of icon. */
583
626
  iconStyle: PropTypes.object,
627
+
584
628
  /** [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes) applied to the input element. */
585
629
  inputProps: PropTypes.object,
630
+
586
631
  /** Pass a ref to the input element. */
587
632
  inputRef: ref,
633
+
588
634
  /** Style inline of input element. */
589
635
  inputStyle: PropTypes.object,
636
+
590
637
  /** Maximum number of rows to display when multiline option is set to true. */
591
638
  maxRows: PropTypes.number,
639
+
592
640
  /** If `true`, a textarea element is rendered. */
593
641
  multiline: PropTypes.bool,
642
+
594
643
  /** Callback fired when the input is blurred. */
595
644
  onBlur: PropTypes.func,
645
+
596
646
  /** Callback fired when the value is changed. */
597
647
  onChange: PropTypes.func,
648
+
598
649
  /** Callback fired when the input is focused. */
599
650
  onFocus: PropTypes.func,
651
+
600
652
  /** Callback fired when input. */
601
653
  onInput: PropTypes.func,
654
+
602
655
  /** Callback fired when pressing a key. */
603
656
  onKeyDown: PropTypes.func,
657
+
604
658
  /** Callback fired when releases a key. */
605
659
  onKeyUp: PropTypes.func,
660
+
606
661
  /** The short hint displayed in the input before the user enters a value. */
607
662
  placeholder: PropTypes.string,
663
+
608
664
  /** If `true`, the component is readonly. */
609
665
  readOnly: PropTypes.bool,
666
+
610
667
  /** If `true`, the input element is required. */
611
668
  required: PropTypes.bool,
669
+
612
670
  /** allow resize multiline input (resize css style) */
613
671
  resize: PropTypes.string,
672
+
614
673
  /** Number of rows to display when multiline option is set to true. */
615
674
  rows: PropTypes.number,
675
+
616
676
  /** [Icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic--basic) or element placed to the left of input. */
617
677
  startIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
678
+
618
679
  /** Props of start icon. */
619
680
  startIconProps: PropTypes.object,
681
+
620
682
  /** Status type to display color for input. */
621
683
  status: PropTypes.oneOf(['default', 'warning', 'success', 'danger', 'info']),
684
+
622
685
  /** The value of the input element, required for a controlled component. */
623
686
  value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
687
+
624
688
  /** The variant to use. */
625
689
  viewType: PropTypes.oneOf(['underlined', 'outlined', 'none'])
626
690
  };
@@ -1,4 +1,5 @@
1
1
  /** @jsxRuntime classic */
2
+
2
3
  /** @jsx jsx */
3
4
  import { css, jsx } from '@emotion/core';
4
5
  import { Typography } from "../..";
@@ -38,10 +39,11 @@ const Label = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
38
39
  useImperativeHandle(reference, () => {
39
40
  const currentRef = ref.current || {};
40
41
  currentRef.element = ref.current;
41
- const _instance = {
42
- ...action
42
+ const _instance = { ...action
43
43
  }; // methods
44
+
44
45
  _instance.__proto__ = {}; // hidden methods
46
+
45
47
  currentRef.instance = _instance;
46
48
  return currentRef;
47
49
  });
@@ -89,20 +91,28 @@ Label.defaultProps = {
89
91
  Label.propTypes = {
90
92
  /** The content of the component. */
91
93
  children: PropTypes.node,
94
+
92
95
  /** Class for component. */
93
96
  className: PropTypes.string,
97
+
94
98
  /** If `true`, the component is disabled. */
95
99
  disabled: PropTypes.bool,
100
+
96
101
  /** If `true`, the component is readonly. */
97
102
  readOnly: PropTypes.bool,
103
+
98
104
  /** If `true`, the label will indicate that the input is required. */
99
105
  required: PropTypes.bool,
106
+
100
107
  /** Consult [Typography's](https://core.diginet.com.vn/ui/?path=/docs/typography) documents. */
101
108
  color: PropTypes.string,
109
+
102
110
  /** Consult [Typography's](https://core.diginet.com.vn/ui/?path=/docs/typography) documents. */
103
111
  lineClamp: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['auto'])]),
112
+
104
113
  /** Consult [Typography's](https://core.diginet.com.vn/ui/?path=/docs/typography) documents. */
105
114
  hoverTooltip: PropTypes.bool,
115
+
106
116
  /** Consult [Typography's](https://core.diginet.com.vn/ui/?path=/docs/typography) documents. */
107
117
  type: PropTypes.oneOf(typographyTypes)
108
118
  };