@ncds/ui-admin 1.8.2 → 1.8.4
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/slider.js +26 -18
- package/dist/cjs/src/components/{button → action/button}/Button.js +2 -2
- package/dist/cjs/src/components/{button-group → action/button-group}/ButtonGroup.js +2 -2
- package/dist/cjs/src/components/{badge → feedback-and-status/badge}/utils.js +2 -2
- package/dist/cjs/src/components/{empty-state → feedback-and-status/empty-state}/EmptyState.js +1 -1
- package/dist/cjs/src/components/{tag → feedback-and-status/tag}/Tag.js +2 -2
- package/dist/cjs/src/components/{combo-box → forms-and-input/combo-box}/ComboBox.js +6 -6
- package/dist/cjs/src/components/{date-picker → forms-and-input/date-picker}/DatePicker.js +14 -12
- package/dist/cjs/src/components/{file-input → forms-and-input/file-input}/FileInput.js +3 -3
- package/dist/cjs/src/components/{image-file-input → forms-and-input/image-file-input}/ImageFileInput.js +3 -3
- package/dist/cjs/src/components/{image-file-input → forms-and-input/image-file-input}/components/ImagePreview.js +1 -1
- package/dist/cjs/src/components/{input-base → forms-and-input/input-base}/InputBase.js +3 -3
- package/dist/cjs/src/components/{number-input → forms-and-input/number-input}/NumberInput.js +2 -2
- package/dist/cjs/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/RangeDatePickerWithButtons.js +3 -3
- package/dist/cjs/src/components/{select → forms-and-input/select}/Select.js +1 -1
- package/dist/cjs/src/components/{select-box → forms-and-input/select-box}/SelectBox.js +6 -6
- package/dist/cjs/src/components/{slider → forms-and-input/slider}/Slider.js +1 -1
- package/dist/cjs/src/components/{textarea → forms-and-input/textarea}/Textarea.js +2 -2
- package/dist/cjs/src/components/index.js +200 -167
- package/dist/cjs/src/components/layout/block-container/BlockContainer.js +38 -0
- package/dist/cjs/src/components/layout/block-container/index.js +16 -0
- package/dist/cjs/src/components/layout/block-header/BlockHeader.js +107 -0
- package/dist/cjs/src/components/layout/block-header/SubTitle.js +56 -0
- package/dist/cjs/src/components/layout/block-header/index.js +27 -0
- package/dist/cjs/src/components/layout/page-title/PageTitle.js +95 -0
- package/dist/cjs/src/components/layout/page-title/index.js +16 -0
- package/dist/cjs/src/components/{horizontal-tab → navigation/horizontal-tab}/HorizontalTab.js +1 -1
- package/dist/cjs/src/components/{pagination → navigation/pagination}/NavButton.js +1 -1
- package/dist/cjs/src/components/{vertical-tab → navigation/vertical-tab}/VerticalTab.js +2 -2
- package/dist/cjs/src/components/overlays/dropdown/Dropdown.js +453 -0
- package/dist/cjs/src/components/overlays/dropdown/__tests__/utils.test.js +225 -0
- package/dist/cjs/src/components/overlays/dropdown/utils.js +96 -0
- package/dist/cjs/src/components/{modal → overlays/modal}/Modal.js +2 -2
- package/dist/cjs/src/components/{notification → overlays/notification}/FloatingNotification.js +5 -5
- package/dist/cjs/src/components/{notification → overlays/notification}/FullWidthNotification.js +1 -1
- package/dist/cjs/src/components/{notification → overlays/notification}/MessageNotification.js +3 -3
- package/dist/cjs/src/components/{tooltip → overlays/tooltip}/Tooltip.js +1 -1
- package/dist/cjs/src/components/select-dropdown/SelectDropdown.js +1 -1
- package/dist/cjs/src/components/tab/TabButton.js +1 -1
- package/dist/cjs/vitest.config.js +1 -1
- package/dist/esm/assets/scripts/slider.js +26 -18
- package/dist/esm/src/components/{button → action/button}/Button.js +2 -2
- package/dist/esm/src/components/{button-group → action/button-group}/ButtonGroup.js +2 -2
- package/dist/esm/src/components/{badge → feedback-and-status/badge}/utils.js +2 -2
- package/dist/esm/src/components/{empty-state → feedback-and-status/empty-state}/EmptyState.js +1 -1
- package/dist/esm/src/components/{tag → feedback-and-status/tag}/Tag.js +2 -2
- package/dist/esm/src/components/{combo-box → forms-and-input/combo-box}/ComboBox.js +6 -6
- package/dist/esm/src/components/{date-picker → forms-and-input/date-picker}/DatePicker.js +14 -12
- package/dist/esm/src/components/{file-input → forms-and-input/file-input}/FileInput.js +3 -3
- package/dist/esm/src/components/{image-file-input → forms-and-input/image-file-input}/ImageFileInput.js +3 -3
- package/dist/esm/src/components/{image-file-input → forms-and-input/image-file-input}/components/ImagePreview.js +1 -1
- package/dist/esm/src/components/{input-base → forms-and-input/input-base}/InputBase.js +3 -3
- package/dist/esm/src/components/{number-input → forms-and-input/number-input}/NumberInput.js +2 -2
- package/dist/esm/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/RangeDatePickerWithButtons.js +3 -3
- package/dist/esm/src/components/{select → forms-and-input/select}/Select.js +1 -1
- package/dist/esm/src/components/{select-box → forms-and-input/select-box}/SelectBox.js +6 -6
- package/dist/esm/src/components/{slider → forms-and-input/slider}/Slider.js +1 -1
- package/dist/esm/src/components/{textarea → forms-and-input/textarea}/Textarea.js +2 -2
- package/dist/esm/src/components/index.js +54 -42
- package/dist/esm/src/components/layout/block-container/BlockContainer.js +31 -0
- package/dist/esm/src/components/layout/block-container/index.js +1 -0
- package/dist/esm/src/components/layout/block-header/BlockHeader.js +100 -0
- package/dist/esm/src/components/layout/block-header/SubTitle.js +49 -0
- package/dist/esm/src/components/layout/block-header/index.js +2 -0
- package/dist/esm/src/components/layout/page-title/PageTitle.js +88 -0
- package/dist/esm/src/components/layout/page-title/index.js +1 -0
- package/dist/esm/src/components/{horizontal-tab → navigation/horizontal-tab}/HorizontalTab.js +1 -1
- package/dist/esm/src/components/{pagination → navigation/pagination}/NavButton.js +1 -1
- package/dist/esm/src/components/{vertical-tab → navigation/vertical-tab}/VerticalTab.js +2 -2
- package/dist/esm/src/components/overlays/dropdown/Dropdown.js +446 -0
- package/dist/esm/src/components/overlays/dropdown/__tests__/utils.test.js +223 -0
- package/dist/esm/src/components/overlays/dropdown/utils.js +86 -0
- package/dist/esm/src/components/{modal → overlays/modal}/Modal.js +2 -2
- package/dist/esm/src/components/{notification → overlays/notification}/FloatingNotification.js +5 -5
- package/dist/esm/src/components/{notification → overlays/notification}/FullWidthNotification.js +1 -1
- package/dist/esm/src/components/{notification → overlays/notification}/MessageNotification.js +3 -3
- package/dist/esm/src/components/{tooltip → overlays/tooltip}/Tooltip.js +1 -1
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +1 -1
- package/dist/esm/src/components/tab/TabButton.js +1 -1
- package/dist/esm/vitest.config.js +1 -1
- package/dist/temp/assets/scripts/slider.js +26 -18
- package/dist/{types/src/components → temp/src/components/action}/button/Button.d.ts +3 -3
- package/dist/temp/src/components/{button → action/button}/Button.js +2 -2
- package/dist/{types/src/components → temp/src/components/action}/button/ButtonCloseX.d.ts +1 -1
- package/dist/{types/src/components → temp/src/components/action}/button/ButtonStepper.d.ts +1 -1
- package/dist/{types/src/components → temp/src/components/action}/button-group/ButtonGroup.d.ts +2 -2
- package/dist/temp/src/components/{button-group → action/button-group}/ButtonGroup.js +2 -2
- package/dist/temp/src/components/{badge → feedback-and-status/badge}/Badge.d.ts +3 -3
- package/dist/temp/src/components/{badge → feedback-and-status/badge}/utils.d.ts +1 -1
- package/dist/temp/src/components/{badge → feedback-and-status/badge}/utils.js +2 -2
- package/dist/temp/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.d.ts +3 -3
- package/dist/{types/src/components → temp/src/components/feedback-and-status}/empty-state/EmptyState.d.ts +1 -1
- package/dist/temp/src/components/{empty-state → feedback-and-status/empty-state}/EmptyState.js +1 -1
- package/dist/temp/src/components/{tag → feedback-and-status/tag}/Tag.d.ts +2 -2
- package/dist/temp/src/components/{tag → feedback-and-status/tag}/Tag.js +2 -2
- package/dist/{types/src/components → temp/src/components/forms-and-input}/checkbox/CheckboxInput.d.ts +1 -1
- package/dist/temp/src/components/{combo-box → forms-and-input/combo-box}/ComboBox.d.ts +2 -2
- package/dist/temp/src/components/{combo-box → forms-and-input/combo-box}/ComboBox.js +6 -6
- package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.d.ts +1 -1
- package/dist/{types/src/components → temp/src/components/forms-and-input}/date-picker/DatePicker.d.ts +1 -1
- package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/DatePicker.js +14 -13
- package/dist/temp/src/components/{file-input → forms-and-input/file-input}/FileInput.js +3 -3
- package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/ImageFileInput.js +3 -3
- package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/components/ImagePreview.js +1 -1
- package/dist/temp/src/components/{input-base → forms-and-input/input-base}/InputBase.d.ts +3 -3
- package/dist/temp/src/components/{input-base → forms-and-input/input-base}/InputBase.js +3 -3
- package/dist/temp/src/components/{number-input → forms-and-input/number-input}/NumberInput.js +2 -2
- package/dist/temp/src/components/{radio → forms-and-input/radio}/RadioInput.d.ts +1 -1
- package/dist/temp/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/RangeDatePickerWithButtons.d.ts +1 -1
- package/dist/temp/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/RangeDatePickerWithButtons.js +3 -3
- package/dist/temp/src/components/{select → forms-and-input/select}/Select.d.ts +2 -2
- package/dist/temp/src/components/{select → forms-and-input/select}/Select.js +1 -1
- package/dist/temp/src/components/{select-box → forms-and-input/select-box}/SelectBox.d.ts +2 -2
- package/dist/temp/src/components/{select-box → forms-and-input/select-box}/SelectBox.js +6 -6
- package/dist/temp/src/components/{slider → forms-and-input/slider}/Slider.d.ts +1 -1
- package/dist/temp/src/components/{slider → forms-and-input/slider}/Slider.js +1 -1
- package/dist/{types/src/components → temp/src/components/forms-and-input}/switch/Switch.d.ts +1 -1
- package/dist/{types/src/components → temp/src/components/forms-and-input}/textarea/Textarea.d.ts +1 -1
- package/dist/temp/src/components/{textarea → forms-and-input/textarea}/Textarea.js +2 -2
- package/dist/temp/src/components/{dot → image-and-icons/dot}/Dot.d.ts +2 -2
- package/dist/temp/src/components/{featured-icon → image-and-icons/featured-icon}/FeaturedIcon.d.ts +1 -1
- package/dist/temp/src/components/index.d.ts +44 -41
- package/dist/temp/src/components/index.js +53 -41
- package/dist/temp/src/components/layout/block-container/BlockContainer.d.ts +19 -0
- package/dist/temp/src/components/layout/block-container/BlockContainer.js +11 -0
- package/dist/temp/src/components/layout/block-container/index.d.ts +1 -0
- package/dist/temp/src/components/layout/block-container/index.js +1 -0
- package/dist/temp/src/components/layout/block-header/BlockHeader.d.ts +23 -0
- package/dist/temp/src/components/layout/block-header/BlockHeader.js +21 -0
- package/dist/temp/src/components/layout/block-header/SubTitle.d.ts +19 -0
- package/dist/temp/src/components/layout/block-header/SubTitle.js +8 -0
- package/dist/temp/src/components/layout/block-header/index.d.ts +2 -0
- package/dist/temp/src/components/layout/block-header/index.js +2 -0
- package/dist/temp/src/components/layout/page-title/PageTitle.d.ts +22 -0
- package/dist/temp/src/components/layout/page-title/PageTitle.js +19 -0
- package/dist/temp/src/components/layout/page-title/index.d.ts +1 -0
- package/dist/temp/src/components/layout/page-title/index.js +1 -0
- package/dist/temp/src/components/{horizontal-tab → navigation/horizontal-tab}/HorizontalTab.d.ts +1 -1
- package/dist/temp/src/components/{horizontal-tab → navigation/horizontal-tab}/HorizontalTab.js +1 -1
- package/dist/temp/src/components/{pagination → navigation/pagination}/NavButton.d.ts +1 -1
- package/dist/temp/src/components/{pagination → navigation/pagination}/NavButton.js +1 -1
- package/dist/temp/src/components/{vertical-tab → navigation/vertical-tab}/VerticalTab.d.ts +1 -1
- package/dist/temp/src/components/{vertical-tab → navigation/vertical-tab}/VerticalTab.js +2 -2
- package/dist/temp/src/components/{dropdown → overlays/dropdown}/Dropdown.d.ts +19 -6
- package/dist/temp/src/components/overlays/dropdown/Dropdown.js +273 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/utils.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/dropdown/__tests__/utils.test.js +122 -0
- package/dist/temp/src/components/overlays/dropdown/utils.d.ts +32 -0
- package/dist/temp/src/components/overlays/dropdown/utils.js +89 -0
- package/dist/{types/src/components → temp/src/components/overlays}/modal/Modal.d.ts +2 -2
- package/dist/temp/src/components/{modal → overlays/modal}/Modal.js +2 -2
- package/dist/temp/src/components/{notification → overlays/notification}/FloatingNotification.js +5 -5
- package/dist/temp/src/components/{notification → overlays/notification}/FullWidthNotification.js +1 -1
- package/dist/temp/src/components/{notification → overlays/notification}/MessageNotification.d.ts +1 -1
- package/dist/temp/src/components/{notification → overlays/notification}/MessageNotification.js +3 -3
- package/dist/temp/src/components/{notification → overlays/notification}/Notification.d.ts +3 -3
- package/dist/temp/src/components/{tooltip → overlays/tooltip}/Tooltip.js +1 -1
- package/dist/temp/src/components/select-dropdown/SelectDropdown.js +1 -1
- package/dist/temp/src/components/tab/TabButton.d.ts +1 -1
- package/dist/temp/src/components/tab/TabButton.js +1 -1
- package/dist/temp/src/types/component-meta.d.ts +2 -2
- package/dist/temp/vitest.config.js +5 -1
- package/dist/{temp/src/components → types/src/components/action}/button/Button.d.ts +3 -3
- package/dist/{temp/src/components → types/src/components/action}/button/ButtonCloseX.d.ts +1 -1
- package/dist/{temp/src/components → types/src/components/action}/button/ButtonStepper.d.ts +1 -1
- package/dist/{temp/src/components → types/src/components/action}/button-group/ButtonGroup.d.ts +2 -2
- package/dist/types/src/components/{badge → feedback-and-status/badge}/Badge.d.ts +3 -3
- package/dist/types/src/components/{badge → feedback-and-status/badge}/utils.d.ts +1 -1
- package/dist/types/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.d.ts +3 -3
- package/dist/{temp/src/components → types/src/components/feedback-and-status}/empty-state/EmptyState.d.ts +1 -1
- package/dist/types/src/components/{tag → feedback-and-status/tag}/Tag.d.ts +2 -2
- package/dist/{temp/src/components → types/src/components/forms-and-input}/checkbox/CheckboxInput.d.ts +1 -1
- package/dist/types/src/components/{combo-box → forms-and-input/combo-box}/ComboBox.d.ts +2 -2
- package/dist/types/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.d.ts +1 -1
- package/dist/{temp/src/components → types/src/components/forms-and-input}/date-picker/DatePicker.d.ts +1 -1
- package/dist/types/src/components/{input-base → forms-and-input/input-base}/InputBase.d.ts +3 -3
- package/dist/types/src/components/{radio → forms-and-input/radio}/RadioInput.d.ts +1 -1
- package/dist/types/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/RangeDatePickerWithButtons.d.ts +1 -1
- package/dist/types/src/components/{select → forms-and-input/select}/Select.d.ts +2 -2
- package/dist/types/src/components/{select-box → forms-and-input/select-box}/SelectBox.d.ts +2 -2
- package/dist/types/src/components/{slider → forms-and-input/slider}/Slider.d.ts +1 -1
- package/dist/{temp/src/components → types/src/components/forms-and-input}/switch/Switch.d.ts +1 -1
- package/dist/{temp/src/components → types/src/components/forms-and-input}/textarea/Textarea.d.ts +1 -1
- package/dist/types/src/components/{dot → image-and-icons/dot}/Dot.d.ts +2 -2
- package/dist/types/src/components/{featured-icon → image-and-icons/featured-icon}/FeaturedIcon.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +44 -41
- package/dist/types/src/components/layout/block-container/BlockContainer.d.ts +19 -0
- package/dist/types/src/components/layout/block-container/index.d.ts +1 -0
- package/dist/types/src/components/layout/block-header/BlockHeader.d.ts +23 -0
- package/dist/types/src/components/layout/block-header/SubTitle.d.ts +19 -0
- package/dist/types/src/components/layout/block-header/index.d.ts +2 -0
- package/dist/types/src/components/layout/page-title/PageTitle.d.ts +22 -0
- package/dist/types/src/components/layout/page-title/index.d.ts +1 -0
- package/dist/types/src/components/{horizontal-tab → navigation/horizontal-tab}/HorizontalTab.d.ts +1 -1
- package/dist/types/src/components/{pagination → navigation/pagination}/NavButton.d.ts +1 -1
- package/dist/types/src/components/{vertical-tab → navigation/vertical-tab}/VerticalTab.d.ts +1 -1
- package/dist/types/src/components/{dropdown → overlays/dropdown}/Dropdown.d.ts +19 -6
- package/dist/types/src/components/overlays/dropdown/__tests__/utils.test.d.ts +1 -0
- package/dist/types/src/components/overlays/dropdown/utils.d.ts +32 -0
- package/dist/{temp/src/components → types/src/components/overlays}/modal/Modal.d.ts +2 -2
- package/dist/types/src/components/{notification → overlays/notification}/MessageNotification.d.ts +1 -1
- package/dist/types/src/components/{notification → overlays/notification}/Notification.d.ts +3 -3
- package/dist/types/src/components/tab/TabButton.d.ts +1 -1
- package/dist/types/src/types/component-meta.d.ts +2 -2
- package/dist/ui-admin/assets/styles/style.css +540 -131
- package/package.json +12 -8
- package/dist/cjs/src/components/dropdown/Dropdown.js +0 -164
- package/dist/esm/src/components/dropdown/Dropdown.js +0 -157
- package/dist/temp/src/components/dropdown/Dropdown.js +0 -74
- /package/dist/cjs/src/components/{button → action/button}/ButtonCloseX.js +0 -0
- /package/dist/cjs/src/components/{button → action/button}/ButtonStepper.js +0 -0
- /package/dist/cjs/src/components/{button → action/button}/index.js +0 -0
- /package/dist/cjs/src/components/{button-group → action/button-group}/index.js +0 -0
- /package/dist/cjs/src/components/{data-grid → data-display/data-grid}/DataGrid.js +0 -0
- /package/dist/cjs/src/components/{data-grid → data-display/data-grid}/DataGrid.types.js +0 -0
- /package/dist/cjs/src/components/{data-grid → data-display/data-grid}/index.js +0 -0
- /package/dist/cjs/src/components/{table → data-display/table}/Table.js +0 -0
- /package/dist/cjs/src/components/{table → data-display/table}/index.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → data-display/table}/types.js +0 -0
- /package/dist/cjs/src/components/{badge → feedback-and-status/badge}/Badge.js +0 -0
- /package/dist/cjs/src/components/{badge → feedback-and-status/badge}/index.js +0 -0
- /package/dist/cjs/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.js +0 -0
- /package/dist/cjs/src/components/{badge-group → feedback-and-status/badge-group}/index.js +0 -0
- /package/dist/cjs/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/CarouselArrow.js +0 -0
- /package/dist/cjs/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/index.js +0 -0
- /package/dist/cjs/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/CarouselNumberGroup.js +0 -0
- /package/dist/cjs/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/index.js +0 -0
- /package/dist/cjs/src/components/{empty-state → feedback-and-status/empty-state}/index.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/ProgressBar.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentBar.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentLabels.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/components/index.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/index.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/useProgressBar.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/index.js +0 -0
- /package/dist/cjs/src/components/{table → feedback-and-status/progress-bar}/types.js +0 -0
- /package/dist/cjs/src/components/{progress-bar → feedback-and-status/progress-bar}/utils.js +0 -0
- /package/dist/cjs/src/components/{progress-circle → feedback-and-status/progress-circle}/ProgressCircle.js +0 -0
- /package/dist/cjs/src/components/{progress-circle → feedback-and-status/progress-circle}/index.js +0 -0
- /package/dist/cjs/src/components/{spinner → feedback-and-status/spinner}/Spinner.js +0 -0
- /package/dist/cjs/src/components/{spinner → feedback-and-status/spinner}/index.js +0 -0
- /package/dist/cjs/src/components/{tag → feedback-and-status/tag}/index.js +0 -0
- /package/dist/cjs/src/components/{checkbox → forms-and-input/checkbox}/Checkbox.js +0 -0
- /package/dist/cjs/src/components/{checkbox → forms-and-input/checkbox}/CheckboxInput.js +0 -0
- /package/dist/cjs/src/components/{checkbox → forms-and-input/checkbox}/index.js +0 -0
- /package/dist/cjs/src/components/{combo-box → forms-and-input/combo-box}/index.js +0 -0
- /package/dist/cjs/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.js +0 -0
- /package/dist/cjs/src/components/{date-picker → forms-and-input/date-picker}/index.js +0 -0
- /package/dist/cjs/src/components/{date-picker → forms-and-input/date-picker}/utils.js +0 -0
- /package/dist/cjs/src/components/{file-input → forms-and-input/file-input}/index.js +0 -0
- /package/dist/cjs/src/components/{image-file-input → forms-and-input/image-file-input}/components/index.js +0 -0
- /package/dist/cjs/src/components/{image-file-input → forms-and-input/image-file-input}/index.js +0 -0
- /package/dist/cjs/src/components/{input-base → forms-and-input/input-base}/index.js +0 -0
- /package/dist/cjs/src/components/{number-input → forms-and-input/number-input}/index.js +0 -0
- /package/dist/cjs/src/components/{password-input → forms-and-input/password-input}/PasswordInput.js +0 -0
- /package/dist/cjs/src/components/{password-input → forms-and-input/password-input}/index.js +0 -0
- /package/dist/cjs/src/components/{radio → forms-and-input/radio}/Radio.js +0 -0
- /package/dist/cjs/src/components/{radio → forms-and-input/radio}/RadioInput.js +0 -0
- /package/dist/cjs/src/components/{radio → forms-and-input/radio}/index.js +0 -0
- /package/dist/cjs/src/components/{range-date-picker → forms-and-input/range-date-picker}/RangeDatePicker.js +0 -0
- /package/dist/cjs/src/components/{range-date-picker → forms-and-input/range-date-picker}/index.js +0 -0
- /package/dist/cjs/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/index.js +0 -0
- /package/dist/cjs/src/components/{select → forms-and-input/select}/index.js +0 -0
- /package/dist/cjs/src/components/{select-box → forms-and-input/select-box}/index.js +0 -0
- /package/dist/cjs/src/components/{slider → forms-and-input/slider}/index.js +0 -0
- /package/dist/cjs/src/components/{switch → forms-and-input/switch}/Switch.js +0 -0
- /package/dist/cjs/src/components/{switch → forms-and-input/switch}/index.js +0 -0
- /package/dist/cjs/src/components/{textarea → forms-and-input/textarea}/index.js +0 -0
- /package/dist/cjs/src/components/{toggle → forms-and-input/toggle}/Toggle.js +0 -0
- /package/dist/cjs/src/components/{toggle → forms-and-input/toggle}/index.js +0 -0
- /package/dist/cjs/src/components/{dot → image-and-icons/dot}/Dot.js +0 -0
- /package/dist/cjs/src/components/{dot → image-and-icons/dot}/index.js +0 -0
- /package/dist/cjs/src/components/{featured-icon → image-and-icons/featured-icon}/FeaturedIcon.js +0 -0
- /package/dist/cjs/src/components/{featured-icon → image-and-icons/featured-icon}/index.js +0 -0
- /package/dist/cjs/src/components/{divider → layout/divider}/Divider.js +0 -0
- /package/dist/cjs/src/components/{divider → layout/divider}/index.js +0 -0
- /package/dist/cjs/src/components/{bread-crumb → navigation/bread-crumb}/BreadCrumb.js +0 -0
- /package/dist/cjs/src/components/{bread-crumb → navigation/bread-crumb}/index.js +0 -0
- /package/dist/cjs/src/components/{horizontal-tab → navigation/horizontal-tab}/index.js +0 -0
- /package/dist/cjs/src/components/{pagination → navigation/pagination}/Pagination.js +0 -0
- /package/dist/cjs/src/components/{pagination → navigation/pagination}/index.js +0 -0
- /package/dist/cjs/src/components/{vertical-tab → navigation/vertical-tab}/index.js +0 -0
- /package/dist/cjs/src/components/{dropdown → overlays/dropdown}/index.js +0 -0
- /package/dist/cjs/src/components/{modal → overlays/modal}/index.js +0 -0
- /package/dist/cjs/src/components/{notification → overlays/notification}/Notification.js +0 -0
- /package/dist/cjs/src/components/{notification → overlays/notification}/index.js +0 -0
- /package/dist/cjs/src/components/{tooltip → overlays/tooltip}/index.js +0 -0
- /package/dist/esm/src/components/{button → action/button}/ButtonCloseX.js +0 -0
- /package/dist/esm/src/components/{button → action/button}/ButtonStepper.js +0 -0
- /package/dist/esm/src/components/{button → action/button}/index.js +0 -0
- /package/dist/esm/src/components/{button-group → action/button-group}/index.js +0 -0
- /package/dist/esm/src/components/{data-grid → data-display/data-grid}/DataGrid.js +0 -0
- /package/dist/esm/src/components/{data-grid → data-display/data-grid}/DataGrid.types.js +0 -0
- /package/dist/esm/src/components/{data-grid → data-display/data-grid}/index.js +0 -0
- /package/dist/esm/src/components/{table → data-display/table}/Table.js +0 -0
- /package/dist/esm/src/components/{table → data-display/table}/index.js +0 -0
- /package/dist/esm/src/components/{progress-bar → data-display/table}/types.js +0 -0
- /package/dist/esm/src/components/{badge → feedback-and-status/badge}/Badge.js +0 -0
- /package/dist/esm/src/components/{badge → feedback-and-status/badge}/index.js +0 -0
- /package/dist/esm/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.js +0 -0
- /package/dist/esm/src/components/{badge-group → feedback-and-status/badge-group}/index.js +0 -0
- /package/dist/esm/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/CarouselArrow.js +0 -0
- /package/dist/esm/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/index.js +0 -0
- /package/dist/esm/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/CarouselNumberGroup.js +0 -0
- /package/dist/esm/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/index.js +0 -0
- /package/dist/esm/src/components/{empty-state → feedback-and-status/empty-state}/index.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/ProgressBar.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentBar.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentLabels.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/components/index.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/index.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/useProgressBar.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/index.js +0 -0
- /package/dist/esm/src/components/{table → feedback-and-status/progress-bar}/types.js +0 -0
- /package/dist/esm/src/components/{progress-bar → feedback-and-status/progress-bar}/utils.js +0 -0
- /package/dist/esm/src/components/{progress-circle → feedback-and-status/progress-circle}/ProgressCircle.js +0 -0
- /package/dist/esm/src/components/{progress-circle → feedback-and-status/progress-circle}/index.js +0 -0
- /package/dist/esm/src/components/{spinner → feedback-and-status/spinner}/Spinner.js +0 -0
- /package/dist/esm/src/components/{spinner → feedback-and-status/spinner}/index.js +0 -0
- /package/dist/esm/src/components/{tag → feedback-and-status/tag}/index.js +0 -0
- /package/dist/esm/src/components/{checkbox → forms-and-input/checkbox}/Checkbox.js +0 -0
- /package/dist/esm/src/components/{checkbox → forms-and-input/checkbox}/CheckboxInput.js +0 -0
- /package/dist/esm/src/components/{checkbox → forms-and-input/checkbox}/index.js +0 -0
- /package/dist/esm/src/components/{combo-box → forms-and-input/combo-box}/index.js +0 -0
- /package/dist/esm/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.js +0 -0
- /package/dist/esm/src/components/{date-picker → forms-and-input/date-picker}/index.js +0 -0
- /package/dist/esm/src/components/{date-picker → forms-and-input/date-picker}/utils.js +0 -0
- /package/dist/esm/src/components/{file-input → forms-and-input/file-input}/index.js +0 -0
- /package/dist/esm/src/components/{image-file-input → forms-and-input/image-file-input}/components/index.js +0 -0
- /package/dist/esm/src/components/{image-file-input → forms-and-input/image-file-input}/index.js +0 -0
- /package/dist/esm/src/components/{input-base → forms-and-input/input-base}/index.js +0 -0
- /package/dist/esm/src/components/{number-input → forms-and-input/number-input}/index.js +0 -0
- /package/dist/esm/src/components/{password-input → forms-and-input/password-input}/PasswordInput.js +0 -0
- /package/dist/esm/src/components/{password-input → forms-and-input/password-input}/index.js +0 -0
- /package/dist/esm/src/components/{radio → forms-and-input/radio}/Radio.js +0 -0
- /package/dist/esm/src/components/{radio → forms-and-input/radio}/RadioInput.js +0 -0
- /package/dist/esm/src/components/{radio → forms-and-input/radio}/index.js +0 -0
- /package/dist/esm/src/components/{range-date-picker → forms-and-input/range-date-picker}/RangeDatePicker.js +0 -0
- /package/dist/esm/src/components/{range-date-picker → forms-and-input/range-date-picker}/index.js +0 -0
- /package/dist/esm/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/index.js +0 -0
- /package/dist/esm/src/components/{select → forms-and-input/select}/index.js +0 -0
- /package/dist/esm/src/components/{select-box → forms-and-input/select-box}/index.js +0 -0
- /package/dist/esm/src/components/{slider → forms-and-input/slider}/index.js +0 -0
- /package/dist/esm/src/components/{switch → forms-and-input/switch}/Switch.js +0 -0
- /package/dist/esm/src/components/{switch → forms-and-input/switch}/index.js +0 -0
- /package/dist/esm/src/components/{textarea → forms-and-input/textarea}/index.js +0 -0
- /package/dist/esm/src/components/{toggle → forms-and-input/toggle}/Toggle.js +0 -0
- /package/dist/esm/src/components/{toggle → forms-and-input/toggle}/index.js +0 -0
- /package/dist/esm/src/components/{dot → image-and-icons/dot}/Dot.js +0 -0
- /package/dist/esm/src/components/{dot → image-and-icons/dot}/index.js +0 -0
- /package/dist/esm/src/components/{featured-icon → image-and-icons/featured-icon}/FeaturedIcon.js +0 -0
- /package/dist/esm/src/components/{featured-icon → image-and-icons/featured-icon}/index.js +0 -0
- /package/dist/esm/src/components/{divider → layout/divider}/Divider.js +0 -0
- /package/dist/esm/src/components/{divider → layout/divider}/index.js +0 -0
- /package/dist/esm/src/components/{bread-crumb → navigation/bread-crumb}/BreadCrumb.js +0 -0
- /package/dist/esm/src/components/{bread-crumb → navigation/bread-crumb}/index.js +0 -0
- /package/dist/esm/src/components/{horizontal-tab → navigation/horizontal-tab}/index.js +0 -0
- /package/dist/esm/src/components/{pagination → navigation/pagination}/Pagination.js +0 -0
- /package/dist/esm/src/components/{pagination → navigation/pagination}/index.js +0 -0
- /package/dist/esm/src/components/{vertical-tab → navigation/vertical-tab}/index.js +0 -0
- /package/dist/esm/src/components/{dropdown → overlays/dropdown}/index.js +0 -0
- /package/dist/esm/src/components/{modal → overlays/modal}/index.js +0 -0
- /package/dist/esm/src/components/{notification → overlays/notification}/Notification.js +0 -0
- /package/dist/esm/src/components/{notification → overlays/notification}/index.js +0 -0
- /package/dist/esm/src/components/{tooltip → overlays/tooltip}/index.js +0 -0
- /package/dist/temp/src/components/{button → action/button}/ButtonCloseX.js +0 -0
- /package/dist/temp/src/components/{button → action/button}/ButtonStepper.js +0 -0
- /package/dist/temp/src/components/{button → action/button}/index.d.ts +0 -0
- /package/dist/temp/src/components/{button → action/button}/index.js +0 -0
- /package/dist/temp/src/components/{button-group → action/button-group}/index.d.ts +0 -0
- /package/dist/temp/src/components/{button-group → action/button-group}/index.js +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/DataGrid.d.ts +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/DataGrid.js +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/DataGrid.types.d.ts +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/DataGrid.types.js +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/index.d.ts +0 -0
- /package/dist/temp/src/components/{data-grid → data-display/data-grid}/index.js +0 -0
- /package/dist/temp/src/components/{table → data-display/table}/Table.d.ts +0 -0
- /package/dist/temp/src/components/{table → data-display/table}/Table.js +0 -0
- /package/dist/temp/src/components/{table → data-display/table}/index.d.ts +0 -0
- /package/dist/temp/src/components/{table → data-display/table}/index.js +0 -0
- /package/dist/temp/src/components/{table → data-display/table}/types.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → data-display/table}/types.js +0 -0
- /package/dist/temp/src/components/{badge → feedback-and-status/badge}/Badge.js +0 -0
- /package/dist/temp/src/components/{badge → feedback-and-status/badge}/index.d.ts +0 -0
- /package/dist/temp/src/components/{badge → feedback-and-status/badge}/index.js +0 -0
- /package/dist/temp/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.js +0 -0
- /package/dist/temp/src/components/{badge-group → feedback-and-status/badge-group}/index.d.ts +0 -0
- /package/dist/temp/src/components/{badge-group → feedback-and-status/badge-group}/index.js +0 -0
- /package/dist/temp/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/CarouselArrow.d.ts +0 -0
- /package/dist/temp/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/CarouselArrow.js +0 -0
- /package/dist/temp/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/index.d.ts +0 -0
- /package/dist/temp/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/index.js +0 -0
- /package/dist/temp/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/CarouselNumberGroup.d.ts +0 -0
- /package/dist/temp/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/CarouselNumberGroup.js +0 -0
- /package/dist/temp/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/index.d.ts +0 -0
- /package/dist/temp/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/index.js +0 -0
- /package/dist/temp/src/components/{empty-state → feedback-and-status/empty-state}/index.d.ts +0 -0
- /package/dist/temp/src/components/{empty-state → feedback-and-status/empty-state}/index.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/ProgressBar.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/ProgressBar.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentBar.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentBar.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentLabels.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentLabels.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/index.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/components/index.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/index.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/index.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/useProgressBar.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/useProgressBar.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/index.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/index.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/types.d.ts +0 -0
- /package/dist/temp/src/components/{table → feedback-and-status/progress-bar}/types.js +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/utils.d.ts +0 -0
- /package/dist/temp/src/components/{progress-bar → feedback-and-status/progress-bar}/utils.js +0 -0
- /package/dist/temp/src/components/{progress-circle → feedback-and-status/progress-circle}/ProgressCircle.d.ts +0 -0
- /package/dist/temp/src/components/{progress-circle → feedback-and-status/progress-circle}/ProgressCircle.js +0 -0
- /package/dist/temp/src/components/{progress-circle → feedback-and-status/progress-circle}/index.d.ts +0 -0
- /package/dist/temp/src/components/{progress-circle → feedback-and-status/progress-circle}/index.js +0 -0
- /package/dist/temp/src/components/{spinner → feedback-and-status/spinner}/Spinner.d.ts +0 -0
- /package/dist/temp/src/components/{spinner → feedback-and-status/spinner}/Spinner.js +0 -0
- /package/dist/temp/src/components/{spinner → feedback-and-status/spinner}/index.d.ts +0 -0
- /package/dist/temp/src/components/{spinner → feedback-and-status/spinner}/index.js +0 -0
- /package/dist/temp/src/components/{tag → feedback-and-status/tag}/index.d.ts +0 -0
- /package/dist/temp/src/components/{tag → feedback-and-status/tag}/index.js +0 -0
- /package/dist/temp/src/components/{checkbox → forms-and-input/checkbox}/Checkbox.d.ts +0 -0
- /package/dist/temp/src/components/{checkbox → forms-and-input/checkbox}/Checkbox.js +0 -0
- /package/dist/temp/src/components/{checkbox → forms-and-input/checkbox}/CheckboxInput.js +0 -0
- /package/dist/temp/src/components/{checkbox → forms-and-input/checkbox}/index.d.ts +0 -0
- /package/dist/temp/src/components/{checkbox → forms-and-input/checkbox}/index.js +0 -0
- /package/dist/temp/src/components/{combo-box → forms-and-input/combo-box}/index.d.ts +0 -0
- /package/dist/temp/src/components/{combo-box → forms-and-input/combo-box}/index.js +0 -0
- /package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.js +0 -0
- /package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/index.d.ts +0 -0
- /package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/index.js +0 -0
- /package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/utils.d.ts +0 -0
- /package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/utils.js +0 -0
- /package/dist/temp/src/components/{file-input → forms-and-input/file-input}/FileInput.d.ts +0 -0
- /package/dist/temp/src/components/{file-input → forms-and-input/file-input}/index.d.ts +0 -0
- /package/dist/temp/src/components/{file-input → forms-and-input/file-input}/index.js +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/ImageFileInput.d.ts +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/components/ImagePreview.d.ts +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/components/index.d.ts +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/components/index.js +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/index.d.ts +0 -0
- /package/dist/temp/src/components/{image-file-input → forms-and-input/image-file-input}/index.js +0 -0
- /package/dist/temp/src/components/{input-base → forms-and-input/input-base}/index.d.ts +0 -0
- /package/dist/temp/src/components/{input-base → forms-and-input/input-base}/index.js +0 -0
- /package/dist/temp/src/components/{number-input → forms-and-input/number-input}/NumberInput.d.ts +0 -0
- /package/dist/temp/src/components/{number-input → forms-and-input/number-input}/index.d.ts +0 -0
- /package/dist/temp/src/components/{number-input → forms-and-input/number-input}/index.js +0 -0
- /package/dist/temp/src/components/{password-input → forms-and-input/password-input}/PasswordInput.d.ts +0 -0
- /package/dist/temp/src/components/{password-input → forms-and-input/password-input}/PasswordInput.js +0 -0
- /package/dist/temp/src/components/{password-input → forms-and-input/password-input}/index.d.ts +0 -0
- /package/dist/temp/src/components/{password-input → forms-and-input/password-input}/index.js +0 -0
- /package/dist/temp/src/components/{radio → forms-and-input/radio}/Radio.d.ts +0 -0
- /package/dist/temp/src/components/{radio → forms-and-input/radio}/Radio.js +0 -0
- /package/dist/temp/src/components/{radio → forms-and-input/radio}/RadioInput.js +0 -0
- /package/dist/temp/src/components/{radio → forms-and-input/radio}/index.d.ts +0 -0
- /package/dist/temp/src/components/{radio → forms-and-input/radio}/index.js +0 -0
- /package/dist/temp/src/components/{range-date-picker → forms-and-input/range-date-picker}/RangeDatePicker.d.ts +0 -0
- /package/dist/temp/src/components/{range-date-picker → forms-and-input/range-date-picker}/RangeDatePicker.js +0 -0
- /package/dist/temp/src/components/{range-date-picker → forms-and-input/range-date-picker}/index.d.ts +0 -0
- /package/dist/temp/src/components/{range-date-picker → forms-and-input/range-date-picker}/index.js +0 -0
- /package/dist/temp/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/index.d.ts +0 -0
- /package/dist/temp/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/index.js +0 -0
- /package/dist/temp/src/components/{select → forms-and-input/select}/index.d.ts +0 -0
- /package/dist/temp/src/components/{select → forms-and-input/select}/index.js +0 -0
- /package/dist/temp/src/components/{select-box → forms-and-input/select-box}/index.d.ts +0 -0
- /package/dist/temp/src/components/{select-box → forms-and-input/select-box}/index.js +0 -0
- /package/dist/temp/src/components/{slider → forms-and-input/slider}/index.d.ts +0 -0
- /package/dist/temp/src/components/{slider → forms-and-input/slider}/index.js +0 -0
- /package/dist/temp/src/components/{switch → forms-and-input/switch}/Switch.js +0 -0
- /package/dist/temp/src/components/{switch → forms-and-input/switch}/index.d.ts +0 -0
- /package/dist/temp/src/components/{switch → forms-and-input/switch}/index.js +0 -0
- /package/dist/temp/src/components/{textarea → forms-and-input/textarea}/index.d.ts +0 -0
- /package/dist/temp/src/components/{textarea → forms-and-input/textarea}/index.js +0 -0
- /package/dist/temp/src/components/{toggle → forms-and-input/toggle}/Toggle.d.ts +0 -0
- /package/dist/temp/src/components/{toggle → forms-and-input/toggle}/Toggle.js +0 -0
- /package/dist/temp/src/components/{toggle → forms-and-input/toggle}/index.d.ts +0 -0
- /package/dist/temp/src/components/{toggle → forms-and-input/toggle}/index.js +0 -0
- /package/dist/temp/src/components/{dot → image-and-icons/dot}/Dot.js +0 -0
- /package/dist/temp/src/components/{dot → image-and-icons/dot}/index.d.ts +0 -0
- /package/dist/temp/src/components/{dot → image-and-icons/dot}/index.js +0 -0
- /package/dist/temp/src/components/{featured-icon → image-and-icons/featured-icon}/FeaturedIcon.js +0 -0
- /package/dist/temp/src/components/{featured-icon → image-and-icons/featured-icon}/index.d.ts +0 -0
- /package/dist/temp/src/components/{featured-icon → image-and-icons/featured-icon}/index.js +0 -0
- /package/dist/temp/src/components/{divider → layout/divider}/Divider.d.ts +0 -0
- /package/dist/temp/src/components/{divider → layout/divider}/Divider.js +0 -0
- /package/dist/temp/src/components/{divider → layout/divider}/index.d.ts +0 -0
- /package/dist/temp/src/components/{divider → layout/divider}/index.js +0 -0
- /package/dist/temp/src/components/{bread-crumb → navigation/bread-crumb}/BreadCrumb.d.ts +0 -0
- /package/dist/temp/src/components/{bread-crumb → navigation/bread-crumb}/BreadCrumb.js +0 -0
- /package/dist/temp/src/components/{bread-crumb → navigation/bread-crumb}/index.d.ts +0 -0
- /package/dist/temp/src/components/{bread-crumb → navigation/bread-crumb}/index.js +0 -0
- /package/dist/temp/src/components/{horizontal-tab → navigation/horizontal-tab}/index.d.ts +0 -0
- /package/dist/temp/src/components/{horizontal-tab → navigation/horizontal-tab}/index.js +0 -0
- /package/dist/temp/src/components/{pagination → navigation/pagination}/Pagination.d.ts +0 -0
- /package/dist/temp/src/components/{pagination → navigation/pagination}/Pagination.js +0 -0
- /package/dist/temp/src/components/{pagination → navigation/pagination}/index.d.ts +0 -0
- /package/dist/temp/src/components/{pagination → navigation/pagination}/index.js +0 -0
- /package/dist/temp/src/components/{vertical-tab → navigation/vertical-tab}/index.d.ts +0 -0
- /package/dist/temp/src/components/{vertical-tab → navigation/vertical-tab}/index.js +0 -0
- /package/dist/temp/src/components/{dropdown → overlays/dropdown}/index.d.ts +0 -0
- /package/dist/temp/src/components/{dropdown → overlays/dropdown}/index.js +0 -0
- /package/dist/temp/src/components/{modal → overlays/modal}/index.d.ts +0 -0
- /package/dist/temp/src/components/{modal → overlays/modal}/index.js +0 -0
- /package/dist/temp/src/components/{notification → overlays/notification}/FloatingNotification.d.ts +0 -0
- /package/dist/temp/src/components/{notification → overlays/notification}/FullWidthNotification.d.ts +0 -0
- /package/dist/temp/src/components/{notification → overlays/notification}/Notification.js +0 -0
- /package/dist/temp/src/components/{notification → overlays/notification}/index.d.ts +0 -0
- /package/dist/temp/src/components/{notification → overlays/notification}/index.js +0 -0
- /package/dist/temp/src/components/{tooltip → overlays/tooltip}/Tooltip.d.ts +0 -0
- /package/dist/temp/src/components/{tooltip → overlays/tooltip}/index.d.ts +0 -0
- /package/dist/temp/src/components/{tooltip → overlays/tooltip}/index.js +0 -0
- /package/dist/types/src/components/{button → action/button}/index.d.ts +0 -0
- /package/dist/types/src/components/{button-group → action/button-group}/index.d.ts +0 -0
- /package/dist/types/src/components/{data-grid → data-display/data-grid}/DataGrid.d.ts +0 -0
- /package/dist/types/src/components/{data-grid → data-display/data-grid}/DataGrid.types.d.ts +0 -0
- /package/dist/types/src/components/{data-grid → data-display/data-grid}/index.d.ts +0 -0
- /package/dist/types/src/components/{table → data-display/table}/Table.d.ts +0 -0
- /package/dist/types/src/components/{table → data-display/table}/index.d.ts +0 -0
- /package/dist/types/src/components/{table → data-display/table}/types.d.ts +0 -0
- /package/dist/types/src/components/{badge → feedback-and-status/badge}/index.d.ts +0 -0
- /package/dist/types/src/components/{badge-group → feedback-and-status/badge-group}/index.d.ts +0 -0
- /package/dist/types/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/CarouselArrow.d.ts +0 -0
- /package/dist/types/src/components/{carousel-arrow → feedback-and-status/carousel-arrow}/index.d.ts +0 -0
- /package/dist/types/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/CarouselNumberGroup.d.ts +0 -0
- /package/dist/types/src/components/{carousel-number-group → feedback-and-status/carousel-number-group}/index.d.ts +0 -0
- /package/dist/types/src/components/{empty-state → feedback-and-status/empty-state}/index.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/ProgressBar.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentBar.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/components/SegmentLabels.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/components/index.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/index.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/hooks/useProgressBar.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/index.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/types.d.ts +0 -0
- /package/dist/types/src/components/{progress-bar → feedback-and-status/progress-bar}/utils.d.ts +0 -0
- /package/dist/types/src/components/{progress-circle → feedback-and-status/progress-circle}/ProgressCircle.d.ts +0 -0
- /package/dist/types/src/components/{progress-circle → feedback-and-status/progress-circle}/index.d.ts +0 -0
- /package/dist/types/src/components/{spinner → feedback-and-status/spinner}/Spinner.d.ts +0 -0
- /package/dist/types/src/components/{spinner → feedback-and-status/spinner}/index.d.ts +0 -0
- /package/dist/types/src/components/{tag → feedback-and-status/tag}/index.d.ts +0 -0
- /package/dist/types/src/components/{checkbox → forms-and-input/checkbox}/Checkbox.d.ts +0 -0
- /package/dist/types/src/components/{checkbox → forms-and-input/checkbox}/index.d.ts +0 -0
- /package/dist/types/src/components/{combo-box → forms-and-input/combo-box}/index.d.ts +0 -0
- /package/dist/types/src/components/{date-picker → forms-and-input/date-picker}/index.d.ts +0 -0
- /package/dist/types/src/components/{date-picker → forms-and-input/date-picker}/utils.d.ts +0 -0
- /package/dist/types/src/components/{file-input → forms-and-input/file-input}/FileInput.d.ts +0 -0
- /package/dist/types/src/components/{file-input → forms-and-input/file-input}/index.d.ts +0 -0
- /package/dist/types/src/components/{image-file-input → forms-and-input/image-file-input}/ImageFileInput.d.ts +0 -0
- /package/dist/types/src/components/{image-file-input → forms-and-input/image-file-input}/components/ImagePreview.d.ts +0 -0
- /package/dist/types/src/components/{image-file-input → forms-and-input/image-file-input}/components/index.d.ts +0 -0
- /package/dist/types/src/components/{image-file-input → forms-and-input/image-file-input}/index.d.ts +0 -0
- /package/dist/types/src/components/{input-base → forms-and-input/input-base}/index.d.ts +0 -0
- /package/dist/types/src/components/{number-input → forms-and-input/number-input}/NumberInput.d.ts +0 -0
- /package/dist/types/src/components/{number-input → forms-and-input/number-input}/index.d.ts +0 -0
- /package/dist/types/src/components/{password-input → forms-and-input/password-input}/PasswordInput.d.ts +0 -0
- /package/dist/types/src/components/{password-input → forms-and-input/password-input}/index.d.ts +0 -0
- /package/dist/types/src/components/{radio → forms-and-input/radio}/Radio.d.ts +0 -0
- /package/dist/types/src/components/{radio → forms-and-input/radio}/index.d.ts +0 -0
- /package/dist/types/src/components/{range-date-picker → forms-and-input/range-date-picker}/RangeDatePicker.d.ts +0 -0
- /package/dist/types/src/components/{range-date-picker → forms-and-input/range-date-picker}/index.d.ts +0 -0
- /package/dist/types/src/components/{range-date-picker-with-buttons → forms-and-input/range-date-picker-with-buttons}/index.d.ts +0 -0
- /package/dist/types/src/components/{select → forms-and-input/select}/index.d.ts +0 -0
- /package/dist/types/src/components/{select-box → forms-and-input/select-box}/index.d.ts +0 -0
- /package/dist/types/src/components/{slider → forms-and-input/slider}/index.d.ts +0 -0
- /package/dist/types/src/components/{switch → forms-and-input/switch}/index.d.ts +0 -0
- /package/dist/types/src/components/{textarea → forms-and-input/textarea}/index.d.ts +0 -0
- /package/dist/types/src/components/{toggle → forms-and-input/toggle}/Toggle.d.ts +0 -0
- /package/dist/types/src/components/{toggle → forms-and-input/toggle}/index.d.ts +0 -0
- /package/dist/types/src/components/{dot → image-and-icons/dot}/index.d.ts +0 -0
- /package/dist/types/src/components/{featured-icon → image-and-icons/featured-icon}/index.d.ts +0 -0
- /package/dist/types/src/components/{divider → layout/divider}/Divider.d.ts +0 -0
- /package/dist/types/src/components/{divider → layout/divider}/index.d.ts +0 -0
- /package/dist/types/src/components/{bread-crumb → navigation/bread-crumb}/BreadCrumb.d.ts +0 -0
- /package/dist/types/src/components/{bread-crumb → navigation/bread-crumb}/index.d.ts +0 -0
- /package/dist/types/src/components/{horizontal-tab → navigation/horizontal-tab}/index.d.ts +0 -0
- /package/dist/types/src/components/{pagination → navigation/pagination}/Pagination.d.ts +0 -0
- /package/dist/types/src/components/{pagination → navigation/pagination}/index.d.ts +0 -0
- /package/dist/types/src/components/{vertical-tab → navigation/vertical-tab}/index.d.ts +0 -0
- /package/dist/types/src/components/{dropdown → overlays/dropdown}/index.d.ts +0 -0
- /package/dist/types/src/components/{modal → overlays/modal}/index.d.ts +0 -0
- /package/dist/types/src/components/{notification → overlays/notification}/FloatingNotification.d.ts +0 -0
- /package/dist/types/src/components/{notification → overlays/notification}/FullWidthNotification.d.ts +0 -0
- /package/dist/types/src/components/{notification → overlays/notification}/index.d.ts +0 -0
- /package/dist/types/src/components/{tooltip → overlays/tooltip}/Tooltip.d.ts +0 -0
- /package/dist/types/src/components/{tooltip → overlays/tooltip}/index.d.ts +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 배열에서 fromId 위치의 요소를 toId 위치로 이동.
|
|
3
|
+
* id 중 하나라도 없으면 원본 그대로 반환. immutable.
|
|
4
|
+
*/
|
|
5
|
+
export function arrayMoveById(order, fromId, toId) {
|
|
6
|
+
const fromIndex = order.indexOf(fromId);
|
|
7
|
+
const toIndex = order.indexOf(toId);
|
|
8
|
+
if (fromIndex === -1 || toIndex === -1 || fromIndex === toIndex) {
|
|
9
|
+
return order;
|
|
10
|
+
}
|
|
11
|
+
const next = [...order];
|
|
12
|
+
const [moved] = next.splice(fromIndex, 1);
|
|
13
|
+
next.splice(toIndex, 0, moved);
|
|
14
|
+
return next;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* fromId 요소를 toId 기준 edge('top'=직전, 'bottom'=직후)에 삽입.
|
|
18
|
+
* indicator 위치와 정확히 일치하는 reorder를 위해 사용.
|
|
19
|
+
*/
|
|
20
|
+
export function arrayReorderByEdge(order, fromId, toId, edge) {
|
|
21
|
+
if (fromId === toId) return order;
|
|
22
|
+
const fromIndex = order.indexOf(fromId);
|
|
23
|
+
const toIndex = order.indexOf(toId);
|
|
24
|
+
if (fromIndex === -1 || toIndex === -1) return order;
|
|
25
|
+
const next = [...order];
|
|
26
|
+
next.splice(fromIndex, 1);
|
|
27
|
+
// 목표 인덱스 재계산 (제거로 인해 toIndex가 한 칸 당겨질 수 있음)
|
|
28
|
+
const adjustedToIndex = fromIndex < toIndex ? toIndex - 1 : toIndex;
|
|
29
|
+
const insertIndex = edge === 'bottom' ? adjustedToIndex + 1 : adjustedToIndex;
|
|
30
|
+
next.splice(insertIndex, 0, fromId);
|
|
31
|
+
return next;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* groups를 받아 초기 draft state를 만든다.
|
|
35
|
+
* - order: 모든 그룹·아이템의 id를 순서대로 평탄화
|
|
36
|
+
* - visibility: item.visible (undefined면 true)
|
|
37
|
+
*/
|
|
38
|
+
export function initDraftState(groups) {
|
|
39
|
+
const order = [];
|
|
40
|
+
const visibility = {};
|
|
41
|
+
for (const group of groups) {
|
|
42
|
+
for (const item of group.items) {
|
|
43
|
+
order.push(item.id);
|
|
44
|
+
visibility[item.id] = item.visible ?? true;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
order,
|
|
49
|
+
visibility
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 모든 그룹의 items를 평탄화하고, draft.order 순서로 재배열.
|
|
54
|
+
* 각 item의 visible은 원래 visible이 정의되어 있던 경우에만 draft.visibility 값으로 갱신.
|
|
55
|
+
* 그 외 필드는 props 원본 그대로 보존.
|
|
56
|
+
*/
|
|
57
|
+
export function applyDraftToItems(groups, draft) {
|
|
58
|
+
const itemsById = new Map();
|
|
59
|
+
for (const group of groups) {
|
|
60
|
+
for (const item of group.items) {
|
|
61
|
+
itemsById.set(item.id, item);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return draft.order.map(id => itemsById.get(id)).filter(item => item !== undefined).map(item => {
|
|
65
|
+
if (item.visible === undefined) return item;
|
|
66
|
+
return {
|
|
67
|
+
...item,
|
|
68
|
+
visible: draft.visibility[item.id]
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* draft가 original과 비교해 변경되었는지 판단.
|
|
74
|
+
* order 배열 또는 visibility 객체 중 하나라도 다르면 true.
|
|
75
|
+
*/
|
|
76
|
+
export function hasDraftChanged(original, draft) {
|
|
77
|
+
if (original.order.length !== draft.order.length) return true;
|
|
78
|
+
for (let i = 0; i < original.order.length; i++) {
|
|
79
|
+
if (original.order[i] !== draft.order[i]) return true;
|
|
80
|
+
}
|
|
81
|
+
const keys = new Set([...Object.keys(original.visibility), ...Object.keys(draft.visibility)]);
|
|
82
|
+
for (const key of keys) {
|
|
83
|
+
if (original.visibility[key] !== draft.visibility[key]) return true;
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
|
-
import { ButtonCloseX } from '
|
|
6
|
-
import { FeaturedIcon } from '
|
|
5
|
+
import { ButtonCloseX } from '../../action/button/ButtonCloseX';
|
|
6
|
+
import { FeaturedIcon } from '../../image-and-icons/featured-icon';
|
|
7
7
|
const Modal = _ref => {
|
|
8
8
|
let {
|
|
9
9
|
isOpen,
|
package/dist/esm/src/components/{notification → overlays/notification}/FloatingNotification.js
RENAMED
|
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { AlertCircle, AlertTriangle, CheckCircle, Pin02 } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { MEDIA_QUERY } from '
|
|
6
|
-
import { useMediaQuery } from '
|
|
7
|
-
import { Button } from '
|
|
8
|
-
import { ButtonCloseX } from '
|
|
9
|
-
import { FeaturedIcon } from '
|
|
5
|
+
import { MEDIA_QUERY } from '../../../constant/breakpoint';
|
|
6
|
+
import { useMediaQuery } from '../../../hooks/useMediaQuery';
|
|
7
|
+
import { Button } from '../../action/button';
|
|
8
|
+
import { ButtonCloseX } from '../../action/button/ButtonCloseX';
|
|
9
|
+
import { FeaturedIcon } from '../../image-and-icons/featured-icon/FeaturedIcon';
|
|
10
10
|
const iconMap = {
|
|
11
11
|
neutral: Pin02,
|
|
12
12
|
error: AlertTriangle,
|
package/dist/esm/src/components/{notification → overlays/notification}/FullWidthNotification.js
RENAMED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { AlertTriangle, CheckCircle, InfoCircle, MessageChatSquare, XClose } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { COLOR } from '
|
|
5
|
+
import { COLOR } from '../../../../constant/color';
|
|
6
6
|
const iconMap = {
|
|
7
7
|
neutral: MessageChatSquare,
|
|
8
8
|
error: AlertTriangle,
|
package/dist/esm/src/components/{notification → overlays/notification}/MessageNotification.js
RENAMED
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { AlertCircle, AlertTriangle, CheckCircle, Pin02, XClose } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { COLOR } from '
|
|
6
|
-
import { Button } from '
|
|
7
|
-
import { FeaturedIcon } from '
|
|
5
|
+
import { COLOR } from '../../../../constant/color';
|
|
6
|
+
import { Button } from '../../action/button';
|
|
7
|
+
import { FeaturedIcon } from '../../image-and-icons/featured-icon/FeaturedIcon';
|
|
8
8
|
const iconMap = {
|
|
9
9
|
neutral: Pin02,
|
|
10
10
|
error: AlertTriangle,
|
|
@@ -3,7 +3,7 @@ import { AlertCircle, AlertCircleFill, HelpCircle, HelpCircleFill } from '@ncds/
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
|
-
import { ButtonCloseX } from '
|
|
6
|
+
import { ButtonCloseX } from '../../action/button/ButtonCloseX';
|
|
7
7
|
const ICON_SIZE_SM = 14;
|
|
8
8
|
const ICON_SIZE_DEFAULT = 16;
|
|
9
9
|
// HTML 구현체(assets/scripts/tooltip)와 동일한 상수
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { Button } from '../button';
|
|
4
|
+
import { Button } from '../action/button';
|
|
5
5
|
const SelectDropdown = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6
6
|
let {
|
|
7
7
|
isOpen,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { XClose } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { Badge } from '../badge/Badge';
|
|
4
|
+
import { Badge } from '../feedback-and-status/badge/Badge';
|
|
5
5
|
const TabButton = _ref => {
|
|
6
6
|
let {
|
|
7
7
|
id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'vitest/config';
|
|
2
2
|
export default defineConfig({
|
|
3
3
|
test: {
|
|
4
|
-
include: ['scripts/**/__tests__/**/*.test.ts'],
|
|
4
|
+
include: ['scripts/**/__tests__/**/*.test.ts', 'src/**/__tests__/**/*.test.ts', 'assets/scripts/**/__tests__/**/*.test.ts'],
|
|
5
5
|
environment: 'node'
|
|
6
6
|
}
|
|
7
7
|
});
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
const DEFAULT_MIN = 0;
|
|
2
|
+
const DEFAULT_MAX = 100;
|
|
3
|
+
const DEFAULT_STEP = 1;
|
|
4
|
+
const PERCENT = 100;
|
|
1
5
|
export class Slider {
|
|
2
6
|
constructor(element, options) {
|
|
3
7
|
this.activeHandle = null;
|
|
@@ -40,17 +44,19 @@ export class Slider {
|
|
|
40
44
|
this.isDragging = false;
|
|
41
45
|
};
|
|
42
46
|
this.element = element;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
// 화이트리스트 기반 옵션 복사. SliderOptions에 정의된 키만 받아들여
|
|
48
|
+
// __proto__, constructor, prototype 같은 위험 키가 외부 입력으로 들어와도
|
|
49
|
+
// Object.prototype을 오염시킬 수 없다 (CWE-1321 Prototype Pollution 차단).
|
|
50
|
+
this.options = {
|
|
51
|
+
min: Number(options.min ?? DEFAULT_MIN),
|
|
52
|
+
max: Number(options.max ?? DEFAULT_MAX),
|
|
53
|
+
step: Number(options.step ?? DEFAULT_STEP),
|
|
54
|
+
value: options.value ?? DEFAULT_MIN,
|
|
55
|
+
onChange: options.onChange,
|
|
56
|
+
labelPosition: options.labelPosition,
|
|
57
|
+
disabled: options.disabled ?? false,
|
|
58
|
+
};
|
|
50
59
|
this.value = this.options.value;
|
|
51
|
-
this.options.min = Number(this.options.min);
|
|
52
|
-
this.options.max = Number(this.options.max);
|
|
53
|
-
this.options.step = Number(this.options.step);
|
|
54
60
|
this.init();
|
|
55
61
|
}
|
|
56
62
|
init() {
|
|
@@ -105,19 +111,20 @@ export class Slider {
|
|
|
105
111
|
});
|
|
106
112
|
if (this.options.labelPosition === 'bottom') {
|
|
107
113
|
const label = document.createElement('div');
|
|
108
|
-
label.className =
|
|
114
|
+
label.className = 'ncua-slider__label';
|
|
109
115
|
label.textContent = `${value}%`;
|
|
110
116
|
handle.appendChild(label);
|
|
111
117
|
}
|
|
112
118
|
if (this.options.labelPosition === 'top-floating') {
|
|
113
119
|
const label = document.createElement('div');
|
|
114
|
-
label.className =
|
|
120
|
+
label.className = 'ncua-slider__label ncua-slider__label--tooltip';
|
|
115
121
|
label.textContent = `${value}%`;
|
|
116
122
|
handle.appendChild(label);
|
|
117
123
|
}
|
|
118
124
|
this.element.appendChild(handle);
|
|
119
125
|
this.handleElements[index] = handle;
|
|
120
126
|
}
|
|
127
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: 단일/range 분기와 라벨/progress 업데이트를 한 함수에 묶는 기존 구조 유지. 분리 리팩토링은 별도 작업 범위.
|
|
121
128
|
updateHandlePositions() {
|
|
122
129
|
if (Array.isArray(this.value)) {
|
|
123
130
|
// Range slider
|
|
@@ -181,14 +188,15 @@ export class Slider {
|
|
|
181
188
|
}
|
|
182
189
|
}
|
|
183
190
|
getPositionFromValue(value) {
|
|
184
|
-
return ((value - this.options.min) / (this.options.max - this.options.min)) *
|
|
191
|
+
return ((value - this.options.min) / (this.options.max - this.options.min)) * PERCENT;
|
|
185
192
|
}
|
|
186
193
|
getValueFromPosition(position) {
|
|
187
|
-
const percentage = Math.min(Math.max(position, 0),
|
|
188
|
-
const exactValue = this.options.min + (percentage /
|
|
194
|
+
const percentage = Math.min(Math.max(position, 0), PERCENT);
|
|
195
|
+
const exactValue = this.options.min + (percentage / PERCENT) * (this.options.max - this.options.min);
|
|
189
196
|
const steppedValue = Math.round(exactValue / this.options.step) * this.options.step;
|
|
190
197
|
return Math.min(Math.max(steppedValue, this.options.min), this.options.max);
|
|
191
198
|
}
|
|
199
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: 핸들/트랙 클릭 분기와 가까운 핸들 결정 로직을 한 함수에 묶는 기존 구조 유지. 분리 리팩토링은 별도 작업 범위.
|
|
192
200
|
handleInteractionStart(clientX, target) {
|
|
193
201
|
// 슬라이더 영역 내부를 클릭/터치한 경우
|
|
194
202
|
if (target.closest('.ncua-slider')) {
|
|
@@ -202,13 +210,13 @@ export class Slider {
|
|
|
202
210
|
this.activeHandle = 1;
|
|
203
211
|
}
|
|
204
212
|
else {
|
|
205
|
-
this.activeHandle = parseInt(handleElement.dataset.index || '0', 10);
|
|
213
|
+
this.activeHandle = Number.parseInt(handleElement.dataset.index || '0', 10);
|
|
206
214
|
}
|
|
207
215
|
}
|
|
208
216
|
else {
|
|
209
217
|
// 슬라이더 트랙을 클릭/터치한 경우, 가장 가까운 핸들을 결정
|
|
210
218
|
const rect = this.element.getBoundingClientRect();
|
|
211
|
-
const position = ((clientX - rect.left) / rect.width) *
|
|
219
|
+
const position = ((clientX - rect.left) / rect.width) * PERCENT;
|
|
212
220
|
if (Array.isArray(this.value)) {
|
|
213
221
|
const [leftValue, rightValue] = this.value;
|
|
214
222
|
const leftPosition = this.getPositionFromValue(leftValue);
|
|
@@ -237,7 +245,7 @@ export class Slider {
|
|
|
237
245
|
if (!this.element || this.activeHandle === null)
|
|
238
246
|
return;
|
|
239
247
|
const rect = this.element.getBoundingClientRect();
|
|
240
|
-
const position = ((clientX - rect.left) / rect.width) *
|
|
248
|
+
const position = ((clientX - rect.left) / rect.width) * PERCENT;
|
|
241
249
|
const newValue = this.getValueFromPosition(position);
|
|
242
250
|
const prevValue = this.value;
|
|
243
251
|
if (Array.isArray(this.value)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
-
import type { Size } from '
|
|
3
|
-
import type { SideSlotType } from '
|
|
4
|
-
import { type DotProps } from '
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../../types/side-slot';
|
|
4
|
+
import { type DotProps } from '../../image-and-icons/dot';
|
|
5
5
|
export type ButtonProps = Omit<ComponentProps<'button'>, 'ref'> & {
|
|
6
6
|
label: ReactNode;
|
|
7
7
|
className?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { createElement, forwardRef } from 'react';
|
|
4
|
-
import { COLOR } from '
|
|
5
|
-
import { Dot } from '
|
|
4
|
+
import { COLOR } from '../../../../constant/color';
|
|
5
|
+
import { Dot } from '../../image-and-icons/dot';
|
|
6
6
|
export const svgSize = {
|
|
7
7
|
xxs: 12,
|
|
8
8
|
xs: 14,
|
package/dist/{types/src/components → temp/src/components/action}/button-group/ButtonGroup.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentProps } from 'react';
|
|
2
|
-
import type { Size } from '
|
|
3
|
-
import type { SideSlotType } from '
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../../types/side-slot';
|
|
4
4
|
type ButtonGroupSize = Extract<Size, 'xxs' | 'xs' | 'sm' | 'md'>;
|
|
5
5
|
interface SideCommon {
|
|
6
6
|
position?: 'leading' | 'trailing';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import React, { createElement } from 'react';
|
|
4
|
-
import { COLOR } from '
|
|
5
|
-
import { Dot } from '
|
|
4
|
+
import { COLOR } from '../../../../constant/color';
|
|
5
|
+
import { Dot } from '../../image-and-icons/dot';
|
|
6
6
|
const svgSize = {
|
|
7
7
|
xxs: 12,
|
|
8
8
|
xs: 16,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ColorTone } from '
|
|
2
|
-
import type { Size } from '
|
|
3
|
-
import type { SideSlotType } from '
|
|
1
|
+
import type { ColorTone } from '../../../../constant/color';
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../../types/side-slot';
|
|
4
4
|
type BadgeType = 'pill-outline' | 'pill-dark-color';
|
|
5
5
|
type BadgeColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'disabled'>;
|
|
6
6
|
type BadgeSize = Extract<Size, 'xs' | 'sm' | 'md'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { COLOR } from '
|
|
3
|
-
import { Dot } from '
|
|
2
|
+
import { COLOR } from '../../../../constant/color';
|
|
3
|
+
import { Dot } from '../../image-and-icons/dot/Dot';
|
|
4
4
|
const DEFAULT_DOT_COLOR = 'neutral';
|
|
5
5
|
const sideSlotRender = ({ slot, defaultIconSize }) => {
|
|
6
6
|
if (slot.type === 'icon') {
|
package/dist/temp/src/components/{badge-group → feedback-and-status/badge-group}/BadgeGroup.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ColorTone } from '
|
|
2
|
-
import type { Size } from '
|
|
3
|
-
import type { SideSlotType } from '
|
|
1
|
+
import type { ColorTone } from '../../../../constant/color';
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../../types/side-slot';
|
|
4
4
|
import { type BadgeProps } from '../badge';
|
|
5
5
|
type BadgeGroupSize = Extract<Size, 'xs' | 'sm'>;
|
|
6
6
|
type BadgeGroupColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonProps } from '
|
|
1
|
+
import { type ButtonProps } from '../../action/button/Button';
|
|
2
2
|
export interface ButtonOptions extends Pick<ButtonProps, 'hierarchy' | 'size' | 'leadingIcon' | 'trailingIcon'> {
|
|
3
3
|
label: string;
|
|
4
4
|
onClick?: () => void;
|
package/dist/temp/src/components/{empty-state → feedback-and-status/empty-state}/EmptyState.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from '../../action/button/Button';
|
|
3
3
|
export const EmptyState = ({ title, description, buttons }) => {
|
|
4
4
|
const emptyStateButtons = buttons ? (Array.isArray(buttons) ? buttons : [buttons]) : [];
|
|
5
5
|
return (_jsxs("div", { className: "ncua-empty-state", children: [_jsx("p", { className: "ncua-empty-state__title", children: title }), _jsx("span", { className: "ncua-empty-state__description", children: description }), emptyStateButtons.length > 0 && (_jsx("div", { className: "ncua-empty-state__button-group", children: emptyStateButtons.map(({ size, label, ...rest }) => (_jsx(Button, { size: size ?? 'xs', label: label, ...rest }, label))) }))] }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MouseEventHandler } from 'react';
|
|
2
|
-
import type { Size } from '
|
|
3
|
-
import type { SideSlotType } from '
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../../types/side-slot';
|
|
4
4
|
export interface TagProps {
|
|
5
5
|
size?: Extract<Size, 'sm' | 'md'>;
|
|
6
6
|
icon?: SideSlotType;
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { XClose } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useCallback, useRef, useState } from 'react';
|
|
5
|
-
import { COLOR } from '
|
|
6
|
-
import { Dot } from '
|
|
5
|
+
import { COLOR } from '../../../../constant/color';
|
|
6
|
+
import { Dot } from '../../image-and-icons/dot';
|
|
7
7
|
const MARGIN = 10;
|
|
8
8
|
const DEFAULT_TOOLTIP_WIDTH = 200;
|
|
9
9
|
const DEFAULT_TOOLTIP_HEIGHT = 60;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChangeEvent, type ComponentPropsWithRef } from 'react';
|
|
2
|
-
import type { Size } from '
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
3
|
export interface CheckboxInputProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'ref'> {
|
|
4
4
|
size?: Extract<Size, 'xs' | 'sm'>;
|
|
5
5
|
indeterminate?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
2
|
import type { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
|
-
import type { Size } from '
|
|
4
|
-
import type { OptionChangeHandler, OptionType, OptionValue } from '
|
|
3
|
+
import type { Size } from '../../../../constant/size';
|
|
4
|
+
import type { OptionChangeHandler, OptionType, OptionValue } from '../../../types/dropdown';
|
|
5
5
|
declare const defaultMaxHeight = 275;
|
|
6
6
|
interface ComboBoxProps extends Omit<ComponentPropsWithRef<'div'>, 'size' | 'onChange'> {
|
|
7
7
|
children?: ReactNode;
|
|
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { ChevronSelectorVertical, SearchLg } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef, useImperativeHandle, useRef, useState } from 'react';
|
|
5
|
-
import { useDropdown } from '
|
|
6
|
-
import { useMultiSelect } from '
|
|
7
|
-
import { Button } from '
|
|
5
|
+
import { useDropdown } from '../../../hooks/dropdown';
|
|
6
|
+
import { useMultiSelect } from '../../../utils/dropdown/multiSelect';
|
|
7
|
+
import { Button } from '../../action/button';
|
|
8
|
+
import { Tag } from '../../feedback-and-status/tag';
|
|
9
|
+
import { SelectDropdown } from '../../select-dropdown';
|
|
10
|
+
import { HintText } from '../../shared/hintText/HintText';
|
|
8
11
|
import { InputBase } from '../input-base/InputBase';
|
|
9
|
-
import { SelectDropdown } from '../select-dropdown';
|
|
10
|
-
import { HintText } from '../shared/hintText/HintText';
|
|
11
|
-
import { Tag } from '../tag';
|
|
12
12
|
const defaultMaxHeight = 275;
|
|
13
13
|
const toggleMultiSelectValue = (currentValue, optionId) => {
|
|
14
14
|
const currentValues = Array.isArray(currentValue) ? currentValue : [];
|
package/dist/temp/src/components/{date-picker → forms-and-input/date-picker}/CustomInput.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from 'react';
|
|
2
|
-
import type { Size } from '
|
|
2
|
+
import type { Size } from '../../../../constant/size';
|
|
3
3
|
interface CustomInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
iconName: 'calendar' | 'clock';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DateOption, Options } from 'flatpickr/dist/types/options';
|
|
2
2
|
import { type DateTimePickerHandle, type DateTimePickerProps } from 'react-flatpickr';
|
|
3
|
-
import type { Size } from '
|
|
3
|
+
import type { Size } from '../../../../constant/size';
|
|
4
4
|
export type DatePickerProps = {
|
|
5
5
|
size?: Extract<Size, 'xs' | 'sm'>;
|
|
6
6
|
shouldFocus?: boolean;
|
|
@@ -4,14 +4,14 @@ import { Korean } from 'flatpickr/dist/l10n/ko';
|
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { forwardRef, useCallback, useEffect, useId, useMemo, useRef } from 'react';
|
|
6
6
|
import Flatpickr from 'react-flatpickr';
|
|
7
|
-
import { formatDateInput, formatHourInput, formatMinuteInput } from '
|
|
7
|
+
import { formatDateInput, formatHourInput, formatMinuteInput } from '../../../utils/date-picker';
|
|
8
8
|
import { CustomInput } from './CustomInput';
|
|
9
9
|
// ══════════════════════════════════════════
|
|
10
10
|
// 유틸리티 함수
|
|
11
11
|
// ══════════════════════════════════════════
|
|
12
12
|
const isValidDate = (dateString) => {
|
|
13
13
|
const date = new Date(dateString);
|
|
14
|
-
return date instanceof Date && !isNaN(date.getTime());
|
|
14
|
+
return date instanceof Date && !Number.isNaN(date.getTime());
|
|
15
15
|
};
|
|
16
16
|
/** input의 스크롤 가능한 부모 요소들을 수집 */
|
|
17
17
|
const collectScrollParents = (element) => {
|
|
@@ -35,11 +35,11 @@ const getOpenCalendar = (instance, input, isPortal) => {
|
|
|
35
35
|
};
|
|
36
36
|
/** selectedDate가 유효하지 않으면 이전 날짜로 복원하고 true 반환 */
|
|
37
37
|
const restoreIfInvalidDate = (date, instance) => {
|
|
38
|
-
if (date && date instanceof Date && !isNaN(date.getTime())) {
|
|
38
|
+
if (date && date instanceof Date && !Number.isNaN(date.getTime())) {
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
41
|
const previousDate = instance._previousDateBeforeInput;
|
|
42
|
-
if (previousDate && previousDate instanceof Date && !isNaN(previousDate.getTime())) {
|
|
42
|
+
if (previousDate && previousDate instanceof Date && !Number.isNaN(previousDate.getTime())) {
|
|
43
43
|
instance.selectedDates = [previousDate];
|
|
44
44
|
instance.setDate(previousDate, false);
|
|
45
45
|
}
|
|
@@ -259,7 +259,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
259
259
|
const restorePreviousDate = (target, instance) => {
|
|
260
260
|
if (instance.selectedDates.length > 0) {
|
|
261
261
|
const prevDate = instance.selectedDates[0];
|
|
262
|
-
if (prevDate instanceof Date && !isNaN(prevDate.getTime())) {
|
|
262
|
+
if (prevDate instanceof Date && !Number.isNaN(prevDate.getTime())) {
|
|
263
263
|
const momentFormat = dateFormatRef.current.replace(/Y/g, 'YYYY').replace(/m/g, 'MM').replace(/d/g, 'DD');
|
|
264
264
|
target.value = moment(prevDate).format(momentFormat);
|
|
265
265
|
instance.setDate(prevDate, false);
|
|
@@ -284,7 +284,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
284
284
|
const violations = checkDateViolations(selectedDate, minDate, maxDate);
|
|
285
285
|
if (violations.length > 0 && onValidationErrorRef.current) {
|
|
286
286
|
const prevDate = instance?.selectedDates?.[0];
|
|
287
|
-
const validPrevDate = prevDate instanceof Date && !isNaN(prevDate.getTime()) ? prevDate : undefined;
|
|
287
|
+
const validPrevDate = prevDate instanceof Date && !Number.isNaN(prevDate.getTime()) ? prevDate : undefined;
|
|
288
288
|
onValidationErrorRef.current({
|
|
289
289
|
date: selectedDate,
|
|
290
290
|
minDate,
|
|
@@ -297,7 +297,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
297
297
|
instance._previousDateBeforeInput = selectedDate;
|
|
298
298
|
const formattedDate = formatDateInput(dateStr);
|
|
299
299
|
isValidDate(formattedDate) ? onChangeDateRef.current(formattedDate) : onChangeDateRef.current(dateStr);
|
|
300
|
-
}, []);
|
|
300
|
+
}, [checkDateViolations, restorePreviousDate]);
|
|
301
301
|
/** input에 직접 타이핑할 때 날짜 형식 자동 변환 및 유효성 검사 */
|
|
302
302
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
303
303
|
const onInputHandler = useCallback((e) => {
|
|
@@ -333,7 +333,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
333
333
|
if (violations.length > 0) {
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
|
-
}, []);
|
|
336
|
+
}, [checkDateViolations, restorePreviousDate]);
|
|
337
337
|
/** 시간 입력 필드 - 시(hour) 값 포맷팅 (0~23) */
|
|
338
338
|
const onHourInputHandler = useCallback((e) => {
|
|
339
339
|
const target = e.target;
|
|
@@ -360,7 +360,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
360
360
|
// 주의: JSON.stringify는 함수를 무시하고 Date를 문자열로 변환하므로,
|
|
361
361
|
// datePickerOptions에 함수나 Date 객체를 넘기면 변경 감지가 누락될 수 있음
|
|
362
362
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
363
|
-
const
|
|
363
|
+
const _datePickerOptionsKey = JSON.stringify(datePickerOptions);
|
|
364
364
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
365
365
|
const options = useMemo(() => ({
|
|
366
366
|
mode: 'single',
|
|
@@ -375,7 +375,7 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
375
375
|
/** flatpickr 기본 포맷 대신 moment를 사용하여 한국어 날짜 형식 지원 */
|
|
376
376
|
formatDate: (date, format, _locale) => {
|
|
377
377
|
try {
|
|
378
|
-
if (!date || !(date instanceof Date) || isNaN(date.getTime())) {
|
|
378
|
+
if (!date || !(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
379
379
|
return '';
|
|
380
380
|
}
|
|
381
381
|
const momentDate = moment(date);
|
|
@@ -452,15 +452,16 @@ export const DatePicker = forwardRef(({ shouldFocus = true, currentDate, size =
|
|
|
452
452
|
cleanupPositioning(instance);
|
|
453
453
|
},
|
|
454
454
|
...datePickerOptions,
|
|
455
|
+
// 어드민 환경 — 모바일에서 native picker 로 fallback 되지 않도록 강제 (datePickerOptions 로 override 불가)
|
|
456
|
+
disableMobile: true,
|
|
455
457
|
}), [
|
|
456
458
|
portal,
|
|
457
|
-
size,
|
|
458
|
-
hasTimeOption,
|
|
459
|
-
datePickerOptionsKey,
|
|
460
459
|
onChangeDateHandler,
|
|
461
460
|
onInputHandler,
|
|
462
461
|
onHourInputHandler,
|
|
463
462
|
onMinuteInputHandler,
|
|
463
|
+
datePickerOptions,
|
|
464
|
+
getPortalContainer,
|
|
464
465
|
]);
|
|
465
466
|
const iconName = hasTimeOption && datePickerOptions && Object.hasOwn(datePickerOptions, 'noCalendar') ? 'clock' : 'calendar';
|
|
466
467
|
// ──────────────────────────────────────────────
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { HelpCircle, Upload01 } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { Button } from '
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Button } from '../../action/button';
|
|
6
|
+
import { Tag } from '../../feedback-and-status/tag/Tag';
|
|
7
|
+
import { HintText, Label } from '../../shared';
|
|
8
8
|
export var FileInputErrorType;
|
|
9
9
|
(function (FileInputErrorType) {
|
|
10
10
|
FileInputErrorType["ALREADY_UPLOADED"] = "ALREADY_UPLOADED";
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { HelpCircle, Upload01 } from '@ncds/ui-admin-icon';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
5
|
-
import { Button } from '
|
|
5
|
+
import { Button } from '../../action/button';
|
|
6
|
+
import { Tooltip } from '../../overlays/tooltip';
|
|
7
|
+
import { HintText, Label } from '../../shared';
|
|
6
8
|
import { FileInputErrorType as ImageFileInputErrorType } from '../file-input/FileInput';
|
|
7
|
-
import { HintText, Label } from '../shared';
|
|
8
|
-
import { Tooltip } from '../tooltip';
|
|
9
9
|
import { ImagePreview } from './components/ImagePreview';
|
|
10
10
|
export const ImageFileInput = forwardRef(({ size = 'sm', accept, multiple = false, maxFileSize, maxFileCount, value, onChange, onFileSelect, onFail, buttonLabel = '파일 찾기', imagePreviewTooltipLabel = '이미지 업로드', disabled, label, hintItems, validation, destructive, isRequired, showHelpIcon, hintText, showFileTagList = true, showHintText = true, showFileInput = true, ...props }, ref) => {
|
|
11
11
|
const fileInputRef = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Trash03 } from '@ncds/ui-admin-icon';
|
|
3
|
-
import { Button } from '
|
|
3
|
+
import { Button } from '../../../action/button';
|
|
4
4
|
export const ImagePreview = ({ file, onRemove }) => {
|
|
5
5
|
return (_jsxs("div", { className: "ncua-image-file-input__preview-container", children: [_jsx("img", { className: "ncua-image-file-input__preview-image", src: URL.createObjectURL(file), alt: file.name }), _jsx(Button, { size: "sm", hierarchy: "text", onlyIcon: true, leadingIcon: { type: 'icon', icon: Trash03, color: 'gray200' }, label: "Remove image", onClick: onRemove, className: "ncua-image-file-input__preview-remove-button" })] }));
|
|
6
6
|
};
|