@ncds/ui-admin 1.8.27 → 1.8.28-alpha.1

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 (528) hide show
  1. package/dist/cjs/assets/scripts/notification/const/icons.js +1 -2
  2. package/dist/cjs/assets/scripts/notification/const/index.js +0 -30
  3. package/dist/cjs/assets/scripts/notification/const/sizes.js +5 -5
  4. package/dist/cjs/assets/scripts/notification/index.js +0 -7
  5. package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +5 -4
  6. package/dist/cjs/assets/scripts/tooltip/const/classNames.js +29 -0
  7. package/dist/cjs/assets/scripts/tooltip/const/constants.js +58 -0
  8. package/dist/cjs/assets/scripts/tooltip/const/icons.js +15 -0
  9. package/dist/cjs/assets/scripts/tooltip/const/index.js +117 -0
  10. package/dist/cjs/assets/scripts/tooltip/const/templates.js +67 -0
  11. package/dist/cjs/assets/scripts/tooltip/const/types.js +5 -0
  12. package/dist/cjs/assets/scripts/utils/sanitize.js +0 -13
  13. package/dist/cjs/src/__tests__/helpers/dom.js +14 -0
  14. package/dist/cjs/src/__tests__/helpers/fileInput.js +92 -0
  15. package/dist/cjs/src/__tests__/helpers/fixedToday.js +17 -0
  16. package/dist/cjs/src/__tests__/helpers/matchMedia.js +50 -0
  17. package/dist/cjs/src/__tests__/helpers/rect.js +25 -0
  18. package/dist/cjs/src/components/action/button/__tests__/Button.test.js +260 -0
  19. package/dist/cjs/src/components/action/button-group/__tests__/ButtonGroup.test.js +267 -0
  20. package/dist/cjs/src/components/data-display/data-grid/__tests__/DataGrid.test.js +350 -0
  21. package/dist/cjs/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +320 -0
  22. package/dist/cjs/src/components/data-display/table/__tests__/Table.dnd.test.js +313 -0
  23. package/dist/cjs/src/components/data-display/table/__tests__/Table.scroll.test.js +194 -0
  24. package/dist/cjs/src/components/data-display/table/__tests__/Table.test.js +382 -0
  25. package/dist/cjs/src/components/data-display/table/__tests__/dnd-context.test.js +61 -0
  26. package/dist/cjs/src/components/data-display/table/__tests__/dnd-preview.test.js +230 -0
  27. package/dist/cjs/src/components/data-display/table/__tests__/tableDndTestUtils.js +266 -0
  28. package/dist/cjs/src/components/data-display/table/__tests__/tableTestUtils.js +48 -0
  29. package/dist/cjs/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +362 -0
  30. package/dist/cjs/src/components/data-display/table/useTableScrollbars.js +0 -24
  31. package/dist/cjs/src/components/feedback-and-status/badge/Badge.js +1 -1
  32. package/dist/cjs/src/components/feedback-and-status/badge/__tests__/Badge.test.js +189 -0
  33. package/dist/cjs/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +119 -0
  34. package/dist/cjs/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +94 -0
  35. package/dist/cjs/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +64 -0
  36. package/dist/cjs/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +126 -0
  37. package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +277 -0
  38. package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +249 -0
  39. package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +22 -0
  40. package/dist/cjs/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +102 -0
  41. package/dist/cjs/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +76 -0
  42. package/dist/cjs/src/components/feedback-and-status/tag/__tests__/Tag.test.js +604 -0
  43. package/dist/cjs/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +213 -0
  44. package/dist/cjs/src/components/forms-and-input/combo-box/ComboBox.js +2 -2
  45. package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +442 -0
  46. package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +153 -0
  47. package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +92 -0
  48. package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +546 -0
  49. package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +550 -0
  50. package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/utils.test.js +34 -0
  51. package/dist/cjs/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +266 -0
  52. package/dist/cjs/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +416 -0
  53. package/dist/cjs/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +236 -0
  54. package/dist/cjs/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +570 -0
  55. package/dist/cjs/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +113 -0
  56. package/dist/cjs/src/components/forms-and-input/radio/__tests__/Radio.test.js +57 -0
  57. package/dist/cjs/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +275 -0
  58. package/dist/cjs/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +235 -2
  59. package/dist/cjs/src/components/forms-and-input/select/__tests__/Select.test.js +275 -0
  60. package/dist/cjs/src/components/forms-and-input/select-box/SelectBox.js +2 -2
  61. package/dist/cjs/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +371 -0
  62. package/dist/cjs/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +1335 -0
  63. package/dist/cjs/src/components/forms-and-input/slider/__tests__/Slider.test.js +390 -0
  64. package/dist/cjs/src/components/forms-and-input/switch/__tests__/Switch.test.js +317 -0
  65. package/dist/cjs/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +255 -0
  66. package/dist/cjs/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +158 -0
  67. package/dist/cjs/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +138 -0
  68. package/dist/cjs/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +67 -0
  69. package/dist/cjs/src/components/layout/block-container/__tests__/BlockContainer.test.js +59 -0
  70. package/dist/cjs/src/components/layout/block-header/__tests__/BlockHeader.test.js +169 -0
  71. package/dist/cjs/src/components/layout/block-header/__tests__/SubTitle.test.js +77 -0
  72. package/dist/cjs/src/components/layout/divider/__tests__/Divider.test.js +65 -0
  73. package/dist/cjs/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +146 -0
  74. package/dist/cjs/src/components/layout/page-title/__tests__/PageTitle.test.js +164 -0
  75. package/dist/cjs/src/components/layout/page-title/__tests__/pageTitleStyle.test.js +94 -0
  76. package/dist/cjs/src/components/navigation/context-tab/__tests__/ContextTab.test.js +616 -0
  77. package/dist/cjs/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +592 -0
  78. package/dist/cjs/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +211 -0
  79. package/dist/cjs/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +285 -0
  80. package/dist/cjs/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +255 -0
  81. package/dist/cjs/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +558 -0
  82. package/dist/cjs/src/components/overlays/dropdown/__tests__/Dropdown.test.js +1020 -0
  83. package/dist/cjs/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +24 -0
  84. package/dist/cjs/src/components/overlays/dropdown/__tests__/utils.test.js +56 -0
  85. package/dist/cjs/src/components/overlays/modal/__tests__/Modal.test.js +426 -0
  86. package/dist/cjs/src/components/overlays/notification/__tests__/FloatingNotification.test.js +284 -0
  87. package/dist/cjs/src/components/overlays/notification/__tests__/MessageNotification.test.js +12 -0
  88. package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +2 -2
  89. package/dist/cjs/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +141 -0
  90. package/dist/cjs/src/components/overlays/tooltip/__tests__/Tooltip.test.js +829 -0
  91. package/dist/cjs/src/components/tab/__tests__/TabButton.test.js +252 -0
  92. package/dist/cjs/src/generated/scoped-css.js +1 -1
  93. package/dist/cjs/src/hooks/__tests__/useCallbackRef.test.js +152 -0
  94. package/dist/cjs/src/hooks/__tests__/useMediaQuery.test.js +119 -0
  95. package/dist/cjs/src/hooks/__tests__/usePortalState.ssr.test.js +25 -0
  96. package/dist/cjs/src/hooks/dropdown/__tests__/dropdownHooks.test.js +168 -0
  97. package/dist/cjs/src/types/component-meta.js +0 -4
  98. package/dist/cjs/src/utils/__tests__/date-picker.test.js +105 -0
  99. package/dist/cjs/src/utils/dropdown/__tests__/dropdownUtils.test.js +24 -0
  100. package/dist/cjs/src/utils/dropdown/__tests__/multiSelect.test.js +49 -0
  101. package/dist/cjs/src/utils/dropdown/multiSelect.js +1 -6
  102. package/dist/cjs/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +67 -0
  103. package/dist/cjs/vitest.config.js +22 -5
  104. package/dist/esm/assets/scripts/notification/const/icons.js +0 -1
  105. package/dist/esm/assets/scripts/notification/const/index.js +2 -2
  106. package/dist/esm/assets/scripts/notification/const/sizes.js +4 -4
  107. package/dist/esm/assets/scripts/notification/index.js +1 -1
  108. package/dist/esm/assets/scripts/shared/ButtonCloseX.js +6 -3
  109. package/dist/esm/assets/scripts/tooltip/const/classNames.js +23 -0
  110. package/dist/esm/assets/scripts/tooltip/const/constants.js +52 -0
  111. package/dist/esm/assets/scripts/tooltip/const/icons.js +9 -0
  112. package/dist/esm/assets/scripts/tooltip/const/index.js +5 -0
  113. package/dist/esm/assets/scripts/tooltip/const/templates.js +60 -0
  114. package/dist/esm/assets/scripts/tooltip/const/types.js +1 -0
  115. package/dist/esm/assets/scripts/utils/sanitize.js +0 -12
  116. package/dist/esm/src/__tests__/helpers/dom.js +8 -0
  117. package/dist/esm/src/__tests__/helpers/fileInput.js +78 -0
  118. package/dist/esm/src/__tests__/helpers/fixedToday.js +10 -0
  119. package/dist/esm/src/__tests__/helpers/matchMedia.js +44 -0
  120. package/dist/esm/src/__tests__/helpers/rect.js +18 -0
  121. package/dist/esm/src/components/action/button/__tests__/Button.test.js +257 -0
  122. package/dist/esm/src/components/action/button-group/__tests__/ButtonGroup.test.js +264 -0
  123. package/dist/esm/src/components/data-display/data-grid/__tests__/DataGrid.test.js +347 -0
  124. package/dist/esm/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +317 -0
  125. package/dist/esm/src/components/data-display/table/__tests__/Table.dnd.test.js +310 -0
  126. package/dist/esm/src/components/data-display/table/__tests__/Table.scroll.test.js +191 -0
  127. package/dist/esm/src/components/data-display/table/__tests__/Table.test.js +379 -0
  128. package/dist/esm/src/components/data-display/table/__tests__/dnd-context.test.js +58 -0
  129. package/dist/esm/src/components/data-display/table/__tests__/dnd-preview.test.js +227 -0
  130. package/dist/esm/src/components/data-display/table/__tests__/tableDndTestUtils.js +240 -0
  131. package/dist/esm/src/components/data-display/table/__tests__/tableTestUtils.js +40 -0
  132. package/dist/esm/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +359 -0
  133. package/dist/esm/src/components/data-display/table/useTableScrollbars.js +1 -1
  134. package/dist/esm/src/components/feedback-and-status/badge/Badge.js +1 -1
  135. package/dist/esm/src/components/feedback-and-status/badge/__tests__/Badge.test.js +186 -0
  136. package/dist/esm/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +116 -0
  137. package/dist/esm/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +91 -0
  138. package/dist/esm/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +61 -0
  139. package/dist/esm/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +123 -0
  140. package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +274 -0
  141. package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +246 -0
  142. package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +19 -0
  143. package/dist/esm/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +99 -0
  144. package/dist/esm/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +73 -0
  145. package/dist/esm/src/components/feedback-and-status/tag/__tests__/Tag.test.js +601 -0
  146. package/dist/esm/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +210 -0
  147. package/dist/esm/src/components/forms-and-input/combo-box/ComboBox.js +1 -1
  148. package/dist/esm/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +439 -0
  149. package/dist/esm/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +151 -0
  150. package/dist/esm/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +77 -0
  151. package/dist/esm/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +544 -0
  152. package/dist/esm/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +546 -0
  153. package/dist/esm/src/components/forms-and-input/date-picker/__tests__/utils.test.js +31 -0
  154. package/dist/esm/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +263 -0
  155. package/dist/esm/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +413 -0
  156. package/dist/esm/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +233 -0
  157. package/dist/esm/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +567 -0
  158. package/dist/esm/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +110 -0
  159. package/dist/esm/src/components/forms-and-input/radio/__tests__/Radio.test.js +54 -0
  160. package/dist/esm/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +275 -0
  161. package/dist/esm/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +235 -1
  162. package/dist/esm/src/components/forms-and-input/select/__tests__/Select.test.js +272 -0
  163. package/dist/esm/src/components/forms-and-input/select-box/SelectBox.js +1 -1
  164. package/dist/esm/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +368 -0
  165. package/dist/esm/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +1332 -0
  166. package/dist/esm/src/components/forms-and-input/slider/__tests__/Slider.test.js +387 -0
  167. package/dist/esm/src/components/forms-and-input/switch/__tests__/Switch.test.js +314 -0
  168. package/dist/esm/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +252 -0
  169. package/dist/esm/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +155 -0
  170. package/dist/esm/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +135 -0
  171. package/dist/esm/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +64 -0
  172. package/dist/esm/src/components/layout/block-container/__tests__/BlockContainer.test.js +56 -0
  173. package/dist/esm/src/components/layout/block-header/__tests__/BlockHeader.test.js +166 -0
  174. package/dist/esm/src/components/layout/block-header/__tests__/SubTitle.test.js +74 -0
  175. package/dist/esm/src/components/layout/divider/__tests__/Divider.test.js +62 -0
  176. package/dist/esm/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +144 -0
  177. package/dist/esm/src/components/layout/page-title/__tests__/PageTitle.test.js +161 -0
  178. package/dist/esm/src/components/layout/page-title/__tests__/pageTitleStyle.test.js +91 -0
  179. package/dist/esm/src/components/navigation/context-tab/__tests__/ContextTab.test.js +613 -0
  180. package/dist/esm/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +589 -0
  181. package/dist/esm/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +209 -0
  182. package/dist/esm/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +282 -0
  183. package/dist/esm/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +252 -0
  184. package/dist/esm/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +556 -0
  185. package/dist/esm/src/components/overlays/dropdown/__tests__/Dropdown.test.js +1017 -0
  186. package/dist/esm/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +15 -0
  187. package/dist/esm/src/components/overlays/dropdown/__tests__/utils.test.js +57 -1
  188. package/dist/esm/src/components/overlays/modal/__tests__/Modal.test.js +423 -0
  189. package/dist/esm/src/components/overlays/notification/__tests__/FloatingNotification.test.js +281 -0
  190. package/dist/esm/src/components/overlays/notification/__tests__/MessageNotification.test.js +12 -0
  191. package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +1 -1
  192. package/dist/esm/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +139 -0
  193. package/dist/esm/src/components/overlays/tooltip/__tests__/Tooltip.test.js +826 -0
  194. package/dist/esm/src/components/tab/__tests__/TabButton.test.js +249 -0
  195. package/dist/esm/src/generated/scoped-css.js +1 -1
  196. package/dist/esm/src/hooks/__tests__/useCallbackRef.test.js +149 -0
  197. package/dist/esm/src/hooks/__tests__/useMediaQuery.test.js +116 -0
  198. package/dist/esm/src/hooks/__tests__/usePortalState.ssr.test.js +22 -0
  199. package/dist/esm/src/hooks/dropdown/__tests__/dropdownHooks.test.js +165 -0
  200. package/dist/esm/src/types/component-meta.js +0 -4
  201. package/dist/esm/src/utils/__tests__/date-picker.test.js +107 -2
  202. package/dist/esm/src/utils/dropdown/__tests__/dropdownUtils.test.js +24 -0
  203. package/dist/esm/src/utils/dropdown/__tests__/multiSelect.test.js +46 -0
  204. package/dist/esm/src/utils/dropdown/multiSelect.js +5 -5
  205. package/dist/esm/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +64 -0
  206. package/dist/esm/vitest.config.js +22 -5
  207. package/dist/temp/assets/scripts/notification/const/icons.d.ts +0 -7
  208. package/dist/temp/assets/scripts/notification/const/icons.js +0 -1
  209. package/dist/temp/assets/scripts/notification/const/index.d.ts +3 -3
  210. package/dist/temp/assets/scripts/notification/const/index.js +2 -2
  211. package/dist/temp/assets/scripts/notification/const/sizes.d.ts +2 -14
  212. package/dist/temp/assets/scripts/notification/const/sizes.js +4 -4
  213. package/dist/temp/assets/scripts/notification/const/types.d.ts +3 -2
  214. package/dist/temp/assets/scripts/notification/index.d.ts +1 -1
  215. package/dist/temp/assets/scripts/notification/index.js +1 -1
  216. package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +0 -2
  217. package/dist/temp/assets/scripts/shared/ButtonCloseX.js +6 -3
  218. package/dist/temp/assets/scripts/table/scrollbar/const.d.ts +0 -1
  219. package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  220. package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
  221. package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
  222. package/dist/temp/assets/scripts/tooltip/const/constants.js +48 -0
  223. package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
  224. package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
  225. package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
  226. package/dist/temp/assets/scripts/tooltip/const/index.js +5 -0
  227. package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
  228. package/dist/temp/assets/scripts/tooltip/const/templates.js +60 -0
  229. package/dist/temp/assets/scripts/tooltip/const/types.d.ts +17 -0
  230. package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
  231. package/dist/temp/assets/scripts/utils/sanitize.d.ts +0 -6
  232. package/dist/temp/assets/scripts/utils/sanitize.js +0 -12
  233. package/dist/temp/src/__tests__/helpers/dom.d.ts +2 -0
  234. package/dist/temp/src/__tests__/helpers/dom.js +8 -0
  235. package/dist/temp/src/__tests__/helpers/fileInput.d.ts +27 -0
  236. package/dist/temp/src/__tests__/helpers/fileInput.js +70 -0
  237. package/dist/temp/src/__tests__/helpers/fixedToday.d.ts +4 -0
  238. package/dist/temp/src/__tests__/helpers/fixedToday.js +8 -0
  239. package/dist/temp/src/__tests__/helpers/matchMedia.d.ts +13 -0
  240. package/dist/temp/src/__tests__/helpers/matchMedia.js +42 -0
  241. package/dist/temp/src/__tests__/helpers/rect.d.ts +2 -0
  242. package/dist/temp/src/__tests__/helpers/rect.js +5 -0
  243. package/dist/temp/src/components/action/button/__tests__/Button.test.d.ts +1 -0
  244. package/dist/temp/src/components/action/button/__tests__/Button.test.js +180 -0
  245. package/dist/temp/src/components/action/button-group/__tests__/ButtonGroup.test.d.ts +1 -0
  246. package/dist/temp/src/components/action/button-group/__tests__/ButtonGroup.test.js +162 -0
  247. package/dist/temp/src/components/data-display/data-grid/__tests__/DataGrid.test.d.ts +1 -0
  248. package/dist/temp/src/components/data-display/data-grid/__tests__/DataGrid.test.js +291 -0
  249. package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.d.ts +1 -0
  250. package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +255 -0
  251. package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.test.d.ts +1 -0
  252. package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.test.js +240 -0
  253. package/dist/temp/src/components/data-display/table/__tests__/Table.scroll.test.d.ts +1 -0
  254. package/dist/temp/src/components/data-display/table/__tests__/Table.scroll.test.js +145 -0
  255. package/dist/temp/src/components/data-display/table/__tests__/Table.test.d.ts +1 -0
  256. package/dist/temp/src/components/data-display/table/__tests__/Table.test.js +295 -0
  257. package/dist/temp/src/components/data-display/table/__tests__/dnd-context.test.d.ts +1 -0
  258. package/dist/temp/src/components/data-display/table/__tests__/dnd-context.test.js +42 -0
  259. package/dist/temp/src/components/data-display/table/__tests__/dnd-preview.test.d.ts +1 -0
  260. package/dist/temp/src/components/data-display/table/__tests__/dnd-preview.test.js +226 -0
  261. package/dist/temp/src/components/data-display/table/__tests__/tableDndTestUtils.d.ts +76 -0
  262. package/dist/temp/src/components/data-display/table/__tests__/tableDndTestUtils.js +153 -0
  263. package/dist/temp/src/components/data-display/table/__tests__/tableTestUtils.d.ts +11 -0
  264. package/dist/temp/src/components/data-display/table/__tests__/tableTestUtils.js +40 -0
  265. package/dist/temp/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.d.ts +1 -0
  266. package/dist/temp/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +269 -0
  267. package/dist/temp/src/components/data-display/table/dnd-context.d.ts +1 -1
  268. package/dist/temp/src/components/data-display/table/useTableScrollbars.d.ts +2 -2
  269. package/dist/temp/src/components/data-display/table/useTableScrollbars.js +1 -1
  270. package/dist/temp/src/components/feedback-and-status/badge/Badge.d.ts +1 -1
  271. package/dist/temp/src/components/feedback-and-status/badge/Badge.js +1 -1
  272. package/dist/temp/src/components/feedback-and-status/badge/__tests__/Badge.test.d.ts +1 -0
  273. package/dist/temp/src/components/feedback-and-status/badge/__tests__/Badge.test.js +136 -0
  274. package/dist/temp/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.d.ts +1 -0
  275. package/dist/temp/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +103 -0
  276. package/dist/temp/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.d.ts +1 -0
  277. package/dist/temp/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +81 -0
  278. package/dist/temp/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.d.ts +1 -0
  279. package/dist/temp/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +53 -0
  280. package/dist/temp/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.d.ts +1 -0
  281. package/dist/temp/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +86 -0
  282. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.d.ts +1 -0
  283. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +221 -0
  284. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.d.ts +1 -0
  285. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +168 -0
  286. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/utils.test.d.ts +1 -0
  287. package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +35 -0
  288. package/dist/temp/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.d.ts +1 -0
  289. package/dist/temp/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +106 -0
  290. package/dist/temp/src/components/feedback-and-status/spinner/__tests__/Spinner.test.d.ts +1 -0
  291. package/dist/temp/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +73 -0
  292. package/dist/temp/src/components/feedback-and-status/tag/__tests__/Tag.test.d.ts +1 -0
  293. package/dist/temp/src/components/feedback-and-status/tag/__tests__/Tag.test.js +392 -0
  294. package/dist/temp/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.d.ts +1 -0
  295. package/dist/temp/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +180 -0
  296. package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.d.ts +1 -2
  297. package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.js +1 -1
  298. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.d.ts +1 -0
  299. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +295 -0
  300. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.d.ts +1 -0
  301. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +111 -0
  302. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.d.ts +22 -0
  303. package/dist/temp/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +69 -0
  304. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.d.ts +1 -0
  305. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +358 -0
  306. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.d.ts +1 -0
  307. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +361 -0
  308. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/utils.test.d.ts +1 -0
  309. package/dist/temp/src/components/forms-and-input/date-picker/__tests__/utils.test.js +34 -0
  310. package/dist/temp/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.d.ts +1 -0
  311. package/dist/temp/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +206 -0
  312. package/dist/temp/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.d.ts +1 -0
  313. package/dist/temp/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +292 -0
  314. package/dist/temp/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.d.ts +1 -0
  315. package/dist/temp/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +177 -0
  316. package/dist/temp/src/components/forms-and-input/number-input/__tests__/NumberInput.test.d.ts +1 -0
  317. package/dist/temp/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +434 -0
  318. package/dist/temp/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.d.ts +1 -0
  319. package/dist/temp/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +88 -0
  320. package/dist/temp/src/components/forms-and-input/radio/__tests__/Radio.test.d.ts +1 -0
  321. package/dist/temp/src/components/forms-and-input/radio/__tests__/Radio.test.js +42 -0
  322. package/dist/temp/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +137 -0
  323. package/dist/temp/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +201 -1
  324. package/dist/temp/src/components/forms-and-input/select/__tests__/Select.test.d.ts +1 -0
  325. package/dist/temp/src/components/forms-and-input/select/__tests__/Select.test.js +214 -0
  326. package/dist/temp/src/components/forms-and-input/select-box/SelectBox.d.ts +1 -2
  327. package/dist/temp/src/components/forms-and-input/select-box/SelectBox.js +1 -1
  328. package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.d.ts +1 -0
  329. package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +312 -0
  330. package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.test.d.ts +1 -0
  331. package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +991 -0
  332. package/dist/temp/src/components/forms-and-input/slider/__tests__/Slider.test.d.ts +1 -0
  333. package/dist/temp/src/components/forms-and-input/slider/__tests__/Slider.test.js +294 -0
  334. package/dist/temp/src/components/forms-and-input/switch/__tests__/Switch.test.d.ts +1 -0
  335. package/dist/temp/src/components/forms-and-input/switch/__tests__/Switch.test.js +234 -0
  336. package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.test.d.ts +1 -0
  337. package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +207 -0
  338. package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.d.ts +1 -0
  339. package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +120 -0
  340. package/dist/temp/src/components/forms-and-input/toggle/__tests__/Toggle.test.d.ts +1 -0
  341. package/dist/temp/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +125 -0
  342. package/dist/temp/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.d.ts +1 -0
  343. package/dist/temp/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +47 -0
  344. package/dist/temp/src/components/layout/block-container/__tests__/BlockContainer.test.d.ts +1 -0
  345. package/dist/temp/src/components/layout/block-container/__tests__/BlockContainer.test.js +53 -0
  346. package/dist/temp/src/components/layout/block-header/__tests__/BlockHeader.test.d.ts +1 -0
  347. package/dist/temp/src/components/layout/block-header/__tests__/BlockHeader.test.js +127 -0
  348. package/dist/temp/src/components/layout/block-header/__tests__/SubTitle.test.d.ts +1 -0
  349. package/dist/temp/src/components/layout/block-header/__tests__/SubTitle.test.js +76 -0
  350. package/dist/temp/src/components/layout/divider/__tests__/Divider.test.d.ts +1 -0
  351. package/dist/temp/src/components/layout/divider/__tests__/Divider.test.js +53 -0
  352. package/dist/temp/src/components/layout/ncua-scope/__tests__/NcuaScope.test.d.ts +1 -0
  353. package/dist/temp/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +136 -0
  354. package/dist/temp/src/components/layout/page-title/__tests__/PageTitle.test.d.ts +1 -0
  355. package/dist/temp/src/components/layout/page-title/__tests__/PageTitle.test.js +119 -0
  356. package/dist/temp/src/components/layout/page-title/__tests__/pageTitleStyle.test.d.ts +1 -0
  357. package/dist/temp/src/components/layout/page-title/__tests__/pageTitleStyle.test.js +94 -0
  358. package/dist/temp/src/components/navigation/context-tab/__tests__/ContextTab.test.d.ts +1 -0
  359. package/dist/temp/src/components/navigation/context-tab/__tests__/ContextTab.test.js +447 -0
  360. package/dist/temp/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.d.ts +1 -0
  361. package/dist/temp/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +352 -0
  362. package/dist/temp/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.d.ts +1 -0
  363. package/dist/temp/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +152 -0
  364. package/dist/temp/src/components/navigation/pagination/__tests__/Pagination.navigation.test.d.ts +1 -0
  365. package/dist/temp/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +265 -0
  366. package/dist/temp/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.d.ts +1 -0
  367. package/dist/temp/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +172 -0
  368. package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.d.ts +1 -0
  369. package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +423 -0
  370. package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.test.d.ts +1 -0
  371. package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.test.js +699 -0
  372. package/dist/temp/src/components/overlays/dropdown/__tests__/dropdownTestUtils.d.ts +3 -0
  373. package/dist/temp/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +17 -0
  374. package/dist/temp/src/components/overlays/dropdown/__tests__/utils.test.js +24 -1
  375. package/dist/temp/src/components/overlays/modal/__tests__/Modal.test.d.ts +1 -0
  376. package/dist/temp/src/components/overlays/modal/__tests__/Modal.test.js +307 -0
  377. package/dist/temp/src/components/overlays/notification/MessageNotificationParts.d.ts +0 -1
  378. package/dist/temp/src/components/overlays/notification/NotificationActionButtons.d.ts +0 -1
  379. package/dist/temp/src/components/overlays/notification/__tests__/FloatingNotification.test.d.ts +1 -0
  380. package/dist/temp/src/components/overlays/notification/__tests__/FloatingNotification.test.js +218 -0
  381. package/dist/temp/src/components/overlays/notification/__tests__/MessageNotification.test.js +10 -0
  382. package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +1 -3
  383. package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +1 -1
  384. package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.d.ts +1 -0
  385. package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +112 -0
  386. package/dist/temp/src/components/overlays/tooltip/__tests__/Tooltip.test.d.ts +1 -0
  387. package/dist/temp/src/components/overlays/tooltip/__tests__/Tooltip.test.js +538 -0
  388. package/dist/temp/src/components/tab/__tests__/TabButton.test.d.ts +1 -0
  389. package/dist/temp/src/components/tab/__tests__/TabButton.test.js +181 -0
  390. package/dist/temp/src/constant/date-picker.d.ts +2 -1
  391. package/dist/temp/src/generated/scoped-css.js +1 -1
  392. package/dist/temp/src/hooks/__tests__/useCallbackRef.test.d.ts +1 -0
  393. package/dist/temp/src/hooks/__tests__/useCallbackRef.test.js +99 -0
  394. package/dist/temp/src/hooks/__tests__/useMediaQuery.test.d.ts +1 -0
  395. package/dist/temp/src/hooks/__tests__/useMediaQuery.test.js +95 -0
  396. package/dist/temp/src/hooks/__tests__/usePortalState.ssr.test.d.ts +1 -0
  397. package/dist/temp/src/hooks/__tests__/usePortalState.ssr.test.js +19 -0
  398. package/dist/temp/src/hooks/dropdown/__tests__/dropdownHooks.test.d.ts +1 -0
  399. package/dist/temp/src/hooks/dropdown/__tests__/dropdownHooks.test.js +147 -0
  400. package/dist/temp/src/types/component-meta.d.ts +2 -1
  401. package/dist/temp/src/types/component-meta.js +0 -4
  402. package/dist/temp/src/utils/__tests__/date-picker.test.js +58 -2
  403. package/dist/temp/src/utils/dropdown/__tests__/dropdownUtils.test.js +9 -0
  404. package/dist/temp/src/utils/dropdown/__tests__/multiSelect.test.d.ts +1 -0
  405. package/dist/temp/src/utils/dropdown/__tests__/multiSelect.test.js +41 -0
  406. package/dist/temp/src/utils/dropdown/multiSelect.d.ts +0 -20
  407. package/dist/temp/src/utils/dropdown/multiSelect.js +5 -5
  408. package/dist/temp/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.d.ts +1 -0
  409. package/dist/temp/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +57 -0
  410. package/dist/temp/vitest.config.js +20 -3
  411. package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -7
  412. package/dist/types/assets/scripts/notification/const/index.d.ts +3 -3
  413. package/dist/types/assets/scripts/notification/const/sizes.d.ts +2 -14
  414. package/dist/types/assets/scripts/notification/const/types.d.ts +3 -2
  415. package/dist/types/assets/scripts/notification/index.d.ts +1 -1
  416. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -2
  417. package/dist/types/assets/scripts/table/scrollbar/const.d.ts +0 -1
  418. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +17 -0
  419. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +33 -0
  420. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +4 -0
  421. package/dist/types/assets/scripts/tooltip/const/index.d.ts +5 -0
  422. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +16 -0
  423. package/dist/types/assets/scripts/tooltip/const/types.d.ts +17 -0
  424. package/dist/types/assets/scripts/utils/sanitize.d.ts +0 -6
  425. package/dist/types/src/__tests__/helpers/dom.d.ts +2 -0
  426. package/dist/types/src/__tests__/helpers/fileInput.d.ts +27 -0
  427. package/dist/types/src/__tests__/helpers/fixedToday.d.ts +4 -0
  428. package/dist/types/src/__tests__/helpers/matchMedia.d.ts +13 -0
  429. package/dist/types/src/__tests__/helpers/rect.d.ts +2 -0
  430. package/dist/types/src/components/action/button/__tests__/Button.test.d.ts +1 -0
  431. package/dist/types/src/components/action/button-group/__tests__/ButtonGroup.test.d.ts +1 -0
  432. package/dist/types/src/components/data-display/data-grid/__tests__/DataGrid.test.d.ts +1 -0
  433. package/dist/types/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.d.ts +1 -0
  434. package/dist/types/src/components/data-display/table/__tests__/Table.dnd.test.d.ts +1 -0
  435. package/dist/types/src/components/data-display/table/__tests__/Table.scroll.test.d.ts +1 -0
  436. package/dist/types/src/components/data-display/table/__tests__/Table.test.d.ts +1 -0
  437. package/dist/types/src/components/data-display/table/__tests__/dnd-context.test.d.ts +1 -0
  438. package/dist/types/src/components/data-display/table/__tests__/dnd-preview.test.d.ts +1 -0
  439. package/dist/types/src/components/data-display/table/__tests__/tableDndTestUtils.d.ts +76 -0
  440. package/dist/types/src/components/data-display/table/__tests__/tableTestUtils.d.ts +11 -0
  441. package/dist/types/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.d.ts +1 -0
  442. package/dist/types/src/components/data-display/table/dnd-context.d.ts +1 -1
  443. package/dist/types/src/components/data-display/table/useTableScrollbars.d.ts +2 -2
  444. package/dist/types/src/components/feedback-and-status/badge/Badge.d.ts +1 -1
  445. package/dist/types/src/components/feedback-and-status/badge/__tests__/Badge.test.d.ts +1 -0
  446. package/dist/types/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.d.ts +1 -0
  447. package/dist/types/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.d.ts +1 -0
  448. package/dist/types/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.d.ts +1 -0
  449. package/dist/types/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.d.ts +1 -0
  450. package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.d.ts +1 -0
  451. package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.d.ts +1 -0
  452. package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/utils.test.d.ts +1 -0
  453. package/dist/types/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.d.ts +1 -0
  454. package/dist/types/src/components/feedback-and-status/spinner/__tests__/Spinner.test.d.ts +1 -0
  455. package/dist/types/src/components/feedback-and-status/tag/__tests__/Tag.test.d.ts +1 -0
  456. package/dist/types/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.d.ts +1 -0
  457. package/dist/types/src/components/forms-and-input/combo-box/ComboBox.d.ts +1 -2
  458. package/dist/types/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.d.ts +1 -0
  459. package/dist/types/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.d.ts +1 -0
  460. package/dist/types/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.d.ts +22 -0
  461. package/dist/types/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.d.ts +1 -0
  462. package/dist/types/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.d.ts +1 -0
  463. package/dist/types/src/components/forms-and-input/date-picker/__tests__/utils.test.d.ts +1 -0
  464. package/dist/types/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.d.ts +1 -0
  465. package/dist/types/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.d.ts +1 -0
  466. package/dist/types/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.d.ts +1 -0
  467. package/dist/types/src/components/forms-and-input/number-input/__tests__/NumberInput.test.d.ts +1 -0
  468. package/dist/types/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.d.ts +1 -0
  469. package/dist/types/src/components/forms-and-input/radio/__tests__/Radio.test.d.ts +1 -0
  470. package/dist/types/src/components/forms-and-input/select/__tests__/Select.test.d.ts +1 -0
  471. package/dist/types/src/components/forms-and-input/select-box/SelectBox.d.ts +1 -2
  472. package/dist/types/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.d.ts +1 -0
  473. package/dist/types/src/components/forms-and-input/select-box/__tests__/SelectBox.test.d.ts +1 -0
  474. package/dist/types/src/components/forms-and-input/slider/__tests__/Slider.test.d.ts +1 -0
  475. package/dist/types/src/components/forms-and-input/switch/__tests__/Switch.test.d.ts +1 -0
  476. package/dist/types/src/components/forms-and-input/textarea/__tests__/Textarea.test.d.ts +1 -0
  477. package/dist/types/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.d.ts +1 -0
  478. package/dist/types/src/components/forms-and-input/toggle/__tests__/Toggle.test.d.ts +1 -0
  479. package/dist/types/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.d.ts +1 -0
  480. package/dist/types/src/components/layout/block-container/__tests__/BlockContainer.test.d.ts +1 -0
  481. package/dist/types/src/components/layout/block-header/__tests__/BlockHeader.test.d.ts +1 -0
  482. package/dist/types/src/components/layout/block-header/__tests__/SubTitle.test.d.ts +1 -0
  483. package/dist/types/src/components/layout/divider/__tests__/Divider.test.d.ts +1 -0
  484. package/dist/types/src/components/layout/ncua-scope/__tests__/NcuaScope.test.d.ts +1 -0
  485. package/dist/types/src/components/layout/page-title/__tests__/PageTitle.test.d.ts +1 -0
  486. package/dist/types/src/components/layout/page-title/__tests__/pageTitleStyle.test.d.ts +1 -0
  487. package/dist/types/src/components/navigation/context-tab/__tests__/ContextTab.test.d.ts +1 -0
  488. package/dist/types/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.d.ts +1 -0
  489. package/dist/types/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.d.ts +1 -0
  490. package/dist/types/src/components/navigation/pagination/__tests__/Pagination.navigation.test.d.ts +1 -0
  491. package/dist/types/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.d.ts +1 -0
  492. package/dist/types/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.d.ts +1 -0
  493. package/dist/types/src/components/overlays/dropdown/__tests__/Dropdown.test.d.ts +1 -0
  494. package/dist/types/src/components/overlays/dropdown/__tests__/dropdownTestUtils.d.ts +3 -0
  495. package/dist/types/src/components/overlays/modal/__tests__/Modal.test.d.ts +1 -0
  496. package/dist/types/src/components/overlays/notification/MessageNotificationParts.d.ts +0 -1
  497. package/dist/types/src/components/overlays/notification/NotificationActionButtons.d.ts +0 -1
  498. package/dist/types/src/components/overlays/notification/__tests__/FloatingNotification.test.d.ts +1 -0
  499. package/dist/types/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +1 -3
  500. package/dist/types/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.d.ts +1 -0
  501. package/dist/types/src/components/overlays/tooltip/__tests__/Tooltip.test.d.ts +1 -0
  502. package/dist/types/src/components/tab/__tests__/TabButton.test.d.ts +1 -0
  503. package/dist/types/src/constant/date-picker.d.ts +2 -1
  504. package/dist/types/src/hooks/__tests__/useCallbackRef.test.d.ts +1 -0
  505. package/dist/types/src/hooks/__tests__/useMediaQuery.test.d.ts +1 -0
  506. package/dist/types/src/hooks/__tests__/usePortalState.ssr.test.d.ts +1 -0
  507. package/dist/types/src/hooks/dropdown/__tests__/dropdownHooks.test.d.ts +1 -0
  508. package/dist/types/src/types/component-meta.d.ts +2 -1
  509. package/dist/types/src/utils/dropdown/__tests__/multiSelect.test.d.ts +1 -0
  510. package/dist/types/src/utils/dropdown/multiSelect.d.ts +0 -20
  511. package/dist/types/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.d.ts +1 -0
  512. package/dist/ui-admin/assets/styles/style.css +15 -18
  513. package/package.json +3 -8
  514. package/dist/cjs/src/constant/index.js +0 -27
  515. package/dist/cjs/src/constant/size.js +0 -7
  516. package/dist/cjs/src/contexts/index.js +0 -16
  517. package/dist/esm/src/constant/index.js +0 -2
  518. package/dist/esm/src/constant/size.js +0 -1
  519. package/dist/esm/src/contexts/index.js +0 -1
  520. package/dist/temp/src/constant/index.d.ts +0 -2
  521. package/dist/temp/src/constant/index.js +0 -2
  522. package/dist/temp/src/constant/size.d.ts +0 -1
  523. package/dist/temp/src/constant/size.js +0 -1
  524. package/dist/temp/src/contexts/index.d.ts +0 -1
  525. package/dist/temp/src/contexts/index.js +0 -1
  526. package/dist/types/src/constant/index.d.ts +0 -2
  527. package/dist/types/src/constant/size.d.ts +0 -1
  528. package/dist/types/src/contexts/index.d.ts +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SVG_ICONS = exports.MESSAGE_ICON_MAP = exports.ICON_MAP = exports.FULL_WIDTH_ICON_MAP = exports.FLOATING_ICON_MAP = void 0;
6
+ exports.SVG_ICONS = exports.MESSAGE_ICON_MAP = exports.FULL_WIDTH_ICON_MAP = exports.FLOATING_ICON_MAP = void 0;
7
7
  // SVG 아이콘들 (크기는 동적으로 설정)
8
8
  const SVG_ICONS = exports.SVG_ICONS = {
9
9
  'pin-02': size => `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${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>`,
@@ -28,7 +28,6 @@ const FULL_WIDTH_ICON_MAP = exports.FULL_WIDTH_ICON_MAP = {
28
28
  success: SVG_ICONS['check-circle'],
29
29
  info: SVG_ICONS['info-circle']
30
30
  };
31
- const ICON_MAP = exports.ICON_MAP = FULL_WIDTH_ICON_MAP;
32
31
  /** message 기본 타입 아이콘. floating 과 같은 4색에 info(neutral 과 같은 핀)를 더한다. */
33
32
  const MESSAGE_ICON_MAP = exports.MESSAGE_ICON_MAP = {
34
33
  neutral: SVG_ICONS['pin-02'],
@@ -9,24 +9,6 @@ Object.defineProperty(exports, "CLASS_NAMES", {
9
9
  return _classNames.CLASS_NAMES;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "CLOSE_BUTTON_SIZES", {
13
- enumerable: true,
14
- get: function () {
15
- return _sizes.CLOSE_BUTTON_SIZES;
16
- }
17
- });
18
- Object.defineProperty(exports, "CLOSE_BUTTON_SVG_SIZES", {
19
- enumerable: true,
20
- get: function () {
21
- return _sizes.CLOSE_BUTTON_SVG_SIZES;
22
- }
23
- });
24
- Object.defineProperty(exports, "FEATURED_ICON_SIZES", {
25
- enumerable: true,
26
- get: function () {
27
- return _sizes.FEATURED_ICON_SIZES;
28
- }
29
- });
30
12
  Object.defineProperty(exports, "FLOATING_ICON_MAP", {
31
13
  enumerable: true,
32
14
  get: function () {
@@ -45,18 +27,6 @@ Object.defineProperty(exports, "FULL_WIDTH_SIZES", {
45
27
  return _sizes.FULL_WIDTH_SIZES;
46
28
  }
47
29
  });
48
- Object.defineProperty(exports, "ICON_MAP", {
49
- enumerable: true,
50
- get: function () {
51
- return _icons.ICON_MAP;
52
- }
53
- });
54
- Object.defineProperty(exports, "ICON_PIXEL_SIZES", {
55
- enumerable: true,
56
- get: function () {
57
- return _sizes.ICON_PIXEL_SIZES;
58
- }
59
- });
60
30
  Object.defineProperty(exports, "MESSAGE_ICON_MAP", {
61
31
  enumerable: true,
62
32
  get: function () {
@@ -3,26 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getSizes = exports.MESSAGE_SIZES = exports.ICON_PIXEL_SIZES = exports.FULL_WIDTH_SIZES = exports.FEATURED_ICON_SIZES = exports.CLOSE_BUTTON_SVG_SIZES = exports.CLOSE_BUTTON_SIZES = void 0;
6
+ exports.getSizes = exports.MESSAGE_SIZES = exports.FULL_WIDTH_SIZES = void 0;
7
7
  // 알림 컴포넌트 사이즈 관련 상수들
8
8
  // FeaturedIcon 사이즈
9
- const FEATURED_ICON_SIZES = exports.FEATURED_ICON_SIZES = {
9
+ const FEATURED_ICON_SIZES = {
10
10
  MOBILE: 'md',
11
11
  DESKTOP: 'sm'
12
12
  };
13
13
  // SVG 아이콘 픽셀 사이즈
14
- const ICON_PIXEL_SIZES = exports.ICON_PIXEL_SIZES = {
14
+ const ICON_PIXEL_SIZES = {
15
15
  MOBILE: '20',
16
16
  DESKTOP: '16',
17
17
  FULL_WIDTH: '16' // Full-width는 항상 고정
18
18
  };
19
19
  // 닫기 버튼 사이즈
20
- const CLOSE_BUTTON_SIZES = exports.CLOSE_BUTTON_SIZES = {
20
+ const CLOSE_BUTTON_SIZES = {
21
21
  MOBILE: 'sm',
22
22
  DESKTOP: 'xs'
23
23
  };
24
24
  // 닫기 버튼 SVG 픽셀 사이즈
25
- const CLOSE_BUTTON_SVG_SIZES = exports.CLOSE_BUTTON_SVG_SIZES = {
25
+ const CLOSE_BUTTON_SVG_SIZES = {
26
26
  xs: 16,
27
27
  sm: 20
28
28
  };
@@ -7,7 +7,6 @@ var _exportNames = {
7
7
  CLASS_NAMES: true,
8
8
  FLOATING_ICON_MAP: true,
9
9
  FULL_WIDTH_ICON_MAP: true,
10
- ICON_MAP: true,
11
10
  SVG_ICONS: true,
12
11
  FloatingNotification: true,
13
12
  FullWidthNotification: true,
@@ -48,12 +47,6 @@ Object.defineProperty(exports, "FullWidthNotification", {
48
47
  return _FullWidthNotification.FullWidthNotification;
49
48
  }
50
49
  });
51
- Object.defineProperty(exports, "ICON_MAP", {
52
- enumerable: true,
53
- get: function () {
54
- return _const.ICON_MAP;
55
- }
56
- });
57
50
  Object.defineProperty(exports, "MessageNotification", {
58
51
  enumerable: true,
59
52
  get: function () {
@@ -4,28 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ButtonCloseX = ButtonCloseX;
7
- exports.X_CLOSE_SVG = exports.SVG_SIZE = void 0;
8
7
  // 공통 X버튼 로직 (React ButtonCloseX 컴포넌트와 동일한 구조)
9
8
  // React ButtonCloseX와 동일한 SVG 사이즈 매핑
10
- const SVG_SIZE = exports.SVG_SIZE = {
9
+ const SVG_SIZE = {
11
10
  xs: 16,
12
11
  sm: 20,
13
12
  md: 20,
14
13
  lg: 24
15
14
  };
15
+ // 버튼 id 난수 — 36진수 문자열에서 '0.' 뒤 9자리를 쓴다
16
+ const BUTTON_ID_RADIX = 36;
17
+ const BUTTON_ID_LENGTH = 9;
16
18
  // X버튼 SVG 아이콘
17
19
  const X_CLOSE_SVG = size => `<svg width="${size}" height="${size}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
18
20
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
19
21
  </svg>`;
20
22
  // X버튼 렌더링 유틸리티 (React ButtonCloseX와 동일한 인터페이스)
21
- exports.X_CLOSE_SVG = X_CLOSE_SVG;
22
23
  function ButtonCloseX(size) {
23
24
  let theme = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'light';
24
25
  let additionalClasses = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
25
26
  let ariaLabel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '닫기';
26
27
  let onClick = arguments.length > 4 ? arguments[4] : undefined;
27
28
  const svgSize = SVG_SIZE[size];
28
- const buttonId = `close-btn-${Math.random().toString(36).substr(2, 9)}`;
29
+ const buttonId = `close-btn-${Math.random().toString(BUTTON_ID_RADIX).substr(2, BUTTON_ID_LENGTH)}`;
29
30
  const buttonHTML = `
30
31
  <button type="button" id="${buttonId}" class="ncua-button-close-x ncua-button-close-x--${size} ncua-button-close-x--${theme} ${additionalClasses}" aria-label="${ariaLabel}">
31
32
  ${X_CLOSE_SVG(svgSize.toString())}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CLASS_NAMES = void 0;
7
+ // Tooltip CSS 클래스명 상수들
8
+ const CLASS_NAMES = exports.CLASS_NAMES = {
9
+ // 기본 클래스
10
+ TOOLTIP: 'ncua-tooltip',
11
+ TOOLTIP_ICON: 'ncua-tooltip__icon',
12
+ TOOLTIP_BG: 'ncua-tooltip__bg',
13
+ TOOLTIP_TITLE: 'ncua-tooltip__title',
14
+ TOOLTIP_CONTENT: 'ncua-tooltip__content',
15
+ TOOLTIP_CLOSE_BUTTON: 'ncua-tooltip__close-button',
16
+ // 수정자 클래스 (modifier classes)
17
+ TOOLTIP_HIDDEN_ARROW: 'ncua-tooltip--hidden-arrow',
18
+ TOOLTIP_STROKE: 'ncua-tooltip--stroke',
19
+ TOOLTIP_AUTO: 'ncua-tooltip--auto',
20
+ // 배경 상태 클래스
21
+ TOOLTIP_BG_VISIBLE: 'ncua-tooltip__bg--visible',
22
+ TOOLTIP_BG_MEASURING: 'ncua-tooltip__bg--measuring',
23
+ TOOLTIP_BG_FORCE_HIDDEN: 'ncua-tooltip__bg--force-hidden',
24
+ // 레이어 관련 클래스
25
+ TOOLTIP_GLOBAL_LAYER: 'ncua-tooltip-global-layer',
26
+ TOOLTIP_PANEL: 'ncua-tooltip-panel',
27
+ // 버튼 클래스
28
+ BUTTON_CLOSE_X: 'ncua-button-close-x'
29
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Z_INDEX = exports.VIEWPORT_MARGIN = exports.TRANSITION_DURATION = exports.TOOLTIP_OFFSET = exports.TOOLTIP_DEFAULT_VALUE = exports.POSITION_PRIORITY = exports.POSITION = exports.OPACITY = exports.OFFSCREEN_POSITION = exports.MARGIN = exports.ICON_SIZES = exports.EVENT_OPTIONS = exports.DEFAULT_TOOLTIP_WIDTH = exports.DEFAULT_TOOLTIP_HEIGHT = void 0;
7
+ const MARGIN = exports.MARGIN = 10;
8
+ const DEFAULT_TOOLTIP_WIDTH = exports.DEFAULT_TOOLTIP_WIDTH = 200;
9
+ const DEFAULT_TOOLTIP_HEIGHT = exports.DEFAULT_TOOLTIP_HEIGHT = 60;
10
+ const POSITION_PRIORITY = exports.POSITION_PRIORITY = ['bottom', 'top', 'right', 'left'];
11
+ // 툴팁 위치 계산 관련 상수
12
+ const TOOLTIP_OFFSET = exports.TOOLTIP_OFFSET = 8; // 툴팁과 앵커 사이의 거리
13
+ const VIEWPORT_MARGIN = exports.VIEWPORT_MARGIN = 8; // 뷰포트 경계와의 최소 거리
14
+ // 아이콘 크기 상수
15
+ const ICON_SIZES = exports.ICON_SIZES = {
16
+ sm: 14,
17
+ md: 16
18
+ };
19
+ // 애니메이션 관련 상수
20
+ const TRANSITION_DURATION = exports.TRANSITION_DURATION = '0.18s';
21
+ const OFFSCREEN_POSITION = exports.OFFSCREEN_POSITION = '-99999px';
22
+ // 툴팁 상태 관련 상수
23
+ const OPACITY = exports.OPACITY = {
24
+ HIDDEN: '0',
25
+ VISIBLE: '1'
26
+ };
27
+ const POSITION = exports.POSITION = {
28
+ INITIAL: '0px',
29
+ OFFSCREEN: OFFSCREEN_POSITION
30
+ };
31
+ // z-index 관련 상수
32
+ // SCSS 토큰 `--z-index-tooltip`(base/_custom-variable.scss)과 동기 유지 — 변경 시 양쪽 같이 수정
33
+ const Z_INDEX = exports.Z_INDEX = {
34
+ TOOLTIP_LAYER: 2000 // 툴팁 전역 레이어 기본 z-index (고도몰 기준)
35
+ };
36
+ // 이벤트 관련 상수
37
+ const EVENT_OPTIONS = exports.EVENT_OPTIONS = {
38
+ PASSIVE: {
39
+ passive: true
40
+ },
41
+ ONCE: {
42
+ once: true
43
+ }
44
+ };
45
+ const TOOLTIP_DEFAULT_VALUE = exports.TOOLTIP_DEFAULT_VALUE = {
46
+ tooltipType: 'white',
47
+ iconType: 'stroke',
48
+ position: 'auto',
49
+ size: 'sm',
50
+ hideArrow: false,
51
+ title: '',
52
+ content: '',
53
+ type: 'short',
54
+ zIndex: Z_INDEX.TOOLTIP_LAYER,
55
+ useShadowDOM: false,
56
+ className: '',
57
+ iconColor: 'var(--gray-300)' // React Tooltip의 iconColor 기본값과 동일
58
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SVG_ICONS = void 0;
7
+ // SVG 아이콘들
8
+ const SVG_ICONS = exports.SVG_ICONS = {
9
+ 'help-circle-stroke': size => `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="none" viewBox="0 0 24 24" stroke="none">
10
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3m.08 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"></path>
11
+ </svg>`,
12
+ 'help-circle-fill': size => `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" fill="none" viewBox="0 0 24 24" stroke="none">
13
+ <path fill="currentColor" fill-rule="evenodd" d="M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m-1.093 7.271a2 2 0 0 1 3.013 1.727V10c0 .47-.365.958-1.055 1.418a6 6 0 0 1-1.262.634 1 1 0 0 0 .633 1.897l.169-.061a8.05 8.05 0 0 0 1.57-.806c.81-.54 1.944-1.55 1.945-3.081a4 4 0 0 0-7.773-1.333 1 1 0 0 0 1.886.664 2 2 0 0 1 .874-1.06M12 16a1 1 0 1 0 0 2h.01a1 1 0 0 0 0-2z" clip-rule="evenodd"></path>
14
+ </svg>`
15
+ };
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "CLASS_NAMES", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _classNames.CLASS_NAMES;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "CSS_TEMPLATES", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _templates.CSS_TEMPLATES;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "DEFAULT_TOOLTIP_HEIGHT", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _constants.DEFAULT_TOOLTIP_HEIGHT;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "DEFAULT_TOOLTIP_WIDTH", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _constants.DEFAULT_TOOLTIP_WIDTH;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "EVENT_OPTIONS", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _constants.EVENT_OPTIONS;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "FALLBACK_ICON_SVG", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _templates.FALLBACK_ICON_SVG;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "HTML_TEMPLATES", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _templates.HTML_TEMPLATES;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "ICON_SIZES", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _constants.ICON_SIZES;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "MARGIN", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _constants.MARGIN;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "OFFSCREEN_POSITION", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _constants.OFFSCREEN_POSITION;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "OPACITY", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _constants.OPACITY;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "POSITION", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _constants.POSITION;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "POSITION_PRIORITY", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _constants.POSITION_PRIORITY;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "SVG_ICONS", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _icons.SVG_ICONS;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "TOOLTIP_DEFAULT_VALUE", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _constants.TOOLTIP_DEFAULT_VALUE;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "TOOLTIP_OFFSET", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _constants.TOOLTIP_OFFSET;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "VIEWPORT_MARGIN", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _constants.VIEWPORT_MARGIN;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "Z_INDEX", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _constants.Z_INDEX;
112
+ }
113
+ });
114
+ var _classNames = require("./classNames");
115
+ var _constants = require("./constants");
116
+ var _icons = require("./icons");
117
+ var _templates = require("./templates");
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HTML_TEMPLATES = exports.FALLBACK_ICON_SVG = exports.CSS_TEMPLATES = void 0;
7
+ var _constants = require("./constants");
8
+ /**
9
+ * 툴팁 관련 CSS 및 HTML 템플릿
10
+ */
11
+ // CSS 템플릿
12
+ const CSS_TEMPLATES = exports.CSS_TEMPLATES = {
13
+ // 레이어 컨테이너 스타일 (클릭 통과)
14
+ LAYER_CONTAINER: zIndex => `
15
+ position: fixed;
16
+ inset: 0;
17
+ pointer-events: none;
18
+ z-index: ${zIndex};
19
+ display: block;
20
+ `,
21
+ // 툴팁 패널 스타일 (클릭 허용)
22
+ TOOLTIP_PANEL: zIndex => `
23
+ position: fixed;
24
+ left: ${_constants.OFFSCREEN_POSITION};
25
+ top: ${_constants.OFFSCREEN_POSITION};
26
+ opacity: 0;
27
+ transition: opacity ${_constants.TRANSITION_DURATION} ease;
28
+ pointer-events: auto;
29
+ z-index: ${zIndex};
30
+ right: auto;
31
+ bottom: auto;
32
+ transform: none;
33
+ `,
34
+ // 앵커 래퍼 스타일
35
+ ANCHOR_WRAPPER: `
36
+ display: inline-flex;
37
+ vertical-align: middle;
38
+ margin: 0 4px;
39
+ `,
40
+ // Shadow DOM 기본 스타일
41
+ // Shadow boundary는 스타일 격리하지만 CSS 커스텀 프로퍼티는 통과하므로 host 변수를 그대로 참조 가능
42
+ SHADOW_DOM_HOST: `
43
+ :host {
44
+ all: unset;
45
+ display: block;
46
+ font-family: var(--font-families-commerce-sans, system-ui);
47
+ color: black;
48
+ }
49
+ `
50
+ };
51
+ // HTML 템플릿
52
+ const HTML_TEMPLATES = exports.HTML_TEMPLATES = {
53
+ // 아이콘 래퍼
54
+ ICON_WRAPPER: (className, iconSvg) => `<span class="${className}">${iconSvg}</span>`,
55
+ // 툴팁 제목
56
+ TOOLTIP_TITLE: (className, title) => `<span class="${className}">${title}</span>`,
57
+ // 툴팁 콘텐츠 (일반)
58
+ TOOLTIP_CONTENT: (className, content) => `<span class="${className}">${content}</span>`,
59
+ // 툴팁 콘텐츠 (Shadow DOM)
60
+ TOOLTIP_CONTENT_SHADOW: className => `<span class="${className}" data-shadow-content></span>`
61
+ };
62
+ // 폴백 아이콘 SVG
63
+ const FALLBACK_ICON_SVG = size => `<svg width="${size}" height="${size}" viewBox="0 0 16 16" aria-hidden="true">
64
+ <circle cx="8" cy="8" r="7" stroke="currentColor" fill="none"/>
65
+ <text x="8" y="11" font-size="8" text-anchor="middle" fill="currentColor">?</text>
66
+ </svg>`;
67
+ exports.FALLBACK_ICON_SVG = FALLBACK_ICON_SVG;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.sanitizeHtml = sanitizeHtml;
7
- exports.setSafeInnerHTML = setSafeInnerHTML;
8
7
  var _dompurify = _interopRequireDefault(require("dompurify"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
9
  /**
@@ -24,16 +23,4 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
24
23
  */
25
24
  function sanitizeHtml(dirty) {
26
25
  return _dompurify.default.sanitize(dirty);
27
- }
28
- /**
29
- * 엘리먼트에 콘텐츠를 안전하게 설정한다.
30
- * - string: sanitize 후 innerHTML 교체
31
- * - HTMLElement: 기존 자식 제거 후 appendChild
32
- */
33
- function setSafeInnerHTML(element, content) {
34
- if (content instanceof HTMLElement) {
35
- element.replaceChildren(content);
36
- return;
37
- }
38
- element.innerHTML = sanitizeHtml(content);
39
26
  }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mustQuery = mustQuery;
7
+ /** 셀렉터에 맞는 첫 요소. 없으면 셀렉터를 담아 던져 실패 위치를 바로 보여 준다. */
8
+ function mustQuery(root, selector) {
9
+ const element = root.querySelector(selector);
10
+ if (!element) {
11
+ throw new Error(`요소를 찾지 못함: ${selector}`);
12
+ }
13
+ return element;
14
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.selectFiles = exports.mockObjectUrls = exports.lastFilesOf = exports.indexesIn = exports.fileInputOf = exports.createFileFactory = exports.browseButton = exports.DUMMY_FILE_BYTES = void 0;
7
+ var _vitest = require("vitest");
8
+ // 파일 첨부 테스트 공용 헬퍼 — vanilla(assets/scripts/imageFileInput) · React(file-input · image-file-input) 가 함께 쓴다.
9
+ // React 전용 act 감싸기는 selectFiles 의 dispatch 인자로 받아 이 모듈은 React 에 의존하지 않는다.
10
+
11
+ /** 내용은 검증 대상이 아니므로 최소 크기만 채운다 */
12
+ const DUMMY_FILE_BYTES = exports.DUMMY_FILE_BYTES = 4;
13
+ /** 파일마다 type 등 속성이 달라 팩토리로 받는다 — 반환 함수는 (이름, 크기) 만 받는다 */
14
+ const createFileFactory = properties => function (name) {
15
+ let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DUMMY_FILE_BYTES;
16
+ return new File([new Uint8Array(size)], name, properties);
17
+ };
18
+ /**
19
+ * URL.createObjectURL · revokeObjectURL 을 테스트마다 새 목으로 바꾸고 끝나면 원복한다.
20
+ * 모듈 최상위에서 호출해 beforeEach · afterEach 를 등록한다. 발급 URL 은 테스트마다 blob:mock/1 부터 센다.
21
+ */
22
+ // 반환 타입을 적지 않으면 NPM 빌드(declaration: true)가 vi.fn 의 타입을 pnpm 내부 경로로만 이름 붙일 수 있어 TS2742 로 실패한다
23
+ exports.createFileFactory = createFileFactory;
24
+ const mockObjectUrls = () => {
25
+ const originalCreateObjectURL = URL.createObjectURL;
26
+ const originalRevokeObjectURL = URL.revokeObjectURL;
27
+ const createObjectURL = _vitest.vi.fn();
28
+ const revokeObjectURL = _vitest.vi.fn();
29
+ (0, _vitest.beforeEach)(() => {
30
+ let issued = 0;
31
+ createObjectURL.mockReset().mockImplementation(() => `blob:mock/${++issued}`);
32
+ revokeObjectURL.mockReset();
33
+ URL.createObjectURL = createObjectURL;
34
+ URL.revokeObjectURL = revokeObjectURL;
35
+ });
36
+ (0, _vitest.afterEach)(() => {
37
+ URL.createObjectURL = originalCreateObjectURL;
38
+ URL.revokeObjectURL = originalRevokeObjectURL;
39
+ });
40
+ return {
41
+ createObjectURL,
42
+ revokeObjectURL
43
+ };
44
+ };
45
+ exports.mockObjectUrls = mockObjectUrls;
46
+ const fileInputOf = scope => {
47
+ const input = scope.querySelector('input[type="file"]');
48
+ if (!input) throw new Error('file input을 찾지 못했습니다');
49
+ return input;
50
+ };
51
+ exports.fileInputOf = fileInputOf;
52
+ const browseButton = scope => {
53
+ const button = scope.querySelector('.ncua-file-input__input-container button.ncua-btn');
54
+ if (!button) throw new Error('찾기 버튼을 찾지 못했습니다');
55
+ return button;
56
+ };
57
+ /**
58
+ * jsdom 에는 파일 선택 UI 가 없어 files 를 직접 정의한 뒤 change 를 발생시킨다.
59
+ * React 는 상태 갱신을 반영하도록 dispatch 에 act 를 넘긴다.
60
+ */
61
+ exports.browseButton = browseButton;
62
+ const selectFiles = function (scope, filesToSelect) {
63
+ let dispatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : fire => fire();
64
+ const input = fileInputOf(scope);
65
+ const value = filesToSelect === null ? null : {
66
+ ...filesToSelect,
67
+ length: filesToSelect.length,
68
+ item: index => filesToSelect[index] ?? null,
69
+ [Symbol.iterator]: function* () {
70
+ yield* filesToSelect;
71
+ }
72
+ };
73
+ Object.defineProperty(input, 'files', {
74
+ configurable: true,
75
+ value
76
+ });
77
+ dispatch(() => {
78
+ input.dispatchEvent(new Event('change', {
79
+ bubbles: true
80
+ }));
81
+ });
82
+ };
83
+ /**
84
+ * actual 의 각 File 이 expected 의 몇 번째 인스턴스인지 (없으면 -1).
85
+ * 이 환경에서 File 은 열거 가능한 own 속성이 없어 서로 다른 File 도 toEqual 이 통과하므로 동일성으로 비교한다.
86
+ */
87
+ exports.selectFiles = selectFiles;
88
+ const indexesIn = (expected, actual) => actual.map(file => expected.indexOf(file));
89
+ /** 목(mock) 의 마지막 호출에서 첫 인자(File[])를 꺼낸다 — 호출이 없으면 빈 배열 */
90
+ exports.indexesIn = indexesIn;
91
+ const lastFilesOf = mock => mock.mock.lastCall?.[0] ?? [];
92
+ exports.lastFilesOf = lastFilesOf;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFixedToday = exports.FIXED_TODAY = void 0;
7
+ var _vitest = require("vitest");
8
+ /** 2026-10-21 (수) 정오 — 자정 경계 영향을 받지 않도록 정오로 둔다 */
9
+ const FIXED_TODAY = exports.FIXED_TODAY = new Date('2026-10-21T12:00:00');
10
+ /** Date 만 가짜로 고정한다 — flatpickr 내부 타이머는 실제로 흐른다. 해제는 호출 측 afterEach 의 vi.useRealTimers() */
11
+ const useFixedToday = () => {
12
+ _vitest.vi.useFakeTimers({
13
+ toFake: ['Date']
14
+ });
15
+ _vitest.vi.setSystemTime(FIXED_TODAY);
16
+ };
17
+ exports.useFixedToday = useFixedToday;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.installMatchMedia = installMatchMedia;
7
+ const dispatchDirectly = dispatchToListeners => dispatchToListeners();
8
+ /**
9
+ * jsdom 에 없는 matchMedia 를 change 리스너를 보관하는 가짜로 바꾼다.
10
+ * 원본 복원 함수는 `cleanups` 에 넣으므로 호출 측 afterEach 가 되돌린다.
11
+ */
12
+ function installMatchMedia(cleanups, initial) {
13
+ let dispatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : dispatchDirectly;
14
+ const listeners = new Set();
15
+ let matches = initial;
16
+ const hadOwn = Object.hasOwn(window, 'matchMedia');
17
+ const original = window.matchMedia;
18
+ window.matchMedia = query => ({
19
+ get matches() {
20
+ return matches;
21
+ },
22
+ media: query,
23
+ onchange: null,
24
+ addEventListener: (_type, listener) => listeners.add(listener),
25
+ removeEventListener: (_type, listener) => listeners.delete(listener),
26
+ addListener: () => undefined,
27
+ removeListener: () => undefined,
28
+ dispatchEvent: () => false
29
+ });
30
+ cleanups.push(() => {
31
+ if (hadOwn) {
32
+ window.matchMedia = original;
33
+ } else {
34
+ Reflect.deleteProperty(window, 'matchMedia');
35
+ }
36
+ });
37
+ return {
38
+ fire: next => {
39
+ matches = next;
40
+ dispatch(() => {
41
+ for (const listener of Array.from(listeners)) {
42
+ listener({
43
+ matches: next
44
+ });
45
+ }
46
+ });
47
+ },
48
+ listenerCount: () => listeners.size
49
+ };
50
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toRect = void 0;
7
+ /** jsdom 은 레이아웃이 없어 getBoundingClientRect 가 전부 0 이다 — 테스트가 쓸 좌표만 채운 DOMRect 를 만든다. */
8
+ const toRect = rect => {
9
+ const resolved = {
10
+ top: 0,
11
+ bottom: 0,
12
+ left: 0,
13
+ right: 0,
14
+ width: 0,
15
+ height: 0,
16
+ x: 0,
17
+ y: 0,
18
+ ...rect
19
+ };
20
+ return {
21
+ ...resolved,
22
+ toJSON: () => resolved
23
+ };
24
+ };
25
+ exports.toRect = toRect;