@ncds/ui-admin 0.0.34 → 0.0.36
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/datePicker.js +248 -0
- package/dist/cjs/assets/scripts/index.js +10 -0
- package/dist/cjs/assets/scripts/slider.js +332 -0
- package/dist/cjs/assets/scripts/tab.js +40 -0
- package/dist/cjs/constant/color.js +38 -0
- package/dist/cjs/constant/size.js +5 -0
- package/dist/cjs/index.js +313 -0
- package/dist/cjs/src/components/badge/Badge.js +52 -0
- package/dist/cjs/src/components/badge/BadgeGroup.js +62 -0
- package/dist/cjs/src/components/badge/index.js +27 -0
- package/dist/cjs/src/components/badge/utils.js +33 -0
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +67 -0
- package/dist/cjs/src/components/breadcrumb/index.js +16 -0
- package/dist/cjs/src/components/button/Button.js +127 -0
- package/dist/cjs/src/components/button/ButtonCloseX.js +44 -0
- package/dist/cjs/src/components/button/ButtonGroup.js +121 -0
- package/dist/cjs/src/components/button/index.js +27 -0
- package/dist/cjs/src/components/carousel/CarouselArrow.js +41 -0
- package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +46 -0
- package/dist/cjs/src/components/carousel/index.js +27 -0
- package/dist/cjs/src/components/checkbox/Checkbox.js +70 -0
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +96 -0
- package/dist/cjs/src/components/checkbox/index.js +27 -0
- package/dist/cjs/src/components/date-picker/DatePicker.js +86 -0
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +136 -0
- package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +92 -0
- package/dist/cjs/src/components/date-picker/index.js +49 -0
- package/dist/cjs/src/components/date-picker/utils.js +18 -0
- package/dist/cjs/src/components/divider/Divider.js +47 -0
- package/dist/cjs/src/components/divider/index.js +16 -0
- package/dist/cjs/src/components/dot/Dot.js +41 -0
- package/dist/cjs/src/components/dot/index.js +16 -0
- package/dist/cjs/src/components/dropdown/Dropdown.js +206 -0
- package/dist/cjs/src/components/dropdown/index.js +16 -0
- package/dist/cjs/src/components/empty-state/EmptyState.js +58 -0
- package/dist/cjs/src/components/empty-state/index.js +16 -0
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +62 -0
- package/dist/cjs/src/components/featured-icon/index.js +16 -0
- package/dist/cjs/src/components/index.js +291 -0
- package/dist/cjs/src/components/input/InputBase.js +184 -0
- package/dist/cjs/src/components/input/PasswordInput.js +94 -0
- package/dist/cjs/src/components/input/Textarea.js +115 -0
- package/dist/cjs/src/components/input/index.js +38 -0
- package/dist/cjs/src/components/modal/Modal.js +194 -0
- package/dist/cjs/src/components/modal/index.js +16 -0
- package/dist/cjs/src/components/notification/FloatingNotification.js +108 -0
- package/dist/cjs/src/components/notification/FullWidthNotification.js +119 -0
- package/dist/cjs/src/components/notification/Notification.js +45 -0
- package/dist/cjs/src/components/notification/index.js +38 -0
- package/dist/cjs/src/components/pagination/NavButton.js +93 -0
- package/dist/cjs/src/components/pagination/Pagination.js +161 -0
- package/dist/cjs/src/components/pagination/index.js +27 -0
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +57 -0
- package/dist/cjs/src/components/progress-bar/index.js +16 -0
- package/dist/cjs/src/components/progress-circle/ProgressCircle.js +121 -0
- package/dist/cjs/src/components/progress-circle/index.js +16 -0
- package/dist/cjs/src/components/radio/Radio.js +65 -0
- package/dist/cjs/src/components/radio/RadioInput.js +50 -0
- package/dist/cjs/src/components/radio/index.js +27 -0
- package/dist/cjs/src/components/select/Select.js +98 -0
- package/dist/cjs/src/components/select/index.js +16 -0
- package/dist/cjs/src/components/shared/hintText/HintText.js +43 -0
- package/dist/cjs/src/components/shared/hintText/index.js +16 -0
- package/dist/cjs/src/components/shared/index.js +27 -0
- package/dist/cjs/src/components/shared/label/Label.js +43 -0
- package/dist/cjs/src/components/shared/label/index.js +16 -0
- package/dist/cjs/src/components/slider/Slider.js +64 -0
- package/dist/cjs/src/components/slider/index.js +16 -0
- package/dist/cjs/src/components/spinner/Spinner.js +53 -0
- package/dist/cjs/src/components/spinner/index.js +27 -0
- package/dist/cjs/src/components/tab/HorizontalTab.js +77 -0
- package/dist/cjs/src/components/tab/TabButton.js +76 -0
- package/dist/cjs/src/components/tab/VerticalTab.js +75 -0
- package/dist/cjs/src/components/tab/index.js +38 -0
- package/dist/cjs/src/components/tag/Tag.js +78 -0
- package/dist/cjs/src/components/tag/index.js +16 -0
- package/dist/cjs/src/components/toggle/Toggle.js +74 -0
- package/dist/cjs/src/components/toggle/index.js +16 -0
- package/dist/cjs/src/components/tooltip/Tooltip.js +74 -0
- package/dist/cjs/src/components/tooltip/index.js +16 -0
- package/dist/cjs/src/constant/breakpoint.js +12 -0
- package/dist/cjs/src/constant/date-picker.js +63 -0
- package/dist/cjs/src/constant/index.js +27 -0
- package/dist/cjs/src/constant/size.js +7 -0
- package/dist/cjs/src/hooks/useMediaQuery.js +29 -0
- package/dist/cjs/src/utils/date-picker.js +26 -0
- package/dist/esm/assets/scripts/datePicker.js +243 -0
- package/dist/{temp → esm}/assets/scripts/index.js +4 -4
- package/dist/esm/assets/scripts/slider.js +327 -0
- package/dist/esm/assets/scripts/tab.js +35 -0
- package/dist/esm/constant/color.js +32 -0
- package/dist/esm/constant/size.js +1 -0
- package/dist/{temp → esm}/index.js +1 -1
- package/dist/esm/src/components/badge/Badge.js +44 -0
- package/dist/esm/src/components/badge/BadgeGroup.js +54 -0
- package/dist/esm/src/components/badge/index.js +2 -0
- package/dist/esm/src/components/badge/utils.js +25 -0
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +59 -0
- package/dist/esm/src/components/breadcrumb/index.js +1 -0
- package/dist/esm/src/components/button/Button.js +120 -0
- package/dist/esm/src/components/button/ButtonCloseX.js +36 -0
- package/dist/esm/src/components/button/ButtonGroup.js +111 -0
- package/dist/esm/src/components/button/index.js +2 -0
- package/dist/esm/src/components/carousel/CarouselArrow.js +33 -0
- package/dist/esm/src/components/carousel/CarouselNumberGroup.js +38 -0
- package/dist/esm/src/components/carousel/index.js +2 -0
- package/dist/esm/src/components/checkbox/Checkbox.js +62 -0
- package/dist/esm/src/components/checkbox/CheckboxInput.js +89 -0
- package/dist/esm/src/components/checkbox/index.js +2 -0
- package/dist/esm/src/components/date-picker/DatePicker.js +79 -0
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +129 -0
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +85 -0
- package/dist/{temp → esm}/src/components/date-picker/index.js +1 -1
- package/dist/esm/src/components/date-picker/utils.js +10 -0
- package/dist/esm/src/components/divider/Divider.js +40 -0
- package/dist/esm/src/components/divider/index.js +1 -0
- package/dist/esm/src/components/dot/Dot.js +34 -0
- package/dist/esm/src/components/dot/index.js +1 -0
- package/dist/esm/src/components/dropdown/Dropdown.js +198 -0
- package/dist/esm/src/components/dropdown/index.js +1 -0
- package/dist/esm/src/components/empty-state/EmptyState.js +51 -0
- package/dist/esm/src/components/empty-state/index.js +1 -0
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +55 -0
- package/dist/esm/src/components/featured-icon/index.js +1 -0
- package/dist/{temp → esm}/src/components/index.js +1 -1
- package/dist/esm/src/components/input/InputBase.js +177 -0
- package/dist/esm/src/components/input/PasswordInput.js +87 -0
- package/dist/esm/src/components/input/Textarea.js +108 -0
- package/dist/{temp → esm}/src/components/input/index.js +1 -1
- package/dist/esm/src/components/modal/Modal.js +186 -0
- package/dist/esm/src/components/modal/index.js +1 -0
- package/dist/esm/src/components/notification/FloatingNotification.js +101 -0
- package/dist/esm/src/components/notification/FullWidthNotification.js +112 -0
- package/dist/esm/src/components/notification/Notification.js +39 -0
- package/dist/{temp → esm}/src/components/notification/index.js +1 -1
- package/dist/esm/src/components/pagination/NavButton.js +86 -0
- package/dist/esm/src/components/pagination/Pagination.js +153 -0
- package/dist/esm/src/components/pagination/index.js +2 -0
- package/dist/esm/src/components/progress-bar/ProgressBar.js +50 -0
- package/dist/esm/src/components/progress-bar/index.js +1 -0
- package/dist/esm/src/components/progress-circle/ProgressCircle.js +114 -0
- package/dist/esm/src/components/progress-circle/index.js +1 -0
- package/dist/esm/src/components/radio/Radio.js +57 -0
- package/dist/esm/src/components/radio/RadioInput.js +43 -0
- package/dist/esm/src/components/radio/index.js +2 -0
- package/dist/esm/src/components/select/Select.js +91 -0
- package/dist/esm/src/components/select/index.js +1 -0
- package/dist/esm/src/components/shared/hintText/HintText.js +35 -0
- package/dist/esm/src/components/shared/hintText/index.js +1 -0
- package/dist/{temp → esm}/src/components/shared/index.js +1 -1
- package/dist/esm/src/components/shared/label/Label.js +35 -0
- package/dist/esm/src/components/shared/label/index.js +1 -0
- package/dist/esm/src/components/slider/Slider.js +57 -0
- package/dist/esm/src/components/slider/index.js +1 -0
- package/dist/esm/src/components/spinner/Spinner.js +45 -0
- package/dist/{temp → esm}/src/components/spinner/index.js +1 -1
- package/dist/esm/src/components/tab/HorizontalTab.js +69 -0
- package/dist/esm/src/components/tab/TabButton.js +68 -0
- package/dist/esm/src/components/tab/VerticalTab.js +67 -0
- package/dist/{temp → esm}/src/components/tab/index.js +1 -1
- package/dist/esm/src/components/tag/Tag.js +70 -0
- package/dist/esm/src/components/tag/index.js +1 -0
- package/dist/esm/src/components/toggle/Toggle.js +66 -0
- package/dist/esm/src/components/toggle/index.js +1 -0
- package/dist/esm/src/components/tooltip/Tooltip.js +66 -0
- package/dist/esm/src/components/tooltip/index.js +1 -0
- package/dist/esm/src/constant/breakpoint.js +6 -0
- package/dist/esm/src/constant/date-picker.js +57 -0
- package/dist/esm/src/constant/index.js +2 -0
- package/dist/esm/src/constant/size.js +1 -0
- package/dist/esm/src/hooks/useMediaQuery.js +22 -0
- package/dist/esm/src/utils/date-picker.js +17 -0
- package/dist/{temp → types}/src/components/date-picker/DatePicker.d.ts +0 -1
- package/dist/{temp → types}/src/components/date-picker/RangeDatePicker.d.ts +0 -1
- package/dist/{temp → types}/src/components/dropdown/Dropdown.d.ts +0 -1
- package/dist/{temp → types}/src/components/input/PasswordInput.d.ts +0 -1
- package/dist/{temp → types}/src/components/shared/hintText/HintText.d.ts +0 -1
- package/dist/{temp → types}/src/components/shared/label/Label.d.ts +0 -1
- package/dist/ui-admin/assets/images/sprite.png +0 -0
- package/dist/ui-admin/assets/styles/style.css +3653 -0
- package/package.json +1 -1
- package/dist/temp/assets/scripts/datePicker.d.ts.map +0 -1
- package/dist/temp/assets/scripts/datePicker.js +0 -232
- package/dist/temp/assets/scripts/index.d.ts.map +0 -1
- package/dist/temp/assets/scripts/slider.d.ts.map +0 -1
- package/dist/temp/assets/scripts/slider.js +0 -331
- package/dist/temp/assets/scripts/tab.d.ts.map +0 -1
- package/dist/temp/assets/scripts/tab.js +0 -35
- package/dist/temp/constant/color.d.ts.map +0 -1
- package/dist/temp/constant/color.js +0 -32
- package/dist/temp/constant/size.d.ts.map +0 -1
- package/dist/temp/constant/size.js +0 -1
- package/dist/temp/docusaurus/docusaurus.config.d.ts +0 -4
- package/dist/temp/docusaurus/docusaurus.config.d.ts.map +0 -1
- package/dist/temp/docusaurus/docusaurus.config.js +0 -300
- package/dist/temp/docusaurus/sidebars.d.ts +0 -14
- package/dist/temp/docusaurus/sidebars.d.ts.map +0 -1
- package/dist/temp/docusaurus/sidebars.js +0 -104
- package/dist/temp/docusaurus/src/components/Badge.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Badge.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Badge.js +0 -1
- package/dist/temp/docusaurus/src/components/BadgeGroup.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/BadgeGroup.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/BadgeGroup.js +0 -1
- package/dist/temp/docusaurus/src/components/BreadCrumb.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/BreadCrumb.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/BreadCrumb.js +0 -2
- package/dist/temp/docusaurus/src/components/Button.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Button.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Button.js +0 -1
- package/dist/temp/docusaurus/src/components/ButtonGroup.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/ButtonGroup.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ButtonGroup.js +0 -1
- package/dist/temp/docusaurus/src/components/CarouselArrow.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/CarouselArrow.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/CarouselArrow.js +0 -1
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.js +0 -1
- package/dist/temp/docusaurus/src/components/Checkbox.d.ts +0 -4
- package/dist/temp/docusaurus/src/components/Checkbox.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Checkbox.js +0 -20
- package/dist/temp/docusaurus/src/components/CodeTabs/index.d.ts +0 -10
- package/dist/temp/docusaurus/src/components/CodeTabs/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/CodeTabs/index.js +0 -143
- package/dist/temp/docusaurus/src/components/ColorSwatch.d.ts +0 -9
- package/dist/temp/docusaurus/src/components/ColorSwatch.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ColorSwatch.js +0 -37
- package/dist/temp/docusaurus/src/components/DatePicker.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/DatePicker.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/DatePicker.js +0 -1
- package/dist/temp/docusaurus/src/components/Divider.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/Divider.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Divider.js +0 -2
- package/dist/temp/docusaurus/src/components/Dot.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/Dot.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Dot.js +0 -1
- package/dist/temp/docusaurus/src/components/Dropdown.d.ts +0 -4
- package/dist/temp/docusaurus/src/components/Dropdown.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Dropdown.js +0 -20
- package/dist/temp/docusaurus/src/components/EmptyState.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/EmptyState.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/EmptyState.js +0 -1
- package/dist/temp/docusaurus/src/components/ExampleCode/index.d.ts +0 -9
- package/dist/temp/docusaurus/src/components/ExampleCode/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ExampleCode/index.js +0 -30
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.d.ts +0 -8
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.js +0 -30
- package/dist/temp/docusaurus/src/components/FeaturedIcon.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/FeaturedIcon.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/FeaturedIcon.js +0 -1
- package/dist/temp/docusaurus/src/components/HorizontalTab.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/HorizontalTab.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/HorizontalTab.js +0 -2
- package/dist/temp/docusaurus/src/components/IconList.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/IconList.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/IconList.js +0 -1588
- package/dist/temp/docusaurus/src/components/Input.d.ts +0 -4
- package/dist/temp/docusaurus/src/components/Input.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Input.js +0 -3
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.d.ts +0 -19
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.js +0 -174
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.d.ts +0 -46
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.js +0 -211
- package/dist/temp/docusaurus/src/components/Modal.d.ts +0 -8
- package/dist/temp/docusaurus/src/components/Modal.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Modal.js +0 -30
- package/dist/temp/docusaurus/src/components/Notification.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Notification.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Notification.js +0 -1
- package/dist/temp/docusaurus/src/components/PaginationExample.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/PaginationExample.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/PaginationExample.js +0 -1
- package/dist/temp/docusaurus/src/components/ProgressBar.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/ProgressBar.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ProgressBar.js +0 -2
- package/dist/temp/docusaurus/src/components/ProgressCircle.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/ProgressCircle.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/ProgressCircle.js +0 -2
- package/dist/temp/docusaurus/src/components/Radio.d.ts +0 -4
- package/dist/temp/docusaurus/src/components/Radio.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Radio.js +0 -20
- package/dist/temp/docusaurus/src/components/RangeDatePicker.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/RangeDatePicker.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/RangeDatePicker.js +0 -1
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.js +0 -1
- package/dist/temp/docusaurus/src/components/Select.d.ts +0 -4
- package/dist/temp/docusaurus/src/components/Select.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Select.js +0 -17
- package/dist/temp/docusaurus/src/components/Slider.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/Slider.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Slider.js +0 -1
- package/dist/temp/docusaurus/src/components/Spinner.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Spinner.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Spinner.js +0 -1
- package/dist/temp/docusaurus/src/components/Table.d.ts +0 -43
- package/dist/temp/docusaurus/src/components/Table.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Table.js +0 -56
- package/dist/temp/docusaurus/src/components/Tabs.d.ts +0 -27
- package/dist/temp/docusaurus/src/components/Tabs.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Tabs.js +0 -49
- package/dist/temp/docusaurus/src/components/Tag.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Tag.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Tag.js +0 -16
- package/dist/temp/docusaurus/src/components/Toggle.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/Toggle.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/Toggle.js +0 -19
- package/dist/temp/docusaurus/src/components/TooltipExample.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/TooltipExample.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/TooltipExample.js +0 -1
- package/dist/temp/docusaurus/src/components/VerticalTab.d.ts +0 -3
- package/dist/temp/docusaurus/src/components/VerticalTab.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/VerticalTab.js +0 -2
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.js +0 -46
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.d.ts +0 -9
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.js +0 -40
- package/dist/temp/docusaurus/src/components/demos/DotDemo.d.ts +0 -5
- package/dist/temp/docusaurus/src/components/demos/DotDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/DotDemo.js +0 -17
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.d.ts +0 -19
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.js +0 -89
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.d.ts +0 -9
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.js +0 -6
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.d.ts +0 -27
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.js +0 -51
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.d.ts +0 -48
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.js +0 -77
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.d.ts +0 -18
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.js +0 -24
- package/dist/temp/docusaurus/src/components/demos/index.d.ts +0 -8
- package/dist/temp/docusaurus/src/components/demos/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/demos/index.js +0 -7
- package/dist/temp/docusaurus/src/components/index.d.ts +0 -2
- package/dist/temp/docusaurus/src/components/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/components/index.js +0 -2
- package/dist/temp/docusaurus/src/pages/index.d.ts +0 -4
- package/dist/temp/docusaurus/src/pages/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/pages/index.js +0 -10
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.js +0 -47
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.js +0 -48
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.js +0 -50
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.js +0 -62
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.js +0 -65
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.js +0 -63
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.js +0 -48
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.js +0 -52
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.js +0 -52
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.js +0 -54
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.js +0 -65
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.d.ts +0 -3
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.js +0 -46
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.d.ts +0 -7
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.js +0 -21
- package/dist/temp/docusaurus/src/step-guide-example/util/index.d.ts +0 -5
- package/dist/temp/docusaurus/src/step-guide-example/util/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/step-guide-example/util/index.js +0 -16
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.d.ts +0 -6
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.js +0 -46
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.d.ts +0 -6
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.js +0 -30
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.d.ts +0 -3
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.js +0 -25
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.d.ts +0 -4
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.js +0 -20
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.d.ts +0 -3
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.js +0 -46
- package/dist/temp/docusaurus/src/utils/html.d.ts +0 -3
- package/dist/temp/docusaurus/src/utils/html.d.ts.map +0 -1
- package/dist/temp/docusaurus/src/utils/html.js +0 -100
- package/dist/temp/index.d.ts.map +0 -1
- package/dist/temp/src/components/badge/Badge.d.ts.map +0 -1
- package/dist/temp/src/components/badge/Badge.js +0 -22
- package/dist/temp/src/components/badge/BadgeGroup.d.ts.map +0 -1
- package/dist/temp/src/components/badge/BadgeGroup.js +0 -31
- package/dist/temp/src/components/badge/index.d.ts.map +0 -1
- package/dist/temp/src/components/badge/index.js +0 -2
- package/dist/temp/src/components/badge/utils.d.ts.map +0 -1
- package/dist/temp/src/components/badge/utils.js +0 -16
- package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts.map +0 -1
- package/dist/temp/src/components/breadcrumb/BreadCrumb.js +0 -30
- package/dist/temp/src/components/breadcrumb/index.d.ts.map +0 -1
- package/dist/temp/src/components/breadcrumb/index.js +0 -1
- package/dist/temp/src/components/button/Button.d.ts.map +0 -1
- package/dist/temp/src/components/button/Button.js +0 -89
- package/dist/temp/src/components/button/ButtonCloseX.d.ts.map +0 -1
- package/dist/temp/src/components/button/ButtonCloseX.js +0 -24
- package/dist/temp/src/components/button/ButtonGroup.d.ts.map +0 -1
- package/dist/temp/src/components/button/ButtonGroup.js +0 -71
- package/dist/temp/src/components/button/index.d.ts.map +0 -1
- package/dist/temp/src/components/button/index.js +0 -2
- package/dist/temp/src/components/carousel/CarouselArrow.d.ts.map +0 -1
- package/dist/temp/src/components/carousel/CarouselArrow.js +0 -23
- package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts.map +0 -1
- package/dist/temp/src/components/carousel/CarouselNumberGroup.js +0 -23
- package/dist/temp/src/components/carousel/index.d.ts.map +0 -1
- package/dist/temp/src/components/carousel/index.js +0 -2
- package/dist/temp/src/components/checkbox/Checkbox.d.ts.map +0 -1
- package/dist/temp/src/components/checkbox/Checkbox.js +0 -29
- package/dist/temp/src/components/checkbox/CheckboxInput.d.ts.map +0 -1
- package/dist/temp/src/components/checkbox/CheckboxInput.js +0 -37
- package/dist/temp/src/components/checkbox/index.d.ts.map +0 -1
- package/dist/temp/src/components/checkbox/index.js +0 -2
- package/dist/temp/src/components/date-picker/DatePicker.d.ts.map +0 -1
- package/dist/temp/src/components/date-picker/DatePicker.js +0 -39
- package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts.map +0 -1
- package/dist/temp/src/components/date-picker/RangeDatePicker.js +0 -127
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts.map +0 -1
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +0 -46
- package/dist/temp/src/components/date-picker/index.d.ts.map +0 -1
- package/dist/temp/src/components/date-picker/utils.d.ts.map +0 -1
- package/dist/temp/src/components/date-picker/utils.js +0 -8
- package/dist/temp/src/components/divider/Divider.d.ts.map +0 -1
- package/dist/temp/src/components/divider/Divider.js +0 -24
- package/dist/temp/src/components/divider/index.d.ts.map +0 -1
- package/dist/temp/src/components/divider/index.js +0 -1
- package/dist/temp/src/components/dot/Dot.d.ts.map +0 -1
- package/dist/temp/src/components/dot/Dot.js +0 -30
- package/dist/temp/src/components/dot/index.d.ts.map +0 -1
- package/dist/temp/src/components/dot/index.js +0 -1
- package/dist/temp/src/components/dropdown/Dropdown.d.ts.map +0 -1
- package/dist/temp/src/components/dropdown/Dropdown.js +0 -82
- package/dist/temp/src/components/dropdown/index.d.ts.map +0 -1
- package/dist/temp/src/components/dropdown/index.js +0 -1
- package/dist/temp/src/components/empty-state/EmptyState.d.ts.map +0 -1
- package/dist/temp/src/components/empty-state/EmptyState.js +0 -32
- package/dist/temp/src/components/empty-state/index.d.ts.map +0 -1
- package/dist/temp/src/components/empty-state/index.js +0 -1
- package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts.map +0 -1
- package/dist/temp/src/components/featured-icon/FeaturedIcon.js +0 -36
- package/dist/temp/src/components/featured-icon/index.d.ts.map +0 -1
- package/dist/temp/src/components/featured-icon/index.js +0 -1
- package/dist/temp/src/components/index.d.ts.map +0 -1
- package/dist/temp/src/components/input/InputBase.d.ts.map +0 -1
- package/dist/temp/src/components/input/InputBase.js +0 -91
- package/dist/temp/src/components/input/PasswordInput.d.ts.map +0 -1
- package/dist/temp/src/components/input/PasswordInput.js +0 -75
- package/dist/temp/src/components/input/Textarea.d.ts.map +0 -1
- package/dist/temp/src/components/input/Textarea.js +0 -60
- package/dist/temp/src/components/input/index.d.ts.map +0 -1
- package/dist/temp/src/components/modal/Modal.d.ts.map +0 -1
- package/dist/temp/src/components/modal/Modal.js +0 -100
- package/dist/temp/src/components/modal/index.d.ts.map +0 -1
- package/dist/temp/src/components/modal/index.js +0 -1
- package/dist/temp/src/components/notification/FloatingNotification.d.ts.map +0 -1
- package/dist/temp/src/components/notification/FloatingNotification.js +0 -50
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts.map +0 -1
- package/dist/temp/src/components/notification/FullWidthNotification.js +0 -47
- package/dist/temp/src/components/notification/Notification.d.ts.map +0 -1
- package/dist/temp/src/components/notification/Notification.js +0 -31
- package/dist/temp/src/components/notification/index.d.ts.map +0 -1
- package/dist/temp/src/components/pagination/NavButton.d.ts.map +0 -1
- package/dist/temp/src/components/pagination/NavButton.js +0 -66
- package/dist/temp/src/components/pagination/Pagination.d.ts.map +0 -1
- package/dist/temp/src/components/pagination/Pagination.js +0 -97
- package/dist/temp/src/components/pagination/index.d.ts.map +0 -1
- package/dist/temp/src/components/pagination/index.js +0 -2
- package/dist/temp/src/components/progress-bar/ProgressBar.d.ts.map +0 -1
- package/dist/temp/src/components/progress-bar/ProgressBar.js +0 -25
- package/dist/temp/src/components/progress-bar/index.d.ts.map +0 -1
- package/dist/temp/src/components/progress-bar/index.js +0 -1
- package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts.map +0 -1
- package/dist/temp/src/components/progress-circle/ProgressCircle.js +0 -22
- package/dist/temp/src/components/progress-circle/index.d.ts.map +0 -1
- package/dist/temp/src/components/progress-circle/index.js +0 -1
- package/dist/temp/src/components/radio/Radio.d.ts.map +0 -1
- package/dist/temp/src/components/radio/Radio.js +0 -29
- package/dist/temp/src/components/radio/RadioInput.d.ts.map +0 -1
- package/dist/temp/src/components/radio/RadioInput.js +0 -29
- package/dist/temp/src/components/radio/index.d.ts.map +0 -1
- package/dist/temp/src/components/radio/index.js +0 -2
- package/dist/temp/src/components/select/Select.d.ts.map +0 -1
- package/dist/temp/src/components/select/Select.js +0 -38
- package/dist/temp/src/components/select/index.d.ts.map +0 -1
- package/dist/temp/src/components/select/index.js +0 -1
- package/dist/temp/src/components/shared/hintText/HintText.d.ts.map +0 -1
- package/dist/temp/src/components/shared/hintText/HintText.js +0 -28
- package/dist/temp/src/components/shared/hintText/index.d.ts.map +0 -1
- package/dist/temp/src/components/shared/hintText/index.js +0 -1
- package/dist/temp/src/components/shared/index.d.ts.map +0 -1
- package/dist/temp/src/components/shared/label/Label.d.ts.map +0 -1
- package/dist/temp/src/components/shared/label/Label.js +0 -28
- package/dist/temp/src/components/shared/label/index.d.ts.map +0 -1
- package/dist/temp/src/components/shared/label/index.js +0 -1
- package/dist/temp/src/components/slider/Slider.d.ts.map +0 -1
- package/dist/temp/src/components/slider/Slider.js +0 -44
- package/dist/temp/src/components/slider/index.d.ts.map +0 -1
- package/dist/temp/src/components/slider/index.js +0 -1
- package/dist/temp/src/components/spinner/Spinner.d.ts.map +0 -1
- package/dist/temp/src/components/spinner/Spinner.js +0 -21
- package/dist/temp/src/components/spinner/index.d.ts.map +0 -1
- package/dist/temp/src/components/tab/HorizontalTab.d.ts.map +0 -1
- package/dist/temp/src/components/tab/HorizontalTab.js +0 -44
- package/dist/temp/src/components/tab/TabButton.d.ts.map +0 -1
- package/dist/temp/src/components/tab/TabButton.js +0 -38
- package/dist/temp/src/components/tab/VerticalTab.d.ts.map +0 -1
- package/dist/temp/src/components/tab/VerticalTab.js +0 -39
- package/dist/temp/src/components/tab/index.d.ts.map +0 -1
- package/dist/temp/src/components/tag/Tag.d.ts.map +0 -1
- package/dist/temp/src/components/tag/Tag.js +0 -34
- package/dist/temp/src/components/tag/index.d.ts.map +0 -1
- package/dist/temp/src/components/tag/index.js +0 -1
- package/dist/temp/src/components/toggle/Toggle.d.ts.map +0 -1
- package/dist/temp/src/components/toggle/Toggle.js +0 -30
- package/dist/temp/src/components/toggle/index.d.ts.map +0 -1
- package/dist/temp/src/components/toggle/index.js +0 -1
- package/dist/temp/src/components/tooltip/Tooltip.d.ts.map +0 -1
- package/dist/temp/src/components/tooltip/Tooltip.js +0 -23
- package/dist/temp/src/components/tooltip/index.d.ts.map +0 -1
- package/dist/temp/src/components/tooltip/index.js +0 -1
- package/dist/temp/src/constant/breakpoint.d.ts.map +0 -1
- package/dist/temp/src/constant/breakpoint.js +0 -6
- package/dist/temp/src/constant/date-picker.d.ts.map +0 -1
- package/dist/temp/src/constant/date-picker.js +0 -53
- package/dist/temp/src/constant/index.d.ts.map +0 -1
- package/dist/temp/src/constant/index.js +0 -2
- package/dist/temp/src/constant/size.d.ts.map +0 -1
- package/dist/temp/src/constant/size.js +0 -1
- package/dist/temp/src/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/temp/src/hooks/useMediaQuery.js +0 -20
- package/dist/temp/src/utils/date-picker.d.ts.map +0 -1
- package/dist/temp/src/utils/date-picker.js +0 -12
- package/dist/temp/tsconfig.tsbuildinfo +0 -1
- /package/dist/{temp → types}/assets/scripts/datePicker.d.ts +0 -0
- /package/dist/{temp → types}/assets/scripts/index.d.ts +0 -0
- /package/dist/{temp → types}/assets/scripts/slider.d.ts +0 -0
- /package/dist/{temp → types}/assets/scripts/tab.d.ts +0 -0
- /package/dist/{temp → types}/constant/color.d.ts +0 -0
- /package/dist/{temp → types}/constant/size.d.ts +0 -0
- /package/dist/{temp → types}/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/badge/Badge.d.ts +0 -0
- /package/dist/{temp → types}/src/components/badge/BadgeGroup.d.ts +0 -0
- /package/dist/{temp → types}/src/components/badge/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/badge/utils.d.ts +0 -0
- /package/dist/{temp → types}/src/components/breadcrumb/BreadCrumb.d.ts +0 -0
- /package/dist/{temp → types}/src/components/breadcrumb/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/button/Button.d.ts +0 -0
- /package/dist/{temp → types}/src/components/button/ButtonCloseX.d.ts +0 -0
- /package/dist/{temp → types}/src/components/button/ButtonGroup.d.ts +0 -0
- /package/dist/{temp → types}/src/components/button/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/carousel/CarouselArrow.d.ts +0 -0
- /package/dist/{temp → types}/src/components/carousel/CarouselNumberGroup.d.ts +0 -0
- /package/dist/{temp → types}/src/components/carousel/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/checkbox/Checkbox.d.ts +0 -0
- /package/dist/{temp → types}/src/components/checkbox/CheckboxInput.d.ts +0 -0
- /package/dist/{temp → types}/src/components/checkbox/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/date-picker/RangeDatePickerWithButtons.d.ts +0 -0
- /package/dist/{temp → types}/src/components/date-picker/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/date-picker/utils.d.ts +0 -0
- /package/dist/{temp → types}/src/components/divider/Divider.d.ts +0 -0
- /package/dist/{temp → types}/src/components/divider/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/dot/Dot.d.ts +0 -0
- /package/dist/{temp → types}/src/components/dot/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/dropdown/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/empty-state/EmptyState.d.ts +0 -0
- /package/dist/{temp → types}/src/components/empty-state/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/featured-icon/FeaturedIcon.d.ts +0 -0
- /package/dist/{temp → types}/src/components/featured-icon/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/input/InputBase.d.ts +0 -0
- /package/dist/{temp → types}/src/components/input/Textarea.d.ts +0 -0
- /package/dist/{temp → types}/src/components/input/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/modal/Modal.d.ts +0 -0
- /package/dist/{temp → types}/src/components/modal/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/notification/FloatingNotification.d.ts +0 -0
- /package/dist/{temp → types}/src/components/notification/FullWidthNotification.d.ts +0 -0
- /package/dist/{temp → types}/src/components/notification/Notification.d.ts +0 -0
- /package/dist/{temp → types}/src/components/notification/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/pagination/NavButton.d.ts +0 -0
- /package/dist/{temp → types}/src/components/pagination/Pagination.d.ts +0 -0
- /package/dist/{temp → types}/src/components/pagination/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/progress-bar/ProgressBar.d.ts +0 -0
- /package/dist/{temp → types}/src/components/progress-bar/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/progress-circle/ProgressCircle.d.ts +0 -0
- /package/dist/{temp → types}/src/components/progress-circle/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/radio/Radio.d.ts +0 -0
- /package/dist/{temp → types}/src/components/radio/RadioInput.d.ts +0 -0
- /package/dist/{temp → types}/src/components/radio/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/select/Select.d.ts +0 -0
- /package/dist/{temp → types}/src/components/select/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/shared/hintText/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/shared/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/shared/label/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/slider/Slider.d.ts +0 -0
- /package/dist/{temp → types}/src/components/slider/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/spinner/Spinner.d.ts +0 -0
- /package/dist/{temp → types}/src/components/spinner/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tab/HorizontalTab.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tab/TabButton.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tab/VerticalTab.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tab/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tag/Tag.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tag/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/toggle/Toggle.d.ts +0 -0
- /package/dist/{temp → types}/src/components/toggle/index.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tooltip/Tooltip.d.ts +0 -0
- /package/dist/{temp → types}/src/components/tooltip/index.d.ts +0 -0
- /package/dist/{temp → types}/src/constant/breakpoint.d.ts +0 -0
- /package/dist/{temp → types}/src/constant/date-picker.d.ts +0 -0
- /package/dist/{temp → types}/src/constant/index.d.ts +0 -0
- /package/dist/{temp → types}/src/constant/size.d.ts +0 -0
- /package/dist/{temp → types}/src/hooks/useMediaQuery.d.ts +0 -0
- /package/dist/{temp → types}/src/utils/date-picker.d.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useMediaQuery = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var useMediaQuery = function (query, options) {
|
|
9
|
+
var _a = (0, _react.useState)(false),
|
|
10
|
+
matches = _a[0],
|
|
11
|
+
setMatches = _a[1];
|
|
12
|
+
(0, _react.useEffect)(function () {
|
|
13
|
+
var mediaQuery = window.matchMedia(query);
|
|
14
|
+
setMatches(mediaQuery.matches);
|
|
15
|
+
var handleChange = function (e) {
|
|
16
|
+
var _a;
|
|
17
|
+
setMatches(e.matches);
|
|
18
|
+
if (e.matches) {
|
|
19
|
+
(_a = options === null || options === void 0 ? void 0 : options.onMatched) === null || _a === void 0 ? void 0 : _a.call(options);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
mediaQuery.addEventListener('change', handleChange);
|
|
23
|
+
return function () {
|
|
24
|
+
mediaQuery.removeEventListener('change', handleChange);
|
|
25
|
+
};
|
|
26
|
+
}, [query, options === null || options === void 0 ? void 0 : options.onMatched]);
|
|
27
|
+
return matches;
|
|
28
|
+
};
|
|
29
|
+
exports.useMediaQuery = useMediaQuery;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDateFormat = getDateFormat;
|
|
7
|
+
exports.getSubtractDate = getSubtractDate;
|
|
8
|
+
exports.getToday = getToday;
|
|
9
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function getDateFormat(date) {
|
|
12
|
+
if (date === void 0) {
|
|
13
|
+
date = getToday();
|
|
14
|
+
}
|
|
15
|
+
return (0, _moment.default)(date).format('YYYY-MM-DD');
|
|
16
|
+
}
|
|
17
|
+
function getToday() {
|
|
18
|
+
return (0, _moment.default)().toDate();
|
|
19
|
+
}
|
|
20
|
+
function getSubtractDate(_a) {
|
|
21
|
+
var _b = _a.date,
|
|
22
|
+
date = _b === void 0 ? getToday() : _b,
|
|
23
|
+
period = _a.period,
|
|
24
|
+
unit = _a.unit;
|
|
25
|
+
return (0, _moment.default)(date).subtract(period, unit).toDate();
|
|
26
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
return __assign.apply(this, arguments);
|
|
10
|
+
};
|
|
11
|
+
// Constants
|
|
12
|
+
var CONSTANTS = {
|
|
13
|
+
ICON_SIZES: {
|
|
14
|
+
sm: '14',
|
|
15
|
+
md: '16'
|
|
16
|
+
},
|
|
17
|
+
CLASS_NAMES: {
|
|
18
|
+
RANGE_WRAPPER: 'ncua-range-date-picker',
|
|
19
|
+
RANGE_WITH_BUTTONS: 'ncua-range-date-picker-with-buttons',
|
|
20
|
+
DATE_PICKER: 'ncua-date-picker',
|
|
21
|
+
DATE_PICKER_INPUT: 'ncua-date-picker__input',
|
|
22
|
+
DATE_PICKER_ICO: 'ncua-date-picker__ico',
|
|
23
|
+
BUTTON_GROUP: 'ncua-button-group',
|
|
24
|
+
BUTTON_GROUP_HAS_BORDER: 'has-border',
|
|
25
|
+
BUTTON: 'ncua-button-group__item'
|
|
26
|
+
},
|
|
27
|
+
FORMATS: {
|
|
28
|
+
DATE: 'YYYY-MM-DD'
|
|
29
|
+
},
|
|
30
|
+
ERROR_MESSAGES: {
|
|
31
|
+
FLATPICKR_NOT_LOADED: 'flatpickr 라이브러리가 로드되지 않았습니다.',
|
|
32
|
+
MOMENT_NOT_LOADED: 'moment 라이브러리가 로드되지 않았습니다.'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var DatePicker = /** @class */function () {
|
|
36
|
+
function DatePicker(wrapper, options) {
|
|
37
|
+
this.flatpickrInstances = [];
|
|
38
|
+
this.currentButton = null;
|
|
39
|
+
var _a = options.buttons,
|
|
40
|
+
buttons = _a === void 0 ? [] : _a,
|
|
41
|
+
size = options.size,
|
|
42
|
+
datePickerOptions = options.datePickerOptions;
|
|
43
|
+
this.validationDependencies((buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0);
|
|
44
|
+
this.element = wrapper;
|
|
45
|
+
this.datePickerOptions = datePickerOptions;
|
|
46
|
+
this.buttons = buttons;
|
|
47
|
+
this.size = size;
|
|
48
|
+
this.init();
|
|
49
|
+
}
|
|
50
|
+
DatePicker.prototype.init = function () {
|
|
51
|
+
this.element.innerHTML = '';
|
|
52
|
+
this.initializeWrapper();
|
|
53
|
+
this.initButtonGroup();
|
|
54
|
+
this.initDatePicker();
|
|
55
|
+
};
|
|
56
|
+
DatePicker.prototype.validationDependencies = function (hasButtons) {
|
|
57
|
+
if (typeof flatpickr === 'undefined') {
|
|
58
|
+
throw new Error(CONSTANTS.ERROR_MESSAGES.FLATPICKR_NOT_LOADED);
|
|
59
|
+
}
|
|
60
|
+
if (hasButtons && typeof moment === 'undefined') {
|
|
61
|
+
throw new Error(CONSTANTS.ERROR_MESSAGES.MOMENT_NOT_LOADED);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
DatePicker.prototype.initializeWrapper = function () {
|
|
65
|
+
if (this.datePickerOptions.length < 2) return;
|
|
66
|
+
this.element.classList.add(CONSTANTS.CLASS_NAMES.RANGE_WRAPPER);
|
|
67
|
+
};
|
|
68
|
+
DatePicker.prototype.initButtonGroup = function () {
|
|
69
|
+
var _this = this;
|
|
70
|
+
if (this.buttons.length === 0) return;
|
|
71
|
+
this.element.classList.add(CONSTANTS.CLASS_NAMES.RANGE_WITH_BUTTONS);
|
|
72
|
+
var createButtonWrapperElement = function () {
|
|
73
|
+
var wrapper = document.createElement('div');
|
|
74
|
+
wrapper.className = "".concat(CONSTANTS.CLASS_NAMES.BUTTON_GROUP, " ").concat(CONSTANTS.CLASS_NAMES.BUTTON_GROUP_HAS_BORDER, " ").concat(CONSTANTS.CLASS_NAMES.BUTTON_GROUP, "--").concat(_this.size);
|
|
75
|
+
return wrapper;
|
|
76
|
+
};
|
|
77
|
+
var appendButtons = function (wrapper) {
|
|
78
|
+
_this.buttons.forEach(function (button) {
|
|
79
|
+
var buttonElement = _this.createButtonElement(button);
|
|
80
|
+
wrapper.appendChild(buttonElement);
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
var wrapper = createButtonWrapperElement();
|
|
84
|
+
appendButtons(wrapper);
|
|
85
|
+
wrapper.addEventListener('click', this.updateDateWithButton.bind(this));
|
|
86
|
+
this.element.appendChild(wrapper);
|
|
87
|
+
};
|
|
88
|
+
DatePicker.prototype.createButtonElement = function (button) {
|
|
89
|
+
if (button.isCurrent) {
|
|
90
|
+
this.currentButton = button;
|
|
91
|
+
}
|
|
92
|
+
var buttonElement = document.createElement('button');
|
|
93
|
+
buttonElement.className = "".concat(CONSTANTS.CLASS_NAMES.BUTTON, " ").concat(button.isCurrent ? 'is-current' : '');
|
|
94
|
+
buttonElement.textContent = button.text;
|
|
95
|
+
buttonElement.type = 'button';
|
|
96
|
+
return buttonElement;
|
|
97
|
+
};
|
|
98
|
+
DatePicker.prototype.reRenderButtonGroup = function (buttons) {
|
|
99
|
+
var _this = this;
|
|
100
|
+
var buttonGroup = this.element.querySelector(".".concat(CONSTANTS.CLASS_NAMES.BUTTON_GROUP));
|
|
101
|
+
if (!buttonGroup) return;
|
|
102
|
+
buttonGroup.innerHTML = '';
|
|
103
|
+
buttons.forEach(function (button) {
|
|
104
|
+
if (button.isCurrent) {
|
|
105
|
+
_this.currentButton = button;
|
|
106
|
+
}
|
|
107
|
+
buttonGroup.appendChild(_this.createButtonElement(button));
|
|
108
|
+
});
|
|
109
|
+
this.buttons = buttons;
|
|
110
|
+
};
|
|
111
|
+
DatePicker.prototype.initDatePicker = function () {
|
|
112
|
+
var _this = this;
|
|
113
|
+
var datePickerOptions = this.datePickerOptions;
|
|
114
|
+
var createWrapperElement = function (size) {
|
|
115
|
+
var wrapper = document.createElement('div');
|
|
116
|
+
wrapper.className = "".concat(CONSTANTS.CLASS_NAMES.DATE_PICKER, " ").concat(CONSTANTS.CLASS_NAMES.DATE_PICKER, "--").concat(size);
|
|
117
|
+
return wrapper;
|
|
118
|
+
};
|
|
119
|
+
var createInput = function (elementId) {
|
|
120
|
+
var input = document.createElement('input');
|
|
121
|
+
input.type = 'text';
|
|
122
|
+
input.id = elementId;
|
|
123
|
+
input.className = CONSTANTS.CLASS_NAMES.DATE_PICKER_INPUT;
|
|
124
|
+
return input;
|
|
125
|
+
};
|
|
126
|
+
var createIcon = function (size) {
|
|
127
|
+
var getCalendarIconSvg = function (size) {
|
|
128
|
+
return "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M14 6.66671H2M10.6667 1.33337V4.00004M5.33333 1.33337V4.00004M5.2 14.6667H10.8C11.9201 14.6667 12.4802 14.6667 12.908 14.4487C13.2843 14.257 13.5903 13.951 13.782 13.5747C14 13.1469 14 12.5868 14 11.4667V5.86671C14 4.7466 14 4.18655 13.782 3.75873C13.5903 3.3824 13.2843 3.07644 12.908 2.88469C12.4802 2.66671 11.9201 2.66671 10.8 2.66671H5.2C4.0799 2.66671 3.51984 2.66671 3.09202 2.88469C2.71569 3.07644 2.40973 3.3824 2.21799 3.75873C2 4.18655 2 4.7466 2 5.86671V11.4667C2 12.5868 2 13.1469 2.21799 13.5747C2.40973 13.951 2.71569 14.257 3.09202 14.4487C3.51984 14.6667 4.0799 14.6667 5.2 14.6667Z\"\n stroke=\"black\"\n stroke-width=\"1.33333\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n ></path>\n </svg>");
|
|
129
|
+
};
|
|
130
|
+
var ico = document.createElement('span');
|
|
131
|
+
ico.className = CONSTANTS.CLASS_NAMES.DATE_PICKER_ICO;
|
|
132
|
+
ico.innerHTML = getCalendarIconSvg(CONSTANTS.ICON_SIZES[size]);
|
|
133
|
+
return ico;
|
|
134
|
+
};
|
|
135
|
+
var insertSeparator = function () {
|
|
136
|
+
var span = document.createElement('span');
|
|
137
|
+
span.textContent = '-';
|
|
138
|
+
_this.element.insertBefore(span, _this.element.querySelectorAll(".".concat(CONSTANTS.CLASS_NAMES.DATE_PICKER))[1]);
|
|
139
|
+
};
|
|
140
|
+
var createDatePickerElement = function (datePickerOption, index) {
|
|
141
|
+
var wrapper = createWrapperElement(_this.size);
|
|
142
|
+
var input = createInput(datePickerOption.element);
|
|
143
|
+
wrapper.appendChild(input);
|
|
144
|
+
wrapper.appendChild(createIcon(_this.size));
|
|
145
|
+
wrapper.addEventListener('click', function () {
|
|
146
|
+
_this.buttons.forEach(function (button) {
|
|
147
|
+
return button.isCurrent = false;
|
|
148
|
+
});
|
|
149
|
+
_this.currentButton = null;
|
|
150
|
+
_this.reRenderButtonGroup(_this.buttons);
|
|
151
|
+
});
|
|
152
|
+
_this.element.appendChild(wrapper);
|
|
153
|
+
if (index > 0) {
|
|
154
|
+
insertSeparator();
|
|
155
|
+
}
|
|
156
|
+
return _this.initializeFlatpickr(input, datePickerOption.options, wrapper);
|
|
157
|
+
};
|
|
158
|
+
var createFlatpickrInstances = function (datePickerOptions) {
|
|
159
|
+
return datePickerOptions.map(function (datePickerOption, index) {
|
|
160
|
+
return createDatePickerElement(datePickerOption, index);
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
var calcInitDates = function (datePickerOptions) {
|
|
164
|
+
var _a;
|
|
165
|
+
if (_this.buttons.length > 0) {
|
|
166
|
+
var _b = (_a = _this.buttons.find(function (button) {
|
|
167
|
+
return button.isCurrent;
|
|
168
|
+
})) !== null && _a !== void 0 ? _a : {
|
|
169
|
+
period: 0,
|
|
170
|
+
unit: 'days'
|
|
171
|
+
},
|
|
172
|
+
period = _b.period,
|
|
173
|
+
unit = _b.unit;
|
|
174
|
+
return [moment().subtract(period, unit).format(CONSTANTS.FORMATS.DATE), moment().format(CONSTANTS.FORMATS.DATE)];
|
|
175
|
+
}
|
|
176
|
+
return datePickerOptions.map(function (datePickerOption) {
|
|
177
|
+
var _a;
|
|
178
|
+
if ((_a = datePickerOption.options) === null || _a === void 0 ? void 0 : _a.defaultDate) {
|
|
179
|
+
return moment(datePickerOption.options.defaultDate.toString()).format(CONSTANTS.FORMATS.DATE);
|
|
180
|
+
}
|
|
181
|
+
return moment().format(CONSTANTS.FORMATS.DATE);
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
this.flatpickrInstances = createFlatpickrInstances(datePickerOptions);
|
|
185
|
+
var dates = calcInitDates(datePickerOptions);
|
|
186
|
+
this.setMultipleDates(dates);
|
|
187
|
+
};
|
|
188
|
+
DatePicker.prototype.initializeFlatpickr = function (input, options, wrapper) {
|
|
189
|
+
return flatpickr(input, __assign(__assign({}, options), {
|
|
190
|
+
appendTo: wrapper
|
|
191
|
+
}));
|
|
192
|
+
};
|
|
193
|
+
DatePicker.prototype.updateDateWithButton = function (e) {
|
|
194
|
+
var _this = this;
|
|
195
|
+
var target = e.target;
|
|
196
|
+
if (!target.classList.contains(CONSTANTS.CLASS_NAMES.BUTTON)) return;
|
|
197
|
+
var clickedButton = this.buttons.find(function (button) {
|
|
198
|
+
return button.text === target.textContent;
|
|
199
|
+
});
|
|
200
|
+
if (!clickedButton || clickedButton === this.currentButton) return;
|
|
201
|
+
// 날짜 계산
|
|
202
|
+
var calculateDates = function () {
|
|
203
|
+
var period = clickedButton.period,
|
|
204
|
+
unit = clickedButton.unit;
|
|
205
|
+
var dates = [];
|
|
206
|
+
var startDate = period ? moment().subtract(period, unit).format(CONSTANTS.FORMATS.DATE) : moment().format(CONSTANTS.FORMATS.DATE);
|
|
207
|
+
dates.push(startDate);
|
|
208
|
+
if (_this.datePickerOptions.length > 1) {
|
|
209
|
+
var endDate = moment().format(CONSTANTS.FORMATS.DATE);
|
|
210
|
+
dates.push(endDate);
|
|
211
|
+
}
|
|
212
|
+
return dates;
|
|
213
|
+
};
|
|
214
|
+
var updateButtonState = function () {
|
|
215
|
+
return _this.buttons.map(function (button) {
|
|
216
|
+
return __assign(__assign({}, button), {
|
|
217
|
+
isCurrent: button.text === (clickedButton === null || clickedButton === void 0 ? void 0 : clickedButton.text)
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
this.currentButton = clickedButton;
|
|
222
|
+
this.reRenderButtonGroup(updateButtonState());
|
|
223
|
+
this.setMultipleDates(calculateDates());
|
|
224
|
+
};
|
|
225
|
+
DatePicker.prototype.setMultipleDates = function (dates) {
|
|
226
|
+
var _this = this;
|
|
227
|
+
dates.forEach(function (date, index) {
|
|
228
|
+
_this.flatpickrInstances[index].setDate(date, true);
|
|
229
|
+
_this.flatpickrInstances[index].redraw();
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
DatePicker.prototype.setDate = function (dates) {
|
|
233
|
+
this.setMultipleDates(dates);
|
|
234
|
+
};
|
|
235
|
+
DatePicker.prototype.getDates = function () {
|
|
236
|
+
return this.flatpickrInstances.flatMap(function (instance) {
|
|
237
|
+
return instance.selectedDates;
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
return DatePicker;
|
|
241
|
+
}();
|
|
242
|
+
export { DatePicker };
|
|
243
|
+
window.DatePicker = DatePicker;
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
var Slider = /** @class */function () {
|
|
2
|
+
function Slider(element, options) {
|
|
3
|
+
var _this = this;
|
|
4
|
+
this.activeHandle = null;
|
|
5
|
+
this.isDragging = false;
|
|
6
|
+
this.handleElements = [];
|
|
7
|
+
this.progressElement = null;
|
|
8
|
+
this.trackElement = null;
|
|
9
|
+
this.handleMouseDown = function (e) {
|
|
10
|
+
var targetElement = e.target;
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
_this.handleInteractionStart(e.clientX, targetElement);
|
|
13
|
+
if (_this.isDragging) {
|
|
14
|
+
// 텍스트 선택 방지
|
|
15
|
+
document.body.style.userSelect = 'none';
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.handleTouchStart = function (e) {
|
|
19
|
+
if (e.touches.length > 0) {
|
|
20
|
+
var targetElement = e.target;
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
_this.handleInteractionStart(e.touches[0].clientX, targetElement);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.handleMouseMove = function (e) {
|
|
26
|
+
if (_this.isDragging) {
|
|
27
|
+
_this.updateValueFromClientX(e.clientX);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.handleTouchMove = function (e) {
|
|
31
|
+
if (_this.isDragging && e.touches.length > 0) {
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
_this.updateValueFromClientX(e.touches[0].clientX);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
this.handleMouseUp = function () {
|
|
37
|
+
_this.isDragging = false;
|
|
38
|
+
document.body.style.userSelect = '';
|
|
39
|
+
};
|
|
40
|
+
this.handleTouchEnd = function () {
|
|
41
|
+
_this.isDragging = false;
|
|
42
|
+
};
|
|
43
|
+
this.element = element;
|
|
44
|
+
this.options = Object.assign({
|
|
45
|
+
min: 0,
|
|
46
|
+
max: 100,
|
|
47
|
+
step: 1,
|
|
48
|
+
value: 0,
|
|
49
|
+
disabled: false
|
|
50
|
+
}, options);
|
|
51
|
+
this.value = this.options.value;
|
|
52
|
+
this.options.min = Number(this.options.min);
|
|
53
|
+
this.options.max = Number(this.options.max);
|
|
54
|
+
this.options.step = Number(this.options.step);
|
|
55
|
+
this.init();
|
|
56
|
+
}
|
|
57
|
+
Slider.prototype.init = function () {
|
|
58
|
+
if (this.options.disabled) {
|
|
59
|
+
this.element.style.opacity = '0.5';
|
|
60
|
+
}
|
|
61
|
+
// 기존 내용 제거
|
|
62
|
+
this.element.innerHTML = '';
|
|
63
|
+
// Track 생성
|
|
64
|
+
this.trackElement = document.createElement('div');
|
|
65
|
+
this.trackElement.className = 'ncua-slider__track';
|
|
66
|
+
this.element.appendChild(this.trackElement);
|
|
67
|
+
// Progress 생성
|
|
68
|
+
this.progressElement = document.createElement('div');
|
|
69
|
+
this.progressElement.className = 'ncua-slider__progress';
|
|
70
|
+
this.element.appendChild(this.progressElement);
|
|
71
|
+
// Handle(s) 생성
|
|
72
|
+
if (Array.isArray(this.value)) {
|
|
73
|
+
// Range slider (2 handles)
|
|
74
|
+
var _a = this.value,
|
|
75
|
+
leftValue = _a[0],
|
|
76
|
+
rightValue = _a[1];
|
|
77
|
+
this.createHandle(0, leftValue);
|
|
78
|
+
this.createHandle(1, rightValue);
|
|
79
|
+
} else {
|
|
80
|
+
// Single slider (1 handle)
|
|
81
|
+
this.createHandle(0, this.value);
|
|
82
|
+
}
|
|
83
|
+
// 이벤트 리스너 추가
|
|
84
|
+
if (!this.options.disabled) {
|
|
85
|
+
this.enable();
|
|
86
|
+
}
|
|
87
|
+
// 초기 위치 설정
|
|
88
|
+
this.updateHandlePositions();
|
|
89
|
+
};
|
|
90
|
+
Slider.prototype.createHandle = function (index, value) {
|
|
91
|
+
var _this = this;
|
|
92
|
+
var handle = document.createElement('div');
|
|
93
|
+
handle.className = 'ncua-slider__handle';
|
|
94
|
+
handle.setAttribute('role', 'slider');
|
|
95
|
+
handle.setAttribute('tabindex', this.options.disabled ? '-1' : '0');
|
|
96
|
+
handle.setAttribute('aria-valuemin', Array.isArray(this.value) && index === 1 ? String(this.value[0]) : String(this.options.min));
|
|
97
|
+
handle.setAttribute('aria-valuemax', Array.isArray(this.value) && index === 0 ? String(this.value[1]) : String(this.options.max));
|
|
98
|
+
handle.setAttribute('aria-valuenow', String(value));
|
|
99
|
+
handle.setAttribute('aria-disabled', String(this.options.disabled));
|
|
100
|
+
handle.dataset.index = String(index);
|
|
101
|
+
handle.addEventListener('focus', function () {
|
|
102
|
+
_this.activeHandle = index;
|
|
103
|
+
_this.updateHandleClasses();
|
|
104
|
+
});
|
|
105
|
+
handle.addEventListener('blur', function () {
|
|
106
|
+
_this.activeHandle = null;
|
|
107
|
+
_this.updateHandleClasses();
|
|
108
|
+
});
|
|
109
|
+
if (this.options.labelPosition === 'bottom') {
|
|
110
|
+
var label = document.createElement('div');
|
|
111
|
+
label.className = "ncua-slider__label";
|
|
112
|
+
label.textContent = "".concat(value, "%");
|
|
113
|
+
handle.appendChild(label);
|
|
114
|
+
}
|
|
115
|
+
if (this.options.labelPosition === 'top-floating') {
|
|
116
|
+
var label = document.createElement('div');
|
|
117
|
+
label.className = "ncua-slider__label ncua-slider__label--tooltip";
|
|
118
|
+
label.textContent = "".concat(value, "%");
|
|
119
|
+
handle.appendChild(label);
|
|
120
|
+
}
|
|
121
|
+
this.element.appendChild(handle);
|
|
122
|
+
this.handleElements[index] = handle;
|
|
123
|
+
};
|
|
124
|
+
Slider.prototype.updateHandlePositions = function () {
|
|
125
|
+
if (Array.isArray(this.value)) {
|
|
126
|
+
// Range slider
|
|
127
|
+
var _a = this.value,
|
|
128
|
+
leftValue = _a[0],
|
|
129
|
+
rightValue = _a[1];
|
|
130
|
+
var leftPosition = this.getPositionFromValue(leftValue);
|
|
131
|
+
var rightPosition = this.getPositionFromValue(rightValue);
|
|
132
|
+
this.handleElements[0].style.left = "".concat(leftPosition, "%");
|
|
133
|
+
this.handleElements[1].style.left = "".concat(rightPosition, "%");
|
|
134
|
+
if (this.options.labelPosition) {
|
|
135
|
+
var leftLabel = this.handleElements[0].querySelector('.ncua-slider__label');
|
|
136
|
+
var rightLabel = this.handleElements[1].querySelector('.ncua-slider__label');
|
|
137
|
+
if (leftLabel) leftLabel.textContent = "".concat(leftValue, "%");
|
|
138
|
+
if (rightLabel) rightLabel.textContent = "".concat(rightValue, "%");
|
|
139
|
+
}
|
|
140
|
+
if (this.progressElement) {
|
|
141
|
+
this.progressElement.style.left = "".concat(leftPosition, "%");
|
|
142
|
+
this.progressElement.style.width = "".concat(rightPosition - leftPosition, "%");
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
// Single slider
|
|
146
|
+
var position = this.getPositionFromValue(this.value);
|
|
147
|
+
this.handleElements[0].style.left = "".concat(position, "%");
|
|
148
|
+
if (this.options.labelPosition) {
|
|
149
|
+
var label = this.handleElements[0].querySelector('.ncua-slider__label');
|
|
150
|
+
if (label) label.textContent = "".concat(this.value, "%");
|
|
151
|
+
}
|
|
152
|
+
if (this.progressElement) {
|
|
153
|
+
this.progressElement.style.left = '0';
|
|
154
|
+
this.progressElement.style.width = "".concat(position, "%");
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
// ARIA 속성 업데이트
|
|
158
|
+
this.updateAriaAttributes();
|
|
159
|
+
};
|
|
160
|
+
Slider.prototype.updateHandleClasses = function () {
|
|
161
|
+
var _this = this;
|
|
162
|
+
this.handleElements.forEach(function (handle, index) {
|
|
163
|
+
if (index === _this.activeHandle) {
|
|
164
|
+
handle.classList.add('is-active');
|
|
165
|
+
} else {
|
|
166
|
+
handle.classList.remove('is-active');
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
Slider.prototype.updateAriaAttributes = function () {
|
|
171
|
+
if (Array.isArray(this.value)) {
|
|
172
|
+
// Range slider
|
|
173
|
+
var _a = this.value,
|
|
174
|
+
leftValue = _a[0],
|
|
175
|
+
rightValue = _a[1];
|
|
176
|
+
this.handleElements[0].setAttribute('aria-valuenow', String(leftValue));
|
|
177
|
+
this.handleElements[0].setAttribute('aria-valuemax', String(rightValue));
|
|
178
|
+
this.handleElements[1].setAttribute('aria-valuenow', String(rightValue));
|
|
179
|
+
this.handleElements[1].setAttribute('aria-valuemin', String(leftValue));
|
|
180
|
+
} else {
|
|
181
|
+
// Single slider
|
|
182
|
+
this.handleElements[0].setAttribute('aria-valuenow', String(this.value));
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
Slider.prototype.getPositionFromValue = function (value) {
|
|
186
|
+
return (value - this.options.min) / (this.options.max - this.options.min) * 100;
|
|
187
|
+
};
|
|
188
|
+
Slider.prototype.getValueFromPosition = function (position) {
|
|
189
|
+
var percentage = Math.min(Math.max(position, 0), 100);
|
|
190
|
+
var exactValue = this.options.min + percentage / 100 * (this.options.max - this.options.min);
|
|
191
|
+
var steppedValue = Math.round(exactValue / this.options.step) * this.options.step;
|
|
192
|
+
return Math.min(Math.max(steppedValue, this.options.min), this.options.max);
|
|
193
|
+
};
|
|
194
|
+
Slider.prototype.handleInteractionStart = function (clientX, target) {
|
|
195
|
+
// 슬라이더 영역 내부를 클릭/터치한 경우
|
|
196
|
+
if (target.closest('.ncua-slider')) {
|
|
197
|
+
// 핸들을 직접 클릭/터치했는지 확인
|
|
198
|
+
var handleElement = target.closest('.ncua-slider__handle');
|
|
199
|
+
if (handleElement) {
|
|
200
|
+
if (Array.isArray(this.value) && this.value[0] === this.value[1] && this.value[0] === this.options.max) {
|
|
201
|
+
this.activeHandle = 0;
|
|
202
|
+
} else if (Array.isArray(this.value) && this.value[0] === this.value[1] && this.value[0] === this.options.min) {
|
|
203
|
+
this.activeHandle = 1;
|
|
204
|
+
} else {
|
|
205
|
+
this.activeHandle = parseInt(handleElement.dataset.index || '0', 10);
|
|
206
|
+
}
|
|
207
|
+
} else {
|
|
208
|
+
// 슬라이더 트랙을 클릭/터치한 경우, 가장 가까운 핸들을 결정
|
|
209
|
+
var rect = this.element.getBoundingClientRect();
|
|
210
|
+
var position = (clientX - rect.left) / rect.width * 100;
|
|
211
|
+
if (Array.isArray(this.value)) {
|
|
212
|
+
var _a = this.value,
|
|
213
|
+
leftValue = _a[0],
|
|
214
|
+
rightValue = _a[1];
|
|
215
|
+
var leftPosition = this.getPositionFromValue(leftValue);
|
|
216
|
+
var rightPosition = this.getPositionFromValue(rightValue);
|
|
217
|
+
if (position < leftPosition) {
|
|
218
|
+
this.activeHandle = 0;
|
|
219
|
+
} else if (position > rightPosition) {
|
|
220
|
+
this.activeHandle = 1;
|
|
221
|
+
} else {
|
|
222
|
+
this.activeHandle = Math.abs(position - leftPosition) < Math.abs(position - rightPosition) ? 0 : 1;
|
|
223
|
+
}
|
|
224
|
+
} else {
|
|
225
|
+
this.activeHandle = 0;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
this.updateHandleClasses();
|
|
229
|
+
this.isDragging = true;
|
|
230
|
+
// 클릭/터치 위치로 값 업데이트
|
|
231
|
+
this.updateValueFromClientX(clientX);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
Slider.prototype.updateValueFromClientX = function (clientX) {
|
|
235
|
+
if (!this.element || this.activeHandle === null) return;
|
|
236
|
+
var rect = this.element.getBoundingClientRect();
|
|
237
|
+
var position = (clientX - rect.left) / rect.width * 100;
|
|
238
|
+
var newValue = this.getValueFromPosition(position);
|
|
239
|
+
var prevValue = this.value;
|
|
240
|
+
if (Array.isArray(this.value)) {
|
|
241
|
+
// Range slider
|
|
242
|
+
var _a = this.value,
|
|
243
|
+
leftValue = _a[0],
|
|
244
|
+
rightValue = _a[1];
|
|
245
|
+
if (this.activeHandle === 0) {
|
|
246
|
+
// 왼쪽 핸들
|
|
247
|
+
this.value = [Math.min(newValue, rightValue), rightValue];
|
|
248
|
+
} else if (this.activeHandle === 1) {
|
|
249
|
+
// 오른쪽 핸들
|
|
250
|
+
this.value = [leftValue, Math.max(newValue, leftValue)];
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
// Single slider
|
|
254
|
+
this.value = newValue;
|
|
255
|
+
}
|
|
256
|
+
this.notifyChange(prevValue);
|
|
257
|
+
this.updateHandlePositions();
|
|
258
|
+
};
|
|
259
|
+
Slider.prototype.notifyChange = function (prevValue) {
|
|
260
|
+
var _this = this;
|
|
261
|
+
var isSingle = !Array.isArray(prevValue);
|
|
262
|
+
var checkChangedSingle = function () {
|
|
263
|
+
return prevValue !== _this.value;
|
|
264
|
+
};
|
|
265
|
+
var checkChangedRange = function () {
|
|
266
|
+
return Array.isArray(prevValue) && Array.isArray(_this.value) && (prevValue[0] !== _this.value[0] || prevValue[1] !== _this.value[1]);
|
|
267
|
+
};
|
|
268
|
+
var isChanged = isSingle ? checkChangedSingle() : checkChangedRange();
|
|
269
|
+
if (this.options.onChange && isChanged) {
|
|
270
|
+
this.options.onChange(this.value);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
Slider.prototype.setValue = function (value) {
|
|
274
|
+
this.value = value;
|
|
275
|
+
this.updateHandlePositions();
|
|
276
|
+
};
|
|
277
|
+
Slider.prototype.getValue = function () {
|
|
278
|
+
return this.value;
|
|
279
|
+
};
|
|
280
|
+
Slider.prototype.disable = function () {
|
|
281
|
+
this.options.disabled = true;
|
|
282
|
+
this.element.style.opacity = '0.5';
|
|
283
|
+
this.handleElements.forEach(function (handle) {
|
|
284
|
+
handle.setAttribute('tabindex', '-1');
|
|
285
|
+
handle.setAttribute('aria-disabled', 'true');
|
|
286
|
+
});
|
|
287
|
+
this.element.removeEventListener('mousedown', this.handleMouseDown);
|
|
288
|
+
this.element.removeEventListener('touchstart', this.handleTouchStart);
|
|
289
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
290
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
291
|
+
document.removeEventListener('touchmove', this.handleTouchMove);
|
|
292
|
+
document.removeEventListener('touchend', this.handleTouchEnd);
|
|
293
|
+
};
|
|
294
|
+
Slider.prototype.enable = function () {
|
|
295
|
+
this.options.disabled = false;
|
|
296
|
+
this.element.style.opacity = '1';
|
|
297
|
+
this.handleElements.forEach(function (handle) {
|
|
298
|
+
handle.setAttribute('tabindex', '0');
|
|
299
|
+
handle.setAttribute('aria-disabled', 'false');
|
|
300
|
+
});
|
|
301
|
+
this.element.addEventListener('mousedown', this.handleMouseDown);
|
|
302
|
+
this.element.addEventListener('touchstart', this.handleTouchStart, {
|
|
303
|
+
passive: false
|
|
304
|
+
});
|
|
305
|
+
document.addEventListener('mousemove', this.handleMouseMove);
|
|
306
|
+
document.addEventListener('mouseup', this.handleMouseUp);
|
|
307
|
+
document.addEventListener('touchmove', this.handleTouchMove);
|
|
308
|
+
document.addEventListener('touchend', this.handleTouchEnd);
|
|
309
|
+
};
|
|
310
|
+
Slider.prototype.destroy = function () {
|
|
311
|
+
// 모든 이벤트 리스너 제거
|
|
312
|
+
this.element.removeEventListener('mousedown', this.handleMouseDown);
|
|
313
|
+
this.element.removeEventListener('touchstart', this.handleTouchStart);
|
|
314
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
315
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
316
|
+
document.removeEventListener('touchmove', this.handleTouchMove);
|
|
317
|
+
document.removeEventListener('touchend', this.handleTouchEnd);
|
|
318
|
+
// 모든 내용 제거
|
|
319
|
+
this.element.innerHTML = '';
|
|
320
|
+
// 참조 정리
|
|
321
|
+
this.handleElements = [];
|
|
322
|
+
this.progressElement = null;
|
|
323
|
+
this.trackElement = null;
|
|
324
|
+
};
|
|
325
|
+
return Slider;
|
|
326
|
+
}();
|
|
327
|
+
export { Slider };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Swiper } from 'swiper/types';
|
|
2
|
+
var Tab = /** @class */function () {
|
|
3
|
+
function Tab(element) {
|
|
4
|
+
this.swiper = null;
|
|
5
|
+
if (!element) {
|
|
6
|
+
throw new Error('Tab element is required');
|
|
7
|
+
}
|
|
8
|
+
if (!(element instanceof HTMLElement)) {
|
|
9
|
+
throw new Error('Invalid element type provided to Tab');
|
|
10
|
+
}
|
|
11
|
+
this.element = element;
|
|
12
|
+
this.init();
|
|
13
|
+
}
|
|
14
|
+
Tab.prototype.init = function () {
|
|
15
|
+
this.swiper = new Swiper(this.element, {
|
|
16
|
+
slidesPerView: 'auto',
|
|
17
|
+
spaceBetween: 8,
|
|
18
|
+
grabCursor: true,
|
|
19
|
+
loop: false,
|
|
20
|
+
freeMode: {
|
|
21
|
+
enabled: true,
|
|
22
|
+
sticky: false
|
|
23
|
+
},
|
|
24
|
+
mousewheel: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
Tab.prototype.destroy = function () {
|
|
28
|
+
if (this.swiper) {
|
|
29
|
+
this.swiper.destroy();
|
|
30
|
+
this.swiper = null;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return Tab;
|
|
34
|
+
}();
|
|
35
|
+
export { Tab };
|