@ncds/ui-admin 1.2.2 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/assets/scripts/comboBox.js +262 -0
- package/dist/cjs/assets/scripts/datePicker.js +178 -60
- package/dist/cjs/assets/scripts/featuredIcon.js +95 -0
- package/dist/cjs/assets/scripts/fileInput/FileInput.js +183 -0
- package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +246 -0
- package/dist/cjs/assets/scripts/fileInput/FileInputView.js +455 -0
- package/dist/cjs/assets/scripts/fileInput/const/classNames.js +35 -0
- package/dist/cjs/assets/scripts/fileInput/const/index.js +27 -0
- package/dist/cjs/assets/scripts/fileInput/const/types.js +13 -0
- package/dist/cjs/assets/scripts/fileInput/index.js +44 -0
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +187 -0
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +268 -0
- package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +354 -0
- package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +41 -0
- package/dist/cjs/assets/scripts/imageFileInput/const/index.js +27 -0
- package/dist/cjs/assets/scripts/imageFileInput/const/types.js +13 -0
- package/dist/cjs/assets/scripts/imageFileInput/index.js +44 -0
- package/dist/cjs/assets/scripts/index.js +21 -1
- package/dist/cjs/assets/scripts/modal/Modal.js +116 -0
- package/dist/cjs/assets/scripts/modal/ModalActions.js +128 -0
- package/dist/cjs/assets/scripts/modal/ModalContent.js +46 -0
- package/dist/cjs/assets/scripts/modal/ModalHeader.js +115 -0
- package/dist/cjs/assets/scripts/modal/const/classNames.js +41 -0
- package/dist/cjs/assets/scripts/modal/const/index.js +27 -0
- package/dist/cjs/assets/scripts/modal/const/types.js +5 -0
- package/dist/cjs/assets/scripts/modal/index.js +61 -0
- package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +35 -0
- package/dist/cjs/assets/scripts/notification/FloatingNotification.js +180 -0
- package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +120 -0
- package/dist/cjs/assets/scripts/notification/Notification.js +113 -0
- package/dist/cjs/assets/scripts/notification/const/classNames.js +36 -0
- package/dist/cjs/assets/scripts/notification/const/icons.js +45 -0
- package/dist/cjs/assets/scripts/notification/const/index.js +74 -0
- package/dist/cjs/assets/scripts/notification/const/sizes.js +48 -0
- package/dist/cjs/assets/scripts/notification/const/types.js +5 -0
- package/dist/cjs/assets/scripts/notification/index.js +84 -0
- package/dist/cjs/assets/scripts/notification/utils.js +92 -0
- package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +272 -0
- package/dist/cjs/assets/scripts/progress-bar/index.js +12 -0
- package/dist/cjs/assets/scripts/selectBox.js +319 -0
- package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +46 -0
- package/dist/cjs/assets/scripts/tag/Tag.js +268 -0
- package/dist/cjs/assets/scripts/tag/const/classNames.js +24 -0
- package/dist/cjs/assets/scripts/tag/const/index.js +38 -0
- package/dist/cjs/assets/scripts/tag/const/sizes.js +13 -0
- package/dist/cjs/assets/scripts/tag/const/types.js +5 -0
- package/dist/cjs/assets/scripts/tag/index.js +44 -0
- package/dist/cjs/assets/scripts/tooltip/Tooltip.js +380 -0
- package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +84 -0
- package/dist/cjs/assets/scripts/tooltip/const/classNames.js +29 -0
- package/dist/cjs/assets/scripts/tooltip/const/constants.js +56 -0
- package/dist/cjs/assets/scripts/tooltip/const/icons.js +15 -0
- package/dist/cjs/assets/scripts/tooltip/const/index.js +123 -0
- package/dist/cjs/assets/scripts/tooltip/const/templates.js +49 -0
- package/dist/cjs/assets/scripts/tooltip/const/types.js +5 -0
- package/dist/cjs/assets/scripts/tooltip/index.js +57 -0
- package/dist/cjs/assets/scripts/tooltip/utils.js +41 -0
- package/dist/cjs/assets/scripts/utils/selectbox/DOMRenderer.js +384 -0
- package/dist/cjs/assets/scripts/utils/selectbox/DropdownModel.js +361 -0
- package/dist/cjs/assets/scripts/utils/selectbox/SelectBoxController.js +681 -0
- package/dist/cjs/assets/scripts/utils/selectbox/UnifiedSelectBox.js +677 -0
- package/dist/cjs/constant/color.js +2 -0
- package/dist/cjs/src/components/button/Button.js +9 -35
- package/dist/cjs/src/components/button/ButtonGroup.js +9 -10
- package/dist/cjs/src/components/checkbox/Checkbox.js +20 -19
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +22 -45
- package/dist/cjs/src/components/combobox/ComboBox.js +337 -0
- package/dist/cjs/src/components/combobox/index.js +12 -0
- package/dist/cjs/src/components/date-picker/CustomInput.js +52 -0
- package/dist/cjs/src/components/date-picker/DatePicker.js +86 -23
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +1 -1
- package/dist/cjs/src/components/{input → file-upload}/FileInput.js +17 -9
- package/dist/cjs/src/components/file-upload/index.js +16 -0
- package/dist/cjs/src/components/image-file-input/ImageFileInput.js +263 -0
- package/dist/cjs/src/components/image-file-input/components/ImagePreview.js +44 -0
- package/dist/cjs/src/components/image-file-input/index.js +16 -0
- package/dist/cjs/src/components/index.js +44 -0
- package/dist/cjs/src/components/input/InputBase.js +54 -10
- package/dist/cjs/src/components/input/Textarea.js +12 -20
- package/dist/cjs/src/components/input/index.js +0 -11
- package/dist/cjs/src/components/modal/Modal.js +7 -3
- package/dist/cjs/src/components/notification/FloatingNotification.js +34 -3
- package/dist/cjs/src/components/notification/FullWidthNotification.js +54 -5
- package/dist/cjs/src/components/pagination/NavButton.js +1 -13
- package/dist/cjs/src/components/pagination/Pagination.js +6 -20
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +89 -20
- package/dist/cjs/src/components/progress-bar/components/SegmentBar.js +25 -0
- package/dist/cjs/src/components/progress-bar/components/SegmentLabels.js +74 -0
- package/dist/cjs/src/components/progress-bar/hooks/useProgressBar.js +119 -0
- package/dist/cjs/src/components/progress-bar/index.js +11 -0
- package/dist/cjs/src/components/progress-bar/types.js +5 -0
- package/dist/cjs/src/components/progress-bar/utils.js +31 -0
- package/dist/cjs/src/components/radio/Radio.js +5 -6
- package/dist/cjs/src/components/select/Select.js +7 -4
- package/dist/cjs/src/components/select-dropdown/SelectDropdown.js +146 -0
- package/dist/cjs/src/components/select-dropdown/index.js +12 -0
- package/dist/cjs/src/components/selectbox/SelectBox.js +283 -0
- package/dist/cjs/src/components/selectbox/index.js +12 -0
- package/dist/cjs/src/components/shared/hintText/HintText.js +1 -1
- package/dist/cjs/src/components/switch/Switch.js +123 -0
- package/dist/cjs/src/components/switch/index.js +12 -0
- package/dist/cjs/src/components/tab/HorizontalTab.js +8 -20
- package/dist/cjs/src/components/tab/TabButton.js +33 -16
- package/dist/cjs/src/components/tab/VerticalTab.js +15 -30
- package/dist/cjs/src/components/tag/Tag.js +92 -3
- package/dist/cjs/src/components/tooltip/Tooltip.js +125 -28
- package/dist/cjs/src/hooks/dropdown/index.js +47 -0
- package/dist/cjs/src/hooks/dropdown/useDropdown.js +109 -0
- package/dist/cjs/src/hooks/dropdown/useDropdownKeyboard.js +131 -0
- package/dist/cjs/src/hooks/dropdown/useDropdownPosition.js +27 -0
- package/dist/cjs/src/hooks/dropdown/useOutsideClick.js +33 -0
- package/dist/cjs/src/hooks/dropdown/useScrollLock.js +78 -0
- package/dist/cjs/src/hooks/dropdown/useWindowResize.js +52 -0
- package/dist/cjs/src/hooks/index.js +18 -1
- package/dist/cjs/src/types/dropdown/dropdown.js +5 -0
- package/dist/cjs/src/types/dropdown/index.js +27 -0
- package/dist/cjs/src/types/dropdown/option.js +5 -0
- package/dist/cjs/src/types/index.js +16 -0
- package/dist/cjs/src/utils/date-picker.js +37 -1
- package/dist/cjs/src/utils/dropdown/dropdownUtils.js +107 -0
- package/dist/cjs/src/utils/dropdown/index.js +27 -0
- package/dist/cjs/src/utils/dropdown/multiSelect.js +100 -0
- package/dist/cjs/src/utils/index.js +27 -0
- package/dist/esm/assets/scripts/comboBox.js +257 -0
- package/dist/esm/assets/scripts/datePicker.js +175 -59
- package/dist/esm/assets/scripts/featuredIcon.js +90 -0
- package/dist/esm/assets/scripts/fileInput/FileInput.js +178 -0
- package/dist/esm/assets/scripts/fileInput/FileInputModel.js +241 -0
- package/dist/esm/assets/scripts/fileInput/FileInputView.js +450 -0
- package/dist/esm/assets/scripts/fileInput/const/classNames.js +25 -0
- package/dist/esm/assets/scripts/fileInput/const/index.js +2 -0
- package/dist/esm/assets/scripts/fileInput/const/types.js +7 -0
- package/dist/esm/assets/scripts/fileInput/index.js +9 -0
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +182 -0
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +263 -0
- package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +349 -0
- package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +30 -0
- package/dist/esm/assets/scripts/imageFileInput/const/index.js +2 -0
- package/dist/esm/assets/scripts/imageFileInput/const/types.js +7 -0
- package/dist/esm/assets/scripts/imageFileInput/index.js +9 -0
- package/dist/esm/assets/scripts/index.js +21 -1
- package/dist/esm/assets/scripts/modal/Modal.js +110 -0
- package/dist/esm/assets/scripts/modal/ModalActions.js +123 -0
- package/dist/esm/assets/scripts/modal/ModalContent.js +41 -0
- package/dist/esm/assets/scripts/modal/ModalHeader.js +110 -0
- package/dist/esm/assets/scripts/modal/const/classNames.js +31 -0
- package/dist/esm/assets/scripts/modal/const/index.js +2 -0
- package/dist/esm/assets/scripts/modal/const/types.js +1 -0
- package/dist/esm/assets/scripts/modal/index.js +15 -0
- package/dist/esm/assets/scripts/modal/utils/contentUtils.js +28 -0
- package/dist/esm/assets/scripts/notification/FloatingNotification.js +176 -0
- package/dist/esm/assets/scripts/notification/FullWidthNotification.js +115 -0
- package/dist/esm/assets/scripts/notification/Notification.js +108 -0
- package/dist/esm/assets/scripts/notification/const/classNames.js +30 -0
- package/dist/esm/assets/scripts/notification/const/icons.js +39 -0
- package/dist/esm/assets/scripts/notification/const/index.js +3 -0
- package/dist/esm/assets/scripts/notification/const/sizes.js +42 -0
- package/dist/esm/assets/scripts/notification/const/types.js +1 -0
- package/dist/esm/assets/scripts/notification/index.js +10 -0
- package/dist/esm/assets/scripts/notification/utils.js +79 -0
- package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +267 -0
- package/dist/esm/assets/scripts/progress-bar/index.js +1 -0
- package/dist/esm/assets/scripts/selectBox.js +314 -0
- package/dist/esm/assets/scripts/shared/ButtonCloseX.js +38 -0
- package/dist/esm/assets/scripts/tag/Tag.js +263 -0
- package/dist/esm/assets/scripts/tag/const/classNames.js +16 -0
- package/dist/esm/assets/scripts/tag/const/index.js +3 -0
- package/dist/esm/assets/scripts/tag/const/sizes.js +7 -0
- package/dist/esm/assets/scripts/tag/const/types.js +1 -0
- package/dist/esm/assets/scripts/tag/index.js +9 -0
- package/dist/esm/assets/scripts/tooltip/Tooltip.js +375 -0
- package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +79 -0
- package/dist/esm/assets/scripts/tooltip/const/classNames.js +23 -0
- package/dist/esm/assets/scripts/tooltip/const/constants.js +50 -0
- package/dist/esm/assets/scripts/tooltip/const/icons.js +9 -0
- package/dist/esm/assets/scripts/tooltip/const/index.js +4 -0
- package/dist/esm/assets/scripts/tooltip/const/templates.js +42 -0
- package/dist/esm/assets/scripts/tooltip/const/types.js +1 -0
- package/dist/esm/assets/scripts/tooltip/index.js +10 -0
- package/dist/esm/assets/scripts/tooltip/utils.js +35 -0
- package/dist/esm/assets/scripts/utils/selectbox/DOMRenderer.js +379 -0
- package/dist/esm/assets/scripts/utils/selectbox/DropdownModel.js +356 -0
- package/dist/esm/assets/scripts/utils/selectbox/SelectBoxController.js +676 -0
- package/dist/esm/assets/scripts/utils/selectbox/UnifiedSelectBox.js +672 -0
- package/dist/esm/constant/color.js +2 -0
- package/dist/esm/src/components/button/Button.js +10 -36
- package/dist/esm/src/components/button/ButtonGroup.js +9 -10
- package/dist/esm/src/components/checkbox/Checkbox.js +21 -19
- package/dist/esm/src/components/checkbox/CheckboxInput.js +24 -47
- package/dist/esm/src/components/combobox/ComboBox.js +330 -0
- package/dist/esm/src/components/combobox/index.js +1 -0
- package/dist/esm/src/components/date-picker/CustomInput.js +45 -0
- package/dist/esm/src/components/date-picker/DatePicker.js +87 -24
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +1 -1
- package/dist/esm/src/components/{input → file-upload}/FileInput.js +17 -9
- package/dist/esm/src/components/file-upload/index.js +1 -0
- package/dist/esm/src/components/image-file-input/ImageFileInput.js +256 -0
- package/dist/esm/src/components/image-file-input/components/ImagePreview.js +37 -0
- package/dist/esm/src/components/image-file-input/index.js +1 -0
- package/dist/esm/src/components/index.js +4 -0
- package/dist/esm/src/components/input/InputBase.js +55 -11
- package/dist/esm/src/components/input/Textarea.js +12 -20
- package/dist/esm/src/components/input/index.js +1 -2
- package/dist/esm/src/components/modal/Modal.js +7 -3
- package/dist/esm/src/components/notification/FloatingNotification.js +35 -4
- package/dist/esm/src/components/notification/FullWidthNotification.js +55 -6
- package/dist/esm/src/components/pagination/NavButton.js +1 -13
- package/dist/esm/src/components/pagination/Pagination.js +6 -20
- package/dist/esm/src/components/progress-bar/ProgressBar.js +89 -20
- package/dist/esm/src/components/progress-bar/components/SegmentBar.js +18 -0
- package/dist/esm/src/components/progress-bar/components/SegmentLabels.js +66 -0
- package/dist/esm/src/components/progress-bar/hooks/useProgressBar.js +112 -0
- package/dist/esm/src/components/progress-bar/index.js +2 -1
- package/dist/esm/src/components/progress-bar/types.js +1 -0
- package/dist/esm/src/components/progress-bar/utils.js +22 -0
- package/dist/esm/src/components/radio/Radio.js +5 -5
- package/dist/esm/src/components/select/Select.js +7 -4
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +139 -0
- package/dist/esm/src/components/select-dropdown/index.js +1 -0
- package/dist/esm/src/components/selectbox/SelectBox.js +276 -0
- package/dist/esm/src/components/selectbox/index.js +1 -0
- package/dist/esm/src/components/shared/hintText/HintText.js +1 -1
- package/dist/esm/src/components/switch/Switch.js +116 -0
- package/dist/esm/src/components/switch/index.js +1 -0
- package/dist/esm/src/components/tab/HorizontalTab.js +7 -19
- package/dist/esm/src/components/tab/TabButton.js +34 -17
- package/dist/esm/src/components/tab/VerticalTab.js +15 -30
- package/dist/esm/src/components/tag/Tag.js +92 -3
- package/dist/esm/src/components/tooltip/Tooltip.js +125 -28
- package/dist/esm/src/hooks/dropdown/index.js +6 -0
- package/dist/esm/src/hooks/dropdown/useDropdown.js +102 -0
- package/dist/esm/src/hooks/dropdown/useDropdownKeyboard.js +124 -0
- package/dist/esm/src/hooks/dropdown/useDropdownPosition.js +20 -0
- package/dist/esm/src/hooks/dropdown/useOutsideClick.js +26 -0
- package/dist/esm/src/hooks/dropdown/useScrollLock.js +71 -0
- package/dist/esm/src/hooks/dropdown/useWindowResize.js +45 -0
- package/dist/esm/src/hooks/index.js +4 -1
- package/dist/esm/src/types/dropdown/dropdown.js +1 -0
- package/dist/esm/src/types/dropdown/index.js +2 -0
- package/dist/esm/src/types/dropdown/option.js +1 -0
- package/dist/esm/src/types/index.js +2 -0
- package/dist/esm/src/utils/date-picker.js +33 -1
- package/dist/esm/src/utils/dropdown/dropdownUtils.js +97 -0
- package/dist/esm/src/utils/dropdown/index.js +2 -0
- package/dist/esm/src/utils/dropdown/multiSelect.js +88 -0
- package/dist/esm/src/utils/index.js +4 -0
- package/dist/types/assets/scripts/comboBox.d.ts +79 -0
- package/dist/types/assets/scripts/datePicker.d.ts +16 -13
- package/dist/types/assets/scripts/featuredIcon.d.ts +23 -0
- package/dist/types/assets/scripts/fileInput/FileInput.d.ts +67 -0
- package/dist/types/assets/scripts/fileInput/FileInputModel.d.ts +70 -0
- package/dist/types/assets/scripts/fileInput/FileInputView.d.ts +77 -0
- package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +17 -0
- package/dist/types/assets/scripts/fileInput/const/index.d.ts +3 -0
- package/dist/types/assets/scripts/fileInput/const/types.d.ts +132 -0
- package/dist/types/assets/scripts/fileInput/index.d.ts +4 -0
- package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +64 -0
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +74 -0
- package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +80 -0
- package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +20 -0
- package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +3 -0
- package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +126 -0
- package/dist/types/assets/scripts/imageFileInput/index.d.ts +4 -0
- package/dist/types/assets/scripts/index.d.ts +28 -2
- package/dist/types/assets/scripts/modal/Modal.d.ts +28 -0
- package/dist/types/assets/scripts/modal/ModalActions.d.ts +19 -0
- package/dist/types/assets/scripts/modal/ModalContent.d.ts +14 -0
- package/dist/types/assets/scripts/modal/ModalHeader.d.ts +16 -0
- package/dist/types/assets/scripts/modal/const/classNames.d.ts +23 -0
- package/dist/types/assets/scripts/modal/const/index.d.ts +3 -0
- package/dist/types/assets/scripts/modal/const/types.d.ts +62 -0
- package/dist/types/assets/scripts/modal/index.d.ts +8 -0
- package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +11 -0
- package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +25 -0
- package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +22 -0
- package/dist/types/assets/scripts/notification/Notification.d.ts +22 -0
- package/dist/types/assets/scripts/notification/const/classNames.d.ts +30 -0
- package/dist/types/assets/scripts/notification/const/icons.d.ts +26 -0
- package/dist/types/assets/scripts/notification/const/index.d.ts +5 -0
- package/dist/types/assets/scripts/notification/const/sizes.d.ts +28 -0
- package/dist/types/assets/scripts/notification/const/types.d.ts +19 -0
- package/dist/types/assets/scripts/notification/index.d.ts +7 -0
- package/dist/types/assets/scripts/notification/utils.d.ts +9 -0
- package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +68 -0
- package/dist/types/assets/scripts/progress-bar/index.d.ts +2 -0
- package/dist/types/assets/scripts/selectBox.d.ts +77 -0
- package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +6 -0
- package/dist/types/assets/scripts/tag/Tag.d.ts +28 -0
- package/dist/types/assets/scripts/tag/const/classNames.d.ts +12 -0
- package/dist/types/assets/scripts/tag/const/index.d.ts +4 -0
- package/dist/types/assets/scripts/tag/const/sizes.d.ts +8 -0
- package/dist/types/assets/scripts/tag/const/types.d.ts +34 -0
- package/dist/types/assets/scripts/tag/index.d.ts +4 -0
- package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +55 -0
- package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +22 -0
- package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +18 -0
- package/dist/types/assets/scripts/tooltip/const/constants.d.ts +34 -0
- package/dist/types/assets/scripts/tooltip/const/icons.d.ts +5 -0
- package/dist/types/assets/scripts/tooltip/const/index.d.ts +6 -0
- package/dist/types/assets/scripts/tooltip/const/templates.d.ts +17 -0
- package/dist/types/assets/scripts/tooltip/const/types.d.ts +15 -0
- package/dist/types/assets/scripts/tooltip/index.d.ts +7 -0
- package/dist/types/assets/scripts/tooltip/utils.d.ts +3 -0
- package/dist/types/assets/scripts/utils/selectbox/DOMRenderer.d.ts +108 -0
- package/dist/types/assets/scripts/utils/selectbox/DropdownModel.d.ts +154 -0
- package/dist/types/assets/scripts/utils/selectbox/SelectBoxController.d.ts +171 -0
- package/dist/types/assets/scripts/utils/selectbox/UnifiedSelectBox.d.ts +80 -0
- package/dist/types/constant/color.d.ts +3 -1
- package/dist/types/src/components/button/Button.d.ts +14 -12
- package/dist/types/src/components/button/ButtonGroup.d.ts +4 -289
- package/dist/types/src/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/types/src/components/combobox/ComboBox.d.ts +28 -0
- package/dist/types/src/components/combobox/index.d.ts +3 -0
- package/dist/types/src/components/date-picker/CustomInput.d.ts +12 -0
- package/dist/types/src/components/date-picker/DatePicker.d.ts +2 -0
- package/dist/types/src/components/{input → file-upload}/FileInput.d.ts +1 -1
- package/dist/types/src/components/file-upload/index.d.ts +2 -0
- package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +78 -0
- package/dist/types/src/components/image-file-input/components/ImagePreview.d.ts +6 -0
- package/dist/types/src/components/image-file-input/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts +4 -0
- package/dist/types/src/components/input/InputBase.d.ts +2 -0
- package/dist/types/src/components/input/index.d.ts +0 -1
- package/dist/types/src/components/modal/Modal.d.ts +3 -2
- package/dist/types/src/components/notification/FloatingNotification.d.ts +5 -0
- package/dist/types/src/components/notification/FullWidthNotification.d.ts +15 -1
- package/dist/types/src/components/notification/Notification.d.ts +8 -2
- package/dist/types/src/components/pagination/NavButton.d.ts +1 -4
- package/dist/types/src/components/pagination/Pagination.d.ts +2 -13
- package/dist/types/src/components/progress-bar/ProgressBar.d.ts +2 -6
- package/dist/types/src/components/progress-bar/components/SegmentBar.d.ts +8 -0
- package/dist/types/src/components/progress-bar/components/SegmentLabels.d.ts +16 -0
- package/dist/types/src/components/progress-bar/hooks/useProgressBar.d.ts +14 -0
- package/dist/types/src/components/progress-bar/index.d.ts +1 -0
- package/dist/types/src/components/progress-bar/types.d.ts +16 -0
- package/dist/types/src/components/progress-bar/utils.d.ts +13 -0
- package/dist/types/src/components/radio/Radio.d.ts +2 -3
- package/dist/types/src/components/select/Select.d.ts +1 -4
- package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +28 -0
- package/dist/types/src/components/select-dropdown/index.d.ts +2 -0
- package/dist/types/src/components/selectbox/SelectBox.d.ts +25 -0
- package/dist/types/src/components/selectbox/index.d.ts +2 -0
- package/dist/types/src/components/switch/Switch.d.ts +22 -0
- package/dist/types/src/components/switch/index.d.ts +3 -0
- package/dist/types/src/components/tab/HorizontalTab.d.ts +1 -2
- package/dist/types/src/components/tab/TabButton.d.ts +9 -12
- package/dist/types/src/components/tab/VerticalTab.d.ts +2 -2
- package/dist/types/src/components/tag/Tag.d.ts +3 -1
- package/dist/types/src/components/tooltip/Tooltip.d.ts +4 -2
- package/dist/types/src/hooks/dropdown/index.d.ts +7 -0
- package/dist/types/src/hooks/dropdown/useDropdown.d.ts +30 -0
- package/dist/types/src/hooks/dropdown/useDropdownKeyboard.d.ts +11 -0
- package/dist/types/src/hooks/dropdown/useDropdownPosition.d.ts +10 -0
- package/dist/types/src/hooks/dropdown/useOutsideClick.d.ts +6 -0
- package/dist/types/src/hooks/dropdown/useScrollLock.d.ts +5 -0
- package/dist/types/src/hooks/dropdown/useWindowResize.d.ts +8 -0
- package/dist/types/src/hooks/index.d.ts +2 -1
- package/dist/types/src/types/dropdown/dropdown.d.ts +40 -0
- package/dist/types/src/types/dropdown/index.d.ts +3 -0
- package/dist/types/src/types/dropdown/option.d.ts +20 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/utils/date-picker.d.ts +3 -0
- package/dist/types/src/utils/dropdown/dropdownUtils.d.ts +18 -0
- package/dist/types/src/utils/dropdown/index.d.ts +3 -0
- package/dist/types/src/utils/dropdown/multiSelect.d.ts +32 -0
- package/dist/types/src/utils/index.d.ts +3 -0
- package/dist/ui-admin/assets/styles/style.css +1744 -358
- package/package.json +8 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const IMAGE_FILE_INPUT_CLASS_NAMES: {
|
|
2
|
+
imageFileInput: string;
|
|
3
|
+
previews: string;
|
|
4
|
+
previewContainer: string;
|
|
5
|
+
previewImage: string;
|
|
6
|
+
previewRemoveButton: string;
|
|
7
|
+
fileInput: string;
|
|
8
|
+
inputContainer: string;
|
|
9
|
+
label: string;
|
|
10
|
+
helpIcon: string;
|
|
11
|
+
hintText: string;
|
|
12
|
+
hintList: string;
|
|
13
|
+
hintItem: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const getImageFileInputSizeClassName: (size: string) => string;
|
|
16
|
+
export declare const getFileInputSizeClassName: (size: string) => string;
|
|
17
|
+
export declare const getButtonSizeClassName: (size: string) => string;
|
|
18
|
+
export declare const getLabelClassName: (isRequired?: boolean) => "ncua-label" | "ncua-label ncua-label--required";
|
|
19
|
+
export declare const getHintTextClassName: (destructive?: boolean) => "ncua-input__hint-text" | "ncua-input__hint-text ncua-input__hint-text--destructive";
|
|
20
|
+
//# sourceMappingURL=classNames.d.ts.map
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare enum ImageFileInputErrorType {
|
|
2
|
+
ALREADY_UPLOADED = "ALREADY_UPLOADED",
|
|
3
|
+
EXCEED_MAX_FILE_SIZE = "EXCEED_MAX_FILE_SIZE",
|
|
4
|
+
EXCEED_MAX_FILE_COUNT = "EXCEED_MAX_FILE_COUNT"
|
|
5
|
+
}
|
|
6
|
+
export interface InvalidFile extends Omit<File, 'constructor'> {
|
|
7
|
+
errorType: ImageFileInputErrorType;
|
|
8
|
+
}
|
|
9
|
+
export type ImageFileInputSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
10
|
+
export type UploadedFile = {
|
|
11
|
+
fileName: string;
|
|
12
|
+
fileImageUrl?: string;
|
|
13
|
+
};
|
|
14
|
+
export interface BaseImageFileInputOptions {
|
|
15
|
+
/**
|
|
16
|
+
* Size of the input
|
|
17
|
+
*/
|
|
18
|
+
size?: ImageFileInputSize;
|
|
19
|
+
/**
|
|
20
|
+
* Accepted file types
|
|
21
|
+
* e.g. '.jpg,.png,.pdf' or 'image/*'
|
|
22
|
+
*/
|
|
23
|
+
accept?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Allow multiple file selection
|
|
26
|
+
*/
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum number of files
|
|
30
|
+
*/
|
|
31
|
+
maxFileCount?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Maximum file size in bytes
|
|
34
|
+
*/
|
|
35
|
+
maxFileSize?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Initial files (controlled mode)
|
|
38
|
+
*/
|
|
39
|
+
value?: File[];
|
|
40
|
+
/**
|
|
41
|
+
* Callback when files change (controlled mode)
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (files: File[]) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when files are selected (uncontrolled mode)
|
|
46
|
+
*/
|
|
47
|
+
onFileSelect?: (files: File[]) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback when file selection fails
|
|
50
|
+
*/
|
|
51
|
+
onFail?: (files: InvalidFile[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Label shown on the button
|
|
54
|
+
*/
|
|
55
|
+
buttonLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Label shown on the image preview
|
|
58
|
+
*/
|
|
59
|
+
imagePreviewTooltipLabel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the input is disabled
|
|
62
|
+
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Label text
|
|
66
|
+
*/
|
|
67
|
+
label?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Hint text items to display as a list
|
|
70
|
+
*/
|
|
71
|
+
hintItems?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Whether the input is required
|
|
74
|
+
*/
|
|
75
|
+
isRequired?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to show the help icon
|
|
78
|
+
*/
|
|
79
|
+
showHelpIcon?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Hint text to display
|
|
82
|
+
*/
|
|
83
|
+
hintText?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Validation state
|
|
86
|
+
*/
|
|
87
|
+
validation?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Destructive state
|
|
90
|
+
*/
|
|
91
|
+
destructive?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Name attribute for file input (for PHP form submission)
|
|
94
|
+
*/
|
|
95
|
+
fileInputName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Container element or selector to automatically append the image file input
|
|
98
|
+
* Can be a DOM element, element ID, or CSS selector
|
|
99
|
+
*/
|
|
100
|
+
container?: HTMLElement | string;
|
|
101
|
+
/**
|
|
102
|
+
* Additional CSS class names to add to the main image file input element
|
|
103
|
+
*/
|
|
104
|
+
className?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface RequiredImageFileInputProps extends Required<Pick<BaseImageFileInputOptions, 'size' | 'buttonLabel' | 'imagePreviewTooltipLabel'>> {
|
|
107
|
+
accept?: string;
|
|
108
|
+
multiple: boolean;
|
|
109
|
+
maxFileCount?: number;
|
|
110
|
+
maxFileSize?: number;
|
|
111
|
+
value?: File[];
|
|
112
|
+
onChange?: (files: File[]) => void;
|
|
113
|
+
onFileSelect?: (files: File[]) => void;
|
|
114
|
+
onFail?: (files: InvalidFile[]) => void;
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
label?: string;
|
|
117
|
+
hintItems?: string[];
|
|
118
|
+
isRequired?: boolean;
|
|
119
|
+
showHelpIcon?: boolean;
|
|
120
|
+
hintText?: string;
|
|
121
|
+
validation?: boolean;
|
|
122
|
+
destructive?: boolean;
|
|
123
|
+
fileInputName?: string;
|
|
124
|
+
className?: string;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
+
import { ComboBox } from './comboBox';
|
|
2
|
+
import { DatePicker } from './datePicker';
|
|
3
|
+
import { FeaturedIcon } from './featuredIcon';
|
|
4
|
+
import { FileInput } from './fileInput';
|
|
5
|
+
import { ImageFileInput } from './imageFileInput';
|
|
6
|
+
import { Modal } from './modal';
|
|
7
|
+
import { Notification } from './notification';
|
|
8
|
+
import { ProgressBar } from './progress-bar';
|
|
9
|
+
import { SelectBox } from './selectBox';
|
|
10
|
+
import { Slider } from './slider';
|
|
11
|
+
import { Tab } from './tab';
|
|
12
|
+
import { Tag } from './tag';
|
|
13
|
+
import { Tooltip } from './tooltip';
|
|
1
14
|
declare global {
|
|
2
15
|
interface Window {
|
|
3
|
-
ncua:
|
|
16
|
+
ncua: {
|
|
17
|
+
Slider?: typeof Slider;
|
|
18
|
+
Tab?: typeof Tab;
|
|
19
|
+
Tag?: typeof Tag;
|
|
20
|
+
DatePicker?: typeof DatePicker;
|
|
21
|
+
FeaturedIcon?: typeof FeaturedIcon;
|
|
22
|
+
FileInput?: typeof FileInput;
|
|
23
|
+
Modal?: typeof Modal;
|
|
24
|
+
Notification?: typeof Notification;
|
|
25
|
+
ProgressBar?: typeof ProgressBar;
|
|
26
|
+
Tooltip?: typeof Tooltip;
|
|
27
|
+
SelectBox?: typeof SelectBox;
|
|
28
|
+
ComboBox?: typeof ComboBox;
|
|
29
|
+
ImageFileInput?: typeof ImageFileInput;
|
|
30
|
+
};
|
|
4
31
|
}
|
|
5
32
|
}
|
|
6
|
-
export {};
|
|
7
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModalOptions } from './const/types';
|
|
2
|
+
import { ModalHeader } from './ModalHeader';
|
|
3
|
+
import { ModalContent } from './ModalContent';
|
|
4
|
+
import { ModalActions } from './ModalActions';
|
|
5
|
+
export declare class Modal {
|
|
6
|
+
private element;
|
|
7
|
+
private modalElement;
|
|
8
|
+
private isOpen;
|
|
9
|
+
private options;
|
|
10
|
+
constructor(options?: BaseModalOptions);
|
|
11
|
+
private createElement;
|
|
12
|
+
private getBackdropClasses;
|
|
13
|
+
private getModalClasses;
|
|
14
|
+
private handleBackdropClick;
|
|
15
|
+
private handleKeyDown;
|
|
16
|
+
open(): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
setContent(content: string | HTMLElement): void;
|
|
20
|
+
getElement(): HTMLDivElement;
|
|
21
|
+
getModalElement(): HTMLDivElement;
|
|
22
|
+
isModalOpen(): boolean;
|
|
23
|
+
static create(options?: BaseModalOptions): Modal;
|
|
24
|
+
static Header: typeof ModalHeader;
|
|
25
|
+
static Content: typeof ModalContent;
|
|
26
|
+
static Actions: typeof ModalActions;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ModalActionsProps } from './const/types';
|
|
2
|
+
export declare class ModalActions {
|
|
3
|
+
private wrapperElement;
|
|
4
|
+
private actionsElement;
|
|
5
|
+
private options;
|
|
6
|
+
constructor(content?: string | HTMLElement, options?: ModalActionsProps);
|
|
7
|
+
private createElement;
|
|
8
|
+
getElement(): HTMLDivElement;
|
|
9
|
+
getActionsElement(): HTMLDivElement;
|
|
10
|
+
getHTML(): string;
|
|
11
|
+
appendTo(parent: HTMLElement): void;
|
|
12
|
+
setContent(content: string | HTMLElement | HTMLElement[]): void;
|
|
13
|
+
addAction(action: string | HTMLElement): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
setCheckboxContent(content: string | HTMLElement): void;
|
|
16
|
+
addDivider(): HTMLElement;
|
|
17
|
+
static create(content?: string | HTMLElement, options?: ModalActionsProps): ModalActions;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ModalActions.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class ModalContent {
|
|
2
|
+
private element;
|
|
3
|
+
constructor(content?: string | HTMLElement);
|
|
4
|
+
private createElement;
|
|
5
|
+
getElement(): HTMLDivElement;
|
|
6
|
+
getHTML(): string;
|
|
7
|
+
appendTo(parent: HTMLElement): void;
|
|
8
|
+
setContent(content: string | HTMLElement): void;
|
|
9
|
+
clear(): void;
|
|
10
|
+
getText(): string;
|
|
11
|
+
getInnerHTML(): string;
|
|
12
|
+
static create(content?: string | HTMLElement): ModalContent;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ModalContent.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ModalHeaderProps } from './const/types';
|
|
2
|
+
export declare class ModalHeader {
|
|
3
|
+
private element;
|
|
4
|
+
private options;
|
|
5
|
+
constructor(options?: ModalHeaderProps);
|
|
6
|
+
private createElement;
|
|
7
|
+
getElement(): HTMLElement;
|
|
8
|
+
getHTML(): string;
|
|
9
|
+
appendTo(parent: HTMLElement): void;
|
|
10
|
+
setTitle(title: string): void;
|
|
11
|
+
setSubtitle(subtitle: string): void;
|
|
12
|
+
setCloseHandler(handler: () => void): void;
|
|
13
|
+
addDivider(): HTMLElement;
|
|
14
|
+
static create(options?: ModalHeaderProps): ModalHeader;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ModalHeader.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const MODAL_CLASS_NAMES: {
|
|
2
|
+
backdrop: string;
|
|
3
|
+
modal: string;
|
|
4
|
+
modalOpen: string;
|
|
5
|
+
header: string;
|
|
6
|
+
title: string;
|
|
7
|
+
titleText: string;
|
|
8
|
+
titleSubtitle: string;
|
|
9
|
+
closeButton: string;
|
|
10
|
+
headerDivider: string;
|
|
11
|
+
content: string;
|
|
12
|
+
actionsWrapper: string;
|
|
13
|
+
actionsWrapperCheckbox: string;
|
|
14
|
+
actions: string;
|
|
15
|
+
actionsDivider: string;
|
|
16
|
+
actionsCheckbox: string;
|
|
17
|
+
actionsCheckboxContent: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const getModalSizeClassNames: (size: string) => string;
|
|
20
|
+
export declare const getModalHeaderAlignClassNames: (align: string) => string;
|
|
21
|
+
export declare const getModalActionsLayoutClassNames: (layout: string) => string;
|
|
22
|
+
export declare const getModalActionsAlignClassNames: (align: string) => string;
|
|
23
|
+
//# sourceMappingURL=classNames.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ModalSize, ModalHeaderAlign, ModalActionsLayout } from '../../../../src/components/modal/Modal';
|
|
2
|
+
import { FeaturedIconOptions } from '../../featuredIcon';
|
|
3
|
+
export type { ModalSize, ModalHeaderAlign, ModalAlign, ModalActionsLayout, ModalProps as ReactModalProps, ModalHeaderProps as ReactModalHeaderProps, ModalContentProps as ReactModalContentProps, ModalActionsProps as ReactModalActionsProps, } from '../../../../src/components/modal/Modal';
|
|
4
|
+
export type { FeaturedIconOptions } from '../../featuredIcon';
|
|
5
|
+
export interface ModalProps {
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
size?: ModalSize;
|
|
8
|
+
closeOnBackdropClick?: boolean;
|
|
9
|
+
closeOnEsc?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface RequiredModalProps extends ModalProps {
|
|
15
|
+
size: ModalSize;
|
|
16
|
+
closeOnBackdropClick: boolean;
|
|
17
|
+
closeOnEsc: boolean;
|
|
18
|
+
className: string;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
}
|
|
21
|
+
export interface BaseModalOptions extends ModalProps {
|
|
22
|
+
}
|
|
23
|
+
export interface ModalHeaderProps {
|
|
24
|
+
children?: string | HTMLElement;
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
featuredIcon?: FeaturedIconOptions;
|
|
27
|
+
align?: ModalHeaderAlign;
|
|
28
|
+
title?: string;
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
showDivider?: boolean;
|
|
31
|
+
hideCloseButton?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ModalContentProps {
|
|
34
|
+
children: string | HTMLElement;
|
|
35
|
+
}
|
|
36
|
+
export interface RequiredModalHeaderProps extends ModalHeaderProps {
|
|
37
|
+
children?: string | HTMLElement;
|
|
38
|
+
onClose?: () => void;
|
|
39
|
+
featuredIcon?: FeaturedIconOptions;
|
|
40
|
+
align: ModalHeaderAlign;
|
|
41
|
+
title: string;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
showDivider: boolean;
|
|
44
|
+
hideCloseButton: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface ModalActionsProps {
|
|
47
|
+
children?: string | HTMLElement | HTMLElement[];
|
|
48
|
+
layout?: ModalActionsLayout;
|
|
49
|
+
showDivider?: boolean;
|
|
50
|
+
align?: 'left' | 'center' | 'right' | 'stretch';
|
|
51
|
+
fullWidth?: boolean;
|
|
52
|
+
checkboxContent?: string | HTMLElement;
|
|
53
|
+
}
|
|
54
|
+
export interface RequiredModalActionsProps extends ModalActionsProps {
|
|
55
|
+
children?: string | HTMLElement | HTMLElement[];
|
|
56
|
+
layout: ModalActionsLayout;
|
|
57
|
+
showDivider: boolean;
|
|
58
|
+
align: 'left' | 'center' | 'right' | 'stretch';
|
|
59
|
+
fullWidth: boolean;
|
|
60
|
+
checkboxContent: string | HTMLElement | undefined;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Modal } from './Modal';
|
|
2
|
+
import { ModalHeader } from './ModalHeader';
|
|
3
|
+
import { ModalContent } from './ModalContent';
|
|
4
|
+
import { ModalActions } from './ModalActions';
|
|
5
|
+
export { Modal, ModalHeader, ModalContent, ModalActions };
|
|
6
|
+
export type { ModalProps, ModalHeaderProps, ModalContentProps, ModalActionsProps, ModalSize, ModalHeaderAlign, ModalActionsLayout, FeaturedIconOptions, } from './const/types';
|
|
7
|
+
export * from './const';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 문자열이 HTML 태그를 포함하는지 확인
|
|
3
|
+
*/
|
|
4
|
+
export declare function isHTMLString(str: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 요소에 콘텐츠를 안전하게 설정
|
|
7
|
+
* HTML 구조면 innerHTML, 일반 텍스트면 textContent 사용
|
|
8
|
+
* HTMLElement인 경우 outerHTML을 사용하여 string으로 변환
|
|
9
|
+
*/
|
|
10
|
+
export declare function setElementContent(element: HTMLElement, content: string | HTMLElement): void;
|
|
11
|
+
//# sourceMappingURL=contentUtils.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseNotificationOptions } from './const';
|
|
2
|
+
export interface FloatingNotificationOptions extends BaseNotificationOptions {
|
|
3
|
+
type?: 'floating';
|
|
4
|
+
}
|
|
5
|
+
export declare class FloatingNotification {
|
|
6
|
+
private element;
|
|
7
|
+
private options;
|
|
8
|
+
private autoCloseTimer?;
|
|
9
|
+
private featuredIcon?;
|
|
10
|
+
private mobileCleanup?;
|
|
11
|
+
constructor(options: FloatingNotificationOptions);
|
|
12
|
+
private createElement;
|
|
13
|
+
private buildTemplate;
|
|
14
|
+
private renderCloseButton;
|
|
15
|
+
private setupMobileListener;
|
|
16
|
+
private updateMobileStyles;
|
|
17
|
+
private bindEvents;
|
|
18
|
+
private setupAutoClose;
|
|
19
|
+
getElement(): HTMLElement;
|
|
20
|
+
appendTo(parent: HTMLElement): void;
|
|
21
|
+
remove(): void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
static create(options: FloatingNotificationOptions): FloatingNotification;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=FloatingNotification.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
22
|
+
//# sourceMappingURL=FullWidthNotification.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NotificationColor, BaseNotificationOptions } from './const';
|
|
2
|
+
export interface NotificationOptions extends BaseNotificationOptions {
|
|
3
|
+
type?: 'full-width' | 'floating';
|
|
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
|
+
}
|
|
22
|
+
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
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 COMMON: {
|
|
27
|
+
readonly ACTION_BUTTON: "ncua-notification__action-button";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=classNames.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
26
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { NotificationColor, NotificationHierarchy, NotificationAction, BaseNotificationOptions } from './types';
|
|
2
|
+
export { SVG_ICONS, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP, ICON_MAP } from './icons';
|
|
3
|
+
export { CLASS_NAMES } from './classNames';
|
|
4
|
+
export { FEATURED_ICON_SIZES, ICON_PIXEL_SIZES, CLOSE_BUTTON_SIZES, CLOSE_BUTTON_SVG_SIZES, FULL_WIDTH_SIZES, getSizes, } from './sizes';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const FEATURED_ICON_SIZES: {
|
|
2
|
+
readonly MOBILE: "md";
|
|
3
|
+
readonly DESKTOP: "sm";
|
|
4
|
+
};
|
|
5
|
+
export declare const ICON_PIXEL_SIZES: {
|
|
6
|
+
readonly MOBILE: "20";
|
|
7
|
+
readonly DESKTOP: "16";
|
|
8
|
+
readonly FULL_WIDTH: "16";
|
|
9
|
+
};
|
|
10
|
+
export declare const CLOSE_BUTTON_SIZES: {
|
|
11
|
+
readonly MOBILE: "sm";
|
|
12
|
+
readonly DESKTOP: "xs";
|
|
13
|
+
};
|
|
14
|
+
export declare const CLOSE_BUTTON_SVG_SIZES: {
|
|
15
|
+
readonly xs: 16;
|
|
16
|
+
readonly sm: 20;
|
|
17
|
+
};
|
|
18
|
+
export declare const FULL_WIDTH_SIZES: {
|
|
19
|
+
readonly ICON: "16";
|
|
20
|
+
readonly CLOSE_BUTTON: "20";
|
|
21
|
+
};
|
|
22
|
+
export declare const getSizes: {
|
|
23
|
+
readonly featuredIcon: (isMobile: boolean) => "sm" | "md";
|
|
24
|
+
readonly iconPixel: (isMobile: boolean) => "16" | "20";
|
|
25
|
+
readonly closeButton: (isMobile: boolean) => "xs" | "sm";
|
|
26
|
+
readonly closeButtonSvg: (size: keyof typeof CLOSE_BUTTON_SVG_SIZES) => 16 | 20;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=sizes.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type NotificationColor = 'neutral' | 'error' | 'warning' | 'success' | 'info';
|
|
2
|
+
export type NotificationHierarchy = 'link' | 'link-gray';
|
|
3
|
+
export interface NotificationAction {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
hierarchy?: NotificationHierarchy;
|
|
7
|
+
}
|
|
8
|
+
export interface BaseNotificationOptions {
|
|
9
|
+
title: string;
|
|
10
|
+
supportingText?: string;
|
|
11
|
+
color?: NotificationColor;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
actions?: NotificationAction[];
|
|
15
|
+
autoClose?: number;
|
|
16
|
+
supportTextLink?: string;
|
|
17
|
+
onHidePermanently?: () => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Notification, type NotificationOptions } from './Notification';
|
|
2
|
+
export { FullWidthNotification, type FullWidthNotificationOptions } from './FullWidthNotification';
|
|
3
|
+
export { FloatingNotification, type FloatingNotificationOptions } from './FloatingNotification';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export type { NotificationColor, NotificationHierarchy, NotificationAction, BaseNotificationOptions } from './const';
|
|
6
|
+
export { SVG_ICONS, CLASS_NAMES, ICON_MAP, FLOATING_ICON_MAP, FULL_WIDTH_ICON_MAP } from './const';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NotificationColor, NotificationAction } from './const';
|
|
2
|
+
export declare function createWrapperElement(baseClass: string, color: NotificationColor, className?: string): HTMLElement;
|
|
3
|
+
export declare function buildClassName(baseClass: string, color: NotificationColor, className?: string): string;
|
|
4
|
+
export declare function renderSupportingText(supportingText?: string, className?: string, supportTextLink?: string): string;
|
|
5
|
+
export declare function renderActions(actions: NotificationAction[], wrapperClass: string): string;
|
|
6
|
+
export declare function bindNotificationEvents(element: HTMLElement, actions: NotificationAction[], onClose?: () => void, onRemove?: () => void): void;
|
|
7
|
+
export declare function setupAutoClose(autoClose: number, onClose?: () => void, onRemove?: () => void): number | undefined;
|
|
8
|
+
export declare const isMobile: () => boolean;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar 클래스
|
|
3
|
+
* 프로그레스 바를 생성하고 관리하는 역할을 합니다.
|
|
4
|
+
*/
|
|
5
|
+
export type ProgressLabel = 'right' | 'bottom' | 'top-float' | 'bottom-float';
|
|
6
|
+
export interface ProgressSegment {
|
|
7
|
+
value: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProcessedSegment extends ProgressSegment {
|
|
11
|
+
width: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ProgressBarOptions {
|
|
14
|
+
label?: ProgressLabel;
|
|
15
|
+
value?: number;
|
|
16
|
+
segments?: ProgressSegment[];
|
|
17
|
+
showZeroLabel?: boolean;
|
|
18
|
+
valueToPercent?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ProgressBar 클래스
|
|
22
|
+
*/
|
|
23
|
+
export declare class ProgressBar {
|
|
24
|
+
private options;
|
|
25
|
+
private element;
|
|
26
|
+
constructor(options?: ProgressBarOptions);
|
|
27
|
+
/**
|
|
28
|
+
* segments 처리 로직
|
|
29
|
+
*/
|
|
30
|
+
private processSegments;
|
|
31
|
+
/**
|
|
32
|
+
* 단일 라벨 HTML 생성
|
|
33
|
+
*/
|
|
34
|
+
private renderSingleLabel;
|
|
35
|
+
/**
|
|
36
|
+
* segments 라벨 HTML 생성
|
|
37
|
+
*/
|
|
38
|
+
private renderSegmentLabels;
|
|
39
|
+
/**
|
|
40
|
+
* segment bar HTML 생성
|
|
41
|
+
*/
|
|
42
|
+
private renderSegmentBar;
|
|
43
|
+
/**
|
|
44
|
+
* HTML 문자열 생성
|
|
45
|
+
*/
|
|
46
|
+
toHTML(): string;
|
|
47
|
+
/**
|
|
48
|
+
* DOM 요소 생성
|
|
49
|
+
*/
|
|
50
|
+
toElement(): HTMLElement;
|
|
51
|
+
/**
|
|
52
|
+
* 요소 반환
|
|
53
|
+
*/
|
|
54
|
+
getElement(): HTMLElement | null;
|
|
55
|
+
/**
|
|
56
|
+
* 옵션 업데이트
|
|
57
|
+
*/
|
|
58
|
+
updateOptions(newOptions: Partial<ProgressBarOptions>): void;
|
|
59
|
+
/**
|
|
60
|
+
* Static factory method
|
|
61
|
+
*/
|
|
62
|
+
static create(options?: ProgressBarOptions): ProgressBar;
|
|
63
|
+
/**
|
|
64
|
+
* Static method: HTML 문자열 생성
|
|
65
|
+
*/
|
|
66
|
+
static toHTML(options: ProgressBarOptions): string;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=ProgressBar.d.ts.map
|