@ncds/ui-admin 1.6.4-alpha.1 → 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 (868) hide show
  1. package/dist/cjs/assets/scripts/baseBox.js +148 -0
  2. package/dist/cjs/assets/scripts/comboBox.js +188 -0
  3. package/dist/cjs/assets/scripts/datePicker.js +706 -0
  4. package/dist/cjs/assets/scripts/featuredIcon.js +95 -0
  5. package/dist/cjs/assets/scripts/fileInput/const/classNames.js +31 -0
  6. package/dist/cjs/assets/scripts/fileInput/const/index.js +27 -0
  7. package/dist/cjs/assets/scripts/fileInput/const/types.js +13 -0
  8. package/dist/cjs/assets/scripts/fileInput/fileInput.js +79 -0
  9. package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +61 -0
  10. package/dist/cjs/assets/scripts/fileInput/fileInputView.js +147 -0
  11. package/dist/cjs/assets/scripts/fileInput/index.js +44 -0
  12. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +187 -0
  13. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +255 -0
  14. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +354 -0
  15. package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +41 -0
  16. package/dist/cjs/assets/scripts/imageFileInput/const/index.js +27 -0
  17. package/dist/cjs/assets/scripts/imageFileInput/const/types.js +13 -0
  18. package/dist/cjs/assets/scripts/imageFileInput/index.js +44 -0
  19. package/dist/cjs/assets/scripts/index.js +30 -0
  20. package/dist/cjs/assets/scripts/modal/Modal.js +116 -0
  21. package/dist/cjs/assets/scripts/modal/ModalActions.js +128 -0
  22. package/dist/cjs/assets/scripts/modal/ModalContent.js +46 -0
  23. package/dist/cjs/assets/scripts/modal/ModalHeader.js +115 -0
  24. package/dist/cjs/assets/scripts/modal/const/classNames.js +41 -0
  25. package/dist/cjs/assets/scripts/modal/const/index.js +27 -0
  26. package/dist/cjs/assets/scripts/modal/const/types.js +5 -0
  27. package/dist/cjs/assets/scripts/modal/index.js +61 -0
  28. package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +35 -0
  29. package/dist/cjs/assets/scripts/notification/FloatingNotification.js +180 -0
  30. package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +120 -0
  31. package/dist/cjs/assets/scripts/notification/MessageNotification.js +146 -0
  32. package/dist/cjs/assets/scripts/notification/Notification.js +116 -0
  33. package/dist/cjs/assets/scripts/notification/const/classNames.js +50 -0
  34. package/dist/cjs/assets/scripts/notification/const/icons.js +45 -0
  35. package/dist/cjs/assets/scripts/notification/const/index.js +87 -0
  36. package/dist/cjs/assets/scripts/notification/const/sizes.js +54 -0
  37. package/dist/cjs/assets/scripts/notification/const/types.js +14 -0
  38. package/dist/cjs/assets/scripts/notification/index.js +92 -0
  39. package/dist/cjs/assets/scripts/notification/utils.js +92 -0
  40. package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +272 -0
  41. package/dist/cjs/assets/scripts/progress-bar/index.js +12 -0
  42. package/dist/cjs/assets/scripts/selectBox.js +229 -0
  43. package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +46 -0
  44. package/dist/cjs/assets/scripts/tab.js +40 -0
  45. package/dist/cjs/assets/scripts/tag/Tag.js +268 -0
  46. package/dist/cjs/assets/scripts/tag/const/classNames.js +24 -0
  47. package/dist/cjs/assets/scripts/tag/const/index.js +38 -0
  48. package/dist/cjs/assets/scripts/tag/const/sizes.js +13 -0
  49. package/dist/cjs/assets/scripts/tag/const/types.js +5 -0
  50. package/dist/cjs/assets/scripts/tag/index.js +44 -0
  51. package/dist/cjs/assets/scripts/tooltip/Tooltip.js +380 -0
  52. package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +84 -0
  53. package/dist/cjs/assets/scripts/tooltip/const/classNames.js +29 -0
  54. package/dist/cjs/assets/scripts/tooltip/const/constants.js +56 -0
  55. package/dist/cjs/assets/scripts/tooltip/const/icons.js +15 -0
  56. package/dist/cjs/assets/scripts/tooltip/const/index.js +123 -0
  57. package/dist/cjs/assets/scripts/tooltip/const/templates.js +49 -0
  58. package/dist/cjs/assets/scripts/tooltip/const/types.js +5 -0
  59. package/dist/cjs/assets/scripts/tooltip/index.js +57 -0
  60. package/dist/cjs/assets/scripts/tooltip/utils.js +41 -0
  61. package/dist/cjs/assets/scripts/utils/debounce.js +33 -0
  62. package/dist/cjs/assets/scripts/utils/unifiedBox/domRenderer.js +384 -0
  63. package/dist/cjs/assets/scripts/utils/unifiedBox/dropdownModel.js +326 -0
  64. package/dist/cjs/assets/scripts/utils/unifiedBox/unifiedBoxController.js +649 -0
  65. package/dist/cjs/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +669 -0
  66. package/dist/cjs/src/components/badge/Badge.js +1 -1
  67. package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +1 -1
  68. package/dist/cjs/src/components/button/Button.js +13 -5
  69. package/dist/cjs/src/components/button/ButtonGroup.js +4 -4
  70. package/dist/cjs/src/components/carousel/CarouselArrow.js +2 -2
  71. package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +4 -5
  72. package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
  73. package/dist/cjs/src/components/combobox/ComboBox.js +54 -43
  74. package/dist/cjs/src/components/date-picker/CustomInput.js +3 -1
  75. package/dist/cjs/src/components/date-picker/DatePicker.js +85 -65
  76. package/dist/cjs/src/components/date-picker/RangeDatePicker.js +46 -37
  77. package/dist/cjs/src/components/divider/Divider.js +1 -1
  78. package/dist/cjs/src/components/dot/Dot.js +1 -1
  79. package/dist/cjs/src/components/dropdown/Dropdown.js +3 -2
  80. package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +1 -1
  81. package/dist/cjs/src/components/file-input/FileInput.js +3 -3
  82. package/dist/cjs/src/components/image-file-input/ImageFileInput.js +5 -2
  83. package/dist/cjs/src/components/input/InputBase.js +3 -2
  84. package/dist/cjs/src/components/input/NumberInput.js +1 -1
  85. package/dist/cjs/src/components/notification/index.js +11 -11
  86. package/dist/cjs/src/components/pagination/NavButton.js +3 -1
  87. package/dist/cjs/src/components/pagination/Pagination.js +65 -67
  88. package/dist/cjs/src/components/progress-bar/ProgressBar.js +13 -9
  89. package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +1 -1
  90. package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +1 -1
  91. package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  92. package/dist/cjs/src/components/progress-bar/utils.js +3 -2
  93. package/dist/cjs/src/components/progress-circle/ProgressCircle.js +41 -41
  94. package/dist/cjs/src/components/select/Select.js +2 -2
  95. package/dist/cjs/src/components/selectbox/SelectBox.js +57 -45
  96. package/dist/cjs/src/components/spinner/Spinner.js +5 -4
  97. package/dist/cjs/src/components/spinner/index.js +0 -11
  98. package/dist/cjs/src/components/switch/Switch.js +15 -10
  99. package/dist/cjs/src/components/tab/HorizontalTab.js +8 -5
  100. package/dist/cjs/src/components/tab/TabButton.js +1 -1
  101. package/dist/cjs/src/components/toggle/Toggle.js +13 -15
  102. package/dist/cjs/src/components/tooltip/Tooltip.js +28 -13
  103. package/dist/cjs/src/constant/index.js +8 -8
  104. package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  105. package/dist/cjs/src/hooks/dropdown/useScrollLock.js +26 -19
  106. package/dist/cjs/src/hooks/index.js +4 -4
  107. package/dist/cjs/src/utils/date-picker.js +14 -7
  108. package/dist/cjs/src/utils/dropdown/dropdownUtils.js +6 -8
  109. package/dist/esm/assets/scripts/baseBox.js +143 -0
  110. package/dist/esm/assets/scripts/comboBox.js +183 -0
  111. package/dist/esm/assets/scripts/datePicker.js +699 -0
  112. package/dist/esm/assets/scripts/featuredIcon.js +90 -0
  113. package/dist/esm/assets/scripts/fileInput/const/classNames.js +22 -0
  114. package/dist/esm/assets/scripts/fileInput/const/index.js +2 -0
  115. package/dist/esm/assets/scripts/fileInput/const/types.js +7 -0
  116. package/dist/esm/assets/scripts/fileInput/fileInput.js +74 -0
  117. package/dist/esm/assets/scripts/fileInput/fileInputModel.js +56 -0
  118. package/dist/esm/assets/scripts/fileInput/fileInputView.js +142 -0
  119. package/dist/esm/assets/scripts/fileInput/index.js +9 -0
  120. package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +182 -0
  121. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +250 -0
  122. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +349 -0
  123. package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +30 -0
  124. package/dist/esm/assets/scripts/imageFileInput/const/index.js +2 -0
  125. package/dist/esm/assets/scripts/imageFileInput/const/types.js +7 -0
  126. package/dist/esm/assets/scripts/imageFileInput/index.js +9 -0
  127. package/dist/esm/assets/scripts/index.js +28 -0
  128. package/dist/esm/assets/scripts/modal/Modal.js +110 -0
  129. package/dist/esm/assets/scripts/modal/ModalActions.js +123 -0
  130. package/dist/esm/assets/scripts/modal/ModalContent.js +41 -0
  131. package/dist/esm/assets/scripts/modal/ModalHeader.js +110 -0
  132. package/dist/esm/assets/scripts/modal/const/classNames.js +31 -0
  133. package/dist/esm/assets/scripts/modal/const/index.js +2 -0
  134. package/dist/esm/assets/scripts/modal/const/types.js +1 -0
  135. package/dist/esm/assets/scripts/modal/index.js +15 -0
  136. package/dist/esm/assets/scripts/modal/utils/contentUtils.js +28 -0
  137. package/dist/esm/assets/scripts/notification/FloatingNotification.js +176 -0
  138. package/dist/esm/assets/scripts/notification/FullWidthNotification.js +115 -0
  139. package/dist/esm/assets/scripts/notification/MessageNotification.js +141 -0
  140. package/dist/esm/assets/scripts/notification/Notification.js +111 -0
  141. package/dist/esm/assets/scripts/notification/const/classNames.js +44 -0
  142. package/dist/esm/assets/scripts/notification/const/icons.js +39 -0
  143. package/dist/esm/assets/scripts/notification/const/index.js +4 -0
  144. package/dist/esm/assets/scripts/notification/const/sizes.js +48 -0
  145. package/dist/esm/assets/scripts/notification/const/types.js +8 -0
  146. package/dist/esm/assets/scripts/notification/index.js +11 -0
  147. package/dist/esm/assets/scripts/notification/utils.js +79 -0
  148. package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +267 -0
  149. package/dist/esm/assets/scripts/progress-bar/index.js +1 -0
  150. package/dist/esm/assets/scripts/selectBox.js +224 -0
  151. package/dist/esm/assets/scripts/shared/ButtonCloseX.js +38 -0
  152. package/dist/esm/assets/scripts/tab.js +35 -0
  153. package/dist/esm/assets/scripts/tag/Tag.js +263 -0
  154. package/dist/esm/assets/scripts/tag/const/classNames.js +16 -0
  155. package/dist/esm/assets/scripts/tag/const/index.js +3 -0
  156. package/dist/esm/assets/scripts/tag/const/sizes.js +7 -0
  157. package/dist/esm/assets/scripts/tag/const/types.js +1 -0
  158. package/dist/esm/assets/scripts/tag/index.js +9 -0
  159. package/dist/esm/assets/scripts/tooltip/Tooltip.js +375 -0
  160. package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +79 -0
  161. package/dist/esm/assets/scripts/tooltip/const/classNames.js +23 -0
  162. package/dist/esm/assets/scripts/tooltip/const/constants.js +50 -0
  163. package/dist/esm/assets/scripts/tooltip/const/icons.js +9 -0
  164. package/dist/esm/assets/scripts/tooltip/const/index.js +4 -0
  165. package/dist/esm/assets/scripts/tooltip/const/templates.js +42 -0
  166. package/dist/esm/assets/scripts/tooltip/const/types.js +1 -0
  167. package/dist/esm/assets/scripts/tooltip/index.js +10 -0
  168. package/dist/esm/assets/scripts/tooltip/utils.js +35 -0
  169. package/dist/esm/assets/scripts/utils/debounce.js +27 -0
  170. package/dist/esm/assets/scripts/utils/unifiedBox/domRenderer.js +379 -0
  171. package/dist/esm/assets/scripts/utils/unifiedBox/dropdownModel.js +320 -0
  172. package/dist/esm/assets/scripts/utils/unifiedBox/unifiedBoxController.js +644 -0
  173. package/dist/esm/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +664 -0
  174. package/dist/esm/src/components/badge/Badge.js +4 -3
  175. package/dist/esm/src/components/badge/BadgeGroup.js +3 -2
  176. package/dist/esm/src/components/badge/utils.js +3 -2
  177. package/dist/esm/src/components/breadcrumb/BreadCrumb.js +4 -3
  178. package/dist/esm/src/components/button/Button.js +13 -5
  179. package/dist/esm/src/components/button/ButtonCloseX.js +3 -2
  180. package/dist/esm/src/components/button/ButtonGroup.js +6 -4
  181. package/dist/esm/src/components/carousel/CarouselArrow.js +2 -2
  182. package/dist/esm/src/components/carousel/CarouselNumberGroup.js +4 -5
  183. package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
  184. package/dist/esm/src/components/combobox/ComboBox.js +58 -46
  185. package/dist/esm/src/components/date-picker/CustomInput.js +6 -3
  186. package/dist/esm/src/components/date-picker/DatePicker.js +88 -67
  187. package/dist/esm/src/components/date-picker/RangeDatePicker.js +49 -39
  188. package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +3 -2
  189. package/dist/esm/src/components/divider/Divider.js +1 -1
  190. package/dist/esm/src/components/dot/Dot.js +4 -3
  191. package/dist/esm/src/components/dropdown/Dropdown.js +3 -2
  192. package/dist/esm/src/components/empty-state/EmptyState.js +3 -2
  193. package/dist/esm/src/components/featured-icon/FeaturedIcon.js +4 -3
  194. package/dist/esm/src/components/file-input/FileInput.js +3 -3
  195. package/dist/esm/src/components/image-file-input/ImageFileInput.js +6 -3
  196. package/dist/esm/src/components/input/InputBase.js +6 -4
  197. package/dist/esm/src/components/input/NumberInput.js +1 -1
  198. package/dist/esm/src/components/modal/Modal.js +3 -2
  199. package/dist/esm/src/components/notification/FloatingNotification.js +3 -2
  200. package/dist/esm/src/components/notification/FullWidthNotification.js +3 -2
  201. package/dist/esm/src/components/notification/MessageNotification.js +3 -2
  202. package/dist/esm/src/components/notification/Notification.js +3 -2
  203. package/dist/esm/src/components/notification/index.js +2 -2
  204. package/dist/esm/src/components/pagination/NavButton.js +3 -1
  205. package/dist/esm/src/components/pagination/Pagination.js +65 -67
  206. package/dist/esm/src/components/progress-bar/ProgressBar.js +13 -9
  207. package/dist/esm/src/components/progress-bar/components/SegmentBar.js +1 -1
  208. package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +5 -4
  209. package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +3 -2
  210. package/dist/esm/src/components/progress-bar/utils.js +7 -5
  211. package/dist/esm/src/components/progress-circle/ProgressCircle.js +41 -41
  212. package/dist/esm/src/components/select/Select.js +2 -2
  213. package/dist/esm/src/components/select-dropdown/SelectDropdown.js +3 -2
  214. package/dist/esm/src/components/selectbox/SelectBox.js +61 -48
  215. package/dist/esm/src/components/spinner/Spinner.js +5 -4
  216. package/dist/esm/src/components/spinner/index.js +1 -2
  217. package/dist/esm/src/components/switch/Switch.js +19 -13
  218. package/dist/esm/src/components/tab/HorizontalTab.js +12 -8
  219. package/dist/esm/src/components/tab/TabButton.js +4 -3
  220. package/dist/esm/src/components/tag/Tag.js +3 -2
  221. package/dist/esm/src/components/toggle/Toggle.js +14 -16
  222. package/dist/esm/src/components/tooltip/Tooltip.js +29 -14
  223. package/dist/esm/src/constant/index.js +2 -2
  224. package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
  225. package/dist/esm/src/hooks/dropdown/useScrollLock.js +26 -19
  226. package/dist/esm/src/hooks/index.js +3 -3
  227. package/dist/esm/src/utils/date-picker.js +14 -7
  228. package/dist/esm/src/utils/dropdown/dropdownUtils.js +6 -8
  229. package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
  230. package/dist/temp/assets/scripts/baseBox.js +144 -0
  231. package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
  232. package/dist/temp/assets/scripts/comboBox.js +163 -0
  233. package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
  234. package/dist/temp/assets/scripts/datePicker.js +706 -0
  235. package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
  236. package/dist/temp/assets/scripts/featuredIcon.js +86 -0
  237. package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
  238. package/dist/temp/assets/scripts/fileInput/const/classNames.js +20 -0
  239. package/dist/temp/assets/scripts/fileInput/const/index.d.ts +2 -0
  240. package/dist/temp/assets/scripts/fileInput/const/index.js +2 -0
  241. package/dist/temp/assets/scripts/fileInput/const/types.d.ts +88 -0
  242. package/dist/temp/assets/scripts/fileInput/const/types.js +7 -0
  243. package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +13 -0
  244. package/dist/temp/assets/scripts/fileInput/fileInput.js +75 -0
  245. package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  246. package/dist/temp/assets/scripts/fileInput/fileInputModel.js +45 -0
  247. package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  248. package/dist/temp/assets/scripts/fileInput/fileInputView.js +142 -0
  249. package/dist/temp/assets/scripts/fileInput/index.d.ts +3 -0
  250. package/dist/temp/assets/scripts/fileInput/index.js +9 -0
  251. package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.d.ts +63 -0
  252. package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +186 -0
  253. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +73 -0
  254. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +234 -0
  255. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts +79 -0
  256. package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +348 -0
  257. package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
  258. package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +24 -0
  259. package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +2 -0
  260. package/dist/temp/assets/scripts/imageFileInput/const/index.js +2 -0
  261. package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +125 -0
  262. package/dist/temp/assets/scripts/imageFileInput/const/types.js +7 -0
  263. package/dist/temp/assets/scripts/imageFileInput/index.d.ts +3 -0
  264. package/dist/temp/assets/scripts/imageFileInput/index.js +9 -0
  265. package/dist/temp/assets/scripts/index.d.ts +32 -0
  266. package/dist/temp/assets/scripts/index.js +28 -0
  267. package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
  268. package/dist/temp/assets/scripts/modal/Modal.js +106 -0
  269. package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
  270. package/dist/temp/assets/scripts/modal/ModalActions.js +125 -0
  271. package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
  272. package/dist/temp/assets/scripts/modal/ModalContent.js +41 -0
  273. package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
  274. package/dist/temp/assets/scripts/modal/ModalHeader.js +102 -0
  275. package/dist/temp/assets/scripts/modal/const/classNames.d.ts +22 -0
  276. package/dist/temp/assets/scripts/modal/const/classNames.js +23 -0
  277. package/dist/temp/assets/scripts/modal/const/index.d.ts +2 -0
  278. package/dist/temp/assets/scripts/modal/const/index.js +2 -0
  279. package/dist/temp/assets/scripts/modal/const/types.d.ts +61 -0
  280. package/dist/temp/assets/scripts/modal/index.d.ts +7 -0
  281. package/dist/temp/assets/scripts/modal/index.js +15 -0
  282. package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
  283. package/dist/temp/assets/scripts/modal/utils/contentUtils.js +29 -0
  284. package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +24 -0
  285. package/dist/temp/assets/scripts/notification/FloatingNotification.js +154 -0
  286. package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
  287. package/dist/temp/assets/scripts/notification/FullWidthNotification.js +94 -0
  288. package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
  289. package/dist/temp/assets/scripts/notification/MessageNotification.js +123 -0
  290. package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
  291. package/dist/temp/assets/scripts/notification/Notification.js +108 -0
  292. package/dist/temp/assets/scripts/notification/const/classNames.d.ts +43 -0
  293. package/dist/temp/assets/scripts/notification/const/classNames.js +44 -0
  294. package/dist/temp/assets/scripts/notification/const/icons.d.ts +25 -0
  295. package/dist/temp/assets/scripts/notification/const/icons.js +39 -0
  296. package/dist/temp/assets/scripts/notification/const/index.d.ts +5 -0
  297. package/dist/temp/assets/scripts/notification/const/index.js +4 -0
  298. package/dist/temp/assets/scripts/notification/const/sizes.d.ts +32 -0
  299. package/dist/temp/assets/scripts/notification/const/sizes.js +40 -0
  300. package/dist/temp/assets/scripts/notification/const/types.d.ts +19 -0
  301. package/dist/temp/assets/scripts/notification/const/types.js +8 -0
  302. package/dist/temp/assets/scripts/notification/index.d.ts +7 -0
  303. package/dist/temp/assets/scripts/notification/index.js +11 -0
  304. package/dist/temp/assets/scripts/notification/utils.d.ts +8 -0
  305. package/dist/temp/assets/scripts/notification/utils.js +84 -0
  306. package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
  307. package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +258 -0
  308. package/dist/temp/assets/scripts/progress-bar/index.d.ts +1 -0
  309. package/dist/temp/assets/scripts/progress-bar/index.js +1 -0
  310. package/dist/temp/assets/scripts/selectBox.d.ts +50 -0
  311. package/dist/temp/assets/scripts/selectBox.js +194 -0
  312. package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
  313. package/dist/temp/assets/scripts/shared/ButtonCloseX.js +32 -0
  314. package/dist/temp/assets/scripts/slider.d.ts +41 -0
  315. package/dist/temp/assets/scripts/slider.js +331 -0
  316. package/dist/temp/assets/scripts/tab.d.ts +7 -0
  317. package/dist/temp/assets/scripts/tab.js +35 -0
  318. package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
  319. package/dist/temp/assets/scripts/tag/Tag.js +267 -0
  320. package/dist/temp/assets/scripts/tag/const/classNames.d.ts +11 -0
  321. package/dist/temp/assets/scripts/tag/const/classNames.js +12 -0
  322. package/dist/temp/assets/scripts/tag/const/index.d.ts +3 -0
  323. package/dist/temp/assets/scripts/tag/const/index.js +3 -0
  324. package/dist/temp/assets/scripts/tag/const/sizes.d.ts +7 -0
  325. package/dist/temp/assets/scripts/tag/const/sizes.js +7 -0
  326. package/dist/temp/assets/scripts/tag/const/types.d.ts +33 -0
  327. package/dist/temp/assets/scripts/tag/const/types.js +1 -0
  328. package/dist/temp/assets/scripts/tag/index.d.ts +3 -0
  329. package/dist/temp/assets/scripts/tag/index.js +9 -0
  330. package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +54 -0
  331. package/dist/temp/assets/scripts/tooltip/Tooltip.js +360 -0
  332. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
  333. package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +74 -0
  334. package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  335. package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
  336. package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
  337. package/dist/temp/assets/scripts/tooltip/const/constants.js +46 -0
  338. package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
  339. package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
  340. package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
  341. package/dist/temp/assets/scripts/tooltip/const/index.js +4 -0
  342. package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
  343. package/dist/temp/assets/scripts/tooltip/const/templates.js +30 -0
  344. package/dist/temp/assets/scripts/tooltip/const/types.d.ts +14 -0
  345. package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
  346. package/dist/temp/assets/scripts/tooltip/index.d.ts +6 -0
  347. package/dist/temp/assets/scripts/tooltip/index.js +10 -0
  348. package/dist/temp/assets/scripts/tooltip/utils.d.ts +2 -0
  349. package/dist/temp/assets/scripts/tooltip/utils.js +35 -0
  350. package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
  351. package/dist/temp/assets/scripts/utils/debounce.js +27 -0
  352. package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
  353. package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +376 -0
  354. package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
  355. package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +311 -0
  356. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
  357. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +627 -0
  358. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
  359. package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +559 -0
  360. package/dist/temp/constant/color.d.ts +36 -0
  361. package/dist/temp/constant/color.js +34 -0
  362. package/dist/temp/constant/size.d.ts +1 -0
  363. package/dist/temp/constant/size.js +1 -0
  364. package/dist/temp/index.d.ts +29 -0
  365. package/dist/temp/index.js +29 -0
  366. package/dist/temp/src/components/badge/Badge.d.ts +18 -0
  367. package/dist/temp/src/components/badge/Badge.js +23 -0
  368. package/dist/temp/src/components/badge/BadgeGroup.d.ts +18 -0
  369. package/dist/temp/src/components/badge/BadgeGroup.js +36 -0
  370. package/dist/temp/src/components/badge/index.d.ts +2 -0
  371. package/dist/temp/src/components/badge/index.js +2 -0
  372. package/dist/temp/src/components/badge/utils.d.ts +8 -0
  373. package/dist/temp/src/components/badge/utils.js +17 -0
  374. package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts +11 -0
  375. package/dist/temp/src/components/breadcrumb/BreadCrumb.js +33 -0
  376. package/dist/temp/src/components/breadcrumb/index.d.ts +1 -0
  377. package/dist/temp/src/components/breadcrumb/index.js +1 -0
  378. package/dist/temp/src/components/button/Button.d.ts +35 -0
  379. package/dist/temp/src/components/button/Button.js +69 -0
  380. package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
  381. package/dist/temp/src/components/button/ButtonCloseX.js +25 -0
  382. package/dist/temp/src/components/button/ButtonGroup.d.ts +311 -0
  383. package/dist/temp/src/components/button/ButtonGroup.js +72 -0
  384. package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
  385. package/dist/temp/src/components/button/ButtonStepper.js +6 -0
  386. package/dist/temp/src/components/button/index.d.ts +4 -0
  387. package/dist/temp/src/components/button/index.js +4 -0
  388. package/dist/temp/src/components/carousel/CarouselArrow.d.ts +8 -0
  389. package/dist/temp/src/components/carousel/CarouselArrow.js +24 -0
  390. package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts +8 -0
  391. package/dist/temp/src/components/carousel/CarouselNumberGroup.js +24 -0
  392. package/dist/temp/src/components/carousel/index.d.ts +2 -0
  393. package/dist/temp/src/components/carousel/index.js +2 -0
  394. package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
  395. package/dist/temp/src/components/checkbox/Checkbox.js +30 -0
  396. package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
  397. package/dist/temp/src/components/checkbox/CheckboxInput.js +46 -0
  398. package/dist/temp/src/components/checkbox/index.d.ts +2 -0
  399. package/dist/temp/src/components/checkbox/index.js +2 -0
  400. package/dist/temp/src/components/combobox/ComboBox.d.ts +28 -0
  401. package/dist/temp/src/components/combobox/ComboBox.js +199 -0
  402. package/dist/temp/src/components/combobox/index.d.ts +2 -0
  403. package/dist/temp/src/components/combobox/index.js +1 -0
  404. package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
  405. package/dist/temp/src/components/date-picker/CustomInput.js +34 -0
  406. package/dist/temp/src/components/date-picker/DatePicker.d.ts +24 -0
  407. package/dist/temp/src/components/date-picker/DatePicker.js +326 -0
  408. package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts +26 -0
  409. package/dist/temp/src/components/date-picker/RangeDatePicker.js +117 -0
  410. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts +71 -0
  411. package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +55 -0
  412. package/dist/temp/src/components/date-picker/index.d.ts +4 -0
  413. package/dist/temp/src/components/date-picker/index.js +4 -0
  414. package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
  415. package/dist/temp/src/components/date-picker/utils.js +8 -0
  416. package/dist/temp/src/components/divider/Divider.d.ts +15 -0
  417. package/dist/temp/src/components/divider/Divider.js +23 -0
  418. package/dist/temp/src/components/divider/index.d.ts +1 -0
  419. package/dist/temp/src/components/divider/index.js +1 -0
  420. package/dist/temp/src/components/dot/Dot.d.ts +24 -0
  421. package/dist/temp/src/components/dot/Dot.js +31 -0
  422. package/dist/temp/src/components/dot/index.d.ts +1 -0
  423. package/dist/temp/src/components/dot/index.js +1 -0
  424. package/dist/temp/src/components/dropdown/Dropdown.d.ts +52 -0
  425. package/dist/temp/src/components/dropdown/Dropdown.js +90 -0
  426. package/dist/temp/src/components/dropdown/index.d.ts +1 -0
  427. package/dist/temp/src/components/dropdown/index.js +1 -0
  428. package/dist/temp/src/components/empty-state/EmptyState.d.ts +14 -0
  429. package/dist/temp/src/components/empty-state/EmptyState.js +33 -0
  430. package/dist/temp/src/components/empty-state/index.d.ts +1 -0
  431. package/dist/temp/src/components/empty-state/index.js +1 -0
  432. package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts +15 -0
  433. package/dist/temp/src/components/featured-icon/FeaturedIcon.js +36 -0
  434. package/dist/temp/src/components/featured-icon/index.d.ts +1 -0
  435. package/dist/temp/src/components/featured-icon/index.js +1 -0
  436. package/dist/temp/src/components/file-input/FileInput.d.ts +61 -0
  437. package/dist/temp/src/components/file-input/FileInput.js +123 -0
  438. package/dist/temp/src/components/file-input/index.d.ts +1 -0
  439. package/dist/temp/src/components/file-input/index.js +1 -0
  440. package/dist/temp/src/components/image-file-input/ImageFileInput.d.ts +70 -0
  441. package/dist/temp/src/components/image-file-input/ImageFileInput.js +124 -0
  442. package/dist/temp/src/components/image-file-input/components/ImagePreview.d.ts +5 -0
  443. package/dist/temp/src/components/image-file-input/components/ImagePreview.js +18 -0
  444. package/dist/temp/src/components/image-file-input/index.d.ts +1 -0
  445. package/dist/temp/src/components/image-file-input/index.js +1 -0
  446. package/dist/temp/src/components/index.d.ts +33 -0
  447. package/dist/temp/src/components/index.js +32 -0
  448. package/dist/temp/src/components/input/InputBase.d.ts +54 -0
  449. package/dist/temp/src/components/input/InputBase.js +121 -0
  450. package/dist/temp/src/components/input/NumberInput.d.ts +9 -0
  451. package/dist/temp/src/components/input/NumberInput.js +93 -0
  452. package/dist/temp/src/components/input/PasswordInput.d.ts +2 -0
  453. package/dist/temp/src/components/input/PasswordInput.js +51 -0
  454. package/dist/temp/src/components/input/Textarea.d.ts +14 -0
  455. package/dist/temp/src/components/input/Textarea.js +60 -0
  456. package/dist/temp/src/components/input/index.d.ts +4 -0
  457. package/dist/temp/src/components/input/index.js +4 -0
  458. package/dist/temp/src/components/modal/Modal.d.ts +79 -0
  459. package/dist/temp/src/components/modal/Modal.js +101 -0
  460. package/dist/temp/src/components/modal/index.d.ts +1 -0
  461. package/dist/temp/src/components/modal/index.js +1 -0
  462. package/dist/temp/src/components/notification/FloatingNotification.d.ts +37 -0
  463. package/dist/temp/src/components/notification/FloatingNotification.js +79 -0
  464. package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
  465. package/dist/temp/src/components/notification/FullWidthNotification.js +79 -0
  466. package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
  467. package/dist/temp/src/components/notification/MessageNotification.js +57 -0
  468. package/dist/temp/src/components/notification/Notification.d.ts +72 -0
  469. package/dist/temp/src/components/notification/Notification.js +42 -0
  470. package/dist/temp/src/components/notification/index.d.ts +4 -0
  471. package/dist/temp/src/components/notification/index.js +4 -0
  472. package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
  473. package/dist/temp/src/components/pagination/NavButton.js +66 -0
  474. package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
  475. package/dist/temp/src/components/pagination/Pagination.js +93 -0
  476. package/dist/temp/src/components/pagination/index.d.ts +2 -0
  477. package/dist/temp/src/components/pagination/index.js +2 -0
  478. package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
  479. package/dist/temp/src/components/progress-bar/ProgressBar.js +31 -0
  480. package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
  481. package/dist/temp/src/components/progress-bar/components/SegmentBar.js +10 -0
  482. package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
  483. package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +45 -0
  484. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
  485. package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +96 -0
  486. package/dist/temp/src/components/progress-bar/index.d.ts +2 -0
  487. package/dist/temp/src/components/progress-bar/index.js +2 -0
  488. package/dist/temp/src/components/progress-bar/types.d.ts +15 -0
  489. package/dist/temp/src/components/progress-bar/types.js +1 -0
  490. package/dist/temp/src/components/progress-bar/utils.d.ts +13 -0
  491. package/dist/temp/src/components/progress-bar/utils.js +26 -0
  492. package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts +7 -0
  493. package/dist/temp/src/components/progress-circle/ProgressCircle.js +21 -0
  494. package/dist/temp/src/components/progress-circle/index.d.ts +1 -0
  495. package/dist/temp/src/components/progress-circle/index.js +1 -0
  496. package/dist/temp/src/components/radio/Radio.d.ts +7 -0
  497. package/dist/temp/src/components/radio/Radio.js +30 -0
  498. package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
  499. package/dist/temp/src/components/radio/RadioInput.js +29 -0
  500. package/dist/temp/src/components/radio/index.d.ts +2 -0
  501. package/dist/temp/src/components/radio/index.js +2 -0
  502. package/dist/temp/src/components/select/Select.d.ts +16 -0
  503. package/dist/temp/src/components/select/Select.js +33 -0
  504. package/dist/temp/src/components/select/index.d.ts +1 -0
  505. package/dist/temp/src/components/select/index.js +1 -0
  506. package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +29 -0
  507. package/dist/temp/src/components/select-dropdown/SelectDropdown.js +49 -0
  508. package/dist/temp/src/components/select-dropdown/index.d.ts +1 -0
  509. package/dist/temp/src/components/select-dropdown/index.js +1 -0
  510. package/dist/temp/src/components/selectbox/SelectBox.d.ts +27 -0
  511. package/dist/temp/src/components/selectbox/SelectBox.js +163 -0
  512. package/dist/temp/src/components/selectbox/index.d.ts +1 -0
  513. package/dist/temp/src/components/selectbox/index.js +1 -0
  514. package/dist/temp/src/components/shared/hintText/HintText.d.ts +7 -0
  515. package/dist/temp/src/components/shared/hintText/HintText.js +28 -0
  516. package/dist/temp/src/components/shared/hintText/index.d.ts +1 -0
  517. package/dist/temp/src/components/shared/hintText/index.js +1 -0
  518. package/dist/temp/src/components/shared/index.d.ts +2 -0
  519. package/dist/temp/src/components/shared/index.js +2 -0
  520. package/dist/temp/src/components/shared/label/Label.d.ts +7 -0
  521. package/dist/temp/src/components/shared/label/Label.js +28 -0
  522. package/dist/temp/src/components/shared/label/index.d.ts +1 -0
  523. package/dist/temp/src/components/shared/label/index.js +1 -0
  524. package/dist/temp/src/components/slider/Slider.d.ts +14 -0
  525. package/dist/temp/src/components/slider/Slider.js +44 -0
  526. package/dist/temp/src/components/slider/index.d.ts +1 -0
  527. package/dist/temp/src/components/slider/index.js +1 -0
  528. package/dist/temp/src/components/spinner/Spinner.d.ts +9 -0
  529. package/dist/temp/src/components/spinner/Spinner.js +21 -0
  530. package/dist/temp/src/components/spinner/index.d.ts +1 -0
  531. package/dist/temp/src/components/spinner/index.js +1 -0
  532. package/dist/temp/src/components/switch/Switch.d.ts +22 -0
  533. package/dist/temp/src/components/switch/Switch.js +68 -0
  534. package/dist/temp/src/components/switch/index.d.ts +2 -0
  535. package/dist/temp/src/components/switch/index.js +1 -0
  536. package/dist/temp/src/components/tab/HorizontalTab.d.ts +12 -0
  537. package/dist/temp/src/components/tab/HorizontalTab.js +37 -0
  538. package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
  539. package/dist/temp/src/components/tab/TabButton.js +37 -0
  540. package/dist/temp/src/components/tab/VerticalTab.d.ts +9 -0
  541. package/dist/temp/src/components/tab/VerticalTab.js +32 -0
  542. package/dist/temp/src/components/tab/index.d.ts +3 -0
  543. package/dist/temp/src/components/tab/index.js +3 -0
  544. package/dist/temp/src/components/tag/Tag.d.ts +17 -0
  545. package/dist/temp/src/components/tag/Tag.js +110 -0
  546. package/dist/temp/src/components/tag/index.d.ts +1 -0
  547. package/dist/temp/src/components/tag/index.js +1 -0
  548. package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
  549. package/dist/temp/src/components/toggle/Toggle.js +30 -0
  550. package/dist/temp/src/components/toggle/index.d.ts +1 -0
  551. package/dist/temp/src/components/toggle/index.js +1 -0
  552. package/dist/temp/src/components/tooltip/Tooltip.d.ts +15 -0
  553. package/dist/temp/src/components/tooltip/Tooltip.js +122 -0
  554. package/dist/temp/src/components/tooltip/index.d.ts +1 -0
  555. package/dist/temp/src/components/tooltip/index.js +1 -0
  556. package/dist/temp/src/constant/breakpoint.d.ts +6 -0
  557. package/dist/temp/src/constant/breakpoint.js +6 -0
  558. package/dist/temp/src/constant/date-picker.d.ts +63 -0
  559. package/dist/temp/src/constant/date-picker.js +53 -0
  560. package/dist/temp/src/constant/index.d.ts +2 -0
  561. package/dist/temp/src/constant/index.js +2 -0
  562. package/dist/temp/src/constant/size.d.ts +1 -0
  563. package/dist/temp/src/constant/size.js +1 -0
  564. package/dist/temp/src/hooks/dropdown/index.d.ts +6 -0
  565. package/dist/temp/src/hooks/dropdown/index.js +6 -0
  566. package/dist/temp/src/hooks/dropdown/useDropdown.d.ts +29 -0
  567. package/dist/temp/src/hooks/dropdown/useDropdown.js +84 -0
  568. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.d.ts +10 -0
  569. package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.js +108 -0
  570. package/dist/temp/src/hooks/dropdown/useDropdownPosition.d.ts +9 -0
  571. package/dist/temp/src/hooks/dropdown/useDropdownPosition.js +18 -0
  572. package/dist/temp/src/hooks/dropdown/useOutsideClick.d.ts +5 -0
  573. package/dist/temp/src/hooks/dropdown/useOutsideClick.js +23 -0
  574. package/dist/temp/src/hooks/dropdown/useScrollLock.d.ts +4 -0
  575. package/dist/temp/src/hooks/dropdown/useScrollLock.js +72 -0
  576. package/dist/temp/src/hooks/dropdown/useWindowResize.d.ts +7 -0
  577. package/dist/temp/src/hooks/dropdown/useWindowResize.js +44 -0
  578. package/dist/temp/src/hooks/index.d.ts +4 -0
  579. package/dist/temp/src/hooks/index.js +6 -0
  580. package/dist/temp/src/hooks/useCallbackRef.d.ts +27 -0
  581. package/dist/temp/src/hooks/useCallbackRef.js +44 -0
  582. package/dist/temp/src/hooks/useMediaQuery.d.ts +5 -0
  583. package/dist/temp/src/hooks/useMediaQuery.js +20 -0
  584. package/dist/temp/src/hooks/useMergeRefs.d.ts +20 -0
  585. package/dist/temp/src/hooks/useMergeRefs.js +31 -0
  586. package/dist/temp/src/types/dropdown/dropdown.d.ts +39 -0
  587. package/dist/temp/src/types/dropdown/dropdown.js +1 -0
  588. package/dist/temp/src/types/dropdown/index.d.ts +2 -0
  589. package/dist/temp/src/types/dropdown/index.js +2 -0
  590. package/dist/temp/src/types/dropdown/option.d.ts +23 -0
  591. package/dist/temp/src/types/dropdown/option.js +1 -0
  592. package/dist/temp/src/types/index.d.ts +2 -0
  593. package/dist/temp/src/types/index.js +2 -0
  594. package/dist/temp/src/types/side-slot.d.ts +25 -0
  595. package/dist/temp/src/types/side-slot.js +1 -0
  596. package/dist/temp/src/utils/date-picker.d.ts +11 -0
  597. package/dist/temp/src/utils/date-picker.js +51 -0
  598. package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
  599. package/dist/temp/src/utils/dropdown/dropdownUtils.js +79 -0
  600. package/dist/temp/src/utils/dropdown/index.d.ts +2 -0
  601. package/dist/temp/src/utils/dropdown/index.js +2 -0
  602. package/dist/temp/src/utils/dropdown/multiSelect.d.ts +31 -0
  603. package/dist/temp/src/utils/dropdown/multiSelect.js +68 -0
  604. package/dist/temp/src/utils/index.d.ts +2 -0
  605. package/dist/temp/src/utils/index.js +4 -0
  606. package/dist/types/assets/scripts/baseBox.d.ts +55 -0
  607. package/dist/types/assets/scripts/comboBox.d.ts +60 -0
  608. package/dist/types/assets/scripts/datePicker.d.ts +86 -0
  609. package/dist/types/assets/scripts/featuredIcon.d.ts +22 -0
  610. package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +15 -0
  611. package/dist/types/assets/scripts/fileInput/const/index.d.ts +2 -0
  612. package/dist/types/assets/scripts/fileInput/const/types.d.ts +88 -0
  613. package/dist/types/assets/scripts/fileInput/fileInput.d.ts +13 -0
  614. package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
  615. package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +42 -0
  616. package/dist/types/assets/scripts/fileInput/index.d.ts +3 -0
  617. package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +63 -0
  618. package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +73 -0
  619. package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +79 -0
  620. package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
  621. package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +2 -0
  622. package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +125 -0
  623. package/dist/types/assets/scripts/imageFileInput/index.d.ts +3 -0
  624. package/dist/types/assets/scripts/index.d.ts +32 -0
  625. package/dist/types/assets/scripts/modal/Modal.d.ts +27 -0
  626. package/dist/types/assets/scripts/modal/ModalActions.d.ts +18 -0
  627. package/dist/types/assets/scripts/modal/ModalContent.d.ts +13 -0
  628. package/dist/types/assets/scripts/modal/ModalHeader.d.ts +15 -0
  629. package/dist/types/assets/scripts/modal/const/classNames.d.ts +22 -0
  630. package/dist/types/assets/scripts/modal/const/index.d.ts +2 -0
  631. package/dist/types/assets/scripts/modal/const/types.d.ts +61 -0
  632. package/dist/types/assets/scripts/modal/index.d.ts +7 -0
  633. package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
  634. package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +24 -0
  635. package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
  636. package/dist/types/assets/scripts/notification/MessageNotification.d.ts +22 -0
  637. package/dist/types/assets/scripts/notification/Notification.d.ts +21 -0
  638. package/dist/types/assets/scripts/notification/const/classNames.d.ts +43 -0
  639. package/dist/types/assets/scripts/notification/const/icons.d.ts +25 -0
  640. package/dist/types/assets/scripts/notification/const/index.d.ts +5 -0
  641. package/dist/types/assets/scripts/notification/const/sizes.d.ts +32 -0
  642. package/dist/types/assets/scripts/notification/const/types.d.ts +19 -0
  643. package/dist/types/assets/scripts/notification/index.d.ts +7 -0
  644. package/dist/types/assets/scripts/notification/utils.d.ts +8 -0
  645. package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
  646. package/dist/types/assets/scripts/progress-bar/index.d.ts +1 -0
  647. package/dist/types/assets/scripts/selectBox.d.ts +50 -0
  648. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
  649. package/dist/types/assets/scripts/slider.d.ts +0 -1
  650. package/dist/types/assets/scripts/tab.d.ts +7 -0
  651. package/dist/types/assets/scripts/tag/Tag.d.ts +27 -0
  652. package/dist/types/assets/scripts/tag/const/classNames.d.ts +11 -0
  653. package/dist/types/assets/scripts/tag/const/index.d.ts +3 -0
  654. package/dist/types/assets/scripts/tag/const/sizes.d.ts +7 -0
  655. package/dist/types/assets/scripts/tag/const/types.d.ts +33 -0
  656. package/dist/types/assets/scripts/tag/index.d.ts +3 -0
  657. package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +54 -0
  658. package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
  659. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  660. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +33 -0
  661. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +4 -0
  662. package/dist/types/assets/scripts/tooltip/const/index.d.ts +5 -0
  663. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +16 -0
  664. package/dist/types/assets/scripts/tooltip/const/types.d.ts +14 -0
  665. package/dist/types/assets/scripts/tooltip/index.d.ts +6 -0
  666. package/dist/types/assets/scripts/tooltip/utils.d.ts +2 -0
  667. package/dist/types/assets/scripts/utils/debounce.d.ts +8 -0
  668. package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
  669. package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
  670. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
  671. package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
  672. package/dist/types/constant/color.d.ts +0 -1
  673. package/dist/types/constant/size.d.ts +0 -1
  674. package/dist/types/index.d.ts +0 -1
  675. package/dist/types/src/components/badge/Badge.d.ts +10 -9
  676. package/dist/types/src/components/badge/BadgeGroup.d.ts +7 -6
  677. package/dist/types/src/components/badge/index.d.ts +0 -1
  678. package/dist/types/src/components/badge/utils.d.ts +4 -3
  679. package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +5 -4
  680. package/dist/types/src/components/breadcrumb/index.d.ts +0 -1
  681. package/dist/types/src/components/button/Button.d.ts +2 -1
  682. package/dist/types/src/components/button/ButtonCloseX.d.ts +4 -3
  683. package/dist/types/src/components/button/ButtonGroup.d.ts +9 -11
  684. package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
  685. package/dist/types/src/components/button/index.d.ts +0 -1
  686. package/dist/types/src/components/carousel/CarouselArrow.d.ts +1 -3
  687. package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +1 -3
  688. package/dist/types/src/components/carousel/index.d.ts +0 -1
  689. package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
  690. package/dist/types/src/components/checkbox/CheckboxInput.d.ts +2 -3
  691. package/dist/types/src/components/checkbox/index.d.ts +0 -1
  692. package/dist/types/src/components/combobox/ComboBox.d.ts +7 -6
  693. package/dist/types/src/components/combobox/index.d.ts +1 -2
  694. package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
  695. package/dist/types/src/components/date-picker/DatePicker.d.ts +7 -6
  696. package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +6 -5
  697. package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +4 -4
  698. package/dist/types/src/components/date-picker/index.d.ts +0 -1
  699. package/dist/types/src/components/date-picker/utils.d.ts +0 -1
  700. package/dist/types/src/components/divider/Divider.d.ts +1 -2
  701. package/dist/types/src/components/divider/index.d.ts +0 -1
  702. package/dist/types/src/components/dot/Dot.d.ts +9 -8
  703. package/dist/types/src/components/dot/index.d.ts +0 -1
  704. package/dist/types/src/components/dropdown/Dropdown.d.ts +0 -1
  705. package/dist/types/src/components/dropdown/index.d.ts +0 -1
  706. package/dist/types/src/components/empty-state/EmptyState.d.ts +5 -5
  707. package/dist/types/src/components/empty-state/index.d.ts +0 -1
  708. package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +8 -7
  709. package/dist/types/src/components/featured-icon/index.d.ts +0 -1
  710. package/dist/types/src/components/file-input/FileInput.d.ts +0 -1
  711. package/dist/types/src/components/file-input/index.d.ts +0 -1
  712. package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +0 -1
  713. package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +0 -1
  714. package/dist/types/src/components/image-file-input/index.d.ts +0 -1
  715. package/dist/types/src/components/index.d.ts +1 -2
  716. package/dist/types/src/components/input/InputBase.d.ts +4 -4
  717. package/dist/types/src/components/input/NumberInput.d.ts +1 -2
  718. package/dist/types/src/components/input/PasswordInput.d.ts +1 -2
  719. package/dist/types/src/components/input/Textarea.d.ts +2 -3
  720. package/dist/types/src/components/input/index.d.ts +0 -1
  721. package/dist/types/src/components/modal/Modal.d.ts +13 -12
  722. package/dist/types/src/components/modal/index.d.ts +0 -1
  723. package/dist/types/src/components/notification/FloatingNotification.d.ts +6 -5
  724. package/dist/types/src/components/notification/FullWidthNotification.d.ts +6 -5
  725. package/dist/types/src/components/notification/MessageNotification.d.ts +6 -5
  726. package/dist/types/src/components/notification/Notification.d.ts +11 -10
  727. package/dist/types/src/components/notification/index.d.ts +1 -2
  728. package/dist/types/src/components/pagination/NavButton.d.ts +0 -1
  729. package/dist/types/src/components/pagination/Pagination.d.ts +0 -1
  730. package/dist/types/src/components/pagination/index.d.ts +0 -1
  731. package/dist/types/src/components/progress-bar/ProgressBar.d.ts +0 -1
  732. package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +0 -1
  733. package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +3 -4
  734. package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +1 -2
  735. package/dist/types/src/components/progress-bar/index.d.ts +0 -1
  736. package/dist/types/src/components/progress-bar/types.d.ts +0 -1
  737. package/dist/types/src/components/progress-bar/utils.d.ts +4 -4
  738. package/dist/types/src/components/progress-circle/ProgressCircle.d.ts +0 -1
  739. package/dist/types/src/components/progress-circle/index.d.ts +0 -1
  740. package/dist/types/src/components/radio/Radio.d.ts +2 -3
  741. package/dist/types/src/components/radio/RadioInput.d.ts +2 -3
  742. package/dist/types/src/components/radio/index.d.ts +0 -1
  743. package/dist/types/src/components/select/Select.d.ts +4 -5
  744. package/dist/types/src/components/select/index.d.ts +0 -1
  745. package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +6 -6
  746. package/dist/types/src/components/select-dropdown/index.d.ts +1 -2
  747. package/dist/types/src/components/selectbox/SelectBox.d.ts +5 -4
  748. package/dist/types/src/components/selectbox/index.d.ts +0 -1
  749. package/dist/types/src/components/shared/hintText/HintText.d.ts +0 -1
  750. package/dist/types/src/components/shared/hintText/index.d.ts +0 -1
  751. package/dist/types/src/components/shared/index.d.ts +0 -1
  752. package/dist/types/src/components/shared/label/Label.d.ts +0 -1
  753. package/dist/types/src/components/shared/label/index.d.ts +0 -1
  754. package/dist/types/src/components/slider/Slider.d.ts +1 -2
  755. package/dist/types/src/components/slider/index.d.ts +0 -1
  756. package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
  757. package/dist/types/src/components/spinner/index.d.ts +0 -2
  758. package/dist/types/src/components/switch/Switch.d.ts +7 -7
  759. package/dist/types/src/components/switch/index.d.ts +1 -2
  760. package/dist/types/src/components/tab/HorizontalTab.d.ts +7 -5
  761. package/dist/types/src/components/tab/TabButton.d.ts +8 -8
  762. package/dist/types/src/components/tab/VerticalTab.d.ts +2 -3
  763. package/dist/types/src/components/tab/index.d.ts +0 -1
  764. package/dist/types/src/components/tag/Tag.d.ts +4 -4
  765. package/dist/types/src/components/tag/index.d.ts +0 -1
  766. package/dist/types/src/components/toggle/Toggle.d.ts +1 -2
  767. package/dist/types/src/components/toggle/index.d.ts +0 -1
  768. package/dist/types/src/components/tooltip/Tooltip.d.ts +0 -1
  769. package/dist/types/src/components/tooltip/index.d.ts +0 -1
  770. package/dist/types/src/constant/breakpoint.d.ts +0 -1
  771. package/dist/types/src/constant/date-picker.d.ts +0 -1
  772. package/dist/types/src/constant/index.d.ts +1 -2
  773. package/dist/types/src/constant/size.d.ts +0 -1
  774. package/dist/types/src/hooks/dropdown/index.d.ts +0 -1
  775. package/dist/types/src/hooks/dropdown/useDropdown.d.ts +1 -2
  776. package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +2 -3
  777. package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +1 -2
  778. package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +1 -2
  779. package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +0 -1
  780. package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +0 -1
  781. package/dist/types/src/hooks/index.d.ts +1 -2
  782. package/dist/types/src/hooks/useCallbackRef.d.ts +0 -1
  783. package/dist/types/src/hooks/useMediaQuery.d.ts +0 -1
  784. package/dist/types/src/hooks/useMergeRefs.d.ts +1 -2
  785. package/dist/types/src/types/dropdown/dropdown.d.ts +1 -2
  786. package/dist/types/src/types/dropdown/index.d.ts +0 -1
  787. package/dist/types/src/types/dropdown/option.d.ts +0 -1
  788. package/dist/types/src/types/index.d.ts +0 -1
  789. package/dist/types/src/types/side-slot.d.ts +0 -1
  790. package/dist/types/src/utils/date-picker.d.ts +1 -2
  791. package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +2 -3
  792. package/dist/types/src/utils/dropdown/index.d.ts +0 -1
  793. package/dist/types/src/utils/dropdown/multiSelect.d.ts +1 -2
  794. package/dist/types/src/utils/index.d.ts +0 -1
  795. package/dist/ui-admin/assets/styles/style.css +115 -24
  796. package/package.json +50 -77
  797. package/mcp/bin/server.js +0 -67
  798. package/mcp/bin/server.mjs +0 -14
  799. package/mcp/bin/tools/getComponentHtml.d.ts +0 -3
  800. package/mcp/bin/tools/getComponentHtml.js +0 -30
  801. package/mcp/bin/tools/getComponentProps.d.ts +0 -3
  802. package/mcp/bin/tools/getComponentProps.js +0 -16
  803. package/mcp/bin/tools/listComponents.d.ts +0 -3
  804. package/mcp/bin/tools/listComponents.js +0 -15
  805. package/mcp/bin/tools/ping.d.ts +0 -11
  806. package/mcp/bin/tools/ping.js +0 -30
  807. package/mcp/bin/tools/searchComponent.d.ts +0 -3
  808. package/mcp/bin/tools/searchComponent.js +0 -20
  809. package/mcp/bin/tools/validateHtml.d.ts +0 -10
  810. package/mcp/bin/tools/validateHtml.js +0 -142
  811. package/mcp/bin/types.d.ts +0 -28
  812. package/mcp/bin/types.js +0 -5
  813. package/mcp/bin/utils/dataLoader.d.ts +0 -11
  814. package/mcp/bin/utils/dataLoader.js +0 -68
  815. package/mcp/bin/utils/logger.d.ts +0 -18
  816. package/mcp/bin/utils/logger.js +0 -27
  817. package/mcp/bin/utils/response.d.ts +0 -23
  818. package/mcp/bin/utils/response.js +0 -31
  819. package/mcp/bin/version.d.ts +0 -1
  820. package/mcp/bin/version.js +0 -4
  821. package/mcp/data/.gitkeep +0 -0
  822. package/mcp/data/_meta.json +0 -7
  823. package/mcp/data/badge-group.json +0 -73
  824. package/mcp/data/badge.json +0 -86
  825. package/mcp/data/bread-crumb.json +0 -22
  826. package/mcp/data/breadcrumb.json +0 -31
  827. package/mcp/data/button-group.json +0 -65
  828. package/mcp/data/button.json +0 -114
  829. package/mcp/data/carousel-arrow.json +0 -59
  830. package/mcp/data/carousel-number-group.json +0 -57
  831. package/mcp/data/carousel.json +0 -22
  832. package/mcp/data/checkbox.json +0 -31
  833. package/mcp/data/combobox.json +0 -114
  834. package/mcp/data/date-picker.json +0 -77
  835. package/mcp/data/divider.json +0 -56
  836. package/mcp/data/dot.json +0 -55
  837. package/mcp/data/dropdown.json +0 -81
  838. package/mcp/data/empty-state.json +0 -34
  839. package/mcp/data/featured-icon.json +0 -83
  840. package/mcp/data/file-input.json +0 -76
  841. package/mcp/data/horizontal-tab.json +0 -71
  842. package/mcp/data/image-file-input.json +0 -97
  843. package/mcp/data/input.json +0 -104
  844. package/mcp/data/modal.json +0 -85
  845. package/mcp/data/notification.json +0 -116
  846. package/mcp/data/number-input.json +0 -128
  847. package/mcp/data/pagination.json +0 -65
  848. package/mcp/data/password-input.json +0 -47
  849. package/mcp/data/progress-bar.json +0 -51
  850. package/mcp/data/progress-circle.json +0 -54
  851. package/mcp/data/radio.json +0 -31
  852. package/mcp/data/range-date-picker-with-buttons.json +0 -64
  853. package/mcp/data/range-date-picker.json +0 -55
  854. package/mcp/data/select-dropdown.json +0 -32
  855. package/mcp/data/select.json +0 -64
  856. package/mcp/data/selectbox.json +0 -129
  857. package/mcp/data/slider.json +0 -57
  858. package/mcp/data/spinner.json +0 -54
  859. package/mcp/data/switch.json +0 -71
  860. package/mcp/data/tab.json +0 -122
  861. package/mcp/data/tag.json +0 -66
  862. package/mcp/data/textarea.json +0 -88
  863. package/mcp/data/toggle.json +0 -59
  864. package/mcp/data/tooltip.json +0 -123
  865. package/mcp/data/vertical-tab.json +0 -64
  866. package/mcp/templates/.mcp.json.example +0 -8
  867. package/mcp/templates/README.md +0 -31
  868. /package/{mcp/bin/server.d.ts → dist/temp/assets/scripts/modal/const/types.js} +0 -0
@@ -0,0 +1,79 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { AlertCircle, AlertTriangle, CheckCircle, Pin02 } from '@ncds/ui-admin-icon';
25
+ import classNames from 'classnames';
26
+ import { forwardRef, useEffect, useRef, useState } from 'react';
27
+ import { MEDIA_QUERY } from '../../constant/breakpoint';
28
+ import { useMediaQuery } from '../../hooks/useMediaQuery';
29
+ import { Button } from '../button';
30
+ import { ButtonCloseX } from '../button/ButtonCloseX';
31
+ import { FeaturedIcon } from '../featured-icon/FeaturedIcon';
32
+ var iconMap = {
33
+ neutral: Pin02,
34
+ error: AlertTriangle,
35
+ warning: AlertCircle,
36
+ success: CheckCircle,
37
+ // info는 floating에서는 지원하지 않음
38
+ };
39
+ var FloatingNotification = forwardRef(function (_a, ref) {
40
+ var title = _a.title, supportingText = _a.supportingText, _b = _a.color, color = _b === void 0 ? 'neutral' : _b, onClose = _a.onClose, className = _a.className, actions = _a.actions, _c = _a.autoClose, autoClose = _c === void 0 ? 0 : _c, rest = __rest(_a, ["title", "supportingText", "color", "onClose", "className", "actions", "autoClose"]);
41
+ var _d = useState(false), shouldRemove = _d[0], setShouldRemove = _d[1];
42
+ var iconColor = color;
43
+ var featuredIconProps = {
44
+ icon: iconMap[color] || Pin02,
45
+ size: 'sm',
46
+ color: iconColor,
47
+ theme: 'dark-circle',
48
+ };
49
+ var isMobile = useMediaQuery(MEDIA_QUERY.mobile, {
50
+ onMatched: onClose,
51
+ });
52
+ // autoClose 타이머 관리
53
+ var timerRef = useRef(null);
54
+ useEffect(function () {
55
+ // autoClose가 0보다 크면 무조건 타이머 설정
56
+ if (autoClose > 0) {
57
+ timerRef.current = setTimeout(function () {
58
+ if (onClose) {
59
+ onClose();
60
+ }
61
+ // DOM에서 바로 제거
62
+ setShouldRemove(true);
63
+ }, autoClose);
64
+ }
65
+ // cleanup 함수: 컴포넌트 언마운트 시 타이머 정리
66
+ return function () {
67
+ if (timerRef.current) {
68
+ clearTimeout(timerRef.current);
69
+ timerRef.current = null;
70
+ }
71
+ };
72
+ }, [autoClose, onClose]);
73
+ // DOM에서 완전히 제거
74
+ if (shouldRemove) {
75
+ return null;
76
+ }
77
+ return (_jsxs("div", __assign({ ref: ref, className: classNames('ncua-floating-notification', "ncua-floating-notification--".concat(color), className), role: "alert" }, rest, { children: [_jsx("div", __assign({ className: "ncua-floating-notification__content" }, { children: _jsxs("div", __assign({ className: "ncua-floating-notification__container" }, { children: [iconMap[color] && _jsx(FeaturedIcon, __assign({}, featuredIconProps, { size: isMobile ? 'md' : 'sm' })), _jsxs("div", __assign({ className: "ncua-floating-notification__text-container" }, { children: [_jsx("div", __assign({ className: "ncua-floating-notification__title-wrapper" }, { children: _jsx("span", __assign({ className: "ncua-floating-notification__title" }, { children: title })) })), supportingText && _jsx("span", __assign({ className: "ncua-floating-notification__supporting-text" }, { children: supportingText })), actions && (_jsx("div", __assign({ className: "ncua-floating-notification__actions" }, { children: actions.map(function (action) { return (_jsx(Button, { size: "xs", hierarchy: action.hierarchy || 'text', label: action.label, onClick: action === null || action === void 0 ? void 0 : action.onClick }, "".concat(action.label, "-").concat(action.hierarchy))); }) })))] }))] })) })), onClose && (_jsx(ButtonCloseX, { theme: "light", className: "ncua-floating-notification__close-button", size: isMobile ? 'sm' : 'xs', onClick: onClose }))] })));
78
+ });
79
+ export { FloatingNotification };
@@ -0,0 +1,46 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import type { NotificationAction, NotificationColor } from './Notification';
3
+ interface FullWidthNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
4
+ /**
5
+ * 알림 제목 텍스트
6
+ */
7
+ title: ReactNode;
8
+ /**
9
+ * 알림 본문 텍스트 (선택사항)
10
+ */
11
+ supportingText?: ReactNode;
12
+ /**
13
+ * 알림 색상 스타일 (neutral, error, warning, success, info)
14
+ * @default 'neutral'
15
+ */
16
+ color?: NotificationColor;
17
+ /**
18
+ * 닫기 버튼 클릭 이벤트 핸들러
19
+ */
20
+ onClose?: () => void;
21
+ /**
22
+ * 추가 CSS 클래스
23
+ */
24
+ className?: string;
25
+ /**
26
+ * 버튼 영역 (선택사항)
27
+ */
28
+ actions?: NotificationAction[];
29
+ /**
30
+ * 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
31
+ * full-width 타입에서는 일반적으로 사용하지 않음 (중요한 공지사항이므로)
32
+ * @default 0
33
+ */
34
+ autoClose?: number;
35
+ /**
36
+ * info 링크 영역 (선택사항)
37
+ */
38
+ supportTextLink?: string;
39
+ /**
40
+ * 다시보지 않기 이벤트 핸들러 (선택사항)
41
+ */
42
+ onHidePermanently?: () => void;
43
+ }
44
+ declare const FullWidthNotification: import("react").ForwardRefExoticComponent<FullWidthNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
45
+ export type { FullWidthNotificationProps };
46
+ export { FullWidthNotification };
@@ -0,0 +1,79 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { AlertTriangle, CheckCircle, InfoCircle, MessageChatSquare, XClose } from '@ncds/ui-admin-icon';
25
+ import classNames from 'classnames';
26
+ import { forwardRef, useEffect, useRef, useState } from 'react';
27
+ import { COLOR } from '../../../constant/color';
28
+ var iconMap = {
29
+ neutral: MessageChatSquare,
30
+ error: AlertTriangle,
31
+ warning: AlertTriangle,
32
+ success: CheckCircle,
33
+ info: InfoCircle,
34
+ };
35
+ var iconColorMap = {
36
+ neutral: 'gray700',
37
+ error: 'red500',
38
+ warning: 'orange500',
39
+ success: 'green600',
40
+ info: 'violet600',
41
+ };
42
+ var FullWidthNotification = forwardRef(function (_a, ref) {
43
+ var title = _a.title, supportingText = _a.supportingText, _b = _a.color, color = _b === void 0 ? 'neutral' : _b, onClose = _a.onClose, className = _a.className, actions = _a.actions, _c = _a.autoClose, autoClose = _c === void 0 ? 0 : _c, supportTextLink = _a.supportTextLink, onHidePermanently = _a.onHidePermanently, rest = __rest(_a, ["title", "supportingText", "color", "onClose", "className", "actions", "autoClose", "supportTextLink", "onHidePermanently"]);
44
+ var _d = useState(false), shouldRemove = _d[0], setShouldRemove = _d[1];
45
+ var closeIconSize = {
46
+ width: 20,
47
+ height: 20,
48
+ };
49
+ // autoClose 타이머 관리
50
+ var timerRef = useRef(null);
51
+ useEffect(function () {
52
+ // autoClose가 0보다 크면 무조건 타이머 설정
53
+ if (autoClose > 0) {
54
+ timerRef.current = setTimeout(function () {
55
+ if (onClose) {
56
+ onClose();
57
+ }
58
+ // DOM에서 바로 제거
59
+ setShouldRemove(true);
60
+ }, autoClose);
61
+ }
62
+ // cleanup 함수: 컴포넌트 언마운트 시 타이머 정리
63
+ return function () {
64
+ if (timerRef.current) {
65
+ clearTimeout(timerRef.current);
66
+ timerRef.current = null;
67
+ }
68
+ };
69
+ }, [autoClose, onClose]);
70
+ // DOM에서 완전히 제거
71
+ if (shouldRemove) {
72
+ return null;
73
+ }
74
+ return (_jsx("div", __assign({ ref: ref, className: classNames('ncua-full-width-notification', "ncua-full-width-notification--".concat(color), className), role: "alert" }, rest, { children: _jsx("div", __assign({ className: "ncua-full-width-notification__container" }, { children: _jsxs("div", __assign({ className: "ncua-full-width-notification__content" }, { children: [_jsxs("div", __assign({ className: "ncua-full-width-notification__content-wrapper" }, { children: [(function () {
75
+ var IconComponent = iconMap[color];
76
+ return (_jsx(IconComponent, { width: 16, height: 16, color: COLOR[iconColorMap[color]], className: "ncua-full-width-notification__icon" }));
77
+ })(), _jsxs("div", __assign({ className: "ncua-full-width-notification__text-container" }, { children: [_jsx("span", __assign({ className: "ncua-full-width-notification__title" }, { children: title })), !supportTextLink && supportingText && (_jsx("span", __assign({ className: "ncua-full-width-notification__supporting-text" }, { children: supportingText }))), supportTextLink && supportingText && (_jsx("a", __assign({ href: supportTextLink, className: "ncua-full-width-notification__link" }, { children: _jsx("span", __assign({ className: "ncua-full-width-notification__supporting-text" }, { children: supportingText })) })))] }))] })), _jsxs("div", __assign({ className: "ncua-full-width-notification__actions-container" }, { children: [actions && (_jsx("div", __assign({ className: "ncua-full-width-notification__actions" }, { children: actions.map(function (action) { return (_jsx("button", __assign({ onClick: action.onClick, className: classNames('ncua-notification__action-button', "ncua-notification__action-button--".concat(action.hierarchy || 'text')) }, { children: action.label }), "".concat(action.label, "-").concat(action.hierarchy))); }) }))), onHidePermanently && (_jsx("button", __assign({ type: "button", className: classNames('ncua-notification__action-button', 'ncua-notification__action-button--text', 'ncua-full-width-notification__link'), onClick: onHidePermanently }, { children: "\uB2E4\uC2DC\uBCF4\uC9C0 \uC54A\uAE30" }))), onClose && (_jsx("button", __assign({ type: "button", className: "ncua-full-width-notification__close-button", onClick: onClose, "aria-label": "\uC54C\uB9BC \uB2EB\uAE30" }, { children: _jsx(XClose, __assign({}, closeIconSize, { color: COLOR[iconColorMap[color]] })) })))] }))] })) })) })));
78
+ });
79
+ export { FullWidthNotification };
@@ -0,0 +1,41 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import type { SlotIconComponent } from '../../types/side-slot';
3
+ import type { NotificationAction, NotificationColor } from './Notification';
4
+ interface MessageNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
5
+ /**
6
+ * 알림 제목 텍스트
7
+ */
8
+ title: ReactNode;
9
+ /**
10
+ * 알림 본문 텍스트 (선택사항)
11
+ */
12
+ supportingText?: ReactNode;
13
+ /**
14
+ * 알림 아이콘 컴포넌트 (지정하지 않으면 color에 따라 기본 아이콘 사용)
15
+ */
16
+ icon?: SlotIconComponent;
17
+ /**
18
+ * 알림 색상 스타일
19
+ * @default 'neutral'
20
+ */
21
+ color?: NotificationColor;
22
+ /**
23
+ * 닫기 버튼 클릭 이벤트 핸들러
24
+ */
25
+ onClose?: () => void;
26
+ /**
27
+ * 추가 CSS 클래스
28
+ */
29
+ className?: string;
30
+ /**
31
+ * 액션 버튼 영역 (선택사항)
32
+ */
33
+ actions?: NotificationAction[];
34
+ /**
35
+ * 다시보지 않기 이벤트 핸들러 (선택사항)
36
+ */
37
+ onHidePermanently?: () => void;
38
+ }
39
+ declare const MessageNotification: import("react").ForwardRefExoticComponent<MessageNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
40
+ export type { MessageNotificationProps };
41
+ export { MessageNotification };
@@ -0,0 +1,57 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { AlertCircle, AlertTriangle, CheckCircle, Pin02, XClose } from '@ncds/ui-admin-icon';
25
+ import classNames from 'classnames';
26
+ import { forwardRef } from 'react';
27
+ import { COLOR } from '../../../constant/color';
28
+ import { Button } from '../button';
29
+ import { FeaturedIcon } from '../featured-icon/FeaturedIcon';
30
+ var iconMap = {
31
+ neutral: Pin02,
32
+ error: AlertTriangle,
33
+ warning: AlertCircle,
34
+ success: CheckCircle,
35
+ };
36
+ var iconColorMap = {
37
+ neutral: 'gray700',
38
+ error: 'red500',
39
+ warning: 'orange500',
40
+ success: 'green600',
41
+ };
42
+ var MessageNotification = forwardRef(function (_a, ref) {
43
+ var title = _a.title, supportingText = _a.supportingText, Icon = _a.icon, _b = _a.color, color = _b === void 0 ? 'neutral' : _b, onClose = _a.onClose, className = _a.className, actions = _a.actions, onHidePermanently = _a.onHidePermanently, rest = __rest(_a, ["title", "supportingText", "icon", "color", "onClose", "className", "actions", "onHidePermanently"]);
44
+ // message 타입은 neutral, error, warning, success 4가지 색상만 지원
45
+ var validColor = color === 'info' ? 'neutral' : color;
46
+ var iconColor = validColor;
47
+ var featuredIconProps = {
48
+ icon: Icon || iconMap[validColor] || Pin02,
49
+ size: 'lg',
50
+ color: iconColor,
51
+ theme: 'light-circle',
52
+ };
53
+ var closeIconColor = COLOR[iconColorMap[validColor] || 'gray700'];
54
+ return (_jsx("div", __assign({ ref: ref, className: classNames('ncua-message-notification', "ncua-message-notification--".concat(validColor), className), role: "alert" }, rest, { children: _jsx("div", __assign({ className: "ncua-message-notification__container" }, { children: _jsxs("div", __assign({ className: "ncua-message-notification__content" }, { children: [_jsxs("div", __assign({ className: "ncua-message-notification__content-wrapper" }, { children: [iconMap[validColor] && (_jsx(FeaturedIcon, __assign({}, featuredIconProps, { className: "ncua-message-notification__icon" }))), _jsxs("div", __assign({ className: "ncua-message-notification__text-container" }, { children: [_jsx("span", __assign({ className: "ncua-message-notification__title" }, { children: title })), supportingText && _jsx("span", __assign({ className: "ncua-message-notification__supporting-text" }, { children: supportingText }))] }))] })), _jsx("div", __assign({ className: "ncua-message-notification__actions-container" }, { children: actions && (_jsx("div", __assign({ className: "ncua-message-notification__actions" }, { children: actions.map(function (action) { return (_jsx(Button, { size: "xs", hierarchy: action.hierarchy || 'text', label: action.label, onClick: action === null || action === void 0 ? void 0 : action.onClick }, "".concat(action.label, "-").concat(action.hierarchy))); }) }))) })), _jsxs("div", __assign({ className: "ncua-message-notification__footer-container" }, { children: [onHidePermanently && (_jsx("button", __assign({ type: "button", className: classNames('ncua-notification__action-button', 'ncua-notification__action-button--link', 'ncua-message-notification__hide-link'), onClick: onHidePermanently }, { children: "\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30" }))), onClose && (_jsx("button", __assign({ type: "button", className: "ncua-message-notification__close-button", onClick: onClose, "aria-label": "\uC54C\uB9BC \uB2EB\uAE30" }, { children: _jsx(XClose, { width: 20, height: 20, color: closeIconColor }) })))] }))] })) })) })));
55
+ });
56
+ MessageNotification.displayName = 'MessageNotification';
57
+ export { MessageNotification };
@@ -0,0 +1,72 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import type { ColorTone } from '../../../constant/color';
3
+ import type { SlotIconComponent } from '../../types/side-slot';
4
+ import type { ButtonTheme } from '../button';
5
+ type NotificationType = 'floating' | 'full-width' | 'message';
6
+ type NotificationColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'info'>;
7
+ type NotificationSize = 'desktop' | 'mobile';
8
+ interface NotificationAction {
9
+ /**
10
+ * 액션 버튼 텍스트
11
+ */
12
+ label: string;
13
+ /**
14
+ * 액션 버튼 클릭 이벤트 핸들러
15
+ */
16
+ onClick?: () => void;
17
+ /**
18
+ * 액션 버튼 색상 (3가지만 지원)
19
+ */
20
+ hierarchy?: Extract<ButtonTheme, 'text' | 'text-gray'>;
21
+ }
22
+ interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
23
+ /**
24
+ * 알림 유형 (floating: 측면에 표시되는 알림, full-width: 전체 너비 알림)
25
+ * @default 'floating'
26
+ */
27
+ type?: NotificationType;
28
+ /**
29
+ * 알림 제목 텍스트
30
+ */
31
+ title: ReactNode;
32
+ /**
33
+ * 알림 본문 텍스트 (선택사항)
34
+ */
35
+ supportingText?: ReactNode;
36
+ /**
37
+ * 알림 아이콘 컴포넌트 (지정하지 않으면 variant에 따라 기본 아이콘 사용)
38
+ */
39
+ icon?: SlotIconComponent;
40
+ /**
41
+ * 알림 색상 스타일
42
+ * @default 'neutral'
43
+ */
44
+ color?: NotificationColor;
45
+ /**
46
+ * 닫기 버튼 클릭 이벤트 핸들러
47
+ */
48
+ onClose?: () => void;
49
+ /**
50
+ * 추가 CSS 클래스
51
+ */
52
+ className?: string;
53
+ /**
54
+ * 액션 버튼 영역 (선택사항)
55
+ * NotificationAction[]
56
+ */
57
+ actions?: NotificationAction[];
58
+ /**
59
+ * 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
60
+ * floating 타입에서만 동작
61
+ * @default 0
62
+ */
63
+ autoClose?: number;
64
+ /**
65
+ * 다시보지 않기 이벤트 핸들러 (선택사항)
66
+ * message, full-width 타입에서 사용 가능
67
+ */
68
+ onHidePermanently?: () => void;
69
+ }
70
+ declare const Notification: import("react").ForwardRefExoticComponent<NotificationProps & import("react").RefAttributes<HTMLDivElement>>;
71
+ export type { NotificationType, NotificationColor, NotificationSize, NotificationAction, NotificationProps };
72
+ export { Notification };
@@ -0,0 +1,42 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
25
+ import { FloatingNotification } from './FloatingNotification';
26
+ import { FullWidthNotification } from './FullWidthNotification';
27
+ import { MessageNotification } from './MessageNotification';
28
+ var Notification = forwardRef(function (_a, ref) {
29
+ var _b = _a.type, type = _b === void 0 ? 'floating' : _b, _c = _a.color, color = _c === void 0 ? 'neutral' : _c, rest = __rest(_a, ["type", "color"]);
30
+ if (type === 'floating') {
31
+ return _jsx(FloatingNotification, __assign({ color: color }, rest, { ref: ref }));
32
+ }
33
+ if (type === 'full-width') {
34
+ return _jsx(FullWidthNotification, __assign({ color: color }, rest, { ref: ref }));
35
+ }
36
+ if (type === 'message') {
37
+ return _jsx(MessageNotification, __assign({ color: color }, rest, { ref: ref }));
38
+ }
39
+ return null;
40
+ });
41
+ Notification.displayName = 'Notification';
42
+ export { Notification };
@@ -0,0 +1,4 @@
1
+ export * from './FloatingNotification';
2
+ export * from './FullWidthNotification';
3
+ export * from './MessageNotification';
4
+ export * from './Notification';
@@ -0,0 +1,4 @@
1
+ export * from './FloatingNotification';
2
+ export * from './FullWidthNotification';
3
+ export * from './MessageNotification';
4
+ export * from './Notification';
@@ -0,0 +1,31 @@
1
+ import type { SlotIconComponent } from '../../types/side-slot';
2
+ declare const NAV_BUTTON_CONFIG: {
3
+ readonly first: {
4
+ readonly label: "처음";
5
+ readonly className: "ncua-pagination__first";
6
+ readonly getIcon: (_isPC: boolean) => SlotIconComponent;
7
+ };
8
+ readonly prev: {
9
+ readonly label: "이전";
10
+ readonly className: "ncua-pagination__before";
11
+ readonly getIcon: (isPC: boolean) => SlotIconComponent;
12
+ };
13
+ readonly next: {
14
+ readonly label: "다음";
15
+ readonly className: "ncua-pagination__next";
16
+ readonly getIcon: (isPC: boolean) => SlotIconComponent;
17
+ };
18
+ readonly last: {
19
+ readonly label: "마지막";
20
+ readonly className: "ncua-pagination__last";
21
+ readonly getIcon: (_isPC: boolean) => SlotIconComponent;
22
+ };
23
+ };
24
+ export declare const NavButton: ({ type, breakPoint, noPrev, noNext, onClick, }: {
25
+ type: keyof typeof NAV_BUTTON_CONFIG;
26
+ breakPoint: 'pc' | 'mo';
27
+ noPrev: boolean;
28
+ noNext: boolean;
29
+ onClick: () => void;
30
+ }) => import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -0,0 +1,66 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ArrowLeft, ArrowRight, ChevronLeft, ChevronLeftDouble, ChevronRight, ChevronRightDouble, } from '@ncds/ui-admin-icon';
14
+ import { Button } from '../button';
15
+ var ICON_SIZE_PC = 16;
16
+ var ICON_SIZE_MOBILE = 20;
17
+ var NAV_BUTTON_CONFIG = {
18
+ first: {
19
+ label: '처음',
20
+ className: 'ncua-pagination__first',
21
+ getIcon: function (_isPC) { return ChevronLeftDouble; },
22
+ },
23
+ prev: {
24
+ label: '이전',
25
+ className: 'ncua-pagination__before',
26
+ getIcon: function (isPC) { return (isPC ? ChevronLeft : ArrowLeft); },
27
+ },
28
+ next: {
29
+ label: '다음',
30
+ className: 'ncua-pagination__next',
31
+ getIcon: function (isPC) { return (isPC ? ChevronRight : ArrowRight); },
32
+ },
33
+ last: {
34
+ label: '마지막',
35
+ className: 'ncua-pagination__last',
36
+ getIcon: function (_isPC) { return ChevronRightDouble; },
37
+ },
38
+ };
39
+ export var NavButton = function (_a) {
40
+ var type = _a.type, breakPoint = _a.breakPoint, noPrev = _a.noPrev, noNext = _a.noNext, onClick = _a.onClick;
41
+ var config = NAV_BUTTON_CONFIG[type];
42
+ var isNavigationButton = type === 'first' || type === 'prev' || type === 'next' || type === 'last';
43
+ var isFirstOrPrev = type === 'first' || type === 'prev';
44
+ var isNextOrLast = type === 'next' || type === 'last';
45
+ var disabled = (isFirstOrPrev ? noPrev : false) || (isNextOrLast ? noNext : false);
46
+ var isPC = breakPoint === 'pc';
47
+ // key를 제외한 공통 props
48
+ var buttonProps = {
49
+ label: config.label,
50
+ className: config.className,
51
+ onlyIcon: true,
52
+ leadingIcon: {
53
+ type: 'icon',
54
+ icon: config.getIcon(isPC),
55
+ size: isPC ? ICON_SIZE_PC : ICON_SIZE_MOBILE,
56
+ color: disabled ? 'gray200' : 'gray700',
57
+ },
58
+ hierarchy: 'secondary-gray',
59
+ size: (isPC ? 'xs' : 'sm'),
60
+ disabled: disabled,
61
+ onClick: onClick,
62
+ };
63
+ // key 값 별도 계산
64
+ var buttonKey = isNavigationButton ? "".concat(breakPoint, "-").concat(type) : undefined;
65
+ return _jsx(Button, __assign({}, buttonProps), buttonKey);
66
+ };
@@ -0,0 +1,11 @@
1
+ type PaginationProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
2
+ className?: string;
3
+ totalCount: number;
4
+ itemCountPerPage?: number;
5
+ pageCount?: number;
6
+ currentPage: number;
7
+ breakPoint?: 'pc' | 'mo';
8
+ onPageChange?: (page: number) => void;
9
+ };
10
+ export declare const Pagination: ({ className, totalCount, itemCountPerPage, pageCount, currentPage, breakPoint, onPageChange, ...restProps }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,93 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
24
+ import classNames from 'classnames';
25
+ import { isFunction, range, uniqueId } from 'lodash-es';
26
+ import { useEffect, useState } from 'react';
27
+ import { NavButton } from './NavButton';
28
+ // 네비게이션 버튼 설정
29
+ export var Pagination = function (_a) {
30
+ var _b = _a.className, className = _b === void 0 ? '' : _b, totalCount = _a.totalCount, _c = _a.itemCountPerPage, itemCountPerPage = _c === void 0 ? 10 : _c, _d = _a.pageCount, pageCount = _d === void 0 ? 10 : _d, currentPage = _a.currentPage, _e = _a.breakPoint, breakPoint = _e === void 0 ? 'pc' : _e, onPageChange = _a.onPageChange, restProps = __rest(_a, ["className", "totalCount", "itemCountPerPage", "pageCount", "currentPage", "breakPoint", "onPageChange"]);
31
+ var totalPage = Math.ceil(totalCount / itemCountPerPage);
32
+ var _f = useState(1), start = _f[0], setStart = _f[1];
33
+ var noPrev = breakPoint === 'mo' ? currentPage === 1 : start === 1;
34
+ var noNext = breakPoint === 'mo' ? currentPage >= totalPage : start + pageCount - 1 >= totalPage;
35
+ var showJumpPageButton = totalPage > pageCount;
36
+ var handleClickButton = function (pageNum) {
37
+ if (isFunction(onPageChange)) {
38
+ onPageChange(pageNum);
39
+ }
40
+ };
41
+ useEffect(function () {
42
+ if (currentPage === start + pageCount) {
43
+ setStart(start + pageCount);
44
+ }
45
+ if (currentPage > start + pageCount) {
46
+ var newStart = Math.floor((currentPage - 1) / pageCount) * pageCount + 1;
47
+ setStart(newStart);
48
+ }
49
+ if (currentPage < start) {
50
+ setStart(Math.max(1, start - pageCount));
51
+ }
52
+ if (currentPage === 1) {
53
+ setStart(1);
54
+ }
55
+ if (currentPage === totalPage) {
56
+ var lastGroupStart = Math.floor((totalPage - 1) / pageCount) * pageCount + 1;
57
+ setStart(lastGroupStart);
58
+ }
59
+ }, [currentPage]);
60
+ return (_jsxs("div", __assign({ className: classNames('ncua-pagination', "ncua-pagination--".concat(breakPoint), className) }, { children: [showJumpPageButton && (_jsxs(_Fragment, { children: [NavButton({
61
+ type: 'first',
62
+ breakPoint: breakPoint,
63
+ noPrev: noPrev,
64
+ noNext: noNext,
65
+ onClick: function () { return handleClickButton(1); },
66
+ }), NavButton({
67
+ type: 'prev',
68
+ breakPoint: breakPoint,
69
+ noPrev: noPrev,
70
+ noNext: noNext,
71
+ onClick: function () {
72
+ return breakPoint === 'mo'
73
+ ? handleClickButton(Math.max(currentPage - 1, 1))
74
+ : handleClickButton(Math.max(start - pageCount, 1));
75
+ },
76
+ })] })), _jsx("ul", __assign({ className: "ncua-pagination__list" }, { children: range(start, Math.min(totalPage + 1, start + pageCount)).map(function (pageNumber, i) { return (_jsx("li", __assign({ className: "ncua-pagination__item" }, { children: _jsx("button", __assign({ className: classNames('ncua-pagination__page-num', { 'is-current': pageNumber === currentPage }), onClick: function () { return handleClickButton(start + i); } }, restProps, { children: start + i })) }), uniqueId('ncua-pagination__page-num'))); }) })), _jsxs("p", __assign({ className: "ncua-pagination__page-info" }, { children: [_jsx("em", __assign({ className: "ncua-pagination__current-num" }, { children: currentPage })), " / ", totalPage] })), showJumpPageButton && (_jsxs(_Fragment, { children: [NavButton({
77
+ type: 'next',
78
+ breakPoint: breakPoint,
79
+ noPrev: noPrev,
80
+ noNext: noNext,
81
+ onClick: function () {
82
+ return breakPoint === 'mo'
83
+ ? handleClickButton(Math.min(currentPage + 1, totalPage))
84
+ : handleClickButton(Math.min(start + pageCount, totalPage));
85
+ },
86
+ }), NavButton({
87
+ type: 'last',
88
+ breakPoint: breakPoint,
89
+ noPrev: noPrev,
90
+ noNext: noNext,
91
+ onClick: function () { return handleClickButton(totalPage); },
92
+ })] }))] })));
93
+ };
@@ -0,0 +1,2 @@
1
+ export * from './NavButton';
2
+ export * from './Pagination';
@@ -0,0 +1,2 @@
1
+ export * from './NavButton';
2
+ export * from './Pagination';
@@ -0,0 +1,2 @@
1
+ import type { ProgressBarProps } from './types';
2
+ export declare const ProgressBar: ({ label, value, segments, showZeroLabel, valueToPercent, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;