@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,182 @@
|
|
|
1
|
+
import { jsxs as L, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as k, useState as y, useId as ie, useMemo as V, useEffect as ce } from "react";
|
|
3
|
+
import r from "./SelectMultiple.module.css.js";
|
|
4
|
+
import { InputBaseWrapper as ae } from "../Field/InputBaseWrapper/InputBaseWrapper.js";
|
|
5
|
+
import { InputBase as ue } from "../Field/InputBase/InputBase.js";
|
|
6
|
+
import { isObjectValue as fe } from "../Select/Select.utils.js";
|
|
7
|
+
import { Popover as M } from "../Popover/Popover.js";
|
|
8
|
+
import { Tag as me } from "../Tag/Tag.js";
|
|
9
|
+
import { Hinter as pe } from "../Hinter/Hinter.js";
|
|
10
|
+
import { ListItem as de } from "../ListItem/ListItem.js";
|
|
11
|
+
import { classNames as p } from "../../utils/class-names.js";
|
|
12
|
+
import { OutlineNavigationChevronDownSmall as he } from "../../icons/components/OutlineNavigationChevronDownSmall.js";
|
|
13
|
+
const je = ({
|
|
14
|
+
onChange: d,
|
|
15
|
+
values: t,
|
|
16
|
+
label: W,
|
|
17
|
+
placeholder: z,
|
|
18
|
+
hasError: j,
|
|
19
|
+
onSearch: h,
|
|
20
|
+
onSearchList: A,
|
|
21
|
+
className: H,
|
|
22
|
+
style: q,
|
|
23
|
+
id: E,
|
|
24
|
+
name: F,
|
|
25
|
+
searchValue: G,
|
|
26
|
+
searchPlaceholder: R,
|
|
27
|
+
customNoOptionsText: J,
|
|
28
|
+
isCenteredContent: K,
|
|
29
|
+
itemClassName: Q,
|
|
30
|
+
hasSearch: U,
|
|
31
|
+
disabled: c,
|
|
32
|
+
keepLabel: B,
|
|
33
|
+
options: a = [],
|
|
34
|
+
proportions: C = "m",
|
|
35
|
+
isStayOpenAfterSelection: X = !0,
|
|
36
|
+
isClearTextAfterSelection: Y = !1,
|
|
37
|
+
fullWidth: I = !0,
|
|
38
|
+
filterable: O = !0,
|
|
39
|
+
isLoading: Z,
|
|
40
|
+
onBlur: _,
|
|
41
|
+
disableClientFilter: P,
|
|
42
|
+
...$
|
|
43
|
+
}) => {
|
|
44
|
+
const v = k(null), u = k(null), [f, m] = y(!1), [g, w] = y(""), b = ie(), S = E || b, ee = p(
|
|
45
|
+
I && r.fullWidth,
|
|
46
|
+
c && r.disabled,
|
|
47
|
+
H
|
|
48
|
+
), n = V(
|
|
49
|
+
() => !t.length || t.length > 0 && fe(t[0]),
|
|
50
|
+
[t]
|
|
51
|
+
), s = V(() => n ? t.map((e) => e.value) : t, [t, n]), te = V(() => n ? t : a.filter((e) => s.includes(e.value)), [n, a, s, t]), T = V(() => !O || P ? a : a.filter(
|
|
52
|
+
(e) => e.label.toLowerCase().includes(g.toLowerCase())
|
|
53
|
+
), [P, O, a, g]), re = (e) => {
|
|
54
|
+
const o = e.target.value;
|
|
55
|
+
w(o), h?.(o), m(!0);
|
|
56
|
+
}, oe = (e, o) => {
|
|
57
|
+
if (s.includes(e)) {
|
|
58
|
+
const l = s.filter((x) => x !== e), D = n ? t.filter((x) => x.value !== e) : void 0;
|
|
59
|
+
d(l, D);
|
|
60
|
+
} else {
|
|
61
|
+
const l = [...s, e], D = n ? [...t, o] : void 0;
|
|
62
|
+
d(l, D);
|
|
63
|
+
}
|
|
64
|
+
v.current?.focus(), Y && (w(""), h?.("")), m(X);
|
|
65
|
+
}, ne = (e) => {
|
|
66
|
+
const o = s.filter((l) => l !== e), N = n ? t.filter((l) => l.value !== e) : void 0;
|
|
67
|
+
d(o, N);
|
|
68
|
+
}, se = () => {
|
|
69
|
+
d([], []), w(""), h?.(""), m(!1);
|
|
70
|
+
}, le = () => {
|
|
71
|
+
m(!1), h?.(""), w(""), u.current && (u.current.scrollLeft = 0);
|
|
72
|
+
};
|
|
73
|
+
return ce(() => {
|
|
74
|
+
u.current && (u.current.scrollLeft = f ? 1e6 : 0);
|
|
75
|
+
}, [T, t, f]), /* @__PURE__ */ L(M, { isOpen: f, width: "trigger", onClose: le, children: [
|
|
76
|
+
/* @__PURE__ */ L(M.Trigger, { className: ee, style: q, onBlur: _, children: [
|
|
77
|
+
/* @__PURE__ */ i(
|
|
78
|
+
ae,
|
|
79
|
+
{
|
|
80
|
+
bordered: !0,
|
|
81
|
+
fullWidth: !0,
|
|
82
|
+
keepLabelFixed: f && !B,
|
|
83
|
+
keepLabel: B,
|
|
84
|
+
value: g || t.length > 0 ? "filled" : "",
|
|
85
|
+
id: S,
|
|
86
|
+
name: F,
|
|
87
|
+
label: W,
|
|
88
|
+
placeholder: z,
|
|
89
|
+
hasError: j,
|
|
90
|
+
proportions: C,
|
|
91
|
+
disabled: c,
|
|
92
|
+
onClear: se,
|
|
93
|
+
onClick: () => m((e) => !e),
|
|
94
|
+
inputRef: v,
|
|
95
|
+
rightIcon: /* @__PURE__ */ i(
|
|
96
|
+
he,
|
|
97
|
+
{
|
|
98
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
99
|
+
className: p(
|
|
100
|
+
r.chevron,
|
|
101
|
+
f && r.chevronActive
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
children: /* @__PURE__ */ L(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: p(r.root, r.tags),
|
|
109
|
+
ref: u,
|
|
110
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
111
|
+
children: [
|
|
112
|
+
te.map((e, o) => /* @__PURE__ */ i(
|
|
113
|
+
me,
|
|
114
|
+
{
|
|
115
|
+
variant: "primary",
|
|
116
|
+
size: C === "l" ? "s" : "xs",
|
|
117
|
+
onClick: (N) => N.stopPropagation(),
|
|
118
|
+
onClose: () => ne(e.value),
|
|
119
|
+
className: r.tag,
|
|
120
|
+
disabled: c,
|
|
121
|
+
children: e.label
|
|
122
|
+
},
|
|
123
|
+
o
|
|
124
|
+
)),
|
|
125
|
+
O && /* @__PURE__ */ i(
|
|
126
|
+
ue,
|
|
127
|
+
{
|
|
128
|
+
id: S,
|
|
129
|
+
ref: v,
|
|
130
|
+
value: g,
|
|
131
|
+
placeholder: R,
|
|
132
|
+
onChange: re,
|
|
133
|
+
className: r.inputBase,
|
|
134
|
+
disabled: c,
|
|
135
|
+
onMouseDown: (e) => e.stopPropagation()
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ i(
|
|
144
|
+
pe,
|
|
145
|
+
{
|
|
146
|
+
...$,
|
|
147
|
+
hasError: j,
|
|
148
|
+
className: p(r.root, r.hint),
|
|
149
|
+
disabled: c
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ i(
|
|
154
|
+
M.Dropdown,
|
|
155
|
+
{
|
|
156
|
+
className: p(r.dropdown, I && r.fullWidth),
|
|
157
|
+
children: /* @__PURE__ */ i(
|
|
158
|
+
de,
|
|
159
|
+
{
|
|
160
|
+
isLoading: Z,
|
|
161
|
+
values: s,
|
|
162
|
+
className: r.listItem,
|
|
163
|
+
onChangeList: oe,
|
|
164
|
+
options: T,
|
|
165
|
+
fullWidth: I,
|
|
166
|
+
proportions: C === "l" ? "l" : "m",
|
|
167
|
+
searchPlaceholder: R,
|
|
168
|
+
searchValue: G,
|
|
169
|
+
itemClassName: Q,
|
|
170
|
+
isCenteredContent: K,
|
|
171
|
+
customNoOptionsText: J,
|
|
172
|
+
onSearch: A,
|
|
173
|
+
hasSearch: U
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] });
|
|
179
|
+
};
|
|
180
|
+
export {
|
|
181
|
+
je as SelectMultiple
|
|
182
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = "_root_bn1kg_1", n = "_listItem_bn1kg_6", _ = "_hint_bn1kg_11", s = "_tags_bn1kg_15", o = "_tag_bn1kg_15", e = "_inputBase_bn1kg_28", c = "_fullWidth_bn1kg_32", i = "_disabled_bn1kg_36", g = "_chevron_bn1kg_40", a = "_chevronActive_bn1kg_44", l = {
|
|
2
|
+
root: t,
|
|
3
|
+
listItem: n,
|
|
4
|
+
hint: _,
|
|
5
|
+
tags: s,
|
|
6
|
+
tag: o,
|
|
7
|
+
inputBase: e,
|
|
8
|
+
fullWidth: c,
|
|
9
|
+
disabled: i,
|
|
10
|
+
chevron: g,
|
|
11
|
+
chevronActive: a
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
g as chevron,
|
|
15
|
+
a as chevronActive,
|
|
16
|
+
l as default,
|
|
17
|
+
i as disabled,
|
|
18
|
+
c as fullWidth,
|
|
19
|
+
_ as hint,
|
|
20
|
+
e as inputBase,
|
|
21
|
+
n as listItem,
|
|
22
|
+
t as root,
|
|
23
|
+
o as tag,
|
|
24
|
+
s as tags
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as n, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as x, useMemo as b, useLayoutEffect as L } from "react";
|
|
3
|
+
import e from "./SelectorInput.module.css.js";
|
|
4
|
+
import { getSelectorInputStyles as O } from "./SelectorInput.utils.js";
|
|
5
|
+
import { Input as W } from "../Input/Input.js";
|
|
6
|
+
import { Popover as l } from "../Popover/Popover.js";
|
|
7
|
+
import { ListItem as w } from "../ListItem/ListItem.js";
|
|
8
|
+
import { classNames as r } from "../../utils/class-names.js";
|
|
9
|
+
import { OutlineNavigationChevronDownSmall as T } from "../../icons/components/OutlineNavigationChevronDownSmall.js";
|
|
10
|
+
const F = ({
|
|
11
|
+
inputProps: m,
|
|
12
|
+
selectorProps: t,
|
|
13
|
+
disabled: f,
|
|
14
|
+
showIcon: h = !0,
|
|
15
|
+
showLabel: g = !1,
|
|
16
|
+
size: c = "m",
|
|
17
|
+
variant: v = "primary"
|
|
18
|
+
}) => {
|
|
19
|
+
const [i, d] = u(!1), [y, N] = u(), o = x(null), a = b(
|
|
20
|
+
() => t?.options.find((s) => s.value === t.values),
|
|
21
|
+
[t?.options, t?.values]
|
|
22
|
+
), I = (s, S) => {
|
|
23
|
+
t?.onChangeList?.(s, S), d(!1);
|
|
24
|
+
}, C = r(
|
|
25
|
+
e.trigger,
|
|
26
|
+
i && e.active,
|
|
27
|
+
(f || t?.disabled) && e.disabled
|
|
28
|
+
);
|
|
29
|
+
return L(() => {
|
|
30
|
+
o.current && N(o.current.offsetWidth);
|
|
31
|
+
}, [i]), /* @__PURE__ */ n(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
ref: o,
|
|
35
|
+
className: e.root,
|
|
36
|
+
style: O(v, c),
|
|
37
|
+
children: /* @__PURE__ */ n(
|
|
38
|
+
W,
|
|
39
|
+
{
|
|
40
|
+
...m,
|
|
41
|
+
disabled: f,
|
|
42
|
+
proportions: c,
|
|
43
|
+
className: r(e.input, m?.className),
|
|
44
|
+
leftSection: /* @__PURE__ */ p(
|
|
45
|
+
l,
|
|
46
|
+
{
|
|
47
|
+
position: "bottom-start",
|
|
48
|
+
isOpen: i,
|
|
49
|
+
onChange: t?.disabled ? void 0 : d,
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ p(l.Trigger, { className: C, children: [
|
|
52
|
+
h && a?.leftIcon && /* @__PURE__ */ n("span", { className: e.flag, children: a.leftIcon }),
|
|
53
|
+
g && a?.secondaryText && /* @__PURE__ */ n("span", { className: e.label, children: a.secondaryText }),
|
|
54
|
+
/* @__PURE__ */ n(
|
|
55
|
+
T,
|
|
56
|
+
{
|
|
57
|
+
className: r(e.chevron)
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ n(l.Dropdown, { children: /* @__PURE__ */ n(
|
|
62
|
+
w,
|
|
63
|
+
{
|
|
64
|
+
...t,
|
|
65
|
+
style: { width: y, ...t?.style },
|
|
66
|
+
options: t?.options ?? [],
|
|
67
|
+
values: t?.values,
|
|
68
|
+
onChangeList: I
|
|
69
|
+
}
|
|
70
|
+
) })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
F as SelectorInput
|
|
81
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = "_root_xzbya_1", _ = "_input_xzbya_50", a = "_trigger_xzbya_54", o = "_active_xzbya_64", e = "_disabled_xzbya_68", c = "_flag_xzbya_77", n = "_label_xzbya_86", b = "_chevron_xzbya_112", l = {
|
|
2
|
+
root: t,
|
|
3
|
+
input: _,
|
|
4
|
+
trigger: a,
|
|
5
|
+
active: o,
|
|
6
|
+
disabled: e,
|
|
7
|
+
flag: c,
|
|
8
|
+
label: n,
|
|
9
|
+
chevron: b
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
o as active,
|
|
13
|
+
b as chevron,
|
|
14
|
+
l as default,
|
|
15
|
+
e as disabled,
|
|
16
|
+
c as flag,
|
|
17
|
+
_ as input,
|
|
18
|
+
n as label,
|
|
19
|
+
t as root,
|
|
20
|
+
a as trigger
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { getSize as t } from "../../utils/get-size.js";
|
|
2
|
+
import { resolveTypography as c } from "../../utils/typography.js";
|
|
3
|
+
const r = (e) => {
|
|
4
|
+
switch (e) {
|
|
5
|
+
case "l":
|
|
6
|
+
return c("body", "m");
|
|
7
|
+
case "m":
|
|
8
|
+
return c("body", "s");
|
|
9
|
+
case "s":
|
|
10
|
+
return c("description", "l");
|
|
11
|
+
}
|
|
12
|
+
}, s = (e, o) => {
|
|
13
|
+
const l = r(o);
|
|
14
|
+
return {
|
|
15
|
+
"--selector-input-bg-color-default": `var(--selector-input-bg-color-${e}-default)`,
|
|
16
|
+
"--selector-input-bg-color-hover": `var(--selector-input-bg-color-${e}-hover)`,
|
|
17
|
+
"--selector-input-bg-color-active": `var(--selector-input-bg-color-${e}-active)`,
|
|
18
|
+
"--selector-input-bg-color-disabled": `var(--selector-input-bg-color-${e}-disabled)`,
|
|
19
|
+
"--selector-input-label-color-default": `var(--selector-input-label-color-${e}-default)`,
|
|
20
|
+
"--selector-input-label-color-hover": `var(--selector-input-label-color-${e}-hover)`,
|
|
21
|
+
"--selector-input-label-color-active": `var(--selector-input-label-color-${e}-active)`,
|
|
22
|
+
"--selector-input-label-color-disabled": `var( --selector-input-label-color-${e}-disabled)`,
|
|
23
|
+
"--selector-input-icon-color-default": `var(--selector-input-icon-color-${e}-default)`,
|
|
24
|
+
"--selector-input-icon-color-hover": `var(--selector-input-icon-color-${e}-hover)`,
|
|
25
|
+
"--selector-input-icon-color-active": `var(--selector-input-icon-color-${e}-active)`,
|
|
26
|
+
"--selector-input-icon-color-disabled": `var(--selector-input-icon-color-${e}-disabled)`,
|
|
27
|
+
"--selector-input-icon-height": t(o, "selector-input-icon-height"),
|
|
28
|
+
"--selector-input-icon-width": t(o, "selector-input-icon-width"),
|
|
29
|
+
"--selector-input-height": t(o, "selector-input-height"),
|
|
30
|
+
"--selector-input-flag-height": t(o, "selector-input-flag-height"),
|
|
31
|
+
"--selector-input-flag-width": t(o, "selector-input-flag-width"),
|
|
32
|
+
"--selector-input-spacing-horizontal": t(
|
|
33
|
+
o,
|
|
34
|
+
"selector-input-spacing-horizontal"
|
|
35
|
+
),
|
|
36
|
+
"--selector-input-spacing-between": t(
|
|
37
|
+
o,
|
|
38
|
+
"selector-input-spacing-between"
|
|
39
|
+
),
|
|
40
|
+
"--selector-input-label-font-family": l.fontFamily,
|
|
41
|
+
"--selector-input-label-font-size": l.fontSize,
|
|
42
|
+
"--selector-input-label-font-weight": l.fontWeight,
|
|
43
|
+
"--selector-input-label-line-height": l.lineHeight,
|
|
44
|
+
"--selector-input-label-letter-spacing": l.letterSpacing
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
s as getSelectorInputStyles
|
|
49
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, Children as P } from "react";
|
|
3
|
+
import e from "./Sidebar.module.css.js";
|
|
4
|
+
import { SidebarContextProvider as T } from "./Sidebar.context.js";
|
|
5
|
+
import { SidebarItems as b } from "./SidebarItems/SidebarItems.js";
|
|
6
|
+
import { SidebarHeader as h } from "./SidebarHeader/SidebarHeader.js";
|
|
7
|
+
import { SidebarBottom as u } from "./SidebarBottom/SidebarBottom.js";
|
|
8
|
+
import { SidebarItem as W } from "./SidebarItem/SidebarItem.js";
|
|
9
|
+
import { SidebarCollapse as k } from "./SidebarCollapse/SidebarCollapse.js";
|
|
10
|
+
import { SidebarElement as q } from "./SidebarElement/SidebarElement.js";
|
|
11
|
+
import { getSidebarStyles as w, findChildByType as l } from "./Sidebar.utils.js";
|
|
12
|
+
import { SidebarControlButton as D } from "./SidebarControlButton/SidebarControlButton.js";
|
|
13
|
+
import { classNames as F } from "../../utils/class-names.js";
|
|
14
|
+
const t = ({
|
|
15
|
+
size: v = "large",
|
|
16
|
+
variant: c = "default",
|
|
17
|
+
children: C,
|
|
18
|
+
showControlButton: d = !0,
|
|
19
|
+
type: r = "default",
|
|
20
|
+
hideScrollbar: g = !0,
|
|
21
|
+
className: E
|
|
22
|
+
}) => {
|
|
23
|
+
const [N, S] = m(-1), [i, p] = m(v), [o, x] = m(i === "compact"), I = i === "compact", y = w(i, c, r), H = F(
|
|
24
|
+
e.content,
|
|
25
|
+
g && "hideScrollbar",
|
|
26
|
+
o && e.contentPosition,
|
|
27
|
+
o && i === "large" && e.shadow,
|
|
28
|
+
E
|
|
29
|
+
), s = P.toArray(C), f = l(s, h), M = l(s, b), B = l(s, u), j = () => {
|
|
30
|
+
x((L) => !L);
|
|
31
|
+
}, z = () => {
|
|
32
|
+
o && p("large");
|
|
33
|
+
}, A = () => {
|
|
34
|
+
o && (p("compact"), S(-1));
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ a(
|
|
37
|
+
T,
|
|
38
|
+
{
|
|
39
|
+
value: {
|
|
40
|
+
isCompact: I,
|
|
41
|
+
variant: c,
|
|
42
|
+
type: r,
|
|
43
|
+
handleToggleHover: j,
|
|
44
|
+
hoverEnabled: o,
|
|
45
|
+
showControlButton: d,
|
|
46
|
+
collapseElementIndex: N,
|
|
47
|
+
setCollapseElementIndex: S
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ n("div", { className: e.root, children: [
|
|
50
|
+
o && /* @__PURE__ */ a("div", { className: e.placeholder }),
|
|
51
|
+
/* @__PURE__ */ n(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
style: y,
|
|
55
|
+
className: H,
|
|
56
|
+
onMouseEnter: z,
|
|
57
|
+
onMouseLeave: A,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ n("div", { className: e.mainSection, children: [
|
|
60
|
+
d && (r === "floating" || !f) && /* @__PURE__ */ a(D, {}),
|
|
61
|
+
/* @__PURE__ */ n("div", { className: e.mainSectionWrapper, children: [
|
|
62
|
+
r !== "floating" && f,
|
|
63
|
+
M
|
|
64
|
+
] })
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ a("div", { className: e.bottomSection, children: B })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] })
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
t.Items = b;
|
|
75
|
+
t.Item = W;
|
|
76
|
+
t.Collapse = k;
|
|
77
|
+
t.HeaderSection = h;
|
|
78
|
+
t.BottomSection = u;
|
|
79
|
+
t.Element = q;
|
|
80
|
+
export {
|
|
81
|
+
t as Sidebar
|
|
82
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const o = "_root_1zd92_1", t = "_content_1zd92_75", n = "_placeholder_1zd92_91", c = "_shadow_1zd92_96", e = "_contentPosition_1zd92_100", _ = "_mainSection_1zd92_106", i = "_mainSectionWrapper_1zd92_112", s = "_bottomSection_1zd92_118", a = {
|
|
2
|
+
root: o,
|
|
3
|
+
content: t,
|
|
4
|
+
placeholder: n,
|
|
5
|
+
shadow: c,
|
|
6
|
+
contentPosition: e,
|
|
7
|
+
mainSection: _,
|
|
8
|
+
mainSectionWrapper: i,
|
|
9
|
+
bottomSection: s
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
s as bottomSection,
|
|
13
|
+
t as content,
|
|
14
|
+
e as contentPosition,
|
|
15
|
+
a as default,
|
|
16
|
+
_ as mainSection,
|
|
17
|
+
i as mainSectionWrapper,
|
|
18
|
+
n as placeholder,
|
|
19
|
+
o as root,
|
|
20
|
+
c as shadow
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { isValidElement as n } from "react";
|
|
2
|
+
import { resolveTypography as l } from "../../utils/typography.js";
|
|
3
|
+
const e = {
|
|
4
|
+
size: (o) => ({
|
|
5
|
+
large: {
|
|
6
|
+
"--sidebar-logo-width": "100%",
|
|
7
|
+
"--sidebar-logo-height": "var(--sizes-16x)",
|
|
8
|
+
"--sidebar-width": "312px",
|
|
9
|
+
"--navigation-button-width": "264px",
|
|
10
|
+
"--navigation-button-height": "auto",
|
|
11
|
+
"--sidebar-padding-y": "var(--sidebar-spacing-horizontal-full-big)",
|
|
12
|
+
"--sidebar-padding-x": "var(--sidebar-spacing-vertical-full-big)",
|
|
13
|
+
"--sidebar-spacing-between": "var(--sidebar-spacing-between-full-big)"
|
|
14
|
+
},
|
|
15
|
+
compact: {
|
|
16
|
+
"--sidebar-logo-width": "var(--sizes-16x)",
|
|
17
|
+
"--sidebar-logo-height": "var(--sizes-16x)",
|
|
18
|
+
"--sidebar-width": "96px",
|
|
19
|
+
"--navigation-button-width": "56px",
|
|
20
|
+
"--navigation-button-height": "56px",
|
|
21
|
+
"--sidebar-padding-y": "var(--sidebar-spacing-horizontal-full-small)",
|
|
22
|
+
"--sidebar-padding-x": "var(--sidebar-spacing-vertical-full-small)",
|
|
23
|
+
"--sidebar-spacing-between": "var(--sidebar-spacing-between-full-small)"
|
|
24
|
+
}
|
|
25
|
+
})[o],
|
|
26
|
+
variant: (o) => ({
|
|
27
|
+
"--sidebar-icon-size": "24px",
|
|
28
|
+
"--sidebar-bg-color": `var(--sidebar-bg-color-${o})`,
|
|
29
|
+
"--section-header-logo-color": `var(--section-header-logo-color-default${o === "default" ? "" : "-contrast"})`,
|
|
30
|
+
"--nav-button-label-color-default": `var(--navigation-button-label-color-default${o === "default" ? "" : "-contrast"})`,
|
|
31
|
+
"--nav-button-icons-color-default": `var(--navigation-button-icons-color-default${o === "default" ? "" : "-contrast"})`,
|
|
32
|
+
"--nav-button-icons-color-active": `var(--navigation-button-icons-color-active${o === "default" ? "" : "-contrast"})`,
|
|
33
|
+
"--nav-button-icons-color-hover": `var(--navigation-button-icons-color-hover${o === "default" ? "" : "-contrast"})`,
|
|
34
|
+
"--nav-button-profile-label-color": `var(--navigation-button-profile-label-color-title${o === "default" ? "" : "-contrast"})`,
|
|
35
|
+
"--nav-button-bg-color-active": `var(--navigation-button-bg-color-active${o === "default" ? "" : "-contrast"})`,
|
|
36
|
+
"--nav-button-bg-color-hover": `var(--navigation-button-bg-color-hover${o === "default" ? "" : "-contrast"})`,
|
|
37
|
+
"--nav-button-label-color-hover": `var(--navigation-button-label-color-hover${o === "default" ? "" : "-contrast"})`,
|
|
38
|
+
"--nav-button-label-color-active": `var(--navigation-button-label-color-active${o === "default" ? "" : "-contrast"})`
|
|
39
|
+
}),
|
|
40
|
+
type: (o) => ({
|
|
41
|
+
default: {
|
|
42
|
+
"--sidebar-border-radius": "var(--sidebar-border-radius-full)"
|
|
43
|
+
},
|
|
44
|
+
floating: {
|
|
45
|
+
"--sidebar-border-radius": "var(--sidebar-border-radius-compact)"
|
|
46
|
+
}
|
|
47
|
+
})[o]
|
|
48
|
+
}, s = () => {
|
|
49
|
+
const { fontFamily: o, fontSize: t, fontWeight: a, lineHeight: i, letterSpacing: r } = l("description", "m");
|
|
50
|
+
return {
|
|
51
|
+
"--badge-font-family": o,
|
|
52
|
+
"--badge-font-size": t,
|
|
53
|
+
"--badge-font-weight": a,
|
|
54
|
+
"--badge-line-height": i,
|
|
55
|
+
"--badge-letter-spacing": r
|
|
56
|
+
};
|
|
57
|
+
}, c = (o, t, a) => ({
|
|
58
|
+
...e.size(o),
|
|
59
|
+
...e.variant(t),
|
|
60
|
+
...e.type(a),
|
|
61
|
+
...s()
|
|
62
|
+
}), g = (o, t) => o.find((a) => n(a) && a.type === t);
|
|
63
|
+
export {
|
|
64
|
+
g as findChildByType,
|
|
65
|
+
c as getSidebarStyles
|
|
66
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import i from "./SidebarBottom.module.css.js";
|
|
3
|
+
import { useSidebarContext as s } from "../Sidebar.context.js";
|
|
4
|
+
import { Divider as a } from "../../Divider/Divider.js";
|
|
5
|
+
const f = ({ children: o }) => {
|
|
6
|
+
const { variant: r } = s();
|
|
7
|
+
return /* @__PURE__ */ e("div", { children: [
|
|
8
|
+
/* @__PURE__ */ t(
|
|
9
|
+
a,
|
|
10
|
+
{
|
|
11
|
+
variant: r !== "default" ? "contrast" : "secondary",
|
|
12
|
+
size: "s"
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ t("div", { className: i.bottomContent, children: o })
|
|
16
|
+
] });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
f as SidebarBottom
|
|
20
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Children as h, isValidElement as N, cloneElement as j } from "react";
|
|
3
|
+
import o from "./SidebarCollapse.module.css.js";
|
|
4
|
+
import { useSidebarContext as I } from "../Sidebar.context.js";
|
|
5
|
+
import { SolidNavigationSelectTop as O } from "../../../icons/components/SolidNavigationSelectTop.js";
|
|
6
|
+
import { SolidNavigationSelectOpenDown as P } from "../../../icons/components/SolidNavigationSelectOpenDown.js";
|
|
7
|
+
import { Collapse as k } from "../../Collapse/Collapse.js";
|
|
8
|
+
import { classNames as t } from "../../../utils/class-names.js";
|
|
9
|
+
const H = ({
|
|
10
|
+
children: i,
|
|
11
|
+
icon: d,
|
|
12
|
+
label: m,
|
|
13
|
+
isCollapse: C = !0,
|
|
14
|
+
collapseVariant: r = "default",
|
|
15
|
+
showArrowIcon: x = !0,
|
|
16
|
+
count: a,
|
|
17
|
+
index: l = -1
|
|
18
|
+
}) => {
|
|
19
|
+
const { isCompact: p, collapseElementIndex: v, setCollapseElementIndex: E } = I(), c = l === v, f = h.map(i, (e) => {
|
|
20
|
+
if (N(e))
|
|
21
|
+
return e.props.active;
|
|
22
|
+
})?.find((e) => e), u = t(
|
|
23
|
+
o.collapseButton,
|
|
24
|
+
r === "group" && o.group
|
|
25
|
+
), S = t(
|
|
26
|
+
f && !c && r !== "group" && o.active
|
|
27
|
+
), b = t(
|
|
28
|
+
f && p && r !== "group" && o.active
|
|
29
|
+
), g = t(
|
|
30
|
+
o.badge,
|
|
31
|
+
p && o.badgePosition
|
|
32
|
+
), B = () => h.map(
|
|
33
|
+
i,
|
|
34
|
+
(e) => N(e) ? j(e, { isCollapseParent: !0 }) : e
|
|
35
|
+
), w = () => r === "group" ? i : /* @__PURE__ */ n("div", { className: t(u, b), children: [
|
|
36
|
+
!!a && /* @__PURE__ */ s("span", { className: g, children: a }),
|
|
37
|
+
/* @__PURE__ */ s("span", { children: d || m.slice(0, 2).toUpperCase() })
|
|
38
|
+
] }), A = () => /* @__PURE__ */ n("div", { children: [
|
|
39
|
+
/* @__PURE__ */ n(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: t(u, S),
|
|
43
|
+
onClick: () => {
|
|
44
|
+
E(l === v ? -1 : l);
|
|
45
|
+
},
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ n("span", { children: [
|
|
48
|
+
d,
|
|
49
|
+
" ",
|
|
50
|
+
m
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ n("span", { children: [
|
|
53
|
+
!!a && /* @__PURE__ */ s("span", { className: g, children: a }),
|
|
54
|
+
x && C && c ? /* @__PURE__ */ s(O, {}) : /* @__PURE__ */ s(P, {})
|
|
55
|
+
] })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ s(k, { isOpen: !C || c, children: /* @__PURE__ */ s("div", { className: o.collapseContent, children: B() }) })
|
|
60
|
+
] });
|
|
61
|
+
return /* @__PURE__ */ s("div", { className: o.collapse, children: p ? w() : A() });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
H as SidebarCollapse
|
|
65
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const o = "_collapse_1t74o_1", t = "_collapseContent_1t74o_8", e = "_collapseButton_1t74o_16", s = "_group_1t74o_44", _ = "_badge_1t74o_60", a = "_badgePosition_1t74o_74", c = "_active_1t74o_85", l = {
|
|
2
|
+
collapse: o,
|
|
3
|
+
collapseContent: t,
|
|
4
|
+
collapseButton: e,
|
|
5
|
+
group: s,
|
|
6
|
+
badge: _,
|
|
7
|
+
badgePosition: a,
|
|
8
|
+
active: c
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as active,
|
|
12
|
+
_ as badge,
|
|
13
|
+
a as badgePosition,
|
|
14
|
+
o as collapse,
|
|
15
|
+
e as collapseButton,
|
|
16
|
+
t as collapseContent,
|
|
17
|
+
l as default,
|
|
18
|
+
s as group
|
|
19
|
+
};
|