@ncds/ui-admin 1.6.4 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/assets/scripts/baseBox.js +148 -0
- package/dist/cjs/assets/scripts/comboBox.js +44 -136
- package/dist/cjs/assets/scripts/datePicker.js +1 -1
- package/dist/cjs/assets/scripts/featuredIcon.js +1 -1
- package/dist/cjs/assets/scripts/fileInput/const/classNames.js +1 -5
- package/dist/cjs/assets/scripts/fileInput/fileInput.js +79 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputModel.js +61 -0
- package/dist/cjs/assets/scripts/fileInput/fileInputView.js +147 -0
- package/dist/cjs/assets/scripts/fileInput/index.js +3 -3
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +1 -1
- package/dist/cjs/assets/scripts/selectBox.js +46 -136
- package/dist/cjs/assets/scripts/utils/debounce.js +33 -0
- package/dist/cjs/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +21 -63
- package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
- package/dist/cjs/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +59 -101
- package/dist/cjs/src/components/badge/Badge.js +1 -1
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +1 -1
- package/dist/cjs/src/components/button/Button.js +13 -5
- package/dist/cjs/src/components/button/ButtonGroup.js +1 -2
- package/dist/cjs/src/components/carousel/CarouselArrow.js +2 -2
- package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +4 -5
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/cjs/src/components/combobox/ComboBox.js +54 -43
- package/dist/cjs/src/components/date-picker/CustomInput.js +3 -1
- package/dist/cjs/src/components/date-picker/DatePicker.js +85 -65
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +46 -37
- package/dist/cjs/src/components/divider/Divider.js +1 -1
- package/dist/cjs/src/components/dot/Dot.js +1 -1
- package/dist/cjs/src/components/dropdown/Dropdown.js +3 -2
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +1 -1
- package/dist/cjs/src/components/file-input/FileInput.js +3 -3
- package/dist/cjs/src/components/image-file-input/ImageFileInput.js +5 -2
- package/dist/cjs/src/components/input/NumberInput.js +1 -1
- package/dist/cjs/src/components/notification/index.js +11 -11
- package/dist/cjs/src/components/pagination/NavButton.js +3 -1
- package/dist/cjs/src/components/pagination/Pagination.js +65 -67
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +13 -9
- package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +1 -1
- package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +1 -1
- package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +3 -2
- package/dist/cjs/src/components/progress-bar/utils.js +3 -2
- package/dist/cjs/src/components/progress-circle/ProgressCircle.js +41 -41
- package/dist/cjs/src/components/select/Select.js +2 -2
- package/dist/cjs/src/components/selectbox/SelectBox.js +57 -45
- package/dist/cjs/src/components/spinner/Spinner.js +5 -4
- package/dist/cjs/src/components/spinner/index.js +0 -11
- package/dist/cjs/src/components/switch/Switch.js +15 -10
- package/dist/cjs/src/components/tab/HorizontalTab.js +5 -3
- package/dist/cjs/src/components/tab/TabButton.js +1 -1
- package/dist/cjs/src/components/toggle/Toggle.js +13 -15
- package/dist/cjs/src/components/tooltip/Tooltip.js +28 -13
- package/dist/cjs/src/constant/index.js +8 -8
- package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
- package/dist/cjs/src/hooks/dropdown/useScrollLock.js +26 -19
- package/dist/cjs/src/hooks/index.js +4 -4
- package/dist/cjs/src/utils/date-picker.js +14 -7
- package/dist/cjs/src/utils/dropdown/dropdownUtils.js +6 -8
- package/dist/esm/assets/scripts/baseBox.js +143 -0
- package/dist/esm/assets/scripts/comboBox.js +44 -136
- package/dist/esm/assets/scripts/datePicker.js +1 -1
- package/dist/esm/assets/scripts/featuredIcon.js +1 -1
- package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -3
- package/dist/esm/assets/scripts/fileInput/fileInput.js +74 -0
- package/dist/esm/assets/scripts/fileInput/fileInputModel.js +56 -0
- package/dist/esm/assets/scripts/fileInput/fileInputView.js +142 -0
- package/dist/esm/assets/scripts/fileInput/index.js +2 -2
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +2 -2
- package/dist/esm/assets/scripts/selectBox.js +46 -136
- package/dist/esm/assets/scripts/utils/debounce.js +27 -0
- package/dist/esm/assets/scripts/utils/unifiedBox/{DropdownModel.js → dropdownModel.js} +23 -66
- package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxController.js → unifiedBoxController.js} +11 -43
- package/dist/esm/assets/scripts/utils/unifiedBox/{UnifiedBoxManager.js → unifiedBoxManager.js} +53 -95
- package/dist/esm/src/components/badge/Badge.js +4 -3
- package/dist/esm/src/components/badge/BadgeGroup.js +3 -2
- package/dist/esm/src/components/badge/utils.js +3 -2
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +4 -3
- package/dist/esm/src/components/button/Button.js +13 -5
- package/dist/esm/src/components/button/ButtonCloseX.js +3 -2
- package/dist/esm/src/components/button/ButtonGroup.js +3 -2
- package/dist/esm/src/components/carousel/CarouselArrow.js +2 -2
- package/dist/esm/src/components/carousel/CarouselNumberGroup.js +4 -5
- package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/esm/src/components/combobox/ComboBox.js +58 -46
- package/dist/esm/src/components/date-picker/CustomInput.js +6 -3
- package/dist/esm/src/components/date-picker/DatePicker.js +88 -67
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +49 -39
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +3 -2
- package/dist/esm/src/components/divider/Divider.js +1 -1
- package/dist/esm/src/components/dot/Dot.js +4 -3
- package/dist/esm/src/components/dropdown/Dropdown.js +3 -2
- package/dist/esm/src/components/empty-state/EmptyState.js +3 -2
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +4 -3
- package/dist/esm/src/components/file-input/FileInput.js +3 -3
- package/dist/esm/src/components/image-file-input/ImageFileInput.js +6 -3
- package/dist/esm/src/components/input/InputBase.js +3 -2
- package/dist/esm/src/components/input/NumberInput.js +1 -1
- package/dist/esm/src/components/modal/Modal.js +3 -2
- package/dist/esm/src/components/notification/FloatingNotification.js +3 -2
- package/dist/esm/src/components/notification/FullWidthNotification.js +3 -2
- package/dist/esm/src/components/notification/MessageNotification.js +3 -2
- package/dist/esm/src/components/notification/Notification.js +3 -2
- package/dist/esm/src/components/notification/index.js +2 -2
- package/dist/esm/src/components/pagination/NavButton.js +3 -1
- package/dist/esm/src/components/pagination/Pagination.js +65 -67
- package/dist/esm/src/components/progress-bar/ProgressBar.js +13 -9
- package/dist/esm/src/components/progress-bar/components/SegmentBar.js +1 -1
- package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +5 -4
- package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +3 -2
- package/dist/esm/src/components/progress-bar/utils.js +7 -5
- package/dist/esm/src/components/progress-circle/ProgressCircle.js +41 -41
- package/dist/esm/src/components/select/Select.js +2 -2
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +3 -2
- package/dist/esm/src/components/selectbox/SelectBox.js +61 -48
- package/dist/esm/src/components/spinner/Spinner.js +5 -4
- package/dist/esm/src/components/spinner/index.js +1 -2
- package/dist/esm/src/components/switch/Switch.js +19 -13
- package/dist/esm/src/components/tab/HorizontalTab.js +9 -6
- package/dist/esm/src/components/tab/TabButton.js +4 -3
- package/dist/esm/src/components/tag/Tag.js +3 -2
- package/dist/esm/src/components/toggle/Toggle.js +14 -16
- package/dist/esm/src/components/tooltip/Tooltip.js +29 -14
- package/dist/esm/src/constant/index.js +2 -2
- package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +47 -56
- package/dist/esm/src/hooks/dropdown/useScrollLock.js +26 -19
- package/dist/esm/src/hooks/index.js +3 -3
- package/dist/esm/src/utils/date-picker.js +14 -7
- package/dist/esm/src/utils/dropdown/dropdownUtils.js +6 -8
- package/dist/temp/assets/scripts/baseBox.d.ts +55 -0
- package/dist/temp/assets/scripts/baseBox.js +144 -0
- package/dist/temp/assets/scripts/comboBox.d.ts +60 -0
- package/dist/temp/assets/scripts/comboBox.js +163 -0
- package/dist/temp/assets/scripts/datePicker.d.ts +86 -0
- package/dist/temp/assets/scripts/datePicker.js +706 -0
- package/dist/temp/assets/scripts/featuredIcon.d.ts +22 -0
- package/dist/temp/assets/scripts/featuredIcon.js +86 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.d.ts +15 -0
- package/dist/temp/assets/scripts/fileInput/const/classNames.js +20 -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 +75 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.d.ts +12 -0
- package/dist/temp/assets/scripts/fileInput/fileInputModel.js +45 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.d.ts +42 -0
- package/dist/temp/assets/scripts/fileInput/fileInputView.js +142 -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 +186 -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 +234 -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 +348 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.d.ts +19 -0
- package/dist/temp/assets/scripts/imageFileInput/const/classNames.js +24 -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 +32 -0
- package/dist/temp/assets/scripts/index.js +28 -0
- package/dist/temp/assets/scripts/modal/Modal.d.ts +27 -0
- package/dist/temp/assets/scripts/modal/Modal.js +106 -0
- package/dist/temp/assets/scripts/modal/ModalActions.d.ts +18 -0
- package/dist/temp/assets/scripts/modal/ModalActions.js +125 -0
- package/dist/temp/assets/scripts/modal/ModalContent.d.ts +13 -0
- package/dist/temp/assets/scripts/modal/ModalContent.js +41 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.d.ts +15 -0
- package/dist/temp/assets/scripts/modal/ModalHeader.js +102 -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 +154 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/FullWidthNotification.js +94 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.d.ts +22 -0
- package/dist/temp/assets/scripts/notification/MessageNotification.js +123 -0
- package/dist/temp/assets/scripts/notification/Notification.d.ts +21 -0
- package/dist/temp/assets/scripts/notification/Notification.js +108 -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 +39 -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 +84 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.d.ts +67 -0
- package/dist/temp/assets/scripts/progress-bar/ProgressBar.js +258 -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 +194 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.d.ts +5 -0
- package/dist/temp/assets/scripts/shared/ButtonCloseX.js +32 -0
- package/dist/temp/assets/scripts/slider.d.ts +41 -0
- package/dist/temp/assets/scripts/slider.js +331 -0
- package/dist/temp/assets/scripts/tab.d.ts +7 -0
- package/dist/temp/assets/scripts/tab.js +35 -0
- package/dist/temp/assets/scripts/tag/Tag.d.ts +27 -0
- package/dist/temp/assets/scripts/tag/Tag.js +267 -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 +360 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.d.ts +21 -0
- package/dist/temp/assets/scripts/tooltip/TooltipLayerManager.js +74 -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 +30 -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 +35 -0
- package/dist/temp/assets/scripts/utils/debounce.d.ts +8 -0
- package/dist/temp/assets/scripts/utils/debounce.js +27 -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 +376 -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 +311 -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 +627 -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 +559 -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 +29 -0
- package/dist/temp/index.js +29 -0
- package/dist/temp/src/components/badge/Badge.d.ts +18 -0
- package/dist/temp/src/components/badge/Badge.js +23 -0
- package/dist/temp/src/components/badge/BadgeGroup.d.ts +18 -0
- package/dist/temp/src/components/badge/BadgeGroup.js +36 -0
- package/dist/temp/src/components/badge/index.d.ts +2 -0
- package/dist/temp/src/components/badge/index.js +2 -0
- package/dist/temp/src/components/badge/utils.d.ts +8 -0
- package/dist/temp/src/components/badge/utils.js +17 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts +11 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.js +33 -0
- package/dist/temp/src/components/breadcrumb/index.d.ts +1 -0
- package/dist/temp/src/components/breadcrumb/index.js +1 -0
- package/dist/temp/src/components/button/Button.d.ts +35 -0
- package/dist/temp/src/components/button/Button.js +69 -0
- package/dist/temp/src/components/button/ButtonCloseX.d.ts +10 -0
- package/dist/temp/src/components/button/ButtonCloseX.js +25 -0
- package/dist/temp/src/components/button/ButtonGroup.d.ts +311 -0
- package/dist/temp/src/components/button/ButtonGroup.js +72 -0
- package/dist/temp/src/components/button/ButtonStepper.d.ts +9 -0
- package/dist/temp/src/components/button/ButtonStepper.js +6 -0
- package/dist/temp/src/components/button/index.d.ts +4 -0
- package/dist/temp/src/components/button/index.js +4 -0
- package/dist/temp/src/components/carousel/CarouselArrow.d.ts +8 -0
- package/dist/temp/src/components/carousel/CarouselArrow.js +24 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts +8 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.js +24 -0
- package/dist/temp/src/components/carousel/index.d.ts +2 -0
- package/dist/temp/src/components/carousel/index.js +2 -0
- package/dist/temp/src/components/checkbox/Checkbox.d.ts +7 -0
- package/dist/temp/src/components/checkbox/Checkbox.js +30 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.d.ts +9 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.js +46 -0
- package/dist/temp/src/components/checkbox/index.d.ts +2 -0
- package/dist/temp/src/components/checkbox/index.js +2 -0
- package/dist/temp/src/components/combobox/ComboBox.d.ts +28 -0
- package/dist/temp/src/components/combobox/ComboBox.js +199 -0
- package/dist/temp/src/components/combobox/index.d.ts +2 -0
- package/dist/temp/src/components/combobox/index.js +1 -0
- package/dist/temp/src/components/date-picker/CustomInput.d.ts +10 -0
- package/dist/temp/src/components/date-picker/CustomInput.js +34 -0
- package/dist/temp/src/components/date-picker/DatePicker.d.ts +24 -0
- package/dist/temp/src/components/date-picker/DatePicker.js +326 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts +26 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.js +117 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts +71 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +55 -0
- package/dist/temp/src/components/date-picker/index.d.ts +4 -0
- package/dist/temp/src/components/date-picker/index.js +4 -0
- package/dist/temp/src/components/date-picker/utils.d.ts +2 -0
- package/dist/temp/src/components/date-picker/utils.js +8 -0
- package/dist/temp/src/components/divider/Divider.d.ts +15 -0
- package/dist/temp/src/components/divider/Divider.js +23 -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 +31 -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 +90 -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 +33 -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 +36 -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 +123 -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/image-file-input/ImageFileInput.d.ts +70 -0
- package/dist/temp/src/components/image-file-input/ImageFileInput.js +124 -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 +18 -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 +33 -0
- package/dist/temp/src/components/index.js +32 -0
- package/dist/temp/src/components/input/InputBase.d.ts +54 -0
- package/dist/temp/src/components/input/InputBase.js +121 -0
- package/dist/temp/src/components/input/NumberInput.d.ts +9 -0
- package/dist/temp/src/components/input/NumberInput.js +93 -0
- package/dist/temp/src/components/input/PasswordInput.d.ts +2 -0
- package/dist/temp/src/components/input/PasswordInput.js +51 -0
- package/dist/temp/src/components/input/Textarea.d.ts +14 -0
- package/dist/temp/src/components/input/Textarea.js +60 -0
- package/dist/temp/src/components/input/index.d.ts +4 -0
- package/dist/temp/src/components/input/index.js +4 -0
- package/dist/temp/src/components/modal/Modal.d.ts +79 -0
- package/dist/temp/src/components/modal/Modal.js +101 -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 +79 -0
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts +46 -0
- package/dist/temp/src/components/notification/FullWidthNotification.js +79 -0
- package/dist/temp/src/components/notification/MessageNotification.d.ts +41 -0
- package/dist/temp/src/components/notification/MessageNotification.js +57 -0
- package/dist/temp/src/components/notification/Notification.d.ts +72 -0
- package/dist/temp/src/components/notification/Notification.js +42 -0
- package/dist/temp/src/components/notification/index.d.ts +4 -0
- package/dist/temp/src/components/notification/index.js +4 -0
- package/dist/temp/src/components/pagination/NavButton.d.ts +31 -0
- package/dist/temp/src/components/pagination/NavButton.js +66 -0
- package/dist/temp/src/components/pagination/Pagination.d.ts +11 -0
- package/dist/temp/src/components/pagination/Pagination.js +93 -0
- package/dist/temp/src/components/pagination/index.d.ts +2 -0
- package/dist/temp/src/components/pagination/index.js +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.d.ts +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.js +31 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.d.ts +7 -0
- package/dist/temp/src/components/progress-bar/components/SegmentBar.js +10 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.d.ts +15 -0
- package/dist/temp/src/components/progress-bar/components/SegmentLabels.js +45 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.d.ts +13 -0
- package/dist/temp/src/components/progress-bar/hooks/useProgressBar.js +96 -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 +21 -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 +30 -0
- package/dist/temp/src/components/radio/RadioInput.d.ts +8 -0
- package/dist/temp/src/components/radio/RadioInput.js +29 -0
- package/dist/temp/src/components/radio/index.d.ts +2 -0
- package/dist/temp/src/components/radio/index.js +2 -0
- package/dist/temp/src/components/select/Select.d.ts +16 -0
- package/dist/temp/src/components/select/Select.js +33 -0
- package/dist/temp/src/components/select/index.d.ts +1 -0
- package/dist/temp/src/components/select/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 +49 -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/selectbox/SelectBox.d.ts +27 -0
- package/dist/temp/src/components/selectbox/SelectBox.js +163 -0
- package/dist/temp/src/components/selectbox/index.d.ts +1 -0
- package/dist/temp/src/components/selectbox/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 +28 -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 +28 -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 +44 -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 +21 -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 +68 -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/HorizontalTab.d.ts +12 -0
- package/dist/temp/src/components/tab/HorizontalTab.js +37 -0
- package/dist/temp/src/components/tab/TabButton.d.ts +23 -0
- package/dist/temp/src/components/tab/TabButton.js +37 -0
- package/dist/temp/src/components/tab/VerticalTab.d.ts +9 -0
- package/dist/temp/src/components/tab/VerticalTab.js +32 -0
- package/dist/temp/src/components/tab/index.d.ts +3 -0
- package/dist/temp/src/components/tab/index.js +3 -0
- package/dist/temp/src/components/tag/Tag.d.ts +17 -0
- package/dist/temp/src/components/tag/Tag.js +110 -0
- package/dist/temp/src/components/tag/index.d.ts +1 -0
- package/dist/temp/src/components/tag/index.js +1 -0
- package/dist/temp/src/components/toggle/Toggle.d.ts +10 -0
- package/dist/temp/src/components/toggle/Toggle.js +30 -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 +122 -0
- package/dist/temp/src/components/tooltip/index.d.ts +1 -0
- package/dist/temp/src/components/tooltip/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 +108 -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 +44 -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 +20 -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 +51 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.d.ts +17 -0
- package/dist/temp/src/utils/dropdown/dropdownUtils.js +79 -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 +68 -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 +0 -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/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 +0 -1
- 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 -1
- package/dist/types/src/components/badge/Badge.d.ts +10 -9
- package/dist/types/src/components/badge/BadgeGroup.d.ts +7 -6
- package/dist/types/src/components/badge/index.d.ts +0 -1
- package/dist/types/src/components/badge/utils.d.ts +4 -3
- package/dist/types/src/components/breadcrumb/BreadCrumb.d.ts +5 -4
- package/dist/types/src/components/breadcrumb/index.d.ts +0 -1
- 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/ButtonGroup.d.ts +7 -9
- package/dist/types/src/components/button/ButtonStepper.d.ts +1 -2
- package/dist/types/src/components/button/index.d.ts +0 -1
- package/dist/types/src/components/carousel/CarouselArrow.d.ts +1 -3
- package/dist/types/src/components/carousel/CarouselNumberGroup.d.ts +1 -3
- package/dist/types/src/components/carousel/index.d.ts +0 -1
- 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/combobox/ComboBox.d.ts +7 -6
- package/dist/types/src/components/combobox/index.d.ts +1 -2
- package/dist/types/src/components/date-picker/CustomInput.d.ts +2 -3
- package/dist/types/src/components/date-picker/DatePicker.d.ts +7 -6
- package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +6 -5
- package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +4 -4
- package/dist/types/src/components/date-picker/index.d.ts +0 -1
- 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 +0 -1
- package/dist/types/src/components/file-input/index.d.ts +0 -1
- package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +0 -1
- 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 +1 -2
- package/dist/types/src/components/input/InputBase.d.ts +4 -4
- package/dist/types/src/components/input/NumberInput.d.ts +1 -2
- package/dist/types/src/components/input/PasswordInput.d.ts +1 -2
- package/dist/types/src/components/input/Textarea.d.ts +2 -3
- package/dist/types/src/components/input/index.d.ts +0 -1
- 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/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/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/select/Select.d.ts +4 -5
- package/dist/types/src/components/select/index.d.ts +0 -1
- 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/selectbox/SelectBox.d.ts +5 -4
- package/dist/types/src/components/selectbox/index.d.ts +0 -1
- 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/HorizontalTab.d.ts +5 -4
- package/dist/types/src/components/tab/TabButton.d.ts +8 -8
- package/dist/types/src/components/tab/VerticalTab.d.ts +2 -3
- package/dist/types/src/components/tab/index.d.ts +0 -1
- 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/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/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 +112 -24
- package/package.json +49 -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/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/cjs/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
- /package/dist/esm/assets/scripts/utils/unifiedBox/{DOMRenderer.js → domRenderer.js} +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { CLASS_NAMES, FLOATING_ICON_MAP, getSizes } from './const';
|
|
13
|
+
import { isMobile } from './utils';
|
|
14
|
+
import { MEDIA_QUERY } from '../../../src/constant/breakpoint';
|
|
15
|
+
import { FeaturedIcon } from '../featuredIcon';
|
|
16
|
+
import { ButtonCloseX } from '../shared/ButtonCloseX';
|
|
17
|
+
import { createWrapperElement, renderSupportingText, renderActions, bindNotificationEvents, setupAutoClose, } from './utils';
|
|
18
|
+
var FloatingNotification = /** @class */ (function () {
|
|
19
|
+
function FloatingNotification(options) {
|
|
20
|
+
this.options = __assign({ color: 'neutral', className: '', actions: [], autoClose: 0, supportingText: undefined }, options);
|
|
21
|
+
this.element = this.createElement();
|
|
22
|
+
this.bindEvents();
|
|
23
|
+
this.setupAutoClose();
|
|
24
|
+
this.setupMobileListener();
|
|
25
|
+
}
|
|
26
|
+
FloatingNotification.prototype.createElement = function () {
|
|
27
|
+
var _a = this.options, title = _a.title, supportingText = _a.supportingText, color = _a.color, className = _a.className, actions = _a.actions, onClose = _a.onClose;
|
|
28
|
+
// 플로팅 알림에서 info 색상 사용 시 neutral로 대체
|
|
29
|
+
var actualColor = color;
|
|
30
|
+
if (color === 'info') {
|
|
31
|
+
console.warn('Floating notification does not support "info" color. Using "neutral" instead.');
|
|
32
|
+
actualColor = 'neutral';
|
|
33
|
+
}
|
|
34
|
+
var wrapper = createWrapperElement(CLASS_NAMES.FLOATING.BASE, actualColor, className);
|
|
35
|
+
var iconFunction = FLOATING_ICON_MAP[actualColor];
|
|
36
|
+
var mobile = isMobile();
|
|
37
|
+
// FeaturedIcon 생성
|
|
38
|
+
var featuredIconElement = null;
|
|
39
|
+
if (iconFunction) {
|
|
40
|
+
var size = getSizes.featuredIcon(mobile);
|
|
41
|
+
var iconSize = getSizes.iconPixel(mobile);
|
|
42
|
+
var iconSvg = iconFunction(iconSize);
|
|
43
|
+
this.featuredIcon = FeaturedIcon.create({
|
|
44
|
+
svgString: iconSvg,
|
|
45
|
+
theme: 'dark-circle',
|
|
46
|
+
color: actualColor,
|
|
47
|
+
size: size,
|
|
48
|
+
});
|
|
49
|
+
featuredIconElement = this.featuredIcon.getElement();
|
|
50
|
+
}
|
|
51
|
+
wrapper.innerHTML = this.buildTemplate({
|
|
52
|
+
title: title,
|
|
53
|
+
supportingText: supportingText,
|
|
54
|
+
actions: actions,
|
|
55
|
+
onClose: onClose,
|
|
56
|
+
isMobile: mobile,
|
|
57
|
+
});
|
|
58
|
+
// FeaturedIcon을 container에 추가
|
|
59
|
+
if (featuredIconElement) {
|
|
60
|
+
var container = wrapper.querySelector(".".concat(CLASS_NAMES.FLOATING.CONTAINER));
|
|
61
|
+
if (container) {
|
|
62
|
+
container.insertBefore(featuredIconElement, container.firstChild);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return wrapper;
|
|
66
|
+
};
|
|
67
|
+
FloatingNotification.prototype.buildTemplate = function (params) {
|
|
68
|
+
var title = params.title, supportingText = params.supportingText, actions = params.actions, onClose = params.onClose, isMobile = params.isMobile;
|
|
69
|
+
return "\n <div class=\"".concat(CLASS_NAMES.FLOATING.CONTENT, "\">\n <div class=\"").concat(CLASS_NAMES.FLOATING.CONTAINER, "\">\n <div class=\"").concat(CLASS_NAMES.FLOATING.TEXT_CONTAINER, "\">\n <div class=\"").concat(CLASS_NAMES.FLOATING.TITLE_WRAPPER, "\">\n <span class=\"").concat(CLASS_NAMES.FLOATING.TITLE, "\">").concat(title, "</span>\n </div>\n ").concat(renderSupportingText(supportingText, CLASS_NAMES.FLOATING.SUPPORTING_TEXT), "\n ").concat(actions && actions.length > 0 ? renderActions(actions, CLASS_NAMES.FLOATING.ACTIONS) : '', "\n </div>\n </div>\n </div>\n ").concat(this.renderCloseButton(onClose, isMobile), "\n ");
|
|
70
|
+
};
|
|
71
|
+
FloatingNotification.prototype.renderCloseButton = function (onClose, isMobile) {
|
|
72
|
+
if (isMobile === void 0) { isMobile = false; }
|
|
73
|
+
if (!onClose)
|
|
74
|
+
return '';
|
|
75
|
+
var size = getSizes.closeButton(isMobile);
|
|
76
|
+
return ButtonCloseX(size, 'light', CLASS_NAMES.FLOATING.CLOSE_BUTTON, '알림 닫기', onClose);
|
|
77
|
+
};
|
|
78
|
+
FloatingNotification.prototype.setupMobileListener = function () {
|
|
79
|
+
var _this = this;
|
|
80
|
+
var mediaQuery = window.matchMedia(MEDIA_QUERY.mobile);
|
|
81
|
+
var handleChange = function (e) {
|
|
82
|
+
_this.updateMobileStyles(e.matches);
|
|
83
|
+
if (e.matches && _this.options.onClose) {
|
|
84
|
+
_this.options.onClose();
|
|
85
|
+
_this.remove();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
handleChange({ matches: mediaQuery.matches });
|
|
89
|
+
mediaQuery.addEventListener('change', handleChange);
|
|
90
|
+
this.mobileCleanup = function () {
|
|
91
|
+
mediaQuery.removeEventListener('change', handleChange);
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
FloatingNotification.prototype.updateMobileStyles = function (mobile) {
|
|
95
|
+
if (this.featuredIcon) {
|
|
96
|
+
var newSize = getSizes.featuredIcon(mobile);
|
|
97
|
+
this.featuredIcon.updateSize(newSize);
|
|
98
|
+
}
|
|
99
|
+
var closeButton = this.element.querySelector('.ncua-button-close-x');
|
|
100
|
+
if (closeButton) {
|
|
101
|
+
var newSize = getSizes.closeButton(mobile);
|
|
102
|
+
var newSvgSize = getSizes.closeButtonSvg(newSize);
|
|
103
|
+
closeButton.className = closeButton.className.replace(/ncua-button-close-x--(xs|sm)/, "ncua-button-close-x--".concat(newSize));
|
|
104
|
+
var svg = closeButton.querySelector('svg');
|
|
105
|
+
if (svg) {
|
|
106
|
+
svg.setAttribute('width', newSvgSize.toString());
|
|
107
|
+
svg.setAttribute('height', newSvgSize.toString());
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
FloatingNotification.prototype.bindEvents = function () {
|
|
112
|
+
var _this = this;
|
|
113
|
+
bindNotificationEvents(this.element, this.options.actions, this.options.onClose, function () { return _this.remove(); });
|
|
114
|
+
};
|
|
115
|
+
FloatingNotification.prototype.setupAutoClose = function () {
|
|
116
|
+
var _this = this;
|
|
117
|
+
this.autoCloseTimer = setupAutoClose(this.options.autoClose, this.options.onClose, function () { return _this.remove(); });
|
|
118
|
+
};
|
|
119
|
+
// Public methods
|
|
120
|
+
FloatingNotification.prototype.getElement = function () {
|
|
121
|
+
return this.element;
|
|
122
|
+
};
|
|
123
|
+
FloatingNotification.prototype.appendTo = function (parent) {
|
|
124
|
+
parent.appendChild(this.element);
|
|
125
|
+
};
|
|
126
|
+
FloatingNotification.prototype.remove = function () {
|
|
127
|
+
if (this.autoCloseTimer) {
|
|
128
|
+
clearTimeout(this.autoCloseTimer);
|
|
129
|
+
this.autoCloseTimer = undefined;
|
|
130
|
+
}
|
|
131
|
+
if (this.element && this.element.parentNode) {
|
|
132
|
+
this.element.parentNode.removeChild(this.element);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
FloatingNotification.prototype.destroy = function () {
|
|
136
|
+
// FeaturedIcon 정리
|
|
137
|
+
if (this.featuredIcon) {
|
|
138
|
+
this.featuredIcon.destroy();
|
|
139
|
+
this.featuredIcon = undefined;
|
|
140
|
+
}
|
|
141
|
+
// 모바일 리스너 정리
|
|
142
|
+
if (this.mobileCleanup) {
|
|
143
|
+
this.mobileCleanup();
|
|
144
|
+
this.mobileCleanup = undefined;
|
|
145
|
+
}
|
|
146
|
+
this.remove();
|
|
147
|
+
};
|
|
148
|
+
// Static factory methods
|
|
149
|
+
FloatingNotification.create = function (options) {
|
|
150
|
+
return new FloatingNotification(options);
|
|
151
|
+
};
|
|
152
|
+
return FloatingNotification;
|
|
153
|
+
}());
|
|
154
|
+
export { FloatingNotification };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BaseNotificationOptions } from './const';
|
|
2
|
+
export interface FullWidthNotificationOptions extends BaseNotificationOptions {
|
|
3
|
+
type?: 'full-width';
|
|
4
|
+
}
|
|
5
|
+
export declare class FullWidthNotification {
|
|
6
|
+
private element;
|
|
7
|
+
private options;
|
|
8
|
+
private autoCloseTimer?;
|
|
9
|
+
constructor(options: FullWidthNotificationOptions);
|
|
10
|
+
private createElement;
|
|
11
|
+
private buildTemplate;
|
|
12
|
+
private renderHidePermanentlyButton;
|
|
13
|
+
private renderCloseButton;
|
|
14
|
+
private bindEvents;
|
|
15
|
+
private setupAutoClose;
|
|
16
|
+
getElement(): HTMLElement;
|
|
17
|
+
appendTo(parent: HTMLElement): void;
|
|
18
|
+
remove(): void;
|
|
19
|
+
destroy(): void;
|
|
20
|
+
static create(options: FullWidthNotificationOptions): FullWidthNotification;
|
|
21
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { SVG_ICONS, CLASS_NAMES, FULL_WIDTH_ICON_MAP, FULL_WIDTH_SIZES } from './const';
|
|
13
|
+
import { createWrapperElement, renderSupportingText, renderActions, bindNotificationEvents, setupAutoClose, } from './utils';
|
|
14
|
+
var FullWidthNotification = /** @class */ (function () {
|
|
15
|
+
function FullWidthNotification(options) {
|
|
16
|
+
this.options = __assign({ color: 'neutral', className: '', actions: [], autoClose: 0, supportingText: undefined }, options);
|
|
17
|
+
this.element = this.createElement();
|
|
18
|
+
this.bindEvents();
|
|
19
|
+
this.setupAutoClose();
|
|
20
|
+
}
|
|
21
|
+
FullWidthNotification.prototype.createElement = function () {
|
|
22
|
+
var _a = this.options, title = _a.title, supportingText = _a.supportingText, color = _a.color, className = _a.className, actions = _a.actions, onClose = _a.onClose, supportTextLink = _a.supportTextLink, onHidePermanently = _a.onHidePermanently;
|
|
23
|
+
var wrapper = createWrapperElement(CLASS_NAMES.FULL_WIDTH.BASE, color, className);
|
|
24
|
+
var iconHtml = FULL_WIDTH_ICON_MAP[color](FULL_WIDTH_SIZES.ICON);
|
|
25
|
+
wrapper.innerHTML = this.buildTemplate({
|
|
26
|
+
iconHtml: iconHtml,
|
|
27
|
+
title: title,
|
|
28
|
+
supportingText: supportingText,
|
|
29
|
+
actions: actions,
|
|
30
|
+
onClose: onClose,
|
|
31
|
+
supportTextLink: supportTextLink,
|
|
32
|
+
onHidePermanently: onHidePermanently,
|
|
33
|
+
});
|
|
34
|
+
return wrapper;
|
|
35
|
+
};
|
|
36
|
+
FullWidthNotification.prototype.buildTemplate = function (params) {
|
|
37
|
+
var iconHtml = params.iconHtml, title = params.title, supportingText = params.supportingText, actions = params.actions, onClose = params.onClose, supportTextLink = params.supportTextLink, onHidePermanently = params.onHidePermanently;
|
|
38
|
+
return "\n <div class=\"".concat(CLASS_NAMES.FULL_WIDTH.CONTAINER, "\">\n <div class=\"").concat(CLASS_NAMES.FULL_WIDTH.CONTENT, "\">\n <div class=\"").concat(CLASS_NAMES.FULL_WIDTH.CONTENT_WRAPPER, "\">\n <div class=\"").concat(CLASS_NAMES.FULL_WIDTH.ICON, "\">").concat(iconHtml, "</div>\n <div class=\"").concat(CLASS_NAMES.FULL_WIDTH.TEXT_CONTAINER, "\">\n <span class=\"").concat(CLASS_NAMES.FULL_WIDTH.TITLE, "\">").concat(title, "</span>\n ").concat(renderSupportingText(supportingText, CLASS_NAMES.FULL_WIDTH.SUPPORTING_TEXT, supportTextLink), "\n </div>\n </div>\n <div class=\"").concat(CLASS_NAMES.FULL_WIDTH.ACTIONS_CONTAINER, "\">\n ").concat(actions && actions.length > 0 ? renderActions(actions, CLASS_NAMES.FULL_WIDTH.ACTIONS) : '', "\n ").concat(this.renderHidePermanentlyButton(onHidePermanently), "\n ").concat(this.renderCloseButton(onClose), "\n </div>\n </div>\n </div>\n ");
|
|
39
|
+
};
|
|
40
|
+
FullWidthNotification.prototype.renderHidePermanentlyButton = function (onHidePermanently) {
|
|
41
|
+
if (!onHidePermanently)
|
|
42
|
+
return '';
|
|
43
|
+
return "\n <button type=\"button\" class=\"ncua-notification__action-button ncua-notification__action-button--text ncua-full-width-notification__link\" data-hide-permanently=\"true\">\n \uB2E4\uC2DC\uBCF4\uC9C0 \uC54A\uAE30\n </button>\n ";
|
|
44
|
+
};
|
|
45
|
+
FullWidthNotification.prototype.renderCloseButton = function (onClose) {
|
|
46
|
+
if (!onClose)
|
|
47
|
+
return '';
|
|
48
|
+
return "\n <button type=\"button\" class=\"".concat(CLASS_NAMES.FULL_WIDTH.CLOSE_BUTTON, "\" aria-label=\"\uC54C\uB9BC \uB2EB\uAE30\">\n ").concat(SVG_ICONS['x-close'](FULL_WIDTH_SIZES.CLOSE_BUTTON), "\n </button>\n ");
|
|
49
|
+
};
|
|
50
|
+
FullWidthNotification.prototype.bindEvents = function () {
|
|
51
|
+
var _this = this;
|
|
52
|
+
bindNotificationEvents(this.element, this.options.actions, this.options.onClose, function () { return _this.remove(); });
|
|
53
|
+
// 다시보지 않기 버튼 이벤트 바인딩
|
|
54
|
+
if (this.options.onHidePermanently) {
|
|
55
|
+
var hidePermanentlyButton = this.element.querySelector('[data-hide-permanently="true"]');
|
|
56
|
+
if (hidePermanentlyButton) {
|
|
57
|
+
hidePermanentlyButton.addEventListener('click', function () {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
(_b = (_a = _this.options).onHidePermanently) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
60
|
+
_this.remove();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
FullWidthNotification.prototype.setupAutoClose = function () {
|
|
66
|
+
var _this = this;
|
|
67
|
+
this.autoCloseTimer = setupAutoClose(this.options.autoClose, this.options.onClose, function () { return _this.remove(); });
|
|
68
|
+
};
|
|
69
|
+
// Public methods
|
|
70
|
+
FullWidthNotification.prototype.getElement = function () {
|
|
71
|
+
return this.element;
|
|
72
|
+
};
|
|
73
|
+
FullWidthNotification.prototype.appendTo = function (parent) {
|
|
74
|
+
parent.appendChild(this.element);
|
|
75
|
+
};
|
|
76
|
+
FullWidthNotification.prototype.remove = function () {
|
|
77
|
+
if (this.autoCloseTimer) {
|
|
78
|
+
clearTimeout(this.autoCloseTimer);
|
|
79
|
+
this.autoCloseTimer = undefined;
|
|
80
|
+
}
|
|
81
|
+
if (this.element && this.element.parentNode) {
|
|
82
|
+
this.element.parentNode.removeChild(this.element);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
FullWidthNotification.prototype.destroy = function () {
|
|
86
|
+
this.remove();
|
|
87
|
+
};
|
|
88
|
+
// Static factory methods
|
|
89
|
+
FullWidthNotification.create = function (options) {
|
|
90
|
+
return new FullWidthNotification(options);
|
|
91
|
+
};
|
|
92
|
+
return FullWidthNotification;
|
|
93
|
+
}());
|
|
94
|
+
export { FullWidthNotification };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BaseNotificationOptions } from './const';
|
|
2
|
+
export interface MessageNotificationOptions extends BaseNotificationOptions {
|
|
3
|
+
type?: 'message';
|
|
4
|
+
}
|
|
5
|
+
export declare class MessageNotification {
|
|
6
|
+
private element;
|
|
7
|
+
private options;
|
|
8
|
+
private autoCloseTimer?;
|
|
9
|
+
private featuredIcon?;
|
|
10
|
+
constructor(options: MessageNotificationOptions);
|
|
11
|
+
private createElement;
|
|
12
|
+
private buildTemplate;
|
|
13
|
+
private renderHidePermanentlyButton;
|
|
14
|
+
private renderCloseButton;
|
|
15
|
+
private bindEvents;
|
|
16
|
+
private setupAutoClose;
|
|
17
|
+
getElement(): HTMLElement;
|
|
18
|
+
appendTo(parent: HTMLElement): void;
|
|
19
|
+
remove(): void;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
static create(options: MessageNotificationOptions): MessageNotification;
|
|
22
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { SVG_ICONS, CLASS_NAMES, FLOATING_ICON_MAP, MESSAGE_SIZES } from './const';
|
|
13
|
+
import { FeaturedIcon } from '../featuredIcon';
|
|
14
|
+
import { createWrapperElement, renderSupportingText, renderActions, bindNotificationEvents, setupAutoClose, } from './utils';
|
|
15
|
+
var MessageNotification = /** @class */ (function () {
|
|
16
|
+
function MessageNotification(options) {
|
|
17
|
+
this.options = __assign({ color: 'neutral', className: '', actions: [], autoClose: 0, supportingText: undefined }, options);
|
|
18
|
+
this.element = this.createElement();
|
|
19
|
+
this.bindEvents();
|
|
20
|
+
this.setupAutoClose();
|
|
21
|
+
}
|
|
22
|
+
MessageNotification.prototype.createElement = function () {
|
|
23
|
+
var _a = this.options, title = _a.title, supportingText = _a.supportingText, color = _a.color, className = _a.className, actions = _a.actions, onClose = _a.onClose, onHidePermanently = _a.onHidePermanently;
|
|
24
|
+
// message 타입은 neutral, error, warning, success 4가지 색상만 지원
|
|
25
|
+
var actualColor = color;
|
|
26
|
+
if (color === 'info') {
|
|
27
|
+
console.warn('Message notification does not support "info" color. Using "neutral" instead.');
|
|
28
|
+
actualColor = 'neutral';
|
|
29
|
+
}
|
|
30
|
+
var wrapper = createWrapperElement(CLASS_NAMES.MESSAGE.BASE, actualColor, className);
|
|
31
|
+
var iconFunction = FLOATING_ICON_MAP[actualColor];
|
|
32
|
+
// FeaturedIcon 생성
|
|
33
|
+
var featuredIconElement = null;
|
|
34
|
+
if (iconFunction) {
|
|
35
|
+
var iconSvg = iconFunction(MESSAGE_SIZES.ICON_PIXEL);
|
|
36
|
+
this.featuredIcon = FeaturedIcon.create({
|
|
37
|
+
svgString: iconSvg,
|
|
38
|
+
theme: 'light-circle',
|
|
39
|
+
color: actualColor,
|
|
40
|
+
size: MESSAGE_SIZES.FEATURED_ICON,
|
|
41
|
+
});
|
|
42
|
+
featuredIconElement = this.featuredIcon.getElement();
|
|
43
|
+
}
|
|
44
|
+
wrapper.innerHTML = this.buildTemplate({
|
|
45
|
+
title: title,
|
|
46
|
+
supportingText: supportingText,
|
|
47
|
+
actions: actions,
|
|
48
|
+
onClose: onClose,
|
|
49
|
+
onHidePermanently: onHidePermanently,
|
|
50
|
+
});
|
|
51
|
+
// FeaturedIcon을 content-wrapper에 추가
|
|
52
|
+
if (featuredIconElement) {
|
|
53
|
+
var contentWrapper = wrapper.querySelector(".".concat(CLASS_NAMES.MESSAGE.CONTENT_WRAPPER));
|
|
54
|
+
if (contentWrapper) {
|
|
55
|
+
contentWrapper.insertBefore(featuredIconElement, contentWrapper.firstChild);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return wrapper;
|
|
59
|
+
};
|
|
60
|
+
MessageNotification.prototype.buildTemplate = function (params) {
|
|
61
|
+
var title = params.title, supportingText = params.supportingText, actions = params.actions, onClose = params.onClose, onHidePermanently = params.onHidePermanently;
|
|
62
|
+
return "\n <div class=\"".concat(CLASS_NAMES.MESSAGE.CONTAINER, "\">\n <div class=\"").concat(CLASS_NAMES.MESSAGE.CONTENT, "\">\n <div class=\"").concat(CLASS_NAMES.MESSAGE.CONTENT_WRAPPER, "\">\n <div class=\"").concat(CLASS_NAMES.MESSAGE.TEXT_CONTAINER, "\">\n <span class=\"").concat(CLASS_NAMES.MESSAGE.TITLE, "\">").concat(title, "</span>\n ").concat(renderSupportingText(supportingText, CLASS_NAMES.MESSAGE.SUPPORTING_TEXT), "\n </div>\n </div>\n <div class=\"").concat(CLASS_NAMES.MESSAGE.ACTIONS_CONTAINER, "\">\n ").concat(actions && actions.length > 0 ? renderActions(actions, CLASS_NAMES.MESSAGE.ACTIONS) : '', "\n </div>\n <div class=\"").concat(CLASS_NAMES.MESSAGE.ACTIONS_CONTAINER, "\">\n ").concat(this.renderHidePermanentlyButton(onHidePermanently), "\n ").concat(this.renderCloseButton(onClose), "\n </div>\n </div>\n </div>\n ");
|
|
63
|
+
};
|
|
64
|
+
MessageNotification.prototype.renderHidePermanentlyButton = function (onHidePermanently) {
|
|
65
|
+
if (!onHidePermanently)
|
|
66
|
+
return '';
|
|
67
|
+
return "\n <button type=\"button\" class=\"".concat(CLASS_NAMES.COMMON.ACTION_BUTTON, " ").concat(CLASS_NAMES.COMMON.ACTION_BUTTON, "--text ").concat(CLASS_NAMES.MESSAGE.HIDE_LINK, "\" data-hide-permanently=\"true\">\n \uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30\n </button>\n ");
|
|
68
|
+
};
|
|
69
|
+
MessageNotification.prototype.renderCloseButton = function (onClose) {
|
|
70
|
+
if (!onClose)
|
|
71
|
+
return '';
|
|
72
|
+
return "\n <button type=\"button\" class=\"".concat(CLASS_NAMES.MESSAGE.CLOSE_BUTTON, "\" aria-label=\"\uC54C\uB9BC \uB2EB\uAE30\">\n ").concat(SVG_ICONS['x-close'](MESSAGE_SIZES.CLOSE_BUTTON).replace('stroke="currentColor"', "stroke=\"#2F2F30\""), "\n </button>\n ");
|
|
73
|
+
};
|
|
74
|
+
MessageNotification.prototype.bindEvents = function () {
|
|
75
|
+
var _this = this;
|
|
76
|
+
bindNotificationEvents(this.element, this.options.actions, this.options.onClose, function () { return _this.remove(); });
|
|
77
|
+
// 다시보지 않기 버튼 이벤트 바인딩
|
|
78
|
+
if (this.options.onHidePermanently) {
|
|
79
|
+
var hidePermanentlyButton = this.element.querySelector('[data-hide-permanently="true"]');
|
|
80
|
+
if (hidePermanentlyButton) {
|
|
81
|
+
hidePermanentlyButton.addEventListener('click', function () {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
(_b = (_a = _this.options).onHidePermanently) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
84
|
+
_this.remove();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
MessageNotification.prototype.setupAutoClose = function () {
|
|
90
|
+
var _this = this;
|
|
91
|
+
this.autoCloseTimer = setupAutoClose(this.options.autoClose, this.options.onClose, function () { return _this.remove(); });
|
|
92
|
+
};
|
|
93
|
+
// Public methods
|
|
94
|
+
MessageNotification.prototype.getElement = function () {
|
|
95
|
+
return this.element;
|
|
96
|
+
};
|
|
97
|
+
MessageNotification.prototype.appendTo = function (parent) {
|
|
98
|
+
parent.appendChild(this.element);
|
|
99
|
+
};
|
|
100
|
+
MessageNotification.prototype.remove = function () {
|
|
101
|
+
if (this.autoCloseTimer) {
|
|
102
|
+
clearTimeout(this.autoCloseTimer);
|
|
103
|
+
this.autoCloseTimer = undefined;
|
|
104
|
+
}
|
|
105
|
+
if (this.element && this.element.parentNode) {
|
|
106
|
+
this.element.parentNode.removeChild(this.element);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
MessageNotification.prototype.destroy = function () {
|
|
110
|
+
// FeaturedIcon 정리
|
|
111
|
+
if (this.featuredIcon) {
|
|
112
|
+
this.featuredIcon.destroy();
|
|
113
|
+
this.featuredIcon = undefined;
|
|
114
|
+
}
|
|
115
|
+
this.remove();
|
|
116
|
+
};
|
|
117
|
+
// Static factory methods
|
|
118
|
+
MessageNotification.create = function (options) {
|
|
119
|
+
return new MessageNotification(options);
|
|
120
|
+
};
|
|
121
|
+
return MessageNotification;
|
|
122
|
+
}());
|
|
123
|
+
export { MessageNotification };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NotificationColor, BaseNotificationOptions } from './const';
|
|
2
|
+
export interface NotificationOptions extends BaseNotificationOptions {
|
|
3
|
+
type?: 'full-width' | 'floating' | 'message';
|
|
4
|
+
}
|
|
5
|
+
export declare class Notification {
|
|
6
|
+
private instance;
|
|
7
|
+
constructor(options: NotificationOptions);
|
|
8
|
+
getElement(): HTMLElement;
|
|
9
|
+
appendTo(parent: HTMLElement): void;
|
|
10
|
+
remove(): void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
show(parent?: HTMLElement): void;
|
|
13
|
+
static create(options: NotificationOptions): Notification;
|
|
14
|
+
static createWithColor(color: NotificationColor, title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
15
|
+
static success(title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
16
|
+
static error(title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
17
|
+
static warning(title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
18
|
+
static info(title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
19
|
+
static neutral(title: string, supportingText?: string, options?: Partial<NotificationOptions>): Notification;
|
|
20
|
+
static showFullWidth(options: Omit<NotificationOptions, 'type'>): Notification;
|
|
21
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { FullWidthNotification } from './FullWidthNotification';
|
|
24
|
+
import { FloatingNotification } from './FloatingNotification';
|
|
25
|
+
import { MessageNotification } from './MessageNotification';
|
|
26
|
+
// 통합 Notification 클래스
|
|
27
|
+
var Notification = /** @class */ (function () {
|
|
28
|
+
function Notification(options) {
|
|
29
|
+
var _a = options.type, type = _a === void 0 ? 'floating' : _a, baseOptions = __rest(options, ["type"]);
|
|
30
|
+
if (type === 'message') {
|
|
31
|
+
this.instance = new MessageNotification(baseOptions);
|
|
32
|
+
}
|
|
33
|
+
else if (type === 'full-width') {
|
|
34
|
+
this.instance = new FullWidthNotification(baseOptions);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.instance = new FloatingNotification(baseOptions);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// 모든 메서드를 instance에 위임
|
|
41
|
+
Notification.prototype.getElement = function () {
|
|
42
|
+
return this.instance.getElement();
|
|
43
|
+
};
|
|
44
|
+
Notification.prototype.appendTo = function (parent) {
|
|
45
|
+
return this.instance.appendTo(parent);
|
|
46
|
+
};
|
|
47
|
+
Notification.prototype.remove = function () {
|
|
48
|
+
return this.instance.remove();
|
|
49
|
+
};
|
|
50
|
+
Notification.prototype.destroy = function () {
|
|
51
|
+
return this.instance.destroy();
|
|
52
|
+
};
|
|
53
|
+
Notification.prototype.show = function (parent) {
|
|
54
|
+
if (parent) {
|
|
55
|
+
this.instance.appendTo(parent);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.instance.appendTo(document.body);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
// Static factory methods
|
|
62
|
+
Notification.create = function (options) {
|
|
63
|
+
return new Notification(options);
|
|
64
|
+
};
|
|
65
|
+
// Convenience method for creating notifications with specific color
|
|
66
|
+
Notification.createWithColor = function (color, title, supportingText, options) {
|
|
67
|
+
var autoCloseMap = {
|
|
68
|
+
success: 3000,
|
|
69
|
+
error: 5000,
|
|
70
|
+
warning: 3000,
|
|
71
|
+
info: 3000,
|
|
72
|
+
neutral: 0,
|
|
73
|
+
};
|
|
74
|
+
return new Notification(__assign({ title: title, supportingText: supportingText, color: color, type: 'floating', autoClose: autoCloseMap[color] }, options));
|
|
75
|
+
};
|
|
76
|
+
// 클래스를 생성하지 않고도 기본 floating 알림 생성을 하기 위한 함수들
|
|
77
|
+
Notification.success = function (title, supportingText, options) {
|
|
78
|
+
var notification = this.createWithColor('success', title, supportingText, options);
|
|
79
|
+
notification.show();
|
|
80
|
+
return notification;
|
|
81
|
+
};
|
|
82
|
+
Notification.error = function (title, supportingText, options) {
|
|
83
|
+
var notification = this.createWithColor('error', title, supportingText, options);
|
|
84
|
+
notification.show();
|
|
85
|
+
return notification;
|
|
86
|
+
};
|
|
87
|
+
Notification.warning = function (title, supportingText, options) {
|
|
88
|
+
var notification = this.createWithColor('warning', title, supportingText, options);
|
|
89
|
+
notification.show();
|
|
90
|
+
return notification;
|
|
91
|
+
};
|
|
92
|
+
Notification.info = function (title, supportingText, options) {
|
|
93
|
+
var notification = this.createWithColor('info', title, supportingText, options);
|
|
94
|
+
notification.show();
|
|
95
|
+
return notification;
|
|
96
|
+
};
|
|
97
|
+
Notification.neutral = function (title, supportingText, options) {
|
|
98
|
+
var notification = this.createWithColor('neutral', title, supportingText, options);
|
|
99
|
+
notification.show();
|
|
100
|
+
return notification;
|
|
101
|
+
};
|
|
102
|
+
// showFullWidth method for backward compatibility
|
|
103
|
+
Notification.showFullWidth = function (options) {
|
|
104
|
+
return new Notification(__assign(__assign({}, options), { type: 'full-width' }));
|
|
105
|
+
};
|
|
106
|
+
return Notification;
|
|
107
|
+
}());
|
|
108
|
+
export { Notification };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const CLASS_NAMES: {
|
|
2
|
+
readonly FULL_WIDTH: {
|
|
3
|
+
readonly BASE: "ncua-full-width-notification";
|
|
4
|
+
readonly CONTAINER: "ncua-full-width-notification__container";
|
|
5
|
+
readonly CONTENT: "ncua-full-width-notification__content";
|
|
6
|
+
readonly CONTENT_WRAPPER: "ncua-full-width-notification__content-wrapper";
|
|
7
|
+
readonly ICON: "ncua-full-width-notification__icon";
|
|
8
|
+
readonly TEXT_CONTAINER: "ncua-full-width-notification__text-container";
|
|
9
|
+
readonly TITLE: "ncua-full-width-notification__title";
|
|
10
|
+
readonly SUPPORTING_TEXT: "ncua-full-width-notification__supporting-text";
|
|
11
|
+
readonly ACTIONS_CONTAINER: "ncua-full-width-notification__actions-container";
|
|
12
|
+
readonly ACTIONS: "ncua-full-width-notification__actions";
|
|
13
|
+
readonly CLOSE_BUTTON: "ncua-full-width-notification__close-button";
|
|
14
|
+
};
|
|
15
|
+
readonly FLOATING: {
|
|
16
|
+
readonly BASE: "ncua-floating-notification";
|
|
17
|
+
readonly CONTAINER: "ncua-floating-notification__container";
|
|
18
|
+
readonly CONTENT: "ncua-floating-notification__content";
|
|
19
|
+
readonly TEXT_CONTAINER: "ncua-floating-notification__text-container";
|
|
20
|
+
readonly TITLE_WRAPPER: "ncua-floating-notification__title-wrapper";
|
|
21
|
+
readonly TITLE: "ncua-floating-notification__title";
|
|
22
|
+
readonly SUPPORTING_TEXT: "ncua-floating-notification__supporting-text";
|
|
23
|
+
readonly ACTIONS: "ncua-floating-notification__actions";
|
|
24
|
+
readonly CLOSE_BUTTON: "ncua-floating-notification__close-button";
|
|
25
|
+
};
|
|
26
|
+
readonly MESSAGE: {
|
|
27
|
+
readonly BASE: "ncua-message-notification";
|
|
28
|
+
readonly CONTAINER: "ncua-message-notification__container";
|
|
29
|
+
readonly CONTENT: "ncua-message-notification__content";
|
|
30
|
+
readonly CONTENT_WRAPPER: "ncua-message-notification__content-wrapper";
|
|
31
|
+
readonly ICON: "ncua-message-notification__icon";
|
|
32
|
+
readonly TEXT_CONTAINER: "ncua-message-notification__text-container";
|
|
33
|
+
readonly TITLE: "ncua-message-notification__title";
|
|
34
|
+
readonly SUPPORTING_TEXT: "ncua-message-notification__supporting-text";
|
|
35
|
+
readonly ACTIONS_CONTAINER: "ncua-message-notification__actions-container";
|
|
36
|
+
readonly ACTIONS: "ncua-message-notification__actions";
|
|
37
|
+
readonly HIDE_LINK: "ncua-message-notification__hide-link";
|
|
38
|
+
readonly CLOSE_BUTTON: "ncua-message-notification__close-button";
|
|
39
|
+
};
|
|
40
|
+
readonly COMMON: {
|
|
41
|
+
readonly ACTION_BUTTON: "ncua-notification__action-button";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// CSS class names
|
|
2
|
+
export var CLASS_NAMES = {
|
|
3
|
+
FULL_WIDTH: {
|
|
4
|
+
BASE: 'ncua-full-width-notification',
|
|
5
|
+
CONTAINER: 'ncua-full-width-notification__container',
|
|
6
|
+
CONTENT: 'ncua-full-width-notification__content',
|
|
7
|
+
CONTENT_WRAPPER: 'ncua-full-width-notification__content-wrapper',
|
|
8
|
+
ICON: 'ncua-full-width-notification__icon',
|
|
9
|
+
TEXT_CONTAINER: 'ncua-full-width-notification__text-container',
|
|
10
|
+
TITLE: 'ncua-full-width-notification__title',
|
|
11
|
+
SUPPORTING_TEXT: 'ncua-full-width-notification__supporting-text',
|
|
12
|
+
ACTIONS_CONTAINER: 'ncua-full-width-notification__actions-container',
|
|
13
|
+
ACTIONS: 'ncua-full-width-notification__actions',
|
|
14
|
+
CLOSE_BUTTON: 'ncua-full-width-notification__close-button',
|
|
15
|
+
},
|
|
16
|
+
FLOATING: {
|
|
17
|
+
BASE: 'ncua-floating-notification',
|
|
18
|
+
CONTAINER: 'ncua-floating-notification__container',
|
|
19
|
+
CONTENT: 'ncua-floating-notification__content',
|
|
20
|
+
TEXT_CONTAINER: 'ncua-floating-notification__text-container',
|
|
21
|
+
TITLE_WRAPPER: 'ncua-floating-notification__title-wrapper',
|
|
22
|
+
TITLE: 'ncua-floating-notification__title',
|
|
23
|
+
SUPPORTING_TEXT: 'ncua-floating-notification__supporting-text',
|
|
24
|
+
ACTIONS: 'ncua-floating-notification__actions',
|
|
25
|
+
CLOSE_BUTTON: 'ncua-floating-notification__close-button',
|
|
26
|
+
},
|
|
27
|
+
MESSAGE: {
|
|
28
|
+
BASE: 'ncua-message-notification',
|
|
29
|
+
CONTAINER: 'ncua-message-notification__container',
|
|
30
|
+
CONTENT: 'ncua-message-notification__content',
|
|
31
|
+
CONTENT_WRAPPER: 'ncua-message-notification__content-wrapper',
|
|
32
|
+
ICON: 'ncua-message-notification__icon',
|
|
33
|
+
TEXT_CONTAINER: 'ncua-message-notification__text-container',
|
|
34
|
+
TITLE: 'ncua-message-notification__title',
|
|
35
|
+
SUPPORTING_TEXT: 'ncua-message-notification__supporting-text',
|
|
36
|
+
ACTIONS_CONTAINER: 'ncua-message-notification__actions-container',
|
|
37
|
+
ACTIONS: 'ncua-message-notification__actions',
|
|
38
|
+
HIDE_LINK: 'ncua-message-notification__hide-link',
|
|
39
|
+
CLOSE_BUTTON: 'ncua-message-notification__close-button',
|
|
40
|
+
},
|
|
41
|
+
COMMON: {
|
|
42
|
+
ACTION_BUTTON: 'ncua-notification__action-button',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NotificationColor } from './types';
|
|
2
|
+
export declare const SVG_ICONS: {
|
|
3
|
+
readonly 'pin-02': (size: string) => string;
|
|
4
|
+
readonly 'alert-triangle': (size: string) => string;
|
|
5
|
+
readonly 'alert-circle': (size: string) => string;
|
|
6
|
+
readonly 'check-circle': (size: string) => string;
|
|
7
|
+
readonly 'info-circle': (size: string) => string;
|
|
8
|
+
readonly 'message-chat-square': (size: string) => string;
|
|
9
|
+
readonly 'x-close': (size: string) => string;
|
|
10
|
+
};
|
|
11
|
+
export declare const FLOATING_ICON_MAP: Partial<Record<NotificationColor, (size: string) => string>>;
|
|
12
|
+
export declare const FULL_WIDTH_ICON_MAP: {
|
|
13
|
+
readonly neutral: (size: string) => string;
|
|
14
|
+
readonly error: (size: string) => string;
|
|
15
|
+
readonly warning: (size: string) => string;
|
|
16
|
+
readonly success: (size: string) => string;
|
|
17
|
+
readonly info: (size: string) => string;
|
|
18
|
+
};
|
|
19
|
+
export declare const ICON_MAP: {
|
|
20
|
+
readonly neutral: (size: string) => string;
|
|
21
|
+
readonly error: (size: string) => string;
|
|
22
|
+
readonly warning: (size: string) => string;
|
|
23
|
+
readonly success: (size: string) => string;
|
|
24
|
+
readonly info: (size: string) => string;
|
|
25
|
+
};
|