@ncds/ui-admin 1.3.0 → 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,28 @@
|
|
|
1
|
+
import { Size } from '@ncds/ui/constant/size';
|
|
2
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
3
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
4
|
+
import { OptionChangeHandler, OptionType, OptionValue } from '../../types/dropdown';
|
|
5
|
+
export declare const defaultMaxHeight = 275;
|
|
6
|
+
type BaseComboBoxProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onChange'>;
|
|
7
|
+
export interface ComboBoxProps extends PropsWithChildren<BaseComboBoxProps> {
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
hintText?: string;
|
|
10
|
+
destructive?: boolean;
|
|
11
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
12
|
+
optionItems?: OptionType[];
|
|
13
|
+
value?: OptionValue;
|
|
14
|
+
onChange?: OptionChangeHandler;
|
|
15
|
+
onSearch?: (searchValue: string) => void;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
register?: UseFormRegisterReturn;
|
|
18
|
+
maxHeight?: number;
|
|
19
|
+
searchValue?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
showFooterButtons?: boolean;
|
|
24
|
+
onEdit?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const ComboBox: import("react").ForwardRefExoticComponent<Omit<ComboBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from 'react';
|
|
2
|
+
import type { IconName } from '@ncds/ui-admin-icon/dynamic';
|
|
3
|
+
import type { Size } from '../../../constant/size';
|
|
4
|
+
interface CustomInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
iconName: Extract<IconName, 'calendar' | 'clock'>;
|
|
7
|
+
iconSize: Extract<Size, 'xs' | 'sm'>;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const CustomInput: import("react").ForwardRefExoticComponent<CustomInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=CustomInput.d.ts.map
|
|
@@ -6,6 +6,8 @@ export type DatePickerProps = {
|
|
|
6
6
|
shouldFocus?: boolean;
|
|
7
7
|
currentDate: string;
|
|
8
8
|
datePickerOptions?: Options;
|
|
9
|
+
destructive?: string;
|
|
10
|
+
placeholder?: string;
|
|
9
11
|
onChangeDate: (date: string) => void;
|
|
10
12
|
} & Omit<DateTimePickerProps, 'size' | 'options' | 'value'>;
|
|
11
13
|
export declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & import("react").RefAttributes<DateTimePickerHandle>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { InputBaseProps } from '../input/InputBase';
|
|
2
|
+
export declare enum ImageFileInputErrorType {
|
|
3
|
+
ALREADY_UPLOADED = "ALREADY_UPLOADED",
|
|
4
|
+
EXCEED_MAX_FILE_SIZE = "EXCEED_MAX_FILE_SIZE",
|
|
5
|
+
EXCEED_MAX_FILE_COUNT = "EXCEED_MAX_FILE_COUNT"
|
|
6
|
+
}
|
|
7
|
+
export interface InvalidFile extends Omit<File, 'constructor'> {
|
|
8
|
+
errorType: ImageFileInputErrorType;
|
|
9
|
+
}
|
|
10
|
+
export interface ImageFileInputProps extends Omit<InputBaseProps, 'clearText' | 'onClearText' | 'hintText' | 'value' | 'onChange'> {
|
|
11
|
+
/**
|
|
12
|
+
* Accepted file types
|
|
13
|
+
* e.g. '.jpg,.png,.pdf' or 'image/*'
|
|
14
|
+
*/
|
|
15
|
+
accept?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of files
|
|
18
|
+
*/
|
|
19
|
+
maxFileCount?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum file size in bytes
|
|
22
|
+
*/
|
|
23
|
+
maxFileSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Current files (controlled mode)
|
|
26
|
+
*/
|
|
27
|
+
value?: File[];
|
|
28
|
+
/**
|
|
29
|
+
* Callback when files change (controlled mode)
|
|
30
|
+
*/
|
|
31
|
+
onChange?: (files: File[]) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when files are selected (uncontrolled mode)
|
|
34
|
+
*/
|
|
35
|
+
onFileSelect?: (files: File[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when file selection fails
|
|
38
|
+
*/
|
|
39
|
+
onFail?: (files: InvalidFile[]) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Label shown on the button
|
|
42
|
+
*/
|
|
43
|
+
buttonLabel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Label shown on the image preview
|
|
46
|
+
*/
|
|
47
|
+
imagePreviewTooltipLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Hint text items to display as a list
|
|
50
|
+
*/
|
|
51
|
+
hintItems?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Whether the input is required
|
|
54
|
+
*/
|
|
55
|
+
isRequired?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show the help icon
|
|
58
|
+
*/
|
|
59
|
+
showHelpIcon?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Hint text to display
|
|
62
|
+
*/
|
|
63
|
+
hintText?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to show the file tag list
|
|
66
|
+
*/
|
|
67
|
+
showFileTagList?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to show the hint text
|
|
70
|
+
*/
|
|
71
|
+
showHintText?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to show the file input section
|
|
74
|
+
*/
|
|
75
|
+
showFileInput?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export declare const ImageFileInput: import("react").ForwardRefExoticComponent<ImageFileInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
78
|
+
//# sourceMappingURL=ImageFileInput.d.ts.map
|
|
@@ -3,6 +3,7 @@ export * from './breadcrumb';
|
|
|
3
3
|
export * from './button';
|
|
4
4
|
export * from './carousel';
|
|
5
5
|
export * from './checkbox';
|
|
6
|
+
export * from './combobox';
|
|
6
7
|
export * from './date-picker';
|
|
7
8
|
export * from './divider';
|
|
8
9
|
export * from './dot';
|
|
@@ -17,9 +18,12 @@ export * from './progress-bar';
|
|
|
17
18
|
export * from './progress-circle';
|
|
18
19
|
export * from './radio';
|
|
19
20
|
export * from './select';
|
|
21
|
+
export * from './select-dropdown';
|
|
22
|
+
export * from './selectbox';
|
|
20
23
|
export * from './shared';
|
|
21
24
|
export * from './slider';
|
|
22
25
|
export * from './spinner';
|
|
26
|
+
export * from './switch';
|
|
23
27
|
export * from './tab';
|
|
24
28
|
export * from './tag';
|
|
25
29
|
export * from './toggle';
|
|
@@ -37,6 +37,8 @@ interface InputBaseCommonProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
37
37
|
leadingElement?: InputLeadingSlotType;
|
|
38
38
|
trailingElement?: InputTrailingSlotType;
|
|
39
39
|
showHelpIcon?: boolean;
|
|
40
|
+
showTextCount?: boolean;
|
|
41
|
+
maxLength?: number;
|
|
40
42
|
}
|
|
41
43
|
interface NoneClearableInputBaseProps extends InputBaseCommonProps {
|
|
42
44
|
clearText?: never;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IconName } from '@ncds/ui-admin-icon/dynamic';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { FeaturedIconColor, FeaturedIconTheme } from '../featured-icon';
|
|
4
|
-
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
5
|
export type ModalHeaderAlign = 'left' | 'center' | 'horizontal';
|
|
6
6
|
export type ModalAlign = 'center' | 'right' | 'stretch';
|
|
7
7
|
export type ModalActionsLayout = 'vertical' | 'horizontal' | 'checkbox';
|
|
@@ -13,9 +13,10 @@ export type ModalProps = {
|
|
|
13
13
|
closeOnBackdropClick?: boolean;
|
|
14
14
|
closeOnEsc?: boolean;
|
|
15
15
|
className?: string;
|
|
16
|
+
zIndex?: number;
|
|
16
17
|
};
|
|
17
18
|
export declare const Modal: {
|
|
18
|
-
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, ...restProps }: ModalProps): import("react").ReactPortal | null;
|
|
19
|
+
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
|
|
19
20
|
Header({ children, onClose, featuredIcon, title, subtitle, align, showDivider, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
Content({ children }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
/**
|
|
@@ -26,6 +26,11 @@ export interface FloatingNotificationProps extends Omit<ComponentPropsWithoutRef
|
|
|
26
26
|
* 버튼 영역 (선택사항)
|
|
27
27
|
*/
|
|
28
28
|
actions?: NotificationAction[];
|
|
29
|
+
/**
|
|
30
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
autoClose?: number;
|
|
29
34
|
}
|
|
30
35
|
export declare const FloatingNotification: import("react").ForwardRefExoticComponent<FloatingNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
36
|
//# sourceMappingURL=FloatingNotification.d.ts.map
|
|
@@ -10,7 +10,7 @@ export interface FullWidthNotificationProps extends Omit<ComponentPropsWithoutRe
|
|
|
10
10
|
*/
|
|
11
11
|
supportingText?: ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* 알림 색상 스타일
|
|
13
|
+
* 알림 색상 스타일 (neutral, error, warning, success, info)
|
|
14
14
|
* @default 'neutral'
|
|
15
15
|
*/
|
|
16
16
|
color?: NotificationColor;
|
|
@@ -26,6 +26,20 @@ export interface FullWidthNotificationProps extends Omit<ComponentPropsWithoutRe
|
|
|
26
26
|
* 버튼 영역 (선택사항)
|
|
27
27
|
*/
|
|
28
28
|
actions?: NotificationAction[];
|
|
29
|
+
/**
|
|
30
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
31
|
+
* full-width 타입에서는 일반적으로 사용하지 않음 (중요한 공지사항이므로)
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
autoClose?: number;
|
|
35
|
+
/**
|
|
36
|
+
* info 링크 영역 (선택사항)
|
|
37
|
+
*/
|
|
38
|
+
supportTextLink?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 다시보지 않기 이벤트 핸들러 (선택사항)
|
|
41
|
+
*/
|
|
42
|
+
onHidePermanently?: () => void;
|
|
29
43
|
}
|
|
30
44
|
export declare const FullWidthNotification: import("react").ForwardRefExoticComponent<FullWidthNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
45
|
//# sourceMappingURL=FullWidthNotification.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
|
3
3
|
import { ColorTone } from '../../../constant/color';
|
|
4
4
|
import { ButtonTheme } from '../button';
|
|
5
5
|
export type NotificationType = 'floating' | 'full-width';
|
|
6
|
-
export type NotificationColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success'>;
|
|
6
|
+
export type NotificationColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'info'>;
|
|
7
7
|
export type NotificationSize = 'desktop' | 'mobile';
|
|
8
8
|
export interface NotificationAction {
|
|
9
9
|
/**
|
|
@@ -17,7 +17,7 @@ export interface NotificationAction {
|
|
|
17
17
|
/**
|
|
18
18
|
* 액션 버튼 색상 (3가지만 지원)
|
|
19
19
|
*/
|
|
20
|
-
hierarchy?: Extract<ButtonTheme, '
|
|
20
|
+
hierarchy?: Extract<ButtonTheme, 'text' | 'text-gray'>;
|
|
21
21
|
}
|
|
22
22
|
export interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
23
23
|
/**
|
|
@@ -55,6 +55,12 @@ export interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>,
|
|
|
55
55
|
* NotificationAction[]
|
|
56
56
|
*/
|
|
57
57
|
actions?: NotificationAction[];
|
|
58
|
+
/**
|
|
59
|
+
* 자동 닫기 시간 (밀리초 단위, 0이면 자동으로 닫히지 않음)
|
|
60
|
+
* floating 타입에서만 동작
|
|
61
|
+
* @default 0
|
|
62
|
+
*/
|
|
63
|
+
autoClose?: number;
|
|
58
64
|
}
|
|
59
65
|
export declare const Notification: import("react").ForwardRefExoticComponent<NotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
66
|
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -20,14 +20,11 @@ declare const NAV_BUTTON_CONFIG: {
|
|
|
20
20
|
readonly getIcon: (isPC: boolean) => string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare const NavButton: ({ type,
|
|
23
|
+
export declare const NavButton: ({ type, breakPoint, noPrev, noNext, onClick, }: {
|
|
24
24
|
type: keyof typeof NAV_BUTTON_CONFIG;
|
|
25
|
-
as: 'button' | 'a';
|
|
26
25
|
breakPoint: 'pc' | 'mo';
|
|
27
26
|
noPrev: boolean;
|
|
28
27
|
noNext: boolean;
|
|
29
|
-
href: string;
|
|
30
|
-
target: string;
|
|
31
28
|
onClick: () => void;
|
|
32
29
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
30
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type
|
|
1
|
+
type PaginationProps = {
|
|
2
2
|
className?: string;
|
|
3
3
|
totalCount: number;
|
|
4
4
|
itemCountPerPage?: number;
|
|
@@ -7,17 +7,6 @@ type CommonPaginationProps = {
|
|
|
7
7
|
breakPoint?: 'pc' | 'mo';
|
|
8
8
|
onPageChange?: (page: number) => void;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
as?: 'button';
|
|
12
|
-
href?: never;
|
|
13
|
-
target?: never;
|
|
14
|
-
};
|
|
15
|
-
type PaginationAnchorProps = CommonPaginationProps & {
|
|
16
|
-
as: 'a';
|
|
17
|
-
href: string;
|
|
18
|
-
target?: string;
|
|
19
|
-
};
|
|
20
|
-
type PaginationProps = PaginationButtonProps | PaginationAnchorProps;
|
|
21
|
-
export declare const Pagination: ({ className, totalCount, itemCountPerPage, pageCount, currentPage, as, breakPoint, onPageChange, ...restProps }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Pagination: ({ className, totalCount, itemCountPerPage, pageCount, currentPage, breakPoint, onPageChange, ...restProps }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
11
|
export {};
|
|
23
12
|
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
label?: ProgressLabel;
|
|
4
|
-
value: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const ProgressBar: ({ label, value }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ProgressBarProps } from './types';
|
|
2
|
+
export declare const ProgressBar: ({ label, value, segments, showZeroLabel, valueToPercent, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
3
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProcessedSegment } from '../types';
|
|
2
|
+
interface SegmentBarProps {
|
|
3
|
+
segments: ProcessedSegment[];
|
|
4
|
+
shouldSpaceOut: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const SegmentBar: ({ segments, shouldSpaceOut }: SegmentBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SegmentBar.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProcessedSegment, ProgressLabel } from '../types';
|
|
2
|
+
interface SegmentLabelsProps {
|
|
3
|
+
segments: ProcessedSegment[];
|
|
4
|
+
segmentCount: number;
|
|
5
|
+
showZeroLabel?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const SegmentLabels: ({ segments, segmentCount, showZeroLabel }: SegmentLabelsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
interface SingleLabelProps {
|
|
9
|
+
labelType: ProgressLabel;
|
|
10
|
+
displayValue: string;
|
|
11
|
+
totalValue?: number;
|
|
12
|
+
showZeroLabel?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const SingleLabel: ({ labelType, displayValue, totalValue, showZeroLabel }: SingleLabelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SegmentLabels.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProgressLabel, ProgressSegment, ProcessedSegment } from '../types';
|
|
2
|
+
interface UseProgressBarResult {
|
|
3
|
+
totalValue: number;
|
|
4
|
+
displayValue: string;
|
|
5
|
+
processedSegments: ProcessedSegment[];
|
|
6
|
+
effectiveLabel?: ProgressLabel;
|
|
7
|
+
progressValueStyle?: React.CSSProperties;
|
|
8
|
+
hasSegments: boolean;
|
|
9
|
+
segmentCount: number;
|
|
10
|
+
shouldSpaceOut: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const useProgressBar: (label?: ProgressLabel, value?: number, segments?: ProgressSegment[], valueToPercent?: boolean) => UseProgressBarResult;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useProgressBar.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ProgressLabel = 'right' | 'bottom' | 'top-float' | 'bottom-float';
|
|
2
|
+
export interface ProgressSegment {
|
|
3
|
+
value: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ProcessedSegment extends ProgressSegment {
|
|
7
|
+
width: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ProgressBarProps {
|
|
10
|
+
label?: ProgressLabel;
|
|
11
|
+
value?: number;
|
|
12
|
+
segments?: ProgressSegment[];
|
|
13
|
+
showZeroLabel?: boolean;
|
|
14
|
+
valueToPercent?: boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 색상 이름을 fill 색상 클래스명으로 변환
|
|
3
|
+
*/
|
|
4
|
+
export declare const getFillColorClass: (color?: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* 색상 이름을 label 색상 클래스명으로 변환
|
|
7
|
+
*/
|
|
8
|
+
export declare const getLabelColorClass: (color?: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* 값을 0-100 범위로 제한
|
|
11
|
+
*/
|
|
12
|
+
export declare const clampValue: (value: number) => number;
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
2
2
|
import { RadioInputProps } from './RadioInput';
|
|
3
3
|
export interface RadioProps extends Omit<RadioInputProps, 'type'> {
|
|
4
4
|
text?: ReactNode;
|
|
5
5
|
supportText?: string;
|
|
6
|
-
radioRef?: RefCallback<HTMLInputElement> | MutableRefObject<HTMLInputElement | null>;
|
|
7
6
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
8
7
|
}
|
|
9
|
-
export declare const Radio: (
|
|
8
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
9
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Size } from '@ncds/ui/constant/size';
|
|
2
2
|
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
3
3
|
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
4
|
+
import { OptionType } from '../../types/dropdown';
|
|
4
5
|
type BaseSelectProps = Omit<ComponentPropsWithRef<'select'>, 'size'>;
|
|
5
|
-
export type OptionType = {
|
|
6
|
-
id: string | number;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
6
|
export interface SelectProps extends PropsWithChildren<BaseSelectProps> {
|
|
10
7
|
placeholder?: string;
|
|
11
8
|
disabledPlaceholder?: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { DropdownDirection, OptionSelectHandler, OptionType, OptionValue } from '../../types/dropdown';
|
|
3
|
+
export type { DropdownDirection };
|
|
4
|
+
export type SelectDropdownProps = ComponentPropsWithRef<'div'> & {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
direction?: DropdownDirection;
|
|
7
|
+
size?: 'xs' | 'sm' | 'md';
|
|
8
|
+
options: OptionType[];
|
|
9
|
+
value?: OptionValue;
|
|
10
|
+
focusedIndex: number;
|
|
11
|
+
maxHeight?: number;
|
|
12
|
+
listboxId?: string;
|
|
13
|
+
onOptionSelect: OptionSelectHandler;
|
|
14
|
+
onMouseMove?: () => void;
|
|
15
|
+
isKeyboardNavigation?: () => boolean;
|
|
16
|
+
onOptionHover?: (validIndex: number) => void;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
showFooterButtons?: boolean;
|
|
20
|
+
selectAllButtonText?: string;
|
|
21
|
+
onSelectAll?: () => void;
|
|
22
|
+
onEdit?: () => void;
|
|
23
|
+
onComplete?: () => void;
|
|
24
|
+
activeDescendantId?: string;
|
|
25
|
+
componentType?: 'selectbox' | 'combobox';
|
|
26
|
+
};
|
|
27
|
+
export declare const SelectDropdown: import("react").ForwardRefExoticComponent<Omit<SelectDropdownProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
//# sourceMappingURL=SelectDropdown.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Size } from '@ncds/ui-admin/constant/size';
|
|
2
|
+
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
3
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
4
|
+
import { OptionChangeHandler, OptionType, OptionValue } from '../../types/dropdown';
|
|
5
|
+
export declare const DEFAULT_MAX_HEIGHT = 275;
|
|
6
|
+
type BaseSelectBoxProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onChange'>;
|
|
7
|
+
export type SelectBoxProps = PropsWithChildren<BaseSelectBoxProps> & {
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabledPlaceholder?: boolean;
|
|
10
|
+
hintText?: string;
|
|
11
|
+
destructive?: boolean;
|
|
12
|
+
size?: Extract<Size, 'xs' | 'sm' | 'md'>;
|
|
13
|
+
type?: 'default' | 'simple';
|
|
14
|
+
optionItems?: OptionType[];
|
|
15
|
+
value?: OptionValue;
|
|
16
|
+
onChange?: OptionChangeHandler;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
register?: UseFormRegisterReturn;
|
|
19
|
+
maxHeight?: number;
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
onEdit?: () => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const SelectBox: import("react").ForwardRefExoticComponent<Omit<SelectBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=SelectBox.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { Size } from 'ui-admin/constant/size';
|
|
3
|
+
type SwitchOption = {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: string | boolean;
|
|
6
|
+
};
|
|
7
|
+
export type SwitchSize = Extract<Size, 'xxs' | 'xs' | 'sm' | 'md'>;
|
|
8
|
+
export type SwitchProps = {
|
|
9
|
+
size?: SwitchSize;
|
|
10
|
+
left: SwitchOption;
|
|
11
|
+
right: SwitchOption;
|
|
12
|
+
onChange?: (value: string | boolean) => void;
|
|
13
|
+
name: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
value?: string | boolean;
|
|
16
|
+
defaultValue?: string | boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
refs?: [Ref<HTMLInputElement>, Ref<HTMLInputElement>];
|
|
19
|
+
};
|
|
20
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -5,7 +5,6 @@ export type HorizontalTabProps = {
|
|
|
5
5
|
activeTab?: string;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
menus?: Array<TabButtonProps>;
|
|
8
|
-
onClick?: (id: string) => void;
|
|
9
8
|
};
|
|
10
|
-
export declare const HorizontalTab: ({ type, size, activeTab,
|
|
9
|
+
export declare const HorizontalTab: ({ type, size, activeTab, fullWidth, menus, }: HorizontalTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
//# sourceMappingURL=HorizontalTab.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { BadgeProps } from '../badge/Badge';
|
|
3
3
|
export type TabSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export type TabType = 'button-primary' | 'button-white' | 'underline' | 'underline-fill' | 'line-vertical';
|
|
5
|
-
|
|
5
|
+
type BaseTabButtonProps = {
|
|
6
6
|
id?: string;
|
|
7
7
|
label: string;
|
|
8
8
|
size?: TabSize;
|
|
@@ -11,16 +11,13 @@ interface CommonProps {
|
|
|
11
11
|
badgeInfo?: BadgeProps;
|
|
12
12
|
className?: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export type TabButtonProps
|
|
22
|
-
href?: never;
|
|
23
|
-
}) | TabButtonAsLinkProps;
|
|
24
|
-
export declare const TabButton: ({ label, size, tabButtonType, type, isActive, badgeInfo, className, children, ...props }: TabButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export type TabButtonAsButtonProps = BaseTabButtonProps & {
|
|
16
|
+
onClose?: (id: string) => void;
|
|
17
|
+
onClick?: (id: string) => void;
|
|
18
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>;
|
|
19
|
+
export type TabButtonAsLinkProps = BaseTabButtonProps & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
20
|
+
export type TabButtonProps = TabButtonAsButtonProps | TabButtonAsLinkProps;
|
|
21
|
+
export declare const TabButton: ({ id, label, size, tabButtonType, type, isActive, badgeInfo, className, children, ...props }: TabButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
22
|
export {};
|
|
26
23
|
//# sourceMappingURL=TabButton.d.ts.map
|
|
@@ -4,7 +4,7 @@ export type VerticalTabProps = {
|
|
|
4
4
|
breakPoint?: 'mobile' | 'pc';
|
|
5
5
|
activeTab?: string;
|
|
6
6
|
menus?: Array<TabButtonProps>;
|
|
7
|
-
|
|
7
|
+
onSelect?: (value: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const VerticalTab: ({ type, breakPoint, activeTab, menus,
|
|
9
|
+
export declare const VerticalTab: ({ type, breakPoint, activeTab, menus, onSelect, }: VerticalTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=VerticalTab.d.ts.map
|
|
@@ -9,7 +9,9 @@ interface TagProps {
|
|
|
9
9
|
close?: boolean;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
onButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
maxLength?: number;
|
|
12
13
|
}
|
|
13
|
-
export
|
|
14
|
+
export type CalculatedPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
15
|
+
export declare const Tag: ({ size, icon, text, count, close, onButtonClick, maxLength }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|
|
15
17
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
interface TooltipProps {
|
|
2
2
|
tooltipType?: 'white' | 'black';
|
|
3
3
|
iconType?: 'stroke' | 'fill';
|
|
4
|
-
position?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
|
+
position?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'auto';
|
|
5
5
|
size?: 'sm' | 'md';
|
|
6
6
|
hideArrow?: boolean;
|
|
7
7
|
title?: string;
|
|
8
8
|
content?: string;
|
|
9
|
+
type?: 'long' | 'short';
|
|
10
|
+
className?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, type, className, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=Tooltip.d.ts.map
|