@alif-ui-test/core 1.11.0
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/LICENSE.txt +5 -0
- package/dist/assets/fonts/ALS_Hauss_VF_1.1.ttf +0 -0
- package/dist/assets/fonts/als_hauss_bold.woff2 +0 -0
- package/dist/assets/fonts/als_hauss_medium.woff2 +0 -0
- package/dist/assets/fonts/als_hauss_regular.woff2 +0 -0
- package/dist/components/Accordion/Accordion.js +33 -0
- package/dist/components/Accordion/Accordion.module.css.js +21 -0
- package/dist/components/Accordion/Accordion.types.js +1 -0
- package/dist/components/Accordion/Accordion.utils.js +10 -0
- package/dist/components/Accordion/AccordionDetails/AccordionDetails.js +11 -0
- package/dist/components/Accordion/AccordionSummary/AccordionSummary.js +53 -0
- package/dist/components/ActionButton/ActionButton.js +50 -0
- package/dist/components/ActionButton/ActionButton.module.css.js +9 -0
- package/dist/components/ActionButton/ActionButton.types.js +1 -0
- package/dist/components/ActionButton/ActionButton.utils.js +48 -0
- package/dist/components/Alert/Alert.js +42 -0
- package/dist/components/Alert/Alert.module.css.js +11 -0
- package/dist/components/Alert/Alert.types.js +1 -0
- package/dist/components/Alert/Alert.utils.js +9 -0
- package/dist/components/AppLayout/AppLayout.js +12 -0
- package/dist/components/AppLayout/AppLayout.module.css.js +13 -0
- package/dist/components/AppLayout/AppLayout.types.js +1 -0
- package/dist/components/Avatar/Avatar.js +41 -0
- package/dist/components/Avatar/Avatar.module.css.js +19 -0
- package/dist/components/Avatar/Avatar.types.js +1 -0
- package/dist/components/Avatar/Avatar.utils.js +130 -0
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.js +12 -0
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.module.css.js +7 -0
- package/dist/components/Backdrop/Backdrop.js +59 -0
- package/dist/components/Backdrop/Backdrop.module.css.js +9 -0
- package/dist/components/Backdrop/Backdrop.types.js +1 -0
- package/dist/components/Backdrop/BackdropOverlay.js +8 -0
- package/dist/components/Backdrop/useZIndexStack.js +28 -0
- package/dist/components/Badge/Badge.js +31 -0
- package/dist/components/Badge/Badge.module.css.js +9 -0
- package/dist/components/Badge/Badge.types.js +1 -0
- package/dist/components/Badge/Badge.utils.js +40 -0
- package/dist/components/Breadcrumbs/Breadcrumb/Breadcrumb.js +19 -0
- package/dist/components/Breadcrumbs/Breadcrumb/Breadcrumb.module.css.js +9 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +58 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.module.css.js +9 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.types.js +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.utils.js +18 -0
- package/dist/components/Breadcrumbs/BreadcrumbsMenu/BreadcrumbsMenu.js +46 -0
- package/dist/components/Breadcrumbs/BreadcrumbsMenu/BreadcrumbsMenu.module.css.js +11 -0
- package/dist/components/Button/Button.js +46 -0
- package/dist/components/Button/Button.module.css.js +11 -0
- package/dist/components/Button/Button.types.js +1 -0
- package/dist/components/Button/Button.utils.js +69 -0
- package/dist/components/Checkbox/Checkbox.js +54 -0
- package/dist/components/Checkbox/Checkbox.module.css.js +21 -0
- package/dist/components/Checkbox/Checkbox.types.js +1 -0
- package/dist/components/Checkbox/Checkbox.utils.js +44 -0
- package/dist/components/Collapse/Collapse.js +11 -0
- package/dist/components/Collapse/Collapse.types.js +1 -0
- package/dist/components/DatePicker/DatePicker.js +134 -0
- package/dist/components/DatePicker/DatePicker.module.css.js +13 -0
- package/dist/components/DatePicker/DatePicker.types.js +1 -0
- package/dist/components/DatePicker/DatePicker.utils.js +86 -0
- package/dist/components/DatePicker/Picker/Picker.js +944 -0
- package/dist/components/DatePicker/Picker/Picker.module.css.js +55 -0
- package/dist/components/DatePicker/Picker/Picker.types.js +1 -0
- package/dist/components/DatePicker/Picker/Picker.utils.js +62 -0
- package/dist/components/Dates/Dates.module.css.js +73 -0
- package/dist/components/Dates/Dates.utils.js +65 -0
- package/dist/components/Dates/InputDatePicker/DatePicker/DatePicker.constants.js +8 -0
- package/dist/components/Dates/InputDatePicker/DatePicker/DatePicker.js +238 -0
- package/dist/components/Dates/InputDatePicker/DatePicker/DatePicker.types.js +1 -0
- package/dist/components/Dates/InputDatePicker/DatePicker/DatePicker.utils.js +47 -0
- package/dist/components/Dates/InputDatePicker/InputDatePicker.js +119 -0
- package/dist/components/Dates/InputDatePicker/InputDatePicker.types.js +1 -0
- package/dist/components/Dates/InputDatePicker/InputDatePicker.utils.js +70 -0
- package/dist/components/Dates/InputMonthPicker/InputMonthPicker.js +110 -0
- package/dist/components/Dates/InputMonthPicker/InputMonthPicker.types.js +1 -0
- package/dist/components/Dates/InputMonthPicker/InputMonthPicker.utils.js +23 -0
- package/dist/components/Dates/InputMonthPicker/MonthPicker/MonthPicker.constants.js +47 -0
- package/dist/components/Dates/InputMonthPicker/MonthPicker/MonthPicker.js +59 -0
- package/dist/components/Dates/InputMonthPicker/MonthPicker/MonthPicker.types.js +1 -0
- package/dist/components/Dates/InputMonthYearPicker/InputMonthYearPicker.js +110 -0
- package/dist/components/Dates/InputMonthYearPicker/InputMonthYearPicker.utils.js +44 -0
- package/dist/components/Dates/InputMonthYearPicker/InputYearMonthPicker.types.js +1 -0
- package/dist/components/Dates/InputMonthYearPicker/MonthYearPicker/MonthYearPicker.js +134 -0
- package/dist/components/Dates/InputMonthYearPicker/MonthYearPicker/MonthYearPicker.types.js +1 -0
- package/dist/components/Dates/InputMonthYearPicker/MonthYearPicker/MonthYearPicker.utils.js +20 -0
- package/dist/components/Dates/InputTimePicker/InputTimePicker.js +88 -0
- package/dist/components/Dates/InputTimePicker/InputTimePicker.types.js +1 -0
- package/dist/components/Dates/InputTimePicker/InputTimePicker.utils.js +17 -0
- package/dist/components/Dates/InputTimePicker/TimePicker/TimeColumn.js +31 -0
- package/dist/components/Dates/InputTimePicker/TimePicker/TimePicker.js +102 -0
- package/dist/components/Dates/InputTimePicker/TimePicker/TimePicker.types.js +1 -0
- package/dist/components/Dates/InputTimePicker/TimePicker/TimePicker.utils.js +38 -0
- package/dist/components/Dates/InputTimePicker/TimePicker/useScrollSync.js +27 -0
- package/dist/components/Dates/InputYearPicker/InputYearPicker.js +100 -0
- package/dist/components/Dates/InputYearPicker/InputYearPicker.types.js +1 -0
- package/dist/components/Dates/InputYearPicker/InputYearPicker.utils.js +21 -0
- package/dist/components/Dates/InputYearPicker/YearPicker/YearPicker.js +61 -0
- package/dist/components/Dates/InputYearPicker/YearPicker/YearPicker.types.js +1 -0
- package/dist/components/Dates/PickerContent/PickerContent.js +64 -0
- package/dist/components/Dates/PickerContent/PickerContent.types.js +1 -0
- package/dist/components/Dates/PickerContent/PickerContent.utils.js +20 -0
- package/dist/components/Dates/PickerHeader/PickerHeader.js +60 -0
- package/dist/components/Dates/PickerHeader/PickerHeader.types.js +1 -0
- package/dist/components/Dates/PickerOptions/PickerOptions.js +36 -0
- package/dist/components/Dates/PickerOptions/PickerOptions.types.js +1 -0
- package/dist/components/Divider/Divider.js +18 -0
- package/dist/components/Divider/Divider.module.css.js +7 -0
- package/dist/components/Divider/Divider.types.js +1 -0
- package/dist/components/Divider/Divider.utils.js +10 -0
- package/dist/components/Drawer/Drawer.js +74 -0
- package/dist/components/Drawer/Drawer.module.css.js +33 -0
- package/dist/components/Drawer/Drawer.types.js +1 -0
- package/dist/components/Drawer/Drawer.utils.js +14 -0
- package/dist/components/Field/Field.js +69 -0
- package/dist/components/Field/Field.types.js +1 -0
- package/dist/components/Field/InputBase/InputBase.js +52 -0
- package/dist/components/Field/InputBase/InputBase.module.css.js +11 -0
- package/dist/components/Field/InputBase/InputBase.utils.js +24 -0
- package/dist/components/Field/InputBaseWrapper/InputBaseWrapper.js +86 -0
- package/dist/components/Field/InputBaseWrapper/InputBaseWrapper.module.css.js +35 -0
- package/dist/components/Field/InputBaseWrapper/InputBaseWrapper.utils.js +65 -0
- package/dist/components/FileUploader/FileUploader.js +131 -0
- package/dist/components/FileUploader/FileUploader.module.css.js +23 -0
- package/dist/components/FileUploader/FileUploader.types.js +1 -0
- package/dist/components/FileUploader/FileUploader.utils.js +29 -0
- package/dist/components/FileView/FileView.js +75 -0
- package/dist/components/FileView/FileView.module.css.js +27 -0
- package/dist/components/FileView/FileView.types.js +1 -0
- package/dist/components/FileView/FileView.utils.js +4 -0
- package/dist/components/FunctionButton/FunctionButton.js +28 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.js +7 -0
- package/dist/components/FunctionButton/FunctionButton.types.js +1 -0
- package/dist/components/FunctionButton/FunctionButton.utils.js +36 -0
- package/dist/components/Hinter/Hinter.js +53 -0
- package/dist/components/Hinter/Hinter.module.css.js +15 -0
- package/dist/components/Hinter/Hinter.types.js +1 -0
- package/dist/components/Input/Input.js +43 -0
- package/dist/components/Input/Input.module.css.js +9 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/InputOtp/InputOtp.js +70 -0
- package/dist/components/InputOtp/InputOtp.module.css.js +13 -0
- package/dist/components/InputOtp/InputOtp.types.js +1 -0
- package/dist/components/InputOtp/InputOtp.utils.js +38 -0
- package/dist/components/ListItem/ListItem.js +119 -0
- package/dist/components/ListItem/ListItem.module.css.js +31 -0
- package/dist/components/ListItem/ListItem.types.js +1 -0
- package/dist/components/ListItem/ListItem.utils.js +50 -0
- package/dist/components/Loader/Loader.js +7 -0
- package/dist/components/Loader/Loader.module.css.js +7 -0
- package/dist/components/Loader/Loader.types.js +1 -0
- package/dist/components/Loader/Loader.utils.js +14 -0
- package/dist/components/Menu/Menu.context.js +6 -0
- package/dist/components/Menu/Menu.js +38 -0
- package/dist/components/Menu/Menu.module.css.js +9 -0
- package/dist/components/Menu/Menu.types.js +1 -0
- package/dist/components/Menu/Menu.utils.js +12 -0
- package/dist/components/Menu/MenuItem/MenuItem.js +47 -0
- package/dist/components/Menu/MenuItem/MenuItem.module.css.js +13 -0
- package/dist/components/Menu/MenuItem/MenuItem.utils.js +34 -0
- package/dist/components/Modal/Modal.js +48 -0
- package/dist/components/Modal/Modal.module.css.js +23 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/Modal.utils.js +8 -0
- package/dist/components/Modal/ModalActions/ModalActions.js +5 -0
- package/dist/components/Modal/ModalContent/ModalContent.js +7 -0
- package/dist/components/Modal/ModalHeader/ModalHeader.js +43 -0
- package/dist/components/Navbar/Navbar.js +23 -0
- package/dist/components/Navbar/Navbar.module.css.js +12 -0
- package/dist/components/Navbar/Navbar.types.js +1 -0
- package/dist/components/Pagination/Pagination.hook.js +27 -0
- package/dist/components/Pagination/Pagination.js +182 -0
- package/dist/components/Pagination/Pagination.module.css.js +27 -0
- package/dist/components/Pagination/Pagination.types.js +1 -0
- package/dist/components/Pagination/Pagination.utils.js +37 -0
- package/dist/components/Paper/Elevated/Elevated.js +39 -0
- package/dist/components/Paper/Elevated/Elevated.module.css.js +7 -0
- package/dist/components/Paper/Elevated/Elevated.types.js +1 -0
- package/dist/components/Paper/Elevated/Elevated.utils.js +8 -0
- package/dist/components/Paper/Paper.module.css.js +15 -0
- package/dist/components/Paper/Paper.type.js +1 -0
- package/dist/components/Paper/Paper.utils.js +15 -0
- package/dist/components/Paper/Surface/Surface.js +39 -0
- package/dist/components/Paper/Surface/Surface.module.css.js +7 -0
- package/dist/components/Paper/Surface/Surface.types.js +1 -0
- package/dist/components/Paper/Surface/Surface.utils.js +6 -0
- package/dist/components/Popover/Popover.context.js +8 -0
- package/dist/components/Popover/Popover.js +73 -0
- package/dist/components/Popover/Popover.module.css.js +9 -0
- package/dist/components/Popover/Popover.types.js +1 -0
- package/dist/components/Popover/PopoverDropdown/PopoverArrow.js +24 -0
- package/dist/components/Popover/PopoverDropdown/PopoverDropdown.js +71 -0
- package/dist/components/Popover/PopoverTrigger/PopoverTrigger.js +31 -0
- package/dist/components/Popover/useFloatingPosition/getScrollableAncestors.js +12 -0
- package/dist/components/Popover/useFloatingPosition/useFloating.types.js +1 -0
- package/dist/components/Popover/useFloatingPosition/useFloating.util.js +55 -0
- package/dist/components/Popover/useFloatingPosition/useFloatingPosition.js +43 -0
- package/dist/components/Portal/Portal.js +22 -0
- package/dist/components/Portal/Portal.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +25 -0
- package/dist/components/ProgressBar/ProgressBar.module.css.js +7 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.utils.js +9 -0
- package/dist/components/Radio/Radio.js +44 -0
- package/dist/components/Radio/Radio.module.css.js +15 -0
- package/dist/components/Radio/Radio.types.js +1 -0
- package/dist/components/Radio/Radio.utils.js +59 -0
- package/dist/components/Radio/RadioGroup/RadioGroup.js +41 -0
- package/dist/components/Radio/RadioGroup/RadioGroup.module.css.js +11 -0
- package/dist/components/Radio/RadioGroup/RadioGroup.types.js +1 -0
- package/dist/components/Rating/Rating.js +43 -0
- package/dist/components/Rating/Rating.module.css.js +13 -0
- package/dist/components/Rating/Rating.types.js +1 -0
- package/dist/components/Rating/Rating.utils.js +9 -0
- package/dist/components/RemoveScroll/RemoveScroll.js +15 -0
- package/dist/components/Search/Search.js +44 -0
- package/dist/components/Search/Search.module.css.js +15 -0
- package/dist/components/Search/Search.types.js +1 -0
- package/dist/components/Search/Search.utils.js +14 -0
- package/dist/components/SearchAccent/SearchAccent.js +61 -0
- package/dist/components/SearchAccent/SearchAccent.module.css.js +11 -0
- package/dist/components/SearchAccent/SearchAccent.types.js +1 -0
- package/dist/components/SearchAccent/SearchAccent.utils.js +11 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +40 -0
- package/dist/components/SegmentedControl/SegmentedControl.module.css.js +9 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.js +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.utils.js +22 -0
- package/dist/components/Select/Select.js +140 -0
- package/dist/components/Select/Select.module.css.js +15 -0
- package/dist/components/Select/Select.types.js +1 -0
- package/dist/components/Select/Select.utils.js +6 -0
- package/dist/components/SelectMultiple/SelectMultiple.js +182 -0
- package/dist/components/SelectMultiple/SelectMultiple.module.css.js +25 -0
- package/dist/components/SelectMultiple/SelectMultiple.types.js +1 -0
- package/dist/components/SelectorInput/SelectorInput.js +81 -0
- package/dist/components/SelectorInput/SelectorInput.module.css.js +21 -0
- package/dist/components/SelectorInput/SelectorInput.types.js +1 -0
- package/dist/components/SelectorInput/SelectorInput.utils.js +49 -0
- package/dist/components/Sidebar/Sidebar.context.js +6 -0
- package/dist/components/Sidebar/Sidebar.js +82 -0
- package/dist/components/Sidebar/Sidebar.module.css.js +21 -0
- package/dist/components/Sidebar/Sidebar.types.js +1 -0
- package/dist/components/Sidebar/Sidebar.utils.js +66 -0
- package/dist/components/Sidebar/SidebarBottom/SidebarBottom.js +20 -0
- package/dist/components/Sidebar/SidebarBottom/SidebarBottom.module.css.js +7 -0
- package/dist/components/Sidebar/SidebarCollapse/SidebarCollapse.js +65 -0
- package/dist/components/Sidebar/SidebarCollapse/SidebarCollapse.module.css.js +19 -0
- package/dist/components/Sidebar/SidebarControlButton/SidebarControlButton.js +16 -0
- package/dist/components/Sidebar/SidebarControlButton/SidebarControlButton.module.css.js +9 -0
- package/dist/components/Sidebar/SidebarElement/SidebarElement.js +10 -0
- package/dist/components/Sidebar/SidebarElement/SidebarElement.module.css.js +8 -0
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.js +17 -0
- package/dist/components/Sidebar/SidebarHeader/SidebarHeader.module.css.js +9 -0
- package/dist/components/Sidebar/SidebarItem/SidebarItem.js +36 -0
- package/dist/components/Sidebar/SidebarItem/SidebarItem.module.css.js +21 -0
- package/dist/components/Sidebar/SidebarItems/SidebarItems.js +25 -0
- package/dist/components/Skeleton/Skeleton.js +23 -0
- package/dist/components/Skeleton/Skeleton.module.css.js +7 -0
- package/dist/components/Skeleton/Skeleton.types.js +1 -0
- package/dist/components/Skeleton/Skeleton.utils.js +9 -0
- package/dist/components/Slider/Label/Label.js +35 -0
- package/dist/components/Slider/Label/Label.types.js +1 -0
- package/dist/components/Slider/Marks/Marks.js +33 -0
- package/dist/components/Slider/Marks/Marks.types.js +1 -0
- package/dist/components/Slider/RangeSlider/RangeSlider.js +78 -0
- package/dist/components/Slider/RangeSlider/RangeSlider.types.js +1 -0
- package/dist/components/Slider/RangeSlider/RangeSlider.utils.js +11 -0
- package/dist/components/Slider/Slider/Slider.js +48 -0
- package/dist/components/Slider/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider/Slider.utils.js +8 -0
- package/dist/components/Slider/Slider.module.css.js +33 -0
- package/dist/components/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider.utils.js +16 -0
- package/dist/components/Slider/SliderBase/SliderBase.js +38 -0
- package/dist/components/Slider/SliderBase/SliderBase.types.js +1 -0
- package/dist/components/Slider/Thumb/Thumb.js +70 -0
- package/dist/components/Slider/Thumb/Thumb.types.js +1 -0
- package/dist/components/Slider/Track/Track.js +16 -0
- package/dist/components/Slider/Track/Track.types.js +1 -0
- package/dist/components/Snackbar/Snackbar.js +105 -0
- package/dist/components/Snackbar/Snackbar.module.css.js +19 -0
- package/dist/components/Snackbar/Snackbar.types.js +1 -0
- package/dist/components/Snackbar/Snackbar.utils.js +52 -0
- package/dist/components/Snackbar/SnackbarTimer/SnackbarTimer.js +31 -0
- package/dist/components/Snackbar/SnackbarTimer/SnackbarTimer.module.css.js +11 -0
- package/dist/components/Switch/Switch.js +28 -0
- package/dist/components/Switch/Switch.module.css.js +17 -0
- package/dist/components/Switch/Switch.types.js +1 -0
- package/dist/components/Switch/Switch.utils.js +40 -0
- package/dist/components/Tab/Tab.js +61 -0
- package/dist/components/Tab/Tab.module.css.js +19 -0
- package/dist/components/Tab/Tab.types.js +1 -0
- package/dist/components/Tab/Tab.utils.js +128 -0
- package/dist/components/Tab/TabGroup/TabGroup.js +61 -0
- package/dist/components/Tab/TabGroup/TabGroup.module.css.js +9 -0
- package/dist/components/Tab/TabGroup/TabGroup.types.js +1 -0
- package/dist/components/Tab/TabMenu/TabMenu.js +11 -0
- package/dist/components/Tab/TabMenu/TabMenu.types.js +1 -0
- package/dist/components/Tab/TabMenu/TabMenu.utils.js +13 -0
- package/dist/components/TabMenuNew/TabMenuNew.js +49 -0
- package/dist/components/TabMenuNew/TabMenuNew.module.css.js +11 -0
- package/dist/components/TabMenuNew/TabMenuNew.types.js +1 -0
- package/dist/components/TabMenuNew/TabMenuNew.utils.js +8 -0
- package/dist/components/Table/Table.js +114 -0
- package/dist/components/Table/Table.module.css.js +45 -0
- package/dist/components/Table/Table.types.js +1 -0
- package/dist/components/Table/Table.utils.js +35 -0
- package/dist/components/Table/TableHeader/TableHeader.js +88 -0
- package/dist/components/Table/TableHeader/TableHeader.types.js +1 -0
- package/dist/components/Table/TableRow/TableRow.js +94 -0
- package/dist/components/Table/TableRow/TableRow.types.js +1 -0
- package/dist/components/Tag/Tag.js +40 -0
- package/dist/components/Tag/Tag.module.css.js +17 -0
- package/dist/components/Tag/Tag.types.js +1 -0
- package/dist/components/Tag/Tag.utils.js +95 -0
- package/dist/components/TextArea/TextArea.js +85 -0
- package/dist/components/TextArea/TextArea.module.css.js +21 -0
- package/dist/components/TextArea/TextArea.types.js +1 -0
- package/dist/components/TextArea/TextArea.utils.js +55 -0
- package/dist/components/Timeline/Timeline.context.js +8 -0
- package/dist/components/Timeline/Timeline.js +43 -0
- package/dist/components/Timeline/Timeline.module.css.js +9 -0
- package/dist/components/Timeline/Timeline.types.js +1 -0
- package/dist/components/Timeline/Timeline.utils.js +5 -0
- package/dist/components/Timeline/TimelineBullet/TimelineBullet.js +12 -0
- package/dist/components/Timeline/TimelineContent/TimelineContent.js +14 -0
- package/dist/components/Timeline/TimelineContent/TimelineContent.module.css.js +9 -0
- package/dist/components/Timeline/TimelineItem/TimelineItem.js +54 -0
- package/dist/components/Timeline/TimelineItem/TimelineItem.module.css.js +19 -0
- package/dist/components/Timeline/TimelineItem/TimelineItem.utils.js +21 -0
- package/dist/components/Timeline/TimelineOppositeContent/TimelineOppositeContent.js +23 -0
- package/dist/components/Timeline/TimelineOppositeContent/TimelineOppositeContent.module.css.js +9 -0
- package/dist/components/Tooltip/Tooltip.js +57 -0
- package/dist/components/Tooltip/Tooltip.module.css.js +11 -0
- package/dist/components/Tooltip/Tooltip.types.js +1 -0
- package/dist/components/Transition/Transition.constants.js +23 -0
- package/dist/components/Transition/Transition.hook.js +64 -0
- package/dist/components/Transition/Transition.js +40 -0
- package/dist/components/Transition/Transition.types.js +1 -0
- package/dist/components/Transition/Transition.utils.js +152 -0
- package/dist/components/Typography/Typography.js +23 -0
- package/dist/components/Typography/Typography.types.js +1 -0
- package/dist/core.css +1 -0
- package/dist/hooks/use-click-outside.js +15 -0
- package/dist/icons/components/AlifBusinessLogo.js +81 -0
- package/dist/icons/components/AlifIcon.js +34 -0
- package/dist/icons/components/ArrowIcon.js +16 -0
- package/dist/icons/components/OutlineFinanceAccounts.js +29 -0
- package/dist/icons/components/OutlineFinanceAnalytics.js +29 -0
- package/dist/icons/components/OutlineFinanceBank.js +29 -0
- package/dist/icons/components/OutlineFinanceBill.js +52 -0
- package/dist/icons/components/OutlineFinanceCardAdd.js +45 -0
- package/dist/icons/components/OutlineFinanceCardSalom.js +29 -0
- package/dist/icons/components/OutlineFinanceCardWebCheckout.js +47 -0
- package/dist/icons/components/OutlineFinanceCash.js +29 -0
- package/dist/icons/components/OutlineFinanceCashDollar.js +29 -0
- package/dist/icons/components/OutlineFinanceCoins.js +29 -0
- package/dist/icons/components/OutlineFinanceCreditCard.js +29 -0
- package/dist/icons/components/OutlineFinanceCurrencyDollar.js +29 -0
- package/dist/icons/components/OutlineFinanceCurrencyLira.js +29 -0
- package/dist/icons/components/OutlineFinanceCurrencyRuble.js +29 -0
- package/dist/icons/components/OutlineFinanceDeposit.js +29 -0
- package/dist/icons/components/OutlineFinanceDollar.js +29 -0
- package/dist/icons/components/OutlineFinanceDollarCoin.js +38 -0
- package/dist/icons/components/OutlineFinanceEuroCoin.js +38 -0
- package/dist/icons/components/OutlineFinanceLimits.js +52 -0
- package/dist/icons/components/OutlineFinanceMerch.js +29 -0
- package/dist/icons/components/OutlineFinanceMoney.js +29 -0
- package/dist/icons/components/OutlineFinanceOnline.js +29 -0
- package/dist/icons/components/OutlineFinancePercent.js +29 -0
- package/dist/icons/components/OutlineFinancePosTerminal.js +82 -0
- package/dist/icons/components/OutlineFinanceRubleCoin.js +40 -0
- package/dist/icons/components/OutlineFinanceSendCard.js +29 -0
- package/dist/icons/components/OutlineFinanceSendDoc.js +29 -0
- package/dist/icons/components/OutlineFinanceSomoniTjsCoin.js +38 -0
- package/dist/icons/components/OutlineFinanceStock.js +57 -0
- package/dist/icons/components/OutlineFinanceTerminal.js +29 -0
- package/dist/icons/components/OutlineFinanceTransfer.js +29 -0
- package/dist/icons/components/OutlineFinanceVisa.js +29 -0
- package/dist/icons/components/OutlineFinanceWallet.js +29 -0
- package/dist/icons/components/OutlineFinanceWalletPlus.js +29 -0
- package/dist/icons/components/OutlineFinanceWalletTransfer.js +29 -0
- package/dist/icons/components/OutlineFinanceYenYuanCoin.js +38 -0
- package/dist/icons/components/OutlineFinanceZP.js +29 -0
- package/dist/icons/components/OutlineNavigationArrowBack.js +29 -0
- package/dist/icons/components/OutlineNavigationArrowDown.js +29 -0
- package/dist/icons/components/OutlineNavigationArrowReturn.js +29 -0
- package/dist/icons/components/OutlineNavigationArrowUp.js +29 -0
- package/dist/icons/components/OutlineNavigationChevronDownSmall.js +29 -0
- package/dist/icons/components/OutlineNavigationChevronLeftSmall.js +29 -0
- package/dist/icons/components/OutlineNavigationChevronRightSmall.js +29 -0
- package/dist/icons/components/OutlineNavigationChevronUpSmall.js +29 -0
- package/dist/icons/components/OutlineNavigationDoubleLeft.js +29 -0
- package/dist/icons/components/OutlineNavigationDoubleRight.js +29 -0
- package/dist/icons/components/OutlineNavigationLeftArrow.js +29 -0
- package/dist/icons/components/OutlineNavigationLeftDown.js +29 -0
- package/dist/icons/components/OutlineNavigationRightArrow.js +29 -0
- package/dist/icons/components/OutlineNavigationRightIcon.js +24 -0
- package/dist/icons/components/OutlineNavigationRightTop.js +29 -0
- package/dist/icons/components/OutlineNavigationTrendingDown.js +29 -0
- package/dist/icons/components/OutlineNavigationTrendingUp.js +29 -0
- package/dist/icons/components/OutlineNavigationZoomOut.js +29 -0
- package/dist/icons/components/OutlineSystemAdd.js +29 -0
- package/dist/icons/components/OutlineSystemAdd2.js +29 -0
- package/dist/icons/components/OutlineSystemAlertCircle.js +29 -0
- package/dist/icons/components/OutlineSystemAll.js +43 -0
- package/dist/icons/components/OutlineSystemArticle.js +40 -0
- package/dist/icons/components/OutlineSystemBell.js +29 -0
- package/dist/icons/components/OutlineSystemBellOff.js +29 -0
- package/dist/icons/components/OutlineSystemBill.js +29 -0
- package/dist/icons/components/OutlineSystemBookOpen.js +29 -0
- package/dist/icons/components/OutlineSystemCalendar.js +29 -0
- package/dist/icons/components/OutlineSystemCalling.js +29 -0
- package/dist/icons/components/OutlineSystemCamera.js +40 -0
- package/dist/icons/components/OutlineSystemChat.js +27 -0
- package/dist/icons/components/OutlineSystemCheck.js +29 -0
- package/dist/icons/components/OutlineSystemCheckCircle.js +38 -0
- package/dist/icons/components/OutlineSystemCheckDouble.js +29 -0
- package/dist/icons/components/OutlineSystemClock.js +29 -0
- package/dist/icons/components/OutlineSystemClose.js +29 -0
- package/dist/icons/components/OutlineSystemConfities.js +73 -0
- package/dist/icons/components/OutlineSystemCopy.js +29 -0
- package/dist/icons/components/OutlineSystemDelete.js +29 -0
- package/dist/icons/components/OutlineSystemDoc.js +29 -0
- package/dist/icons/components/OutlineSystemDocEmpty.js +29 -0
- package/dist/icons/components/OutlineSystemDownload.js +29 -0
- package/dist/icons/components/OutlineSystemEdit.js +29 -0
- package/dist/icons/components/OutlineSystemEditAlt.js +29 -0
- package/dist/icons/components/OutlineSystemExpand.js +29 -0
- package/dist/icons/components/OutlineSystemEyeOff.js +29 -0
- package/dist/icons/components/OutlineSystemEyeOffAlt.js +29 -0
- package/dist/icons/components/OutlineSystemEyeOn.js +29 -0
- package/dist/icons/components/OutlineSystemFileAccept.js +38 -0
- package/dist/icons/components/OutlineSystemFileAdd.js +38 -0
- package/dist/icons/components/OutlineSystemFileError.js +38 -0
- package/dist/icons/components/OutlineSystemFilterFromLessToMore.js +43 -0
- package/dist/icons/components/OutlineSystemFilterFromMoreToLess.js +43 -0
- package/dist/icons/components/OutlineSystemFolder.js +29 -0
- package/dist/icons/components/OutlineSystemGame.js +52 -0
- package/dist/icons/components/OutlineSystemGridView.js +29 -0
- package/dist/icons/components/OutlineSystemGrowth.js +29 -0
- package/dist/icons/components/OutlineSystemHeadphones.js +29 -0
- package/dist/icons/components/OutlineSystemHeart.js +29 -0
- package/dist/icons/components/OutlineSystemHelpCircle.js +29 -0
- package/dist/icons/components/OutlineSystemHex.js +29 -0
- package/dist/icons/components/OutlineSystemHistory.js +38 -0
- package/dist/icons/components/OutlineSystemHome.js +29 -0
- package/dist/icons/components/OutlineSystemHomeFavourite.js +29 -0
- package/dist/icons/components/OutlineSystemIdea.js +66 -0
- package/dist/icons/components/OutlineSystemIn.js +36 -0
- package/dist/icons/components/OutlineSystemInfo.js +45 -0
- package/dist/icons/components/OutlineSystemIslam.js +40 -0
- package/dist/icons/components/OutlineSystemLanguage.js +29 -0
- package/dist/icons/components/OutlineSystemLink.js +36 -0
- package/dist/icons/components/OutlineSystemLink2.js +29 -0
- package/dist/icons/components/OutlineSystemListView.js +29 -0
- package/dist/icons/components/OutlineSystemLock.js +29 -0
- package/dist/icons/components/OutlineSystemMail.js +29 -0
- package/dist/icons/components/OutlineSystemMapPin.js +29 -0
- package/dist/icons/components/OutlineSystemMenu.js +29 -0
- package/dist/icons/components/OutlineSystemMistake.js +47 -0
- package/dist/icons/components/OutlineSystemMoon.js +29 -0
- package/dist/icons/components/OutlineSystemMoreHorizontal.js +29 -0
- package/dist/icons/components/OutlineSystemMoreVertical.js +29 -0
- package/dist/icons/components/OutlineSystemMove.js +29 -0
- package/dist/icons/components/OutlineSystemNavigation.js +29 -0
- package/dist/icons/components/OutlineSystemNews.js +29 -0
- package/dist/icons/components/OutlineSystemOut.js +36 -0
- package/dist/icons/components/OutlineSystemPaperclip.js +29 -0
- package/dist/icons/components/OutlineSystemPlus.js +29 -0
- package/dist/icons/components/OutlineSystemPlusRect.js +29 -0
- package/dist/icons/components/OutlineSystemPrinter.js +29 -0
- package/dist/icons/components/OutlineSystemRefresh.js +29 -0
- package/dist/icons/components/OutlineSystemRefreshCW.js +29 -0
- package/dist/icons/components/OutlineSystemRemove.js +29 -0
- package/dist/icons/components/OutlineSystemRemoveCircle.js +40 -0
- package/dist/icons/components/OutlineSystemRepeat.js +29 -0
- package/dist/icons/components/OutlineSystemResize.js +40 -0
- package/dist/icons/components/OutlineSystemSearch.js +29 -0
- package/dist/icons/components/OutlineSystemSend.js +29 -0
- package/dist/icons/components/OutlineSystemSettings.js +29 -0
- package/dist/icons/components/OutlineSystemShippingAndDelivery.js +29 -0
- package/dist/icons/components/OutlineSystemShoppingBasket.js +45 -0
- package/dist/icons/components/OutlineSystemSidebar.js +29 -0
- package/dist/icons/components/OutlineSystemSignature.js +29 -0
- package/dist/icons/components/OutlineSystemSlash.js +29 -0
- package/dist/icons/components/OutlineSystemSmartphone.js +27 -0
- package/dist/icons/components/OutlineSystemSmile.js +27 -0
- package/dist/icons/components/OutlineSystemStar.js +29 -0
- package/dist/icons/components/OutlineSystemSun.js +29 -0
- package/dist/icons/components/OutlineSystemSurvey.js +38 -0
- package/dist/icons/components/OutlineSystemTariffs.js +64 -0
- package/dist/icons/components/OutlineSystemTelegram.js +29 -0
- package/dist/icons/components/OutlineSystemTrash.js +29 -0
- package/dist/icons/components/OutlineSystemTune.js +29 -0
- package/dist/icons/components/OutlineSystemUnlock.js +29 -0
- package/dist/icons/components/OutlineSystemUpload.js +29 -0
- package/dist/icons/components/OutlineSystemUploadCloud.js +29 -0
- package/dist/icons/components/OutlineSystemUser.js +29 -0
- package/dist/icons/components/OutlineSystemUserAdd.js +29 -0
- package/dist/icons/components/OutlineSystemUsers.js +29 -0
- package/dist/icons/components/OutlineSystemWifiOff.js +50 -0
- package/dist/icons/components/SolidNavigationArrowDown.js +29 -0
- package/dist/icons/components/SolidNavigationArrowLeft.js +29 -0
- package/dist/icons/components/SolidNavigationArrowRight.js +29 -0
- package/dist/icons/components/SolidNavigationArrowUp.js +29 -0
- package/dist/icons/components/SolidNavigationDoubleLeft.js +40 -0
- package/dist/icons/components/SolidNavigationDoubleRight.js +40 -0
- package/dist/icons/components/SolidNavigationLeftPrev.js +29 -0
- package/dist/icons/components/SolidNavigationRightNext.js +29 -0
- package/dist/icons/components/SolidNavigationSelectOpenDown.js +29 -0
- package/dist/icons/components/SolidNavigationSelectTop.js +29 -0
- package/dist/icons/components/SolidSystemAdd.js +29 -0
- package/dist/icons/components/SolidSystemAdd2.js +29 -0
- package/dist/icons/components/SolidSystemAlertCircle.js +29 -0
- package/dist/icons/components/SolidSystemBell.js +29 -0
- package/dist/icons/components/SolidSystemBellOff.js +29 -0
- package/dist/icons/components/SolidSystemBill.js +29 -0
- package/dist/icons/components/SolidSystemCalendar.js +29 -0
- package/dist/icons/components/SolidSystemCamera.js +29 -0
- package/dist/icons/components/SolidSystemChat.js +29 -0
- package/dist/icons/components/SolidSystemCheck.js +29 -0
- package/dist/icons/components/SolidSystemCheckCircle.js +29 -0
- package/dist/icons/components/SolidSystemClock.js +29 -0
- package/dist/icons/components/SolidSystemClose.js +29 -0
- package/dist/icons/components/SolidSystemCopy.js +40 -0
- package/dist/icons/components/SolidSystemDoc.js +29 -0
- package/dist/icons/components/SolidSystemDocEmpty.js +29 -0
- package/dist/icons/components/SolidSystemDownload.js +29 -0
- package/dist/icons/components/SolidSystemEdit.js +29 -0
- package/dist/icons/components/SolidSystemEditAlt.js +47 -0
- package/dist/icons/components/SolidSystemExclamation.js +29 -0
- package/dist/icons/components/SolidSystemExpand.js +40 -0
- package/dist/icons/components/SolidSystemEyeOff.js +29 -0
- package/dist/icons/components/SolidSystemEyeOffAlt.js +40 -0
- package/dist/icons/components/SolidSystemEyeOn.js +29 -0
- package/dist/icons/components/SolidSystemFileAccept.js +29 -0
- package/dist/icons/components/SolidSystemFolder.js +27 -0
- package/dist/icons/components/SolidSystemGridView.js +29 -0
- package/dist/icons/components/SolidSystemHeadphones.js +29 -0
- package/dist/icons/components/SolidSystemHeart.js +29 -0
- package/dist/icons/components/SolidSystemHelpCircle.js +29 -0
- package/dist/icons/components/SolidSystemHex.js +58 -0
- package/dist/icons/components/SolidSystemHome.js +29 -0
- package/dist/icons/components/SolidSystemInfo.js +29 -0
- package/dist/icons/components/SolidSystemLanguage.js +29 -0
- package/dist/icons/components/SolidSystemLink.js +36 -0
- package/dist/icons/components/SolidSystemLink2.js +40 -0
- package/dist/icons/components/SolidSystemListView.js +76 -0
- package/dist/icons/components/SolidSystemLock.js +40 -0
- package/dist/icons/components/SolidSystemMail.js +29 -0
- package/dist/icons/components/SolidSystemMapPin.js +29 -0
- package/dist/icons/components/SolidSystemMenu.js +49 -0
- package/dist/icons/components/SolidSystemMoon.js +29 -0
- package/dist/icons/components/SolidSystemMoreHorizontal.js +29 -0
- package/dist/icons/components/SolidSystemMoreVertical.js +29 -0
- package/dist/icons/components/SolidSystemMove.js +40 -0
- package/dist/icons/components/SolidSystemPaperclip.js +29 -0
- package/dist/icons/components/SolidSystemPrinter.js +56 -0
- package/dist/icons/components/SolidSystemRefresh.js +29 -0
- package/dist/icons/components/SolidSystemRefresh2.js +58 -0
- package/dist/icons/components/SolidSystemRemove.js +29 -0
- package/dist/icons/components/SolidSystemRemoveCircle.js +29 -0
- package/dist/icons/components/SolidSystemRightNext.js +58 -0
- package/dist/icons/components/SolidSystemSearch.js +29 -0
- package/dist/icons/components/SolidSystemSend.js +40 -0
- package/dist/icons/components/SolidSystemSettings.js +29 -0
- package/dist/icons/components/SolidSystemSidebar.js +29 -0
- package/dist/icons/components/SolidSystemSlash.js +40 -0
- package/dist/icons/components/SolidSystemSmartphone.js +29 -0
- package/dist/icons/components/SolidSystemStar.js +29 -0
- package/dist/icons/components/SolidSystemSun.js +103 -0
- package/dist/icons/components/SolidSystemTickDouble.js +40 -0
- package/dist/icons/components/SolidSystemTrash.js +40 -0
- package/dist/icons/components/SolidSystemTune.js +29 -0
- package/dist/icons/components/SolidSystemUnlock.js +40 -0
- package/dist/icons/components/SolidSystemUpload.js +29 -0
- package/dist/icons/components/SolidSystemUploadCloud.js +40 -0
- package/dist/icons/components/SolidSystemUser.js +58 -0
- package/dist/icons/components/SolidSystemUserFilled.js +40 -0
- package/dist/icons/components/SolidSystemUsers.js +45 -0
- package/dist/icons/components/SolidSystemWifiOff.js +50 -0
- package/dist/icons/components/countries-flags/AeFlag.js +87 -0
- package/dist/icons/components/countries-flags/RuFlag.js +78 -0
- package/dist/icons/components/countries-flags/TjFlag.js +50 -0
- package/dist/icons/components/countries-flags/UsFlag.js +117 -0
- package/dist/icons/components/countries-flags/UzFlag.js +85 -0
- package/dist/main.d.ts +3885 -0
- package/dist/main.js +656 -0
- package/dist/providers/AlifProvider/AlifProvider.consts.js +5 -0
- package/dist/providers/AlifProvider/AlifProvider.context.js +6 -0
- package/dist/providers/AlifProvider/AlifProvider.js +31 -0
- package/dist/providers/AlifProvider/AlifProvider.types.js +1 -0
- package/dist/providers/Localization/localization.js +48 -0
- package/dist/providers/Localization/useTranslation/useTranslation.js +12 -0
- package/dist/providers/hooks/useLocale/useLocale.js +11 -0
- package/dist/providers/hooks/useMode/useMode.js +8 -0
- package/dist/types/css-modules.d.js +1 -0
- package/dist/types/global.js +1 -0
- package/dist/types/icon.js +1 -0
- package/dist/utils/class-names.js +4 -0
- package/dist/utils/close-escape.js +6 -0
- package/dist/utils/create-safe-context/create-safe-context.js +17 -0
- package/dist/utils/create-safe-context/create-safe-context.utils.js +11 -0
- package/dist/utils/get-default-z-index.js +12 -0
- package/dist/utils/get-size.js +24 -0
- package/dist/utils/typography.js +201 -0
- package/dist/utils/validate-icon-button-props.js +8 -0
- package/package.json +86 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx as r, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N } from "react";
|
|
3
|
+
import e from "./Snackbar.module.css.js";
|
|
4
|
+
import { getSnackbarStyles as g, getSnackbarIconStyles as v } from "./Snackbar.utils.js";
|
|
5
|
+
import { Typography as p } from "../Typography/Typography.js";
|
|
6
|
+
import { FunctionButton as w } from "../FunctionButton/FunctionButton.js";
|
|
7
|
+
import { SnackbarTimer as x } from "./SnackbarTimer/SnackbarTimer.js";
|
|
8
|
+
import { SolidSystemExclamation as E } from "../../icons/components/SolidSystemExclamation.js";
|
|
9
|
+
import { SolidSystemRemoveCircle as T } from "../../icons/components/SolidSystemRemoveCircle.js";
|
|
10
|
+
import { classNames as I } from "../../utils/class-names.js";
|
|
11
|
+
import { OutlineSystemClose as B } from "../../icons/components/OutlineSystemClose.js";
|
|
12
|
+
import { SolidSystemInfo as j } from "../../icons/components/SolidSystemInfo.js";
|
|
13
|
+
import { SolidSystemCheckCircle as A } from "../../icons/components/SolidSystemCheckCircle.js";
|
|
14
|
+
const O = {
|
|
15
|
+
success: /* @__PURE__ */ r(A, {}),
|
|
16
|
+
error: /* @__PURE__ */ r(T, {}),
|
|
17
|
+
warning: /* @__PURE__ */ r(E, {}),
|
|
18
|
+
info: /* @__PURE__ */ r(j, {})
|
|
19
|
+
}, R = { show: () => {
|
|
20
|
+
} }, M = ({
|
|
21
|
+
position: i = "top-right"
|
|
22
|
+
}) => {
|
|
23
|
+
const [b, m] = N([]), l = (t) => {
|
|
24
|
+
const s = document.getElementById(`snackbar-${t}`);
|
|
25
|
+
s && (s.classList.add(e.snackbarExit), setTimeout(() => {
|
|
26
|
+
m((a) => a.filter((o) => o.id !== t));
|
|
27
|
+
}, 100));
|
|
28
|
+
}, k = ({
|
|
29
|
+
duration: t = 3e3,
|
|
30
|
+
autoHide: s = !0,
|
|
31
|
+
...a
|
|
32
|
+
}) => {
|
|
33
|
+
const o = {
|
|
34
|
+
id: Date.now(),
|
|
35
|
+
...a,
|
|
36
|
+
duration: t
|
|
37
|
+
};
|
|
38
|
+
m(
|
|
39
|
+
(n) => i.includes("top") ? [o, ...n] : [...n, o]
|
|
40
|
+
), s && setTimeout(() => l(o.id), t);
|
|
41
|
+
};
|
|
42
|
+
return R.show = k, /* @__PURE__ */ r("div", { className: e.root, style: g(i), children: b.map(
|
|
43
|
+
({
|
|
44
|
+
id: t,
|
|
45
|
+
title: s,
|
|
46
|
+
subtitle: a,
|
|
47
|
+
withCloseButton: o,
|
|
48
|
+
withTimer: n,
|
|
49
|
+
leftSlot: y,
|
|
50
|
+
rightSlot: S,
|
|
51
|
+
type: c,
|
|
52
|
+
actions: h,
|
|
53
|
+
className: u,
|
|
54
|
+
duration: C
|
|
55
|
+
}) => {
|
|
56
|
+
const d = c ? O[c] : n ? /* @__PURE__ */ r(x, { duration: C }) : y;
|
|
57
|
+
return /* @__PURE__ */ f(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
style: v(c),
|
|
61
|
+
id: `snackbar-${t}`,
|
|
62
|
+
className: I(e.snackbar, u),
|
|
63
|
+
children: [
|
|
64
|
+
d && /* @__PURE__ */ r("div", { className: e.leftSlot, children: d }),
|
|
65
|
+
/* @__PURE__ */ f("div", { className: e.titles, children: [
|
|
66
|
+
/* @__PURE__ */ r(
|
|
67
|
+
p,
|
|
68
|
+
{
|
|
69
|
+
className: e.title,
|
|
70
|
+
category: "body",
|
|
71
|
+
proportions: "mStrong",
|
|
72
|
+
children: s
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
a && /* @__PURE__ */ r(
|
|
76
|
+
p,
|
|
77
|
+
{
|
|
78
|
+
className: e.subtitle,
|
|
79
|
+
category: "body",
|
|
80
|
+
proportions: "xs",
|
|
81
|
+
children: a
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
h
|
|
85
|
+
] }),
|
|
86
|
+
S,
|
|
87
|
+
o && !S && /* @__PURE__ */ r(
|
|
88
|
+
w,
|
|
89
|
+
{
|
|
90
|
+
variant: "tertiary",
|
|
91
|
+
onClick: () => l(t),
|
|
92
|
+
children: /* @__PURE__ */ r(B, {})
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
t
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
) });
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
M as SnackbarContainer,
|
|
104
|
+
R as snackbar
|
|
105
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "_root_uwrfh_1", s = "_snackbar_uwrfh_36", _ = "_leftSlot_uwrfh_51", o = "_snackbarExit_uwrfh_61", l = "_titles_uwrfh_65", r = "_title_uwrfh_65", e = "_subtitle_uwrfh_77", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
snackbar: s,
|
|
4
|
+
leftSlot: _,
|
|
5
|
+
snackbarExit: o,
|
|
6
|
+
titles: l,
|
|
7
|
+
title: r,
|
|
8
|
+
subtitle: e
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as default,
|
|
12
|
+
_ as leftSlot,
|
|
13
|
+
t as root,
|
|
14
|
+
s as snackbar,
|
|
15
|
+
o as snackbarExit,
|
|
16
|
+
e as subtitle,
|
|
17
|
+
r as title,
|
|
18
|
+
l as titles
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const n = (a) => ({
|
|
2
|
+
"--snackbar-icon-color": a ? `var(--snackbar-icon-color-${a})` : "var(--snackbar-icon-color-default)"
|
|
3
|
+
}), r = (a) => {
|
|
4
|
+
const t = {
|
|
5
|
+
top: "",
|
|
6
|
+
bottom: "",
|
|
7
|
+
right: "",
|
|
8
|
+
left: "",
|
|
9
|
+
transform: "",
|
|
10
|
+
animationTransform: "",
|
|
11
|
+
alignItems: ""
|
|
12
|
+
};
|
|
13
|
+
switch (a) {
|
|
14
|
+
case "top-right": {
|
|
15
|
+
t.top = "0", t.right = "0", t.transform = "translateX(0)", t.animationTransform = "translateX(50px)", t.alignItems = "end";
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
case "top-center": {
|
|
19
|
+
t.top = "0", t.left = "50%", t.transform = "translateX(-50%)", t.animationTransform = "translateY(-50px)", t.alignItems = "center";
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
case "top-left": {
|
|
23
|
+
t.top = "0", t.left = "0", t.transform = "translateX(0)", t.animationTransform = "translateX(-50px)", t.alignItems = "start";
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
case "bottom-left": {
|
|
27
|
+
t.bottom = "0", t.left = "0", t.transform = "translateX(0)", t.animationTransform = "translateX(-50px)", t.alignItems = "start";
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
case "bottom-center": {
|
|
31
|
+
t.bottom = "0", t.left = "50%", t.transform = "translateX(-50%)", t.animationTransform = "translateY(50px)", t.alignItems = "center";
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
case "bottom-right": {
|
|
35
|
+
t.bottom = "0", t.right = "0", t.transform = "translateX(0)", t.animationTransform = "translateX(50px)", t.alignItems = "end";
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
"--snackbar-position-top": t.top,
|
|
41
|
+
"--snackbar-position-bottom": t.bottom,
|
|
42
|
+
"--snackbar-position-left": t.left,
|
|
43
|
+
"--snackbar-position-right": t.right,
|
|
44
|
+
"--snackbar-position-transform": t.transform,
|
|
45
|
+
"--snackbar-position-animation-transform": t.animationTransform,
|
|
46
|
+
"--snackbar-align-items": t.alignItems
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
n as getSnackbarIconStyles,
|
|
51
|
+
r as getSnackbarStyles
|
|
52
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as a } from "react";
|
|
3
|
+
import s from "./SnackbarTimer.module.css.js";
|
|
4
|
+
import { Typography as d } from "../../Typography/Typography.js";
|
|
5
|
+
const m = 50, o = 2 * Math.PI * m, T = ({ duration: n = 3e3 }) => {
|
|
6
|
+
const i = n / 1e3, [e, c] = p(i), h = e / i * o - o;
|
|
7
|
+
return a(() => c((t) => Math.max(t - 0.4, 0)), []), a(() => {
|
|
8
|
+
if (e <= 0) return;
|
|
9
|
+
const t = setTimeout(() => {
|
|
10
|
+
c((f) => Math.max(f - 1, 0));
|
|
11
|
+
}, 1e3);
|
|
12
|
+
return () => clearTimeout(t);
|
|
13
|
+
}, [e]), /* @__PURE__ */ l("div", { className: s.timerContainer, children: [
|
|
14
|
+
/* @__PURE__ */ r("svg", { width: "120", height: "120", viewBox: "0 0 120 120", children: /* @__PURE__ */ r(
|
|
15
|
+
"circle",
|
|
16
|
+
{
|
|
17
|
+
className: s.progressCircle,
|
|
18
|
+
cx: "60",
|
|
19
|
+
cy: "60",
|
|
20
|
+
r: m,
|
|
21
|
+
strokeWidth: "10",
|
|
22
|
+
strokeDasharray: o,
|
|
23
|
+
strokeDashoffset: h
|
|
24
|
+
}
|
|
25
|
+
) }),
|
|
26
|
+
/* @__PURE__ */ r(d, { className: s.timeText, category: "body", proportions: "m", children: Math.ceil(e) })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
T as SnackbarTimer
|
|
31
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import s from "./Switch.module.css.js";
|
|
3
|
+
import { getSwitchStyles as n } from "./Switch.utils.js";
|
|
4
|
+
import { classNames as m } from "../../utils/class-names.js";
|
|
5
|
+
const x = ({
|
|
6
|
+
className: a,
|
|
7
|
+
label: t,
|
|
8
|
+
description: i,
|
|
9
|
+
size: r = "m",
|
|
10
|
+
...c
|
|
11
|
+
}) => /* @__PURE__ */ e(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: m(s.root, a),
|
|
15
|
+
style: n(r),
|
|
16
|
+
children: /* @__PURE__ */ l("label", { tabIndex: 0, role: "input", children: [
|
|
17
|
+
/* @__PURE__ */ e("input", { hidden: !0, tabIndex: -1, type: "checkbox", ...c }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: s.inputContainer, children: /* @__PURE__ */ e("div", { className: s.ellipse }) }),
|
|
19
|
+
/* @__PURE__ */ l("div", { className: s.text, children: [
|
|
20
|
+
t && /* @__PURE__ */ e("span", { className: s.label, children: t }),
|
|
21
|
+
i && /* @__PURE__ */ e("span", { className: s.description, children: i })
|
|
22
|
+
] })
|
|
23
|
+
] })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
x as Switch
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const t = "_root_1o3nv_1", o = "_inputContainer_1o3nv_55", n = "_ellipse_1o3nv_85", e = "_text_1o3nv_101", _ = "_label_1o3nv_108", s = "_description_1o3nv_117", i = {
|
|
2
|
+
root: t,
|
|
3
|
+
inputContainer: o,
|
|
4
|
+
ellipse: n,
|
|
5
|
+
text: e,
|
|
6
|
+
label: _,
|
|
7
|
+
description: s
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
i as default,
|
|
11
|
+
s as description,
|
|
12
|
+
n as ellipse,
|
|
13
|
+
o as inputContainer,
|
|
14
|
+
_ as label,
|
|
15
|
+
t as root,
|
|
16
|
+
e as text
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getSize as e } from "../../utils/get-size.js";
|
|
2
|
+
import { resolveTypography as s } from "../../utils/typography.js";
|
|
3
|
+
const h = (t) => {
|
|
4
|
+
switch (t) {
|
|
5
|
+
case "m":
|
|
6
|
+
return s("body", "m");
|
|
7
|
+
case "s":
|
|
8
|
+
return s("body", "s");
|
|
9
|
+
}
|
|
10
|
+
}, l = (t) => {
|
|
11
|
+
switch (t) {
|
|
12
|
+
case "m":
|
|
13
|
+
return s("description", "l");
|
|
14
|
+
case "s":
|
|
15
|
+
return s("description", "m");
|
|
16
|
+
}
|
|
17
|
+
}, w = (t) => {
|
|
18
|
+
const i = h(t), c = l(t);
|
|
19
|
+
return {
|
|
20
|
+
"--switch-border-radius": e(t, "switch-border-radius"),
|
|
21
|
+
"--switch-width-track": e(t, "switch-width-track"),
|
|
22
|
+
"--switch-height-track": e(t, "switch-height-track"),
|
|
23
|
+
"--switch-border-width": e(t, "switch-border-width"),
|
|
24
|
+
"--switch-spacing-between": e(t, "switch-spacing-between"),
|
|
25
|
+
"--switch-height-bullet": e(t, "switch-height-bullet"),
|
|
26
|
+
"--switch-label-font-family": i.fontFamily,
|
|
27
|
+
"--switch-label-font-weight": i.fontWeight,
|
|
28
|
+
"--switch-label-font-size": i.fontSize,
|
|
29
|
+
"--switch-label-line-height": i.lineHeight,
|
|
30
|
+
"--switch-label-letter-spacing": i.letterSpacing,
|
|
31
|
+
"--switch-description-font-family": c.fontFamily,
|
|
32
|
+
"--switch-description-font-weight": c.fontWeight,
|
|
33
|
+
"--switch-description-font-size": c.fontSize,
|
|
34
|
+
"--switch-description-line-height": c.lineHeight,
|
|
35
|
+
"--switch-description-letter-spacing": c.letterSpacing
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
w as getSwitchStyles
|
|
40
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useId as y } from "react";
|
|
3
|
+
import e from "./Tab.module.css.js";
|
|
4
|
+
import { getTabStyles as u } from "./Tab.utils.js";
|
|
5
|
+
import { classNames as T } from "../../utils/class-names.js";
|
|
6
|
+
const I = ({
|
|
7
|
+
className: i,
|
|
8
|
+
value: l,
|
|
9
|
+
onChange: m,
|
|
10
|
+
label: n,
|
|
11
|
+
leftIcon: c,
|
|
12
|
+
rightIcon: p,
|
|
13
|
+
counter: r,
|
|
14
|
+
variant: t = "primary",
|
|
15
|
+
size: h = "m",
|
|
16
|
+
rounded: d = !1,
|
|
17
|
+
isAlert: f = !1,
|
|
18
|
+
selectionType: g = "single",
|
|
19
|
+
withBackground: x = !1,
|
|
20
|
+
...N
|
|
21
|
+
}) => {
|
|
22
|
+
const o = y(), b = g === "single" ? "radio" : "checkbox";
|
|
23
|
+
return /* @__PURE__ */ a(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: T(
|
|
27
|
+
e.root,
|
|
28
|
+
t === "text" && e.text,
|
|
29
|
+
i
|
|
30
|
+
),
|
|
31
|
+
style: u(t, h, d, x),
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ s(
|
|
34
|
+
"input",
|
|
35
|
+
{
|
|
36
|
+
hidden: !0,
|
|
37
|
+
id: o,
|
|
38
|
+
type: b,
|
|
39
|
+
className: e.tab,
|
|
40
|
+
value: l,
|
|
41
|
+
onChange: () => m?.(String(l)),
|
|
42
|
+
...N
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ a("label", { htmlFor: o, children: [
|
|
46
|
+
c,
|
|
47
|
+
/* @__PURE__ */ a("span", { className: e.labelContainer, children: [
|
|
48
|
+
n,
|
|
49
|
+
r && /* @__PURE__ */ s("span", { className: e.counter, children: r }),
|
|
50
|
+
f && /* @__PURE__ */ s("span", { className: e.alert })
|
|
51
|
+
] }),
|
|
52
|
+
p
|
|
53
|
+
] }),
|
|
54
|
+
t === "text" && /* @__PURE__ */ s("span", { className: e.highlight })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
I as Tab
|
|
61
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "_root_10br5_1", o = "_labelContainer_10br5_206", _ = "_text_10br5_214", r = "_tab_10br5_225", e = "_alert_10br5_277", n = "_counter_10br5_284", a = "_highlight_10br5_315", l = {
|
|
2
|
+
root: t,
|
|
3
|
+
labelContainer: o,
|
|
4
|
+
text: _,
|
|
5
|
+
tab: r,
|
|
6
|
+
alert: e,
|
|
7
|
+
counter: n,
|
|
8
|
+
highlight: a
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
e as alert,
|
|
12
|
+
n as counter,
|
|
13
|
+
l as default,
|
|
14
|
+
a as highlight,
|
|
15
|
+
o as labelContainer,
|
|
16
|
+
t as root,
|
|
17
|
+
r as tab,
|
|
18
|
+
_ as text
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { resolveTypography as l } from "../../utils/typography.js";
|
|
2
|
+
import { getSize as r } from "../../utils/get-size.js";
|
|
3
|
+
const g = (e, t) => ({
|
|
4
|
+
background: `var(--tab-bg-color-${e}-default${t ? "-bg" : ""})`,
|
|
5
|
+
backgroundHover: `var(--tab-bg-color-${e}-hover)`,
|
|
6
|
+
backgroundDisabled: `var(--tab-bg-color-${e}-disabled)`,
|
|
7
|
+
backgroundSelected: `var(--tab-bg-color-${e}-active)`,
|
|
8
|
+
backgroundSelectedHover: `var(--tab-bg-color-${e}-active-hover)`,
|
|
9
|
+
backgroundDisabledSelected: `var(--tab-bg-color-${e}-disabled-active)`,
|
|
10
|
+
color: `var(--tab-label-color-${e}-default${t ? "-bg" : ""})`,
|
|
11
|
+
colorHover: `var(--tab-label-color-${e}-hover)`,
|
|
12
|
+
colorDisabled: `var(--tab-label-color-${e}-disabled)`,
|
|
13
|
+
colorSelected: `var(--tab-label-color-${e}-active)`,
|
|
14
|
+
colorSelectedHover: `var(--tab-label-color-${e}-active-hover)`,
|
|
15
|
+
colorDisabledSelected: `var(--tab-label-color-${e}-disabled-active)`,
|
|
16
|
+
iconColor: `var(--tab-icon-color-${e}-default${t ? "-bg" : ""})`,
|
|
17
|
+
iconColorHover: `var(--tab-icon-color-${e}-hover)`,
|
|
18
|
+
iconColorSelected: `var(--tab-icon-color-${e}-active)`,
|
|
19
|
+
iconColorSelectedHover: `var(--tab-icon-color-${e}-active-hover)`,
|
|
20
|
+
iconColorDisabled: `var(--tab-icon-color-${e}-disabled)`,
|
|
21
|
+
iconColorDisabledSelected: `var(--tab-icon-color-${e}-disabled-active)`,
|
|
22
|
+
borderColor: `var(--tab-border-color-${e}-default)`,
|
|
23
|
+
borderColorHover: `var(--tab-border-color-${e}-hover)`,
|
|
24
|
+
borderColorSelected: `var(--tab-border-color-${e}-active)`,
|
|
25
|
+
borderColorDisabled: `var(--tab-border-color-${e}-disabled)`,
|
|
26
|
+
borderColorDisabledSelected: `var(--tab-border-color-${e}-disabled-active)`,
|
|
27
|
+
borderColorSelectedHover: `var(--tab-border-color-${e}-active-hover)`,
|
|
28
|
+
counterColor: `var( --tab-counter-label-color-${e}-default${t ? "-bg" : ""})`,
|
|
29
|
+
counterColorHover: `var(--tab-counter-label-color-${e}-hover)`,
|
|
30
|
+
counterColorActive: `var(--tab-counter-label-color-${e}-active)`,
|
|
31
|
+
counterColorActiveHover: `var(--tab-counter-label-color-${e}-active-hover)`,
|
|
32
|
+
counterColorDisabled: `var(--tab-counter-label-color-${e}-disabled)`,
|
|
33
|
+
counterColorDisabledActive: `var(--tab-counter-label-color-${e}-disabled-active)`
|
|
34
|
+
}), s = (e) => ({
|
|
35
|
+
height: r(e, "tab-height"),
|
|
36
|
+
borderWidth: r(e, "tab-border-width"),
|
|
37
|
+
iconWidth: r(e, "tab-icon-width"),
|
|
38
|
+
iconHeight: r(e, "tab-icon-height"),
|
|
39
|
+
paddingX: r(e, "tab-spacing-horizontal"),
|
|
40
|
+
paddingY: r(e, "tab-spacing-vertical"),
|
|
41
|
+
counterSpacingBottom: r(e, "tab-counter-spacing-bottom"),
|
|
42
|
+
highlightHeight: r(e, "tab-highlight-height"),
|
|
43
|
+
labelSize: r(e, "tab-label-size"),
|
|
44
|
+
fontWeight: r(e, "tab-font-weight"),
|
|
45
|
+
spacingBetween: r(e, "tab-spacing-between"),
|
|
46
|
+
spacingBetweenText: `var(--tab-spacing-between-${e}-text)`,
|
|
47
|
+
labelContainerPaddingX: r(
|
|
48
|
+
e,
|
|
49
|
+
"tab-label-spacing-container-horizontal"
|
|
50
|
+
),
|
|
51
|
+
labelContainerSpacingBetween: r(
|
|
52
|
+
e,
|
|
53
|
+
"tab-label-spacing-container-between"
|
|
54
|
+
)
|
|
55
|
+
}), h = (e, t) => {
|
|
56
|
+
switch (e) {
|
|
57
|
+
case "s":
|
|
58
|
+
return t === "text" ? l("body", "s") : l("body", "xs");
|
|
59
|
+
case "m":
|
|
60
|
+
return t === "text" ? l("body", "m") : l("body", "s");
|
|
61
|
+
case "l":
|
|
62
|
+
return t === "text" ? l("heading", "h3") : l("body", "m");
|
|
63
|
+
}
|
|
64
|
+
}, C = (e, t, a, d) => {
|
|
65
|
+
const i = g(e, d), n = s(t), b = h(t, e), c = l("description", "m"), o = { ...i, ...n };
|
|
66
|
+
return {
|
|
67
|
+
"--tab-bg-color": o.background,
|
|
68
|
+
"--tab-bg-color-hover": o.backgroundHover,
|
|
69
|
+
"--tab-bg-color-selected": o.backgroundSelected,
|
|
70
|
+
"--tab-bg-color-selected-hover": o.backgroundSelectedHover,
|
|
71
|
+
"--tab-bg-color-disabled": o.backgroundDisabled,
|
|
72
|
+
"--tab-bg-color-disabled-selected": o.backgroundDisabledSelected,
|
|
73
|
+
"--tab-border-color": o.borderColor,
|
|
74
|
+
"--tab-border-color-hover": o.borderColorHover,
|
|
75
|
+
"--tab-border-color-selected": o.borderColorSelected,
|
|
76
|
+
"--tab-border-color-selected-hover": o.borderColorSelectedHover,
|
|
77
|
+
"--tab-border-color-disabled": o.borderColorDisabled,
|
|
78
|
+
"--tab-border-color-disabled-selected": o.borderColorDisabledSelected,
|
|
79
|
+
"--tab-border-style": e === "outline" ? "solid" : "none",
|
|
80
|
+
"--tab-border-width": e === "outline" ? o.borderWidth : "",
|
|
81
|
+
"--tab-label-color": o.color,
|
|
82
|
+
"--tab-label-color-hover": o.colorHover,
|
|
83
|
+
"--tab-label-color-selected": o.colorSelected,
|
|
84
|
+
"--tab-label-color-selected-hover": o.colorSelectedHover,
|
|
85
|
+
"--tab-label-color-disabled": o.colorDisabled,
|
|
86
|
+
"--tab-label-color-disabled-selected": o.colorDisabledSelected,
|
|
87
|
+
"--tab-border-radius": r(
|
|
88
|
+
`${t}${a ? "-rounded" : ""}`,
|
|
89
|
+
"tab-border-radius"
|
|
90
|
+
),
|
|
91
|
+
"--tab-height": o.height,
|
|
92
|
+
"--tab-icon-color": o.iconColor,
|
|
93
|
+
"--tab-icon-color-hover": o.iconColorHover,
|
|
94
|
+
"--tab-icon-color-selected": o.iconColorSelected,
|
|
95
|
+
"--tab-icon-color-selected-hover": o.iconColorSelectedHover,
|
|
96
|
+
"--tab-icon-color-disabled": o.iconColorDisabled,
|
|
97
|
+
"--tab-icon-color-disabled-selected": o.iconColorDisabledSelected,
|
|
98
|
+
"--tab-icon-width": o.iconWidth,
|
|
99
|
+
"--tab-icon-height": o.iconHeight,
|
|
100
|
+
"--tab-padding-x": o.paddingX,
|
|
101
|
+
"--tab-padding-y": o.paddingY,
|
|
102
|
+
"--tab-counter-color": o.counterColor,
|
|
103
|
+
"--tab-counter-color-hover": o.counterColorHover,
|
|
104
|
+
"--tab-counter-color-active": o.counterColorActive,
|
|
105
|
+
"--tab-counter-color-active-hover": o.counterColorActiveHover,
|
|
106
|
+
"--tab-counter-color-disabled": o.counterColorDisabled,
|
|
107
|
+
"--tab-counter-color-disabled-active": o.counterColorDisabledActive,
|
|
108
|
+
"--tab-counter-spacing-bottom": o.counterSpacingBottom,
|
|
109
|
+
"--tab-highlight-height": o.highlightHeight,
|
|
110
|
+
"--tab-font-family": b.fontFamily,
|
|
111
|
+
"--tab-font-weight": b.fontWeight,
|
|
112
|
+
"--tab-font-size": b.fontSize,
|
|
113
|
+
"--tab-line-height": b.lineHeight,
|
|
114
|
+
"--tab-letter-spacing": b.letterSpacing,
|
|
115
|
+
"--tab-badge-font-family": c.fontFamily,
|
|
116
|
+
"--tab-badge-font-weight": c.fontWeight,
|
|
117
|
+
"--tab-badge-font-size": c.fontSize,
|
|
118
|
+
"--tab-badge-line-height": c.lineHeight,
|
|
119
|
+
"--tab-badge-letter-spacing": c.letterSpacing,
|
|
120
|
+
"--tab-spacing-between-text": o.spacingBetweenText,
|
|
121
|
+
"--tab-spacing-between": o.spacingBetween,
|
|
122
|
+
"--tab-label-spacing-container-between": o.labelContainerSpacingBetween,
|
|
123
|
+
"--tab-label-spacing-container-horizontal": o.labelContainerPaddingX
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
C as getTabStyles
|
|
128
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Children as V, isValidElement as j } from "react";
|
|
3
|
+
import t from "./TabGroup.module.css.js";
|
|
4
|
+
import { Tab as m } from "../Tab.js";
|
|
5
|
+
import { classNames as G } from "../../../utils/class-names.js";
|
|
6
|
+
const O = ({
|
|
7
|
+
className: f,
|
|
8
|
+
value: a,
|
|
9
|
+
defaultValue: u,
|
|
10
|
+
onChange: o,
|
|
11
|
+
fullWidth: c,
|
|
12
|
+
children: d,
|
|
13
|
+
selectionType: p = "single",
|
|
14
|
+
disabled: g = !1,
|
|
15
|
+
variant: n = "primary",
|
|
16
|
+
rounded: y = !1,
|
|
17
|
+
size: b = "m",
|
|
18
|
+
justify: x = "flex-start",
|
|
19
|
+
spacing: A = "var(--spacing-2x)"
|
|
20
|
+
}) => {
|
|
21
|
+
const C = G(
|
|
22
|
+
t.root,
|
|
23
|
+
f,
|
|
24
|
+
n === "text" && t.highlight,
|
|
25
|
+
c && t.fullWidth
|
|
26
|
+
), h = p === "single", r = a || u, T = (s) => {
|
|
27
|
+
if (h) {
|
|
28
|
+
s !== r && o(s);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const e = Array.isArray(a) ? [...a] : [], i = e.indexOf(s);
|
|
32
|
+
i >= 0 ? e.splice(i, 1) : e.push(s), o(e);
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ l(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: C,
|
|
38
|
+
style: { justifyContent: x, gap: A },
|
|
39
|
+
children: V.map(
|
|
40
|
+
d,
|
|
41
|
+
(s) => j(s) && s.type === m ? /* @__PURE__ */ l(
|
|
42
|
+
m,
|
|
43
|
+
{
|
|
44
|
+
rounded: y,
|
|
45
|
+
size: b,
|
|
46
|
+
variant: n || s.props.variant,
|
|
47
|
+
checked: Array.isArray(r) ? r.includes(s.props.value) : r === s.props.value,
|
|
48
|
+
onChange: T,
|
|
49
|
+
disabled: g || s.props.disabled,
|
|
50
|
+
selectionType: p,
|
|
51
|
+
...s.props
|
|
52
|
+
},
|
|
53
|
+
s.props.value
|
|
54
|
+
) : null
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
O as TabGroup
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { SegmentedControl as o } from "../../SegmentedControl/SegmentedControl.js";
|
|
3
|
+
import { TabMenuNew as t } from "../../TabMenuNew/TabMenuNew.js";
|
|
4
|
+
function f({ variant: e = "primary", ...r }) {
|
|
5
|
+
return e !== "text" ? (process.env.NODE_ENV === "development" && console.warn(
|
|
6
|
+
`[TabMenu] variant="${e}" is deprecated. Use <SegmentedControl variant="${e}" /> instead.`
|
|
7
|
+
), /* @__PURE__ */ n(o, { variant: e, ...r })) : /* @__PURE__ */ n(t, { ...r });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
f as TabMenu
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getSize as t } from "../../../utils/get-size.js";
|
|
2
|
+
const d = (e, a) => ({
|
|
3
|
+
"--tab-menu-border-radius": t(
|
|
4
|
+
`${e}${a ? "-rounded" : ""}`,
|
|
5
|
+
"tab-menu-border-radius"
|
|
6
|
+
),
|
|
7
|
+
"--tab-menu-padding-x": t(e, "tab-menu-spacing-horizontal"),
|
|
8
|
+
"--tab-menu-padding-y": t(e, "tab-menu-spacing-vertical"),
|
|
9
|
+
"--tab-menu-divider-height": t(e, "tab-menu-divider-height")
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
d as getTabMenuStyles
|
|
13
|
+
};
|