@ncds/ui-admin 0.0.33 → 0.0.34
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/temp/assets/scripts/datePicker.d.ts +49 -0
- package/dist/temp/assets/scripts/datePicker.d.ts.map +1 -0
- package/dist/temp/assets/scripts/datePicker.js +232 -0
- package/dist/temp/assets/scripts/index.d.ts +7 -0
- package/dist/temp/assets/scripts/index.d.ts.map +1 -0
- package/dist/temp/assets/scripts/index.js +8 -0
- package/dist/temp/assets/scripts/slider.d.ts.map +1 -0
- package/dist/temp/assets/scripts/slider.js +331 -0
- package/dist/temp/assets/scripts/tab.d.ts +8 -0
- package/dist/temp/assets/scripts/tab.d.ts.map +1 -0
- package/dist/temp/assets/scripts/tab.js +35 -0
- package/dist/temp/constant/color.d.ts.map +1 -0
- package/dist/temp/constant/color.js +32 -0
- package/dist/temp/constant/size.d.ts.map +1 -0
- package/dist/temp/constant/size.js +1 -0
- package/dist/temp/docusaurus/docusaurus.config.d.ts +4 -0
- package/dist/temp/docusaurus/docusaurus.config.d.ts.map +1 -0
- package/dist/temp/docusaurus/docusaurus.config.js +300 -0
- package/dist/temp/docusaurus/sidebars.d.ts +14 -0
- package/dist/temp/docusaurus/sidebars.d.ts.map +1 -0
- package/dist/temp/docusaurus/sidebars.js +104 -0
- package/dist/temp/docusaurus/src/components/Badge.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Badge.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Badge.js +1 -0
- package/dist/temp/docusaurus/src/components/BadgeGroup.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/BadgeGroup.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/BadgeGroup.js +1 -0
- package/dist/temp/docusaurus/src/components/BreadCrumb.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/BreadCrumb.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/BreadCrumb.js +2 -0
- package/dist/temp/docusaurus/src/components/Button.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Button.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Button.js +1 -0
- package/dist/temp/docusaurus/src/components/ButtonGroup.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/ButtonGroup.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ButtonGroup.js +1 -0
- package/dist/temp/docusaurus/src/components/CarouselArrow.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/CarouselArrow.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/CarouselArrow.js +1 -0
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/CarouselNumberGroup.js +1 -0
- package/dist/temp/docusaurus/src/components/Checkbox.d.ts +4 -0
- package/dist/temp/docusaurus/src/components/Checkbox.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Checkbox.js +20 -0
- package/dist/temp/docusaurus/src/components/CodeTabs/index.d.ts +10 -0
- package/dist/temp/docusaurus/src/components/CodeTabs/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/CodeTabs/index.js +143 -0
- package/dist/temp/docusaurus/src/components/ColorSwatch.d.ts +9 -0
- package/dist/temp/docusaurus/src/components/ColorSwatch.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ColorSwatch.js +37 -0
- package/dist/temp/docusaurus/src/components/DatePicker.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/DatePicker.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/DatePicker.js +1 -0
- package/dist/temp/docusaurus/src/components/Divider.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/Divider.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Divider.js +2 -0
- package/dist/temp/docusaurus/src/components/Dot.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/Dot.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Dot.js +1 -0
- package/dist/temp/docusaurus/src/components/Dropdown.d.ts +4 -0
- package/dist/temp/docusaurus/src/components/Dropdown.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Dropdown.js +20 -0
- package/dist/temp/docusaurus/src/components/EmptyState.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/EmptyState.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/EmptyState.js +1 -0
- package/dist/temp/docusaurus/src/components/ExampleCode/index.d.ts +9 -0
- package/dist/temp/docusaurus/src/components/ExampleCode/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ExampleCode/index.js +30 -0
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.d.ts +8 -0
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ExampleContainer/index.js +30 -0
- package/dist/temp/docusaurus/src/components/FeaturedIcon.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/FeaturedIcon.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/FeaturedIcon.js +1 -0
- package/dist/temp/docusaurus/src/components/HorizontalTab.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/HorizontalTab.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/HorizontalTab.js +2 -0
- package/dist/temp/docusaurus/src/components/IconList.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/IconList.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/IconList.js +1588 -0
- package/dist/temp/docusaurus/src/components/Input.d.ts +4 -0
- package/dist/temp/docusaurus/src/components/Input.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Input.js +3 -0
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.d.ts +19 -0
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/InteractiveExample/index.js +174 -0
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.d.ts +46 -0
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/InteractiveIconWrapper.js +211 -0
- package/dist/temp/docusaurus/src/components/Modal.d.ts +8 -0
- package/dist/temp/docusaurus/src/components/Modal.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Modal.js +30 -0
- package/dist/temp/docusaurus/src/components/Notification.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Notification.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Notification.js +1 -0
- package/dist/temp/docusaurus/src/components/PaginationExample.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/PaginationExample.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/PaginationExample.js +1 -0
- package/dist/temp/docusaurus/src/components/ProgressBar.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/ProgressBar.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ProgressBar.js +2 -0
- package/dist/temp/docusaurus/src/components/ProgressCircle.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/ProgressCircle.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/ProgressCircle.js +2 -0
- package/dist/temp/docusaurus/src/components/Radio.d.ts +4 -0
- package/dist/temp/docusaurus/src/components/Radio.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Radio.js +20 -0
- package/dist/temp/docusaurus/src/components/RangeDatePicker.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/RangeDatePicker.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/RangeDatePicker.js +1 -0
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/RangeDatePickerWithButtons.js +1 -0
- package/dist/temp/docusaurus/src/components/Select.d.ts +4 -0
- package/dist/temp/docusaurus/src/components/Select.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Select.js +17 -0
- package/dist/temp/docusaurus/src/components/Slider.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/Slider.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Slider.js +1 -0
- package/dist/temp/docusaurus/src/components/Spinner.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Spinner.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Spinner.js +1 -0
- package/dist/temp/docusaurus/src/components/Table.d.ts +43 -0
- package/dist/temp/docusaurus/src/components/Table.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Table.js +56 -0
- package/dist/temp/docusaurus/src/components/Tabs.d.ts +27 -0
- package/dist/temp/docusaurus/src/components/Tabs.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Tabs.js +49 -0
- package/dist/temp/docusaurus/src/components/Tag.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Tag.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Tag.js +16 -0
- package/dist/temp/docusaurus/src/components/Toggle.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/Toggle.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/Toggle.js +19 -0
- package/dist/temp/docusaurus/src/components/TooltipExample.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/TooltipExample.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/TooltipExample.js +1 -0
- package/dist/temp/docusaurus/src/components/VerticalTab.d.ts +3 -0
- package/dist/temp/docusaurus/src/components/VerticalTab.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/VerticalTab.js +2 -0
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/BadgeGroupDemo.js +46 -0
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.d.ts +9 -0
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/DividerDemo.js +40 -0
- package/dist/temp/docusaurus/src/components/demos/DotDemo.d.ts +5 -0
- package/dist/temp/docusaurus/src/components/demos/DotDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/DotDemo.js +17 -0
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.d.ts +19 -0
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/DropdownDemo.js +89 -0
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.d.ts +9 -0
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/FeaturedIconDemo.js +6 -0
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.d.ts +27 -0
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/ModalDemo.js +51 -0
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.d.ts +48 -0
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/NotificationDemo.js +77 -0
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.d.ts +18 -0
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/SliderDemo.js +24 -0
- package/dist/temp/docusaurus/src/components/demos/index.d.ts +8 -0
- package/dist/temp/docusaurus/src/components/demos/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/demos/index.js +7 -0
- package/dist/temp/docusaurus/src/components/index.d.ts +2 -0
- package/dist/temp/docusaurus/src/components/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/components/index.js +2 -0
- package/dist/temp/docusaurus/src/pages/index.d.ts +4 -0
- package/dist/temp/docusaurus/src/pages/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/pages/index.js +10 -0
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/BasicExample.js +47 -0
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/ClickableDim.js +48 -0
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/CustomStyle.js +50 -0
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/EndCallback.js +62 -0
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/GoToStep.js +65 -0
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/NoTargetElement.js +63 -0
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/NotUseAnimation.js +48 -0
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/PositionExample.js +52 -0
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/SetBtnLabel.js +52 -0
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/SkipBtn.js +54 -0
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/StepCount.js +65 -0
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.d.ts +3 -0
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/UseHtml.js +46 -0
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.d.ts +7 -0
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/component/ExampleContainer.js +21 -0
- package/dist/temp/docusaurus/src/step-guide-example/util/index.d.ts +5 -0
- package/dist/temp/docusaurus/src/step-guide-example/util/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/step-guide-example/util/index.js +16 -0
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.d.ts +6 -0
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/theme/BlogArchivePage/index.js +46 -0
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.d.ts +6 -0
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/theme/BlogSidebar/index.js +30 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.d.ts +3 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/Items/Home/index.js +25 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.d.ts +4 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/StructuredData/index.js +20 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.d.ts +3 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/theme/DocBreadcrumbs/index.js +46 -0
- package/dist/temp/docusaurus/src/utils/html.d.ts +3 -0
- package/dist/temp/docusaurus/src/utils/html.d.ts.map +1 -0
- package/dist/temp/docusaurus/src/utils/html.js +100 -0
- package/dist/temp/index.d.ts.map +1 -0
- package/dist/{esm → temp}/index.js +1 -1
- package/dist/temp/src/components/badge/Badge.d.ts.map +1 -0
- package/dist/temp/src/components/badge/Badge.js +22 -0
- package/dist/{types → temp}/src/components/badge/BadgeGroup.d.ts +1 -1
- package/dist/temp/src/components/badge/BadgeGroup.d.ts.map +1 -0
- package/dist/temp/src/components/badge/BadgeGroup.js +31 -0
- package/dist/temp/src/components/badge/index.d.ts.map +1 -0
- package/dist/temp/src/components/badge/index.js +2 -0
- package/dist/temp/src/components/badge/utils.d.ts.map +1 -0
- package/dist/temp/src/components/badge/utils.js +16 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.d.ts.map +1 -0
- package/dist/temp/src/components/breadcrumb/BreadCrumb.js +30 -0
- package/dist/temp/src/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/temp/src/components/breadcrumb/index.js +1 -0
- package/dist/temp/src/components/button/Button.d.ts.map +1 -0
- package/dist/temp/src/components/button/Button.js +89 -0
- package/dist/temp/src/components/button/ButtonCloseX.d.ts.map +1 -0
- package/dist/temp/src/components/button/ButtonCloseX.js +24 -0
- package/dist/temp/src/components/button/ButtonGroup.d.ts.map +1 -0
- package/dist/temp/src/components/button/ButtonGroup.js +71 -0
- package/dist/temp/src/components/button/index.d.ts.map +1 -0
- package/dist/temp/src/components/button/index.js +2 -0
- package/dist/temp/src/components/carousel/CarouselArrow.d.ts.map +1 -0
- package/dist/temp/src/components/carousel/CarouselArrow.js +23 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.d.ts.map +1 -0
- package/dist/temp/src/components/carousel/CarouselNumberGroup.js +23 -0
- package/dist/temp/src/components/carousel/index.d.ts.map +1 -0
- package/dist/temp/src/components/carousel/index.js +2 -0
- package/dist/temp/src/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/temp/src/components/checkbox/Checkbox.js +29 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.d.ts.map +1 -0
- package/dist/temp/src/components/checkbox/CheckboxInput.js +37 -0
- package/dist/temp/src/components/checkbox/index.d.ts.map +1 -0
- package/dist/temp/src/components/checkbox/index.js +2 -0
- package/dist/{types → temp}/src/components/date-picker/DatePicker.d.ts +1 -0
- package/dist/temp/src/components/date-picker/DatePicker.d.ts.map +1 -0
- package/dist/temp/src/components/date-picker/DatePicker.js +39 -0
- package/dist/{types → temp}/src/components/date-picker/RangeDatePicker.d.ts +1 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.d.ts.map +1 -0
- package/dist/temp/src/components/date-picker/RangeDatePicker.js +127 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.d.ts.map +1 -0
- package/dist/temp/src/components/date-picker/RangeDatePickerWithButtons.js +46 -0
- package/dist/temp/src/components/date-picker/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/date-picker/index.js +1 -1
- package/dist/temp/src/components/date-picker/utils.d.ts.map +1 -0
- package/dist/temp/src/components/date-picker/utils.js +8 -0
- package/dist/temp/src/components/divider/Divider.d.ts.map +1 -0
- package/dist/temp/src/components/divider/Divider.js +24 -0
- package/dist/temp/src/components/divider/index.d.ts.map +1 -0
- package/dist/temp/src/components/divider/index.js +1 -0
- package/dist/temp/src/components/dot/Dot.d.ts.map +1 -0
- package/dist/temp/src/components/dot/Dot.js +30 -0
- package/dist/temp/src/components/dot/index.d.ts.map +1 -0
- package/dist/temp/src/components/dot/index.js +1 -0
- package/dist/{types → temp}/src/components/dropdown/Dropdown.d.ts +1 -0
- package/dist/temp/src/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/temp/src/components/dropdown/Dropdown.js +82 -0
- package/dist/temp/src/components/dropdown/index.d.ts.map +1 -0
- package/dist/temp/src/components/dropdown/index.js +1 -0
- package/dist/temp/src/components/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/temp/src/components/empty-state/EmptyState.js +32 -0
- package/dist/temp/src/components/empty-state/index.d.ts.map +1 -0
- package/dist/temp/src/components/empty-state/index.js +1 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.d.ts.map +1 -0
- package/dist/temp/src/components/featured-icon/FeaturedIcon.js +36 -0
- package/dist/temp/src/components/featured-icon/index.d.ts.map +1 -0
- package/dist/temp/src/components/featured-icon/index.js +1 -0
- package/dist/temp/src/components/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/index.js +1 -1
- package/dist/temp/src/components/input/InputBase.d.ts.map +1 -0
- package/dist/temp/src/components/input/InputBase.js +91 -0
- package/dist/{types → temp}/src/components/input/PasswordInput.d.ts +1 -0
- package/dist/temp/src/components/input/PasswordInput.d.ts.map +1 -0
- package/dist/temp/src/components/input/PasswordInput.js +75 -0
- package/dist/temp/src/components/input/Textarea.d.ts.map +1 -0
- package/dist/temp/src/components/input/Textarea.js +60 -0
- package/dist/temp/src/components/input/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/input/index.js +1 -1
- package/dist/temp/src/components/modal/Modal.d.ts.map +1 -0
- package/dist/temp/src/components/modal/Modal.js +100 -0
- package/dist/temp/src/components/modal/index.d.ts.map +1 -0
- package/dist/temp/src/components/modal/index.js +1 -0
- package/dist/temp/src/components/notification/FloatingNotification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/FloatingNotification.js +50 -0
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/FullWidthNotification.js +47 -0
- package/dist/temp/src/components/notification/Notification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/Notification.js +31 -0
- package/dist/temp/src/components/notification/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/notification/index.js +1 -1
- package/dist/temp/src/components/pagination/NavButton.d.ts.map +1 -0
- package/dist/temp/src/components/pagination/NavButton.js +66 -0
- package/dist/temp/src/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/temp/src/components/pagination/Pagination.js +97 -0
- package/dist/temp/src/components/pagination/index.d.ts.map +1 -0
- package/dist/temp/src/components/pagination/index.js +2 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.d.ts.map +1 -0
- package/dist/temp/src/components/progress-bar/ProgressBar.js +25 -0
- package/dist/temp/src/components/progress-bar/index.d.ts.map +1 -0
- package/dist/temp/src/components/progress-bar/index.js +1 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.d.ts.map +1 -0
- package/dist/temp/src/components/progress-circle/ProgressCircle.js +22 -0
- package/dist/temp/src/components/progress-circle/index.d.ts.map +1 -0
- package/dist/temp/src/components/progress-circle/index.js +1 -0
- package/dist/temp/src/components/radio/Radio.d.ts.map +1 -0
- package/dist/temp/src/components/radio/Radio.js +29 -0
- package/dist/temp/src/components/radio/RadioInput.d.ts.map +1 -0
- package/dist/temp/src/components/radio/RadioInput.js +29 -0
- package/dist/temp/src/components/radio/index.d.ts.map +1 -0
- package/dist/temp/src/components/radio/index.js +2 -0
- package/dist/temp/src/components/select/Select.d.ts.map +1 -0
- package/dist/temp/src/components/select/Select.js +38 -0
- package/dist/temp/src/components/select/index.d.ts.map +1 -0
- package/dist/temp/src/components/select/index.js +1 -0
- package/dist/{types → temp}/src/components/shared/hintText/HintText.d.ts +1 -0
- package/dist/temp/src/components/shared/hintText/HintText.d.ts.map +1 -0
- package/dist/temp/src/components/shared/hintText/HintText.js +28 -0
- package/dist/temp/src/components/shared/hintText/index.d.ts.map +1 -0
- package/dist/temp/src/components/shared/hintText/index.js +1 -0
- package/dist/temp/src/components/shared/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/shared/index.js +1 -1
- package/dist/{types → temp}/src/components/shared/label/Label.d.ts +1 -0
- package/dist/temp/src/components/shared/label/Label.d.ts.map +1 -0
- package/dist/temp/src/components/shared/label/Label.js +28 -0
- package/dist/temp/src/components/shared/label/index.d.ts.map +1 -0
- package/dist/temp/src/components/shared/label/index.js +1 -0
- package/dist/temp/src/components/slider/Slider.d.ts.map +1 -0
- package/dist/temp/src/components/slider/Slider.js +44 -0
- package/dist/temp/src/components/slider/index.d.ts.map +1 -0
- package/dist/temp/src/components/slider/index.js +1 -0
- package/dist/temp/src/components/spinner/Spinner.d.ts.map +1 -0
- package/dist/temp/src/components/spinner/Spinner.js +21 -0
- package/dist/temp/src/components/spinner/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/spinner/index.js +1 -1
- package/dist/temp/src/components/tab/HorizontalTab.d.ts.map +1 -0
- package/dist/temp/src/components/tab/HorizontalTab.js +44 -0
- package/dist/temp/src/components/tab/TabButton.d.ts.map +1 -0
- package/dist/temp/src/components/tab/TabButton.js +38 -0
- package/dist/temp/src/components/tab/VerticalTab.d.ts.map +1 -0
- package/dist/temp/src/components/tab/VerticalTab.js +39 -0
- package/dist/temp/src/components/tab/index.d.ts.map +1 -0
- package/dist/{esm → temp}/src/components/tab/index.js +1 -1
- package/dist/temp/src/components/tag/Tag.d.ts.map +1 -0
- package/dist/temp/src/components/tag/Tag.js +34 -0
- package/dist/temp/src/components/tag/index.d.ts.map +1 -0
- package/dist/temp/src/components/tag/index.js +1 -0
- package/dist/temp/src/components/toggle/Toggle.d.ts.map +1 -0
- package/dist/temp/src/components/toggle/Toggle.js +30 -0
- package/dist/temp/src/components/toggle/index.d.ts.map +1 -0
- package/dist/temp/src/components/toggle/index.js +1 -0
- package/dist/temp/src/components/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/temp/src/components/tooltip/Tooltip.js +23 -0
- package/dist/temp/src/components/tooltip/index.d.ts.map +1 -0
- package/dist/temp/src/components/tooltip/index.js +1 -0
- package/dist/temp/src/constant/breakpoint.d.ts.map +1 -0
- package/dist/temp/src/constant/breakpoint.js +6 -0
- package/dist/temp/src/constant/date-picker.d.ts.map +1 -0
- package/dist/temp/src/constant/date-picker.js +53 -0
- package/dist/temp/src/constant/index.d.ts.map +1 -0
- package/dist/temp/src/constant/index.js +2 -0
- package/dist/temp/src/constant/size.d.ts.map +1 -0
- package/dist/temp/src/constant/size.js +1 -0
- package/dist/temp/src/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/temp/src/hooks/useMediaQuery.js +20 -0
- package/dist/temp/src/utils/date-picker.d.ts.map +1 -0
- package/dist/temp/src/utils/date-picker.js +12 -0
- package/dist/temp/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -1
- package/dist/cjs/assets/scripts/index.js +0 -27
- package/dist/cjs/assets/scripts/slider.js +0 -341
- package/dist/cjs/assets/scripts/test.js +0 -10
- package/dist/cjs/constant/color.js +0 -38
- package/dist/cjs/constant/size.js +0 -5
- package/dist/cjs/index.js +0 -313
- package/dist/cjs/src/components/badge/Badge.js +0 -52
- package/dist/cjs/src/components/badge/BadgeGroup.js +0 -62
- package/dist/cjs/src/components/badge/index.js +0 -27
- package/dist/cjs/src/components/badge/utils.js +0 -33
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +0 -67
- package/dist/cjs/src/components/breadcrumb/index.js +0 -16
- package/dist/cjs/src/components/button/Button.js +0 -127
- package/dist/cjs/src/components/button/ButtonCloseX.js +0 -44
- package/dist/cjs/src/components/button/ButtonGroup.js +0 -121
- package/dist/cjs/src/components/button/index.js +0 -27
- package/dist/cjs/src/components/carousel/CarouselArrow.js +0 -41
- package/dist/cjs/src/components/carousel/CarouselNumberGroup.js +0 -46
- package/dist/cjs/src/components/carousel/index.js +0 -27
- package/dist/cjs/src/components/checkbox/Checkbox.js +0 -70
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +0 -96
- package/dist/cjs/src/components/checkbox/index.js +0 -27
- package/dist/cjs/src/components/date-picker/DatePicker.js +0 -86
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +0 -124
- package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +0 -92
- package/dist/cjs/src/components/date-picker/index.js +0 -49
- package/dist/cjs/src/components/date-picker/utils.js +0 -18
- package/dist/cjs/src/components/divider/Divider.js +0 -47
- package/dist/cjs/src/components/divider/index.js +0 -16
- package/dist/cjs/src/components/dot/Dot.js +0 -41
- package/dist/cjs/src/components/dot/index.js +0 -16
- package/dist/cjs/src/components/dropdown/Dropdown.js +0 -206
- package/dist/cjs/src/components/dropdown/index.js +0 -16
- package/dist/cjs/src/components/empty-state/EmptyState.js +0 -58
- package/dist/cjs/src/components/empty-state/index.js +0 -16
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +0 -62
- package/dist/cjs/src/components/featured-icon/index.js +0 -16
- package/dist/cjs/src/components/index.js +0 -291
- package/dist/cjs/src/components/input/InputBase.js +0 -184
- package/dist/cjs/src/components/input/PasswordInput.js +0 -94
- package/dist/cjs/src/components/input/Textarea.js +0 -115
- package/dist/cjs/src/components/input/index.js +0 -38
- package/dist/cjs/src/components/modal/Modal.js +0 -194
- package/dist/cjs/src/components/modal/index.js +0 -16
- package/dist/cjs/src/components/notification/FloatingNotification.js +0 -108
- package/dist/cjs/src/components/notification/FullWidthNotification.js +0 -119
- package/dist/cjs/src/components/notification/Notification.js +0 -45
- package/dist/cjs/src/components/notification/index.js +0 -38
- package/dist/cjs/src/components/pagination/NavButton.js +0 -93
- package/dist/cjs/src/components/pagination/Pagination.js +0 -161
- package/dist/cjs/src/components/pagination/index.js +0 -27
- package/dist/cjs/src/components/progress-bar/ProgressBar.js +0 -57
- package/dist/cjs/src/components/progress-bar/index.js +0 -16
- package/dist/cjs/src/components/progress-circle/ProgressCircle.js +0 -121
- package/dist/cjs/src/components/progress-circle/index.js +0 -16
- package/dist/cjs/src/components/radio/Radio.js +0 -65
- package/dist/cjs/src/components/radio/RadioInput.js +0 -50
- package/dist/cjs/src/components/radio/index.js +0 -27
- package/dist/cjs/src/components/select/Select.js +0 -98
- package/dist/cjs/src/components/select/index.js +0 -16
- package/dist/cjs/src/components/shared/hintText/HintText.js +0 -43
- package/dist/cjs/src/components/shared/hintText/index.js +0 -16
- package/dist/cjs/src/components/shared/index.js +0 -27
- package/dist/cjs/src/components/shared/label/Label.js +0 -43
- package/dist/cjs/src/components/shared/label/index.js +0 -16
- package/dist/cjs/src/components/slider/Slider.js +0 -64
- package/dist/cjs/src/components/slider/index.js +0 -16
- package/dist/cjs/src/components/spinner/Spinner.js +0 -53
- package/dist/cjs/src/components/spinner/index.js +0 -27
- package/dist/cjs/src/components/tab/HorizontalTab.js +0 -77
- package/dist/cjs/src/components/tab/TabButton.js +0 -76
- package/dist/cjs/src/components/tab/VerticalTab.js +0 -75
- package/dist/cjs/src/components/tab/index.js +0 -38
- package/dist/cjs/src/components/tag/Tag.js +0 -78
- package/dist/cjs/src/components/tag/index.js +0 -16
- package/dist/cjs/src/components/toggle/Toggle.js +0 -75
- package/dist/cjs/src/components/toggle/index.js +0 -16
- package/dist/cjs/src/components/tooltip/Tooltip.js +0 -74
- package/dist/cjs/src/components/tooltip/index.js +0 -16
- package/dist/cjs/src/constant/breakpoint.js +0 -12
- package/dist/cjs/src/constant/date-picker.js +0 -63
- package/dist/cjs/src/constant/index.js +0 -27
- package/dist/cjs/src/constant/size.js +0 -7
- package/dist/cjs/src/hooks/useMediaQuery.js +0 -29
- package/dist/cjs/src/utils/date-picker.js +0 -26
- package/dist/esm/assets/scripts/index.js +0 -2
- package/dist/esm/assets/scripts/slider.js +0 -336
- package/dist/esm/assets/scripts/test.js +0 -3
- package/dist/esm/constant/color.js +0 -32
- package/dist/esm/constant/size.js +0 -1
- package/dist/esm/src/components/badge/Badge.js +0 -44
- package/dist/esm/src/components/badge/BadgeGroup.js +0 -54
- package/dist/esm/src/components/badge/index.js +0 -2
- package/dist/esm/src/components/badge/utils.js +0 -25
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +0 -59
- package/dist/esm/src/components/breadcrumb/index.js +0 -1
- package/dist/esm/src/components/button/Button.js +0 -120
- package/dist/esm/src/components/button/ButtonCloseX.js +0 -36
- package/dist/esm/src/components/button/ButtonGroup.js +0 -111
- package/dist/esm/src/components/button/index.js +0 -2
- package/dist/esm/src/components/carousel/CarouselArrow.js +0 -33
- package/dist/esm/src/components/carousel/CarouselNumberGroup.js +0 -38
- package/dist/esm/src/components/carousel/index.js +0 -2
- package/dist/esm/src/components/checkbox/Checkbox.js +0 -62
- package/dist/esm/src/components/checkbox/CheckboxInput.js +0 -89
- package/dist/esm/src/components/checkbox/index.js +0 -2
- package/dist/esm/src/components/date-picker/DatePicker.js +0 -79
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +0 -117
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +0 -85
- package/dist/esm/src/components/date-picker/utils.js +0 -10
- package/dist/esm/src/components/divider/Divider.js +0 -40
- package/dist/esm/src/components/divider/index.js +0 -1
- package/dist/esm/src/components/dot/Dot.js +0 -34
- package/dist/esm/src/components/dot/index.js +0 -1
- package/dist/esm/src/components/dropdown/Dropdown.js +0 -198
- package/dist/esm/src/components/dropdown/index.js +0 -1
- package/dist/esm/src/components/empty-state/EmptyState.js +0 -51
- package/dist/esm/src/components/empty-state/index.js +0 -1
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +0 -55
- package/dist/esm/src/components/featured-icon/index.js +0 -1
- package/dist/esm/src/components/input/InputBase.js +0 -177
- package/dist/esm/src/components/input/PasswordInput.js +0 -87
- package/dist/esm/src/components/input/Textarea.js +0 -108
- package/dist/esm/src/components/modal/Modal.js +0 -186
- package/dist/esm/src/components/modal/index.js +0 -1
- package/dist/esm/src/components/notification/FloatingNotification.js +0 -101
- package/dist/esm/src/components/notification/FullWidthNotification.js +0 -112
- package/dist/esm/src/components/notification/Notification.js +0 -39
- package/dist/esm/src/components/pagination/NavButton.js +0 -86
- package/dist/esm/src/components/pagination/Pagination.js +0 -153
- package/dist/esm/src/components/pagination/index.js +0 -2
- package/dist/esm/src/components/progress-bar/ProgressBar.js +0 -50
- package/dist/esm/src/components/progress-bar/index.js +0 -1
- package/dist/esm/src/components/progress-circle/ProgressCircle.js +0 -114
- package/dist/esm/src/components/progress-circle/index.js +0 -1
- package/dist/esm/src/components/radio/Radio.js +0 -57
- package/dist/esm/src/components/radio/RadioInput.js +0 -43
- package/dist/esm/src/components/radio/index.js +0 -2
- package/dist/esm/src/components/select/Select.js +0 -91
- package/dist/esm/src/components/select/index.js +0 -1
- package/dist/esm/src/components/shared/hintText/HintText.js +0 -35
- package/dist/esm/src/components/shared/hintText/index.js +0 -1
- package/dist/esm/src/components/shared/label/Label.js +0 -35
- package/dist/esm/src/components/shared/label/index.js +0 -1
- package/dist/esm/src/components/slider/Slider.js +0 -57
- package/dist/esm/src/components/slider/index.js +0 -1
- package/dist/esm/src/components/spinner/Spinner.js +0 -45
- package/dist/esm/src/components/tab/HorizontalTab.js +0 -69
- package/dist/esm/src/components/tab/TabButton.js +0 -68
- package/dist/esm/src/components/tab/VerticalTab.js +0 -67
- package/dist/esm/src/components/tag/Tag.js +0 -70
- package/dist/esm/src/components/tag/index.js +0 -1
- package/dist/esm/src/components/toggle/Toggle.js +0 -67
- package/dist/esm/src/components/toggle/index.js +0 -1
- package/dist/esm/src/components/tooltip/Tooltip.js +0 -66
- package/dist/esm/src/components/tooltip/index.js +0 -1
- package/dist/esm/src/constant/breakpoint.js +0 -6
- package/dist/esm/src/constant/date-picker.js +0 -57
- package/dist/esm/src/constant/index.js +0 -2
- package/dist/esm/src/constant/size.js +0 -1
- package/dist/esm/src/hooks/useMediaQuery.js +0 -22
- package/dist/esm/src/utils/date-picker.js +0 -17
- package/dist/types/assets/scripts/index.d.ts +0 -3
- package/dist/types/assets/scripts/test.d.ts +0 -2
- package/dist/ui-admin/assets/images/sprite.png +0 -0
- package/dist/ui-admin/assets/styles/style.css +0 -3649
- /package/dist/{types → temp}/assets/scripts/slider.d.ts +0 -0
- /package/dist/{types → temp}/constant/color.d.ts +0 -0
- /package/dist/{types → temp}/constant/size.d.ts +0 -0
- /package/dist/{types → temp}/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/badge/Badge.d.ts +0 -0
- /package/dist/{types → temp}/src/components/badge/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/badge/utils.d.ts +0 -0
- /package/dist/{types → temp}/src/components/breadcrumb/BreadCrumb.d.ts +0 -0
- /package/dist/{types → temp}/src/components/breadcrumb/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/button/Button.d.ts +0 -0
- /package/dist/{types → temp}/src/components/button/ButtonCloseX.d.ts +0 -0
- /package/dist/{types → temp}/src/components/button/ButtonGroup.d.ts +0 -0
- /package/dist/{types → temp}/src/components/button/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/carousel/CarouselArrow.d.ts +0 -0
- /package/dist/{types → temp}/src/components/carousel/CarouselNumberGroup.d.ts +0 -0
- /package/dist/{types → temp}/src/components/carousel/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/checkbox/Checkbox.d.ts +0 -0
- /package/dist/{types → temp}/src/components/checkbox/CheckboxInput.d.ts +0 -0
- /package/dist/{types → temp}/src/components/checkbox/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/date-picker/RangeDatePickerWithButtons.d.ts +0 -0
- /package/dist/{types → temp}/src/components/date-picker/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/date-picker/utils.d.ts +0 -0
- /package/dist/{types → temp}/src/components/divider/Divider.d.ts +0 -0
- /package/dist/{types → temp}/src/components/divider/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/dot/Dot.d.ts +0 -0
- /package/dist/{types → temp}/src/components/dot/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/dropdown/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/empty-state/EmptyState.d.ts +0 -0
- /package/dist/{types → temp}/src/components/empty-state/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/featured-icon/FeaturedIcon.d.ts +0 -0
- /package/dist/{types → temp}/src/components/featured-icon/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/input/InputBase.d.ts +0 -0
- /package/dist/{types → temp}/src/components/input/Textarea.d.ts +0 -0
- /package/dist/{types → temp}/src/components/input/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/modal/Modal.d.ts +0 -0
- /package/dist/{types → temp}/src/components/modal/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/notification/FloatingNotification.d.ts +0 -0
- /package/dist/{types → temp}/src/components/notification/FullWidthNotification.d.ts +0 -0
- /package/dist/{types → temp}/src/components/notification/Notification.d.ts +0 -0
- /package/dist/{types → temp}/src/components/notification/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/pagination/NavButton.d.ts +0 -0
- /package/dist/{types → temp}/src/components/pagination/Pagination.d.ts +0 -0
- /package/dist/{types → temp}/src/components/pagination/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/progress-bar/ProgressBar.d.ts +0 -0
- /package/dist/{types → temp}/src/components/progress-bar/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/progress-circle/ProgressCircle.d.ts +0 -0
- /package/dist/{types → temp}/src/components/progress-circle/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/radio/Radio.d.ts +0 -0
- /package/dist/{types → temp}/src/components/radio/RadioInput.d.ts +0 -0
- /package/dist/{types → temp}/src/components/radio/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/select/Select.d.ts +0 -0
- /package/dist/{types → temp}/src/components/select/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/shared/hintText/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/shared/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/shared/label/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/slider/Slider.d.ts +0 -0
- /package/dist/{types → temp}/src/components/slider/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/spinner/Spinner.d.ts +0 -0
- /package/dist/{types → temp}/src/components/spinner/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tab/HorizontalTab.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tab/TabButton.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tab/VerticalTab.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tab/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tag/Tag.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tag/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/toggle/Toggle.d.ts +0 -0
- /package/dist/{types → temp}/src/components/toggle/index.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tooltip/Tooltip.d.ts +0 -0
- /package/dist/{types → temp}/src/components/tooltip/index.d.ts +0 -0
- /package/dist/{types → temp}/src/constant/breakpoint.d.ts +0 -0
- /package/dist/{types → temp}/src/constant/date-picker.d.ts +0 -0
- /package/dist/{types → temp}/src/constant/index.d.ts +0 -0
- /package/dist/{types → temp}/src/constant/size.d.ts +0 -0
- /package/dist/{types → temp}/src/hooks/useMediaQuery.d.ts +0 -0
- /package/dist/{types → temp}/src/utils/date-picker.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type DatePickerSize = 'sm' | 'md';
|
|
2
|
+
interface Options {
|
|
3
|
+
buttons?: DatePickerButton[];
|
|
4
|
+
size: DatePickerSize;
|
|
5
|
+
datePickerOptions: DatePickerOptionWrapper[];
|
|
6
|
+
}
|
|
7
|
+
interface DatePickerOptionWrapper {
|
|
8
|
+
element: string;
|
|
9
|
+
options: DatePickerOption;
|
|
10
|
+
}
|
|
11
|
+
interface DatePickerOption {
|
|
12
|
+
defaultDate?: string | Date | Date[];
|
|
13
|
+
enableTime?: boolean;
|
|
14
|
+
dateFormat?: string;
|
|
15
|
+
locale?: string;
|
|
16
|
+
mode?: 'single' | 'range' | 'multiple';
|
|
17
|
+
maxDate?: string | Date;
|
|
18
|
+
minDate?: string | Date;
|
|
19
|
+
onChange?: (selectedDates: Date[], dateStr: string, instance: any) => void;
|
|
20
|
+
}
|
|
21
|
+
interface DatePickerButton {
|
|
22
|
+
text: string;
|
|
23
|
+
period: number;
|
|
24
|
+
unit: 'days' | 'weeks' | 'months' | 'years';
|
|
25
|
+
isCurrent: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare class DatePicker {
|
|
28
|
+
private readonly element;
|
|
29
|
+
private readonly datePickerOptions;
|
|
30
|
+
private readonly size;
|
|
31
|
+
private buttons;
|
|
32
|
+
private flatpickrInstances;
|
|
33
|
+
private currentButton;
|
|
34
|
+
constructor(wrapper: HTMLElement, options: Options);
|
|
35
|
+
private init;
|
|
36
|
+
private validationDependencies;
|
|
37
|
+
private initializeWrapper;
|
|
38
|
+
private initButtonGroup;
|
|
39
|
+
private createButtonElement;
|
|
40
|
+
private reRenderButtonGroup;
|
|
41
|
+
private initDatePicker;
|
|
42
|
+
private initializeFlatpickr;
|
|
43
|
+
private updateDateWithButton;
|
|
44
|
+
private setMultipleDates;
|
|
45
|
+
setDate(dates: string[]): void;
|
|
46
|
+
getDates(): Date[];
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=datePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datePicker.d.ts","sourceRoot":"","sources":["../../../../assets/scripts/datePicker.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,iBAAiB,EAAE,uBAAuB,EAAE,CAAC;CAC9C;AAED,UAAU,uBAAuB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5E;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;CACpB;AAiCD,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IACtC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA4B;IAC9D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IACtC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,kBAAkB,CAA2B;IACrD,OAAO,CAAC,aAAa,CAAiC;gBAE1C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO;IAWlD,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IA0BvB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,cAAc;IA8FtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB;IAwC5B,OAAO,CAAC,gBAAgB;IAOjB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAI9B,QAAQ,IAAI,IAAI,EAAE;CAG1B"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
// Constants
|
|
13
|
+
var CONSTANTS = {
|
|
14
|
+
ICON_SIZES: {
|
|
15
|
+
sm: '14',
|
|
16
|
+
md: '16',
|
|
17
|
+
},
|
|
18
|
+
CLASS_NAMES: {
|
|
19
|
+
RANGE_WRAPPER: 'ncua-range-date-picker',
|
|
20
|
+
RANGE_WITH_BUTTONS: 'ncua-range-date-picker-with-buttons',
|
|
21
|
+
DATE_PICKER: 'ncua-date-picker',
|
|
22
|
+
DATE_PICKER_INPUT: 'ncua-date-picker__input',
|
|
23
|
+
DATE_PICKER_ICO: 'ncua-date-picker__ico',
|
|
24
|
+
BUTTON_GROUP: 'ncua-button-group',
|
|
25
|
+
BUTTON_GROUP_HAS_BORDER: 'has-border',
|
|
26
|
+
BUTTON: 'ncua-button-group__item',
|
|
27
|
+
},
|
|
28
|
+
FORMATS: {
|
|
29
|
+
DATE: 'YYYY-MM-DD',
|
|
30
|
+
},
|
|
31
|
+
ERROR_MESSAGES: {
|
|
32
|
+
FLATPICKR_NOT_LOADED: 'flatpickr 라이브러리가 로드되지 않았습니다.',
|
|
33
|
+
MOMENT_NOT_LOADED: 'moment 라이브러리가 로드되지 않았습니다.',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
var DatePicker = /** @class */ (function () {
|
|
37
|
+
function DatePicker(wrapper, options) {
|
|
38
|
+
this.flatpickrInstances = [];
|
|
39
|
+
this.currentButton = null;
|
|
40
|
+
var _a = options.buttons, buttons = _a === void 0 ? [] : _a, size = options.size, datePickerOptions = options.datePickerOptions;
|
|
41
|
+
this.validationDependencies((buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0);
|
|
42
|
+
this.element = wrapper;
|
|
43
|
+
this.datePickerOptions = datePickerOptions;
|
|
44
|
+
this.buttons = buttons;
|
|
45
|
+
this.size = size;
|
|
46
|
+
this.init();
|
|
47
|
+
}
|
|
48
|
+
DatePicker.prototype.init = function () {
|
|
49
|
+
this.element.innerHTML = '';
|
|
50
|
+
this.initializeWrapper();
|
|
51
|
+
this.initButtonGroup();
|
|
52
|
+
this.initDatePicker();
|
|
53
|
+
};
|
|
54
|
+
DatePicker.prototype.validationDependencies = function (hasButtons) {
|
|
55
|
+
if (typeof flatpickr === 'undefined') {
|
|
56
|
+
throw new Error(CONSTANTS.ERROR_MESSAGES.FLATPICKR_NOT_LOADED);
|
|
57
|
+
}
|
|
58
|
+
if (hasButtons && typeof moment === 'undefined') {
|
|
59
|
+
throw new Error(CONSTANTS.ERROR_MESSAGES.MOMENT_NOT_LOADED);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
DatePicker.prototype.initializeWrapper = function () {
|
|
63
|
+
if (this.datePickerOptions.length < 2)
|
|
64
|
+
return;
|
|
65
|
+
this.element.classList.add(CONSTANTS.CLASS_NAMES.RANGE_WRAPPER);
|
|
66
|
+
};
|
|
67
|
+
DatePicker.prototype.initButtonGroup = function () {
|
|
68
|
+
var _this = this;
|
|
69
|
+
if (this.buttons.length === 0)
|
|
70
|
+
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)
|
|
102
|
+
return;
|
|
103
|
+
buttonGroup.innerHTML = '';
|
|
104
|
+
buttons.forEach(function (button) {
|
|
105
|
+
if (button.isCurrent) {
|
|
106
|
+
_this.currentButton = button;
|
|
107
|
+
}
|
|
108
|
+
buttonGroup.appendChild(_this.createButtonElement(button));
|
|
109
|
+
});
|
|
110
|
+
this.buttons = buttons;
|
|
111
|
+
};
|
|
112
|
+
DatePicker.prototype.initDatePicker = function () {
|
|
113
|
+
var _this = this;
|
|
114
|
+
var datePickerOptions = this.datePickerOptions;
|
|
115
|
+
var createWrapperElement = function (size) {
|
|
116
|
+
var wrapper = document.createElement('div');
|
|
117
|
+
wrapper.className = "".concat(CONSTANTS.CLASS_NAMES.DATE_PICKER, " ").concat(CONSTANTS.CLASS_NAMES.DATE_PICKER, "--").concat(size);
|
|
118
|
+
return wrapper;
|
|
119
|
+
};
|
|
120
|
+
var createInput = function (elementId) {
|
|
121
|
+
var input = document.createElement('input');
|
|
122
|
+
input.type = 'text';
|
|
123
|
+
input.id = elementId;
|
|
124
|
+
input.className = CONSTANTS.CLASS_NAMES.DATE_PICKER_INPUT;
|
|
125
|
+
return input;
|
|
126
|
+
};
|
|
127
|
+
var createIcon = function (size) {
|
|
128
|
+
var getCalendarIconSvg = function (size) {
|
|
129
|
+
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>");
|
|
130
|
+
};
|
|
131
|
+
var ico = document.createElement('span');
|
|
132
|
+
ico.className = CONSTANTS.CLASS_NAMES.DATE_PICKER_ICO;
|
|
133
|
+
ico.innerHTML = getCalendarIconSvg(CONSTANTS.ICON_SIZES[size]);
|
|
134
|
+
return ico;
|
|
135
|
+
};
|
|
136
|
+
var insertSeparator = function () {
|
|
137
|
+
var span = document.createElement('span');
|
|
138
|
+
span.textContent = '-';
|
|
139
|
+
_this.element.insertBefore(span, _this.element.querySelectorAll(".".concat(CONSTANTS.CLASS_NAMES.DATE_PICKER))[1]);
|
|
140
|
+
};
|
|
141
|
+
var createDatePickerElement = function (datePickerOption, index) {
|
|
142
|
+
var wrapper = createWrapperElement(_this.size);
|
|
143
|
+
var input = createInput(datePickerOption.element);
|
|
144
|
+
wrapper.appendChild(input);
|
|
145
|
+
wrapper.appendChild(createIcon(_this.size));
|
|
146
|
+
wrapper.addEventListener('click', function () {
|
|
147
|
+
_this.buttons.forEach(function (button) { return (button.isCurrent = false); });
|
|
148
|
+
_this.currentButton = null;
|
|
149
|
+
_this.reRenderButtonGroup(_this.buttons);
|
|
150
|
+
});
|
|
151
|
+
_this.element.appendChild(wrapper);
|
|
152
|
+
if (index > 0) {
|
|
153
|
+
insertSeparator();
|
|
154
|
+
}
|
|
155
|
+
return _this.initializeFlatpickr(input, datePickerOption.options, wrapper);
|
|
156
|
+
};
|
|
157
|
+
var createFlatpickrInstances = function (datePickerOptions) {
|
|
158
|
+
return datePickerOptions.map(function (datePickerOption, index) { return createDatePickerElement(datePickerOption, index); });
|
|
159
|
+
};
|
|
160
|
+
var calcInitDates = function (datePickerOptions) {
|
|
161
|
+
var _a;
|
|
162
|
+
if (_this.buttons.length > 0) {
|
|
163
|
+
var _b = (_a = _this.buttons.find(function (button) { return button.isCurrent; })) !== null && _a !== void 0 ? _a : {
|
|
164
|
+
period: 0,
|
|
165
|
+
unit: 'days',
|
|
166
|
+
}, period = _b.period, unit = _b.unit;
|
|
167
|
+
return [
|
|
168
|
+
moment().subtract(period, unit).format(CONSTANTS.FORMATS.DATE),
|
|
169
|
+
moment().format(CONSTANTS.FORMATS.DATE),
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
return datePickerOptions.map(function (datePickerOption) {
|
|
173
|
+
var _a;
|
|
174
|
+
if ((_a = datePickerOption.options) === null || _a === void 0 ? void 0 : _a.defaultDate) {
|
|
175
|
+
return moment(datePickerOption.options.defaultDate.toString()).format(CONSTANTS.FORMATS.DATE);
|
|
176
|
+
}
|
|
177
|
+
return moment().format(CONSTANTS.FORMATS.DATE);
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
this.flatpickrInstances = createFlatpickrInstances(datePickerOptions);
|
|
181
|
+
var dates = calcInitDates(datePickerOptions);
|
|
182
|
+
this.setMultipleDates(dates);
|
|
183
|
+
};
|
|
184
|
+
DatePicker.prototype.initializeFlatpickr = function (input, options, wrapper) {
|
|
185
|
+
return flatpickr(input, __assign(__assign({}, options), { appendTo: wrapper }));
|
|
186
|
+
};
|
|
187
|
+
DatePicker.prototype.updateDateWithButton = function (e) {
|
|
188
|
+
var _this = this;
|
|
189
|
+
var target = e.target;
|
|
190
|
+
if (!target.classList.contains(CONSTANTS.CLASS_NAMES.BUTTON))
|
|
191
|
+
return;
|
|
192
|
+
var clickedButton = this.buttons.find(function (button) { return button.text === target.textContent; });
|
|
193
|
+
if (!clickedButton || clickedButton === this.currentButton)
|
|
194
|
+
return;
|
|
195
|
+
// 날짜 계산
|
|
196
|
+
var calculateDates = function () {
|
|
197
|
+
var period = clickedButton.period, unit = clickedButton.unit;
|
|
198
|
+
var dates = [];
|
|
199
|
+
var startDate = period
|
|
200
|
+
? moment().subtract(period, unit).format(CONSTANTS.FORMATS.DATE)
|
|
201
|
+
: moment().format(CONSTANTS.FORMATS.DATE);
|
|
202
|
+
dates.push(startDate);
|
|
203
|
+
if (_this.datePickerOptions.length > 1) {
|
|
204
|
+
var endDate = moment().format(CONSTANTS.FORMATS.DATE);
|
|
205
|
+
dates.push(endDate);
|
|
206
|
+
}
|
|
207
|
+
return dates;
|
|
208
|
+
};
|
|
209
|
+
var updateButtonState = function () {
|
|
210
|
+
return _this.buttons.map(function (button) { return (__assign(__assign({}, button), { isCurrent: button.text === (clickedButton === null || clickedButton === void 0 ? void 0 : clickedButton.text) })); });
|
|
211
|
+
};
|
|
212
|
+
this.currentButton = clickedButton;
|
|
213
|
+
this.reRenderButtonGroup(updateButtonState());
|
|
214
|
+
this.setMultipleDates(calculateDates());
|
|
215
|
+
};
|
|
216
|
+
DatePicker.prototype.setMultipleDates = function (dates) {
|
|
217
|
+
var _this = this;
|
|
218
|
+
dates.forEach(function (date, index) {
|
|
219
|
+
_this.flatpickrInstances[index].setDate(date, true);
|
|
220
|
+
_this.flatpickrInstances[index].redraw();
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
DatePicker.prototype.setDate = function (dates) {
|
|
224
|
+
this.setMultipleDates(dates);
|
|
225
|
+
};
|
|
226
|
+
DatePicker.prototype.getDates = function () {
|
|
227
|
+
return this.flatpickrInstances.flatMap(function (instance) { return instance.selectedDates; });
|
|
228
|
+
};
|
|
229
|
+
return DatePicker;
|
|
230
|
+
}());
|
|
231
|
+
export { DatePicker };
|
|
232
|
+
window.DatePicker = DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../assets/scripts/index.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,EAAE,MAAM,CAAC;KACd;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../assets/scripts/slider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtD,aAAa,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,cAAc,CAAqB;IAC3C,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,YAAY,CAA4B;gBAEpC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAsBxD,OAAO,CAAC,IAAI;IAsCZ,OAAO,CAAC,YAAY;IA6CpB,OAAO,CAAC,qBAAqB;IA0C7B,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,eAAe,CAUrB;IAEF,OAAO,CAAC,gBAAgB,CAOtB;IAEF,OAAO,CAAC,eAAe,CAIrB;IAEF,OAAO,CAAC,eAAe,CAKrB;IAEF,OAAO,CAAC,aAAa,CAGnB;IAEF,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,sBAAsB;IA4B9B,OAAO,CAAC,YAAY;IAgBb,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAKhD,QAAQ,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAIrC,OAAO,IAAI,IAAI;IAiBf,MAAM,IAAI,IAAI;IAiBd,OAAO,IAAI,IAAI;CAiBvB"}
|
|
@@ -0,0 +1,331 @@
|
|
|
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, leftValue = _a[0], rightValue = _a[1];
|
|
75
|
+
this.createHandle(0, leftValue);
|
|
76
|
+
this.createHandle(1, rightValue);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
// Single slider (1 handle)
|
|
80
|
+
this.createHandle(0, this.value);
|
|
81
|
+
}
|
|
82
|
+
// 이벤트 리스너 추가
|
|
83
|
+
if (!this.options.disabled) {
|
|
84
|
+
this.enable();
|
|
85
|
+
}
|
|
86
|
+
// 초기 위치 설정
|
|
87
|
+
this.updateHandlePositions();
|
|
88
|
+
};
|
|
89
|
+
Slider.prototype.createHandle = function (index, value) {
|
|
90
|
+
var _this = this;
|
|
91
|
+
var handle = document.createElement('div');
|
|
92
|
+
handle.className = 'ncua-slider__handle';
|
|
93
|
+
handle.setAttribute('role', 'slider');
|
|
94
|
+
handle.setAttribute('tabindex', this.options.disabled ? '-1' : '0');
|
|
95
|
+
handle.setAttribute('aria-valuemin', Array.isArray(this.value) && index === 1 ? String(this.value[0]) : String(this.options.min));
|
|
96
|
+
handle.setAttribute('aria-valuemax', Array.isArray(this.value) && index === 0 ? String(this.value[1]) : String(this.options.max));
|
|
97
|
+
handle.setAttribute('aria-valuenow', String(value));
|
|
98
|
+
handle.setAttribute('aria-disabled', String(this.options.disabled));
|
|
99
|
+
handle.dataset.index = String(index);
|
|
100
|
+
handle.addEventListener('focus', function () {
|
|
101
|
+
_this.activeHandle = index;
|
|
102
|
+
_this.updateHandleClasses();
|
|
103
|
+
});
|
|
104
|
+
handle.addEventListener('blur', function () {
|
|
105
|
+
_this.activeHandle = null;
|
|
106
|
+
_this.updateHandleClasses();
|
|
107
|
+
});
|
|
108
|
+
if (this.options.labelPosition === 'bottom') {
|
|
109
|
+
var label = document.createElement('div');
|
|
110
|
+
label.className = "ncua-slider__label";
|
|
111
|
+
label.textContent = "".concat(value, "%");
|
|
112
|
+
handle.appendChild(label);
|
|
113
|
+
}
|
|
114
|
+
if (this.options.labelPosition === 'top-floating') {
|
|
115
|
+
var label = document.createElement('div');
|
|
116
|
+
label.className = "ncua-slider__label ncua-slider__label--tooltip";
|
|
117
|
+
label.textContent = "".concat(value, "%");
|
|
118
|
+
handle.appendChild(label);
|
|
119
|
+
}
|
|
120
|
+
this.element.appendChild(handle);
|
|
121
|
+
this.handleElements[index] = handle;
|
|
122
|
+
};
|
|
123
|
+
Slider.prototype.updateHandlePositions = function () {
|
|
124
|
+
if (Array.isArray(this.value)) {
|
|
125
|
+
// Range slider
|
|
126
|
+
var _a = this.value, leftValue = _a[0], rightValue = _a[1];
|
|
127
|
+
var leftPosition = this.getPositionFromValue(leftValue);
|
|
128
|
+
var rightPosition = this.getPositionFromValue(rightValue);
|
|
129
|
+
this.handleElements[0].style.left = "".concat(leftPosition, "%");
|
|
130
|
+
this.handleElements[1].style.left = "".concat(rightPosition, "%");
|
|
131
|
+
if (this.options.labelPosition) {
|
|
132
|
+
var leftLabel = this.handleElements[0].querySelector('.ncua-slider__label');
|
|
133
|
+
var rightLabel = this.handleElements[1].querySelector('.ncua-slider__label');
|
|
134
|
+
if (leftLabel)
|
|
135
|
+
leftLabel.textContent = "".concat(leftValue, "%");
|
|
136
|
+
if (rightLabel)
|
|
137
|
+
rightLabel.textContent = "".concat(rightValue, "%");
|
|
138
|
+
}
|
|
139
|
+
if (this.progressElement) {
|
|
140
|
+
this.progressElement.style.left = "".concat(leftPosition, "%");
|
|
141
|
+
this.progressElement.style.width = "".concat(rightPosition - leftPosition, "%");
|
|
142
|
+
}
|
|
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)
|
|
151
|
+
label.textContent = "".concat(this.value, "%");
|
|
152
|
+
}
|
|
153
|
+
if (this.progressElement) {
|
|
154
|
+
this.progressElement.style.left = '0';
|
|
155
|
+
this.progressElement.style.width = "".concat(position, "%");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
// ARIA 속성 업데이트
|
|
159
|
+
this.updateAriaAttributes();
|
|
160
|
+
};
|
|
161
|
+
Slider.prototype.updateHandleClasses = function () {
|
|
162
|
+
var _this = this;
|
|
163
|
+
this.handleElements.forEach(function (handle, index) {
|
|
164
|
+
if (index === _this.activeHandle) {
|
|
165
|
+
handle.classList.add('is-active');
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
handle.classList.remove('is-active');
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
Slider.prototype.updateAriaAttributes = function () {
|
|
173
|
+
if (Array.isArray(this.value)) {
|
|
174
|
+
// Range slider
|
|
175
|
+
var _a = this.value, leftValue = _a[0], 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
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
// Single slider
|
|
183
|
+
this.handleElements[0].setAttribute('aria-valuenow', String(this.value));
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
Slider.prototype.getPositionFromValue = function (value) {
|
|
187
|
+
return ((value - this.options.min) / (this.options.max - this.options.min)) * 100;
|
|
188
|
+
};
|
|
189
|
+
Slider.prototype.getValueFromPosition = function (position) {
|
|
190
|
+
var percentage = Math.min(Math.max(position, 0), 100);
|
|
191
|
+
var exactValue = this.options.min + (percentage / 100) * (this.options.max - this.options.min);
|
|
192
|
+
var steppedValue = Math.round(exactValue / this.options.step) * this.options.step;
|
|
193
|
+
return Math.min(Math.max(steppedValue, this.options.min), this.options.max);
|
|
194
|
+
};
|
|
195
|
+
Slider.prototype.handleInteractionStart = function (clientX, target) {
|
|
196
|
+
// 슬라이더 영역 내부를 클릭/터치한 경우
|
|
197
|
+
if (target.closest('.ncua-slider')) {
|
|
198
|
+
// 핸들을 직접 클릭/터치했는지 확인
|
|
199
|
+
var handleElement = target.closest('.ncua-slider__handle');
|
|
200
|
+
if (handleElement) {
|
|
201
|
+
if (Array.isArray(this.value) && this.value[0] === this.value[1] && this.value[0] === this.options.max) {
|
|
202
|
+
this.activeHandle = 0;
|
|
203
|
+
}
|
|
204
|
+
else if (Array.isArray(this.value) && this.value[0] === this.value[1] && this.value[0] === this.options.min) {
|
|
205
|
+
this.activeHandle = 1;
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
this.activeHandle = parseInt(handleElement.dataset.index || '0', 10);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
// 슬라이더 트랙을 클릭/터치한 경우, 가장 가까운 핸들을 결정
|
|
213
|
+
var rect = this.element.getBoundingClientRect();
|
|
214
|
+
var position = ((clientX - rect.left) / rect.width) * 100;
|
|
215
|
+
if (Array.isArray(this.value)) {
|
|
216
|
+
var _a = this.value, leftValue = _a[0], rightValue = _a[1];
|
|
217
|
+
var leftPosition = this.getPositionFromValue(leftValue);
|
|
218
|
+
var rightPosition = this.getPositionFromValue(rightValue);
|
|
219
|
+
if (position < leftPosition) {
|
|
220
|
+
this.activeHandle = 0;
|
|
221
|
+
}
|
|
222
|
+
else if (position > rightPosition) {
|
|
223
|
+
this.activeHandle = 1;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
this.activeHandle = Math.abs(position - leftPosition) < Math.abs(position - rightPosition) ? 0 : 1;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.activeHandle = 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
this.updateHandleClasses();
|
|
234
|
+
this.isDragging = true;
|
|
235
|
+
// 클릭/터치 위치로 값 업데이트
|
|
236
|
+
this.updateValueFromClientX(clientX);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
Slider.prototype.updateValueFromClientX = function (clientX) {
|
|
240
|
+
if (!this.element || this.activeHandle === null)
|
|
241
|
+
return;
|
|
242
|
+
var rect = this.element.getBoundingClientRect();
|
|
243
|
+
var position = ((clientX - rect.left) / rect.width) * 100;
|
|
244
|
+
var newValue = this.getValueFromPosition(position);
|
|
245
|
+
var prevValue = this.value;
|
|
246
|
+
if (Array.isArray(this.value)) {
|
|
247
|
+
// Range slider
|
|
248
|
+
var _a = this.value, leftValue = _a[0], rightValue = _a[1];
|
|
249
|
+
if (this.activeHandle === 0) {
|
|
250
|
+
// 왼쪽 핸들
|
|
251
|
+
this.value = [Math.min(newValue, rightValue), rightValue];
|
|
252
|
+
}
|
|
253
|
+
else if (this.activeHandle === 1) {
|
|
254
|
+
// 오른쪽 핸들
|
|
255
|
+
this.value = [leftValue, Math.max(newValue, leftValue)];
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
// Single slider
|
|
260
|
+
this.value = newValue;
|
|
261
|
+
}
|
|
262
|
+
this.notifyChange(prevValue);
|
|
263
|
+
this.updateHandlePositions();
|
|
264
|
+
};
|
|
265
|
+
Slider.prototype.notifyChange = function (prevValue) {
|
|
266
|
+
var _this = this;
|
|
267
|
+
var isSingle = !Array.isArray(prevValue);
|
|
268
|
+
var checkChangedSingle = function () { return prevValue !== _this.value; };
|
|
269
|
+
var checkChangedRange = function () {
|
|
270
|
+
return Array.isArray(prevValue) &&
|
|
271
|
+
Array.isArray(_this.value) &&
|
|
272
|
+
(prevValue[0] !== _this.value[0] || prevValue[1] !== _this.value[1]);
|
|
273
|
+
};
|
|
274
|
+
var isChanged = isSingle ? checkChangedSingle() : checkChangedRange();
|
|
275
|
+
if (this.options.onChange && isChanged) {
|
|
276
|
+
this.options.onChange(this.value);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
Slider.prototype.setValue = function (value) {
|
|
280
|
+
this.value = value;
|
|
281
|
+
this.updateHandlePositions();
|
|
282
|
+
};
|
|
283
|
+
Slider.prototype.getValue = function () {
|
|
284
|
+
return this.value;
|
|
285
|
+
};
|
|
286
|
+
Slider.prototype.disable = function () {
|
|
287
|
+
this.options.disabled = true;
|
|
288
|
+
this.element.style.opacity = '0.5';
|
|
289
|
+
this.handleElements.forEach(function (handle) {
|
|
290
|
+
handle.setAttribute('tabindex', '-1');
|
|
291
|
+
handle.setAttribute('aria-disabled', 'true');
|
|
292
|
+
});
|
|
293
|
+
this.element.removeEventListener('mousedown', this.handleMouseDown);
|
|
294
|
+
this.element.removeEventListener('touchstart', this.handleTouchStart);
|
|
295
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
296
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
297
|
+
document.removeEventListener('touchmove', this.handleTouchMove);
|
|
298
|
+
document.removeEventListener('touchend', this.handleTouchEnd);
|
|
299
|
+
};
|
|
300
|
+
Slider.prototype.enable = function () {
|
|
301
|
+
this.options.disabled = false;
|
|
302
|
+
this.element.style.opacity = '1';
|
|
303
|
+
this.handleElements.forEach(function (handle) {
|
|
304
|
+
handle.setAttribute('tabindex', '0');
|
|
305
|
+
handle.setAttribute('aria-disabled', 'false');
|
|
306
|
+
});
|
|
307
|
+
this.element.addEventListener('mousedown', this.handleMouseDown);
|
|
308
|
+
this.element.addEventListener('touchstart', this.handleTouchStart, { passive: false });
|
|
309
|
+
document.addEventListener('mousemove', this.handleMouseMove);
|
|
310
|
+
document.addEventListener('mouseup', this.handleMouseUp);
|
|
311
|
+
document.addEventListener('touchmove', this.handleTouchMove);
|
|
312
|
+
document.addEventListener('touchend', this.handleTouchEnd);
|
|
313
|
+
};
|
|
314
|
+
Slider.prototype.destroy = function () {
|
|
315
|
+
// 모든 이벤트 리스너 제거
|
|
316
|
+
this.element.removeEventListener('mousedown', this.handleMouseDown);
|
|
317
|
+
this.element.removeEventListener('touchstart', this.handleTouchStart);
|
|
318
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
319
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
320
|
+
document.removeEventListener('touchmove', this.handleTouchMove);
|
|
321
|
+
document.removeEventListener('touchend', this.handleTouchEnd);
|
|
322
|
+
// 모든 내용 제거
|
|
323
|
+
this.element.innerHTML = '';
|
|
324
|
+
// 참조 정리
|
|
325
|
+
this.handleElements = [];
|
|
326
|
+
this.progressElement = null;
|
|
327
|
+
this.trackElement = null;
|
|
328
|
+
};
|
|
329
|
+
return Slider;
|
|
330
|
+
}());
|
|
331
|
+
export { Slider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../assets/scripts/tab.ts"],"names":[],"mappings":"AAEA,qBAAa,GAAG;IACd,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,MAAM,CAAuB;gBAEzB,OAAO,EAAE,WAAW,GAAG,IAAI;IAavC,OAAO,CAAC,IAAI;IAcL,OAAO,IAAI,IAAI;CAMvB"}
|