@ncds/ui-admin 1.6.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/assets/scripts/baseBox.js +146 -0
- package/dist/cjs/assets/scripts/comboBox.js +61 -204
- package/dist/cjs/assets/scripts/datePicker.js +290 -325
- package/dist/cjs/assets/scripts/featuredIcon.js +42 -50
- package/dist/cjs/assets/scripts/fileInput/const/classNames.js +5 -15
- package/dist/cjs/assets/scripts/fileInput/fileInput.js +78 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +53 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputView.js +152 -0
- package/dist/cjs/assets/scripts/fileInput/index.js +3 -3
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +61 -64
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +79 -112
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +108 -106
- package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +6 -16
- package/dist/cjs/assets/scripts/index.js +2 -0
- package/dist/cjs/assets/scripts/modal/Modal.js +43 -55
- package/dist/cjs/assets/scripts/modal/ModalActions.js +40 -52
- package/dist/cjs/assets/scripts/modal/ModalContent.js +22 -22
- package/dist/cjs/assets/scripts/modal/ModalHeader.js +37 -48
- package/dist/cjs/assets/scripts/modal/const/classNames.js +5 -13
- package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +1 -1
- package/dist/cjs/assets/scripts/notification/FloatingNotification.js +91 -93
- package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +92 -80
- package/dist/cjs/assets/scripts/notification/MessageNotification.js +92 -79
- package/dist/cjs/assets/scripts/notification/Notification.js +50 -65
- package/dist/cjs/assets/scripts/notification/const/classNames.js +1 -1
- package/dist/cjs/assets/scripts/notification/const/icons.js +11 -25
- package/dist/cjs/assets/scripts/notification/const/sizes.js +11 -19
- package/dist/cjs/assets/scripts/notification/const/types.js +1 -1
- package/dist/cjs/assets/scripts/notification/utils.js +28 -23
- package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +140 -141
- package/dist/cjs/assets/scripts/selectBox.js +77 -227
- package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +18 -19
- package/dist/cjs/assets/scripts/slider.js +104 -122
- package/dist/cjs/assets/scripts/tab.js +8 -8
- package/dist/cjs/assets/scripts/table/Table.js +377 -0
- package/dist/cjs/assets/scripts/table/const/classNames.js +33 -0
- package/dist/cjs/assets/scripts/table/const/index.js +27 -0
- package/dist/cjs/assets/scripts/table/const/types.js +5 -0
- package/dist/cjs/assets/scripts/table/index.js +43 -0
- package/dist/cjs/assets/scripts/tag/Tag.js +108 -115
- package/dist/cjs/assets/scripts/tag/const/classNames.js +3 -7
- package/dist/cjs/assets/scripts/tag/const/sizes.js +4 -4
- package/dist/cjs/assets/scripts/tooltip/Tooltip.js +155 -182
- package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +23 -25
- package/dist/cjs/assets/scripts/tooltip/const/classNames.js +1 -1
- package/dist/cjs/assets/scripts/tooltip/const/constants.js +14 -14
- package/dist/cjs/assets/scripts/tooltip/const/icons.js +7 -7
- package/dist/cjs/assets/scripts/tooltip/const/templates.js +42 -25
- package/dist/cjs/assets/scripts/tooltip/utils.js +17 -18
- package/dist/cjs/assets/scripts/utils/debounce.js +32 -0
- package/dist/cjs/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +102 -116
- package/dist/cjs/assets/scripts/utils/unifiedBox/dropdownModel.js +285 -0
- package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +187 -246
- package/dist/cjs/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +473 -0
- package/dist/cjs/constant/color.js +1 -1
- package/dist/cjs/index.js +0 -297
- package/dist/cjs/src/components/badge/Badge.js +17 -30
- package/dist/cjs/src/components/badge/index.js +0 -11
- package/dist/cjs/src/components/badge/utils.js +11 -10
- package/dist/cjs/src/components/badge-group/BadgeGroup.js +42 -0
- package/dist/cjs/src/components/badge-group/index.js +16 -0
- package/dist/cjs/src/components/bread-crumb/BreadCrumb.js +55 -0
- package/dist/cjs/src/components/button/Button.js +42 -55
- package/dist/cjs/src/components/button/ButtonCloseX.js +12 -22
- package/dist/cjs/src/components/button/ButtonStepper.js +9 -7
- package/dist/cjs/src/components/button/index.js +0 -11
- package/dist/cjs/src/components/button-group/ButtonGroup.js +97 -0
- package/dist/cjs/src/components/button-group/index.js +16 -0
- package/dist/cjs/src/components/carousel-arrow/CarouselArrow.js +34 -0
- package/dist/cjs/src/components/carousel-arrow/index.js +16 -0
- package/dist/cjs/src/components/carousel-number-group/CarouselNumberGroup.js +33 -0
- package/dist/cjs/src/components/{carousel → carousel-number-group}/index.js +0 -11
- package/dist/cjs/src/components/checkbox/Checkbox.js +28 -49
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +24 -43
- package/dist/cjs/src/components/combo-box/ComboBox.js +290 -0
- package/dist/cjs/src/components/data-grid/DataGrid.js +182 -0
- package/dist/cjs/src/components/data-grid/DataGrid.types.js +5 -0
- package/dist/cjs/src/components/data-grid/index.js +27 -0
- package/dist/cjs/src/components/date-picker/CustomInput.js +16 -30
- package/dist/cjs/src/components/date-picker/DatePicker.js +420 -240
- package/dist/cjs/src/components/date-picker/index.js +0 -22
- package/dist/cjs/src/components/date-picker/utils.js +2 -4
- package/dist/cjs/src/components/divider/Divider.js +15 -26
- package/dist/cjs/src/components/dot/Dot.js +11 -28
- package/dist/cjs/src/components/dropdown/Dropdown.js +90 -131
- package/dist/cjs/src/components/empty-state/EmptyState.js +28 -45
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +14 -33
- package/dist/cjs/src/components/file-input/FileInput.js +102 -148
- package/dist/cjs/src/components/horizontal-tab/HorizontalTab.js +53 -0
- package/dist/cjs/src/components/horizontal-tab/index.js +16 -0
- package/dist/cjs/src/components/image-file-input/ImageFileInput.js +109 -167
- package/dist/cjs/src/components/image-file-input/components/ImagePreview.js +8 -17
- package/dist/cjs/src/components/index.js +156 -24
- package/dist/cjs/src/components/input-base/InputBase.js +195 -0
- package/dist/cjs/src/components/input-base/index.js +16 -0
- package/dist/cjs/src/components/modal/Modal.js +76 -105
- package/dist/cjs/src/components/notification/FloatingNotification.js +52 -80
- package/dist/cjs/src/components/notification/FullWidthNotification.js +67 -101
- package/dist/cjs/src/components/notification/MessageNotification.js +60 -89
- package/dist/cjs/src/components/notification/Notification.js +18 -36
- package/dist/cjs/src/components/notification/index.js +11 -11
- package/dist/cjs/src/components/number-input/NumberInput.js +112 -0
- package/dist/cjs/src/components/number-input/index.js +16 -0
- package/dist/cjs/src/components/pagination/NavButton.js +29 -41
- package/dist/cjs/src/components/pagination/Pagination.js +68 -109
- package/dist/cjs/src/components/password-input/PasswordInput.js +55 -0
- package/dist/cjs/src/components/password-input/index.js +16 -0
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +50 -61
- package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +11 -9
- package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +32 -43
- package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +59 -77
- package/dist/cjs/src/components/progress-bar/utils.js +10 -9
- package/dist/cjs/src/components/progress-circle/ProgressCircle.js +65 -88
- package/dist/cjs/src/components/radio/Radio.js +24 -43
- package/dist/cjs/src/components/radio/RadioInput.js +18 -36
- package/dist/cjs/src/components/range-date-picker/RangeDatePicker.js +147 -0
- package/dist/cjs/src/components/range-date-picker/index.js +16 -0
- package/dist/cjs/src/components/range-date-picker-with-buttons/RangeDatePickerWithButtons.js +81 -0
- package/dist/cjs/src/components/range-date-picker-with-buttons/index.js +16 -0
- package/dist/cjs/src/components/select/Select.js +36 -63
- package/dist/cjs/src/components/select-box/SelectBox.js +260 -0
- package/dist/cjs/src/components/select-dropdown/SelectDropdown.js +64 -100
- package/dist/cjs/src/components/shared/hintText/HintText.js +13 -30
- package/dist/cjs/src/components/shared/label/Label.js +12 -29
- package/dist/cjs/src/components/slider/Slider.js +25 -28
- package/dist/cjs/src/components/spinner/Spinner.js +22 -35
- package/dist/cjs/src/components/spinner/index.js +0 -11
- package/dist/cjs/src/components/switch/Switch.js +44 -64
- package/dist/cjs/src/components/tab/TabButton.js +41 -61
- package/dist/cjs/src/components/tab/index.js +0 -22
- package/dist/cjs/src/components/table/Table.js +269 -0
- package/dist/cjs/src/components/table/index.js +16 -0
- package/dist/cjs/src/components/table/types.js +5 -0
- package/dist/cjs/src/components/tag/Tag.js +65 -85
- package/dist/cjs/src/components/textarea/Textarea.js +79 -0
- package/dist/cjs/src/components/textarea/index.js +16 -0
- package/dist/cjs/src/components/toggle/Toggle.js +29 -55
- package/dist/cjs/src/components/tooltip/Tooltip.js +90 -108
- package/dist/cjs/src/components/vertical-tab/VerticalTab.js +48 -0
- package/dist/cjs/src/components/vertical-tab/index.js +16 -0
- package/dist/cjs/src/constant/breakpoint.js +3 -3
- package/dist/cjs/src/constant/date-picker.js +1 -1
- package/dist/cjs/src/constant/index.js +8 -8
- package/dist/cjs/src/constant/size.js +1 -1
- package/dist/cjs/src/hooks/dropdown/useDropdown.js +58 -60
- package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +69 -81
- package/dist/cjs/src/hooks/dropdown/useDropdownPosition.js +7 -9
- package/dist/cjs/src/hooks/dropdown/useOutsideClick.js +11 -11
- package/dist/cjs/src/hooks/dropdown/useScrollLock.js +43 -32
- package/dist/cjs/src/hooks/dropdown/useWindowResize.js +12 -13
- package/dist/cjs/src/hooks/index.js +4 -4
- package/dist/cjs/src/hooks/useCallbackRef.js +2 -2
- package/dist/cjs/src/hooks/useMediaQuery.js +8 -11
- package/dist/cjs/src/hooks/useMergeRefs.js +2 -2
- package/dist/cjs/src/utils/date-picker.js +31 -25
- package/dist/cjs/src/utils/dropdown/dropdownUtils.js +43 -41
- package/dist/cjs/src/utils/dropdown/multiSelect.js +25 -45
- package/dist/esm/assets/scripts/baseBox.js +139 -0
- package/dist/esm/assets/scripts/comboBox.js +59 -204
- package/dist/esm/assets/scripts/datePicker.js +289 -325
- package/dist/esm/assets/scripts/featuredIcon.js +41 -51
- package/dist/esm/assets/scripts/fileInput/const/classNames.js +4 -13
- package/dist/esm/assets/scripts/fileInput/fileInput.js +71 -0
- package/dist/esm/assets/scripts/fileInput/fileInputModel.js +46 -0
- package/dist/esm/assets/scripts/fileInput/fileInputView.js +145 -0
- package/dist/esm/assets/scripts/fileInput/index.js +2 -2
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +60 -65
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +78 -113
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +108 -108
- package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +6 -16
- package/dist/esm/assets/scripts/index.js +2 -0
- package/dist/esm/assets/scripts/modal/Modal.js +43 -55
- package/dist/esm/assets/scripts/modal/ModalActions.js +39 -53
- package/dist/esm/assets/scripts/modal/ModalContent.js +21 -23
- package/dist/esm/assets/scripts/modal/ModalHeader.js +36 -49
- package/dist/esm/assets/scripts/modal/const/classNames.js +5 -13
- package/dist/esm/assets/scripts/modal/utils/contentUtils.js +1 -1
- package/dist/esm/assets/scripts/notification/FloatingNotification.js +90 -94
- package/dist/esm/assets/scripts/notification/FullWidthNotification.js +91 -81
- package/dist/esm/assets/scripts/notification/MessageNotification.js +91 -80
- package/dist/esm/assets/scripts/notification/Notification.js +49 -66
- package/dist/esm/assets/scripts/notification/const/classNames.js +1 -1
- package/dist/esm/assets/scripts/notification/const/icons.js +11 -25
- package/dist/esm/assets/scripts/notification/const/sizes.js +11 -19
- package/dist/esm/assets/scripts/notification/const/types.js +1 -1
- package/dist/esm/assets/scripts/notification/utils.js +28 -23
- package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +139 -142
- package/dist/esm/assets/scripts/selectBox.js +75 -227
- package/dist/esm/assets/scripts/shared/ButtonCloseX.js +18 -19
- package/dist/esm/assets/scripts/slider.js +103 -123
- package/dist/esm/assets/scripts/tab.js +7 -9
- package/dist/esm/assets/scripts/table/Table.js +370 -0
- package/dist/esm/assets/scripts/table/const/classNames.js +27 -0
- package/dist/esm/assets/scripts/table/const/index.js +2 -0
- package/dist/esm/assets/scripts/table/const/types.js +1 -0
- package/dist/esm/assets/scripts/table/index.js +8 -0
- package/dist/esm/assets/scripts/tag/Tag.js +107 -116
- package/dist/esm/assets/scripts/tag/const/classNames.js +3 -7
- package/dist/esm/assets/scripts/tag/const/sizes.js +4 -4
- package/dist/esm/assets/scripts/tooltip/Tooltip.js +154 -183
- package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +22 -26
- package/dist/esm/assets/scripts/tooltip/const/classNames.js +1 -1
- package/dist/esm/assets/scripts/tooltip/const/constants.js +14 -14
- package/dist/esm/assets/scripts/tooltip/const/icons.js +7 -7
- package/dist/esm/assets/scripts/tooltip/const/templates.js +42 -25
- package/dist/esm/assets/scripts/tooltip/utils.js +17 -18
- package/dist/esm/assets/scripts/utils/debounce.js +26 -0
- package/dist/esm/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +101 -117
- package/dist/esm/assets/scripts/utils/unifiedBox/dropdownModel.js +279 -0
- package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +186 -247
- package/dist/esm/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +466 -0
- package/dist/esm/constant/color.js +1 -1
- package/dist/esm/index.js +0 -27
- package/dist/esm/src/components/badge/Badge.js +19 -31
- package/dist/esm/src/components/badge/index.js +1 -2
- package/dist/esm/src/components/badge/utils.js +13 -11
- package/dist/esm/src/components/badge-group/BadgeGroup.js +35 -0
- package/dist/esm/src/components/badge-group/index.js +1 -0
- package/dist/esm/src/components/bread-crumb/BreadCrumb.js +48 -0
- package/dist/esm/src/components/button/Button.js +42 -55
- package/dist/esm/src/components/button/ButtonCloseX.js +14 -23
- package/dist/esm/src/components/button/ButtonStepper.js +9 -7
- package/dist/esm/src/components/button/index.js +0 -1
- package/dist/esm/src/components/button-group/ButtonGroup.js +89 -0
- package/dist/esm/src/components/button-group/index.js +1 -0
- package/dist/esm/src/components/carousel-arrow/CarouselArrow.js +26 -0
- package/dist/esm/src/components/carousel-arrow/index.js +1 -0
- package/dist/esm/src/components/carousel-number-group/CarouselNumberGroup.js +25 -0
- package/dist/esm/src/components/carousel-number-group/index.js +1 -0
- package/dist/esm/src/components/checkbox/Checkbox.js +28 -49
- package/dist/esm/src/components/checkbox/CheckboxInput.js +24 -43
- package/dist/esm/src/components/combo-box/ComboBox.js +284 -0
- package/dist/esm/src/components/data-grid/DataGrid.js +175 -0
- package/dist/esm/src/components/data-grid/DataGrid.types.js +1 -0
- package/dist/esm/src/components/data-grid/index.js +2 -0
- package/dist/esm/src/components/date-picker/CustomInput.js +18 -31
- package/dist/esm/src/components/date-picker/DatePicker.js +425 -243
- package/dist/esm/src/components/date-picker/index.js +0 -2
- package/dist/esm/src/components/date-picker/utils.js +2 -4
- package/dist/esm/src/components/divider/Divider.js +15 -26
- package/dist/esm/src/components/dot/Dot.js +13 -29
- package/dist/esm/src/components/dropdown/Dropdown.js +90 -131
- package/dist/esm/src/components/empty-state/EmptyState.js +30 -46
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +16 -34
- package/dist/esm/src/components/file-input/FileInput.js +102 -148
- package/dist/esm/src/components/horizontal-tab/HorizontalTab.js +46 -0
- package/dist/esm/src/components/horizontal-tab/index.js +1 -0
- package/dist/esm/src/components/image-file-input/ImageFileInput.js +110 -168
- package/dist/esm/src/components/image-file-input/components/ImagePreview.js +8 -17
- package/dist/esm/src/components/index.js +18 -6
- package/dist/esm/src/components/input-base/InputBase.js +189 -0
- package/dist/esm/src/components/input-base/index.js +1 -0
- package/dist/esm/src/components/modal/Modal.js +78 -106
- package/dist/esm/src/components/notification/FloatingNotification.js +54 -81
- package/dist/esm/src/components/notification/FullWidthNotification.js +69 -102
- package/dist/esm/src/components/notification/MessageNotification.js +62 -90
- package/dist/esm/src/components/notification/Notification.js +20 -37
- package/dist/esm/src/components/notification/index.js +2 -2
- package/dist/esm/src/components/number-input/NumberInput.js +106 -0
- package/dist/esm/src/components/number-input/index.js +1 -0
- package/dist/esm/src/components/pagination/NavButton.js +29 -41
- package/dist/esm/src/components/pagination/Pagination.js +68 -109
- package/dist/esm/src/components/password-input/PasswordInput.js +48 -0
- package/dist/esm/src/components/password-input/index.js +1 -0
- package/dist/esm/src/components/progress-bar/ProgressBar.js +50 -61
- package/dist/esm/src/components/progress-bar/components/SegmentBar.js +11 -9
- package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +34 -44
- package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +59 -77
- package/dist/esm/src/components/progress-bar/utils.js +11 -9
- package/dist/esm/src/components/progress-circle/ProgressCircle.js +65 -88
- package/dist/esm/src/components/radio/Radio.js +24 -43
- package/dist/esm/src/components/radio/RadioInput.js +18 -36
- package/dist/esm/src/components/range-date-picker/RangeDatePicker.js +141 -0
- package/dist/esm/src/components/range-date-picker/index.js +1 -0
- package/dist/esm/src/components/range-date-picker-with-buttons/RangeDatePickerWithButtons.js +75 -0
- package/dist/esm/src/components/range-date-picker-with-buttons/index.js +1 -0
- package/dist/esm/src/components/select/Select.js +36 -63
- package/dist/esm/src/components/select-box/SelectBox.js +254 -0
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +66 -101
- package/dist/esm/src/components/shared/hintText/HintText.js +13 -30
- package/dist/esm/src/components/shared/label/Label.js +12 -29
- package/dist/esm/src/components/slider/Slider.js +25 -28
- package/dist/esm/src/components/spinner/Spinner.js +22 -35
- package/dist/esm/src/components/spinner/index.js +1 -2
- package/dist/esm/src/components/switch/Switch.js +47 -66
- package/dist/esm/src/components/tab/TabButton.js +43 -62
- package/dist/esm/src/components/tab/index.js +1 -3
- package/dist/esm/src/components/table/Table.js +262 -0
- package/dist/esm/src/components/table/index.js +1 -0
- package/dist/esm/src/components/table/types.js +1 -0
- package/dist/esm/src/components/tag/Tag.js +67 -86
- package/dist/esm/src/components/textarea/Textarea.js +72 -0
- package/dist/esm/src/components/textarea/index.js +1 -0
- package/dist/esm/src/components/toggle/Toggle.js +30 -56
- package/dist/esm/src/components/tooltip/Tooltip.js +92 -110
- package/dist/esm/src/components/vertical-tab/VerticalTab.js +40 -0
- package/dist/esm/src/components/vertical-tab/index.js +1 -0
- package/dist/esm/src/constant/breakpoint.js +3 -3
- package/dist/esm/src/constant/date-picker.js +1 -1
- package/dist/esm/src/constant/index.js +2 -2
- package/dist/esm/src/constant/size.js +1 -1
- package/dist/esm/src/hooks/dropdown/useDropdown.js +58 -60
- package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +69 -81
- package/dist/esm/src/hooks/dropdown/useDropdownPosition.js +7 -9
- package/dist/esm/src/hooks/dropdown/useOutsideClick.js +11 -11
- package/dist/esm/src/hooks/dropdown/useScrollLock.js +43 -32
- package/dist/esm/src/hooks/dropdown/useWindowResize.js +12 -13
- package/dist/esm/src/hooks/index.js +3 -3
- package/dist/esm/src/hooks/useCallbackRef.js +2 -2
- package/dist/esm/src/hooks/useMediaQuery.js +8 -11
- package/dist/esm/src/hooks/useMergeRefs.js +2 -2
- package/dist/esm/src/utils/date-picker.js +31 -25
- package/dist/esm/src/utils/dropdown/dropdownUtils.js +43 -41
- package/dist/esm/src/utils/dropdown/multiSelect.js +25 -45
- package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
- package/dist/temp/assets/scripts/baseBox.js +140 -0
- package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
- package/dist/temp/assets/scripts/comboBox.js +132 -0
- package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
- package/dist/temp/assets/scripts/datePicker.js +699 -0
- package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
- package/dist/temp/assets/scripts/featuredIcon.js +79 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.js +16 -0
- package/dist/temp/assets/scripts/fileInput/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/fileInput/const/index.js +2 -0
- package/dist/temp/assets/scripts/fileInput/const/types.d.ts +88 -0
- package/dist/temp/assets/scripts/fileInput/const/types.js +7 -0
- package/dist/temp/assets/scripts/fileInput/fileInput.d.ts +13 -0
- package/dist/temp/assets/scripts/fileInput/fileInput.js +71 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.js +37 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.js +145 -0
- package/dist/temp/assets/scripts/fileInput/index.d.ts +3 -0
- package/dist/temp/assets/scripts/fileInput/index.js +9 -0
- package/dist/{types/assets/scripts/fileInput/FileInput.d.ts → temp/assets/scripts/imageFileInput/ImageFileInput.d.ts} +6 -10
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInput.js +180 -0
- package/dist/{types/assets/scripts/fileInput/FileInputModel.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputModel.d.ts} +8 -5
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputModel.js +214 -0
- package/dist/{types/assets/scripts/fileInput/FileInputView.d.ts → temp/assets/scripts/imageFileInput/ImageFileInputView.d.ts} +27 -25
- package/dist/temp/assets/scripts/imageFileInput/ImageFileInputView.js +350 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +20 -0
- package/dist/temp/assets/scripts/imageFileInput/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/imageFileInput/const/index.js +2 -0
- package/dist/temp/assets/scripts/imageFileInput/const/types.d.ts +125 -0
- package/dist/temp/assets/scripts/imageFileInput/const/types.js +7 -0
- package/dist/temp/assets/scripts/imageFileInput/index.d.ts +3 -0
- package/dist/temp/assets/scripts/imageFileInput/index.js +9 -0
- package/dist/temp/assets/scripts/index.d.ts +34 -0
- package/dist/temp/assets/scripts/index.js +30 -0
- package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
- package/dist/temp/assets/scripts/modal/Modal.js +100 -0
- package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
- package/dist/temp/assets/scripts/modal/ModalActions.js +117 -0
- package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
- package/dist/temp/assets/scripts/modal/ModalContent.js +39 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.js +96 -0
- package/dist/temp/assets/scripts/modal/const/classNames.d.ts +22 -0
- package/dist/temp/assets/scripts/modal/const/classNames.js +23 -0
- package/dist/temp/assets/scripts/modal/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/modal/const/index.js +2 -0
- package/dist/temp/assets/scripts/modal/const/types.d.ts +61 -0
- package/dist/temp/assets/scripts/modal/const/types.js +1 -0
- package/dist/temp/assets/scripts/modal/index.d.ts +7 -0
- package/dist/temp/assets/scripts/modal/index.js +15 -0
- package/dist/temp/assets/scripts/modal/utils/contentUtils.d.ts +10 -0
- package/dist/temp/assets/scripts/modal/utils/contentUtils.js +29 -0
- package/dist/temp/assets/scripts/notification/FloatingNotification.d.ts +24 -0
- package/dist/temp/assets/scripts/notification/FloatingNotification.js +157 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.js +110 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.js +140 -0
- package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/Notification.js +94 -0
- package/dist/temp/assets/scripts/notification/const/classNames.d.ts +43 -0
- package/dist/temp/assets/scripts/notification/const/classNames.js +44 -0
- package/dist/temp/assets/scripts/notification/const/icons.d.ts +25 -0
- package/dist/temp/assets/scripts/notification/const/icons.js +25 -0
- package/dist/temp/assets/scripts/notification/const/index.d.ts +5 -0
- package/dist/temp/assets/scripts/notification/const/index.js +4 -0
- package/dist/temp/assets/scripts/notification/const/sizes.d.ts +32 -0
- package/dist/temp/assets/scripts/notification/const/sizes.js +40 -0
- package/dist/temp/assets/scripts/notification/const/types.d.ts +19 -0
- package/dist/temp/assets/scripts/notification/const/types.js +8 -0
- package/dist/temp/assets/scripts/notification/index.d.ts +7 -0
- package/dist/temp/assets/scripts/notification/index.js +11 -0
- package/dist/temp/assets/scripts/notification/utils.d.ts +8 -0
- package/dist/temp/assets/scripts/notification/utils.js +89 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +263 -0
- package/dist/temp/assets/scripts/progress-bar/index.d.ts +1 -0
- package/dist/temp/assets/scripts/progress-bar/index.js +1 -0
- package/dist/temp/assets/scripts/selectBox.d.ts +50 -0
- package/dist/temp/assets/scripts/selectBox.js +170 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.js +33 -0
- package/dist/temp/assets/scripts/slider.d.ts +41 -0
- package/dist/temp/assets/scripts/slider.js +323 -0
- package/dist/temp/assets/scripts/tab.d.ts +7 -0
- package/dist/temp/assets/scripts/tab.js +33 -0
- package/dist/temp/assets/scripts/table/Table.d.ts +41 -0
- package/dist/temp/assets/scripts/table/Table.js +378 -0
- package/dist/temp/assets/scripts/table/const/classNames.d.ts +27 -0
- package/dist/temp/assets/scripts/table/const/classNames.js +27 -0
- package/dist/temp/assets/scripts/table/const/index.d.ts +2 -0
- package/dist/temp/assets/scripts/table/const/index.js +2 -0
- package/dist/temp/assets/scripts/table/const/types.d.ts +23 -0
- package/dist/temp/assets/scripts/table/const/types.js +1 -0
- package/dist/temp/assets/scripts/table/index.d.ts +3 -0
- package/dist/temp/assets/scripts/table/index.js +8 -0
- package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
- package/dist/temp/assets/scripts/tag/Tag.js +259 -0
- package/dist/temp/assets/scripts/tag/const/classNames.d.ts +11 -0
- package/dist/temp/assets/scripts/tag/const/classNames.js +12 -0
- package/dist/temp/assets/scripts/tag/const/index.d.ts +3 -0
- package/dist/temp/assets/scripts/tag/const/index.js +3 -0
- package/dist/temp/assets/scripts/tag/const/sizes.d.ts +7 -0
- package/dist/temp/assets/scripts/tag/const/sizes.js +7 -0
- package/dist/temp/assets/scripts/tag/const/types.d.ts +33 -0
- package/dist/temp/assets/scripts/tag/const/types.js +1 -0
- package/dist/temp/assets/scripts/tag/index.d.ts +3 -0
- package/dist/temp/assets/scripts/tag/index.js +9 -0
- package/dist/temp/assets/scripts/tooltip/Tooltip.d.ts +54 -0
- package/dist/temp/assets/scripts/tooltip/Tooltip.js +335 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +71 -0
- 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 +46 -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 +4 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.d.ts +16 -0
- package/dist/temp/assets/scripts/tooltip/const/templates.js +59 -0
- package/dist/temp/assets/scripts/tooltip/const/types.d.ts +14 -0
- package/dist/temp/assets/scripts/tooltip/const/types.js +1 -0
- package/dist/temp/assets/scripts/tooltip/index.d.ts +6 -0
- package/dist/temp/assets/scripts/tooltip/index.js +10 -0
- package/dist/temp/assets/scripts/tooltip/utils.d.ts +2 -0
- package/dist/temp/assets/scripts/tooltip/utils.js +33 -0
- package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
- package/dist/temp/assets/scripts/utils/debounce.js +23 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts → temp/assets/scripts/utils/unifiedBox/domRenderer.d.ts} +0 -1
- package/dist/temp/assets/scripts/utils/unifiedBox/domRenderer.js +367 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts → temp/assets/scripts/utils/unifiedBox/dropdownModel.d.ts} +7 -23
- package/dist/temp/assets/scripts/utils/unifiedBox/dropdownModel.js +286 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts} +3 -18
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxController.js +604 -0
- package/dist/{types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts → temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts} +4 -8
- package/dist/temp/assets/scripts/utils/unifiedBox/unifiedBoxManager.js +482 -0
- package/dist/temp/constant/color.d.ts +36 -0
- package/dist/temp/constant/color.js +34 -0
- package/dist/temp/constant/size.d.ts +1 -0
- package/dist/temp/constant/size.js +1 -0
- package/dist/temp/index.d.ts +2 -0
- package/dist/temp/index.js +2 -0
- package/dist/temp/src/components/badge/Badge.d.ts +18 -0
- package/dist/temp/src/components/badge/Badge.js +11 -0
- package/dist/temp/src/components/badge/index.d.ts +1 -0
- package/dist/temp/src/components/badge/index.js +1 -0
- package/dist/temp/src/components/badge/utils.d.ts +8 -0
- package/dist/temp/src/components/badge/utils.js +15 -0
- package/dist/temp/src/components/badge-group/BadgeGroup.d.ts +18 -0
- package/dist/temp/src/components/badge-group/BadgeGroup.js +13 -0
- package/dist/temp/src/components/badge-group/index.d.ts +1 -0
- package/dist/temp/src/components/badge-group/index.js +1 -0
- package/dist/temp/src/components/bread-crumb/BreadCrumb.d.ts +11 -0
- package/dist/temp/src/components/bread-crumb/BreadCrumb.js +20 -0
- package/dist/temp/src/components/bread-crumb/index.d.ts +1 -0
- package/dist/temp/src/components/bread-crumb/index.js +1 -0
- package/dist/temp/src/components/button/Button.d.ts +35 -0
- package/dist/temp/src/components/button/Button.js +52 -0
- package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
- package/dist/temp/src/components/button/ButtonCloseX.js +13 -0
- package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
- package/dist/temp/src/components/button/ButtonStepper.js +5 -0
- package/dist/temp/src/components/button/index.d.ts +3 -0
- package/dist/temp/src/components/button/index.js +3 -0
- package/dist/{types/src/components/button → temp/src/components/button-group}/ButtonGroup.d.ts +12 -13
- package/dist/temp/src/components/button-group/ButtonGroup.js +51 -0
- package/dist/temp/src/components/button-group/index.d.ts +1 -0
- package/dist/temp/src/components/button-group/index.js +1 -0
- package/dist/temp/src/components/carousel-arrow/CarouselArrow.d.ts +8 -0
- package/dist/temp/src/components/carousel-arrow/CarouselArrow.js +9 -0
- package/dist/temp/src/components/carousel-arrow/index.d.ts +1 -0
- package/dist/temp/src/components/carousel-arrow/index.js +1 -0
- package/dist/temp/src/components/carousel-number-group/CarouselNumberGroup.d.ts +8 -0
- package/dist/temp/src/components/carousel-number-group/CarouselNumberGroup.js +10 -0
- package/dist/temp/src/components/carousel-number-group/index.d.ts +1 -0
- package/dist/temp/src/components/carousel-number-group/index.js +1 -0
- package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
- package/dist/temp/src/components/checkbox/Checkbox.js +7 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.js +23 -0
- package/dist/temp/src/components/checkbox/index.d.ts +2 -0
- package/dist/temp/src/components/checkbox/index.js +2 -0
- package/dist/{types/src/components/combobox → temp/src/components/combo-box}/ComboBox.d.ts +7 -6
- package/dist/temp/src/components/combo-box/ComboBox.js +165 -0
- package/dist/{types/src/components/combobox → temp/src/components/combo-box}/index.d.ts +1 -2
- package/dist/temp/src/components/combo-box/index.js +1 -0
- package/dist/temp/src/components/data-grid/DataGrid.d.ts +28 -0
- package/dist/temp/src/components/data-grid/DataGrid.js +88 -0
- package/dist/temp/src/components/data-grid/DataGrid.types.d.ts +35 -0
- package/dist/temp/src/components/data-grid/DataGrid.types.js +1 -0
- package/dist/temp/src/components/data-grid/index.d.ts +2 -0
- package/dist/temp/src/components/data-grid/index.js +2 -0
- package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
- package/dist/temp/src/components/date-picker/CustomInput.js +11 -0
- package/dist/temp/src/components/date-picker/DatePicker.d.ts +28 -0
- package/dist/temp/src/components/date-picker/DatePicker.js +499 -0
- package/dist/temp/src/components/date-picker/index.d.ts +2 -0
- package/dist/temp/src/components/date-picker/index.js +2 -0
- package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
- package/dist/temp/src/components/date-picker/utils.js +7 -0
- package/dist/temp/src/components/divider/Divider.d.ts +15 -0
- package/dist/temp/src/components/divider/Divider.js +9 -0
- package/dist/temp/src/components/divider/index.d.ts +1 -0
- package/dist/temp/src/components/divider/index.js +1 -0
- package/dist/temp/src/components/dot/Dot.d.ts +24 -0
- package/dist/temp/src/components/dot/Dot.js +8 -0
- package/dist/temp/src/components/dot/index.d.ts +1 -0
- package/dist/temp/src/components/dot/index.js +1 -0
- package/dist/temp/src/components/dropdown/Dropdown.d.ts +52 -0
- package/dist/temp/src/components/dropdown/Dropdown.js +74 -0
- package/dist/temp/src/components/dropdown/index.d.ts +1 -0
- package/dist/temp/src/components/dropdown/index.js +1 -0
- package/dist/temp/src/components/empty-state/EmptyState.d.ts +14 -0
- package/dist/temp/src/components/empty-state/EmptyState.js +7 -0
- package/dist/temp/src/components/empty-state/index.d.ts +1 -0
- package/dist/temp/src/components/empty-state/index.js +1 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts +15 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.js +13 -0
- package/dist/temp/src/components/featured-icon/index.d.ts +1 -0
- package/dist/temp/src/components/featured-icon/index.js +1 -0
- package/dist/temp/src/components/file-input/FileInput.d.ts +61 -0
- package/dist/temp/src/components/file-input/FileInput.js +87 -0
- package/dist/temp/src/components/file-input/index.d.ts +1 -0
- package/dist/temp/src/components/file-input/index.js +1 -0
- package/dist/temp/src/components/horizontal-tab/HorizontalTab.d.ts +12 -0
- package/dist/temp/src/components/horizontal-tab/HorizontalTab.js +24 -0
- package/dist/temp/src/components/horizontal-tab/index.d.ts +1 -0
- package/dist/temp/src/components/horizontal-tab/index.js +1 -0
- package/dist/temp/src/components/image-file-input/ImageFileInput.d.ts +70 -0
- package/dist/temp/src/components/image-file-input/ImageFileInput.js +96 -0
- package/dist/temp/src/components/image-file-input/components/ImagePreview.d.ts +5 -0
- package/dist/temp/src/components/image-file-input/components/ImagePreview.js +6 -0
- package/dist/temp/src/components/image-file-input/index.d.ts +1 -0
- package/dist/temp/src/components/image-file-input/index.js +1 -0
- package/dist/temp/src/components/index.d.ts +45 -0
- package/dist/temp/src/components/index.js +44 -0
- package/dist/{types/src/components/input → temp/src/components/input-base}/InputBase.d.ts +5 -4
- package/dist/temp/src/components/input-base/InputBase.js +96 -0
- package/dist/temp/src/components/input-base/index.d.ts +1 -0
- package/dist/temp/src/components/input-base/index.js +1 -0
- package/dist/temp/src/components/modal/Modal.d.ts +79 -0
- package/dist/temp/src/components/modal/Modal.js +75 -0
- package/dist/temp/src/components/modal/index.d.ts +1 -0
- package/dist/temp/src/components/modal/index.js +1 -0
- package/dist/temp/src/components/notification/FloatingNotification.d.ts +37 -0
- package/dist/temp/src/components/notification/FloatingNotification.js +56 -0
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
- package/dist/temp/src/components/notification/FullWidthNotification.js +56 -0
- package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
- package/dist/temp/src/components/notification/MessageNotification.js +34 -0
- package/dist/temp/src/components/notification/Notification.d.ts +72 -0
- package/dist/temp/src/components/notification/Notification.js +19 -0
- package/dist/temp/src/components/notification/index.d.ts +4 -0
- package/dist/temp/src/components/notification/index.js +4 -0
- package/dist/{types/src/components/input → temp/src/components/number-input}/NumberInput.d.ts +1 -2
- package/dist/temp/src/components/number-input/NumberInput.js +68 -0
- package/dist/temp/src/components/number-input/index.d.ts +1 -0
- package/dist/temp/src/components/number-input/index.js +1 -0
- package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
- package/dist/temp/src/components/pagination/NavButton.js +54 -0
- package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
- package/dist/temp/src/components/pagination/Pagination.js +66 -0
- package/dist/temp/src/components/pagination/index.d.ts +2 -0
- package/dist/temp/src/components/pagination/index.js +2 -0
- package/dist/{types/src/components/input → temp/src/components/password-input}/PasswordInput.d.ts +1 -2
- package/dist/temp/src/components/password-input/PasswordInput.js +28 -0
- package/dist/temp/src/components/password-input/index.d.ts +1 -0
- package/dist/temp/src/components/password-input/index.js +1 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.js +19 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.js +9 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +32 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +87 -0
- package/dist/temp/src/components/progress-bar/index.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/index.js +2 -0
- package/dist/temp/src/components/progress-bar/types.d.ts +15 -0
- package/dist/temp/src/components/progress-bar/types.js +1 -0
- package/dist/temp/src/components/progress-bar/utils.d.ts +13 -0
- package/dist/temp/src/components/progress-bar/utils.js +26 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts +7 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.js +9 -0
- package/dist/temp/src/components/progress-circle/index.d.ts +1 -0
- package/dist/temp/src/components/progress-circle/index.js +1 -0
- package/dist/temp/src/components/radio/Radio.d.ts +7 -0
- package/dist/temp/src/components/radio/Radio.js +7 -0
- package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
- package/dist/temp/src/components/radio/RadioInput.js +6 -0
- package/dist/temp/src/components/radio/index.d.ts +2 -0
- package/dist/temp/src/components/radio/index.js +2 -0
- package/dist/{types/src/components/date-picker → temp/src/components/range-date-picker}/RangeDatePicker.d.ts +6 -5
- package/dist/temp/src/components/range-date-picker/RangeDatePicker.js +104 -0
- package/dist/temp/src/components/range-date-picker/index.d.ts +1 -0
- package/dist/temp/src/components/range-date-picker/index.js +1 -0
- package/dist/{types/src/components/date-picker → temp/src/components/range-date-picker-with-buttons}/RangeDatePickerWithButtons.d.ts +5 -5
- package/dist/temp/src/components/range-date-picker-with-buttons/RangeDatePickerWithButtons.js +43 -0
- package/dist/temp/src/components/range-date-picker-with-buttons/index.d.ts +1 -0
- package/dist/temp/src/components/range-date-picker-with-buttons/index.js +1 -0
- package/dist/temp/src/components/select/Select.d.ts +16 -0
- package/dist/temp/src/components/select/Select.js +10 -0
- package/dist/temp/src/components/select/index.d.ts +1 -0
- package/dist/temp/src/components/select/index.js +1 -0
- package/dist/{types/src/components/selectbox → temp/src/components/select-box}/SelectBox.d.ts +5 -4
- package/dist/temp/src/components/select-box/SelectBox.js +130 -0
- package/dist/{types/src/components/selectbox → temp/src/components/select-box}/index.d.ts +0 -1
- package/dist/temp/src/components/select-box/index.js +1 -0
- package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +29 -0
- package/dist/temp/src/components/select-dropdown/SelectDropdown.js +26 -0
- package/dist/temp/src/components/select-dropdown/index.d.ts +1 -0
- package/dist/temp/src/components/select-dropdown/index.js +1 -0
- package/dist/temp/src/components/shared/hintText/HintText.d.ts +7 -0
- package/dist/temp/src/components/shared/hintText/HintText.js +5 -0
- package/dist/temp/src/components/shared/hintText/index.d.ts +1 -0
- package/dist/temp/src/components/shared/hintText/index.js +1 -0
- package/dist/temp/src/components/shared/index.d.ts +2 -0
- package/dist/temp/src/components/shared/index.js +2 -0
- package/dist/temp/src/components/shared/label/Label.d.ts +7 -0
- package/dist/temp/src/components/shared/label/Label.js +5 -0
- package/dist/temp/src/components/shared/label/index.d.ts +1 -0
- package/dist/temp/src/components/shared/label/index.js +1 -0
- package/dist/temp/src/components/slider/Slider.d.ts +14 -0
- package/dist/temp/src/components/slider/Slider.js +43 -0
- package/dist/temp/src/components/slider/index.d.ts +1 -0
- package/dist/temp/src/components/slider/index.js +1 -0
- package/dist/temp/src/components/spinner/Spinner.d.ts +9 -0
- package/dist/temp/src/components/spinner/Spinner.js +8 -0
- package/dist/temp/src/components/spinner/index.d.ts +1 -0
- package/dist/temp/src/components/spinner/index.js +1 -0
- package/dist/temp/src/components/switch/Switch.d.ts +22 -0
- package/dist/temp/src/components/switch/Switch.js +55 -0
- package/dist/temp/src/components/switch/index.d.ts +2 -0
- package/dist/temp/src/components/switch/index.js +1 -0
- package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
- package/dist/temp/src/components/tab/TabButton.js +14 -0
- package/dist/temp/src/components/tab/index.d.ts +1 -0
- package/dist/temp/src/components/tab/index.js +1 -0
- package/dist/temp/src/components/table/Table.d.ts +46 -0
- package/dist/temp/src/components/table/Table.js +115 -0
- package/dist/temp/src/components/table/index.d.ts +1 -0
- package/dist/temp/src/components/table/index.js +1 -0
- package/dist/temp/src/components/table/types.d.ts +45 -0
- package/dist/temp/src/components/table/types.js +1 -0
- package/dist/temp/src/components/tag/Tag.d.ts +17 -0
- package/dist/temp/src/components/tag/Tag.js +96 -0
- package/dist/temp/src/components/tag/index.d.ts +1 -0
- package/dist/temp/src/components/tag/index.js +1 -0
- package/dist/{types/src/components/input → temp/src/components/textarea}/Textarea.d.ts +2 -3
- package/dist/temp/src/components/textarea/Textarea.js +34 -0
- package/dist/temp/src/components/textarea/index.d.ts +1 -0
- package/dist/temp/src/components/textarea/index.js +1 -0
- package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
- package/dist/temp/src/components/toggle/Toggle.js +7 -0
- package/dist/temp/src/components/toggle/index.d.ts +1 -0
- package/dist/temp/src/components/toggle/index.js +1 -0
- package/dist/temp/src/components/tooltip/Tooltip.d.ts +15 -0
- package/dist/temp/src/components/tooltip/Tooltip.js +104 -0
- package/dist/temp/src/components/tooltip/index.d.ts +1 -0
- package/dist/temp/src/components/tooltip/index.js +1 -0
- package/dist/{types/src/components/tab → temp/src/components/vertical-tab}/VerticalTab.d.ts +2 -3
- package/dist/temp/src/components/vertical-tab/VerticalTab.js +20 -0
- package/dist/temp/src/components/vertical-tab/index.d.ts +1 -0
- package/dist/temp/src/components/vertical-tab/index.js +1 -0
- package/dist/temp/src/constant/breakpoint.d.ts +6 -0
- package/dist/temp/src/constant/breakpoint.js +6 -0
- package/dist/temp/src/constant/date-picker.d.ts +63 -0
- package/dist/temp/src/constant/date-picker.js +53 -0
- package/dist/temp/src/constant/index.d.ts +2 -0
- package/dist/temp/src/constant/index.js +2 -0
- package/dist/temp/src/constant/size.d.ts +1 -0
- package/dist/temp/src/constant/size.js +1 -0
- package/dist/temp/src/hooks/dropdown/index.d.ts +6 -0
- package/dist/temp/src/hooks/dropdown/index.js +6 -0
- package/dist/temp/src/hooks/dropdown/useDropdown.d.ts +29 -0
- package/dist/temp/src/hooks/dropdown/useDropdown.js +84 -0
- package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.d.ts +10 -0
- package/dist/temp/src/hooks/dropdown/useDropdownKeyboard.js +107 -0
- package/dist/temp/src/hooks/dropdown/useDropdownPosition.d.ts +9 -0
- package/dist/temp/src/hooks/dropdown/useDropdownPosition.js +18 -0
- package/dist/temp/src/hooks/dropdown/useOutsideClick.d.ts +5 -0
- package/dist/temp/src/hooks/dropdown/useOutsideClick.js +23 -0
- package/dist/temp/src/hooks/dropdown/useScrollLock.d.ts +4 -0
- package/dist/temp/src/hooks/dropdown/useScrollLock.js +72 -0
- package/dist/temp/src/hooks/dropdown/useWindowResize.d.ts +7 -0
- package/dist/temp/src/hooks/dropdown/useWindowResize.js +43 -0
- package/dist/temp/src/hooks/index.d.ts +4 -0
- package/dist/temp/src/hooks/index.js +6 -0
- package/dist/temp/src/hooks/useCallbackRef.d.ts +27 -0
- package/dist/temp/src/hooks/useCallbackRef.js +44 -0
- package/dist/temp/src/hooks/useMediaQuery.d.ts +5 -0
- package/dist/temp/src/hooks/useMediaQuery.js +19 -0
- package/dist/temp/src/hooks/useMergeRefs.d.ts +20 -0
- package/dist/temp/src/hooks/useMergeRefs.js +31 -0
- package/dist/temp/src/types/dropdown/dropdown.d.ts +39 -0
- package/dist/temp/src/types/dropdown/dropdown.js +1 -0
- package/dist/temp/src/types/dropdown/index.d.ts +2 -0
- package/dist/temp/src/types/dropdown/index.js +2 -0
- package/dist/temp/src/types/dropdown/option.d.ts +23 -0
- package/dist/temp/src/types/dropdown/option.js +1 -0
- package/dist/temp/src/types/index.d.ts +2 -0
- package/dist/temp/src/types/index.js +2 -0
- package/dist/temp/src/types/side-slot.d.ts +25 -0
- package/dist/temp/src/types/side-slot.js +1 -0
- package/dist/temp/src/utils/date-picker.d.ts +11 -0
- package/dist/temp/src/utils/date-picker.js +49 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.js +78 -0
- package/dist/temp/src/utils/dropdown/index.d.ts +2 -0
- package/dist/temp/src/utils/dropdown/index.js +2 -0
- package/dist/temp/src/utils/dropdown/multiSelect.d.ts +31 -0
- package/dist/temp/src/utils/dropdown/multiSelect.js +66 -0
- package/dist/temp/src/utils/index.d.ts +2 -0
- package/dist/temp/src/utils/index.js +4 -0
- package/dist/types/assets/scripts/baseBox.d.ts +55 -0
- package/dist/types/assets/scripts/comboBox.d.ts +7 -38
- package/dist/types/assets/scripts/datePicker.d.ts +0 -1
- package/dist/types/assets/scripts/featuredIcon.d.ts +0 -1
- package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -2
- package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/fileInput/const/types.d.ts +4 -48
- package/dist/types/assets/scripts/fileInput/fileInput.d.ts +13 -0
- package/dist/types/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
- package/dist/types/assets/scripts/fileInput/fileInputView.d.ts +42 -0
- package/dist/types/assets/scripts/fileInput/index.d.ts +1 -2
- package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -1
- package/dist/types/assets/scripts/index.d.ts +2 -1
- package/dist/types/assets/scripts/modal/Modal.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -1
- package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/modal/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/modal/index.d.ts +0 -1
- package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -1
- package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/Notification.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -1
- package/dist/types/assets/scripts/notification/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/notification/index.d.ts +0 -1
- package/dist/types/assets/scripts/notification/utils.d.ts +0 -1
- package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -1
- package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -1
- package/dist/types/assets/scripts/selectBox.d.ts +6 -33
- package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -1
- package/dist/types/assets/scripts/slider.d.ts +0 -1
- package/dist/types/assets/scripts/tab.d.ts +0 -1
- package/dist/types/assets/scripts/table/Table.d.ts +41 -0
- package/dist/types/assets/scripts/table/const/classNames.d.ts +27 -0
- package/dist/types/assets/scripts/table/const/index.d.ts +2 -0
- package/dist/types/assets/scripts/table/const/types.d.ts +23 -0
- package/dist/types/assets/scripts/table/index.d.ts +3 -0
- package/dist/types/assets/scripts/tag/Tag.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -1
- package/dist/types/assets/scripts/tag/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/tag/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/constants.d.ts +1 -2
- package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/index.d.ts +0 -1
- package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -1
- package/dist/types/assets/scripts/utils/debounce.d.ts +8 -0
- package/dist/types/assets/scripts/utils/unifiedBox/domRenderer.d.ts +107 -0
- package/dist/types/assets/scripts/utils/unifiedBox/dropdownModel.d.ts +142 -0
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxController.d.ts +156 -0
- package/dist/types/assets/scripts/utils/unifiedBox/unifiedBoxManager.d.ts +95 -0
- package/dist/types/constant/color.d.ts +0 -1
- package/dist/types/constant/size.d.ts +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/src/components/badge/Badge.d.ts +10 -9
- package/dist/types/src/components/badge/index.d.ts +0 -2
- package/dist/types/src/components/badge/utils.d.ts +4 -3
- package/dist/types/src/components/badge-group/BadgeGroup.d.ts +18 -0
- package/dist/types/src/components/badge-group/index.d.ts +1 -0
- package/dist/types/src/components/bread-crumb/BreadCrumb.d.ts +11 -0
- package/dist/types/src/components/bread-crumb/index.d.ts +1 -0
- package/dist/types/src/components/button/Button.d.ts +2 -1
- package/dist/types/src/components/button/ButtonCloseX.d.ts +4 -3
- package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
- package/dist/types/src/components/button/index.d.ts +0 -2
- package/dist/types/src/components/button-group/ButtonGroup.d.ts +312 -0
- package/dist/types/src/components/button-group/index.d.ts +1 -0
- package/dist/types/src/components/carousel-arrow/CarouselArrow.d.ts +8 -0
- package/dist/types/src/components/carousel-arrow/index.d.ts +1 -0
- package/dist/types/src/components/carousel-number-group/CarouselNumberGroup.d.ts +8 -0
- package/dist/types/src/components/carousel-number-group/index.d.ts +1 -0
- package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/types/src/components/checkbox/CheckboxInput.d.ts +2 -3
- package/dist/types/src/components/checkbox/index.d.ts +0 -1
- package/dist/types/src/components/combo-box/ComboBox.d.ts +28 -0
- package/dist/types/src/components/combo-box/index.d.ts +2 -0
- package/dist/types/src/components/data-grid/DataGrid.d.ts +28 -0
- package/dist/types/src/components/data-grid/DataGrid.types.d.ts +35 -0
- package/dist/types/src/components/data-grid/index.d.ts +2 -0
- package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
- package/dist/types/src/components/date-picker/DatePicker.d.ts +11 -6
- package/dist/types/src/components/date-picker/index.d.ts +0 -3
- package/dist/types/src/components/date-picker/utils.d.ts +0 -1
- package/dist/types/src/components/divider/Divider.d.ts +1 -2
- package/dist/types/src/components/divider/index.d.ts +0 -1
- package/dist/types/src/components/dot/Dot.d.ts +9 -8
- package/dist/types/src/components/dot/index.d.ts +0 -1
- package/dist/types/src/components/dropdown/Dropdown.d.ts +0 -1
- package/dist/types/src/components/dropdown/index.d.ts +0 -1
- package/dist/types/src/components/empty-state/EmptyState.d.ts +5 -5
- package/dist/types/src/components/empty-state/index.d.ts +0 -1
- package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +8 -7
- package/dist/types/src/components/featured-icon/index.d.ts +0 -1
- package/dist/types/src/components/file-input/FileInput.d.ts +1 -2
- package/dist/types/src/components/file-input/index.d.ts +0 -1
- package/dist/types/src/components/horizontal-tab/HorizontalTab.d.ts +12 -0
- package/dist/types/src/components/horizontal-tab/index.d.ts +1 -0
- package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +1 -2
- package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +0 -1
- package/dist/types/src/components/image-file-input/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts +18 -7
- package/dist/types/src/components/input-base/InputBase.d.ts +55 -0
- package/dist/types/src/components/input-base/index.d.ts +1 -0
- package/dist/types/src/components/modal/Modal.d.ts +13 -12
- package/dist/types/src/components/modal/index.d.ts +0 -1
- package/dist/types/src/components/notification/FloatingNotification.d.ts +6 -5
- package/dist/types/src/components/notification/FullWidthNotification.d.ts +6 -5
- package/dist/types/src/components/notification/MessageNotification.d.ts +6 -5
- package/dist/types/src/components/notification/Notification.d.ts +11 -10
- package/dist/types/src/components/notification/index.d.ts +1 -2
- package/dist/types/src/components/number-input/NumberInput.d.ts +9 -0
- package/dist/types/src/components/number-input/index.d.ts +1 -0
- package/dist/types/src/components/pagination/NavButton.d.ts +0 -1
- package/dist/types/src/components/pagination/Pagination.d.ts +0 -1
- package/dist/types/src/components/pagination/index.d.ts +0 -1
- package/dist/types/src/components/password-input/PasswordInput.d.ts +2 -0
- package/dist/types/src/components/password-input/index.d.ts +1 -0
- package/dist/types/src/components/progress-bar/ProgressBar.d.ts +0 -1
- package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +0 -1
- package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +3 -4
- package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +1 -2
- package/dist/types/src/components/progress-bar/index.d.ts +0 -1
- package/dist/types/src/components/progress-bar/types.d.ts +0 -1
- package/dist/types/src/components/progress-bar/utils.d.ts +4 -4
- package/dist/types/src/components/progress-circle/ProgressCircle.d.ts +0 -1
- package/dist/types/src/components/progress-circle/index.d.ts +0 -1
- package/dist/types/src/components/radio/Radio.d.ts +2 -3
- package/dist/types/src/components/radio/RadioInput.d.ts +2 -3
- package/dist/types/src/components/radio/index.d.ts +0 -1
- package/dist/types/src/components/range-date-picker/RangeDatePicker.d.ts +26 -0
- package/dist/types/src/components/range-date-picker/index.d.ts +1 -0
- package/dist/types/src/components/range-date-picker-with-buttons/RangeDatePickerWithButtons.d.ts +71 -0
- package/dist/types/src/components/range-date-picker-with-buttons/index.d.ts +1 -0
- package/dist/types/src/components/select/Select.d.ts +4 -5
- package/dist/types/src/components/select/index.d.ts +0 -1
- package/dist/types/src/components/select-box/SelectBox.d.ts +27 -0
- package/dist/types/src/components/select-box/index.d.ts +1 -0
- package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +6 -6
- package/dist/types/src/components/select-dropdown/index.d.ts +1 -2
- package/dist/types/src/components/shared/hintText/HintText.d.ts +0 -1
- package/dist/types/src/components/shared/hintText/index.d.ts +0 -1
- package/dist/types/src/components/shared/index.d.ts +0 -1
- package/dist/types/src/components/shared/label/Label.d.ts +0 -1
- package/dist/types/src/components/shared/label/index.d.ts +0 -1
- package/dist/types/src/components/slider/Slider.d.ts +1 -2
- package/dist/types/src/components/slider/index.d.ts +0 -1
- package/dist/types/src/components/spinner/Spinner.d.ts +1 -2
- package/dist/types/src/components/spinner/index.d.ts +0 -2
- package/dist/types/src/components/switch/Switch.d.ts +7 -7
- package/dist/types/src/components/switch/index.d.ts +1 -2
- package/dist/types/src/components/tab/TabButton.d.ts +8 -8
- package/dist/types/src/components/tab/index.d.ts +0 -3
- package/dist/types/src/components/table/Table.d.ts +46 -0
- package/dist/types/src/components/table/index.d.ts +1 -0
- package/dist/types/src/components/table/types.d.ts +45 -0
- package/dist/types/src/components/tag/Tag.d.ts +4 -4
- package/dist/types/src/components/tag/index.d.ts +0 -1
- package/dist/types/src/components/textarea/Textarea.d.ts +14 -0
- package/dist/types/src/components/textarea/index.d.ts +1 -0
- package/dist/types/src/components/toggle/Toggle.d.ts +1 -2
- package/dist/types/src/components/toggle/index.d.ts +0 -1
- package/dist/types/src/components/tooltip/Tooltip.d.ts +0 -1
- package/dist/types/src/components/tooltip/index.d.ts +0 -1
- package/dist/types/src/components/vertical-tab/VerticalTab.d.ts +9 -0
- package/dist/types/src/components/vertical-tab/index.d.ts +1 -0
- package/dist/types/src/constant/breakpoint.d.ts +0 -1
- package/dist/types/src/constant/date-picker.d.ts +0 -1
- package/dist/types/src/constant/index.d.ts +1 -2
- package/dist/types/src/constant/size.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/index.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/useDropdown.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +2 -3
- package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +1 -2
- package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +0 -1
- package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +0 -1
- package/dist/types/src/hooks/index.d.ts +1 -2
- package/dist/types/src/hooks/useCallbackRef.d.ts +0 -1
- package/dist/types/src/hooks/useMediaQuery.d.ts +0 -1
- package/dist/types/src/hooks/useMergeRefs.d.ts +1 -2
- package/dist/types/src/types/dropdown/dropdown.d.ts +1 -2
- package/dist/types/src/types/dropdown/index.d.ts +0 -1
- package/dist/types/src/types/dropdown/option.d.ts +0 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/side-slot.d.ts +0 -1
- package/dist/types/src/utils/date-picker.d.ts +1 -2
- package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +2 -3
- package/dist/types/src/utils/dropdown/index.d.ts +0 -1
- package/dist/types/src/utils/dropdown/multiSelect.d.ts +1 -2
- package/dist/types/src/utils/index.d.ts +0 -1
- package/dist/ui-admin/assets/styles/style.css +776 -228
- package/package.json +50 -53
- package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
- package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
- package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
- package/dist/cjs/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -368
- package/dist/cjs/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -711
- package/dist/cjs/src/components/badge/BadgeGroup.js +0 -62
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +0 -66
- package/dist/cjs/src/components/button/ButtonGroup.js +0 -117
- package/dist/cjs/src/components/carousel/CarouselArrow.js +0 -41
- package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +0 -46
- package/dist/cjs/src/components/combobox/ComboBox.js +0 -338
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +0 -145
- package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +0 -99
- package/dist/cjs/src/components/input/InputBase.js +0 -229
- package/dist/cjs/src/components/input/NumberInput.js +0 -132
- package/dist/cjs/src/components/input/PasswordInput.js +0 -72
- package/dist/cjs/src/components/input/Textarea.js +0 -107
- package/dist/cjs/src/components/input/index.js +0 -49
- package/dist/cjs/src/components/selectbox/SelectBox.js +0 -306
- package/dist/cjs/src/components/tab/HorizontalTab.js +0 -66
- package/dist/cjs/src/components/tab/VerticalTab.js +0 -60
- package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
- package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
- package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
- package/dist/esm/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -363
- package/dist/esm/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -706
- package/dist/esm/src/components/badge/BadgeGroup.js +0 -54
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +0 -58
- package/dist/esm/src/components/button/ButtonGroup.js +0 -107
- package/dist/esm/src/components/carousel/CarouselArrow.js +0 -33
- package/dist/esm/src/components/carousel/CarouselNumberGroup.js +0 -38
- package/dist/esm/src/components/carousel/index.js +0 -2
- package/dist/esm/src/components/combobox/ComboBox.js +0 -331
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +0 -138
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +0 -92
- package/dist/esm/src/components/input/InputBase.js +0 -222
- package/dist/esm/src/components/input/NumberInput.js +0 -126
- package/dist/esm/src/components/input/PasswordInput.js +0 -65
- package/dist/esm/src/components/input/Textarea.js +0 -100
- package/dist/esm/src/components/input/index.js +0 -4
- package/dist/esm/src/components/selectbox/SelectBox.js +0 -299
- package/dist/esm/src/components/tab/HorizontalTab.js +0 -58
- package/dist/esm/src/components/tab/VerticalTab.js +0 -52
- package/dist/types/src/components/badge/BadgeGroup.d.ts +0 -17
- package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +0 -10
- package/dist/types/src/components/breadcrumb/index.d.ts +0 -2
- package/dist/types/src/components/carousel/CarouselArrow.d.ts +0 -10
- package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +0 -10
- package/dist/types/src/components/carousel/index.d.ts +0 -3
- package/dist/types/src/components/input/index.d.ts +0 -5
- package/dist/types/src/components/tab/HorizontalTab.d.ts +0 -11
- /package/dist/cjs/src/components/{breadcrumb → bread-crumb}/index.js +0 -0
- /package/dist/cjs/src/components/{combobox → combo-box}/index.js +0 -0
- /package/dist/cjs/src/components/{selectbox → select-box}/index.js +0 -0
- /package/dist/esm/src/components/{breadcrumb → bread-crumb}/index.js +0 -0
- /package/dist/esm/src/components/{combobox → combo-box}/index.js +0 -0
- /package/dist/esm/src/components/{selectbox → select-box}/index.js +0 -0
|
@@ -32,6 +32,7 @@ interface InputBaseCommonProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
32
32
|
hintText?: string;
|
|
33
33
|
size?: Extract<Size, 'xs' | 'sm'>;
|
|
34
34
|
disabled?: boolean;
|
|
35
|
+
fullWidth?: boolean;
|
|
35
36
|
validation?: boolean;
|
|
36
37
|
destructive?: boolean;
|
|
37
38
|
leadingElement?: InputLeadingSlotType;
|
|
@@ -48,7 +49,7 @@ interface ClearableInputBaseProps extends InputBaseCommonProps {
|
|
|
48
49
|
clearText: boolean;
|
|
49
50
|
onClearText: () => void;
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export {};
|
|
54
|
-
|
|
52
|
+
type InputBaseProps = NoneClearableInputBaseProps | ClearableInputBaseProps;
|
|
53
|
+
declare const InputBase: React.ForwardRefExoticComponent<InputBaseProps & React.RefAttributes<HTMLInputElement>>;
|
|
54
|
+
export type { InputBaseProps };
|
|
55
|
+
export { InputBase };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckCircle, HelpCircle, InfoCircle, X } from '@ncds/ui-admin-icon';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { COLOR } from '../../../constant/color';
|
|
6
|
+
import { HintText } from '../shared/hintText/HintText';
|
|
7
|
+
import { Label } from '../shared/label/Label';
|
|
8
|
+
const validationSvgSize = {
|
|
9
|
+
xs: 14,
|
|
10
|
+
sm: 16,
|
|
11
|
+
};
|
|
12
|
+
const generalSvgSize = {
|
|
13
|
+
xs: 14,
|
|
14
|
+
sm: 20,
|
|
15
|
+
};
|
|
16
|
+
const InputBase = forwardRef(({ size = 'xs', required, label, hintText, disabled, fullWidth = false, validation, destructive, leadingElement, trailingElement, showHelpIcon, maxLength, showTextCount, className, ...props }, ref) => {
|
|
17
|
+
const inputRef = useRef(null);
|
|
18
|
+
const [textCount, setTextCount] = useState(0);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (inputRef.current && showTextCount) {
|
|
21
|
+
setTextCount(inputRef.current.value.length);
|
|
22
|
+
const handleInput = () => {
|
|
23
|
+
setTextCount(inputRef.current?.value.length ?? 0);
|
|
24
|
+
};
|
|
25
|
+
inputRef.current.addEventListener('input', handleInput);
|
|
26
|
+
return () => {
|
|
27
|
+
inputRef.current?.removeEventListener('input', handleInput);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}, [showTextCount]);
|
|
31
|
+
const renderOutsideSlot = (slot) => {
|
|
32
|
+
if (slot.type === 'custom' && slot.placement !== 'outside') {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
switch (slot.type) {
|
|
36
|
+
case 'button':
|
|
37
|
+
return (_jsx("button", { type: slot.isSubmit ? 'submit' : 'button', className: classNames('ncua-input__button', `ncua-input__button--${size}`), onClick: slot.onClick, children: slot.label }));
|
|
38
|
+
case 'text':
|
|
39
|
+
return (_jsx("span", { className: classNames('ncua-input__leading-text', `ncua-input__leading-text--${size}`), children: slot.text }));
|
|
40
|
+
case 'custom':
|
|
41
|
+
return slot.children;
|
|
42
|
+
default:
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const renderInsideSlot = (slot, position) => {
|
|
47
|
+
switch (slot.type) {
|
|
48
|
+
case 'icon': {
|
|
49
|
+
const SlotIcon = slot.icon;
|
|
50
|
+
return (_jsx("div", { className: "ncua-input__icon-wrap", children: _jsx(SlotIcon, { className: classNames(`ncua-input__${position}-icon`, slot.className), color: slot.color ? COLOR[slot.color] : undefined, width: slot.size ?? generalSvgSize[size], height: slot.size ?? generalSvgSize[size] }) }));
|
|
51
|
+
}
|
|
52
|
+
case 'custom':
|
|
53
|
+
if (slot.placement !== 'inside') {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return slot.children;
|
|
57
|
+
default:
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const renderClearButton = () => {
|
|
62
|
+
if (!props.clearText)
|
|
63
|
+
return null;
|
|
64
|
+
return (_jsx("button", { type: "button", className: classNames('ncua-input__icon-wrap', 'ncua-input__right-icon', 'ncua-input__clear'), onClick: props.onClearText, children: _jsx(X, { className: "ncua-input__clear-icon", width: validationSvgSize[size], height: validationSvgSize[size] }) }));
|
|
65
|
+
};
|
|
66
|
+
const renderStatusIcon = () => {
|
|
67
|
+
if (destructive) {
|
|
68
|
+
return (_jsx("div", { className: "ncua-input__icon-wrap ncua-input__right-icon", children: _jsx(InfoCircle, { className: "ncua-input__destructive-icon", width: validationSvgSize[size], height: validationSvgSize[size] }) }));
|
|
69
|
+
}
|
|
70
|
+
if (validation) {
|
|
71
|
+
return (_jsx("div", { className: "ncua-input__icon-wrap ncua-input__right-icon", children: _jsx(CheckCircle, { className: "ncua-input__validation-icon", width: validationSvgSize[size], height: validationSvgSize[size] }) }));
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
};
|
|
75
|
+
const renderLabel = () => {
|
|
76
|
+
if (!label)
|
|
77
|
+
return null;
|
|
78
|
+
return (_jsxs("div", { className: classNames('ncua-input__label', `ncua-input__label--${size}`), children: [_jsx(Label, { isRequired: required, htmlFor: props.id, children: label }), showHelpIcon && _jsx(HelpCircle, { className: "ncua-input__help-icon" })] }));
|
|
79
|
+
};
|
|
80
|
+
return (_jsxs("div", { className: classNames('ncua-input', `ncua-input--${size}`, {
|
|
81
|
+
destructive: destructive,
|
|
82
|
+
'is-disabled': disabled,
|
|
83
|
+
'full-width': fullWidth,
|
|
84
|
+
'ncua-input__trailing-button': trailingElement?.type === 'button',
|
|
85
|
+
'ncua-input__leading-text-wrap': leadingElement?.type === 'text',
|
|
86
|
+
}, className), children: [renderLabel(), _jsxs("div", { className: "ncua-input__content-wrap", children: [_jsxs("div", { className: "ncua-input__content", children: [leadingElement && renderOutsideSlot(leadingElement), _jsxs("div", { className: classNames('ncua-input__field', `ncua-input__field--${size}`), children: [leadingElement && renderInsideSlot(leadingElement, 'left'), _jsx("input", { ref: (node) => {
|
|
87
|
+
if (typeof ref === 'function') {
|
|
88
|
+
ref(node);
|
|
89
|
+
}
|
|
90
|
+
else if (ref) {
|
|
91
|
+
ref.current = node;
|
|
92
|
+
}
|
|
93
|
+
inputRef.current = node;
|
|
94
|
+
}, type: "text", disabled: disabled, maxLength: maxLength, ...props }), renderClearButton(), renderStatusIcon(), trailingElement && renderInsideSlot(trailingElement, 'right')] }), trailingElement && renderOutsideSlot(trailingElement)] }), showTextCount && maxLength && (_jsxs("div", { className: "ncua-input__field-text-count", children: [_jsx("output", { className: "ncua-input__field-text-count-current", children: textCount }), _jsxs("span", { children: ["/", maxLength] })] }))] }), hintText && (_jsx(HintText, { className: "ncua-input__hint-text", destructive: destructive, children: hintText }))] }));
|
|
95
|
+
});
|
|
96
|
+
export { InputBase };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputBase';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputBase';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SlotIconComponent } from '../../types/side-slot';
|
|
3
|
+
import { type FeaturedIconColor, type FeaturedIconTheme } from '../featured-icon';
|
|
4
|
+
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
|
+
type ModalHeaderAlign = 'left' | 'center' | 'horizontal';
|
|
6
|
+
type ModalActionsAlign = 'left' | 'center' | 'right' | 'stretch';
|
|
7
|
+
type ModalActionsLayout = 'vertical' | 'horizontal' | 'checkbox';
|
|
8
|
+
type ModalProps = {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
size?: ModalSize;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
closeOnBackdropClick?: boolean;
|
|
14
|
+
closeOnEsc?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
};
|
|
18
|
+
declare const Modal: {
|
|
19
|
+
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
|
|
20
|
+
Header({ children, onClose, featuredIcon, title, subtitle, align, showDivider, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Content({ children, className }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Modal.Actions - The actions area of the modal
|
|
24
|
+
*
|
|
25
|
+
* Examples:
|
|
26
|
+
*
|
|
27
|
+
* 1. Vertical layout (buttons stacked):
|
|
28
|
+
* <Modal.Actions layout="vertical" align="stretch">
|
|
29
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
30
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
31
|
+
* </Modal.Actions>
|
|
32
|
+
*
|
|
33
|
+
* 2. Horizontal layout (buttons side by side):
|
|
34
|
+
* <Modal.Actions layout="horizontal" align="stretch">
|
|
35
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
36
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
37
|
+
* </Modal.Actions>
|
|
38
|
+
*
|
|
39
|
+
* 3. Checkbox layout (checkbox on left, buttons on right):
|
|
40
|
+
* <Modal.Actions layout="checkbox" align="stretch" checkboxContent={
|
|
41
|
+
* <>
|
|
42
|
+
* <Checkbox text="Never show again" />
|
|
43
|
+
* <a href="#">Settings</a>
|
|
44
|
+
* </>
|
|
45
|
+
* }>
|
|
46
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
47
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
48
|
+
* </Modal.Actions>
|
|
49
|
+
*/
|
|
50
|
+
Actions({ children, layout, showDivider, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
type ModalHeaderProps = {
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
onClose: () => void;
|
|
55
|
+
featuredIcon?: {
|
|
56
|
+
icon: SlotIconComponent;
|
|
57
|
+
color: FeaturedIconColor;
|
|
58
|
+
theme: FeaturedIconTheme;
|
|
59
|
+
};
|
|
60
|
+
align?: ModalHeaderAlign;
|
|
61
|
+
title?: string | ReactNode;
|
|
62
|
+
subtitle?: string | ReactNode;
|
|
63
|
+
showDivider?: boolean;
|
|
64
|
+
hideCloseButton?: boolean;
|
|
65
|
+
};
|
|
66
|
+
type ModalContentProps = {
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
type ModalActionsProps = {
|
|
71
|
+
className?: string;
|
|
72
|
+
children: ReactNode;
|
|
73
|
+
layout?: ModalActionsLayout;
|
|
74
|
+
showDivider?: boolean;
|
|
75
|
+
align?: ModalActionsAlign;
|
|
76
|
+
checkboxContent?: ReactNode;
|
|
77
|
+
};
|
|
78
|
+
export type { ModalSize, ModalHeaderAlign, ModalActionsAlign, ModalActionsLayout, ModalProps, ModalHeaderProps, ModalContentProps, ModalActionsProps, };
|
|
79
|
+
export { Modal };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import ReactDOM from 'react-dom';
|
|
5
|
+
import { ButtonCloseX } from '../button/ButtonCloseX';
|
|
6
|
+
import { FeaturedIcon } from '../featured-icon';
|
|
7
|
+
const Modal = ({ isOpen, onClose, children, size = 'md', closeOnBackdropClick = false, closeOnEsc = true, className, zIndex, ...restProps }) => {
|
|
8
|
+
const modalRef = useRef(null);
|
|
9
|
+
const handleBackdropClick = (e) => {
|
|
10
|
+
if (closeOnBackdropClick && e.target === e.currentTarget) {
|
|
11
|
+
onClose();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const handleKeyDown = (e) => {
|
|
16
|
+
if (isOpen && closeOnEsc && e.key === 'Escape') {
|
|
17
|
+
onClose();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
if (isOpen) {
|
|
21
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
22
|
+
document.body.style.overflow = 'hidden';
|
|
23
|
+
}
|
|
24
|
+
return () => {
|
|
25
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
26
|
+
document.body.style.overflow = '';
|
|
27
|
+
};
|
|
28
|
+
}, [isOpen, closeOnEsc, onClose]);
|
|
29
|
+
if (!isOpen)
|
|
30
|
+
return null;
|
|
31
|
+
const modalContent = (_jsx("div", { className: classnames('ncua-modal-backdrop', className), onClick: handleBackdropClick, ref: modalRef, style: zIndex ? { zIndex } : undefined, ...restProps, children: _jsx("div", { className: classnames('ncua-modal', `ncua-modal--${size}`), children: children }) }));
|
|
32
|
+
return ReactDOM.createPortal(modalContent, document.body);
|
|
33
|
+
};
|
|
34
|
+
Modal.Header = ({ children, onClose, featuredIcon, title, subtitle, align = 'left', showDivider = false, hideCloseButton = false, }) => {
|
|
35
|
+
return (_jsxs(_Fragment, { children: [_jsxs("header", { className: classnames('ncua-modal__header', `ncua-modal__header--${align}`, {
|
|
36
|
+
'ncua-modal__header--close-button': !hideCloseButton,
|
|
37
|
+
}), children: [featuredIcon && (_jsx(FeaturedIcon, { icon: featuredIcon.icon, color: featuredIcon.color, theme: featuredIcon.theme, size: "sm" })), _jsxs("div", { className: "ncua-modal__title", children: [_jsx("div", { className: "ncua-modal__title-text", children: title }), subtitle && _jsx("div", { className: "ncua-modal__title-subtitle", children: subtitle })] }), children, !hideCloseButton && (_jsx(ButtonCloseX, { className: "ncua-modal__close-button", size: "sm", theme: "light", onClick: onClose }))] }), showDivider && _jsx("div", { className: "ncua-modal__header-divider" })] }));
|
|
38
|
+
};
|
|
39
|
+
Modal.Content = ({ children, className }) => {
|
|
40
|
+
return _jsx("div", { className: classnames('ncua-modal__content', className), children: children });
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Modal.Actions - The actions area of the modal
|
|
44
|
+
*
|
|
45
|
+
* Examples:
|
|
46
|
+
*
|
|
47
|
+
* 1. Vertical layout (buttons stacked):
|
|
48
|
+
* <Modal.Actions layout="vertical" align="stretch">
|
|
49
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
50
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
51
|
+
* </Modal.Actions>
|
|
52
|
+
*
|
|
53
|
+
* 2. Horizontal layout (buttons side by side):
|
|
54
|
+
* <Modal.Actions layout="horizontal" align="stretch">
|
|
55
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
56
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
57
|
+
* </Modal.Actions>
|
|
58
|
+
*
|
|
59
|
+
* 3. Checkbox layout (checkbox on left, buttons on right):
|
|
60
|
+
* <Modal.Actions layout="checkbox" align="stretch" checkboxContent={
|
|
61
|
+
* <>
|
|
62
|
+
* <Checkbox text="Never show again" />
|
|
63
|
+
* <a href="#">Settings</a>
|
|
64
|
+
* </>
|
|
65
|
+
* }>
|
|
66
|
+
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
67
|
+
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
68
|
+
* </Modal.Actions>
|
|
69
|
+
*/
|
|
70
|
+
Modal.Actions = ({ children, layout = 'vertical', showDivider = false, align = 'stretch', checkboxContent, className, }) => {
|
|
71
|
+
return (_jsxs(_Fragment, { children: [showDivider && _jsx("div", { className: "ncua-modal__actions-divider" }), _jsxs("div", { className: classnames('ncua-modal__actions-wrapper', className, {
|
|
72
|
+
'ncua-modal__actions-wrapper--checkbox': layout === 'checkbox',
|
|
73
|
+
}), children: [layout === 'checkbox' && (_jsx("div", { className: "ncua-modal__actions-checkbox", children: _jsx("div", { className: "ncua-modal__actions-checkbox-content", children: checkboxContent }) })), _jsx("div", { className: classnames('ncua-modal__actions', `ncua-modal__actions--${layout}`, `ncua-modal__actions--${align}`), children: children })] })] }));
|
|
74
|
+
};
|
|
75
|
+
export { Modal };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import type { NotificationAction, NotificationColor } from './Notification';
|
|
3
|
+
interface FloatingNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
4
|
+
/**
|
|
5
|
+
* 알림 제목 텍스트
|
|
6
|
+
*/
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* 알림 본문 텍스트 (선택사항)
|
|
10
|
+
*/
|
|
11
|
+
supportingText?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* 알림 색상 스타일
|
|
14
|
+
* @default 'neutral'
|
|
15
|
+
*/
|
|
16
|
+
color?: NotificationColor;
|
|
17
|
+
/**
|
|
18
|
+
* 닫기 버튼 클릭 이벤트 핸들러
|
|
19
|
+
*/
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* 추가 CSS 클래스
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 버튼 영역 (선택사항)
|
|
27
|
+
*/
|
|
28
|
+
actions?: NotificationAction[];
|
|
29
|
+
/**
|
|
30
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
autoClose?: number;
|
|
34
|
+
}
|
|
35
|
+
declare const FloatingNotification: import("react").ForwardRefExoticComponent<FloatingNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export type { FloatingNotificationProps };
|
|
37
|
+
export { FloatingNotification };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertCircle, AlertTriangle, CheckCircle, Pin02 } from '@ncds/ui-admin-icon';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { MEDIA_QUERY } from '../../constant/breakpoint';
|
|
6
|
+
import { useMediaQuery } from '../../hooks/useMediaQuery';
|
|
7
|
+
import { Button } from '../button';
|
|
8
|
+
import { ButtonCloseX } from '../button/ButtonCloseX';
|
|
9
|
+
import { FeaturedIcon } from '../featured-icon/FeaturedIcon';
|
|
10
|
+
const iconMap = {
|
|
11
|
+
neutral: Pin02,
|
|
12
|
+
error: AlertTriangle,
|
|
13
|
+
warning: AlertCircle,
|
|
14
|
+
success: CheckCircle,
|
|
15
|
+
// info는 floating에서는 지원하지 않음
|
|
16
|
+
};
|
|
17
|
+
const FloatingNotification = forwardRef(({ title, supportingText, color = 'neutral', onClose, className, actions, autoClose = 0, ...rest }, ref) => {
|
|
18
|
+
const [shouldRemove, setShouldRemove] = useState(false);
|
|
19
|
+
const iconColor = color;
|
|
20
|
+
const featuredIconProps = {
|
|
21
|
+
icon: iconMap[color] || Pin02,
|
|
22
|
+
size: 'sm',
|
|
23
|
+
color: iconColor,
|
|
24
|
+
theme: 'dark-circle',
|
|
25
|
+
};
|
|
26
|
+
const isMobile = useMediaQuery(MEDIA_QUERY.mobile, {
|
|
27
|
+
onMatched: onClose,
|
|
28
|
+
});
|
|
29
|
+
// autoClose 타이머 관리
|
|
30
|
+
const timerRef = useRef(null);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
// autoClose가 0보다 크면 무조건 타이머 설정
|
|
33
|
+
if (autoClose > 0) {
|
|
34
|
+
timerRef.current = setTimeout(() => {
|
|
35
|
+
if (onClose) {
|
|
36
|
+
onClose();
|
|
37
|
+
}
|
|
38
|
+
// DOM에서 바로 제거
|
|
39
|
+
setShouldRemove(true);
|
|
40
|
+
}, autoClose);
|
|
41
|
+
}
|
|
42
|
+
// cleanup 함수: 컴포넌트 언마운트 시 타이머 정리
|
|
43
|
+
return () => {
|
|
44
|
+
if (timerRef.current) {
|
|
45
|
+
clearTimeout(timerRef.current);
|
|
46
|
+
timerRef.current = null;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, [autoClose, onClose]);
|
|
50
|
+
// DOM에서 완전히 제거
|
|
51
|
+
if (shouldRemove) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return (_jsxs("div", { ref: ref, className: classNames('ncua-floating-notification', `ncua-floating-notification--${color}`, className), role: "alert", ...rest, children: [_jsx("div", { className: "ncua-floating-notification__content", children: _jsxs("div", { className: "ncua-floating-notification__container", children: [iconMap[color] && _jsx(FeaturedIcon, { ...featuredIconProps, size: isMobile ? 'md' : 'sm' }), _jsxs("div", { className: "ncua-floating-notification__text-container", children: [_jsx("div", { className: "ncua-floating-notification__title-wrapper", children: _jsx("span", { className: "ncua-floating-notification__title", children: title }) }), supportingText && _jsx("span", { className: "ncua-floating-notification__supporting-text", children: supportingText }), actions && (_jsx("div", { className: "ncua-floating-notification__actions", children: actions.map((action) => (_jsx(Button, { size: "xs", hierarchy: action.hierarchy || 'text', label: action.label, onClick: action?.onClick }, `${action.label}-${action.hierarchy}`))) }))] })] }) }), onClose && (_jsx(ButtonCloseX, { theme: "light", className: "ncua-floating-notification__close-button", size: isMobile ? 'sm' : 'xs', onClick: onClose }))] }));
|
|
55
|
+
});
|
|
56
|
+
export { FloatingNotification };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import type { NotificationAction, NotificationColor } from './Notification';
|
|
3
|
+
interface FullWidthNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
4
|
+
/**
|
|
5
|
+
* 알림 제목 텍스트
|
|
6
|
+
*/
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* 알림 본문 텍스트 (선택사항)
|
|
10
|
+
*/
|
|
11
|
+
supportingText?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* 알림 색상 스타일 (neutral, error, warning, success, info)
|
|
14
|
+
* @default 'neutral'
|
|
15
|
+
*/
|
|
16
|
+
color?: NotificationColor;
|
|
17
|
+
/**
|
|
18
|
+
* 닫기 버튼 클릭 이벤트 핸들러
|
|
19
|
+
*/
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* 추가 CSS 클래스
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 버튼 영역 (선택사항)
|
|
27
|
+
*/
|
|
28
|
+
actions?: NotificationAction[];
|
|
29
|
+
/**
|
|
30
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
31
|
+
* full-width 타입에서는 일반적으로 사용하지 않음 (중요한 공지사항이므로)
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
autoClose?: number;
|
|
35
|
+
/**
|
|
36
|
+
* info 링크 영역 (선택사항)
|
|
37
|
+
*/
|
|
38
|
+
supportTextLink?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 다시보지 않기 이벤트 핸들러 (선택사항)
|
|
41
|
+
*/
|
|
42
|
+
onHidePermanently?: () => void;
|
|
43
|
+
}
|
|
44
|
+
declare const FullWidthNotification: import("react").ForwardRefExoticComponent<FullWidthNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
|
+
export type { FullWidthNotificationProps };
|
|
46
|
+
export { FullWidthNotification };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertTriangle, CheckCircle, InfoCircle, MessageChatSquare, XClose } from '@ncds/ui-admin-icon';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { COLOR } from '../../../constant/color';
|
|
6
|
+
const iconMap = {
|
|
7
|
+
neutral: MessageChatSquare,
|
|
8
|
+
error: AlertTriangle,
|
|
9
|
+
warning: AlertTriangle,
|
|
10
|
+
success: CheckCircle,
|
|
11
|
+
info: InfoCircle,
|
|
12
|
+
};
|
|
13
|
+
const iconColorMap = {
|
|
14
|
+
neutral: 'gray700',
|
|
15
|
+
error: 'red500',
|
|
16
|
+
warning: 'orange500',
|
|
17
|
+
success: 'green600',
|
|
18
|
+
info: 'violet600',
|
|
19
|
+
};
|
|
20
|
+
const FullWidthNotification = forwardRef(({ title, supportingText, color = 'neutral', onClose, className, actions, autoClose = 0, supportTextLink, onHidePermanently, ...rest }, ref) => {
|
|
21
|
+
const [shouldRemove, setShouldRemove] = useState(false);
|
|
22
|
+
const closeIconSize = {
|
|
23
|
+
width: 20,
|
|
24
|
+
height: 20,
|
|
25
|
+
};
|
|
26
|
+
// autoClose 타이머 관리
|
|
27
|
+
const timerRef = useRef(null);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
// autoClose가 0보다 크면 무조건 타이머 설정
|
|
30
|
+
if (autoClose > 0) {
|
|
31
|
+
timerRef.current = setTimeout(() => {
|
|
32
|
+
if (onClose) {
|
|
33
|
+
onClose();
|
|
34
|
+
}
|
|
35
|
+
// DOM에서 바로 제거
|
|
36
|
+
setShouldRemove(true);
|
|
37
|
+
}, autoClose);
|
|
38
|
+
}
|
|
39
|
+
// cleanup 함수: 컴포넌트 언마운트 시 타이머 정리
|
|
40
|
+
return () => {
|
|
41
|
+
if (timerRef.current) {
|
|
42
|
+
clearTimeout(timerRef.current);
|
|
43
|
+
timerRef.current = null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}, [autoClose, onClose]);
|
|
47
|
+
// DOM에서 완전히 제거
|
|
48
|
+
if (shouldRemove) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return (_jsx("div", { ref: ref, className: classNames('ncua-full-width-notification', `ncua-full-width-notification--${color}`, className), role: "alert", ...rest, children: _jsx("div", { className: "ncua-full-width-notification__container", children: _jsxs("div", { className: "ncua-full-width-notification__content", children: [_jsxs("div", { className: "ncua-full-width-notification__content-wrapper", children: [(() => {
|
|
52
|
+
const IconComponent = iconMap[color];
|
|
53
|
+
return (_jsx(IconComponent, { width: 16, height: 16, color: COLOR[iconColorMap[color]], className: "ncua-full-width-notification__icon" }));
|
|
54
|
+
})(), _jsxs("div", { className: "ncua-full-width-notification__text-container", children: [_jsx("span", { className: "ncua-full-width-notification__title", children: title }), !supportTextLink && supportingText && (_jsx("span", { className: "ncua-full-width-notification__supporting-text", children: supportingText })), supportTextLink && supportingText && (_jsx("a", { href: supportTextLink, className: "ncua-full-width-notification__link", children: _jsx("span", { className: "ncua-full-width-notification__supporting-text", children: supportingText }) }))] })] }), _jsxs("div", { className: "ncua-full-width-notification__actions-container", children: [actions && (_jsx("div", { className: "ncua-full-width-notification__actions", children: actions.map((action) => (_jsx("button", { onClick: action.onClick, className: classNames('ncua-notification__action-button', `ncua-notification__action-button--${action.hierarchy || 'text'}`), children: action.label }, `${action.label}-${action.hierarchy}`))) })), onHidePermanently && (_jsx("button", { type: "button", className: classNames('ncua-notification__action-button', 'ncua-notification__action-button--text', 'ncua-full-width-notification__link'), onClick: onHidePermanently, children: "\uB2E4\uC2DC\uBCF4\uC9C0 \uC54A\uAE30" })), onClose && (_jsx("button", { type: "button", className: "ncua-full-width-notification__close-button", onClick: onClose, "aria-label": "\uC54C\uB9BC \uB2EB\uAE30", children: _jsx(XClose, { ...closeIconSize, color: COLOR[iconColorMap[color]] }) }))] })] }) }) }));
|
|
55
|
+
});
|
|
56
|
+
export { FullWidthNotification };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import type { SlotIconComponent } from '../../types/side-slot';
|
|
3
|
+
import type { NotificationAction, NotificationColor } from './Notification';
|
|
4
|
+
interface MessageNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
5
|
+
/**
|
|
6
|
+
* 알림 제목 텍스트
|
|
7
|
+
*/
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* 알림 본문 텍스트 (선택사항)
|
|
11
|
+
*/
|
|
12
|
+
supportingText?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* 알림 아이콘 컴포넌트 (지정하지 않으면 color에 따라 기본 아이콘 사용)
|
|
15
|
+
*/
|
|
16
|
+
icon?: SlotIconComponent;
|
|
17
|
+
/**
|
|
18
|
+
* 알림 색상 스타일
|
|
19
|
+
* @default 'neutral'
|
|
20
|
+
*/
|
|
21
|
+
color?: NotificationColor;
|
|
22
|
+
/**
|
|
23
|
+
* 닫기 버튼 클릭 이벤트 핸들러
|
|
24
|
+
*/
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* 추가 CSS 클래스
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 액션 버튼 영역 (선택사항)
|
|
32
|
+
*/
|
|
33
|
+
actions?: NotificationAction[];
|
|
34
|
+
/**
|
|
35
|
+
* 다시보지 않기 이벤트 핸들러 (선택사항)
|
|
36
|
+
*/
|
|
37
|
+
onHidePermanently?: () => void;
|
|
38
|
+
}
|
|
39
|
+
declare const MessageNotification: import("react").ForwardRefExoticComponent<MessageNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
+
export type { MessageNotificationProps };
|
|
41
|
+
export { MessageNotification };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertCircle, AlertTriangle, CheckCircle, Pin02, XClose } from '@ncds/ui-admin-icon';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { COLOR } from '../../../constant/color';
|
|
6
|
+
import { Button } from '../button';
|
|
7
|
+
import { FeaturedIcon } from '../featured-icon/FeaturedIcon';
|
|
8
|
+
const iconMap = {
|
|
9
|
+
neutral: Pin02,
|
|
10
|
+
error: AlertTriangle,
|
|
11
|
+
warning: AlertCircle,
|
|
12
|
+
success: CheckCircle,
|
|
13
|
+
};
|
|
14
|
+
const iconColorMap = {
|
|
15
|
+
neutral: 'gray700',
|
|
16
|
+
error: 'red500',
|
|
17
|
+
warning: 'orange500',
|
|
18
|
+
success: 'green600',
|
|
19
|
+
};
|
|
20
|
+
const MessageNotification = forwardRef(({ title, supportingText, icon: Icon, color = 'neutral', onClose, className, actions, onHidePermanently, ...rest }, ref) => {
|
|
21
|
+
// message 타입은 neutral, error, warning, success 4가지 색상만 지원
|
|
22
|
+
const validColor = color === 'info' ? 'neutral' : color;
|
|
23
|
+
const iconColor = validColor;
|
|
24
|
+
const featuredIconProps = {
|
|
25
|
+
icon: Icon || iconMap[validColor] || Pin02,
|
|
26
|
+
size: 'lg',
|
|
27
|
+
color: iconColor,
|
|
28
|
+
theme: 'light-circle',
|
|
29
|
+
};
|
|
30
|
+
const closeIconColor = COLOR[iconColorMap[validColor] || 'gray700'];
|
|
31
|
+
return (_jsx("div", { ref: ref, className: classNames('ncua-message-notification', `ncua-message-notification--${validColor}`, className), role: "alert", ...rest, children: _jsx("div", { className: "ncua-message-notification__container", children: _jsxs("div", { className: "ncua-message-notification__content", children: [_jsxs("div", { className: "ncua-message-notification__content-wrapper", children: [iconMap[validColor] && (_jsx(FeaturedIcon, { ...featuredIconProps, className: "ncua-message-notification__icon" })), _jsxs("div", { className: "ncua-message-notification__text-container", children: [_jsx("span", { className: "ncua-message-notification__title", children: title }), supportingText && _jsx("span", { className: "ncua-message-notification__supporting-text", children: supportingText })] })] }), _jsx("div", { className: "ncua-message-notification__actions-container", children: actions && (_jsx("div", { className: "ncua-message-notification__actions", children: actions.map((action) => (_jsx(Button, { size: "xs", hierarchy: action.hierarchy || 'text', label: action.label, onClick: action?.onClick }, `${action.label}-${action.hierarchy}`))) })) }), _jsxs("div", { className: "ncua-message-notification__footer-container", children: [onHidePermanently && (_jsx("button", { type: "button", className: classNames('ncua-notification__action-button', 'ncua-notification__action-button--link', 'ncua-message-notification__hide-link'), onClick: onHidePermanently, children: "\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30" })), onClose && (_jsx("button", { type: "button", className: "ncua-message-notification__close-button", onClick: onClose, "aria-label": "\uC54C\uB9BC \uB2EB\uAE30", children: _jsx(XClose, { width: 20, height: 20, color: closeIconColor }) }))] })] }) }) }));
|
|
32
|
+
});
|
|
33
|
+
MessageNotification.displayName = 'MessageNotification';
|
|
34
|
+
export { MessageNotification };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import type { ColorTone } from '../../../constant/color';
|
|
3
|
+
import type { SlotIconComponent } from '../../types/side-slot';
|
|
4
|
+
import type { ButtonTheme } from '../button';
|
|
5
|
+
type NotificationType = 'floating' | 'full-width' | 'message';
|
|
6
|
+
type NotificationColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'info'>;
|
|
7
|
+
type NotificationSize = 'desktop' | 'mobile';
|
|
8
|
+
interface NotificationAction {
|
|
9
|
+
/**
|
|
10
|
+
* 액션 버튼 텍스트
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* 액션 버튼 클릭 이벤트 핸들러
|
|
15
|
+
*/
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* 액션 버튼 색상 (3가지만 지원)
|
|
19
|
+
*/
|
|
20
|
+
hierarchy?: Extract<ButtonTheme, 'text' | 'text-gray'>;
|
|
21
|
+
}
|
|
22
|
+
interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
23
|
+
/**
|
|
24
|
+
* 알림 유형 (floating: 측면에 표시되는 알림, full-width: 전체 너비 알림)
|
|
25
|
+
* @default 'floating'
|
|
26
|
+
*/
|
|
27
|
+
type?: NotificationType;
|
|
28
|
+
/**
|
|
29
|
+
* 알림 제목 텍스트
|
|
30
|
+
*/
|
|
31
|
+
title: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* 알림 본문 텍스트 (선택사항)
|
|
34
|
+
*/
|
|
35
|
+
supportingText?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* 알림 아이콘 컴포넌트 (지정하지 않으면 variant에 따라 기본 아이콘 사용)
|
|
38
|
+
*/
|
|
39
|
+
icon?: SlotIconComponent;
|
|
40
|
+
/**
|
|
41
|
+
* 알림 색상 스타일
|
|
42
|
+
* @default 'neutral'
|
|
43
|
+
*/
|
|
44
|
+
color?: NotificationColor;
|
|
45
|
+
/**
|
|
46
|
+
* 닫기 버튼 클릭 이벤트 핸들러
|
|
47
|
+
*/
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* 추가 CSS 클래스
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 액션 버튼 영역 (선택사항)
|
|
55
|
+
* NotificationAction[]
|
|
56
|
+
*/
|
|
57
|
+
actions?: NotificationAction[];
|
|
58
|
+
/**
|
|
59
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
60
|
+
* floating 타입에서만 동작
|
|
61
|
+
* @default 0
|
|
62
|
+
*/
|
|
63
|
+
autoClose?: number;
|
|
64
|
+
/**
|
|
65
|
+
* 다시보지 않기 이벤트 핸들러 (선택사항)
|
|
66
|
+
* message, full-width 타입에서 사용 가능
|
|
67
|
+
*/
|
|
68
|
+
onHidePermanently?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare const Notification: import("react").ForwardRefExoticComponent<NotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
71
|
+
export type { NotificationType, NotificationColor, NotificationSize, NotificationAction, NotificationProps };
|
|
72
|
+
export { Notification };
|