@ncds/ui-admin 1.8.28-alpha.0 → 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.
- package/dist/cjs/assets/scripts/notification/const/icons.js +1 -2
- package/dist/cjs/assets/scripts/notification/const/index.js +0 -30
- package/dist/cjs/assets/scripts/notification/const/sizes.js +5 -5
- package/dist/cjs/assets/scripts/notification/index.js +0 -7
- package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +5 -4
- package/dist/cjs/assets/scripts/tooltip/const/classNames.js +29 -0
- package/dist/cjs/assets/scripts/tooltip/const/constants.js +58 -0
- package/dist/cjs/assets/scripts/tooltip/const/icons.js +15 -0
- package/dist/cjs/assets/scripts/tooltip/const/index.js +117 -0
- package/dist/cjs/assets/scripts/tooltip/const/templates.js +67 -0
- package/dist/cjs/assets/scripts/tooltip/const/types.js +5 -0
- package/dist/cjs/assets/scripts/utils/sanitize.js +0 -13
- package/dist/cjs/src/__tests__/helpers/dom.js +14 -0
- package/dist/cjs/src/__tests__/helpers/fileInput.js +92 -0
- package/dist/cjs/src/__tests__/helpers/fixedToday.js +17 -0
- package/dist/cjs/src/__tests__/helpers/matchMedia.js +50 -0
- package/dist/cjs/src/__tests__/helpers/rect.js +25 -0
- package/dist/cjs/src/components/action/button/__tests__/Button.test.js +260 -0
- package/dist/cjs/src/components/action/button-group/__tests__/ButtonGroup.test.js +267 -0
- package/dist/cjs/src/components/data-display/data-grid/__tests__/DataGrid.test.js +350 -0
- package/dist/cjs/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +320 -0
- package/dist/cjs/src/components/data-display/table/__tests__/Table.dnd.test.js +313 -0
- package/dist/cjs/src/components/data-display/table/__tests__/Table.scroll.test.js +194 -0
- package/dist/cjs/src/components/data-display/table/__tests__/Table.test.js +382 -0
- package/dist/cjs/src/components/data-display/table/__tests__/dnd-context.test.js +61 -0
- package/dist/cjs/src/components/data-display/table/__tests__/dnd-preview.test.js +230 -0
- package/dist/cjs/src/components/data-display/table/__tests__/tableDndTestUtils.js +266 -0
- package/dist/cjs/src/components/data-display/table/__tests__/tableTestUtils.js +48 -0
- package/dist/cjs/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +362 -0
- package/dist/cjs/src/components/data-display/table/useTableScrollbars.js +0 -24
- package/dist/cjs/src/components/feedback-and-status/badge/__tests__/Badge.test.js +189 -0
- package/dist/cjs/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +119 -0
- package/dist/cjs/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +94 -0
- package/dist/cjs/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +64 -0
- package/dist/cjs/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +126 -0
- package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +277 -0
- package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +249 -0
- package/dist/cjs/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +22 -0
- package/dist/cjs/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +102 -0
- package/dist/cjs/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +76 -0
- package/dist/cjs/src/components/feedback-and-status/tag/__tests__/Tag.test.js +604 -0
- package/dist/cjs/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +213 -0
- package/dist/cjs/src/components/forms-and-input/combo-box/ComboBox.js +2 -2
- package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +442 -0
- package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +153 -0
- package/dist/cjs/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +92 -0
- package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +546 -0
- package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +550 -0
- package/dist/cjs/src/components/forms-and-input/date-picker/__tests__/utils.test.js +34 -0
- package/dist/cjs/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +266 -0
- package/dist/cjs/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +416 -0
- package/dist/cjs/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +236 -0
- package/dist/cjs/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +570 -0
- package/dist/cjs/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +113 -0
- package/dist/cjs/src/components/forms-and-input/radio/__tests__/Radio.test.js +57 -0
- package/dist/cjs/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +275 -0
- package/dist/cjs/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +235 -2
- package/dist/cjs/src/components/forms-and-input/select/__tests__/Select.test.js +275 -0
- package/dist/cjs/src/components/forms-and-input/select-box/SelectBox.js +2 -2
- package/dist/cjs/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +371 -0
- package/dist/cjs/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +1335 -0
- package/dist/cjs/src/components/forms-and-input/slider/__tests__/Slider.test.js +390 -0
- package/dist/cjs/src/components/forms-and-input/switch/__tests__/Switch.test.js +317 -0
- package/dist/cjs/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +255 -0
- package/dist/cjs/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +158 -0
- package/dist/cjs/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +138 -0
- package/dist/cjs/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +67 -0
- package/dist/cjs/src/components/layout/block-container/__tests__/BlockContainer.test.js +59 -0
- package/dist/cjs/src/components/layout/block-header/__tests__/BlockHeader.test.js +169 -0
- package/dist/cjs/src/components/layout/block-header/__tests__/SubTitle.test.js +77 -0
- package/dist/cjs/src/components/layout/divider/__tests__/Divider.test.js +65 -0
- package/dist/cjs/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +146 -0
- package/dist/cjs/src/components/layout/page-title/__tests__/PageTitle.test.js +164 -0
- package/dist/cjs/src/components/navigation/context-tab/__tests__/ContextTab.test.js +616 -0
- package/dist/cjs/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +592 -0
- package/dist/cjs/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +211 -0
- package/dist/cjs/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +285 -0
- package/dist/cjs/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +255 -0
- package/dist/cjs/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +558 -0
- package/dist/cjs/src/components/overlays/dropdown/__tests__/Dropdown.test.js +1020 -0
- package/dist/cjs/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +24 -0
- package/dist/cjs/src/components/overlays/dropdown/__tests__/utils.test.js +56 -0
- package/dist/cjs/src/components/overlays/modal/__tests__/Modal.test.js +426 -0
- package/dist/cjs/src/components/overlays/notification/__tests__/FloatingNotification.test.js +284 -0
- package/dist/cjs/src/components/overlays/notification/__tests__/MessageNotification.test.js +12 -0
- package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +2 -2
- package/dist/cjs/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +141 -0
- package/dist/cjs/src/components/overlays/tooltip/__tests__/Tooltip.test.js +829 -0
- package/dist/cjs/src/components/tab/__tests__/TabButton.test.js +252 -0
- package/dist/cjs/src/hooks/__tests__/useCallbackRef.test.js +152 -0
- package/dist/cjs/src/hooks/__tests__/useMediaQuery.test.js +119 -0
- package/dist/cjs/src/hooks/__tests__/usePortalState.ssr.test.js +25 -0
- package/dist/cjs/src/hooks/dropdown/__tests__/dropdownHooks.test.js +168 -0
- package/dist/cjs/src/types/component-meta.js +0 -4
- package/dist/cjs/src/utils/__tests__/date-picker.test.js +105 -0
- package/dist/cjs/src/utils/dropdown/__tests__/dropdownUtils.test.js +24 -0
- package/dist/cjs/src/utils/dropdown/__tests__/multiSelect.test.js +49 -0
- package/dist/cjs/src/utils/dropdown/multiSelect.js +1 -6
- package/dist/cjs/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +67 -0
- package/dist/cjs/vitest.config.js +16 -10
- package/dist/esm/assets/scripts/notification/const/icons.js +0 -1
- package/dist/esm/assets/scripts/notification/const/index.js +2 -2
- package/dist/esm/assets/scripts/notification/const/sizes.js +4 -4
- package/dist/esm/assets/scripts/notification/index.js +1 -1
- package/dist/esm/assets/scripts/shared/ButtonCloseX.js +6 -3
- package/dist/esm/assets/scripts/tooltip/const/classNames.js +23 -0
- package/dist/esm/assets/scripts/tooltip/const/constants.js +52 -0
- package/dist/esm/assets/scripts/tooltip/const/icons.js +9 -0
- package/dist/esm/assets/scripts/tooltip/const/index.js +5 -0
- package/dist/esm/assets/scripts/tooltip/const/templates.js +60 -0
- package/dist/esm/assets/scripts/tooltip/const/types.js +1 -0
- package/dist/esm/assets/scripts/utils/sanitize.js +0 -12
- package/dist/esm/src/__tests__/helpers/dom.js +8 -0
- package/dist/esm/src/__tests__/helpers/fileInput.js +78 -0
- package/dist/esm/src/__tests__/helpers/fixedToday.js +10 -0
- package/dist/esm/src/__tests__/helpers/matchMedia.js +44 -0
- package/dist/esm/src/__tests__/helpers/rect.js +18 -0
- package/dist/esm/src/components/action/button/__tests__/Button.test.js +257 -0
- package/dist/esm/src/components/action/button-group/__tests__/ButtonGroup.test.js +264 -0
- package/dist/esm/src/components/data-display/data-grid/__tests__/DataGrid.test.js +347 -0
- package/dist/esm/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +317 -0
- package/dist/esm/src/components/data-display/table/__tests__/Table.dnd.test.js +310 -0
- package/dist/esm/src/components/data-display/table/__tests__/Table.scroll.test.js +191 -0
- package/dist/esm/src/components/data-display/table/__tests__/Table.test.js +379 -0
- package/dist/esm/src/components/data-display/table/__tests__/dnd-context.test.js +58 -0
- package/dist/esm/src/components/data-display/table/__tests__/dnd-preview.test.js +227 -0
- package/dist/esm/src/components/data-display/table/__tests__/tableDndTestUtils.js +240 -0
- package/dist/esm/src/components/data-display/table/__tests__/tableTestUtils.js +40 -0
- package/dist/esm/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +359 -0
- package/dist/esm/src/components/data-display/table/useTableScrollbars.js +1 -1
- package/dist/esm/src/components/feedback-and-status/badge/__tests__/Badge.test.js +186 -0
- package/dist/esm/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +116 -0
- package/dist/esm/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +91 -0
- package/dist/esm/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +61 -0
- package/dist/esm/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +123 -0
- package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +274 -0
- package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +246 -0
- package/dist/esm/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +19 -0
- package/dist/esm/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +99 -0
- package/dist/esm/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +73 -0
- package/dist/esm/src/components/feedback-and-status/tag/__tests__/Tag.test.js +601 -0
- package/dist/esm/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +210 -0
- package/dist/esm/src/components/forms-and-input/combo-box/ComboBox.js +1 -1
- package/dist/esm/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +439 -0
- package/dist/esm/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +151 -0
- package/dist/esm/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +77 -0
- package/dist/esm/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +544 -0
- package/dist/esm/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +546 -0
- package/dist/esm/src/components/forms-and-input/date-picker/__tests__/utils.test.js +31 -0
- package/dist/esm/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +263 -0
- package/dist/esm/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +413 -0
- package/dist/esm/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +233 -0
- package/dist/esm/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +567 -0
- package/dist/esm/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +110 -0
- package/dist/esm/src/components/forms-and-input/radio/__tests__/Radio.test.js +54 -0
- package/dist/esm/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +275 -0
- package/dist/esm/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +235 -1
- package/dist/esm/src/components/forms-and-input/select/__tests__/Select.test.js +272 -0
- package/dist/esm/src/components/forms-and-input/select-box/SelectBox.js +1 -1
- package/dist/esm/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +368 -0
- package/dist/esm/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +1332 -0
- package/dist/esm/src/components/forms-and-input/slider/__tests__/Slider.test.js +387 -0
- package/dist/esm/src/components/forms-and-input/switch/__tests__/Switch.test.js +314 -0
- package/dist/esm/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +252 -0
- package/dist/esm/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +155 -0
- package/dist/esm/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +135 -0
- package/dist/esm/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +64 -0
- package/dist/esm/src/components/layout/block-container/__tests__/BlockContainer.test.js +56 -0
- package/dist/esm/src/components/layout/block-header/__tests__/BlockHeader.test.js +166 -0
- package/dist/esm/src/components/layout/block-header/__tests__/SubTitle.test.js +74 -0
- package/dist/esm/src/components/layout/divider/__tests__/Divider.test.js +62 -0
- package/dist/esm/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +144 -0
- package/dist/esm/src/components/layout/page-title/__tests__/PageTitle.test.js +161 -0
- package/dist/esm/src/components/navigation/context-tab/__tests__/ContextTab.test.js +613 -0
- package/dist/esm/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +589 -0
- package/dist/esm/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +209 -0
- package/dist/esm/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +282 -0
- package/dist/esm/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +252 -0
- package/dist/esm/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +556 -0
- package/dist/esm/src/components/overlays/dropdown/__tests__/Dropdown.test.js +1017 -0
- package/dist/esm/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +15 -0
- package/dist/esm/src/components/overlays/dropdown/__tests__/utils.test.js +57 -1
- package/dist/esm/src/components/overlays/modal/__tests__/Modal.test.js +423 -0
- package/dist/esm/src/components/overlays/notification/__tests__/FloatingNotification.test.js +281 -0
- package/dist/esm/src/components/overlays/notification/__tests__/MessageNotification.test.js +12 -0
- package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +1 -1
- package/dist/esm/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +139 -0
- package/dist/esm/src/components/overlays/tooltip/__tests__/Tooltip.test.js +826 -0
- package/dist/esm/src/components/tab/__tests__/TabButton.test.js +249 -0
- package/dist/esm/src/hooks/__tests__/useCallbackRef.test.js +149 -0
- package/dist/esm/src/hooks/__tests__/useMediaQuery.test.js +116 -0
- package/dist/esm/src/hooks/__tests__/usePortalState.ssr.test.js +22 -0
- package/dist/esm/src/hooks/dropdown/__tests__/dropdownHooks.test.js +165 -0
- package/dist/esm/src/types/component-meta.js +0 -4
- package/dist/esm/src/utils/__tests__/date-picker.test.js +107 -2
- package/dist/esm/src/utils/dropdown/__tests__/dropdownUtils.test.js +24 -0
- package/dist/esm/src/utils/dropdown/__tests__/multiSelect.test.js +46 -0
- package/dist/esm/src/utils/dropdown/multiSelect.js +5 -5
- package/dist/esm/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +64 -0
- package/dist/esm/vitest.config.js +16 -10
- package/dist/temp/assets/scripts/notification/const/icons.d.ts +0 -7
- package/dist/temp/assets/scripts/notification/const/icons.js +0 -1
- package/dist/temp/assets/scripts/notification/const/index.d.ts +3 -3
- package/dist/temp/assets/scripts/notification/const/index.js +2 -2
- package/dist/temp/assets/scripts/notification/const/sizes.d.ts +2 -14
- package/dist/temp/assets/scripts/notification/const/sizes.js +4 -4
- package/dist/temp/assets/scripts/notification/const/types.d.ts +3 -2
- package/dist/temp/assets/scripts/notification/index.d.ts +1 -1
- package/dist/temp/assets/scripts/notification/index.js +1 -1
- package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +0 -2
- package/dist/temp/assets/scripts/shared/ButtonCloseX.js +6 -3
- package/dist/temp/assets/scripts/table/scrollbar/const.d.ts +0 -1
- package/dist/temp/assets/scripts/tooltip/const/classNames.d.ts +17 -0
- package/dist/temp/assets/scripts/tooltip/const/classNames.js +23 -0
- package/dist/temp/assets/scripts/tooltip/const/constants.d.ts +33 -0
- package/dist/temp/assets/scripts/tooltip/const/constants.js +48 -0
- package/dist/temp/assets/scripts/tooltip/const/icons.d.ts +4 -0
- package/dist/temp/assets/scripts/tooltip/const/icons.js +9 -0
- package/dist/temp/assets/scripts/tooltip/const/index.d.ts +5 -0
- package/dist/temp/assets/scripts/tooltip/const/index.js +5 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.js +60 -0
- package/dist/temp/assets/scripts/tooltip/const/types.d.ts +17 -0
- package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
- package/dist/temp/assets/scripts/utils/sanitize.d.ts +0 -6
- package/dist/temp/assets/scripts/utils/sanitize.js +0 -12
- package/dist/temp/src/__tests__/helpers/dom.d.ts +2 -0
- package/dist/temp/src/__tests__/helpers/dom.js +8 -0
- package/dist/temp/src/__tests__/helpers/fileInput.d.ts +27 -0
- package/dist/temp/src/__tests__/helpers/fileInput.js +70 -0
- package/dist/temp/src/__tests__/helpers/fixedToday.d.ts +4 -0
- package/dist/temp/src/__tests__/helpers/fixedToday.js +8 -0
- package/dist/temp/src/__tests__/helpers/matchMedia.d.ts +13 -0
- package/dist/temp/src/__tests__/helpers/matchMedia.js +42 -0
- package/dist/temp/src/__tests__/helpers/rect.d.ts +2 -0
- package/dist/temp/src/__tests__/helpers/rect.js +5 -0
- package/dist/temp/src/components/action/button/__tests__/Button.test.d.ts +1 -0
- package/dist/temp/src/components/action/button/__tests__/Button.test.js +180 -0
- package/dist/temp/src/components/action/button-group/__tests__/ButtonGroup.test.d.ts +1 -0
- package/dist/temp/src/components/action/button-group/__tests__/ButtonGroup.test.js +162 -0
- package/dist/temp/src/components/data-display/data-grid/__tests__/DataGrid.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/data-grid/__tests__/DataGrid.test.js +291 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.js +255 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.dnd.test.js +240 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.scroll.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.scroll.test.js +145 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/Table.test.js +295 -0
- package/dist/temp/src/components/data-display/table/__tests__/dnd-context.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/dnd-context.test.js +42 -0
- package/dist/temp/src/components/data-display/table/__tests__/dnd-preview.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/dnd-preview.test.js +226 -0
- package/dist/temp/src/components/data-display/table/__tests__/tableDndTestUtils.d.ts +76 -0
- package/dist/temp/src/components/data-display/table/__tests__/tableDndTestUtils.js +153 -0
- package/dist/temp/src/components/data-display/table/__tests__/tableTestUtils.d.ts +11 -0
- package/dist/temp/src/components/data-display/table/__tests__/tableTestUtils.js +40 -0
- package/dist/temp/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.d.ts +1 -0
- package/dist/temp/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.js +269 -0
- package/dist/temp/src/components/data-display/table/dnd-context.d.ts +1 -1
- package/dist/temp/src/components/data-display/table/useTableScrollbars.d.ts +2 -2
- package/dist/temp/src/components/data-display/table/useTableScrollbars.js +1 -1
- package/dist/temp/src/components/feedback-and-status/badge/__tests__/Badge.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/badge/__tests__/Badge.test.js +136 -0
- package/dist/temp/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.js +103 -0
- package/dist/temp/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.js +81 -0
- package/dist/temp/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.js +53 -0
- package/dist/temp/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.js +86 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.js +221 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.js +168 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/utils.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/progress-bar/__tests__/utils.test.js +35 -0
- package/dist/temp/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.js +106 -0
- package/dist/temp/src/components/feedback-and-status/spinner/__tests__/Spinner.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/spinner/__tests__/Spinner.test.js +73 -0
- package/dist/temp/src/components/feedback-and-status/tag/__tests__/Tag.test.d.ts +1 -0
- package/dist/temp/src/components/feedback-and-status/tag/__tests__/Tag.test.js +392 -0
- package/dist/temp/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.js +180 -0
- package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.d.ts +1 -2
- package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.js +1 -1
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.js +295 -0
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.js +111 -0
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.d.ts +22 -0
- package/dist/temp/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.js +69 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.js +358 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.js +361 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/utils.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/date-picker/__tests__/utils.test.js +34 -0
- package/dist/temp/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.js +206 -0
- package/dist/temp/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.js +292 -0
- package/dist/temp/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.js +177 -0
- package/dist/temp/src/components/forms-and-input/number-input/__tests__/NumberInput.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/number-input/__tests__/NumberInput.test.js +434 -0
- package/dist/temp/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.js +88 -0
- package/dist/temp/src/components/forms-and-input/radio/__tests__/Radio.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/radio/__tests__/Radio.test.js +42 -0
- package/dist/temp/src/components/forms-and-input/range-date-picker/__tests__/RangeDatePicker.test.js +137 -0
- package/dist/temp/src/components/forms-and-input/range-date-picker-with-buttons/__tests__/RangeDatePickerWithButtons.test.js +201 -1
- package/dist/temp/src/components/forms-and-input/select/__tests__/Select.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/select/__tests__/Select.test.js +214 -0
- package/dist/temp/src/components/forms-and-input/select-box/SelectBox.d.ts +1 -2
- package/dist/temp/src/components/forms-and-input/select-box/SelectBox.js +1 -1
- package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.js +312 -0
- package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/select-box/__tests__/SelectBox.test.js +991 -0
- package/dist/temp/src/components/forms-and-input/slider/__tests__/Slider.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/slider/__tests__/Slider.test.js +294 -0
- package/dist/temp/src/components/forms-and-input/switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/switch/__tests__/Switch.test.js +234 -0
- package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.test.js +207 -0
- package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.js +120 -0
- package/dist/temp/src/components/forms-and-input/toggle/__tests__/Toggle.test.d.ts +1 -0
- package/dist/temp/src/components/forms-and-input/toggle/__tests__/Toggle.test.js +125 -0
- package/dist/temp/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.d.ts +1 -0
- package/dist/temp/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.js +47 -0
- package/dist/temp/src/components/layout/block-container/__tests__/BlockContainer.test.d.ts +1 -0
- package/dist/temp/src/components/layout/block-container/__tests__/BlockContainer.test.js +53 -0
- package/dist/temp/src/components/layout/block-header/__tests__/BlockHeader.test.d.ts +1 -0
- package/dist/temp/src/components/layout/block-header/__tests__/BlockHeader.test.js +127 -0
- package/dist/temp/src/components/layout/block-header/__tests__/SubTitle.test.d.ts +1 -0
- package/dist/temp/src/components/layout/block-header/__tests__/SubTitle.test.js +76 -0
- package/dist/temp/src/components/layout/divider/__tests__/Divider.test.d.ts +1 -0
- package/dist/temp/src/components/layout/divider/__tests__/Divider.test.js +53 -0
- package/dist/temp/src/components/layout/ncua-scope/__tests__/NcuaScope.test.d.ts +1 -0
- package/dist/temp/src/components/layout/ncua-scope/__tests__/NcuaScope.test.js +136 -0
- package/dist/temp/src/components/layout/page-title/__tests__/PageTitle.test.d.ts +1 -0
- package/dist/temp/src/components/layout/page-title/__tests__/PageTitle.test.js +119 -0
- package/dist/temp/src/components/navigation/context-tab/__tests__/ContextTab.test.d.ts +1 -0
- package/dist/temp/src/components/navigation/context-tab/__tests__/ContextTab.test.js +447 -0
- package/dist/temp/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.d.ts +1 -0
- package/dist/temp/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.js +352 -0
- package/dist/temp/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.d.ts +1 -0
- package/dist/temp/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.js +152 -0
- package/dist/temp/src/components/navigation/pagination/__tests__/Pagination.navigation.test.d.ts +1 -0
- package/dist/temp/src/components/navigation/pagination/__tests__/Pagination.navigation.test.js +265 -0
- package/dist/temp/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.d.ts +1 -0
- package/dist/temp/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.js +172 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.js +423 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/Dropdown.test.js +699 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/dropdownTestUtils.d.ts +3 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/dropdownTestUtils.js +17 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/utils.test.js +24 -1
- package/dist/temp/src/components/overlays/modal/__tests__/Modal.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/modal/__tests__/Modal.test.js +307 -0
- package/dist/temp/src/components/overlays/notification/MessageNotificationParts.d.ts +0 -1
- package/dist/temp/src/components/overlays/notification/NotificationActionButtons.d.ts +0 -1
- package/dist/temp/src/components/overlays/notification/__tests__/FloatingNotification.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/notification/__tests__/FloatingNotification.test.js +218 -0
- package/dist/temp/src/components/overlays/notification/__tests__/MessageNotification.test.js +10 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +1 -3
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +1 -1
- package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.js +112 -0
- package/dist/temp/src/components/overlays/tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/tooltip/__tests__/Tooltip.test.js +538 -0
- package/dist/temp/src/components/tab/__tests__/TabButton.test.d.ts +1 -0
- package/dist/temp/src/components/tab/__tests__/TabButton.test.js +181 -0
- package/dist/temp/src/constant/date-picker.d.ts +2 -1
- package/dist/temp/src/hooks/__tests__/useCallbackRef.test.d.ts +1 -0
- package/dist/temp/src/hooks/__tests__/useCallbackRef.test.js +99 -0
- package/dist/temp/src/hooks/__tests__/useMediaQuery.test.d.ts +1 -0
- package/dist/temp/src/hooks/__tests__/useMediaQuery.test.js +95 -0
- package/dist/temp/src/hooks/__tests__/usePortalState.ssr.test.d.ts +1 -0
- package/dist/temp/src/hooks/__tests__/usePortalState.ssr.test.js +19 -0
- package/dist/temp/src/hooks/dropdown/__tests__/dropdownHooks.test.d.ts +1 -0
- package/dist/temp/src/hooks/dropdown/__tests__/dropdownHooks.test.js +147 -0
- package/dist/temp/src/types/component-meta.d.ts +2 -1
- package/dist/temp/src/types/component-meta.js +0 -4
- package/dist/temp/src/utils/__tests__/date-picker.test.js +58 -2
- package/dist/temp/src/utils/dropdown/__tests__/dropdownUtils.test.js +9 -0
- package/dist/temp/src/utils/dropdown/__tests__/multiSelect.test.d.ts +1 -0
- package/dist/temp/src/utils/dropdown/__tests__/multiSelect.test.js +41 -0
- package/dist/temp/src/utils/dropdown/multiSelect.d.ts +0 -20
- package/dist/temp/src/utils/dropdown/multiSelect.js +5 -5
- package/dist/temp/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.d.ts +1 -0
- package/dist/temp/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.js +57 -0
- package/dist/temp/vitest.config.js +15 -9
- package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -7
- package/dist/types/assets/scripts/notification/const/index.d.ts +3 -3
- package/dist/types/assets/scripts/notification/const/sizes.d.ts +2 -14
- package/dist/types/assets/scripts/notification/const/types.d.ts +3 -2
- package/dist/types/assets/scripts/notification/index.d.ts +1 -1
- package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -2
- package/dist/types/assets/scripts/table/scrollbar/const.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +17 -0
- package/dist/types/assets/scripts/tooltip/const/constants.d.ts +33 -0
- package/dist/types/assets/scripts/tooltip/const/icons.d.ts +4 -0
- package/dist/types/assets/scripts/tooltip/const/index.d.ts +5 -0
- package/dist/types/assets/scripts/tooltip/const/templates.d.ts +16 -0
- package/dist/types/assets/scripts/tooltip/const/types.d.ts +17 -0
- package/dist/types/assets/scripts/utils/sanitize.d.ts +0 -6
- package/dist/types/src/__tests__/helpers/dom.d.ts +2 -0
- package/dist/types/src/__tests__/helpers/fileInput.d.ts +27 -0
- package/dist/types/src/__tests__/helpers/fixedToday.d.ts +4 -0
- package/dist/types/src/__tests__/helpers/matchMedia.d.ts +13 -0
- package/dist/types/src/__tests__/helpers/rect.d.ts +2 -0
- package/dist/types/src/components/action/button/__tests__/Button.test.d.ts +1 -0
- package/dist/types/src/components/action/button-group/__tests__/ButtonGroup.test.d.ts +1 -0
- package/dist/types/src/components/data-display/data-grid/__tests__/DataGrid.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/Table.dnd.dragCell.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/Table.dnd.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/Table.scroll.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/Table.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/dnd-context.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/dnd-preview.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/__tests__/tableDndTestUtils.d.ts +76 -0
- package/dist/types/src/components/data-display/table/__tests__/tableTestUtils.d.ts +11 -0
- package/dist/types/src/components/data-display/table/__tests__/useTableScrollbars.ownership.test.d.ts +1 -0
- package/dist/types/src/components/data-display/table/dnd-context.d.ts +1 -1
- package/dist/types/src/components/data-display/table/useTableScrollbars.d.ts +2 -2
- package/dist/types/src/components/feedback-and-status/badge/__tests__/Badge.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/badge-group/__tests__/BadgeGroup.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/carousel-arrow/__tests__/CarouselArrow.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/carousel-number-group/__tests__/CarouselNumberGroup.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/empty-state/__tests__/EmptyState.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/ProgressBar.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/useProgressBar.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/progress-bar/__tests__/utils.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/progress-circle/__tests__/ProgressCircle.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/spinner/__tests__/Spinner.test.d.ts +1 -0
- package/dist/types/src/components/feedback-and-status/tag/__tests__/Tag.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/combo-box/ComboBox.d.ts +1 -2
- package/dist/types/src/components/forms-and-input/combo-box/__tests__/ComboBox.interaction.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/combo-box/__tests__/ComboBox.register.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/combo-box/__tests__/comboBoxTestUtils.d.ts +22 -0
- package/dist/types/src/components/forms-and-input/date-picker/__tests__/DatePicker.input.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/date-picker/__tests__/DatePicker.position.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/date-picker/__tests__/utils.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/file-input/__tests__/FileInput.select.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/image-file-input/__tests__/ImageFileInput.select.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/input-base/__tests__/InputBase.slots.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/number-input/__tests__/NumberInput.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/password-input/__tests__/PasswordInput.toggle.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/radio/__tests__/Radio.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/select/__tests__/Select.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/select-box/SelectBox.d.ts +1 -2
- package/dist/types/src/components/forms-and-input/select-box/__tests__/SelectBox.portal.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/select-box/__tests__/SelectBox.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/slider/__tests__/Slider.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/textarea/__tests__/Textarea.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/textarea/__tests__/Textarea.unmount.test.d.ts +1 -0
- package/dist/types/src/components/forms-and-input/toggle/__tests__/Toggle.test.d.ts +1 -0
- package/dist/types/src/components/image-and-icons/featured-icon/__tests__/FeaturedIcon.test.d.ts +1 -0
- package/dist/types/src/components/layout/block-container/__tests__/BlockContainer.test.d.ts +1 -0
- package/dist/types/src/components/layout/block-header/__tests__/BlockHeader.test.d.ts +1 -0
- package/dist/types/src/components/layout/block-header/__tests__/SubTitle.test.d.ts +1 -0
- package/dist/types/src/components/layout/divider/__tests__/Divider.test.d.ts +1 -0
- package/dist/types/src/components/layout/ncua-scope/__tests__/NcuaScope.test.d.ts +1 -0
- package/dist/types/src/components/layout/page-title/__tests__/PageTitle.test.d.ts +1 -0
- package/dist/types/src/components/navigation/context-tab/__tests__/ContextTab.test.d.ts +1 -0
- package/dist/types/src/components/navigation/context-tab/__tests__/useContextTabScroll.test.d.ts +1 -0
- package/dist/types/src/components/navigation/horizontal-tab/__tests__/HorizontalTab.test.d.ts +1 -0
- package/dist/types/src/components/navigation/pagination/__tests__/Pagination.navigation.test.d.ts +1 -0
- package/dist/types/src/components/navigation/vertical-tab/__tests__/VerticalTab.test.d.ts +1 -0
- package/dist/types/src/components/overlays/dropdown/__tests__/Dropdown.dnd.test.d.ts +1 -0
- package/dist/types/src/components/overlays/dropdown/__tests__/Dropdown.test.d.ts +1 -0
- package/dist/types/src/components/overlays/dropdown/__tests__/dropdownTestUtils.d.ts +3 -0
- package/dist/types/src/components/overlays/modal/__tests__/Modal.test.d.ts +1 -0
- package/dist/types/src/components/overlays/notification/MessageNotificationParts.d.ts +0 -1
- package/dist/types/src/components/overlays/notification/NotificationActionButtons.d.ts +0 -1
- package/dist/types/src/components/overlays/notification/__tests__/FloatingNotification.test.d.ts +1 -0
- package/dist/types/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +1 -3
- package/dist/types/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.viewport.test.d.ts +1 -0
- package/dist/types/src/components/overlays/tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/types/src/components/tab/__tests__/TabButton.test.d.ts +1 -0
- package/dist/types/src/constant/date-picker.d.ts +2 -1
- package/dist/types/src/hooks/__tests__/useCallbackRef.test.d.ts +1 -0
- package/dist/types/src/hooks/__tests__/useMediaQuery.test.d.ts +1 -0
- package/dist/types/src/hooks/__tests__/usePortalState.ssr.test.d.ts +1 -0
- package/dist/types/src/hooks/dropdown/__tests__/dropdownHooks.test.d.ts +1 -0
- package/dist/types/src/types/component-meta.d.ts +2 -1
- package/dist/types/src/utils/dropdown/__tests__/multiSelect.test.d.ts +1 -0
- package/dist/types/src/utils/dropdown/multiSelect.d.ts +0 -20
- package/dist/types/src/utils/portal-position/__tests__/portalPosition.nullAnchor.test.d.ts +1 -0
- package/package.json +3 -8
- package/dist/cjs/src/constant/index.js +0 -27
- package/dist/cjs/src/constant/size.js +0 -7
- package/dist/cjs/src/contexts/index.js +0 -16
- package/dist/esm/src/constant/index.js +0 -2
- package/dist/esm/src/constant/size.js +0 -1
- package/dist/esm/src/contexts/index.js +0 -1
- package/dist/temp/src/constant/index.d.ts +0 -2
- package/dist/temp/src/constant/index.js +0 -2
- package/dist/temp/src/constant/size.d.ts +0 -1
- package/dist/temp/src/constant/size.js +0 -1
- package/dist/temp/src/contexts/index.d.ts +0 -1
- package/dist/temp/src/contexts/index.js +0 -1
- package/dist/types/src/constant/index.d.ts +0 -2
- package/dist/types/src/constant/size.d.ts +0 -1
- package/dist/types/src/contexts/index.d.ts +0 -1
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
/** AI 에이전트용 컴포넌트 메타데이터 타입 */
|
|
2
|
-
/**
|
|
3
|
-
* 컴포넌트 카테고리 — `src/components/` 하위 디렉토리명과 동일.
|
|
4
|
-
* 타입과 런타임 값을 한 곳에서 정의해 추가/변경 시 동기화 누락을 막는다.
|
|
5
|
-
*/
|
|
6
2
|
export const COMPONENT_CATEGORIES = ['action', 'data-display', 'feedback-and-status', 'forms-and-input', 'image-and-icons', 'layout', 'navigation', 'overlays'];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { describe, expect, it } from 'vitest';
|
|
3
|
-
import {
|
|
2
|
+
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
3
|
+
import { FIXED_TODAY, useFixedToday } from '../../__tests__/helpers/fixedToday';
|
|
4
|
+
import { convertToMomentFormat, formatDateInput, formatHourInput, formatMinuteInput, getDateFormat, getSubtractDate, getToday } from '../date-picker';
|
|
4
5
|
describe('convertToMomentFormat', () => {
|
|
5
6
|
it('날짜 전용 포맷을 moment 토큰으로 변환한다 (기존 동작 보존)', () => {
|
|
6
7
|
expect(convertToMomentFormat('Y-m-d')).toBe('YYYY-MM-DD');
|
|
@@ -23,4 +24,108 @@ describe('convertToMomentFormat', () => {
|
|
|
23
24
|
expect(moment(date).format(convertToMomentFormat('Y-m-d H:i'))).toBe('2024-03-20 14:30');
|
|
24
25
|
expect(moment(date).format(convertToMomentFormat('Y-m-d H:i:S'))).toBe('2024-03-20 14:30:05');
|
|
25
26
|
});
|
|
27
|
+
});
|
|
28
|
+
// ── 위험 경로 DU-xx (PR-7a) ───────────────────────────────────────────────
|
|
29
|
+
describe('DU-01 오늘 기준 기본값', () => {
|
|
30
|
+
afterEach(() => {
|
|
31
|
+
vi.useRealTimers();
|
|
32
|
+
});
|
|
33
|
+
it('DU-01 getDateFormat() 은 인자가 없으면 오늘을 YYYY-MM-DD 로 돌려준다', () => {
|
|
34
|
+
useFixedToday();
|
|
35
|
+
expect(getDateFormat()).toBe('2026-10-21');
|
|
36
|
+
expect(getToday()).toEqual(FIXED_TODAY);
|
|
37
|
+
});
|
|
38
|
+
it('DU-01 getDateFormat 은 주어진 날짜를 YYYY-MM-DD 로 돌려준다', () => {
|
|
39
|
+
expect(getDateFormat('2026-01-05T09:30:00')).toBe('2026-01-05');
|
|
40
|
+
});
|
|
41
|
+
it('DU-01 getSubtractDate 는 date 가 없으면 오늘에서 period(unit) 를 뺀다', () => {
|
|
42
|
+
useFixedToday();
|
|
43
|
+
expect(getDateFormat(getSubtractDate({
|
|
44
|
+
period: 3,
|
|
45
|
+
unit: 'days'
|
|
46
|
+
}))).toBe('2026-10-18');
|
|
47
|
+
});
|
|
48
|
+
it('DU-01 getSubtractDate 는 date 가 있으면 그 날짜에서 빼고, 월 단위는 말일로 보정한다', () => {
|
|
49
|
+
expect(getDateFormat(getSubtractDate({
|
|
50
|
+
date: '2026-03-31',
|
|
51
|
+
period: 1,
|
|
52
|
+
unit: 'months'
|
|
53
|
+
}))).toBe('2026-02-28');
|
|
54
|
+
});
|
|
55
|
+
it.each([{
|
|
56
|
+
input: '20231112',
|
|
57
|
+
expected: '2023-11-12'
|
|
58
|
+
}, {
|
|
59
|
+
input: '2023-11-12',
|
|
60
|
+
expected: '2023-11-12'
|
|
61
|
+
},
|
|
62
|
+
// 실재하지 않는 월·일 8자리는 정리하지 않고 원문 유지 — 무효 판정·복원은 입력 핸들러 몫 (DPV-02 · #8)
|
|
63
|
+
{
|
|
64
|
+
input: '20231345',
|
|
65
|
+
expected: '20231345'
|
|
66
|
+
}])('DU-01 formatDateInput($input) → $expected', _ref => {
|
|
67
|
+
let {
|
|
68
|
+
input,
|
|
69
|
+
expected
|
|
70
|
+
} = _ref;
|
|
71
|
+
expect(formatDateInput(input)).toBe(expected);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
describe('DU-02 시·분 입력 정리', () => {
|
|
75
|
+
it.each([{
|
|
76
|
+
input: '7a',
|
|
77
|
+
expected: '7'
|
|
78
|
+
}, {
|
|
79
|
+
input: '123',
|
|
80
|
+
expected: '12'
|
|
81
|
+
}, {
|
|
82
|
+
input: '23',
|
|
83
|
+
expected: '23'
|
|
84
|
+
}, {
|
|
85
|
+
input: '',
|
|
86
|
+
expected: ''
|
|
87
|
+
}])('DU-02 formatHourInput($input) → $expected', _ref2 => {
|
|
88
|
+
let {
|
|
89
|
+
input,
|
|
90
|
+
expected
|
|
91
|
+
} = _ref2;
|
|
92
|
+
expect(formatHourInput(input)).toBe(expected);
|
|
93
|
+
});
|
|
94
|
+
it.each([{
|
|
95
|
+
input: '5b',
|
|
96
|
+
expected: '5'
|
|
97
|
+
}, {
|
|
98
|
+
input: '599',
|
|
99
|
+
expected: '59'
|
|
100
|
+
}, {
|
|
101
|
+
input: '',
|
|
102
|
+
expected: ''
|
|
103
|
+
}])('DU-02 formatMinuteInput($input) → $expected', _ref3 => {
|
|
104
|
+
let {
|
|
105
|
+
input,
|
|
106
|
+
expected
|
|
107
|
+
} = _ref3;
|
|
108
|
+
expect(formatMinuteInput(input)).toBe(expected);
|
|
109
|
+
});
|
|
110
|
+
it.each([{
|
|
111
|
+
label: '시 24',
|
|
112
|
+
format: formatHourInput,
|
|
113
|
+
input: '24'
|
|
114
|
+
}, {
|
|
115
|
+
label: '시 99',
|
|
116
|
+
format: formatHourInput,
|
|
117
|
+
input: '99'
|
|
118
|
+
}, {
|
|
119
|
+
label: '분 60',
|
|
120
|
+
format: formatMinuteInput,
|
|
121
|
+
input: '60'
|
|
122
|
+
}])('DU-02 범위 밖 값($label)은 정리하지 않고 원문을 돌려준다', _ref4 => {
|
|
123
|
+
let {
|
|
124
|
+
format,
|
|
125
|
+
input
|
|
126
|
+
} = _ref4;
|
|
127
|
+
// 현재 동작 고정 — 결함 후보: 후속 이슈 (범위 밖을 원문 반환 → flatpickr blur 보정이 나머지 연산으로 감음 — RDP-11 과 같은 뿌리)
|
|
128
|
+
expect(format(input)).toBe(input);
|
|
129
|
+
});
|
|
130
|
+
it.todo('DU-02 시 24 이상 · 분 60 이상은 23 · 59 로 제한한다 (기대 동작)');
|
|
26
131
|
});
|
|
@@ -311,4 +311,28 @@ describe('findScrollableParent — 스크롤 부모 탐색 (characterisation)',
|
|
|
311
311
|
}));
|
|
312
312
|
expect(findScrollableParent(boundary, boundary)).toBe(boundary);
|
|
313
313
|
});
|
|
314
|
+
it('UDD-01 boundary 밖 요소는 body 까지 올라가 boundary 를 만나지 못하고 null 을 반환한다', () => {
|
|
315
|
+
const [boundary] = mountChain(createScrollable({
|
|
316
|
+
overflowY: 'auto',
|
|
317
|
+
scrollable: true
|
|
318
|
+
}));
|
|
319
|
+
const [outside] = mountChain(createScrollable({
|
|
320
|
+
overflowY: 'visible',
|
|
321
|
+
scrollable: false
|
|
322
|
+
}), createScrollable({
|
|
323
|
+
overflowY: 'visible',
|
|
324
|
+
scrollable: false
|
|
325
|
+
}));
|
|
326
|
+
expect(findScrollableParent(outside, boundary)).toBeNull();
|
|
327
|
+
});
|
|
328
|
+
it('UDD-01 boundary 가 overflow auto 여도 내용이 넘치지 않으면 null 을 반환한다', () => {
|
|
329
|
+
const [boundary, target] = mountChain(createScrollable({
|
|
330
|
+
overflowY: 'auto',
|
|
331
|
+
scrollable: false
|
|
332
|
+
}), createScrollable({
|
|
333
|
+
overflowY: 'visible',
|
|
334
|
+
scrollable: false
|
|
335
|
+
}));
|
|
336
|
+
expect(findScrollableParent(target, boundary)).toBeNull();
|
|
337
|
+
});
|
|
314
338
|
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
//
|
|
3
|
+
// useMultiSelect 의 호출부 경유로 닿지 않는 방어 분기 — 위험 목록표 UDD-02 (PR-7c).
|
|
4
|
+
// SelectBox·ComboBox 는 tryToggle 에 항상 배열을 넘기므로 훅을 하네스로 직접 부른다.
|
|
5
|
+
import { createElement } from 'react';
|
|
6
|
+
import { createRoot } from 'react-dom/client';
|
|
7
|
+
import { act } from 'react-dom/test-utils';
|
|
8
|
+
import { afterEach, describe, expect, it } from 'vitest';
|
|
9
|
+
import { useMultiSelect } from '../multiSelect';
|
|
10
|
+
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
|
|
11
|
+
const OPTIONS = [{
|
|
12
|
+
id: 'a',
|
|
13
|
+
label: 'A'
|
|
14
|
+
}, {
|
|
15
|
+
id: 'b',
|
|
16
|
+
label: 'B'
|
|
17
|
+
}];
|
|
18
|
+
const cleanups = [];
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
for (const cleanup of cleanups.splice(0)) cleanup();
|
|
21
|
+
});
|
|
22
|
+
const renderMultiSelect = () => {
|
|
23
|
+
const captured = {
|
|
24
|
+
current: null
|
|
25
|
+
};
|
|
26
|
+
const Probe = () => {
|
|
27
|
+
captured.current = useMultiSelect([], OPTIONS);
|
|
28
|
+
return null;
|
|
29
|
+
};
|
|
30
|
+
const container = document.createElement('div');
|
|
31
|
+
const root = createRoot(container);
|
|
32
|
+
cleanups.push(() => act(() => root.unmount()));
|
|
33
|
+
act(() => {
|
|
34
|
+
root.render(/*#__PURE__*/createElement(Probe));
|
|
35
|
+
});
|
|
36
|
+
if (captured.current === null) throw new Error('useMultiSelect 반환값을 얻지 못했습니다');
|
|
37
|
+
return captured.current;
|
|
38
|
+
};
|
|
39
|
+
describe('UDD-02 tryToggle 현재값 방어', () => {
|
|
40
|
+
it('UDD-02 현재값이 배열이 아니면 빈 배열 기준으로 추가한다', () => {
|
|
41
|
+
const {
|
|
42
|
+
tryToggle
|
|
43
|
+
} = renderMultiSelect();
|
|
44
|
+
expect(tryToggle('a', undefined)).toEqual(['a']);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -3,7 +3,7 @@ import { isMaxSelectionLimitActive, isMaxSelectionReached } from './maxSelection
|
|
|
3
3
|
/**
|
|
4
4
|
* 전체 선택 상태를 확인하는 유틸 함수
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
const isAllItemsSelected = (selectedValues, options) => {
|
|
7
7
|
if (options.length === 0) return false;
|
|
8
8
|
const validOptionIds = options.filter(option => !option.disabled).map(option => option.id);
|
|
9
9
|
return validOptionIds.length > 0 && validOptionIds.every(id => selectedValues.includes(id));
|
|
@@ -11,7 +11,7 @@ export const isAllItemsSelected = (selectedValues, options) => {
|
|
|
11
11
|
/**
|
|
12
12
|
* 전체 선택 버튼 텍스트를 반환하는 유틸 함수
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
const getSelectAllButtonText = function (selectedValues, options) {
|
|
15
15
|
let selectText = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '전체 선택';
|
|
16
16
|
let deselectText = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '전체 해제';
|
|
17
17
|
return isAllItemsSelected(selectedValues, options) ? deselectText : selectText;
|
|
@@ -19,7 +19,7 @@ export const getSelectAllButtonText = function (selectedValues, options) {
|
|
|
19
19
|
/**
|
|
20
20
|
* 전체 선택/해제를 처리하는 유틸 함수
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
const handleSelectAllItems = (selectedValues, options) => {
|
|
23
23
|
if (isAllItemsSelected(selectedValues, options)) {
|
|
24
24
|
// 전체 해제: 빈 배열 반환
|
|
25
25
|
return [];
|
|
@@ -30,7 +30,7 @@ export const handleSelectAllItems = (selectedValues, options) => {
|
|
|
30
30
|
/**
|
|
31
31
|
* 선택된 항목들을 태그 데이터로 변환하는 유틸 함수
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
const getSelectedTags = (selectedValues, options) => {
|
|
34
34
|
return selectedValues.map(value => {
|
|
35
35
|
const option = options.find(opt => opt.id === value);
|
|
36
36
|
return option ? {
|
|
@@ -42,7 +42,7 @@ export const getSelectedTags = (selectedValues, options) => {
|
|
|
42
42
|
/**
|
|
43
43
|
* 태그 제거 시 선택값에서 해당 ID를 제거하는 유틸 함수
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
const removeTagFromSelected = (selectedValues, tagIdToRemove) => {
|
|
46
46
|
return selectedValues.filter(id => id !== tagIdToRemove);
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
3
|
+
import { trackPortalPosition } from '..';
|
|
4
|
+
/** afterEach 에서 호출할 구독 해제 함수 */
|
|
5
|
+
const cleanups = [];
|
|
6
|
+
afterEach(() => {
|
|
7
|
+
for (const cleanup of cleanups.splice(0)) {
|
|
8
|
+
cleanup();
|
|
9
|
+
}
|
|
10
|
+
document.body.replaceChildren();
|
|
11
|
+
});
|
|
12
|
+
const createPanel = () => {
|
|
13
|
+
const panel = document.createElement('div');
|
|
14
|
+
document.body.appendChild(panel);
|
|
15
|
+
return panel;
|
|
16
|
+
};
|
|
17
|
+
/** 구독 시점에는 anchor 를 돌려주고, detach() 이후에는 null 을 돌려주는 getAnchor */
|
|
18
|
+
const createDetachableAnchor = () => {
|
|
19
|
+
const element = document.createElement('button');
|
|
20
|
+
document.body.appendChild(element);
|
|
21
|
+
let current = element;
|
|
22
|
+
return {
|
|
23
|
+
getAnchor: () => current,
|
|
24
|
+
detach: () => {
|
|
25
|
+
current = null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const track = (getAnchor, onUpdate) => {
|
|
30
|
+
const panel = createPanel();
|
|
31
|
+
cleanups.push(trackPortalPosition({
|
|
32
|
+
getAnchor,
|
|
33
|
+
getPanel: () => panel,
|
|
34
|
+
direction: 'down',
|
|
35
|
+
onUpdate
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
describe('trackPortalPosition — 변화 시점 anchor 가 null (RSD-02)', () => {
|
|
39
|
+
it('RSD-02 구독 뒤 anchor 가 null 이 되면 resize 에도 onUpdate 를 부르지 않는다', () => {
|
|
40
|
+
// Given: 구독 시점에는 anchor 가 있었고 이후 사라진다
|
|
41
|
+
const anchor = createDetachableAnchor();
|
|
42
|
+
const onUpdate = vi.fn();
|
|
43
|
+
track(anchor.getAnchor, onUpdate);
|
|
44
|
+
onUpdate.mockClear();
|
|
45
|
+
anchor.detach();
|
|
46
|
+
// When: 창 크기 변화가 온다
|
|
47
|
+
window.dispatchEvent(new Event('resize'));
|
|
48
|
+
// Then: onUpdate 가 불리지 않는다
|
|
49
|
+
expect(onUpdate).not.toHaveBeenCalled();
|
|
50
|
+
});
|
|
51
|
+
it('RSD-02 (대조) anchor 가 남아 있으면 resize 에 onUpdate 를 부른다', () => {
|
|
52
|
+
// Given: anchor 가 계속 있다
|
|
53
|
+
const anchor = createDetachableAnchor();
|
|
54
|
+
const onUpdate = vi.fn();
|
|
55
|
+
track(anchor.getAnchor, onUpdate);
|
|
56
|
+
onUpdate.mockClear();
|
|
57
|
+
// When: 창 크기 변화가 온다
|
|
58
|
+
window.dispatchEvent(new Event('resize'));
|
|
59
|
+
// Then: 측정한 스타일로 onUpdate 가 불린다
|
|
60
|
+
expect(onUpdate).toHaveBeenCalledWith(expect.objectContaining({
|
|
61
|
+
position: 'fixed'
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -4,6 +4,8 @@ import { defineConfig } from 'vitest/config';
|
|
|
4
4
|
// projectBaseDir 로 잡으므로, 패키지 루트 기준 상대경로(SF:src/foo.ts)로 두면 경로가
|
|
5
5
|
// 해석되지 않아 커버리지가 통째로 무시된다.
|
|
6
6
|
const REPO_ROOT = path.resolve(__dirname, '../..');
|
|
7
|
+
// CI 출력은 그대로 두고 로컬에서만 리포터를 더한다 (CI 는 GitHub Actions 가 CI=true 로 설정).
|
|
8
|
+
const LOCAL_REPORTERS = process.env.CI ? [] : ['text', 'html'];
|
|
7
9
|
export default defineConfig({
|
|
8
10
|
test: {
|
|
9
11
|
include: ['scripts/**/__tests__/**/*.test.ts', 'src/**/__tests__/**/*.test.ts', 'assets/scripts/**/__tests__/**/*.test.ts'],
|
|
@@ -17,22 +19,26 @@ export default defineConfig({
|
|
|
17
19
|
// (step-guide 의 src/index.ts 는 824줄 본체 구현이므로 그쪽에서는 제외하지 않는다.)
|
|
18
20
|
'**/index.ts',
|
|
19
21
|
// MCP 가 읽는 컴포넌트 메타데이터 선언 45개 — 실행 분기 없는 순수 데이터.
|
|
20
|
-
'**/*.meta.ts', 'src/types/**', 'src/constant/**'
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
|
|
22
|
+
'**/*.meta.ts', 'src/types/**', 'src/constant/**',
|
|
23
|
+
// generate:scoped-css 가 만드는 빌드 산출물(gitignore) — 존재 여부가 실행 환경마다 달라
|
|
24
|
+
// 분모가 흔들린다. git 에 없어 Sonar 스캔 대상이 아니므로 sonar 쪽 동기화는 필요 없다.
|
|
25
|
+
'src/generated/**'],
|
|
26
|
+
// CI 에는 'text' 미포함 — 미커버 파일이 수백 개라 파일별 상세 출력이 CI 로그를 덮는다.
|
|
27
|
+
// 로컬(CI 환경변수 없음)에서만 파일별 표(text)와 HTML 리포트(coverage/index.html)를 더한다.
|
|
28
|
+
// 'lcov' 대신 'lcovonly' — 'lcov' 는 HTML 리포트까지 생성한다 (CI 에서는 불필요).
|
|
29
|
+
reporter: [...LOCAL_REPORTERS, 'text-summary', ['lcovonly', {
|
|
24
30
|
projectRoot: REPO_ROOT
|
|
25
31
|
}]],
|
|
26
32
|
// 회귀 방지 하한선 — 실측에서 약 2%p 낮춘 값 (ui-admin-mcp 와 같은 여유폭).
|
|
27
|
-
// 실측 기준: 2026-10-
|
|
28
|
-
//
|
|
33
|
+
// 실측 기준: 2026-10-28, 545a9c81 — stmts 98.92 / branch 96.79 / funcs 99.19 / lines 99.65
|
|
34
|
+
// (직전 2026-10-12, 25cb4d96 — 54.91 / 44.63 / 55.20 / 55.80 에서 PR-4~9 테스트로 인상. 최종 목표 93 / 88 초과 달성)
|
|
29
35
|
// autoUpdate: false — 값은 실측을 확인하고 사람이 직접 올린다.
|
|
30
36
|
thresholds: {
|
|
31
37
|
autoUpdate: false,
|
|
32
|
-
statements:
|
|
33
|
-
branches:
|
|
34
|
-
functions:
|
|
35
|
-
lines:
|
|
38
|
+
statements: 96,
|
|
39
|
+
branches: 94,
|
|
40
|
+
functions: 97,
|
|
41
|
+
lines: 97
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
44
|
}
|
|
@@ -17,13 +17,6 @@ export declare const FULL_WIDTH_ICON_MAP: {
|
|
|
17
17
|
readonly success: (size: string) => string;
|
|
18
18
|
readonly info: (size: string) => string;
|
|
19
19
|
};
|
|
20
|
-
export declare const ICON_MAP: {
|
|
21
|
-
readonly neutral: (size: string) => string;
|
|
22
|
-
readonly error: (size: string) => string;
|
|
23
|
-
readonly warning: (size: string) => string;
|
|
24
|
-
readonly success: (size: string) => string;
|
|
25
|
-
readonly info: (size: string) => string;
|
|
26
|
-
};
|
|
27
20
|
/** message 기본 타입 아이콘. floating 과 같은 4색에 info(neutral 과 같은 핀)를 더한다. */
|
|
28
21
|
export declare const MESSAGE_ICON_MAP: Record<NotificationColor, IconFunction>;
|
|
29
22
|
export {};
|
|
@@ -22,7 +22,6 @@ export const FULL_WIDTH_ICON_MAP = {
|
|
|
22
22
|
success: SVG_ICONS['check-circle'],
|
|
23
23
|
info: SVG_ICONS['info-circle'],
|
|
24
24
|
};
|
|
25
|
-
export const ICON_MAP = FULL_WIDTH_ICON_MAP;
|
|
26
25
|
/** message 기본 타입 아이콘. floating 과 같은 4색에 info(neutral 과 같은 핀)를 더한다. */
|
|
27
26
|
export const MESSAGE_ICON_MAP = {
|
|
28
27
|
neutral: SVG_ICONS['pin-02'],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CLASS_NAMES } from './classNames';
|
|
2
|
-
export { FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP,
|
|
3
|
-
export {
|
|
4
|
-
export type { BaseNotificationOptions, LegacyNotificationHierarchy, NotificationAction, NotificationActionButtonSize, NotificationColor, NotificationHierarchy,
|
|
2
|
+
export { FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, MESSAGE_ICON_MAP, SVG_ICONS } from './icons';
|
|
3
|
+
export { FULL_WIDTH_SIZES, getSizes, MESSAGE_SIZES } from './sizes';
|
|
4
|
+
export type { BaseNotificationOptions, LegacyNotificationHierarchy, NotificationAction, NotificationActionButtonSize, NotificationColor, NotificationHierarchy, } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Re-export all constants and types from separate files
|
|
2
2
|
export { CLASS_NAMES } from './classNames';
|
|
3
|
-
export { FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP,
|
|
4
|
-
export {
|
|
3
|
+
export { FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, MESSAGE_ICON_MAP, SVG_ICONS } from './icons';
|
|
4
|
+
export { FULL_WIDTH_SIZES, getSizes, MESSAGE_SIZES } from './sizes';
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
readonly MOBILE: "md";
|
|
3
|
-
readonly DESKTOP: "sm";
|
|
4
|
-
};
|
|
5
|
-
export declare const ICON_PIXEL_SIZES: {
|
|
6
|
-
readonly MOBILE: "20";
|
|
7
|
-
readonly DESKTOP: "16";
|
|
8
|
-
readonly FULL_WIDTH: "16";
|
|
9
|
-
};
|
|
10
|
-
export declare const CLOSE_BUTTON_SIZES: {
|
|
11
|
-
readonly MOBILE: "sm";
|
|
12
|
-
readonly DESKTOP: "xs";
|
|
13
|
-
};
|
|
14
|
-
export declare const CLOSE_BUTTON_SVG_SIZES: {
|
|
1
|
+
declare const CLOSE_BUTTON_SVG_SIZES: {
|
|
15
2
|
readonly xs: 16;
|
|
16
3
|
readonly sm: 20;
|
|
17
4
|
};
|
|
@@ -30,3 +17,4 @@ export declare const getSizes: {
|
|
|
30
17
|
readonly closeButton: (isMobile: boolean) => "xs" | "sm";
|
|
31
18
|
readonly closeButtonSvg: (size: keyof typeof CLOSE_BUTTON_SVG_SIZES) => 20 | 16;
|
|
32
19
|
};
|
|
20
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// 알림 컴포넌트 사이즈 관련 상수들
|
|
2
2
|
// FeaturedIcon 사이즈
|
|
3
|
-
|
|
3
|
+
const FEATURED_ICON_SIZES = {
|
|
4
4
|
MOBILE: 'md',
|
|
5
5
|
DESKTOP: 'sm',
|
|
6
6
|
};
|
|
7
7
|
// SVG 아이콘 픽셀 사이즈
|
|
8
|
-
|
|
8
|
+
const ICON_PIXEL_SIZES = {
|
|
9
9
|
MOBILE: '20',
|
|
10
10
|
DESKTOP: '16',
|
|
11
11
|
FULL_WIDTH: '16', // Full-width는 항상 고정
|
|
12
12
|
};
|
|
13
13
|
// 닫기 버튼 사이즈
|
|
14
|
-
|
|
14
|
+
const CLOSE_BUTTON_SIZES = {
|
|
15
15
|
MOBILE: 'sm',
|
|
16
16
|
DESKTOP: 'xs',
|
|
17
17
|
};
|
|
18
18
|
// 닫기 버튼 SVG 픽셀 사이즈
|
|
19
|
-
|
|
19
|
+
const CLOSE_BUTTON_SVG_SIZES = {
|
|
20
20
|
xs: 16,
|
|
21
21
|
sm: 20,
|
|
22
22
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type NotificationColor = 'neutral' | 'error' | 'warning' | 'success' | 'info';
|
|
2
1
|
/**
|
|
3
2
|
* 텍스트 링크(`supportTextLink`)를 여는 대상. React `NotificationLinkTarget`과 같은 어휘다.
|
|
4
3
|
* - `'_self'`: 같은 탭
|
|
5
4
|
* - `'_blank'`: 새 탭 + `rel="noopener noreferrer"`
|
|
6
5
|
*/
|
|
7
|
-
|
|
6
|
+
type NotificationLinkTarget = '_self' | '_blank';
|
|
7
|
+
export type NotificationColor = 'neutral' | 'error' | 'warning' | 'success' | 'info';
|
|
8
8
|
/**
|
|
9
9
|
* 알림 액션 버튼(`ncua-btn`)의 색상 수식자.
|
|
10
10
|
* React `NotificationAction.hierarchy`와 동일한 어휘를 쓴다 — `ButtonTheme`의 부분집합이다.
|
|
@@ -64,3 +64,4 @@ export interface BaseNotificationOptions {
|
|
|
64
64
|
*/
|
|
65
65
|
hidePermanentlyLabel?: string;
|
|
66
66
|
}
|
|
67
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { BaseNotificationOptions, NotificationAction, NotificationColor, NotificationHierarchy } from './const';
|
|
2
|
-
export { CLASS_NAMES, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP,
|
|
2
|
+
export { CLASS_NAMES, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, SVG_ICONS } from './const';
|
|
3
3
|
export { FloatingNotification, type FloatingNotificationOptions } from './FloatingNotification';
|
|
4
4
|
export { FullWidthNotification, type FullWidthNotificationOptions } from './FullWidthNotification';
|
|
5
5
|
export { MessageNotification, type MessageNotificationOptions } from './MessageNotification';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CLASS_NAMES, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP,
|
|
1
|
+
export { CLASS_NAMES, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, SVG_ICONS } from './const';
|
|
2
2
|
export { FloatingNotification } from './FloatingNotification';
|
|
3
3
|
export { FullWidthNotification } from './FullWidthNotification';
|
|
4
4
|
export { MessageNotification } from './MessageNotification';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export type ButtonCloseXSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2
2
|
export type ButtonCloseXTheme = 'dark' | 'light';
|
|
3
|
-
export declare const SVG_SIZE: Record<ButtonCloseXSize, number>;
|
|
4
|
-
export declare const X_CLOSE_SVG: (size: string) => string;
|
|
5
3
|
export declare function ButtonCloseX(size: ButtonCloseXSize, theme?: ButtonCloseXTheme, additionalClasses?: string, ariaLabel?: string, onClick?: () => void): string;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// 공통 X버튼 로직 (React ButtonCloseX 컴포넌트와 동일한 구조)
|
|
2
2
|
// React ButtonCloseX와 동일한 SVG 사이즈 매핑
|
|
3
|
-
|
|
3
|
+
const SVG_SIZE = {
|
|
4
4
|
xs: 16,
|
|
5
5
|
sm: 20,
|
|
6
6
|
md: 20,
|
|
7
7
|
lg: 24,
|
|
8
8
|
};
|
|
9
|
+
// 버튼 id 난수 — 36진수 문자열에서 '0.' 뒤 9자리를 쓴다
|
|
10
|
+
const BUTTON_ID_RADIX = 36;
|
|
11
|
+
const BUTTON_ID_LENGTH = 9;
|
|
9
12
|
// X버튼 SVG 아이콘
|
|
10
|
-
|
|
13
|
+
const X_CLOSE_SVG = (size) => `<svg width="${size}" height="${size}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
11
14
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
12
15
|
</svg>`;
|
|
13
16
|
// X버튼 렌더링 유틸리티 (React ButtonCloseX와 동일한 인터페이스)
|
|
14
17
|
export function ButtonCloseX(size, theme = 'light', additionalClasses = '', ariaLabel = '닫기', onClick) {
|
|
15
18
|
const svgSize = SVG_SIZE[size];
|
|
16
|
-
const buttonId = `close-btn-${Math.random().toString(
|
|
19
|
+
const buttonId = `close-btn-${Math.random().toString(BUTTON_ID_RADIX).substr(2, BUTTON_ID_LENGTH)}`;
|
|
17
20
|
const buttonHTML = `
|
|
18
21
|
<button type="button" id="${buttonId}" class="ncua-button-close-x ncua-button-close-x--${size} ncua-button-close-x--${theme} ${additionalClasses}" aria-label="${ariaLabel}">
|
|
19
22
|
${X_CLOSE_SVG(svgSize.toString())}
|
|
@@ -37,7 +37,6 @@ export declare const SCROLLBAR_OWNERS: {
|
|
|
37
37
|
readonly cdn: "cdn";
|
|
38
38
|
readonly react: "react";
|
|
39
39
|
};
|
|
40
|
-
export type ScrollbarOwner = (typeof SCROLLBAR_OWNERS)[keyof typeof SCROLLBAR_OWNERS];
|
|
41
40
|
export declare const SCROLLBAR_OWNER_VALUES: readonly string[];
|
|
42
41
|
export declare const OPT_OUT_VALUE = "off";
|
|
43
42
|
export declare const AXIS_VALUES: readonly ["both", "x", "y"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const CLASS_NAMES: {
|
|
2
|
+
TOOLTIP: string;
|
|
3
|
+
TOOLTIP_ICON: string;
|
|
4
|
+
TOOLTIP_BG: string;
|
|
5
|
+
TOOLTIP_TITLE: string;
|
|
6
|
+
TOOLTIP_CONTENT: string;
|
|
7
|
+
TOOLTIP_CLOSE_BUTTON: string;
|
|
8
|
+
TOOLTIP_HIDDEN_ARROW: string;
|
|
9
|
+
TOOLTIP_STROKE: string;
|
|
10
|
+
TOOLTIP_AUTO: string;
|
|
11
|
+
TOOLTIP_BG_VISIBLE: string;
|
|
12
|
+
TOOLTIP_BG_MEASURING: string;
|
|
13
|
+
TOOLTIP_BG_FORCE_HIDDEN: string;
|
|
14
|
+
TOOLTIP_GLOBAL_LAYER: string;
|
|
15
|
+
TOOLTIP_PANEL: string;
|
|
16
|
+
BUTTON_CLOSE_X: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Tooltip CSS 클래스명 상수들
|
|
2
|
+
export const CLASS_NAMES = {
|
|
3
|
+
// 기본 클래스
|
|
4
|
+
TOOLTIP: 'ncua-tooltip',
|
|
5
|
+
TOOLTIP_ICON: 'ncua-tooltip__icon',
|
|
6
|
+
TOOLTIP_BG: 'ncua-tooltip__bg',
|
|
7
|
+
TOOLTIP_TITLE: 'ncua-tooltip__title',
|
|
8
|
+
TOOLTIP_CONTENT: 'ncua-tooltip__content',
|
|
9
|
+
TOOLTIP_CLOSE_BUTTON: 'ncua-tooltip__close-button',
|
|
10
|
+
// 수정자 클래스 (modifier classes)
|
|
11
|
+
TOOLTIP_HIDDEN_ARROW: 'ncua-tooltip--hidden-arrow',
|
|
12
|
+
TOOLTIP_STROKE: 'ncua-tooltip--stroke',
|
|
13
|
+
TOOLTIP_AUTO: 'ncua-tooltip--auto',
|
|
14
|
+
// 배경 상태 클래스
|
|
15
|
+
TOOLTIP_BG_VISIBLE: 'ncua-tooltip__bg--visible',
|
|
16
|
+
TOOLTIP_BG_MEASURING: 'ncua-tooltip__bg--measuring',
|
|
17
|
+
TOOLTIP_BG_FORCE_HIDDEN: 'ncua-tooltip__bg--force-hidden',
|
|
18
|
+
// 레이어 관련 클래스
|
|
19
|
+
TOOLTIP_GLOBAL_LAYER: 'ncua-tooltip-global-layer',
|
|
20
|
+
TOOLTIP_PANEL: 'ncua-tooltip-panel',
|
|
21
|
+
// 버튼 클래스
|
|
22
|
+
BUTTON_CLOSE_X: 'ncua-button-close-x',
|
|
23
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TooltipOptions } from './types';
|
|
2
|
+
export declare const MARGIN = 10;
|
|
3
|
+
export declare const DEFAULT_TOOLTIP_WIDTH = 200;
|
|
4
|
+
export declare const DEFAULT_TOOLTIP_HEIGHT = 60;
|
|
5
|
+
export declare const POSITION_PRIORITY: readonly ["bottom", "top", "right", "left"];
|
|
6
|
+
export declare const TOOLTIP_OFFSET = 8;
|
|
7
|
+
export declare const VIEWPORT_MARGIN = 8;
|
|
8
|
+
export declare const ICON_SIZES: {
|
|
9
|
+
readonly sm: 14;
|
|
10
|
+
readonly md: 16;
|
|
11
|
+
};
|
|
12
|
+
export declare const TRANSITION_DURATION = "0.18s";
|
|
13
|
+
export declare const OFFSCREEN_POSITION = "-99999px";
|
|
14
|
+
export declare const OPACITY: {
|
|
15
|
+
readonly HIDDEN: "0";
|
|
16
|
+
readonly VISIBLE: "1";
|
|
17
|
+
};
|
|
18
|
+
export declare const POSITION: {
|
|
19
|
+
readonly INITIAL: "0px";
|
|
20
|
+
readonly OFFSCREEN: "-99999px";
|
|
21
|
+
};
|
|
22
|
+
export declare const Z_INDEX: {
|
|
23
|
+
readonly TOOLTIP_LAYER: 2000;
|
|
24
|
+
};
|
|
25
|
+
export declare const EVENT_OPTIONS: {
|
|
26
|
+
readonly PASSIVE: {
|
|
27
|
+
readonly passive: true;
|
|
28
|
+
};
|
|
29
|
+
readonly ONCE: {
|
|
30
|
+
readonly once: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const TOOLTIP_DEFAULT_VALUE: TooltipOptions;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const MARGIN = 10;
|
|
2
|
+
export const DEFAULT_TOOLTIP_WIDTH = 200;
|
|
3
|
+
export const DEFAULT_TOOLTIP_HEIGHT = 60;
|
|
4
|
+
export const POSITION_PRIORITY = ['bottom', 'top', 'right', 'left'];
|
|
5
|
+
// 툴팁 위치 계산 관련 상수
|
|
6
|
+
export const TOOLTIP_OFFSET = 8; // 툴팁과 앵커 사이의 거리
|
|
7
|
+
export const VIEWPORT_MARGIN = 8; // 뷰포트 경계와의 최소 거리
|
|
8
|
+
// 아이콘 크기 상수
|
|
9
|
+
export const ICON_SIZES = {
|
|
10
|
+
sm: 14,
|
|
11
|
+
md: 16,
|
|
12
|
+
};
|
|
13
|
+
// 애니메이션 관련 상수
|
|
14
|
+
export const TRANSITION_DURATION = '0.18s';
|
|
15
|
+
export const OFFSCREEN_POSITION = '-99999px';
|
|
16
|
+
// 툴팁 상태 관련 상수
|
|
17
|
+
export const OPACITY = {
|
|
18
|
+
HIDDEN: '0',
|
|
19
|
+
VISIBLE: '1',
|
|
20
|
+
};
|
|
21
|
+
export const POSITION = {
|
|
22
|
+
INITIAL: '0px',
|
|
23
|
+
OFFSCREEN: OFFSCREEN_POSITION,
|
|
24
|
+
};
|
|
25
|
+
// z-index 관련 상수
|
|
26
|
+
// SCSS 토큰 `--z-index-tooltip`(base/_custom-variable.scss)과 동기 유지 — 변경 시 양쪽 같이 수정
|
|
27
|
+
export const Z_INDEX = {
|
|
28
|
+
TOOLTIP_LAYER: 2000, // 툴팁 전역 레이어 기본 z-index (고도몰 기준)
|
|
29
|
+
};
|
|
30
|
+
// 이벤트 관련 상수
|
|
31
|
+
export const EVENT_OPTIONS = {
|
|
32
|
+
PASSIVE: { passive: true },
|
|
33
|
+
ONCE: { once: true },
|
|
34
|
+
};
|
|
35
|
+
export const TOOLTIP_DEFAULT_VALUE = {
|
|
36
|
+
tooltipType: 'white',
|
|
37
|
+
iconType: 'stroke',
|
|
38
|
+
position: 'auto',
|
|
39
|
+
size: 'sm',
|
|
40
|
+
hideArrow: false,
|
|
41
|
+
title: '',
|
|
42
|
+
content: '',
|
|
43
|
+
type: 'short',
|
|
44
|
+
zIndex: Z_INDEX.TOOLTIP_LAYER,
|
|
45
|
+
useShadowDOM: false,
|
|
46
|
+
className: '',
|
|
47
|
+
iconColor: 'var(--gray-300)', // React Tooltip의 iconColor 기본값과 동일
|
|
48
|
+
};
|