@ncds/ui-admin 0.0.32 → 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/{types → temp}/constant/color.d.ts +1 -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 +4 -2
- 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/{types → temp}/src/components/button/Button.d.ts +1 -1
- 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 +9 -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 +3 -2
- 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 +2 -1
- 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/{types → temp}/src/components/modal/Modal.d.ts +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/{types → temp}/src/components/notification/FloatingNotification.d.ts +3 -4
- package/dist/temp/src/components/notification/FloatingNotification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/FloatingNotification.js +50 -0
- package/dist/{types → temp}/src/components/notification/FullWidthNotification.d.ts +3 -4
- package/dist/temp/src/components/notification/FullWidthNotification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/FullWidthNotification.js +47 -0
- package/dist/{types → temp}/src/components/notification/Notification.d.ts +5 -4
- package/dist/temp/src/components/notification/Notification.d.ts.map +1 -0
- package/dist/temp/src/components/notification/Notification.js +31 -0
- package/dist/{types → temp}/src/components/notification/index.d.ts +1 -1
- 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 +7 -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 +6 -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 +3 -2
- 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 -37
- 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 -57
- 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/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 -87
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +0 -118
- 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 -196
- package/dist/cjs/src/components/modal/index.js +0 -16
- package/dist/cjs/src/components/notification/FloatingNotification.js +0 -104
- package/dist/cjs/src/components/notification/FullWidthNotification.js +0 -112
- package/dist/cjs/src/components/notification/Notification.js +0 -66
- 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/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/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 -31
- 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 -49
- 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/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 -110
- 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 -188
- package/dist/esm/src/components/modal/index.js +0 -1
- package/dist/esm/src/components/notification/FloatingNotification.js +0 -97
- package/dist/esm/src/components/notification/FullWidthNotification.js +0 -105
- package/dist/esm/src/components/notification/Notification.js +0 -59
- 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/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/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 -3688
- /package/dist/{types → temp}/assets/scripts/slider.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/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/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/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/utils/date-picker.d.ts +0 -0
|
@@ -1,177 +0,0 @@
|
|
|
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
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
import Icon from '@ncds/ui-admin-icon';
|
|
21
|
-
import { forwardRef } from 'react';
|
|
22
|
-
import classNames from 'classnames';
|
|
23
|
-
import { COLOR } from '../../../constant/color';
|
|
24
|
-
import { Label } from '../shared/label/Label';
|
|
25
|
-
import { HintText } from '../shared/hintText/HintText';
|
|
26
|
-
var validationSvgSize = {
|
|
27
|
-
xs: 14,
|
|
28
|
-
md: 16
|
|
29
|
-
};
|
|
30
|
-
var generalSvgSize = {
|
|
31
|
-
xs: 14,
|
|
32
|
-
md: 20
|
|
33
|
-
};
|
|
34
|
-
export var InputBase = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35
|
-
var _b = _a.size,
|
|
36
|
-
size = _b === void 0 ? 'md' : _b,
|
|
37
|
-
required = _a.required,
|
|
38
|
-
label = _a.label,
|
|
39
|
-
hintText = _a.hintText,
|
|
40
|
-
disabled = _a.disabled,
|
|
41
|
-
validation = _a.validation,
|
|
42
|
-
destructive = _a.destructive,
|
|
43
|
-
leadingElement = _a.leadingElement,
|
|
44
|
-
trailingElement = _a.trailingElement,
|
|
45
|
-
showHelpIcon = _a.showHelpIcon,
|
|
46
|
-
props = __rest(_a, ["size", "required", "label", "hintText", "disabled", "validation", "destructive", "leadingElement", "trailingElement", "showHelpIcon"]);
|
|
47
|
-
var renderOutsideSlot = function (slot) {
|
|
48
|
-
if (slot.type === 'custom' && slot.placement !== 'outside') {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
switch (slot.type) {
|
|
52
|
-
case 'button':
|
|
53
|
-
return _jsx("button", __assign({
|
|
54
|
-
type: slot.isSubmit ? 'submit' : 'button',
|
|
55
|
-
className: classNames('ncua-input__button', "ncua-input__button--".concat(size)),
|
|
56
|
-
onClick: slot.onClick
|
|
57
|
-
}, {
|
|
58
|
-
children: slot.label
|
|
59
|
-
}));
|
|
60
|
-
case 'text':
|
|
61
|
-
return _jsx("span", __assign({
|
|
62
|
-
className: classNames('ncua-input__leading-text', "ncua-input__leading-text--".concat(size))
|
|
63
|
-
}, {
|
|
64
|
-
children: slot.text
|
|
65
|
-
}));
|
|
66
|
-
case 'custom':
|
|
67
|
-
return slot.children;
|
|
68
|
-
default:
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var renderInsideSlot = function (slot, position) {
|
|
73
|
-
var _a, _b;
|
|
74
|
-
switch (slot.type) {
|
|
75
|
-
case 'icon':
|
|
76
|
-
return _jsx("div", __assign({
|
|
77
|
-
className: "ncua-input__icon-wrap"
|
|
78
|
-
}, {
|
|
79
|
-
children: _jsx(Icon, {
|
|
80
|
-
className: classNames("ncua-input__".concat(position, "-icon"), slot.className),
|
|
81
|
-
name: slot.icon,
|
|
82
|
-
color: slot.color ? COLOR[slot.color] : undefined,
|
|
83
|
-
width: (_a = slot.size) !== null && _a !== void 0 ? _a : generalSvgSize[size],
|
|
84
|
-
height: (_b = slot.size) !== null && _b !== void 0 ? _b : generalSvgSize[size]
|
|
85
|
-
})
|
|
86
|
-
}));
|
|
87
|
-
case 'custom':
|
|
88
|
-
return slot.children;
|
|
89
|
-
default:
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
var renderClearButton = function () {
|
|
94
|
-
if (!props.clearText) return null;
|
|
95
|
-
return _jsx("button", __assign({
|
|
96
|
-
className: "ncua-input__icon-wrap ncua-input__right-icon ncua-input__clear",
|
|
97
|
-
onClick: props.onClearText
|
|
98
|
-
}, {
|
|
99
|
-
children: _jsx(Icon, {
|
|
100
|
-
name: "x",
|
|
101
|
-
className: "ncua-input__clear-icon",
|
|
102
|
-
width: validationSvgSize[size],
|
|
103
|
-
height: validationSvgSize[size]
|
|
104
|
-
})
|
|
105
|
-
}));
|
|
106
|
-
};
|
|
107
|
-
var renderStatusIcon = function () {
|
|
108
|
-
if (destructive) {
|
|
109
|
-
return _jsx("div", __assign({
|
|
110
|
-
className: "ncua-input__icon-wrap ncua-input__right-icon"
|
|
111
|
-
}, {
|
|
112
|
-
children: _jsx(Icon, {
|
|
113
|
-
name: "info-circle",
|
|
114
|
-
className: "ncua-input__destructive-icon",
|
|
115
|
-
width: validationSvgSize[size],
|
|
116
|
-
height: validationSvgSize[size]
|
|
117
|
-
})
|
|
118
|
-
}));
|
|
119
|
-
}
|
|
120
|
-
if (validation) {
|
|
121
|
-
return _jsx("div", __assign({
|
|
122
|
-
className: "ncua-input__icon-wrap ncua-input__right-icon"
|
|
123
|
-
}, {
|
|
124
|
-
children: _jsx(Icon, {
|
|
125
|
-
name: "check-circle",
|
|
126
|
-
className: "ncua-input__validation-icon",
|
|
127
|
-
width: validationSvgSize[size],
|
|
128
|
-
height: validationSvgSize[size]
|
|
129
|
-
})
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
return null;
|
|
133
|
-
};
|
|
134
|
-
var renderLabel = function () {
|
|
135
|
-
if (!label) return null;
|
|
136
|
-
return _jsxs("div", __assign({
|
|
137
|
-
className: classNames('ncua-input__label', "ncua-input__label--".concat(size))
|
|
138
|
-
}, {
|
|
139
|
-
children: [_jsx(Label, __assign({
|
|
140
|
-
isRequired: required,
|
|
141
|
-
htmlFor: props.id
|
|
142
|
-
}, {
|
|
143
|
-
children: label
|
|
144
|
-
})), showHelpIcon && _jsx(Icon, {
|
|
145
|
-
className: "ncua-input__help-icon",
|
|
146
|
-
name: "help-circle"
|
|
147
|
-
})]
|
|
148
|
-
}));
|
|
149
|
-
};
|
|
150
|
-
return _jsxs("div", __assign({
|
|
151
|
-
className: classNames('ncua-input', "ncua-input--".concat(size), {
|
|
152
|
-
destructive: destructive,
|
|
153
|
-
'is-disabled': disabled,
|
|
154
|
-
'ncua-input__trailing-button': (trailingElement === null || trailingElement === void 0 ? void 0 : trailingElement.type) === 'button',
|
|
155
|
-
'ncua-input__leading-text-wrap': (leadingElement === null || leadingElement === void 0 ? void 0 : leadingElement.type) === 'text'
|
|
156
|
-
})
|
|
157
|
-
}, {
|
|
158
|
-
children: [renderLabel(), _jsxs("div", __assign({
|
|
159
|
-
className: "ncua-input__content"
|
|
160
|
-
}, {
|
|
161
|
-
children: [leadingElement && renderOutsideSlot(leadingElement), _jsxs("div", __assign({
|
|
162
|
-
className: classNames('ncua-input__field', "ncua-input__field--".concat(size))
|
|
163
|
-
}, {
|
|
164
|
-
children: [leadingElement && renderInsideSlot(leadingElement, 'left'), _jsx("input", __assign({
|
|
165
|
-
ref: ref,
|
|
166
|
-
type: "text",
|
|
167
|
-
disabled: disabled
|
|
168
|
-
}, props)), trailingElement && renderInsideSlot(trailingElement, 'right'), renderClearButton(), renderStatusIcon()]
|
|
169
|
-
})), trailingElement && renderOutsideSlot(trailingElement)]
|
|
170
|
-
})), hintText && _jsx(HintText, __assign({
|
|
171
|
-
className: "ncua-input__hint-text",
|
|
172
|
-
destructive: destructive
|
|
173
|
-
}, {
|
|
174
|
-
children: hintText
|
|
175
|
-
}))]
|
|
176
|
-
}));
|
|
177
|
-
});
|
|
@@ -1,87 +0,0 @@
|
|
|
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
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
21
|
-
import { InputBase } from './InputBase';
|
|
22
|
-
import { Eye, EyeOff } from '@ncds/ui-admin-icon';
|
|
23
|
-
import classNames from 'classnames';
|
|
24
|
-
var svgSize = {
|
|
25
|
-
xs: 14,
|
|
26
|
-
md: 20
|
|
27
|
-
};
|
|
28
|
-
export var PasswordInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29
|
-
var _b = _a.size,
|
|
30
|
-
size = _b === void 0 ? 'md' : _b,
|
|
31
|
-
props = __rest(_a, ["size"]);
|
|
32
|
-
var inputRef = useRef(null);
|
|
33
|
-
var _c = useState(false),
|
|
34
|
-
isVisible = _c[0],
|
|
35
|
-
setIsVisible = _c[1];
|
|
36
|
-
var _d = useState(false),
|
|
37
|
-
hasContent = _d[0],
|
|
38
|
-
setHasContent = _d[1];
|
|
39
|
-
var svgProps = {
|
|
40
|
-
width: svgSize[size],
|
|
41
|
-
height: svgSize[size]
|
|
42
|
-
};
|
|
43
|
-
var handleVisibilityChange = function () {
|
|
44
|
-
setIsVisible(!isVisible);
|
|
45
|
-
};
|
|
46
|
-
useEffect(function () {
|
|
47
|
-
if (inputRef.current) {
|
|
48
|
-
setHasContent(!!inputRef.current.value);
|
|
49
|
-
var handleInput_1 = function () {
|
|
50
|
-
var _a;
|
|
51
|
-
setHasContent(!!((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value));
|
|
52
|
-
};
|
|
53
|
-
inputRef.current.addEventListener('input', handleInput_1);
|
|
54
|
-
return function () {
|
|
55
|
-
var _a;
|
|
56
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('input', handleInput_1);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}, []);
|
|
60
|
-
return _jsx(InputBase, __assign({
|
|
61
|
-
ref: function (node) {
|
|
62
|
-
if (typeof ref === 'function') {
|
|
63
|
-
ref(node);
|
|
64
|
-
} else if (ref) {
|
|
65
|
-
ref.current = node;
|
|
66
|
-
}
|
|
67
|
-
inputRef.current = node;
|
|
68
|
-
},
|
|
69
|
-
size: size,
|
|
70
|
-
type: isVisible ? 'text' : 'password',
|
|
71
|
-
leadingElement: {
|
|
72
|
-
type: 'icon',
|
|
73
|
-
icon: 'lock-01',
|
|
74
|
-
color: hasContent ? 'gray600' : 'gray300'
|
|
75
|
-
},
|
|
76
|
-
trailingElement: {
|
|
77
|
-
type: 'custom',
|
|
78
|
-
placement: 'inside',
|
|
79
|
-
children: _jsx("button", __assign({
|
|
80
|
-
className: classNames('ncua-input__icon-wrap', 'ncua-input__right-icon', 'ncua-input__password-icon'),
|
|
81
|
-
onClick: handleVisibilityChange
|
|
82
|
-
}, {
|
|
83
|
-
children: isVisible ? _jsx(Eye, __assign({}, svgProps)) : _jsx(EyeOff, __assign({}, svgProps))
|
|
84
|
-
}))
|
|
85
|
-
}
|
|
86
|
-
}, props));
|
|
87
|
-
});
|
|
@@ -1,108 +0,0 @@
|
|
|
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
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
import classNames from 'classnames';
|
|
21
|
-
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
22
|
-
import { Label } from '../shared/label/Label';
|
|
23
|
-
import { HintText } from '../shared/hintText/HintText';
|
|
24
|
-
export var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
25
|
-
var _b;
|
|
26
|
-
var className = _a.className,
|
|
27
|
-
_c = _a.size,
|
|
28
|
-
size = _c === void 0 ? 'md' : _c,
|
|
29
|
-
label = _a.label,
|
|
30
|
-
required = _a.required,
|
|
31
|
-
disabled = _a.disabled,
|
|
32
|
-
hintText = _a.hintText,
|
|
33
|
-
characterCount = _a.characterCount,
|
|
34
|
-
destructive = _a.destructive,
|
|
35
|
-
props = __rest(_a, ["className", "size", "label", "required", "disabled", "hintText", "characterCount", "destructive"]);
|
|
36
|
-
var textareaRef = useRef(null);
|
|
37
|
-
var _d = useState(0),
|
|
38
|
-
textCount = _d[0],
|
|
39
|
-
setTextCount = _d[1];
|
|
40
|
-
var shouldShowHintArea = hintText || characterCount;
|
|
41
|
-
useEffect(function () {
|
|
42
|
-
if (textareaRef.current && characterCount) {
|
|
43
|
-
setTextCount(textareaRef.current.value.length);
|
|
44
|
-
var handleInput_1 = function () {
|
|
45
|
-
var _a, _b;
|
|
46
|
-
setTextCount((_b = (_a = textareaRef.current) === null || _a === void 0 ? void 0 : _a.value.length) !== null && _b !== void 0 ? _b : 0);
|
|
47
|
-
};
|
|
48
|
-
textareaRef.current.addEventListener('input', handleInput_1);
|
|
49
|
-
return function () {
|
|
50
|
-
var _a;
|
|
51
|
-
(_a = textareaRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('input', handleInput_1);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}, [characterCount]);
|
|
55
|
-
return _jsxs("div", __assign({
|
|
56
|
-
className: classNames('ncua-input', 'ncua-input--textarea', "ncua-input--textarea--".concat(size), {
|
|
57
|
-
destructive: destructive,
|
|
58
|
-
'is-disabled': disabled
|
|
59
|
-
}, className)
|
|
60
|
-
}, {
|
|
61
|
-
children: [label && _jsx(Label, __assign({
|
|
62
|
-
htmlFor: props.id,
|
|
63
|
-
isRequired: required
|
|
64
|
-
}, {
|
|
65
|
-
children: label
|
|
66
|
-
})), _jsx("div", __assign({
|
|
67
|
-
className: "ncua-input__content"
|
|
68
|
-
}, {
|
|
69
|
-
children: _jsx("div", __assign({
|
|
70
|
-
className: "ncua-input__field"
|
|
71
|
-
}, {
|
|
72
|
-
children: _jsx("textarea", __assign({
|
|
73
|
-
ref: function (node) {
|
|
74
|
-
if (typeof ref === 'function') {
|
|
75
|
-
ref(node);
|
|
76
|
-
} else if (ref) {
|
|
77
|
-
ref.current = node;
|
|
78
|
-
}
|
|
79
|
-
textareaRef.current = node;
|
|
80
|
-
},
|
|
81
|
-
className: "ncua-input__textarea",
|
|
82
|
-
disabled: disabled
|
|
83
|
-
}, props))
|
|
84
|
-
}))
|
|
85
|
-
})), shouldShowHintArea && _jsxs("div", __assign({
|
|
86
|
-
className: "ncua-input__text-count-wrap"
|
|
87
|
-
}, {
|
|
88
|
-
children: [hintText && _jsx(HintText, __assign({
|
|
89
|
-
as: "div",
|
|
90
|
-
destructive: destructive
|
|
91
|
-
}, {
|
|
92
|
-
children: hintText
|
|
93
|
-
})), characterCount && _jsx("div", __assign({
|
|
94
|
-
className: "ncua-input__text-count"
|
|
95
|
-
}, {
|
|
96
|
-
children: _jsxs("span", __assign({
|
|
97
|
-
className: "ncua-input__text-count-text"
|
|
98
|
-
}, {
|
|
99
|
-
children: [_jsx("span", __assign({
|
|
100
|
-
className: "ncua-input__text-count-text-count"
|
|
101
|
-
}, {
|
|
102
|
-
children: textCount
|
|
103
|
-
})), "/", (_b = props.maxLength) !== null && _b !== void 0 ? _b : 0]
|
|
104
|
-
}))
|
|
105
|
-
}))]
|
|
106
|
-
}))]
|
|
107
|
-
}));
|
|
108
|
-
});
|
|
@@ -1,188 +0,0 @@
|
|
|
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
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
-
import classnames from 'classnames';
|
|
21
|
-
import { useEffect, useRef } from 'react';
|
|
22
|
-
import ReactDOM from 'react-dom';
|
|
23
|
-
import { FeaturedIcon } from '../featured-icon';
|
|
24
|
-
import Icon from '@ncds/ui-admin-icon';
|
|
25
|
-
export var Modal = function (_a) {
|
|
26
|
-
var isOpen = _a.isOpen,
|
|
27
|
-
onClose = _a.onClose,
|
|
28
|
-
children = _a.children,
|
|
29
|
-
_b = _a.size,
|
|
30
|
-
size = _b === void 0 ? 'md' : _b,
|
|
31
|
-
_c = _a.closeOnBackdropClick,
|
|
32
|
-
closeOnBackdropClick = _c === void 0 ? true : _c,
|
|
33
|
-
_d = _a.closeOnEsc,
|
|
34
|
-
closeOnEsc = _d === void 0 ? true : _d,
|
|
35
|
-
className = _a.className,
|
|
36
|
-
restProps = __rest(_a, ["isOpen", "onClose", "children", "size", "closeOnBackdropClick", "closeOnEsc", "className"]);
|
|
37
|
-
var modalRef = useRef(null);
|
|
38
|
-
var handleBackdropClick = function (e) {
|
|
39
|
-
if (closeOnBackdropClick && e.target === e.currentTarget) {
|
|
40
|
-
onClose();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
useEffect(function () {
|
|
44
|
-
var handleKeyDown = function (e) {
|
|
45
|
-
if (isOpen && closeOnEsc && e.key === 'Escape') {
|
|
46
|
-
onClose();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
if (isOpen) {
|
|
50
|
-
document.addEventListener('keydown', handleKeyDown);
|
|
51
|
-
document.body.style.overflow = 'hidden';
|
|
52
|
-
}
|
|
53
|
-
return function () {
|
|
54
|
-
document.removeEventListener('keydown', handleKeyDown);
|
|
55
|
-
document.body.style.overflow = '';
|
|
56
|
-
};
|
|
57
|
-
}, [isOpen, closeOnEsc, onClose]);
|
|
58
|
-
if (!isOpen) return null;
|
|
59
|
-
var modalContent = _jsx("div", __assign({
|
|
60
|
-
className: classnames('ncua-modal-backdrop', className),
|
|
61
|
-
onClick: handleBackdropClick,
|
|
62
|
-
ref: modalRef
|
|
63
|
-
}, restProps, {
|
|
64
|
-
children: _jsx("div", __assign({
|
|
65
|
-
className: classnames('ncua-modal', "ncua-modal--".concat(size))
|
|
66
|
-
}, {
|
|
67
|
-
children: children
|
|
68
|
-
}))
|
|
69
|
-
}));
|
|
70
|
-
return /*#__PURE__*/ReactDOM.createPortal(modalContent, document.body);
|
|
71
|
-
};
|
|
72
|
-
Modal.Header = function (_a) {
|
|
73
|
-
var children = _a.children,
|
|
74
|
-
onClose = _a.onClose,
|
|
75
|
-
featuredIcon = _a.featuredIcon,
|
|
76
|
-
title = _a.title,
|
|
77
|
-
subtitle = _a.subtitle,
|
|
78
|
-
_b = _a.align,
|
|
79
|
-
align = _b === void 0 ? 'left' : _b,
|
|
80
|
-
_c = _a.showDivider,
|
|
81
|
-
showDivider = _c === void 0 ? false : _c,
|
|
82
|
-
_d = _a.hideCloseButton,
|
|
83
|
-
hideCloseButton = _d === void 0 ? false : _d;
|
|
84
|
-
return _jsxs(_Fragment, {
|
|
85
|
-
children: [_jsxs("header", __assign({
|
|
86
|
-
className: classnames('ncua-modal__header', "ncua-modal__header--".concat(align), {
|
|
87
|
-
'ncua-modal__header--close-button': !hideCloseButton
|
|
88
|
-
})
|
|
89
|
-
}, {
|
|
90
|
-
children: [featuredIcon && _jsx(FeaturedIcon, {
|
|
91
|
-
name: featuredIcon.name,
|
|
92
|
-
color: featuredIcon.color,
|
|
93
|
-
theme: featuredIcon.theme,
|
|
94
|
-
size: "sm"
|
|
95
|
-
}), _jsxs("div", __assign({
|
|
96
|
-
className: "ncua-modal__title"
|
|
97
|
-
}, {
|
|
98
|
-
children: [_jsx("div", __assign({
|
|
99
|
-
className: "ncua-modal__title-text"
|
|
100
|
-
}, {
|
|
101
|
-
children: title
|
|
102
|
-
})), subtitle && _jsx("div", __assign({
|
|
103
|
-
className: "ncua-modal__title-subtitle"
|
|
104
|
-
}, {
|
|
105
|
-
children: subtitle
|
|
106
|
-
}))]
|
|
107
|
-
})), children, !hideCloseButton && _jsx("button", __assign({
|
|
108
|
-
className: "ncua-modal__close-button",
|
|
109
|
-
onClick: onClose
|
|
110
|
-
}, {
|
|
111
|
-
children: _jsx(Icon, {
|
|
112
|
-
name: "x-close"
|
|
113
|
-
})
|
|
114
|
-
}))]
|
|
115
|
-
})), showDivider && _jsx("div", {
|
|
116
|
-
className: "ncua-modal__header-divider"
|
|
117
|
-
})]
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
Modal.Content = function (_a) {
|
|
121
|
-
var children = _a.children;
|
|
122
|
-
return _jsx("div", __assign({
|
|
123
|
-
className: "ncua-modal__content"
|
|
124
|
-
}, {
|
|
125
|
-
children: children
|
|
126
|
-
}));
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Modal.Actions - The actions area of the modal
|
|
130
|
-
*
|
|
131
|
-
* Examples:
|
|
132
|
-
*
|
|
133
|
-
* 1. Vertical layout (buttons stacked):
|
|
134
|
-
* <Modal.Actions layout="vertical" align="stretch">
|
|
135
|
-
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
136
|
-
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
137
|
-
* </Modal.Actions>
|
|
138
|
-
*
|
|
139
|
-
* 2. Horizontal layout (buttons side by side):
|
|
140
|
-
* <Modal.Actions layout="horizontal" align="stretch">
|
|
141
|
-
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
142
|
-
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
143
|
-
* </Modal.Actions>
|
|
144
|
-
*
|
|
145
|
-
* 3. Checkbox layout (checkbox on left, buttons on right):
|
|
146
|
-
* <Modal.Actions layout="checkbox" align="stretch" checkboxContent={
|
|
147
|
-
* <>
|
|
148
|
-
* <Checkbox text="Never show again" />
|
|
149
|
-
* <a href="#">Settings</a>
|
|
150
|
-
* </>
|
|
151
|
-
* }>
|
|
152
|
-
* <Button size="sm" label="Cancel" onClick={handleCancel} hierarchy="secondary-gray" />
|
|
153
|
-
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
154
|
-
* </Modal.Actions>
|
|
155
|
-
*/
|
|
156
|
-
Modal.Actions = function (_a) {
|
|
157
|
-
var children = _a.children,
|
|
158
|
-
_b = _a.layout,
|
|
159
|
-
layout = _b === void 0 ? 'vertical' : _b,
|
|
160
|
-
_c = _a.showDivider,
|
|
161
|
-
showDivider = _c === void 0 ? false : _c,
|
|
162
|
-
_d = _a.align,
|
|
163
|
-
align = _d === void 0 ? 'stretch' : _d,
|
|
164
|
-
checkboxContent = _a.checkboxContent;
|
|
165
|
-
return _jsxs(_Fragment, {
|
|
166
|
-
children: [showDivider && _jsx("div", {
|
|
167
|
-
className: "ncua-modal__actions-divider"
|
|
168
|
-
}), _jsxs("div", __assign({
|
|
169
|
-
className: classnames('ncua-modal__actions-wrapper', {
|
|
170
|
-
'ncua-modal__actions-wrapper--checkbox': layout === 'checkbox'
|
|
171
|
-
})
|
|
172
|
-
}, {
|
|
173
|
-
children: [layout === 'checkbox' && _jsx("div", __assign({
|
|
174
|
-
className: "ncua-modal__actions-checkbox"
|
|
175
|
-
}, {
|
|
176
|
-
children: _jsx("div", __assign({
|
|
177
|
-
className: "ncua-modal__actions-checkbox-content"
|
|
178
|
-
}, {
|
|
179
|
-
children: checkboxContent
|
|
180
|
-
}))
|
|
181
|
-
})), _jsx("div", __assign({
|
|
182
|
-
className: classnames('ncua-modal__actions', "ncua-modal__actions--".concat(layout), "ncua-modal__actions--".concat(align))
|
|
183
|
-
}, {
|
|
184
|
-
children: children
|
|
185
|
-
}))]
|
|
186
|
-
}))]
|
|
187
|
-
});
|
|
188
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Modal';
|
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
};
|
|
19
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { FeaturedIcon } from '../featured-icon/FeaturedIcon';
|
|
21
|
-
import Icon from '@ncds/ui-admin-icon';
|
|
22
|
-
import classNames from 'classnames';
|
|
23
|
-
import { forwardRef } from 'react';
|
|
24
|
-
var iconNameMap = {
|
|
25
|
-
neutral: 'pin-02',
|
|
26
|
-
error: 'alert-triangle',
|
|
27
|
-
warning: 'alert-circle',
|
|
28
|
-
success: 'check-circle'
|
|
29
|
-
};
|
|
30
|
-
export var FloatingNotification = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31
|
-
var title = _a.title,
|
|
32
|
-
supportingText = _a.supportingText,
|
|
33
|
-
_b = _a.variant,
|
|
34
|
-
variant = _b === void 0 ? 'neutral' : _b,
|
|
35
|
-
onClose = _a.onClose,
|
|
36
|
-
className = _a.className,
|
|
37
|
-
actions = _a.actions,
|
|
38
|
-
rest = __rest(_a, ["title", "supportingText", "variant", "onClose", "className", "actions"]);
|
|
39
|
-
var iconColor = variant;
|
|
40
|
-
var featuredIconProps = {
|
|
41
|
-
name: iconNameMap[variant],
|
|
42
|
-
size: 'sm',
|
|
43
|
-
color: iconColor,
|
|
44
|
-
theme: 'dark-circle'
|
|
45
|
-
};
|
|
46
|
-
return _jsxs("div", __assign({
|
|
47
|
-
ref: ref,
|
|
48
|
-
className: classNames('ncua-floating-notification', "ncua-floating-notification--".concat(variant), className),
|
|
49
|
-
role: "alert"
|
|
50
|
-
}, rest, {
|
|
51
|
-
children: [_jsx("div", __assign({
|
|
52
|
-
className: "ncua-floating-notification__content"
|
|
53
|
-
}, {
|
|
54
|
-
children: _jsxs("div", __assign({
|
|
55
|
-
className: "ncua-floating-notification__container"
|
|
56
|
-
}, {
|
|
57
|
-
children: [iconNameMap[variant] && _jsxs(_Fragment, {
|
|
58
|
-
children: [_jsx(FeaturedIcon, __assign({}, featuredIconProps, {
|
|
59
|
-
className: "ncua-floating-notification__pc-icon"
|
|
60
|
-
})), _jsx(FeaturedIcon, __assign({}, featuredIconProps, {
|
|
61
|
-
size: "md",
|
|
62
|
-
className: "ncua-floating-notification__mobile-icon"
|
|
63
|
-
}))]
|
|
64
|
-
}), _jsxs("div", __assign({
|
|
65
|
-
className: "ncua-floating-notification__text-container"
|
|
66
|
-
}, {
|
|
67
|
-
children: [_jsx("div", __assign({
|
|
68
|
-
className: "ncua-floating-notification__title-wrapper"
|
|
69
|
-
}, {
|
|
70
|
-
children: _jsx("span", __assign({
|
|
71
|
-
className: "ncua-floating-notification__title"
|
|
72
|
-
}, {
|
|
73
|
-
children: title
|
|
74
|
-
}))
|
|
75
|
-
})), supportingText && _jsx("span", __assign({
|
|
76
|
-
className: "ncua-floating-notification__supporting-text"
|
|
77
|
-
}, {
|
|
78
|
-
children: supportingText
|
|
79
|
-
})), actions && _jsx("div", __assign({
|
|
80
|
-
className: "ncua-floating-notification__actions"
|
|
81
|
-
}, {
|
|
82
|
-
children: actions
|
|
83
|
-
}))]
|
|
84
|
-
}))]
|
|
85
|
-
}))
|
|
86
|
-
})), onClose && _jsx("button", __assign({
|
|
87
|
-
type: "button",
|
|
88
|
-
className: "ncua-floating-notification__close-button",
|
|
89
|
-
onClick: onClose,
|
|
90
|
-
"aria-label": "\uC54C\uB9BC \uB2EB\uAE30"
|
|
91
|
-
}, {
|
|
92
|
-
children: _jsx(Icon, {
|
|
93
|
-
name: "x"
|
|
94
|
-
})
|
|
95
|
-
}))]
|
|
96
|
-
}));
|
|
97
|
-
});
|