@ncds/ui-admin 1.6.4 → 1.7.0

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 (704) hide show
  1. package/dist/cjs/assets/scripts/baseBox.js +148 -0
  2. package/dist/cjs/assets/scripts/comboBox.js +44 -136
  3. package/dist/cjs/assets/scripts/datePicker.js +1 -1
  4. package/dist/cjs/assets/scripts/featuredIcon.js +1 -1
  5. package/dist/cjs/assets/scripts/fileInput/const/classNames.js +1 -5
  6. package/dist/cjs/assets/scripts/fileInput/fileInput.js +79 -0
  7. package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +61 -0
  8. package/dist/cjs/assets/scripts/fileInput/fileInputView.js +147 -0
  9. package/dist/cjs/assets/scripts/fileInput/index.js +3 -3
  10. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +1 -1
  11. package/dist/cjs/assets/scripts/selectBox.js +46 -136
  12. package/dist/cjs/assets/scripts/utils/debounce.js +33 -0
  13. package/dist/cjs/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +21 -63
  14. package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
  15. package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +59 -101
  16. package/dist/cjs/src/components/badge/Badge.js +1 -1
  17. package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +1 -1
  18. package/dist/cjs/src/components/button/Button.js +13 -5
  19. package/dist/cjs/src/components/button/ButtonGroup.js +1 -2
  20. package/dist/cjs/src/components/carousel/CarouselArrow.js +2 -2
  21. package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +4 -5
  22. package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
  23. package/dist/cjs/src/components/combobox/ComboBox.js +54 -43
  24. package/dist/cjs/src/components/date-picker/CustomInput.js +3 -1
  25. package/dist/cjs/src/components/date-picker/DatePicker.js +85 -65
  26. package/dist/cjs/src/components/date-picker/RangeDatePicker.js +46 -37
  27. package/dist/cjs/src/components/divider/Divider.js +1 -1
  28. package/dist/cjs/src/components/dot/Dot.js +1 -1
  29. package/dist/cjs/src/components/dropdown/Dropdown.js +3 -2
  30. package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +1 -1
  31. package/dist/cjs/src/components/file-input/FileInput.js +3 -3
  32. package/dist/cjs/src/components/image-file-input/ImageFileInput.js +5 -2
  33. package/dist/cjs/src/components/input/NumberInput.js +1 -1
  34. package/dist/cjs/src/components/notification/index.js +11 -11
  35. package/dist/cjs/src/components/pagination/NavButton.js +3 -1
  36. package/dist/cjs/src/components/pagination/Pagination.js +65 -67
  37. package/dist/cjs/src/components/progress-bar/ProgressBar.js +13 -9
  38. package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +1 -1
  39. package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +1 -1
  40. package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  41. package/dist/cjs/src/components/progress-bar/utils.js +3 -2
  42. package/dist/cjs/src/components/progress-circle/ProgressCircle.js +41 -41
  43. package/dist/cjs/src/components/select/Select.js +2 -2
  44. package/dist/cjs/src/components/selectbox/SelectBox.js +57 -45
  45. package/dist/cjs/src/components/spinner/Spinner.js +5 -4
  46. package/dist/cjs/src/components/spinner/index.js +0 -11
  47. package/dist/cjs/src/components/switch/Switch.js +15 -10
  48. package/dist/cjs/src/components/tab/HorizontalTab.js +5 -3
  49. package/dist/cjs/src/components/tab/TabButton.js +1 -1
  50. package/dist/cjs/src/components/toggle/Toggle.js +13 -15
  51. package/dist/cjs/src/components/tooltip/Tooltip.js +28 -13
  52. package/dist/cjs/src/constant/index.js +8 -8
  53. package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  54. package/dist/cjs/src/hooks/dropdown/useScrollLock.js +26 -19
  55. package/dist/cjs/src/hooks/index.js +4 -4
  56. package/dist/cjs/src/utils/date-picker.js +14 -7
  57. package/dist/cjs/src/utils/dropdown/dropdownUtils.js +6 -8
  58. package/dist/esm/assets/scripts/baseBox.js +143 -0
  59. package/dist/esm/assets/scripts/comboBox.js +44 -136
  60. package/dist/esm/assets/scripts/datePicker.js +1 -1
  61. package/dist/esm/assets/scripts/featuredIcon.js +1 -1
  62. package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -3
  63. package/dist/esm/assets/scripts/fileInput/fileInput.js +74 -0
  64. package/dist/esm/assets/scripts/fileInput/fileInputModel.js +56 -0
  65. package/dist/esm/assets/scripts/fileInput/fileInputView.js +142 -0
  66. package/dist/esm/assets/scripts/fileInput/index.js +2 -2
  67. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +2 -2
  68. package/dist/esm/assets/scripts/selectBox.js +46 -136
  69. package/dist/esm/assets/scripts/utils/debounce.js +27 -0
  70. package/dist/esm/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +23 -66
  71. package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
  72. package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +53 -95
  73. package/dist/esm/src/components/badge/Badge.js +4 -3
  74. package/dist/esm/src/components/badge/BadgeGroup.js +3 -2
  75. package/dist/esm/src/components/badge/utils.js +3 -2
  76. package/dist/esm/src/components/breadcrumb/BreadCrumb.js +4 -3
  77. package/dist/esm/src/components/button/Button.js +13 -5
  78. package/dist/esm/src/components/button/ButtonCloseX.js +3 -2
  79. package/dist/esm/src/components/button/ButtonGroup.js +3 -2
  80. package/dist/esm/src/components/carousel/CarouselArrow.js +2 -2
  81. package/dist/esm/src/components/carousel/CarouselNumberGroup.js +4 -5
  82. package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
  83. package/dist/esm/src/components/combobox/ComboBox.js +58 -46
  84. package/dist/esm/src/components/date-picker/CustomInput.js +6 -3
  85. package/dist/esm/src/components/date-picker/DatePicker.js +88 -67
  86. package/dist/esm/src/components/date-picker/RangeDatePicker.js +49 -39
  87. package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +3 -2
  88. package/dist/esm/src/components/divider/Divider.js +1 -1
  89. package/dist/esm/src/components/dot/Dot.js +4 -3
  90. package/dist/esm/src/components/dropdown/Dropdown.js +3 -2
  91. package/dist/esm/src/components/empty-state/EmptyState.js +3 -2
  92. package/dist/esm/src/components/featured-icon/FeaturedIcon.js +4 -3
  93. package/dist/esm/src/components/file-input/FileInput.js +3 -3
  94. package/dist/esm/src/components/image-file-input/ImageFileInput.js +6 -3
  95. package/dist/esm/src/components/input/InputBase.js +3 -2
  96. package/dist/esm/src/components/input/NumberInput.js +1 -1
  97. package/dist/esm/src/components/modal/Modal.js +3 -2
  98. package/dist/esm/src/components/notification/FloatingNotification.js +3 -2
  99. package/dist/esm/src/components/notification/FullWidthNotification.js +3 -2
  100. package/dist/esm/src/components/notification/MessageNotification.js +3 -2
  101. package/dist/esm/src/components/notification/Notification.js +3 -2
  102. package/dist/esm/src/components/notification/index.js +2 -2
  103. package/dist/esm/src/components/pagination/NavButton.js +3 -1
  104. package/dist/esm/src/components/pagination/Pagination.js +65 -67
  105. package/dist/esm/src/components/progress-bar/ProgressBar.js +13 -9
  106. package/dist/esm/src/components/progress-bar/components/SegmentBar.js +1 -1
  107. package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +5 -4
  108. package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  109. package/dist/esm/src/components/progress-bar/utils.js +7 -5
  110. package/dist/esm/src/components/progress-circle/ProgressCircle.js +41 -41
  111. package/dist/esm/src/components/select/Select.js +2 -2
  112. package/dist/esm/src/components/select-dropdown/SelectDropdown.js +3 -2
  113. package/dist/esm/src/components/selectbox/SelectBox.js +61 -48
  114. package/dist/esm/src/components/spinner/Spinner.js +5 -4
  115. package/dist/esm/src/components/spinner/index.js +1 -2
  116. package/dist/esm/src/components/switch/Switch.js +19 -13
  117. package/dist/esm/src/components/tab/HorizontalTab.js +9 -6
  118. package/dist/esm/src/components/tab/TabButton.js +4 -3
  119. package/dist/esm/src/components/tag/Tag.js +3 -2
  120. package/dist/esm/src/components/toggle/Toggle.js +14 -16
  121. package/dist/esm/src/components/tooltip/Tooltip.js +29 -14
  122. package/dist/esm/src/constant/index.js +2 -2
  123. package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  124. package/dist/esm/src/hooks/dropdown/useScrollLock.js +26 -19
  125. package/dist/esm/src/hooks/index.js +3 -3
  126. package/dist/esm/src/utils/date-picker.js +14 -7
  127. package/dist/esm/src/utils/dropdown/dropdownUtils.js +6 -8
  128. package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
  129. package/dist/temp/assets/scripts/baseBox.js +144 -0
  130. package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
  131. package/dist/temp/assets/scripts/comboBox.js +163 -0
  132. package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
  133. package/dist/temp/assets/scripts/datePicker.js +706 -0
  134. package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
  135. package/dist/temp/assets/scripts/featuredIcon.js +86 -0
  136. package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
  137. package/dist/temp/assets/scripts/fileInput/const/classNames.js +20 -0
  138. package/dist/temp/assets/scripts/fileInput/const/index.d.ts +2 -0
  139. package/dist/temp/assets/scripts/fileInput/const/index.js +2 -0
  140. package/dist/temp/assets/scripts/fileInput/const/types.d.ts +88 -0
  141. package/dist/temp/assets/scripts/fileInput/const/types.js +7 -0
  142. package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +13 -0
  143. package/dist/temp/assets/scripts/fileInput/fileInput.js +75 -0
  144. package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  145. package/dist/temp/assets/scripts/fileInput/fileInputModel.js +45 -0
  146. package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  147. package/dist/temp/assets/scripts/fileInput/fileInputView.js +142 -0
  148. package/dist/temp/assets/scripts/fileInput/index.d.ts +3 -0
  149. package/dist/temp/assets/scripts/fileInput/index.js +9 -0
  150. package/dist/{types/assets/scripts/fileInput/FileInput.d.ts → temp/assets/scripts/imageFileInput/ImageFileInput.d.ts} +6 -10
  151. package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +186 -0
  152. package/dist/{types/assets/scripts/fileInput/FileInputModel.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts} +8 -5
  153. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +234 -0
  154. package/dist/{types/assets/scripts/fileInput/FileInputView.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts} +27 -25
  155. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +348 -0
  156. package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
  157. package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +24 -0
  158. package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +2 -0
  159. package/dist/temp/assets/scripts/imageFileInput/const/index.js +2 -0
  160. package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +125 -0
  161. package/dist/temp/assets/scripts/imageFileInput/const/types.js +7 -0
  162. package/dist/temp/assets/scripts/imageFileInput/index.d.ts +3 -0
  163. package/dist/temp/assets/scripts/imageFileInput/index.js +9 -0
  164. package/dist/temp/assets/scripts/index.d.ts +32 -0
  165. package/dist/temp/assets/scripts/index.js +28 -0
  166. package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
  167. package/dist/temp/assets/scripts/modal/Modal.js +106 -0
  168. package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
  169. package/dist/temp/assets/scripts/modal/ModalActions.js +125 -0
  170. package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
  171. package/dist/temp/assets/scripts/modal/ModalContent.js +41 -0
  172. package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
  173. package/dist/temp/assets/scripts/modal/ModalHeader.js +102 -0
  174. package/dist/temp/assets/scripts/modal/const/classNames.d.ts +22 -0
  175. package/dist/temp/assets/scripts/modal/const/classNames.js +23 -0
  176. package/dist/temp/assets/scripts/modal/const/index.d.ts +2 -0
  177. package/dist/temp/assets/scripts/modal/const/index.js +2 -0
  178. package/dist/temp/assets/scripts/modal/const/types.d.ts +61 -0
  179. package/dist/temp/assets/scripts/modal/const/types.js +1 -0
  180. package/dist/temp/assets/scripts/modal/index.d.ts +7 -0
  181. package/dist/temp/assets/scripts/modal/index.js +15 -0
  182. package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
  183. package/dist/temp/assets/scripts/modal/utils/contentUtils.js +29 -0
  184. package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +24 -0
  185. package/dist/temp/assets/scripts/notification/FloatingNotification.js +154 -0
  186. package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
  187. package/dist/temp/assets/scripts/notification/FullWidthNotification.js +94 -0
  188. package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
  189. package/dist/temp/assets/scripts/notification/MessageNotification.js +123 -0
  190. package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
  191. package/dist/temp/assets/scripts/notification/Notification.js +108 -0
  192. package/dist/temp/assets/scripts/notification/const/classNames.d.ts +43 -0
  193. package/dist/temp/assets/scripts/notification/const/classNames.js +44 -0
  194. package/dist/temp/assets/scripts/notification/const/icons.d.ts +25 -0
  195. package/dist/temp/assets/scripts/notification/const/icons.js +39 -0
  196. package/dist/temp/assets/scripts/notification/const/index.d.ts +5 -0
  197. package/dist/temp/assets/scripts/notification/const/index.js +4 -0
  198. package/dist/temp/assets/scripts/notification/const/sizes.d.ts +32 -0
  199. package/dist/temp/assets/scripts/notification/const/sizes.js +40 -0
  200. package/dist/temp/assets/scripts/notification/const/types.d.ts +19 -0
  201. package/dist/temp/assets/scripts/notification/const/types.js +8 -0
  202. package/dist/temp/assets/scripts/notification/index.d.ts +7 -0
  203. package/dist/temp/assets/scripts/notification/index.js +11 -0
  204. package/dist/temp/assets/scripts/notification/utils.d.ts +8 -0
  205. package/dist/temp/assets/scripts/notification/utils.js +84 -0
  206. package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
  207. package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +258 -0
  208. package/dist/temp/assets/scripts/progress-bar/index.d.ts +1 -0
  209. package/dist/temp/assets/scripts/progress-bar/index.js +1 -0
  210. package/dist/temp/assets/scripts/selectBox.d.ts +50 -0
  211. package/dist/temp/assets/scripts/selectBox.js +194 -0
  212. package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
  213. package/dist/temp/assets/scripts/shared/ButtonCloseX.js +32 -0
  214. package/dist/temp/assets/scripts/slider.d.ts +41 -0
  215. package/dist/temp/assets/scripts/slider.js +331 -0
  216. package/dist/temp/assets/scripts/tab.d.ts +7 -0
  217. package/dist/temp/assets/scripts/tab.js +35 -0
  218. package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
  219. package/dist/temp/assets/scripts/tag/Tag.js +267 -0
  220. package/dist/temp/assets/scripts/tag/const/classNames.d.ts +11 -0
  221. package/dist/temp/assets/scripts/tag/const/classNames.js +12 -0
  222. package/dist/temp/assets/scripts/tag/const/index.d.ts +3 -0
  223. package/dist/temp/assets/scripts/tag/const/index.js +3 -0
  224. package/dist/temp/assets/scripts/tag/const/sizes.d.ts +7 -0
  225. package/dist/temp/assets/scripts/tag/const/sizes.js +7 -0
  226. package/dist/temp/assets/scripts/tag/const/types.d.ts +33 -0
  227. package/dist/temp/assets/scripts/tag/const/types.js +1 -0
  228. package/dist/temp/assets/scripts/tag/index.d.ts +3 -0
  229. package/dist/temp/assets/scripts/tag/index.js +9 -0
  230. package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +54 -0
  231. package/dist/temp/assets/scripts/tooltip/Tooltip.js +360 -0
  232. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
  233. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +74 -0
  234. package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  235. package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
  236. package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
  237. package/dist/temp/assets/scripts/tooltip/const/constants.js +46 -0
  238. package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
  239. package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
  240. package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
  241. package/dist/temp/assets/scripts/tooltip/const/index.js +4 -0
  242. package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
  243. package/dist/temp/assets/scripts/tooltip/const/templates.js +30 -0
  244. package/dist/temp/assets/scripts/tooltip/const/types.d.ts +14 -0
  245. package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
  246. package/dist/temp/assets/scripts/tooltip/index.d.ts +6 -0
  247. package/dist/temp/assets/scripts/tooltip/index.js +10 -0
  248. package/dist/temp/assets/scripts/tooltip/utils.d.ts +2 -0
  249. package/dist/temp/assets/scripts/tooltip/utils.js +35 -0
  250. package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
  251. package/dist/temp/assets/scripts/utils/debounce.js +27 -0
  252. package/dist/{types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts → temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts} +0 -1
  253. package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +376 -0
  254. package/dist/{types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts → temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts} +7 -23
  255. package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +311 -0
  256. package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts} +3 -18
  257. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +627 -0
  258. package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts} +4 -8
  259. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +559 -0
  260. package/dist/temp/constant/color.d.ts +36 -0
  261. package/dist/temp/constant/color.js +34 -0
  262. package/dist/temp/constant/size.d.ts +1 -0
  263. package/dist/temp/constant/size.js +1 -0
  264. package/dist/temp/index.d.ts +29 -0
  265. package/dist/temp/index.js +29 -0
  266. package/dist/temp/src/components/badge/Badge.d.ts +18 -0
  267. package/dist/temp/src/components/badge/Badge.js +23 -0
  268. package/dist/temp/src/components/badge/BadgeGroup.d.ts +18 -0
  269. package/dist/temp/src/components/badge/BadgeGroup.js +36 -0
  270. package/dist/temp/src/components/badge/index.d.ts +2 -0
  271. package/dist/temp/src/components/badge/index.js +2 -0
  272. package/dist/temp/src/components/badge/utils.d.ts +8 -0
  273. package/dist/temp/src/components/badge/utils.js +17 -0
  274. package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts +11 -0
  275. package/dist/temp/src/components/breadcrumb/BreadCrumb.js +33 -0
  276. package/dist/temp/src/components/breadcrumb/index.d.ts +1 -0
  277. package/dist/temp/src/components/breadcrumb/index.js +1 -0
  278. package/dist/temp/src/components/button/Button.d.ts +35 -0
  279. package/dist/temp/src/components/button/Button.js +69 -0
  280. package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
  281. package/dist/temp/src/components/button/ButtonCloseX.js +25 -0
  282. package/dist/temp/src/components/button/ButtonGroup.d.ts +311 -0
  283. package/dist/temp/src/components/button/ButtonGroup.js +72 -0
  284. package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
  285. package/dist/temp/src/components/button/ButtonStepper.js +6 -0
  286. package/dist/temp/src/components/button/index.d.ts +4 -0
  287. package/dist/temp/src/components/button/index.js +4 -0
  288. package/dist/temp/src/components/carousel/CarouselArrow.d.ts +8 -0
  289. package/dist/temp/src/components/carousel/CarouselArrow.js +24 -0
  290. package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts +8 -0
  291. package/dist/temp/src/components/carousel/CarouselNumberGroup.js +24 -0
  292. package/dist/temp/src/components/carousel/index.d.ts +2 -0
  293. package/dist/temp/src/components/carousel/index.js +2 -0
  294. package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
  295. package/dist/temp/src/components/checkbox/Checkbox.js +30 -0
  296. package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
  297. package/dist/temp/src/components/checkbox/CheckboxInput.js +46 -0
  298. package/dist/temp/src/components/checkbox/index.d.ts +2 -0
  299. package/dist/temp/src/components/checkbox/index.js +2 -0
  300. package/dist/temp/src/components/combobox/ComboBox.d.ts +28 -0
  301. package/dist/temp/src/components/combobox/ComboBox.js +199 -0
  302. package/dist/temp/src/components/combobox/index.d.ts +2 -0
  303. package/dist/temp/src/components/combobox/index.js +1 -0
  304. package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
  305. package/dist/temp/src/components/date-picker/CustomInput.js +34 -0
  306. package/dist/temp/src/components/date-picker/DatePicker.d.ts +24 -0
  307. package/dist/temp/src/components/date-picker/DatePicker.js +326 -0
  308. package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts +26 -0
  309. package/dist/temp/src/components/date-picker/RangeDatePicker.js +117 -0
  310. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts +71 -0
  311. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +55 -0
  312. package/dist/temp/src/components/date-picker/index.d.ts +4 -0
  313. package/dist/temp/src/components/date-picker/index.js +4 -0
  314. package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
  315. package/dist/temp/src/components/date-picker/utils.js +8 -0
  316. package/dist/temp/src/components/divider/Divider.d.ts +15 -0
  317. package/dist/temp/src/components/divider/Divider.js +23 -0
  318. package/dist/temp/src/components/divider/index.d.ts +1 -0
  319. package/dist/temp/src/components/divider/index.js +1 -0
  320. package/dist/temp/src/components/dot/Dot.d.ts +24 -0
  321. package/dist/temp/src/components/dot/Dot.js +31 -0
  322. package/dist/temp/src/components/dot/index.d.ts +1 -0
  323. package/dist/temp/src/components/dot/index.js +1 -0
  324. package/dist/temp/src/components/dropdown/Dropdown.d.ts +52 -0
  325. package/dist/temp/src/components/dropdown/Dropdown.js +90 -0
  326. package/dist/temp/src/components/dropdown/index.d.ts +1 -0
  327. package/dist/temp/src/components/dropdown/index.js +1 -0
  328. package/dist/temp/src/components/empty-state/EmptyState.d.ts +14 -0
  329. package/dist/temp/src/components/empty-state/EmptyState.js +33 -0
  330. package/dist/temp/src/components/empty-state/index.d.ts +1 -0
  331. package/dist/temp/src/components/empty-state/index.js +1 -0
  332. package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts +15 -0
  333. package/dist/temp/src/components/featured-icon/FeaturedIcon.js +36 -0
  334. package/dist/temp/src/components/featured-icon/index.d.ts +1 -0
  335. package/dist/temp/src/components/featured-icon/index.js +1 -0
  336. package/dist/temp/src/components/file-input/FileInput.d.ts +61 -0
  337. package/dist/temp/src/components/file-input/FileInput.js +123 -0
  338. package/dist/temp/src/components/file-input/index.d.ts +1 -0
  339. package/dist/temp/src/components/file-input/index.js +1 -0
  340. package/dist/temp/src/components/image-file-input/ImageFileInput.d.ts +70 -0
  341. package/dist/temp/src/components/image-file-input/ImageFileInput.js +124 -0
  342. package/dist/temp/src/components/image-file-input/components/ImagePreview.d.ts +5 -0
  343. package/dist/temp/src/components/image-file-input/components/ImagePreview.js +18 -0
  344. package/dist/temp/src/components/image-file-input/index.d.ts +1 -0
  345. package/dist/temp/src/components/image-file-input/index.js +1 -0
  346. package/dist/temp/src/components/index.d.ts +33 -0
  347. package/dist/temp/src/components/index.js +32 -0
  348. package/dist/temp/src/components/input/InputBase.d.ts +54 -0
  349. package/dist/temp/src/components/input/InputBase.js +121 -0
  350. package/dist/temp/src/components/input/NumberInput.d.ts +9 -0
  351. package/dist/temp/src/components/input/NumberInput.js +93 -0
  352. package/dist/temp/src/components/input/PasswordInput.d.ts +2 -0
  353. package/dist/temp/src/components/input/PasswordInput.js +51 -0
  354. package/dist/temp/src/components/input/Textarea.d.ts +14 -0
  355. package/dist/temp/src/components/input/Textarea.js +60 -0
  356. package/dist/temp/src/components/input/index.d.ts +4 -0
  357. package/dist/temp/src/components/input/index.js +4 -0
  358. package/dist/temp/src/components/modal/Modal.d.ts +79 -0
  359. package/dist/temp/src/components/modal/Modal.js +101 -0
  360. package/dist/temp/src/components/modal/index.d.ts +1 -0
  361. package/dist/temp/src/components/modal/index.js +1 -0
  362. package/dist/temp/src/components/notification/FloatingNotification.d.ts +37 -0
  363. package/dist/temp/src/components/notification/FloatingNotification.js +79 -0
  364. package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
  365. package/dist/temp/src/components/notification/FullWidthNotification.js +79 -0
  366. package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
  367. package/dist/temp/src/components/notification/MessageNotification.js +57 -0
  368. package/dist/temp/src/components/notification/Notification.d.ts +72 -0
  369. package/dist/temp/src/components/notification/Notification.js +42 -0
  370. package/dist/temp/src/components/notification/index.d.ts +4 -0
  371. package/dist/temp/src/components/notification/index.js +4 -0
  372. package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
  373. package/dist/temp/src/components/pagination/NavButton.js +66 -0
  374. package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
  375. package/dist/temp/src/components/pagination/Pagination.js +93 -0
  376. package/dist/temp/src/components/pagination/index.d.ts +2 -0
  377. package/dist/temp/src/components/pagination/index.js +2 -0
  378. package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
  379. package/dist/temp/src/components/progress-bar/ProgressBar.js +31 -0
  380. package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
  381. package/dist/temp/src/components/progress-bar/components/SegmentBar.js +10 -0
  382. package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
  383. package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +45 -0
  384. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
  385. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +96 -0
  386. package/dist/temp/src/components/progress-bar/index.d.ts +2 -0
  387. package/dist/temp/src/components/progress-bar/index.js +2 -0
  388. package/dist/temp/src/components/progress-bar/types.d.ts +15 -0
  389. package/dist/temp/src/components/progress-bar/types.js +1 -0
  390. package/dist/temp/src/components/progress-bar/utils.d.ts +13 -0
  391. package/dist/temp/src/components/progress-bar/utils.js +26 -0
  392. package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts +7 -0
  393. package/dist/temp/src/components/progress-circle/ProgressCircle.js +21 -0
  394. package/dist/temp/src/components/progress-circle/index.d.ts +1 -0
  395. package/dist/temp/src/components/progress-circle/index.js +1 -0
  396. package/dist/temp/src/components/radio/Radio.d.ts +7 -0
  397. package/dist/temp/src/components/radio/Radio.js +30 -0
  398. package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
  399. package/dist/temp/src/components/radio/RadioInput.js +29 -0
  400. package/dist/temp/src/components/radio/index.d.ts +2 -0
  401. package/dist/temp/src/components/radio/index.js +2 -0
  402. package/dist/temp/src/components/select/Select.d.ts +16 -0
  403. package/dist/temp/src/components/select/Select.js +33 -0
  404. package/dist/temp/src/components/select/index.d.ts +1 -0
  405. package/dist/temp/src/components/select/index.js +1 -0
  406. package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +29 -0
  407. package/dist/temp/src/components/select-dropdown/SelectDropdown.js +49 -0
  408. package/dist/temp/src/components/select-dropdown/index.d.ts +1 -0
  409. package/dist/temp/src/components/select-dropdown/index.js +1 -0
  410. package/dist/temp/src/components/selectbox/SelectBox.d.ts +27 -0
  411. package/dist/temp/src/components/selectbox/SelectBox.js +163 -0
  412. package/dist/temp/src/components/selectbox/index.d.ts +1 -0
  413. package/dist/temp/src/components/selectbox/index.js +1 -0
  414. package/dist/temp/src/components/shared/hintText/HintText.d.ts +7 -0
  415. package/dist/temp/src/components/shared/hintText/HintText.js +28 -0
  416. package/dist/temp/src/components/shared/hintText/index.d.ts +1 -0
  417. package/dist/temp/src/components/shared/hintText/index.js +1 -0
  418. package/dist/temp/src/components/shared/index.d.ts +2 -0
  419. package/dist/temp/src/components/shared/index.js +2 -0
  420. package/dist/temp/src/components/shared/label/Label.d.ts +7 -0
  421. package/dist/temp/src/components/shared/label/Label.js +28 -0
  422. package/dist/temp/src/components/shared/label/index.d.ts +1 -0
  423. package/dist/temp/src/components/shared/label/index.js +1 -0
  424. package/dist/temp/src/components/slider/Slider.d.ts +14 -0
  425. package/dist/temp/src/components/slider/Slider.js +44 -0
  426. package/dist/temp/src/components/slider/index.d.ts +1 -0
  427. package/dist/temp/src/components/slider/index.js +1 -0
  428. package/dist/temp/src/components/spinner/Spinner.d.ts +9 -0
  429. package/dist/temp/src/components/spinner/Spinner.js +21 -0
  430. package/dist/temp/src/components/spinner/index.d.ts +1 -0
  431. package/dist/temp/src/components/spinner/index.js +1 -0
  432. package/dist/temp/src/components/switch/Switch.d.ts +22 -0
  433. package/dist/temp/src/components/switch/Switch.js +68 -0
  434. package/dist/temp/src/components/switch/index.d.ts +2 -0
  435. package/dist/temp/src/components/switch/index.js +1 -0
  436. package/dist/temp/src/components/tab/HorizontalTab.d.ts +12 -0
  437. package/dist/temp/src/components/tab/HorizontalTab.js +37 -0
  438. package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
  439. package/dist/temp/src/components/tab/TabButton.js +37 -0
  440. package/dist/temp/src/components/tab/VerticalTab.d.ts +9 -0
  441. package/dist/temp/src/components/tab/VerticalTab.js +32 -0
  442. package/dist/temp/src/components/tab/index.d.ts +3 -0
  443. package/dist/temp/src/components/tab/index.js +3 -0
  444. package/dist/temp/src/components/tag/Tag.d.ts +17 -0
  445. package/dist/temp/src/components/tag/Tag.js +110 -0
  446. package/dist/temp/src/components/tag/index.d.ts +1 -0
  447. package/dist/temp/src/components/tag/index.js +1 -0
  448. package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
  449. package/dist/temp/src/components/toggle/Toggle.js +30 -0
  450. package/dist/temp/src/components/toggle/index.d.ts +1 -0
  451. package/dist/temp/src/components/toggle/index.js +1 -0
  452. package/dist/temp/src/components/tooltip/Tooltip.d.ts +15 -0
  453. package/dist/temp/src/components/tooltip/Tooltip.js +122 -0
  454. package/dist/temp/src/components/tooltip/index.d.ts +1 -0
  455. package/dist/temp/src/components/tooltip/index.js +1 -0
  456. package/dist/temp/src/constant/breakpoint.d.ts +6 -0
  457. package/dist/temp/src/constant/breakpoint.js +6 -0
  458. package/dist/temp/src/constant/date-picker.d.ts +63 -0
  459. package/dist/temp/src/constant/date-picker.js +53 -0
  460. package/dist/temp/src/constant/index.d.ts +2 -0
  461. package/dist/temp/src/constant/index.js +2 -0
  462. package/dist/temp/src/constant/size.d.ts +1 -0
  463. package/dist/temp/src/constant/size.js +1 -0
  464. package/dist/temp/src/hooks/dropdown/index.d.ts +6 -0
  465. package/dist/temp/src/hooks/dropdown/index.js +6 -0
  466. package/dist/temp/src/hooks/dropdown/useDropdown.d.ts +29 -0
  467. package/dist/temp/src/hooks/dropdown/useDropdown.js +84 -0
  468. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.d.ts +10 -0
  469. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.js +108 -0
  470. package/dist/temp/src/hooks/dropdown/useDropdownPosition.d.ts +9 -0
  471. package/dist/temp/src/hooks/dropdown/useDropdownPosition.js +18 -0
  472. package/dist/temp/src/hooks/dropdown/useOutsideClick.d.ts +5 -0
  473. package/dist/temp/src/hooks/dropdown/useOutsideClick.js +23 -0
  474. package/dist/temp/src/hooks/dropdown/useScrollLock.d.ts +4 -0
  475. package/dist/temp/src/hooks/dropdown/useScrollLock.js +72 -0
  476. package/dist/temp/src/hooks/dropdown/useWindowResize.d.ts +7 -0
  477. package/dist/temp/src/hooks/dropdown/useWindowResize.js +44 -0
  478. package/dist/temp/src/hooks/index.d.ts +4 -0
  479. package/dist/temp/src/hooks/index.js +6 -0
  480. package/dist/temp/src/hooks/useCallbackRef.d.ts +27 -0
  481. package/dist/temp/src/hooks/useCallbackRef.js +44 -0
  482. package/dist/temp/src/hooks/useMediaQuery.d.ts +5 -0
  483. package/dist/temp/src/hooks/useMediaQuery.js +20 -0
  484. package/dist/temp/src/hooks/useMergeRefs.d.ts +20 -0
  485. package/dist/temp/src/hooks/useMergeRefs.js +31 -0
  486. package/dist/temp/src/types/dropdown/dropdown.d.ts +39 -0
  487. package/dist/temp/src/types/dropdown/dropdown.js +1 -0
  488. package/dist/temp/src/types/dropdown/index.d.ts +2 -0
  489. package/dist/temp/src/types/dropdown/index.js +2 -0
  490. package/dist/temp/src/types/dropdown/option.d.ts +23 -0
  491. package/dist/temp/src/types/dropdown/option.js +1 -0
  492. package/dist/temp/src/types/index.d.ts +2 -0
  493. package/dist/temp/src/types/index.js +2 -0
  494. package/dist/temp/src/types/side-slot.d.ts +25 -0
  495. package/dist/temp/src/types/side-slot.js +1 -0
  496. package/dist/temp/src/utils/date-picker.d.ts +11 -0
  497. package/dist/temp/src/utils/date-picker.js +51 -0
  498. package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
  499. package/dist/temp/src/utils/dropdown/dropdownUtils.js +79 -0
  500. package/dist/temp/src/utils/dropdown/index.d.ts +2 -0
  501. package/dist/temp/src/utils/dropdown/index.js +2 -0
  502. package/dist/temp/src/utils/dropdown/multiSelect.d.ts +31 -0
  503. package/dist/temp/src/utils/dropdown/multiSelect.js +68 -0
  504. package/dist/temp/src/utils/index.d.ts +2 -0
  505. package/dist/temp/src/utils/index.js +4 -0
  506. package/dist/types/assets/scripts/baseBox.d.ts +55 -0
  507. package/dist/types/assets/scripts/comboBox.d.ts +7 -38
  508. package/dist/types/assets/scripts/datePicker.d.ts +0 -1
  509. package/dist/types/assets/scripts/featuredIcon.d.ts +0 -1
  510. package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -2
  511. package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -1
  512. package/dist/types/assets/scripts/fileInput/const/types.d.ts +4 -48
  513. package/dist/types/assets/scripts/fileInput/fileInput.d.ts +13 -0
  514. package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  515. package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  516. package/dist/types/assets/scripts/fileInput/index.d.ts +1 -2
  517. package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -1
  518. package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -1
  519. package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -1
  520. package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -1
  521. package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -1
  522. package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -1
  523. package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -1
  524. package/dist/types/assets/scripts/index.d.ts +0 -1
  525. package/dist/types/assets/scripts/modal/Modal.d.ts +0 -1
  526. package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -1
  527. package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -1
  528. package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -1
  529. package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -1
  530. package/dist/types/assets/scripts/modal/const/index.d.ts +0 -1
  531. package/dist/types/assets/scripts/modal/const/types.d.ts +0 -1
  532. package/dist/types/assets/scripts/modal/index.d.ts +0 -1
  533. package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -1
  534. package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -1
  535. package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -1
  536. package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -1
  537. package/dist/types/assets/scripts/notification/Notification.d.ts +0 -1
  538. package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -1
  539. package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -1
  540. package/dist/types/assets/scripts/notification/const/index.d.ts +0 -1
  541. package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -1
  542. package/dist/types/assets/scripts/notification/const/types.d.ts +0 -1
  543. package/dist/types/assets/scripts/notification/index.d.ts +0 -1
  544. package/dist/types/assets/scripts/notification/utils.d.ts +0 -1
  545. package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -1
  546. package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -1
  547. package/dist/types/assets/scripts/selectBox.d.ts +6 -33
  548. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -1
  549. package/dist/types/assets/scripts/slider.d.ts +0 -1
  550. package/dist/types/assets/scripts/tab.d.ts +0 -1
  551. package/dist/types/assets/scripts/tag/Tag.d.ts +0 -1
  552. package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -1
  553. package/dist/types/assets/scripts/tag/const/index.d.ts +0 -1
  554. package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -1
  555. package/dist/types/assets/scripts/tag/const/types.d.ts +0 -1
  556. package/dist/types/assets/scripts/tag/index.d.ts +0 -1
  557. package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -1
  558. package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -1
  559. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -1
  560. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -1
  561. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -1
  562. package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -1
  563. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -1
  564. package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -1
  565. package/dist/types/assets/scripts/tooltip/index.d.ts +0 -1
  566. package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -1
  567. package/dist/types/assets/scripts/utils/debounce.d.ts +8 -0
  568. package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
  569. package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
  570. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
  571. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
  572. package/dist/types/constant/color.d.ts +0 -1
  573. package/dist/types/constant/size.d.ts +0 -1
  574. package/dist/types/index.d.ts +0 -1
  575. package/dist/types/src/components/badge/Badge.d.ts +10 -9
  576. package/dist/types/src/components/badge/BadgeGroup.d.ts +7 -6
  577. package/dist/types/src/components/badge/index.d.ts +0 -1
  578. package/dist/types/src/components/badge/utils.d.ts +4 -3
  579. package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +5 -4
  580. package/dist/types/src/components/breadcrumb/index.d.ts +0 -1
  581. package/dist/types/src/components/button/Button.d.ts +2 -1
  582. package/dist/types/src/components/button/ButtonCloseX.d.ts +4 -3
  583. package/dist/types/src/components/button/ButtonGroup.d.ts +7 -9
  584. package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
  585. package/dist/types/src/components/button/index.d.ts +0 -1
  586. package/dist/types/src/components/carousel/CarouselArrow.d.ts +1 -3
  587. package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +1 -3
  588. package/dist/types/src/components/carousel/index.d.ts +0 -1
  589. package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
  590. package/dist/types/src/components/checkbox/CheckboxInput.d.ts +2 -3
  591. package/dist/types/src/components/checkbox/index.d.ts +0 -1
  592. package/dist/types/src/components/combobox/ComboBox.d.ts +7 -6
  593. package/dist/types/src/components/combobox/index.d.ts +1 -2
  594. package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
  595. package/dist/types/src/components/date-picker/DatePicker.d.ts +7 -6
  596. package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +6 -5
  597. package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +4 -4
  598. package/dist/types/src/components/date-picker/index.d.ts +0 -1
  599. package/dist/types/src/components/date-picker/utils.d.ts +0 -1
  600. package/dist/types/src/components/divider/Divider.d.ts +1 -2
  601. package/dist/types/src/components/divider/index.d.ts +0 -1
  602. package/dist/types/src/components/dot/Dot.d.ts +9 -8
  603. package/dist/types/src/components/dot/index.d.ts +0 -1
  604. package/dist/types/src/components/dropdown/Dropdown.d.ts +0 -1
  605. package/dist/types/src/components/dropdown/index.d.ts +0 -1
  606. package/dist/types/src/components/empty-state/EmptyState.d.ts +5 -5
  607. package/dist/types/src/components/empty-state/index.d.ts +0 -1
  608. package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +8 -7
  609. package/dist/types/src/components/featured-icon/index.d.ts +0 -1
  610. package/dist/types/src/components/file-input/FileInput.d.ts +0 -1
  611. package/dist/types/src/components/file-input/index.d.ts +0 -1
  612. package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +0 -1
  613. package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +0 -1
  614. package/dist/types/src/components/image-file-input/index.d.ts +0 -1
  615. package/dist/types/src/components/index.d.ts +1 -2
  616. package/dist/types/src/components/input/InputBase.d.ts +4 -4
  617. package/dist/types/src/components/input/NumberInput.d.ts +1 -2
  618. package/dist/types/src/components/input/PasswordInput.d.ts +1 -2
  619. package/dist/types/src/components/input/Textarea.d.ts +2 -3
  620. package/dist/types/src/components/input/index.d.ts +0 -1
  621. package/dist/types/src/components/modal/Modal.d.ts +13 -12
  622. package/dist/types/src/components/modal/index.d.ts +0 -1
  623. package/dist/types/src/components/notification/FloatingNotification.d.ts +6 -5
  624. package/dist/types/src/components/notification/FullWidthNotification.d.ts +6 -5
  625. package/dist/types/src/components/notification/MessageNotification.d.ts +6 -5
  626. package/dist/types/src/components/notification/Notification.d.ts +11 -10
  627. package/dist/types/src/components/notification/index.d.ts +1 -2
  628. package/dist/types/src/components/pagination/NavButton.d.ts +0 -1
  629. package/dist/types/src/components/pagination/Pagination.d.ts +0 -1
  630. package/dist/types/src/components/pagination/index.d.ts +0 -1
  631. package/dist/types/src/components/progress-bar/ProgressBar.d.ts +0 -1
  632. package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +0 -1
  633. package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +3 -4
  634. package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +1 -2
  635. package/dist/types/src/components/progress-bar/index.d.ts +0 -1
  636. package/dist/types/src/components/progress-bar/types.d.ts +0 -1
  637. package/dist/types/src/components/progress-bar/utils.d.ts +4 -4
  638. package/dist/types/src/components/progress-circle/ProgressCircle.d.ts +0 -1
  639. package/dist/types/src/components/progress-circle/index.d.ts +0 -1
  640. package/dist/types/src/components/radio/Radio.d.ts +2 -3
  641. package/dist/types/src/components/radio/RadioInput.d.ts +2 -3
  642. package/dist/types/src/components/radio/index.d.ts +0 -1
  643. package/dist/types/src/components/select/Select.d.ts +4 -5
  644. package/dist/types/src/components/select/index.d.ts +0 -1
  645. package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +6 -6
  646. package/dist/types/src/components/select-dropdown/index.d.ts +1 -2
  647. package/dist/types/src/components/selectbox/SelectBox.d.ts +5 -4
  648. package/dist/types/src/components/selectbox/index.d.ts +0 -1
  649. package/dist/types/src/components/shared/hintText/HintText.d.ts +0 -1
  650. package/dist/types/src/components/shared/hintText/index.d.ts +0 -1
  651. package/dist/types/src/components/shared/index.d.ts +0 -1
  652. package/dist/types/src/components/shared/label/Label.d.ts +0 -1
  653. package/dist/types/src/components/shared/label/index.d.ts +0 -1
  654. package/dist/types/src/components/slider/Slider.d.ts +1 -2
  655. package/dist/types/src/components/slider/index.d.ts +0 -1
  656. package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
  657. package/dist/types/src/components/spinner/index.d.ts +0 -2
  658. package/dist/types/src/components/switch/Switch.d.ts +7 -7
  659. package/dist/types/src/components/switch/index.d.ts +1 -2
  660. package/dist/types/src/components/tab/HorizontalTab.d.ts +5 -4
  661. package/dist/types/src/components/tab/TabButton.d.ts +8 -8
  662. package/dist/types/src/components/tab/VerticalTab.d.ts +2 -3
  663. package/dist/types/src/components/tab/index.d.ts +0 -1
  664. package/dist/types/src/components/tag/Tag.d.ts +4 -4
  665. package/dist/types/src/components/tag/index.d.ts +0 -1
  666. package/dist/types/src/components/toggle/Toggle.d.ts +1 -2
  667. package/dist/types/src/components/toggle/index.d.ts +0 -1
  668. package/dist/types/src/components/tooltip/Tooltip.d.ts +0 -1
  669. package/dist/types/src/components/tooltip/index.d.ts +0 -1
  670. package/dist/types/src/constant/breakpoint.d.ts +0 -1
  671. package/dist/types/src/constant/date-picker.d.ts +0 -1
  672. package/dist/types/src/constant/index.d.ts +1 -2
  673. package/dist/types/src/constant/size.d.ts +0 -1
  674. package/dist/types/src/hooks/dropdown/index.d.ts +0 -1
  675. package/dist/types/src/hooks/dropdown/useDropdown.d.ts +1 -2
  676. package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +2 -3
  677. package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +1 -2
  678. package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +1 -2
  679. package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +0 -1
  680. package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +0 -1
  681. package/dist/types/src/hooks/index.d.ts +1 -2
  682. package/dist/types/src/hooks/useCallbackRef.d.ts +0 -1
  683. package/dist/types/src/hooks/useMediaQuery.d.ts +0 -1
  684. package/dist/types/src/hooks/useMergeRefs.d.ts +1 -2
  685. package/dist/types/src/types/dropdown/dropdown.d.ts +1 -2
  686. package/dist/types/src/types/dropdown/index.d.ts +0 -1
  687. package/dist/types/src/types/dropdown/option.d.ts +0 -1
  688. package/dist/types/src/types/index.d.ts +0 -1
  689. package/dist/types/src/types/side-slot.d.ts +0 -1
  690. package/dist/types/src/utils/date-picker.d.ts +1 -2
  691. package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +2 -3
  692. package/dist/types/src/utils/dropdown/index.d.ts +0 -1
  693. package/dist/types/src/utils/dropdown/multiSelect.d.ts +1 -2
  694. package/dist/types/src/utils/index.d.ts +0 -1
  695. package/dist/ui-admin/assets/styles/style.css +112 -24
  696. package/package.json +49 -53
  697. package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
  698. package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
  699. package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
  700. package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
  701. package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
  702. package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
  703. /package/dist/cjs/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
  704. /package/dist/esm/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
@@ -0,0 +1,39 @@
1
+ // SVG 아이콘들 (크기는 동적으로 설정)
2
+ export var SVG_ICONS = {
3
+ 'pin-02': function (size) {
4
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8.377 15.616 2.72 21.273m8.974-14.631-1.56 1.56a2 2 0 0 1-.264.242 1 1 0 0 1-.207.111c-.082.032-.17.05-.347.085l-3.665.733c-.952.19-1.428.286-1.65.537a1 1 0 0 0-.243.8c.046.333.39.677 1.076 1.363l7.086 7.086c.686.687 1.03 1.03 1.362 1.076a1 1 0 0 0 .801-.242c.251-.223.346-.7.537-1.651l.733-3.665c.035-.176.053-.265.085-.347a1 1 0 0 1 .11-.207c.051-.072.115-.136.242-.263l1.561-1.561c.082-.082.122-.122.167-.158q.06-.047.126-.085c.05-.029.103-.051.208-.097l2.495-1.069c.727-.312 1.091-.467 1.256-.72a1 1 0 0 0 .144-.747c-.06-.295-.34-.575-.9-1.135l-5.142-5.143c-.56-.56-.84-.84-1.135-.9a1 1 0 0 0-.748.145c-.252.165-.407.529-.72 1.256l-1.068 2.495a2 2 0 0 1-.097.208 1 1 0 0 1-.085.126 2 2 0 0 1-.158.167\"></path></svg>");
5
+ },
6
+ 'alert-triangle': function (size) {
7
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31\"></path></svg>");
8
+ },
9
+ 'alert-circle': function (size) {
10
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
11
+ },
12
+ 'check-circle': function (size) {
13
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
14
+ },
15
+ 'info-circle': function (size) {
16
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\" color=\"#5720B7\" class=\"ncua-full-width-notification__icon\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
17
+ },
18
+ 'message-chat-square': function (size) {
19
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\" color=\"#0C111D\" class=\"ncua-full-width-notification__icon\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2 2 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152z\"></path></svg>");
20
+ },
21
+ 'x-close': function (size) {
22
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6 6 18M6 6l12 12\"></path></svg>");
23
+ },
24
+ };
25
+ export var FLOATING_ICON_MAP = {
26
+ neutral: SVG_ICONS['pin-02'],
27
+ error: SVG_ICONS['alert-triangle'],
28
+ warning: SVG_ICONS['alert-circle'],
29
+ success: SVG_ICONS['check-circle'],
30
+ // info는 floating에서는 지원하지 않음
31
+ };
32
+ export var FULL_WIDTH_ICON_MAP = {
33
+ neutral: SVG_ICONS['message-chat-square'],
34
+ error: SVG_ICONS['alert-triangle'],
35
+ warning: SVG_ICONS['alert-triangle'],
36
+ success: SVG_ICONS['check-circle'],
37
+ info: SVG_ICONS['info-circle'],
38
+ };
39
+ export var ICON_MAP = FULL_WIDTH_ICON_MAP;
@@ -0,0 +1,5 @@
1
+ export type { NotificationColor, NotificationHierarchy, NotificationAction, BaseNotificationOptions } from './types';
2
+ export { SVG_ICONS, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, ICON_MAP } from './icons';
3
+ export { CLASS_NAMES } from './classNames';
4
+ export { FEATURED_ICON_SIZES, ICON_PIXEL_SIZES, CLOSE_BUTTON_SIZES, CLOSE_BUTTON_SVG_SIZES, FULL_WIDTH_SIZES, MESSAGE_SIZES, getSizes, } from './sizes';
5
+ export { MESSAGE_CLOSE_ICON_COLORS } from './types';
@@ -0,0 +1,4 @@
1
+ export { SVG_ICONS, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, ICON_MAP } from './icons';
2
+ export { CLASS_NAMES } from './classNames';
3
+ export { FEATURED_ICON_SIZES, ICON_PIXEL_SIZES, CLOSE_BUTTON_SIZES, CLOSE_BUTTON_SVG_SIZES, FULL_WIDTH_SIZES, MESSAGE_SIZES, getSizes, } from './sizes';
4
+ export { MESSAGE_CLOSE_ICON_COLORS } from './types';
@@ -0,0 +1,32 @@
1
+ export declare const FEATURED_ICON_SIZES: {
2
+ readonly MOBILE: "md";
3
+ readonly DESKTOP: "sm";
4
+ };
5
+ export declare const ICON_PIXEL_SIZES: {
6
+ readonly MOBILE: "20";
7
+ readonly DESKTOP: "16";
8
+ readonly FULL_WIDTH: "16";
9
+ };
10
+ export declare const CLOSE_BUTTON_SIZES: {
11
+ readonly MOBILE: "sm";
12
+ readonly DESKTOP: "xs";
13
+ };
14
+ export declare const CLOSE_BUTTON_SVG_SIZES: {
15
+ readonly xs: 16;
16
+ readonly sm: 20;
17
+ };
18
+ export declare const FULL_WIDTH_SIZES: {
19
+ readonly ICON: "16";
20
+ readonly CLOSE_BUTTON: "20";
21
+ };
22
+ export declare const MESSAGE_SIZES: {
23
+ readonly FEATURED_ICON: "lg";
24
+ readonly ICON_PIXEL: "24";
25
+ readonly CLOSE_BUTTON: "20";
26
+ };
27
+ export declare const getSizes: {
28
+ readonly featuredIcon: (isMobile: boolean) => "sm" | "md";
29
+ readonly iconPixel: (isMobile: boolean) => "16" | "20";
30
+ readonly closeButton: (isMobile: boolean) => "xs" | "sm";
31
+ readonly closeButtonSvg: (size: keyof typeof CLOSE_BUTTON_SVG_SIZES) => 16 | 20;
32
+ };
@@ -0,0 +1,40 @@
1
+ // 알림 컴포넌트 사이즈 관련 상수들
2
+ // FeaturedIcon 사이즈
3
+ export var FEATURED_ICON_SIZES = {
4
+ MOBILE: 'md',
5
+ DESKTOP: 'sm',
6
+ };
7
+ // SVG 아이콘 픽셀 사이즈
8
+ export var ICON_PIXEL_SIZES = {
9
+ MOBILE: '20',
10
+ DESKTOP: '16',
11
+ FULL_WIDTH: '16', // Full-width는 항상 고정
12
+ };
13
+ // 닫기 버튼 사이즈
14
+ export var CLOSE_BUTTON_SIZES = {
15
+ MOBILE: 'sm',
16
+ DESKTOP: 'xs',
17
+ };
18
+ // 닫기 버튼 SVG 픽셀 사이즈
19
+ export var CLOSE_BUTTON_SVG_SIZES = {
20
+ xs: 16,
21
+ sm: 20,
22
+ };
23
+ // Full-width 알림 고정 사이즈
24
+ export var FULL_WIDTH_SIZES = {
25
+ ICON: '16',
26
+ CLOSE_BUTTON: '20',
27
+ };
28
+ // Message 알림 고정 사이즈
29
+ export var MESSAGE_SIZES = {
30
+ FEATURED_ICON: 'lg',
31
+ ICON_PIXEL: '24',
32
+ CLOSE_BUTTON: '20',
33
+ };
34
+ // 사이즈 유틸리티 함수들
35
+ export var getSizes = {
36
+ featuredIcon: function (isMobile) { return (isMobile ? FEATURED_ICON_SIZES.MOBILE : FEATURED_ICON_SIZES.DESKTOP); },
37
+ iconPixel: function (isMobile) { return (isMobile ? ICON_PIXEL_SIZES.MOBILE : ICON_PIXEL_SIZES.DESKTOP); },
38
+ closeButton: function (isMobile) { return (isMobile ? CLOSE_BUTTON_SIZES.MOBILE : CLOSE_BUTTON_SIZES.DESKTOP); },
39
+ closeButtonSvg: function (size) { return CLOSE_BUTTON_SVG_SIZES[size]; },
40
+ };
@@ -0,0 +1,19 @@
1
+ export type NotificationColor = 'neutral' | 'error' | 'warning' | 'success' | 'info';
2
+ export type NotificationHierarchy = 'link' | 'link-gray';
3
+ export interface NotificationAction {
4
+ label: string;
5
+ onClick: () => void;
6
+ hierarchy?: NotificationHierarchy;
7
+ }
8
+ export interface BaseNotificationOptions {
9
+ title: string;
10
+ supportingText?: string;
11
+ color?: NotificationColor;
12
+ onClose?: () => void;
13
+ className?: string;
14
+ actions?: NotificationAction[];
15
+ autoClose?: number;
16
+ supportTextLink?: string;
17
+ onHidePermanently?: () => void;
18
+ }
19
+ export declare const MESSAGE_CLOSE_ICON_COLORS: Record<NotificationColor, string>;
@@ -0,0 +1,8 @@
1
+ // Message Notification 닫기 버튼 아이콘 색상 맵
2
+ export var MESSAGE_CLOSE_ICON_COLORS = {
3
+ neutral: '#6B7280',
4
+ error: '#EF4444',
5
+ warning: '#F97316',
6
+ success: '#16A34A',
7
+ info: '#6B7280', // info는 message 타입에서 지원하지 않지만 fallback용
8
+ };
@@ -0,0 +1,7 @@
1
+ export { Notification, type NotificationOptions } from './Notification';
2
+ export { FullWidthNotification, type FullWidthNotificationOptions } from './FullWidthNotification';
3
+ export { FloatingNotification, type FloatingNotificationOptions } from './FloatingNotification';
4
+ export { MessageNotification, type MessageNotificationOptions } from './MessageNotification';
5
+ export * from './utils';
6
+ export type { NotificationColor, NotificationHierarchy, NotificationAction, BaseNotificationOptions } from './const';
7
+ export { SVG_ICONS, CLASS_NAMES, ICON_MAP, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP } from './const';
@@ -0,0 +1,11 @@
1
+ export { Notification } from './Notification';
2
+ export { FullWidthNotification } from './FullWidthNotification';
3
+ export { FloatingNotification } from './FloatingNotification';
4
+ export { MessageNotification } from './MessageNotification';
5
+ export * from './utils';
6
+ export { SVG_ICONS, CLASS_NAMES, ICON_MAP, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP } from './const';
7
+ // 전역 등록 ( 추후 index.ts와 개별동작 할 수 있게끔 대비 )
8
+ if (typeof window !== 'undefined') {
9
+ window.ncua = window.ncua || {};
10
+ window.ncua.Notification = Notification;
11
+ }
@@ -0,0 +1,8 @@
1
+ import type { NotificationColor, NotificationAction } from './const';
2
+ export declare function createWrapperElement(baseClass: string, color: NotificationColor, className?: string): HTMLElement;
3
+ export declare function buildClassName(baseClass: string, color: NotificationColor, className?: string): string;
4
+ export declare function renderSupportingText(supportingText?: string, className?: string, supportTextLink?: string): string;
5
+ export declare function renderActions(actions: NotificationAction[], wrapperClass: string): string;
6
+ export declare function bindNotificationEvents(element: HTMLElement, actions: NotificationAction[], onClose?: () => void, onRemove?: () => void): void;
7
+ export declare function setupAutoClose(autoClose: number, onClose?: () => void, onRemove?: () => void): number | undefined;
8
+ export declare const isMobile: () => boolean;
@@ -0,0 +1,84 @@
1
+ import { CLASS_NAMES } from './const';
2
+ import { BREAKPOINT } from '../../../src/constant/breakpoint';
3
+ // 공통 유틸리티 함수들
4
+ export function createWrapperElement(baseClass, color, className) {
5
+ var wrapper = document.createElement('div');
6
+ wrapper.className = buildClassName(baseClass, color, className);
7
+ wrapper.setAttribute('role', 'alert');
8
+ return wrapper;
9
+ }
10
+ export function buildClassName(baseClass, color, className) {
11
+ var classes = [baseClass, "".concat(baseClass, "--").concat(color)];
12
+ if (className) {
13
+ classes.push(className);
14
+ }
15
+ return classes.join(' ');
16
+ }
17
+ export function renderSupportingText(supportingText, className, supportTextLink) {
18
+ if (!supportingText)
19
+ return '';
20
+ if (supportTextLink) {
21
+ return "<a href=\"".concat(supportTextLink, "\" class=\"ncua-full-width-notification__link\"><span class=\"").concat(className, "\">").concat(supportingText, "</span></a>");
22
+ }
23
+ return "<span class=\"".concat(className, "\">").concat(supportingText, "</span>");
24
+ }
25
+ export function renderActions(actions, wrapperClass) {
26
+ // 액션이 없으면 빈 문자열 반환
27
+ if (!actions || actions.length === 0) {
28
+ return '';
29
+ }
30
+ var buttonsHtml = actions
31
+ .map(function (action) {
32
+ var buttonHtml = "\n <button \n class=\"ncua-btn ncua-btn--sm ncua-btn--".concat(action.hierarchy || 'text', "\"\n data-action=\"").concat(action.label, "-").concat(action.hierarchy, "\"\n >\n ").concat(action.label, "\n </button>");
33
+ return buttonHtml;
34
+ })
35
+ .join('');
36
+ return "<div class=\"".concat(wrapperClass, "\">").concat(buttonsHtml, "</div>");
37
+ }
38
+ // 공통 이벤트 처리
39
+ export function bindNotificationEvents(element, actions, onClose, onRemove) {
40
+ element.addEventListener('click', function (event) {
41
+ var target = event.target;
42
+ // 닫기 버튼 클릭 처리
43
+ if (target.matches(".".concat(CLASS_NAMES.FULL_WIDTH.CLOSE_BUTTON, ", .").concat(CLASS_NAMES.FLOATING.CLOSE_BUTTON)) ||
44
+ target.closest(".".concat(CLASS_NAMES.FULL_WIDTH.CLOSE_BUTTON, ", .").concat(CLASS_NAMES.FLOATING.CLOSE_BUTTON)) ||
45
+ target.closest(".".concat(CLASS_NAMES.MESSAGE.CLOSE_BUTTON))) {
46
+ onClose === null || onClose === void 0 ? void 0 : onClose();
47
+ onRemove === null || onRemove === void 0 ? void 0 : onRemove();
48
+ return;
49
+ }
50
+ // 액션 버튼 클릭 처리
51
+ var actionButton = target.closest('.ncua-btn[data-action]');
52
+ if (actionButton && actions) {
53
+ var actionData = actionButton.getAttribute('data-action');
54
+ if (actionData) {
55
+ var matchedAction = null;
56
+ for (var _i = 0, actions_1 = actions; _i < actions_1.length; _i++) {
57
+ var action = actions_1[_i];
58
+ var expectedDataAction = "".concat(action.label, "-").concat(action.hierarchy || 'link');
59
+ if (actionData === expectedDataAction) {
60
+ matchedAction = action;
61
+ break;
62
+ }
63
+ }
64
+ if (matchedAction === null || matchedAction === void 0 ? void 0 : matchedAction.onClick) {
65
+ matchedAction.onClick();
66
+ }
67
+ }
68
+ }
69
+ });
70
+ }
71
+ // 자동 닫기 설정
72
+ export function setupAutoClose(autoClose, onClose, onRemove) {
73
+ if (autoClose > 0) {
74
+ return window.setTimeout(function () {
75
+ onClose === null || onClose === void 0 ? void 0 : onClose();
76
+ onRemove === null || onRemove === void 0 ? void 0 : onRemove();
77
+ }, autoClose);
78
+ }
79
+ return undefined;
80
+ }
81
+ // Mobile detection utility
82
+ export var isMobile = function () {
83
+ return window.innerWidth <= parseInt(BREAKPOINT.mobile);
84
+ };
@@ -0,0 +1,67 @@
1
+ /**
2
+ * ProgressBar 클래스
3
+ * 프로그레스 바를 생성하고 관리하는 역할을 합니다.
4
+ */
5
+ export type ProgressLabel = 'right' | 'bottom' | 'top-float' | 'bottom-float';
6
+ export interface ProgressSegment {
7
+ value: number;
8
+ color?: string;
9
+ }
10
+ export interface ProcessedSegment extends ProgressSegment {
11
+ width: number;
12
+ }
13
+ export interface ProgressBarOptions {
14
+ label?: ProgressLabel;
15
+ value?: number;
16
+ segments?: ProgressSegment[];
17
+ showZeroLabel?: boolean;
18
+ valueToPercent?: boolean;
19
+ }
20
+ /**
21
+ * ProgressBar 클래스
22
+ */
23
+ export declare class ProgressBar {
24
+ private options;
25
+ private element;
26
+ constructor(options?: ProgressBarOptions);
27
+ /**
28
+ * segments 처리 로직
29
+ */
30
+ private processSegments;
31
+ /**
32
+ * 단일 라벨 HTML 생성
33
+ */
34
+ private renderSingleLabel;
35
+ /**
36
+ * segments 라벨 HTML 생성
37
+ */
38
+ private renderSegmentLabels;
39
+ /**
40
+ * segment bar HTML 생성
41
+ */
42
+ private renderSegmentBar;
43
+ /**
44
+ * HTML 문자열 생성
45
+ */
46
+ toHTML(): string;
47
+ /**
48
+ * DOM 요소 생성
49
+ */
50
+ toElement(): HTMLElement;
51
+ /**
52
+ * 요소 반환
53
+ */
54
+ getElement(): HTMLElement | null;
55
+ /**
56
+ * 옵션 업데이트
57
+ */
58
+ updateOptions(newOptions: Partial<ProgressBarOptions>): void;
59
+ /**
60
+ * Static factory method
61
+ */
62
+ static create(options?: ProgressBarOptions): ProgressBar;
63
+ /**
64
+ * Static method: HTML 문자열 생성
65
+ */
66
+ static toHTML(options: ProgressBarOptions): string;
67
+ }
@@ -0,0 +1,258 @@
1
+ /**
2
+ * ProgressBar 클래스
3
+ * 프로그레스 바를 생성하고 관리하는 역할을 합니다.
4
+ */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ /**
17
+ * 값을 0-100 범위로 제한
18
+ */
19
+ function clampValue(value) {
20
+ return Math.min(Math.max(0, value), 100);
21
+ }
22
+ /**
23
+ * 색상 이름을 fill 색상 클래스명으로 변환
24
+ */
25
+ function getFillColorClass(color) {
26
+ if (!color)
27
+ return '';
28
+ var normalizedColor = color.toLowerCase().trim();
29
+ return "ncua-progress-bar__fill--color-".concat(normalizedColor);
30
+ }
31
+ /**
32
+ * 색상 이름을 label 색상 클래스명으로 변환
33
+ */
34
+ function getLabelColorClass(color) {
35
+ if (!color)
36
+ return '';
37
+ var normalizedColor = color.toLowerCase().trim();
38
+ return "ncua-progress-bar__label--color-".concat(normalizedColor);
39
+ }
40
+ /**
41
+ * ProgressBar 클래스
42
+ */
43
+ var ProgressBar = /** @class */ (function () {
44
+ function ProgressBar(options) {
45
+ if (options === void 0) { options = {}; }
46
+ this.element = null;
47
+ this.options = __assign({ showZeroLabel: false, valueToPercent: true }, options);
48
+ }
49
+ /**
50
+ * segments 처리 로직
51
+ */
52
+ ProgressBar.prototype.processSegments = function () {
53
+ var _a;
54
+ var _b = this.options, segments = _b.segments, label = _b.label, valueToPercent = _b.valueToPercent;
55
+ var hasSegments = Boolean(segments && segments.length > 0);
56
+ var segmentCount = (_a = segments === null || segments === void 0 ? void 0 : segments.length) !== null && _a !== void 0 ? _a : 0;
57
+ if (hasSegments) {
58
+ // segment가 2개 이상일 때만 valueToPercent 적용 (기본값: true)
59
+ var shouldApplyValueToPercent = segmentCount >= 2 && valueToPercent !== false;
60
+ var segmentsToProcess = segments;
61
+ // valueToPercent 적용: segments의 합계를 100%로 규정하고 비율로 계산
62
+ if (shouldApplyValueToPercent) {
63
+ // 원본 값들의 합계 계산
64
+ var originalTotal_1 = segmentsToProcess.reduce(function (sum, seg) { return sum + seg.value; }, 0);
65
+ if (originalTotal_1 > 0) {
66
+ // 각 segment를 합계 대비 비율로 변환 (합계를 100%로 규정)
67
+ segmentsToProcess = segmentsToProcess.map(function (segment) { return ({
68
+ value: (segment.value / originalTotal_1) * 100,
69
+ color: segment.color,
70
+ }); });
71
+ }
72
+ }
73
+ // 각 값 제한 (0-100 범위)
74
+ var limitedSegments = segmentsToProcess.map(function (segment) { return ({
75
+ value: clampValue(segment.value),
76
+ color: segment.color,
77
+ }); });
78
+ // 전체 합계 계산
79
+ var actualTotal_1 = limitedSegments.reduce(function (sum, seg) { return sum + seg.value; }, 0);
80
+ var total_1 = Math.min(actualTotal_1, 100);
81
+ // 모든 segments를 좌측에서부터 연속적으로 배치 (비율로 계산)
82
+ var processed = limitedSegments.map(function (segment) { return (__assign(__assign({}, segment), { width: actualTotal_1 > 0 ? (segment.value / actualTotal_1) * total_1 : 0 })); });
83
+ // segment의 개수가 2이상일때는 bottom 라벨로 고정
84
+ var effectiveLabel = segmentCount >= 2 ? 'bottom' : label;
85
+ // floating label 스타일
86
+ var progressValueStyle = effectiveLabel === 'top-float' || effectiveLabel === 'bottom-float'
87
+ ? { '--progress-value': "".concat(total_1, "%") }
88
+ : undefined;
89
+ return {
90
+ totalValue: total_1,
91
+ displayValue: "".concat(total_1.toFixed(0), "%"),
92
+ processedSegments: processed,
93
+ effectiveLabel: effectiveLabel,
94
+ progressValueStyle: progressValueStyle,
95
+ };
96
+ }
97
+ // value만 있을 때는 valueToPercent 무시 (이미 퍼센트로 간주)
98
+ if (this.options.value !== undefined) {
99
+ var clamped = clampValue(this.options.value);
100
+ var effectiveLabel = label;
101
+ var progressValueStyle = effectiveLabel === 'top-float' || effectiveLabel === 'bottom-float'
102
+ ? { '--progress-value': "".concat(clamped, "%") }
103
+ : undefined;
104
+ return {
105
+ totalValue: clamped,
106
+ displayValue: "".concat(clamped.toFixed(0), "%"),
107
+ processedSegments: [],
108
+ effectiveLabel: effectiveLabel,
109
+ progressValueStyle: progressValueStyle,
110
+ };
111
+ }
112
+ return {
113
+ totalValue: 0,
114
+ displayValue: '0%',
115
+ processedSegments: [],
116
+ effectiveLabel: label,
117
+ progressValueStyle: undefined,
118
+ };
119
+ };
120
+ /**
121
+ * 단일 라벨 HTML 생성
122
+ */
123
+ ProgressBar.prototype.renderSingleLabel = function (labelType, displayValue, totalValue) {
124
+ // 0%이고 showZeroLabel이 false면 라벨 표시하지 않음
125
+ if (totalValue === 0 && !this.options.showZeroLabel) {
126
+ return '';
127
+ }
128
+ return "<span class=\"ncua-progress-bar__label ncua-progress-bar__label-".concat(labelType, "\">").concat(displayValue, "</span>");
129
+ };
130
+ /**
131
+ * segments 라벨 HTML 생성
132
+ */
133
+ ProgressBar.prototype.renderSegmentLabels = function (segments, segmentCount) {
134
+ var _this = this;
135
+ if (segmentCount < 2)
136
+ return '';
137
+ var labels = [];
138
+ segments.forEach(function (segment, index) {
139
+ // 0%이고 showZeroLabel이 false면 라벨 표시하지 않음
140
+ if (segment.value === 0 && !_this.options.showZeroLabel) {
141
+ return;
142
+ }
143
+ var leftPosition = 0;
144
+ for (var i = 0; i < index; i++) {
145
+ leftPosition += segments[i].width;
146
+ }
147
+ // 0%일 때는 segment 시작 위치에 맞추되, 라벨이 게이지 바를 넘어가지 않도록 조정
148
+ // 그 외에는 중앙에 정렬
149
+ var isZero = segment.value === 0;
150
+ // 0%일 때는 약간의 오프셋을 주어 자연스럽게 보이도록 함 (라벨 너비의 절반 정도)
151
+ var labelPosition = isZero ? Math.max(0, leftPosition - 1) : leftPosition + segment.width / 2;
152
+ var transform = isZero ? 'translateX(0)' : 'translateX(-50%)';
153
+ var colorClass = getLabelColorClass(segment.color);
154
+ labels.push("<span class=\"ncua-progress-bar__label ncua-progress-bar__label--segment ".concat(colorClass, "\" style=\"left: ").concat(labelPosition, "%; transform: ").concat(transform, ";\">").concat(segment.value.toFixed(0), "%</span>"));
155
+ });
156
+ return labels.length > 0 ? "<div class=\"ncua-progress-bar__labels--multiple\">".concat(labels.join(''), "</div>") : '';
157
+ };
158
+ /**
159
+ * segment bar HTML 생성
160
+ */
161
+ ProgressBar.prototype.renderSegmentBar = function (segments) {
162
+ var fills = [];
163
+ segments.forEach(function (segment, index) {
164
+ var classes = [
165
+ 'ncua-progress-bar__fill',
166
+ index === 0 ? 'ncua-progress-bar__fill--first' : '',
167
+ index === segments.length - 1 ? 'ncua-progress-bar__fill--last' : '',
168
+ getFillColorClass(segment.color),
169
+ ]
170
+ .filter(Boolean)
171
+ .join(' ');
172
+ fills.push("<div class=\"".concat(classes, "\" style=\"width: ").concat(segment.width, "%;\"></div>"));
173
+ });
174
+ return fills.join('');
175
+ };
176
+ /**
177
+ * HTML 문자열 생성
178
+ */
179
+ ProgressBar.prototype.toHTML = function () {
180
+ var _a, _b;
181
+ var _c = this.processSegments(), totalValue = _c.totalValue, displayValue = _c.displayValue, processedSegments = _c.processedSegments, effectiveLabel = _c.effectiveLabel, progressValueStyle = _c.progressValueStyle;
182
+ var hasSegments = Boolean(this.options.segments && this.options.segments.length > 0);
183
+ var segmentCount = (_b = (_a = this.options.segments) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
184
+ var isFloatingLabel = effectiveLabel === 'top-float' || effectiveLabel === 'bottom-float';
185
+ // 스타일 문자열 생성
186
+ var styleString = progressValueStyle
187
+ ? "style=\"".concat(Object.entries(progressValueStyle)
188
+ .map(function (_a) {
189
+ var key = _a[0], value = _a[1];
190
+ return "".concat(key.replace(/([A-Z])/g, '-$1').toLowerCase(), ": ").concat(value);
191
+ })
192
+ .join('; '), "\"")
193
+ : '';
194
+ // segment가 1개이거나 value만 있을 때는 동일하게 처리 (단일 progress bar)
195
+ var isSingleBar = segmentCount < 2; // segment가 0개 또는 1개일 때
196
+ if (isSingleBar) {
197
+ var fillColorClass = hasSegments && segmentCount === 1 ? getFillColorClass(processedSegments[0].color) : '';
198
+ var floatingLabel_1 = isFloatingLabel ? this.renderSingleLabel(effectiveLabel, displayValue, totalValue) : '';
199
+ var rightLabel_1 = effectiveLabel === 'right' ? this.renderSingleLabel('right', displayValue, totalValue) : '';
200
+ var bottomLabel_1 = effectiveLabel === 'bottom' ? this.renderSingleLabel('bottom', displayValue, totalValue) : '';
201
+ // 단일 progress bar일 때는 text-align: left를 위한 클래스 추가
202
+ var singleSegmentClass = 'ncua-progress-bar--single-segment';
203
+ return "<div class=\"ncua-progress-bar ncua-progress-bar-".concat(effectiveLabel || '', " ").concat(singleSegmentClass, "\" ").concat(styleString, ">\n ").concat(floatingLabel_1, "\n <div class=\"ncua-progress-bar__content\">\n <div class=\"ncua-progress-bar__bar\">\n <div class=\"ncua-progress-bar__fill ").concat(fillColorClass, "\" style=\"width: ").concat(totalValue, "%;\" aria-valuenow=\"").concat(totalValue, "\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n </div>\n ").concat(rightLabel_1, "\n </div>\n ").concat(bottomLabel_1, "\n</div>");
204
+ }
205
+ // 일반 케이스
206
+ var floatingLabel = isFloatingLabel ? this.renderSingleLabel(effectiveLabel, displayValue, totalValue) : '';
207
+ var rightLabel = effectiveLabel === 'right' ? this.renderSingleLabel('right', displayValue, totalValue) : '';
208
+ var bottomLabel = effectiveLabel === 'bottom' ? this.renderSingleLabel('bottom', displayValue, totalValue) : '';
209
+ var segmentLabels = hasSegments && segmentCount >= 2 ? this.renderSegmentLabels(processedSegments, segmentCount) : '';
210
+ var segmentBar = hasSegments
211
+ ? this.renderSegmentBar(processedSegments)
212
+ : "<div class=\"ncua-progress-bar__fill\" style=\"width: ".concat(totalValue, "%;\" aria-valuenow=\"").concat(totalValue, "\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>");
213
+ var segmentsClass = hasSegments ? 'ncua-progress-bar__bar--segments' : '';
214
+ return "<div class=\"ncua-progress-bar ncua-progress-bar-".concat(effectiveLabel || '', "\" ").concat(styleString, ">\n ").concat(floatingLabel, "\n <div class=\"ncua-progress-bar__content\">\n <div class=\"ncua-progress-bar__bar ").concat(segmentsClass, "\">\n ").concat(segmentBar, "\n </div>\n ").concat(rightLabel, "\n </div>\n ").concat(hasSegments && segmentCount >= 2 ? segmentLabels : bottomLabel, "\n</div>");
215
+ };
216
+ /**
217
+ * DOM 요소 생성
218
+ */
219
+ ProgressBar.prototype.toElement = function () {
220
+ var div = document.createElement('div');
221
+ div.innerHTML = this.toHTML();
222
+ this.element = div.firstElementChild;
223
+ return this.element;
224
+ };
225
+ /**
226
+ * 요소 반환
227
+ */
228
+ ProgressBar.prototype.getElement = function () {
229
+ return this.toElement();
230
+ };
231
+ /**
232
+ * 옵션 업데이트
233
+ */
234
+ ProgressBar.prototype.updateOptions = function (newOptions) {
235
+ this.options = __assign(__assign({}, this.options), newOptions);
236
+ if (this.element) {
237
+ var newElement = this.toElement();
238
+ if (this.element.parentNode) {
239
+ this.element.parentNode.replaceChild(newElement, this.element);
240
+ }
241
+ this.element = newElement;
242
+ }
243
+ };
244
+ /**
245
+ * Static factory method
246
+ */
247
+ ProgressBar.create = function (options) {
248
+ return new ProgressBar(options);
249
+ };
250
+ /**
251
+ * Static method: HTML 문자열 생성
252
+ */
253
+ ProgressBar.toHTML = function (options) {
254
+ return new ProgressBar(options).toHTML();
255
+ };
256
+ return ProgressBar;
257
+ }());
258
+ export { ProgressBar };
@@ -0,0 +1 @@
1
+ export { ProgressBar, type ProgressBarOptions, type ProgressLabel, type ProgressSegment } from './ProgressBar';
@@ -0,0 +1 @@
1
+ export { ProgressBar } from './ProgressBar';