@cashub/ui 0.22.7 → 0.22.9

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 (698) hide show
  1. package/dist/package.json +50 -0
  2. package/{table → dist/table}/Table.js +6 -5
  3. package/package.json +59 -50
  4. package/setupTests.js +9 -0
  5. package/src/Tab/Tab.js +11 -0
  6. package/src/Tab/TabList.js +20 -0
  7. package/src/Tab/TabPanel.js +35 -0
  8. package/src/Tab/TabTab.js +42 -0
  9. package/src/Tab/__stories__/Tab.stories.js +48 -0
  10. package/src/Tab/__stories__/TabList.stories.js +26 -0
  11. package/src/Tab/__stories__/TabPanel.stories.js +45 -0
  12. package/src/Tab/__stories__/TabTab.stories.js +30 -0
  13. package/src/Tab/__test__/Tab.test.js +43 -0
  14. package/src/Tab/__test__/TabList.test.js +22 -0
  15. package/src/Tab/__test__/TabPanel.test.js +27 -0
  16. package/src/Tab/__test__/TabTab.test.js +58 -0
  17. package/src/Tab/index.js +10 -0
  18. package/src/Tab/subComponent/TabContext.js +5 -0
  19. package/src/animate/Collapse.js +68 -0
  20. package/src/animate/Loader.js +36 -0
  21. package/src/animate/NumberCounter.js +49 -0
  22. package/src/animate/PulseRing.js +25 -0
  23. package/src/animate/Spinner.js +13 -0
  24. package/src/animate/__stories__/Collapse.stories.js +60 -0
  25. package/src/animate/__stories__/Loader.stories.js +33 -0
  26. package/src/animate/__stories__/NumberCounter.stories.js +29 -0
  27. package/src/animate/__stories__/PulseRing.stories.js +17 -0
  28. package/src/animate/__stories__/Spinner.stories.js +13 -0
  29. package/src/animate/__test__/Collapse.test.js +125 -0
  30. package/src/animate/__test__/Loader.test.js +42 -0
  31. package/src/animate/__test__/NumberCounter.test.js +71 -0
  32. package/src/animate/__test__/PulseRing.test.js +37 -0
  33. package/src/animate/__test__/Spinner.test.js +18 -0
  34. package/src/animate/index.js +5 -0
  35. package/src/assets/css/autocomplete.css +16 -0
  36. package/src/assets/css/font.css +4 -0
  37. package/src/assets/css/global.css +3 -0
  38. package/src/assets/css/normalize.css +386 -0
  39. package/src/assets/font/helvetica/Helvetica.ttf +0 -0
  40. package/src/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
  41. package/src/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
  42. package/src/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
  43. package/src/assets/icons/app-management.png +0 -0
  44. package/src/assets/icons/burger.png +0 -0
  45. package/src/assets/icons/file.svg +1 -0
  46. package/src/assets/icons/map_icon1.png +0 -0
  47. package/src/assets/icons/map_icon4.png +0 -0
  48. package/src/assets/images/bg-chart-circle.png +0 -0
  49. package/src/assets/images/bg-chart-triangle.png +0 -0
  50. package/src/assets/images/cashub-logo-only.png +0 -0
  51. package/src/assets/images/default-user.jpg +0 -0
  52. package/src/assets/images/logo-cashub.png +0 -0
  53. package/src/assets/images/map.png +0 -0
  54. package/src/assets/images/qrcode.png +0 -0
  55. package/src/backdrop/BaseBackdrop.js +13 -0
  56. package/src/backdrop/LoadingBackdrop.js +12 -0
  57. package/src/backdrop/ModalBackdrop.js +10 -0
  58. package/src/backdrop/__test__/BaseBackdrop.test.js +10 -0
  59. package/src/backdrop/__test__/LoadingBackdrop.test.js +9 -0
  60. package/src/backdrop/__test__/ModalBackdrop.test.js +8 -0
  61. package/src/backdrop/index.js +3 -0
  62. package/src/badge/Badge.js +21 -0
  63. package/src/badge/BadgeDot.js +13 -0
  64. package/src/badge/BadgeFill.js +29 -0
  65. package/src/badge/BadgeWithText.js +21 -0
  66. package/src/badge/__stories__/Badge.stories.js +43 -0
  67. package/src/badge/__stories__/BadgeDot.stories.js +23 -0
  68. package/src/badge/__stories__/BadgeFill.stories.js +29 -0
  69. package/src/badge/__stories__/BadgeWithText.stories.js +26 -0
  70. package/src/badge/__test__/Badge.test.js +19 -0
  71. package/src/badge/__test__/BadgeDot.test.js +22 -0
  72. package/src/badge/__test__/BadgeFill.test.js +41 -0
  73. package/src/badge/__test__/BadgeWithText.test.js +22 -0
  74. package/src/badge/index.js +4 -0
  75. package/src/billing/BarChart.js +42 -0
  76. package/src/billing/Grid.js +30 -0
  77. package/src/billing/Header2.js +15 -0
  78. package/src/billing/Header3.js +32 -0
  79. package/src/billing/Paragraph.js +27 -0
  80. package/src/billing/ParagraphGroup.js +12 -0
  81. package/src/billing/ParagraphText.js +16 -0
  82. package/src/billing/Section.js +48 -0
  83. package/src/billing/SectionBody.js +7 -0
  84. package/src/billing/SectionHeader.js +16 -0
  85. package/src/billing/__stories__/BarChart.stories.js_bak +46 -0
  86. package/src/billing/__stories__/Grid.stories.js_bak +57 -0
  87. package/src/billing/__stories__/Header2.stories.js_bak +62 -0
  88. package/src/billing/__stories__/Header3.stories.js_bak +69 -0
  89. package/src/billing/__stories__/Paragraph.stories.js_bak +84 -0
  90. package/src/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
  91. package/src/billing/__stories__/ParagraphText.stories.js_bak +64 -0
  92. package/src/billing/__stories__/Section.stories.js_bak +115 -0
  93. package/src/billing/__stories__/SectionBody.stories.js_bak +62 -0
  94. package/src/billing/__stories__/SectionHeader.stories.js-bak +68 -0
  95. package/src/breadcrumb/Breadcrumb.js +66 -0
  96. package/src/breadcrumb/__stories__/Breadcrumb.stories.js +31 -0
  97. package/src/breadcrumb/__test__/breadcrumb.test.js +27 -0
  98. package/src/breadcrumb/index.js +1 -0
  99. package/src/button/Button.js +80 -0
  100. package/src/button/ButtonGroup.js +33 -0
  101. package/src/button/IconButton.js +40 -0
  102. package/src/button/ScrollToTopButton.js +48 -0
  103. package/src/button/__stories__/Button.stories.js +70 -0
  104. package/src/button/__stories__/ButtonGroup.stories.js +48 -0
  105. package/src/button/__stories__/IconButton.stories.js +30 -0
  106. package/src/button/__stories__/ScrollToTopButton.stories.js +22 -0
  107. package/src/button/__test__/Button.test.js +32 -0
  108. package/src/button/__test__/ButtonGroup.test.js +25 -0
  109. package/src/button/__test__/IconButton.test.js +34 -0
  110. package/src/button/__test__/ScrollToTopButton.test.js +19 -0
  111. package/src/button/index.js +4 -0
  112. package/src/callout/Callout.js +52 -0
  113. package/src/callout/__stories__/Callout.stories.js +23 -0
  114. package/src/callout/__test__/Callout.test.js +29 -0
  115. package/src/callout/index.js +1 -0
  116. package/src/chart/BarChart.js +134 -0
  117. package/src/chart/DoughnutChart.js +82 -0
  118. package/src/chart/LineChart.js +114 -0
  119. package/src/chart/SingleBarChart.js +27 -0
  120. package/src/chart/__stories__/BarChart.stories.js +54 -0
  121. package/src/chart/__stories__/DoughnutChart.stories.js +33 -0
  122. package/src/chart/__stories__/LineChart.stories.js +73 -0
  123. package/src/chart/__stories__/SingleBarChart.stories.js +22 -0
  124. package/src/chart/index.js +5 -0
  125. package/src/chart/utils/customTooltip.js +108 -0
  126. package/src/chart/utils/htmlLegendPlugin.js +88 -0
  127. package/src/chart/utils/index.js +3 -0
  128. package/src/chart/utils/padEmptyChartBar.js +37 -0
  129. package/src/container/FlexContainer.js +13 -0
  130. package/src/container/__stories__/FlexContainer.stories.js +39 -0
  131. package/src/container/__test__/FlexContainer.test.js +21 -0
  132. package/src/container/index.js +1 -0
  133. package/src/cropper/Cropper.js +49 -0
  134. package/src/cropper/CropperModalHandler.js +36 -0
  135. package/src/cropper/__stories__/Cropper.stories.js +32 -0
  136. package/src/cropper/__test__/Cropper.test.js +90 -0
  137. package/src/cropper/index.js +2 -0
  138. package/src/cropper/subComponent/CropImageModal.js +84 -0
  139. package/src/datetimePicker/DatePicker.js +493 -0
  140. package/src/datetimePicker/DatePickerV2.js +500 -0
  141. package/src/datetimePicker/DatetimePicker.js +218 -0
  142. package/src/datetimePicker/DatetimePickerV2.js +512 -0
  143. package/src/datetimePicker/TimeInput.js +45 -0
  144. package/src/datetimePicker/TimePicker.js +318 -0
  145. package/src/datetimePicker/TimePickerStyle.js +59 -0
  146. package/src/datetimePicker/__stories__/DatePicker.stories.js +51 -0
  147. package/src/datetimePicker/__stories__/DatePickerV2.stories.js +73 -0
  148. package/src/datetimePicker/__stories__/DatetimePicker.stories.js +71 -0
  149. package/src/datetimePicker/__stories__/DatetimePickerV2.stories.js +91 -0
  150. package/src/datetimePicker/__stories__/TimeInput.stories.js +67 -0
  151. package/src/datetimePicker/__stories__/TimePicker.stories.js +29 -0
  152. package/src/datetimePicker/__test__/CustomTimeInput.test.js +25 -0
  153. package/src/datetimePicker/__test__/DatetimePicker.test.js +121 -0
  154. package/src/datetimePicker/__test__/TimeInput.test.js +22 -0
  155. package/src/datetimePicker/accordion/Month.js +258 -0
  156. package/src/datetimePicker/accordion/Year.js +307 -0
  157. package/src/datetimePicker/hooks/index.js +3 -0
  158. package/src/datetimePicker/hooks/useChangeNumber.js +42 -0
  159. package/src/datetimePicker/hooks/useDecrease.js +31 -0
  160. package/src/datetimePicker/hooks/useIncrease.js +31 -0
  161. package/src/datetimePicker/index.js +7 -0
  162. package/src/datetimePicker/provider/constant.js +16 -0
  163. package/src/datetimePicker/subComponent/Accordion.js +407 -0
  164. package/src/datetimePicker/subComponent/CustomTimeInput.js +48 -0
  165. package/src/datetimePicker/subComponent/DateTimePickerContext.js +5 -0
  166. package/src/datetimePicker/utils/GMTDate.js +13 -0
  167. package/src/datetimePicker/utils/pad.js +9 -0
  168. package/src/datetimePicker/utils/toUTC0.js +10 -0
  169. package/src/descriptionList/DescriptionDetail.js +18 -0
  170. package/src/descriptionList/DescriptionList.js +15 -0
  171. package/src/descriptionList/DescriptionTerm.js +9 -0
  172. package/src/descriptionList/__stories__/DescriptionDetail.stories.js +39 -0
  173. package/src/descriptionList/__stories__/DescriptionList.stories.js +39 -0
  174. package/src/descriptionList/__stories__/DescriptionTerm.stories.js +13 -0
  175. package/src/descriptionList/__test__/DescriptionDetail.test.js +13 -0
  176. package/src/descriptionList/__test__/DescriptionList.test.js +12 -0
  177. package/src/descriptionList/__test__/DescriptionTerm.test.js +7 -0
  178. package/src/descriptionList/index.js +3 -0
  179. package/src/divider/Divider.js +21 -0
  180. package/src/divider/__stories__/Divider.stories.js +23 -0
  181. package/src/divider/__test__/Divider.test.js +24 -0
  182. package/src/divider/index.js +1 -0
  183. package/src/dropdown/Dropdown.js +50 -0
  184. package/src/dropdown/DropdownButtonOption.js +25 -0
  185. package/src/dropdown/DropdownContent.js +78 -0
  186. package/src/dropdown/DropdownDivOption.js +21 -0
  187. package/src/dropdown/DropdownItem.js +17 -0
  188. package/src/dropdown/DropdownLinkOption.js +19 -0
  189. package/src/dropdown/DropdownToggle.js +26 -0
  190. package/src/dropdown/__stories__/Dropdown.stories.js +46 -0
  191. package/src/dropdown/__stories__/DropdownButtonOption.stories.js +33 -0
  192. package/src/dropdown/__stories__/DropdownContent.stories.js +34 -0
  193. package/src/dropdown/__stories__/DropdownDivOption.stories.js +27 -0
  194. package/src/dropdown/__stories__/DropdownItem.stories.js +48 -0
  195. package/src/dropdown/__stories__/DropdownLinkOption.stories.js +63 -0
  196. package/src/dropdown/__stories__/DropdownToggle.stories.js +40 -0
  197. package/src/dropdown/__test__/Dropdown.test.js +132 -0
  198. package/src/dropdown/__test__/DropdownButtonOption.test.js +8 -0
  199. package/src/dropdown/__test__/DropdownContent.test.js +85 -0
  200. package/src/dropdown/__test__/DropdownDivOption.test.js +8 -0
  201. package/src/dropdown/__test__/DropdownItem.test.js +55 -0
  202. package/src/dropdown/__test__/DropdownLinkOption.test.js +14 -0
  203. package/src/dropdown/__test__/DropdownToggle.test.js +53 -0
  204. package/src/dropdown/index.js +12 -0
  205. package/src/dropdown/subComponent/DropdownContext.js +5 -0
  206. package/src/dropzone/FileDropzone.js +543 -0
  207. package/src/dropzone/ImageDropzone.js +365 -0
  208. package/src/dropzone/__stories__/FileDropzone.stories.js +148 -0
  209. package/src/dropzone/__stories__/ImageDropzone.stories.js +101 -0
  210. package/src/dropzone/__test__/FileDropzone.test.js +382 -0
  211. package/src/dropzone/__test__/ImageDropzone.test.js +290 -0
  212. package/src/dropzone/__test__/Message.test.js +14 -0
  213. package/src/dropzone/index.js +2 -0
  214. package/src/dropzone/subComponent/Message.js +16 -0
  215. package/src/figure/IconFigure.js +31 -0
  216. package/src/figure/ImageFigure.js +25 -0
  217. package/src/figure/__stories__/IconFigure.stories.js +25 -0
  218. package/src/figure/__stories__/ImageFigure.stories.js +26 -0
  219. package/src/figure/__test__/IconFigure.test.js +28 -0
  220. package/src/figure/__test__/ImageFigure.test.js +38 -0
  221. package/src/figure/index.js +2 -0
  222. package/src/file/HiddenFileInput.js +10 -0
  223. package/src/file/index.js +1 -0
  224. package/src/form/Checkbox.js +127 -0
  225. package/src/form/FormItem.js +7 -0
  226. package/src/form/Input.js +42 -0
  227. package/src/form/Label.js +33 -0
  228. package/src/form/MutedText.js +11 -0
  229. package/src/form/RadioButton.js +80 -0
  230. package/src/form/Searchbox.js +95 -0
  231. package/src/form/Slider.js +34 -0
  232. package/src/form/SwitchButton.js +86 -0
  233. package/src/form/Textarea.js +36 -0
  234. package/src/form/TreeView.js +77 -0
  235. package/src/form/__stories__/Checkbox.stories.js +63 -0
  236. package/src/form/__stories__/FormItem.stories.js +28 -0
  237. package/src/form/__stories__/Input.stories.js +30 -0
  238. package/src/form/__stories__/Label.stories.js +38 -0
  239. package/src/form/__stories__/MutedText.stories.js +27 -0
  240. package/src/form/__stories__/RadioButton.stories.js +48 -0
  241. package/src/form/__stories__/Searchbox.stories.js +24 -0
  242. package/src/form/__stories__/Slider.stories.js +46 -0
  243. package/src/form/__stories__/SwitchButton.stories.js +48 -0
  244. package/src/form/__stories__/Textarea.stories.js +19 -0
  245. package/src/form/__stories__/TreeView.stories.js +76 -0
  246. package/src/form/__test__/Checkbox.test.js +68 -0
  247. package/src/form/__test__/FormItem.test.js +8 -0
  248. package/src/form/__test__/Input.test.js +28 -0
  249. package/src/form/__test__/Label.test.js +33 -0
  250. package/src/form/__test__/MutedText.test.js +18 -0
  251. package/src/form/__test__/RadioButton.test.js +57 -0
  252. package/src/form/__test__/Searchbox.test.js +50 -0
  253. package/src/form/__test__/Textarea.test.js +25 -0
  254. package/src/form/index.js +11 -0
  255. package/src/grid/Column.js +36 -0
  256. package/src/grid/Grid.js +15 -0
  257. package/src/grid/__stories__/Grid.stories.js +38 -0
  258. package/src/grid/__test__/Grid.test.js +44 -0
  259. package/src/grid/index.js +2 -0
  260. package/src/heading/Heading1.js +11 -0
  261. package/src/heading/Heading2.js +13 -0
  262. package/src/heading/Heading3.js +21 -0
  263. package/src/heading/__stories__/Heading1.stories.js +24 -0
  264. package/src/heading/__stories__/Heading2.stories.js +24 -0
  265. package/src/heading/__stories__/Heading3.stories.js +24 -0
  266. package/src/heading/__test__/Heading1.test.js +21 -0
  267. package/src/heading/__test__/Heading2.test.js +34 -0
  268. package/src/heading/__test__/Heading3.test.js +46 -0
  269. package/src/heading/index.js +3 -0
  270. package/src/helmet/Helmet.js +12 -0
  271. package/src/helmet/__test__/Helmet.test.js +38 -0
  272. package/src/helmet/index.js +2 -0
  273. package/src/iconbox/ApplicationIconBox.js +62 -0
  274. package/src/iconbox/IconBox.js +54 -0
  275. package/src/iconbox/IconBoxV2.js +49 -0
  276. package/src/iconbox/__stories__/ApplicationIconBox.stories.js +53 -0
  277. package/src/iconbox/__stories__/IconBox.stories.js +34 -0
  278. package/src/iconbox/__stories__/IconBoxFigure.stories.js +67 -0
  279. package/src/iconbox/__stories__/IconBoxFigure.stories_V2.stories.js +41 -0
  280. package/src/iconbox/__stories__/IconBoxImage.stories.js +32 -0
  281. package/src/iconbox/__stories__/IconBoxV2.stories.js +60 -0
  282. package/src/iconbox/__test__/ApplicationIconBox.test.js +77 -0
  283. package/src/iconbox/__test__/IconBox.test.js +22 -0
  284. package/src/iconbox/__test__/IconBoxFigure.test.js +37 -0
  285. package/src/iconbox/__test__/IconBoxImage.test.js +32 -0
  286. package/src/iconbox/__test__/IconBoxV2.test.js +51 -0
  287. package/src/iconbox/index.js +3 -0
  288. package/src/iconbox/subComponent/IconBoxFigure.js +16 -0
  289. package/src/iconbox/subComponent/IconBoxImage.js +26 -0
  290. package/src/image/ImageFluid.js +12 -0
  291. package/src/image/UploadImage.js +287 -0
  292. package/src/image/__stories__/ImageFluid.stories.js +25 -0
  293. package/src/image/__stories__/UploadImage.stories.js +56 -0
  294. package/src/image/__test__/ImageFluid.test.js +44 -0
  295. package/src/image/__test__/UploadImage.test.js +315 -0
  296. package/src/image/index.js +2 -0
  297. package/src/index.js +42 -0
  298. package/src/jsoneditor/JsonEditor.js +132 -0
  299. package/src/jsoneditor/__stories__/JsonEditor.stories.js +55 -0
  300. package/src/jsoneditor/__test__/JsonEditor.test.js +52 -0
  301. package/src/jsoneditor/index.js +1 -0
  302. package/src/keyframe/Pulse.js +17 -0
  303. package/src/keyframe/Spin.js +9 -0
  304. package/src/link/LinkSpan.js +44 -0
  305. package/src/link/__stories__/LinkSpan.stories.js +27 -0
  306. package/src/link/__test__/LinkSpan.test.js +52 -0
  307. package/src/link/index.js +1 -0
  308. package/src/map/GoogleMap.js +383 -0
  309. package/src/map/GoogleReverseGeolocation.js +197 -0
  310. package/src/map/LeafletMap.js +264 -0
  311. package/src/map/LeafletReverseGeolocation.js +89 -0
  312. package/src/map/__stories__/GoogleMap.stories.js +137 -0
  313. package/src/map/__stories__/GoogleReverseGeolocation.stories.js +95 -0
  314. package/src/map/__stories__/LeafletMap.stories.js +136 -0
  315. package/src/map/__stories__/LeafletReverseGeolocation.stories.js +91 -0
  316. package/src/map/__test__/LeafletReverseGeolocation.test.js +245 -0
  317. package/src/map/__test__/MapSearchBoxControl.test.js +89 -0
  318. package/src/map/index.js +4 -0
  319. package/src/map/subComponent/BasicLeafletMap.js +33 -0
  320. package/src/map/subComponent/GoogleMapContainer.js +19 -0
  321. package/src/map/subComponent/GoogleMapPopup.js +115 -0
  322. package/src/map/subComponent/GoogleMapWrapper.js +27 -0
  323. package/src/map/subComponent/GoogleMarkerSpiderfier.js +13 -0
  324. package/src/map/subComponent/LeafletDrawControl.js +133 -0
  325. package/src/map/subComponent/LeafletMapContainer.js +163 -0
  326. package/src/map/subComponent/MapSearchBoxControl.js +43 -0
  327. package/src/modal/StateModal.js +139 -0
  328. package/src/modal/TitleModal.js +229 -0
  329. package/src/modal/__stories__/StateModal.stories.js +46 -0
  330. package/src/modal/__stories__/TitleModal.stories.js +56 -0
  331. package/src/modal/__test__/StateModal.test.js +144 -0
  332. package/src/modal/index.js +2 -0
  333. package/src/paginate/Paginate.js +132 -0
  334. package/src/paginate/__stories__/Paginate.stories.js +49 -0
  335. package/src/paginate/__test__/Paginate.test.js +124 -0
  336. package/src/paginate/index.js +1 -0
  337. package/src/popover/Popover.js +82 -0
  338. package/src/popover/__stories__/Popover.stories.js +44 -0
  339. package/src/popover/index.js +1 -0
  340. package/src/qrcode/QRCode.js +54 -0
  341. package/src/qrcode/QRCodeContainter.js +25 -0
  342. package/src/qrcode/__stories__/QRCode.stories.js +36 -0
  343. package/src/qrcode/__stories__/QRCodeContainter.stories.js +28 -0
  344. package/src/qrcode/index.js +2 -0
  345. package/src/ribbon/Ribbon.js +38 -0
  346. package/src/ribbon/__stories__/Ribbon.stories.js +25 -0
  347. package/src/ribbon/index.js +1 -0
  348. package/src/section/Section.js +66 -0
  349. package/src/section/SectionBody.js +34 -0
  350. package/src/section/SectionHeader.js +41 -0
  351. package/src/section/SectionToolbar.js +13 -0
  352. package/src/section/SectionToolbarItem.js +12 -0
  353. package/src/section/__stories__/Section.stories.js +52 -0
  354. package/src/section/__stories__/SectionBody.stories.js +40 -0
  355. package/src/section/__stories__/SectionHeader.stories.js +67 -0
  356. package/src/section/__stories__/SectionToolbar.stories.js +43 -0
  357. package/src/section/__test__/Section.test.js +98 -0
  358. package/src/section/__test__/SectionBody.test.js +89 -0
  359. package/src/section/__test__/SectionHeader.test.js +35 -0
  360. package/src/section/__test__/SectionToolbar.test.js +17 -0
  361. package/src/section/index.js +5 -0
  362. package/src/select/InputSelect.js +314 -0
  363. package/src/select/Select.js +764 -0
  364. package/src/select/__stories__/InputSelect.stories.js +60 -0
  365. package/src/select/__stories__/Select.stories.js +132 -0
  366. package/src/select/__test__/Select.test.js +219 -0
  367. package/src/select/index.js +2 -0
  368. package/src/select/subComponent/ListBox.js +15 -0
  369. package/src/select/subComponent/Option.js +22 -0
  370. package/src/select/subComponent/OptionGroup.js +18 -0
  371. package/src/select/subComponent/Options.js +24 -0
  372. package/src/select/subComponent/SearchBox.js +53 -0
  373. package/src/select/subComponent/SelectedMultiple.js +39 -0
  374. package/src/select/subComponent/SelectedSingle.js +10 -0
  375. package/src/styles/GlobalStyle.js +59 -0
  376. package/src/styles/config/breakpoint.style.js +8 -0
  377. package/src/styles/config/header.style.js +5 -0
  378. package/src/styles/config/sidebar.style.js +12 -0
  379. package/src/styles/index.js +2 -0
  380. package/src/styles/mixin/backgroundColor.js +13 -0
  381. package/src/styles/mixin/borderColor.js +13 -0
  382. package/src/styles/mixin/color.js +13 -0
  383. package/src/styles/mixin/colorOnBackground.js +13 -0
  384. package/src/styles/mixin/inputPlaceholder.js +26 -0
  385. package/src/styles/mixin/media.js +14 -0
  386. package/src/styles/mixin/rounded.js +12 -0
  387. package/src/styles/mixin/scrollbar.js +26 -0
  388. package/src/styles/theme/dark.theme.js +95 -0
  389. package/src/styles/theme/light.theme.js +95 -0
  390. package/src/styles/theme/white.theme.js +95 -0
  391. package/src/styles/themes.js +11 -0
  392. package/src/table/GridTable.js +325 -0
  393. package/src/table/ImageBox.js +37 -0
  394. package/src/table/PermissionTable.js +36 -0
  395. package/src/table/Table.js +441 -0
  396. package/src/table/__mock__/columns.js +28 -0
  397. package/src/table/__mock__/data.js +334 -0
  398. package/src/table/__stories__/GridTable.stories.js +129 -0
  399. package/src/table/__stories__/ImageBox.stories.js +27 -0
  400. package/src/table/__stories__/PermissionTable.stories.js +52 -0
  401. package/src/table/__stories__/Table.stories.js +138 -0
  402. package/src/table/hooks/index.js +2 -0
  403. package/src/table/hooks/useCalculateDataRange.js +26 -0
  404. package/src/table/hooks/useGenerateSort.js +37 -0
  405. package/src/table/index.js +4 -0
  406. package/src/table/subComponent/BaseTableHeadCell.js +48 -0
  407. package/src/table/subComponent/GridTableFooter.js +18 -0
  408. package/src/table/subComponent/GridTableHeadCell.js +14 -0
  409. package/src/table/subComponent/Resizer.js +79 -0
  410. package/src/table/subComponent/TableFooter.js +16 -0
  411. package/src/table/subComponent/TableFooterInfo.js +8 -0
  412. package/src/table/subComponent/TableFooterPager.js +26 -0
  413. package/src/table/subComponent/TableHeadCell.js +14 -0
  414. package/src/table/subComponent/TableSort.js +25 -0
  415. package/src/tagify/TagifyStyle.js +35 -0
  416. package/src/tagify/Tags.js +46 -0
  417. package/src/tagify/__stories__/Tags.stories.js +28 -0
  418. package/src/tagify/index.js +2 -0
  419. package/src/text/Paragraph.js +34 -0
  420. package/src/text/__stories__/Paragraph.stories.js +40 -0
  421. package/src/text/index.js +1 -0
  422. package/src/timeline/Timeline.js +98 -0
  423. package/src/timeline/__stories__/Timeline.stories.js +49 -0
  424. package/src/timeline/index.js +1 -0
  425. package/src/toast/CustomToastContainer.js +30 -0
  426. package/src/toast/MessageContainer.js +40 -0
  427. package/src/toast/__stories__/MessageContainer.stories.js +35 -0
  428. package/src/toast/index.js +3 -0
  429. package/src/toast/show.js +34 -0
  430. package/src/toast/style.css +1 -0
  431. package/src/tooltip/Tooltip.js +146 -0
  432. package/src/tooltip/__stories__/Tooltip.stories.js +49 -0
  433. package/src/tooltip/__test__/tooltip.test.js +130 -0
  434. package/src/tooltip/index.js +1 -0
  435. package/src/wizard/Wizard.js +276 -0
  436. package/src/wizard/__stories__/Wizard.stories.js +81 -0
  437. package/src/wizard/__test__/Wizard.test.js +173 -0
  438. package/src/wizard/index.js +1 -0
  439. package/transformer/fileTransformer.js +9 -0
  440. /package/{Tab → dist/Tab}/Tab.js +0 -0
  441. /package/{Tab → dist/Tab}/TabList.js +0 -0
  442. /package/{Tab → dist/Tab}/TabPanel.js +0 -0
  443. /package/{Tab → dist/Tab}/TabTab.js +0 -0
  444. /package/{Tab → dist/Tab}/index.js +0 -0
  445. /package/{Tab → dist/Tab}/subComponent/TabContext.js +0 -0
  446. /package/{animate → dist/animate}/Collapse.js +0 -0
  447. /package/{animate → dist/animate}/Loader.js +0 -0
  448. /package/{animate → dist/animate}/NumberCounter.js +0 -0
  449. /package/{animate → dist/animate}/PulseRing.js +0 -0
  450. /package/{animate → dist/animate}/Spinner.js +0 -0
  451. /package/{animate → dist/animate}/index.js +0 -0
  452. /package/{assets → dist/assets}/css/autocomplete.css +0 -0
  453. /package/{assets → dist/assets}/css/font.css +0 -0
  454. /package/{assets → dist/assets}/css/global.css +0 -0
  455. /package/{assets → dist/assets}/css/normalize.css +0 -0
  456. /package/{assets → dist/assets}/font/helvetica/Helvetica.ttf +0 -0
  457. /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
  458. /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
  459. /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
  460. /package/{assets → dist/assets}/icons/app-management.png +0 -0
  461. /package/{assets → dist/assets}/icons/burger.png +0 -0
  462. /package/{assets → dist/assets}/icons/file.svg +0 -0
  463. /package/{assets → dist/assets}/icons/map_icon1.png +0 -0
  464. /package/{assets → dist/assets}/icons/map_icon4.png +0 -0
  465. /package/{assets → dist/assets}/images/bg-chart-circle.png +0 -0
  466. /package/{assets → dist/assets}/images/bg-chart-triangle.png +0 -0
  467. /package/{assets → dist/assets}/images/cashub-logo-only.png +0 -0
  468. /package/{assets → dist/assets}/images/default-user.jpg +0 -0
  469. /package/{assets → dist/assets}/images/logo-cashub.png +0 -0
  470. /package/{assets → dist/assets}/images/map.png +0 -0
  471. /package/{assets → dist/assets}/images/qrcode.png +0 -0
  472. /package/{backdrop → dist/backdrop}/BaseBackdrop.js +0 -0
  473. /package/{backdrop → dist/backdrop}/LoadingBackdrop.js +0 -0
  474. /package/{backdrop → dist/backdrop}/ModalBackdrop.js +0 -0
  475. /package/{backdrop → dist/backdrop}/index.js +0 -0
  476. /package/{badge → dist/badge}/Badge.js +0 -0
  477. /package/{badge → dist/badge}/BadgeDot.js +0 -0
  478. /package/{badge → dist/badge}/BadgeFill.js +0 -0
  479. /package/{badge → dist/badge}/BadgeWithText.js +0 -0
  480. /package/{badge → dist/badge}/index.js +0 -0
  481. /package/{billing → dist/billing}/BarChart.js +0 -0
  482. /package/{billing → dist/billing}/Grid.js +0 -0
  483. /package/{billing → dist/billing}/Header2.js +0 -0
  484. /package/{billing → dist/billing}/Header3.js +0 -0
  485. /package/{billing → dist/billing}/Paragraph.js +0 -0
  486. /package/{billing → dist/billing}/ParagraphGroup.js +0 -0
  487. /package/{billing → dist/billing}/ParagraphText.js +0 -0
  488. /package/{billing → dist/billing}/Section.js +0 -0
  489. /package/{billing → dist/billing}/SectionBody.js +0 -0
  490. /package/{billing → dist/billing}/SectionHeader.js +0 -0
  491. /package/{billing → dist/billing}/__stories__/BarChart.stories.js_bak +0 -0
  492. /package/{billing → dist/billing}/__stories__/Grid.stories.js_bak +0 -0
  493. /package/{billing → dist/billing}/__stories__/Header2.stories.js_bak +0 -0
  494. /package/{billing → dist/billing}/__stories__/Header3.stories.js_bak +0 -0
  495. /package/{billing → dist/billing}/__stories__/Paragraph.stories.js_bak +0 -0
  496. /package/{billing → dist/billing}/__stories__/ParagraphGroup.stories.js_bak +0 -0
  497. /package/{billing → dist/billing}/__stories__/ParagraphText.stories.js_bak +0 -0
  498. /package/{billing → dist/billing}/__stories__/Section.stories.js_bak +0 -0
  499. /package/{billing → dist/billing}/__stories__/SectionBody.stories.js_bak +0 -0
  500. /package/{billing → dist/billing}/__stories__/SectionHeader.stories.js-bak +0 -0
  501. /package/{breadcrumb → dist/breadcrumb}/Breadcrumb.js +0 -0
  502. /package/{breadcrumb → dist/breadcrumb}/index.js +0 -0
  503. /package/{button → dist/button}/Button.js +0 -0
  504. /package/{button → dist/button}/ButtonGroup.js +0 -0
  505. /package/{button → dist/button}/IconButton.js +0 -0
  506. /package/{button → dist/button}/ScrollToTopButton.js +0 -0
  507. /package/{button → dist/button}/index.js +0 -0
  508. /package/{callout → dist/callout}/Callout.js +0 -0
  509. /package/{callout → dist/callout}/index.js +0 -0
  510. /package/{chart → dist/chart}/BarChart.js +0 -0
  511. /package/{chart → dist/chart}/DoughnutChart.js +0 -0
  512. /package/{chart → dist/chart}/LineChart.js +0 -0
  513. /package/{chart → dist/chart}/SingleBarChart.js +0 -0
  514. /package/{chart → dist/chart}/index.js +0 -0
  515. /package/{chart → dist/chart}/utils/customTooltip.js +0 -0
  516. /package/{chart → dist/chart}/utils/htmlLegendPlugin.js +0 -0
  517. /package/{chart → dist/chart}/utils/index.js +0 -0
  518. /package/{chart → dist/chart}/utils/padEmptyChartBar.js +0 -0
  519. /package/{container → dist/container}/FlexContainer.js +0 -0
  520. /package/{container → dist/container}/index.js +0 -0
  521. /package/{cropper → dist/cropper}/Cropper.js +0 -0
  522. /package/{cropper → dist/cropper}/CropperModalHandler.js +0 -0
  523. /package/{cropper → dist/cropper}/index.js +0 -0
  524. /package/{cropper → dist/cropper}/subComponent/CropImageModal.js +0 -0
  525. /package/{datetimePicker → dist/datetimePicker}/DatePicker.js +0 -0
  526. /package/{datetimePicker → dist/datetimePicker}/DatePickerV2.js +0 -0
  527. /package/{datetimePicker → dist/datetimePicker}/DatetimePicker.js +0 -0
  528. /package/{datetimePicker → dist/datetimePicker}/DatetimePickerV2.js +0 -0
  529. /package/{datetimePicker → dist/datetimePicker}/TimeInput.js +0 -0
  530. /package/{datetimePicker → dist/datetimePicker}/TimePicker.js +0 -0
  531. /package/{datetimePicker → dist/datetimePicker}/TimePickerStyle.js +0 -0
  532. /package/{datetimePicker → dist/datetimePicker}/accordion/Month.js +0 -0
  533. /package/{datetimePicker → dist/datetimePicker}/accordion/Year.js +0 -0
  534. /package/{datetimePicker → dist/datetimePicker}/hooks/index.js +0 -0
  535. /package/{datetimePicker → dist/datetimePicker}/hooks/useChangeNumber.js +0 -0
  536. /package/{datetimePicker → dist/datetimePicker}/hooks/useDecrease.js +0 -0
  537. /package/{datetimePicker → dist/datetimePicker}/hooks/useIncrease.js +0 -0
  538. /package/{datetimePicker → dist/datetimePicker}/index.js +0 -0
  539. /package/{datetimePicker → dist/datetimePicker}/provider/constant.js +0 -0
  540. /package/{datetimePicker → dist/datetimePicker}/subComponent/Accordion.js +0 -0
  541. /package/{datetimePicker → dist/datetimePicker}/subComponent/CustomTimeInput.js +0 -0
  542. /package/{datetimePicker → dist/datetimePicker}/subComponent/DateTimePickerContext.js +0 -0
  543. /package/{datetimePicker → dist/datetimePicker}/utils/GMTDate.js +0 -0
  544. /package/{datetimePicker → dist/datetimePicker}/utils/pad.js +0 -0
  545. /package/{datetimePicker → dist/datetimePicker}/utils/toUTC0.js +0 -0
  546. /package/{descriptionList → dist/descriptionList}/DescriptionDetail.js +0 -0
  547. /package/{descriptionList → dist/descriptionList}/DescriptionList.js +0 -0
  548. /package/{descriptionList → dist/descriptionList}/DescriptionTerm.js +0 -0
  549. /package/{descriptionList → dist/descriptionList}/index.js +0 -0
  550. /package/{divider → dist/divider}/Divider.js +0 -0
  551. /package/{divider → dist/divider}/index.js +0 -0
  552. /package/{dropdown → dist/dropdown}/Dropdown.js +0 -0
  553. /package/{dropdown → dist/dropdown}/DropdownButtonOption.js +0 -0
  554. /package/{dropdown → dist/dropdown}/DropdownContent.js +0 -0
  555. /package/{dropdown → dist/dropdown}/DropdownDivOption.js +0 -0
  556. /package/{dropdown → dist/dropdown}/DropdownItem.js +0 -0
  557. /package/{dropdown → dist/dropdown}/DropdownLinkOption.js +0 -0
  558. /package/{dropdown → dist/dropdown}/DropdownToggle.js +0 -0
  559. /package/{dropdown → dist/dropdown}/index.js +0 -0
  560. /package/{dropdown → dist/dropdown}/subComponent/DropdownContext.js +0 -0
  561. /package/{dropzone → dist/dropzone}/FileDropzone.js +0 -0
  562. /package/{dropzone → dist/dropzone}/ImageDropzone.js +0 -0
  563. /package/{dropzone → dist/dropzone}/index.js +0 -0
  564. /package/{dropzone → dist/dropzone}/subComponent/Message.js +0 -0
  565. /package/{figure → dist/figure}/IconFigure.js +0 -0
  566. /package/{figure → dist/figure}/ImageFigure.js +0 -0
  567. /package/{figure → dist/figure}/index.js +0 -0
  568. /package/{file → dist/file}/HiddenFileInput.js +0 -0
  569. /package/{file → dist/file}/index.js +0 -0
  570. /package/{form → dist/form}/Checkbox.js +0 -0
  571. /package/{form → dist/form}/FormItem.js +0 -0
  572. /package/{form → dist/form}/Input.js +0 -0
  573. /package/{form → dist/form}/Label.js +0 -0
  574. /package/{form → dist/form}/MutedText.js +0 -0
  575. /package/{form → dist/form}/RadioButton.js +0 -0
  576. /package/{form → dist/form}/Searchbox.js +0 -0
  577. /package/{form → dist/form}/Slider.js +0 -0
  578. /package/{form → dist/form}/SwitchButton.js +0 -0
  579. /package/{form → dist/form}/Textarea.js +0 -0
  580. /package/{form → dist/form}/TreeView.js +0 -0
  581. /package/{form → dist/form}/index.js +0 -0
  582. /package/{grid → dist/grid}/Column.js +0 -0
  583. /package/{grid → dist/grid}/Grid.js +0 -0
  584. /package/{grid → dist/grid}/index.js +0 -0
  585. /package/{heading → dist/heading}/Heading1.js +0 -0
  586. /package/{heading → dist/heading}/Heading2.js +0 -0
  587. /package/{heading → dist/heading}/Heading3.js +0 -0
  588. /package/{heading → dist/heading}/index.js +0 -0
  589. /package/{helmet → dist/helmet}/Helmet.js +0 -0
  590. /package/{helmet → dist/helmet}/index.js +0 -0
  591. /package/{iconbox → dist/iconbox}/ApplicationIconBox.js +0 -0
  592. /package/{iconbox → dist/iconbox}/IconBox.js +0 -0
  593. /package/{iconbox → dist/iconbox}/IconBoxV2.js +0 -0
  594. /package/{iconbox → dist/iconbox}/index.js +0 -0
  595. /package/{iconbox → dist/iconbox}/subComponent/IconBoxFigure.js +0 -0
  596. /package/{iconbox → dist/iconbox}/subComponent/IconBoxImage.js +0 -0
  597. /package/{image → dist/image}/ImageFluid.js +0 -0
  598. /package/{image → dist/image}/UploadImage.js +0 -0
  599. /package/{image → dist/image}/index.js +0 -0
  600. /package/{index.js → dist/index.js} +0 -0
  601. /package/{jsoneditor → dist/jsoneditor}/JsonEditor.js +0 -0
  602. /package/{jsoneditor → dist/jsoneditor}/index.js +0 -0
  603. /package/{keyframe → dist/keyframe}/Pulse.js +0 -0
  604. /package/{keyframe → dist/keyframe}/Spin.js +0 -0
  605. /package/{link → dist/link}/LinkSpan.js +0 -0
  606. /package/{link → dist/link}/index.js +0 -0
  607. /package/{map → dist/map}/GoogleMap.js +0 -0
  608. /package/{map → dist/map}/GoogleReverseGeolocation.js +0 -0
  609. /package/{map → dist/map}/LeafletMap.js +0 -0
  610. /package/{map → dist/map}/LeafletReverseGeolocation.js +0 -0
  611. /package/{map → dist/map}/index.js +0 -0
  612. /package/{map → dist/map}/subComponent/BasicLeafletMap.js +0 -0
  613. /package/{map → dist/map}/subComponent/GoogleMapContainer.js +0 -0
  614. /package/{map → dist/map}/subComponent/GoogleMapPopup.js +0 -0
  615. /package/{map → dist/map}/subComponent/GoogleMapWrapper.js +0 -0
  616. /package/{map → dist/map}/subComponent/GoogleMarkerSpiderfier.js +0 -0
  617. /package/{map → dist/map}/subComponent/LeafletDrawControl.js +0 -0
  618. /package/{map → dist/map}/subComponent/LeafletMapContainer.js +0 -0
  619. /package/{map → dist/map}/subComponent/MapSearchBoxControl.js +0 -0
  620. /package/{modal → dist/modal}/StateModal.js +0 -0
  621. /package/{modal → dist/modal}/TitleModal.js +0 -0
  622. /package/{modal → dist/modal}/index.js +0 -0
  623. /package/{paginate → dist/paginate}/Paginate.js +0 -0
  624. /package/{paginate → dist/paginate}/index.js +0 -0
  625. /package/{popover → dist/popover}/Popover.js +0 -0
  626. /package/{popover → dist/popover}/index.js +0 -0
  627. /package/{qrcode → dist/qrcode}/QRCode.js +0 -0
  628. /package/{qrcode → dist/qrcode}/QRCodeContainter.js +0 -0
  629. /package/{qrcode → dist/qrcode}/index.js +0 -0
  630. /package/{ribbon → dist/ribbon}/Ribbon.js +0 -0
  631. /package/{ribbon → dist/ribbon}/index.js +0 -0
  632. /package/{section → dist/section}/Section.js +0 -0
  633. /package/{section → dist/section}/SectionBody.js +0 -0
  634. /package/{section → dist/section}/SectionHeader.js +0 -0
  635. /package/{section → dist/section}/SectionToolbar.js +0 -0
  636. /package/{section → dist/section}/SectionToolbarItem.js +0 -0
  637. /package/{section → dist/section}/index.js +0 -0
  638. /package/{select → dist/select}/InputSelect.js +0 -0
  639. /package/{select → dist/select}/Select.js +0 -0
  640. /package/{select → dist/select}/index.js +0 -0
  641. /package/{select → dist/select}/subComponent/ListBox.js +0 -0
  642. /package/{select → dist/select}/subComponent/Option.js +0 -0
  643. /package/{select → dist/select}/subComponent/OptionGroup.js +0 -0
  644. /package/{select → dist/select}/subComponent/Options.js +0 -0
  645. /package/{select → dist/select}/subComponent/SearchBox.js +0 -0
  646. /package/{select → dist/select}/subComponent/SelectedMultiple.js +0 -0
  647. /package/{select → dist/select}/subComponent/SelectedSingle.js +0 -0
  648. /package/{styles → dist/styles}/GlobalStyle.js +0 -0
  649. /package/{styles → dist/styles}/config/breakpoint.style.js +0 -0
  650. /package/{styles → dist/styles}/config/header.style.js +0 -0
  651. /package/{styles → dist/styles}/config/sidebar.style.js +0 -0
  652. /package/{styles → dist/styles}/index.js +0 -0
  653. /package/{styles → dist/styles}/mixin/backgroundColor.js +0 -0
  654. /package/{styles → dist/styles}/mixin/borderColor.js +0 -0
  655. /package/{styles → dist/styles}/mixin/color.js +0 -0
  656. /package/{styles → dist/styles}/mixin/colorOnBackground.js +0 -0
  657. /package/{styles → dist/styles}/mixin/inputPlaceholder.js +0 -0
  658. /package/{styles → dist/styles}/mixin/media.js +0 -0
  659. /package/{styles → dist/styles}/mixin/rounded.js +0 -0
  660. /package/{styles → dist/styles}/mixin/scrollbar.js +0 -0
  661. /package/{styles → dist/styles}/theme/dark.theme.js +0 -0
  662. /package/{styles → dist/styles}/theme/light.theme.js +0 -0
  663. /package/{styles → dist/styles}/theme/white.theme.js +0 -0
  664. /package/{styles → dist/styles}/themes.js +0 -0
  665. /package/{table → dist/table}/GridTable.js +0 -0
  666. /package/{table → dist/table}/ImageBox.js +0 -0
  667. /package/{table → dist/table}/PermissionTable.js +0 -0
  668. /package/{table → dist/table}/__mock__/columns.js +0 -0
  669. /package/{table → dist/table}/__mock__/data.js +0 -0
  670. /package/{table → dist/table}/hooks/index.js +0 -0
  671. /package/{table → dist/table}/hooks/useCalculateDataRange.js +0 -0
  672. /package/{table → dist/table}/hooks/useGenerateSort.js +0 -0
  673. /package/{table → dist/table}/index.js +0 -0
  674. /package/{table → dist/table}/subComponent/BaseTableHeadCell.js +0 -0
  675. /package/{table → dist/table}/subComponent/GridTableFooter.js +0 -0
  676. /package/{table → dist/table}/subComponent/GridTableHeadCell.js +0 -0
  677. /package/{table → dist/table}/subComponent/Resizer.js +0 -0
  678. /package/{table → dist/table}/subComponent/TableFooter.js +0 -0
  679. /package/{table → dist/table}/subComponent/TableFooterInfo.js +0 -0
  680. /package/{table → dist/table}/subComponent/TableFooterPager.js +0 -0
  681. /package/{table → dist/table}/subComponent/TableHeadCell.js +0 -0
  682. /package/{table → dist/table}/subComponent/TableSort.js +0 -0
  683. /package/{tagify → dist/tagify}/TagifyStyle.js +0 -0
  684. /package/{tagify → dist/tagify}/Tags.js +0 -0
  685. /package/{tagify → dist/tagify}/index.js +0 -0
  686. /package/{text → dist/text}/Paragraph.js +0 -0
  687. /package/{text → dist/text}/index.js +0 -0
  688. /package/{timeline → dist/timeline}/Timeline.js +0 -0
  689. /package/{timeline → dist/timeline}/index.js +0 -0
  690. /package/{toast → dist/toast}/CustomToastContainer.js +0 -0
  691. /package/{toast → dist/toast}/MessageContainer.js +0 -0
  692. /package/{toast → dist/toast}/index.js +0 -0
  693. /package/{toast → dist/toast}/show.js +0 -0
  694. /package/{toast → dist/toast}/style.css +0 -0
  695. /package/{tooltip → dist/tooltip}/Tooltip.js +0 -0
  696. /package/{tooltip → dist/tooltip}/index.js +0 -0
  697. /package/{wizard → dist/wizard}/Wizard.js +0 -0
  698. /package/{wizard → dist/wizard}/index.js +0 -0
@@ -0,0 +1,84 @@
1
+ import {
2
+ Document,
3
+ Page,
4
+ PDFViewer,
5
+ StyleSheet,
6
+ View,
7
+ Font,
8
+ } from '@react-pdf/renderer';
9
+ import { useContext } from 'react';
10
+ import { ThemeContext } from 'styled-components';
11
+ import BillingParagraphGroup from '../ParagraphGroup';
12
+ import BillingParagraph from '../Paragraph';
13
+ import BillingParagraphText from '../ParagraphText';
14
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
15
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
16
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
17
+
18
+ export default {
19
+ title: 'billing/BillingParagraph',
20
+ component: BillingParagraph,
21
+ subComponent: BillingParagraphText,
22
+ argTypes: {
23
+ children: {
24
+ description: 'A BillingParagraphText component must be passed in.',
25
+ },
26
+ marginRight: { description: 'Style variant' },
27
+ justifyContentBetween: { description: 'Style variant' },
28
+ },
29
+ };
30
+
31
+ export const Default = (args) => {
32
+ const theme = useContext(ThemeContext);
33
+ Font.register({
34
+ family: 'Nanum Gothic',
35
+ fonts: [
36
+ { src: NanumGothicBold },
37
+ { src: NanumGothicExtraBold },
38
+ { src: NanumGothicRegular },
39
+ ],
40
+ });
41
+
42
+ const styles = StyleSheet.create({
43
+ page: {
44
+ fontFamily: 'Nanum Gothic',
45
+ color: '#ffffff',
46
+ backgroundColor: theme.bgColor2,
47
+ padding: 8,
48
+ },
49
+ });
50
+
51
+ return (
52
+ <PDFViewer style={{ width: '100%' }}>
53
+ <Document>
54
+ <Page size='A4' style={styles.page}>
55
+ <View>
56
+ <BillingParagraphGroup>
57
+ <BillingParagraph {...args}>
58
+ <BillingParagraphText>Total 01: </BillingParagraphText>
59
+ <BillingParagraphText>10000</BillingParagraphText>
60
+ </BillingParagraph>
61
+ <BillingParagraph {...args}>
62
+ <BillingParagraphText>Available 01: </BillingParagraphText>
63
+ <BillingParagraphText>2000</BillingParagraphText>
64
+ </BillingParagraph>
65
+ </BillingParagraphGroup>
66
+ <BillingParagraph {...args}>
67
+ <BillingParagraphText>Total 02: </BillingParagraphText>
68
+ <BillingParagraphText>10000</BillingParagraphText>
69
+ </BillingParagraph>
70
+ <BillingParagraph {...args}>
71
+ <BillingParagraphText>Available 02: </BillingParagraphText>
72
+ <BillingParagraphText>2000</BillingParagraphText>
73
+ </BillingParagraph>
74
+ </View>
75
+ </Page>
76
+ </Document>
77
+ </PDFViewer>
78
+ );
79
+ };
80
+
81
+ Default.args = {
82
+ marginRight: true,
83
+ justifyContentBetween: false,
84
+ };
@@ -0,0 +1,68 @@
1
+ import {
2
+ Document,
3
+ Page,
4
+ PDFViewer,
5
+ StyleSheet,
6
+ View,
7
+ Font,
8
+ } from '@react-pdf/renderer';
9
+ import { useContext } from 'react';
10
+ import { ThemeContext } from 'styled-components';
11
+ import BillingParagraph from '../Paragraph';
12
+ import BillingParagraphGroup from '../ParagraphGroup';
13
+ import BillingParagraphText from '../ParagraphText';
14
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
15
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
16
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
17
+
18
+ export default {
19
+ title: 'billing/BillingParagraphGroup',
20
+ component: BillingParagraphGroup,
21
+ subComponent: { BillingParagraph },
22
+ argTypes: {
23
+ children: {
24
+ description: 'A BillingParagraph component must be passed in.',
25
+ },
26
+ },
27
+ };
28
+
29
+ export const Default = (args) => {
30
+ const theme = useContext(ThemeContext);
31
+ Font.register({
32
+ family: 'Nanum Gothic',
33
+ fonts: [
34
+ { src: NanumGothicBold },
35
+ { src: NanumGothicExtraBold },
36
+ { src: NanumGothicRegular },
37
+ ],
38
+ });
39
+ const styles = StyleSheet.create({
40
+ page: {
41
+ fontFamily: 'Nanum Gothic',
42
+ color: '#ffffff',
43
+ backgroundColor: theme.bgColor2,
44
+ padding: 8,
45
+ },
46
+ });
47
+
48
+ return (
49
+ <PDFViewer style={{ width: '100%' }}>
50
+ <Document>
51
+ <Page size='A4' style={styles.page}>
52
+ <View>
53
+ <BillingParagraphGroup {...args}>
54
+ <BillingParagraph marginRight>
55
+ <BillingParagraphText>Total: </BillingParagraphText>
56
+ <BillingParagraphText>10000</BillingParagraphText>
57
+ </BillingParagraph>
58
+ <BillingParagraph marginRight>
59
+ <BillingParagraphText>Total 2: </BillingParagraphText>
60
+ <BillingParagraphText>20000</BillingParagraphText>
61
+ </BillingParagraph>
62
+ </BillingParagraphGroup>
63
+ </View>
64
+ </Page>
65
+ </Document>
66
+ </PDFViewer>
67
+ );
68
+ };
@@ -0,0 +1,64 @@
1
+ import {
2
+ Document,
3
+ Page,
4
+ PDFViewer,
5
+ StyleSheet,
6
+ View,
7
+ Font,
8
+ } from '@react-pdf/renderer';
9
+ import { useContext } from 'react';
10
+ import { ThemeContext } from 'styled-components';
11
+ import BillingParagraphText from '../ParagraphText';
12
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
13
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
14
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
15
+
16
+ export default {
17
+ title: 'billing/BillingParagraphText',
18
+ component: BillingParagraphText,
19
+ argTypes: {
20
+ children: {
21
+ description:
22
+ 'For displaying text. Supports nesting of other Text or Link components to create inline styling.',
23
+ },
24
+ fontWeightBold: { description: 'Style variant' },
25
+ },
26
+ };
27
+
28
+ export const Default = (args) => {
29
+ const theme = useContext(ThemeContext);
30
+ Font.register({
31
+ family: 'Nanum Gothic',
32
+ fonts: [
33
+ { src: NanumGothicBold },
34
+ { src: NanumGothicExtraBold },
35
+ { src: NanumGothicRegular },
36
+ ],
37
+ });
38
+
39
+ const styles = StyleSheet.create({
40
+ page: {
41
+ fontFamily: 'Nanum Gothic',
42
+ color: '#ffffff',
43
+ backgroundColor: theme.bgColor2,
44
+ padding: 8,
45
+ },
46
+ });
47
+
48
+ return (
49
+ <PDFViewer style={{ width: '100%' }}>
50
+ <Document>
51
+ <Page size='A4' style={styles.page}>
52
+ <View>
53
+ <BillingParagraphText {...args}></BillingParagraphText>
54
+ </View>
55
+ </Page>
56
+ </Document>
57
+ </PDFViewer>
58
+ );
59
+ };
60
+
61
+ Default.args = {
62
+ children: 'BillingParagraphText content',
63
+ fontWeightBold: false,
64
+ };
@@ -0,0 +1,115 @@
1
+ import { useContext } from 'react';
2
+ import { ThemeContext } from 'styled-components';
3
+ import {
4
+ PDFViewer,
5
+ Document,
6
+ Page,
7
+ View,
8
+ StyleSheet,
9
+ Font,
10
+ } from '@react-pdf/renderer';
11
+ import BillingSection from '../Section';
12
+ import BillingSectionHeader from '../SectionHeader';
13
+ import BillingSectionBody from '../SectionBody';
14
+ import BillingHeader3 from '../Header3';
15
+ import BillingParagraph from '../Paragraph';
16
+ import BillingParagraphGroup from '../ParagraphGroup';
17
+ import BillingParagraphText from '../ParagraphText';
18
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
19
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
20
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
21
+
22
+ export default {
23
+ title: 'billing/BillingSection',
24
+ component: BillingSection,
25
+ subComponent: {
26
+ BillingSectionHeader,
27
+ BillingSectionBody,
28
+ },
29
+ argTypes: {
30
+ children: {
31
+ description:
32
+ 'A BillingSectionHeader and BillingSectionBody component must be passed in.',
33
+ },
34
+ theme: { description: 'Provide theme styles for components to use' },
35
+ backgroundReverse: { description: 'Style variant' },
36
+ noPadding: { description: 'Style variant' },
37
+ noMarginBottom: { description: 'Style variant' },
38
+ paddingS: { description: 'Style variant' },
39
+ marginBottomS: { description: 'Style variant' },
40
+ flexGrow: { description: 'Style variant' },
41
+ },
42
+ };
43
+
44
+ export const Default = (args) => {
45
+ const theme = useContext(ThemeContext);
46
+ Font.register({
47
+ family: 'Nanum Gothic',
48
+ fonts: [
49
+ { src: NanumGothicBold },
50
+ { src: NanumGothicExtraBold },
51
+ { src: NanumGothicRegular },
52
+ ],
53
+ });
54
+
55
+ const styles = StyleSheet.create({
56
+ page: {
57
+ fontFamily: 'Nanum Gothic',
58
+ color: '#ffffff',
59
+ backgroundColor: theme.bgColor2,
60
+ padding: 8,
61
+ },
62
+ });
63
+
64
+ return (
65
+ <PDFViewer showToolbar={false} style={{ width: '100%', height: '500px' }}>
66
+ <Document>
67
+ <Page size='A4' style={styles.page}>
68
+ <View>
69
+ <BillingSection {...args} theme={theme}>
70
+ <BillingSectionHeader>
71
+ <BillingHeader3>BillingHeader3</BillingHeader3>
72
+ </BillingSectionHeader>
73
+ <BillingSectionBody>
74
+ <BillingParagraphGroup>
75
+ <BillingParagraph>
76
+ <BillingParagraphText>Used:</BillingParagraphText>
77
+ <BillingParagraphText fontWeightBold>
78
+ 200
79
+ </BillingParagraphText>
80
+ </BillingParagraph>
81
+ </BillingParagraphGroup>
82
+ </BillingSectionBody>
83
+ </BillingSection>
84
+ </View>
85
+ <View>
86
+ <BillingSection {...args} theme={theme}>
87
+ <BillingSectionHeader>
88
+ <BillingHeader3>BillingHeader3</BillingHeader3>
89
+ </BillingSectionHeader>
90
+ <BillingSectionBody>
91
+ <BillingParagraphGroup>
92
+ <BillingParagraph>
93
+ <BillingParagraphText>Used:</BillingParagraphText>
94
+ <BillingParagraphText fontWeightBold>
95
+ 200
96
+ </BillingParagraphText>
97
+ </BillingParagraph>
98
+ </BillingParagraphGroup>
99
+ </BillingSectionBody>
100
+ </BillingSection>
101
+ </View>
102
+ </Page>
103
+ </Document>
104
+ </PDFViewer>
105
+ );
106
+ };
107
+
108
+ Default.args = {
109
+ backgroundReverse: false,
110
+ noPadding: false,
111
+ noMarginBottom: false,
112
+ paddingS: false,
113
+ marginBottomS: false,
114
+ flexGrow: false,
115
+ };
@@ -0,0 +1,62 @@
1
+ import { useContext } from 'react';
2
+ import { ThemeContext } from 'styled-components';
3
+ import {
4
+ PDFViewer,
5
+ Document,
6
+ Page,
7
+ View,
8
+ StyleSheet,
9
+ Text,
10
+ Font,
11
+ } from '@react-pdf/renderer';
12
+ import BillingSectionBody from '../SectionBody';
13
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
14
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
15
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
16
+
17
+ export default {
18
+ title: 'billing/BillingSectionBody',
19
+ component: BillingSectionBody,
20
+ argTypes: {
21
+ children: {
22
+ description: 'BillingSectionBody content can have 0 to many children.',
23
+ },
24
+ },
25
+ };
26
+
27
+ export const Default = (args) => {
28
+ const theme = useContext(ThemeContext);
29
+ Font.register({
30
+ family: 'Nanum Gothic',
31
+ fonts: [
32
+ { src: NanumGothicBold },
33
+ { src: NanumGothicExtraBold },
34
+ { src: NanumGothicRegular },
35
+ ],
36
+ });
37
+ const styles = StyleSheet.create({
38
+ page: {
39
+ family: 'Nanum Gothic',
40
+ color: '#ffffff',
41
+ backgroundColor: theme.bgColor2,
42
+ padding: 8,
43
+ },
44
+ });
45
+
46
+ return (
47
+ <PDFViewer style={{ width: '100%' }}>
48
+ <Document>
49
+ <Page size='A4' style={styles.page}>
50
+ <View>
51
+ <BillingSectionBody {...args}>
52
+ <View>
53
+ <Text>text1</Text>
54
+ </View>
55
+ <Text>text2</Text>
56
+ </BillingSectionBody>
57
+ </View>
58
+ </Page>
59
+ </Document>
60
+ </PDFViewer>
61
+ );
62
+ };
@@ -0,0 +1,68 @@
1
+ import { useContext } from 'react';
2
+ import { ThemeContext } from 'styled-components';
3
+ import {
4
+ PDFViewer,
5
+ Document,
6
+ Page,
7
+ View,
8
+ StyleSheet,
9
+ Font,
10
+ } from '@react-pdf/renderer';
11
+ import BillingSectionHeader from '../SectionHeader';
12
+ import BillingHeader3 from '../Header3';
13
+ import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
14
+ import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
15
+ import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
16
+
17
+ export default {
18
+ title: 'billing/BillingSectionHeader',
19
+ component: BillingSectionHeader,
20
+ subComponent: {
21
+ BillingHeader3,
22
+ },
23
+ argTypes: {
24
+ children: {
25
+ description: 'A BillingHeader3 component must be passed in.',
26
+ },
27
+ inline: { description: 'Style variant' },
28
+ },
29
+ };
30
+
31
+ export const Default = (args) => {
32
+ const theme = useContext(ThemeContext);
33
+ Font.register({
34
+ family: 'Nanum Gothic',
35
+ fonts: [
36
+ { src: NanumGothicBold },
37
+ { src: NanumGothicExtraBold },
38
+ { src: NanumGothicRegular },
39
+ ],
40
+ });
41
+ const styles = StyleSheet.create({
42
+ page: {
43
+ family: 'Nanum Gothic',
44
+ color: '#ffffff',
45
+ backgroundColor: theme.bgColor2,
46
+ padding: 8,
47
+ },
48
+ });
49
+
50
+ return (
51
+ <PDFViewer style={{ width: '100%' }}>
52
+ <Document>
53
+ <Page size='A4' style={styles.page}>
54
+ <View>
55
+ <BillingSectionHeader {...args}>
56
+ <BillingHeader3>BillingHeader3</BillingHeader3>
57
+ <BillingHeader3>BillingHeader3</BillingHeader3>
58
+ </BillingSectionHeader>
59
+ </View>
60
+ </Page>
61
+ </Document>
62
+ </PDFViewer>
63
+ );
64
+ };
65
+
66
+ Default.args = {
67
+ inline: false,
68
+ };
@@ -0,0 +1,66 @@
1
+ import styled from 'styled-components';
2
+ import { Link } from 'react-router-dom';
3
+ import media from '../styles/mixin/media';
4
+
5
+ const Breadcrumb = ({ path = [] }) => {
6
+ return (
7
+ <Wrapper>
8
+ {path.map(({ name, url }, index) => {
9
+ if (url) {
10
+ return (
11
+ <Link to={url} key={index}>
12
+ <p>{name}</p>
13
+ </Link>
14
+ );
15
+ }
16
+
17
+ return <p key={index}>{name}</p>;
18
+ })}
19
+ </Wrapper>
20
+ );
21
+ };
22
+
23
+ const Wrapper = styled.div`
24
+ display: flex;
25
+ flex-wrap: wrap;
26
+ align-items: center;
27
+ font-size: var(--font-body2);
28
+ line-height: var(--font-body1);
29
+ color: var(--font-on-background);
30
+ padding: var(--spacing-s) 0;
31
+
32
+ > *:not(:last-child) {
33
+ display: flex;
34
+ align-items: center;
35
+ color: var(--font-on-background);
36
+ overflow: hidden;
37
+
38
+ > p {
39
+ text-overflow: ellipsis;
40
+ overflow: hidden;
41
+ white-space: nowrap;
42
+
43
+ &:hover {
44
+ text-decoration: underline;
45
+ }
46
+ }
47
+
48
+ &:after {
49
+ content: '/';
50
+ padding: 0 var(--spacing-xs);
51
+ }
52
+ }
53
+
54
+ > *:last-child {
55
+ text-overflow: ellipsis;
56
+ overflow: hidden;
57
+ white-space: nowrap;
58
+ color: var(--color-primary);
59
+ }
60
+
61
+ ${media.tablet`
62
+ padding-top: 0;
63
+ `}
64
+ `;
65
+
66
+ export default Breadcrumb;
@@ -0,0 +1,31 @@
1
+ import Breadcrumb from '../Breadcrumb';
2
+ import { MemoryRouter } from 'react-router';
3
+
4
+ const metadata = {
5
+ title: 'Breadcrumb/Breadcrumb',
6
+ component: Breadcrumb,
7
+ decorators: [
8
+ (Story) => (
9
+ <MemoryRouter>
10
+ <Story />
11
+ </MemoryRouter>
12
+ ),
13
+ ],
14
+ };
15
+
16
+ const Template = (args) => {
17
+ return <Breadcrumb {...args} />;
18
+ };
19
+
20
+ // fix: router link and Description
21
+ const Default = Template.bind({});
22
+ Default.args = {
23
+ path: [
24
+ { name: 'Enterprise' },
25
+ { name: 'Enterprise List', url: '/enterprises' },
26
+ { name: 'Enterprise Details' },
27
+ ],
28
+ };
29
+
30
+ export default metadata;
31
+ export { Default };
@@ -0,0 +1,27 @@
1
+ import { render, screen } from '@testing-library/react';
2
+ import { BrowserRouter as Router } from 'react-router-dom';
3
+ import Breadcrumb from '../Breadcrumb';
4
+
5
+ describe('test Breadcrumb', () => {
6
+ test('render Breadcrumb', () => {
7
+ const path = [
8
+ { name: 'Manufacturer' },
9
+ { name: 'ManufacturerList', url: '/manufacturers' },
10
+ ];
11
+
12
+ render(
13
+ <Router>
14
+ <Breadcrumb path={path} />
15
+ </Router>
16
+ );
17
+
18
+ const manufacturer = screen.getByText('Manufacturer');
19
+ const manufacturerList = screen.getByText('ManufacturerList');
20
+ const manufacturerListLink = screen.getAllByRole('link');
21
+
22
+ expect(manufacturer).toBeInTheDocument();
23
+ expect(manufacturerList).toBeInTheDocument();
24
+ expect(manufacturerListLink[0]).toHaveAttribute('href', '/manufacturers');
25
+ expect(manufacturerListLink.length).toBe(1);
26
+ });
27
+ });
@@ -0,0 +1 @@
1
+ export { default as Breadcrumb } from './Breadcrumb';
@@ -0,0 +1,80 @@
1
+ import styled, { css } from 'styled-components';
2
+ import backgroundColor from '../styles/mixin/backgroundColor';
3
+ import colorOnBackground from '../styles/mixin/colorOnBackground';
4
+
5
+ const Button = styled.button.attrs(() => ({
6
+ primary: true,
7
+ }))`
8
+ display: flex;
9
+ align-items: center;
10
+ border: none;
11
+ font-size: var(--font-button);
12
+ line-height: var(--font-body1);
13
+ cursor: ${({ disabled }) => (disabled ? 'no-drop' : 'pointer')};
14
+ border-radius: var(--border-radius-l);
15
+ padding: 10px var(--spacing-s);
16
+ text-transform: uppercase;
17
+
18
+ > svg {
19
+ margin-right: calc(var(--spacing-s) - 0.25rem);
20
+ font-size: var(--font-body1);
21
+ }
22
+
23
+ &:hover {
24
+ ${({ disabled }) => {
25
+ return (
26
+ !disabled &&
27
+ css`
28
+ transition: 0.3s;
29
+ box-shadow: var(--box-shadow);
30
+ opacity: 0.9;
31
+ `
32
+ );
33
+ }}
34
+ }
35
+
36
+ ${backgroundColor}
37
+ ${colorOnBackground}
38
+
39
+ ${({ secondary }) =>
40
+ secondary &&
41
+ css`
42
+ background: var(--color-background2);
43
+ color: var(--font-on-background);
44
+ `}
45
+
46
+ ${({ reverse }) =>
47
+ reverse &&
48
+ css`
49
+ background: var(--color-background1);
50
+ color: var(--font-on-background);
51
+ `}
52
+
53
+ ${({ disabled }) =>
54
+ disabled &&
55
+ css`
56
+ opacity: 0.5;
57
+ `}
58
+
59
+ ${({ iconOnly }) =>
60
+ iconOnly &&
61
+ css`
62
+ padding: 10px;
63
+
64
+ > svg {
65
+ margin-right: 0;
66
+ }
67
+ `}
68
+
69
+ ${({ fullWidth }) => fullWidth && 'width: 100%;'}
70
+
71
+ ${({ alignCenter }) => alignCenter && 'justify-content: center;'}
72
+
73
+ ${({ filterFocus }) =>
74
+ filterFocus &&
75
+ css`
76
+ border: 2px solid var(--color-danger);
77
+ `}
78
+ `;
79
+
80
+ export default Button;