@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,36 @@
|
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "../Dates.module.css.js";
|
|
3
|
+
import { CONFIRMATION_TEXT as f } from "../InputTimePicker/TimePicker/TimePicker.utils.js";
|
|
4
|
+
import { useLocale as p } from "../../../providers/hooks/useLocale/useLocale.js";
|
|
5
|
+
import { FunctionButton as y } from "../../FunctionButton/FunctionButton.js";
|
|
6
|
+
import { Button as A } from "../../Button/Button.js";
|
|
7
|
+
const j = ({
|
|
8
|
+
options: c = [],
|
|
9
|
+
isRange: l,
|
|
10
|
+
onChange: a,
|
|
11
|
+
onConfirm: t,
|
|
12
|
+
disabledOptions: s = []
|
|
13
|
+
}) => {
|
|
14
|
+
const { locale: m } = p(), o = c.filter(
|
|
15
|
+
(r) => l ? Array.isArray(r.value) : !Array.isArray(r.value)
|
|
16
|
+
);
|
|
17
|
+
if (o.length === 0 && !t) return null;
|
|
18
|
+
const d = (r) => Array.isArray(r) ? r.some((i) => s.includes(i)) : s.includes(r);
|
|
19
|
+
return /* @__PURE__ */ u("div", { className: n.confirmationBlock, children: [
|
|
20
|
+
/* @__PURE__ */ e("div", { className: n.dateOptions, children: o.map(({ text: r, value: i }) => /* @__PURE__ */ e(
|
|
21
|
+
y,
|
|
22
|
+
{
|
|
23
|
+
onClick: () => a(i),
|
|
24
|
+
disabled: d(i),
|
|
25
|
+
variant: "accent",
|
|
26
|
+
size: "m",
|
|
27
|
+
children: r
|
|
28
|
+
},
|
|
29
|
+
r
|
|
30
|
+
)) }),
|
|
31
|
+
t && /* @__PURE__ */ e(A, { onClick: t, size: "s", children: f[m] })
|
|
32
|
+
] });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
j as PickerOptions
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import t from "./Divider.module.css.js";
|
|
3
|
+
import { getDividerStyles as i } from "./Divider.utils.js";
|
|
4
|
+
import { classNames as e } from "../../utils/class-names.js";
|
|
5
|
+
const y = ({
|
|
6
|
+
className: r,
|
|
7
|
+
variant: m = "primary",
|
|
8
|
+
size: o = "m"
|
|
9
|
+
}) => /* @__PURE__ */ s(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
className: e(t.root, r),
|
|
13
|
+
style: i(m, o)
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
y as Divider
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getSize as e } from "../../utils/get-size.js";
|
|
2
|
+
const t = (i, d) => ({
|
|
3
|
+
"--divider-width": "100%",
|
|
4
|
+
"--divider-height": "fit-content",
|
|
5
|
+
"--divider-border-width": e(d, "divider-width"),
|
|
6
|
+
"--divider-color": `var(--divider-color-${i})`
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
t as getDividerStyles
|
|
10
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import r from "./Drawer.module.css.js";
|
|
3
|
+
import { capitalize as i, positionToTransitionName as C, getDrawerStyle as S } from "./Drawer.utils.js";
|
|
4
|
+
import { Backdrop as T } from "../Backdrop/Backdrop.js";
|
|
5
|
+
import { Typography as n } from "../Typography/Typography.js";
|
|
6
|
+
import { classNames as d } from "../../utils/class-names.js";
|
|
7
|
+
import { OutlineSystemClose as j } from "../../icons/components/OutlineSystemClose.js";
|
|
8
|
+
const P = ({
|
|
9
|
+
title: c,
|
|
10
|
+
subTitle: o,
|
|
11
|
+
isOpen: l,
|
|
12
|
+
onClose: a,
|
|
13
|
+
children: m,
|
|
14
|
+
isCloseOutside: p = !0,
|
|
15
|
+
width: y = "30%",
|
|
16
|
+
height: h = "70%",
|
|
17
|
+
type: f = "default",
|
|
18
|
+
position: e = "right",
|
|
19
|
+
zIndex: w,
|
|
20
|
+
className: N,
|
|
21
|
+
...g
|
|
22
|
+
}) => {
|
|
23
|
+
const u = d(
|
|
24
|
+
r.root,
|
|
25
|
+
f === "rounded" && r.rounded,
|
|
26
|
+
r[`position${i(e)}`]
|
|
27
|
+
), v = d(
|
|
28
|
+
r.drawer,
|
|
29
|
+
r[`drawer${i(e)}`],
|
|
30
|
+
N
|
|
31
|
+
), x = S(e, y, h);
|
|
32
|
+
return /* @__PURE__ */ t(
|
|
33
|
+
T,
|
|
34
|
+
{
|
|
35
|
+
isOpen: l,
|
|
36
|
+
onClose: a,
|
|
37
|
+
isCloseOutside: p,
|
|
38
|
+
className: u,
|
|
39
|
+
"data-testid": "container",
|
|
40
|
+
zIndex: w,
|
|
41
|
+
transitionProps: {
|
|
42
|
+
transition: C[e]
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ s(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
style: x,
|
|
48
|
+
"data-testid": "drawer",
|
|
49
|
+
className: v,
|
|
50
|
+
...g,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ s("div", { className: r.title, children: [
|
|
53
|
+
/* @__PURE__ */ t(n, { proportions: "h4", category: "heading", children: c }),
|
|
54
|
+
/* @__PURE__ */ t(j, { onClick: a })
|
|
55
|
+
] }),
|
|
56
|
+
o && /* @__PURE__ */ t(
|
|
57
|
+
n,
|
|
58
|
+
{
|
|
59
|
+
proportions: "l",
|
|
60
|
+
category: "body",
|
|
61
|
+
className: r.subTitle,
|
|
62
|
+
children: o
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ t("div", { className: r.content, children: m })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
P as Drawer
|
|
74
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const t = "_root_3xmy3_1", o = "_positionRight_3xmy3_22", _ = "_positionLeft_3xmy3_27", r = "_positionTop_3xmy3_32", e = "_positionBottom_3xmy3_37", i = "_rounded_3xmy3_42", n = "_drawer_3xmy3_46", s = "_drawerRight_3xmy3_55", d = "_drawerLeft_3xmy3_55", m = "_drawerTop_3xmy3_59", p = "_drawerBottom_3xmy3_59", c = "_title_3xmy3_68", a = "_subTitle_3xmy3_82", w = "_content_3xmy3_87", x = {
|
|
2
|
+
root: t,
|
|
3
|
+
positionRight: o,
|
|
4
|
+
positionLeft: _,
|
|
5
|
+
positionTop: r,
|
|
6
|
+
positionBottom: e,
|
|
7
|
+
rounded: i,
|
|
8
|
+
drawer: n,
|
|
9
|
+
drawerRight: s,
|
|
10
|
+
drawerLeft: d,
|
|
11
|
+
drawerTop: m,
|
|
12
|
+
drawerBottom: p,
|
|
13
|
+
title: c,
|
|
14
|
+
subTitle: a,
|
|
15
|
+
content: w
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
w as content,
|
|
19
|
+
x as default,
|
|
20
|
+
n as drawer,
|
|
21
|
+
p as drawerBottom,
|
|
22
|
+
d as drawerLeft,
|
|
23
|
+
s as drawerRight,
|
|
24
|
+
m as drawerTop,
|
|
25
|
+
e as positionBottom,
|
|
26
|
+
_ as positionLeft,
|
|
27
|
+
o as positionRight,
|
|
28
|
+
r as positionTop,
|
|
29
|
+
t as root,
|
|
30
|
+
i as rounded,
|
|
31
|
+
a as subTitle,
|
|
32
|
+
c as title
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
left: "slide-right",
|
|
3
|
+
right: "slide-left",
|
|
4
|
+
top: "slide-down",
|
|
5
|
+
bottom: "slide-up"
|
|
6
|
+
}, i = (t) => t.charAt(0).toUpperCase() + t.slice(1), r = (t, e, l) => ({
|
|
7
|
+
...t === "left" || t === "right" ? { width: e } : {},
|
|
8
|
+
...t === "top" || t === "bottom" ? { height: l } : {}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
i as capitalize,
|
|
12
|
+
r as getDrawerStyle,
|
|
13
|
+
o as positionToTransitionName
|
|
14
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as W, useId as q } from "react";
|
|
3
|
+
import { InputBaseWrapper as w } from "./InputBaseWrapper/InputBaseWrapper.js";
|
|
4
|
+
import { InputBase as y } from "./InputBase/InputBase.js";
|
|
5
|
+
const G = ({
|
|
6
|
+
label: m,
|
|
7
|
+
placeholder: p,
|
|
8
|
+
onClear: u,
|
|
9
|
+
leftSection: f,
|
|
10
|
+
leftIcon: s,
|
|
11
|
+
rightIcon: c,
|
|
12
|
+
hasError: d,
|
|
13
|
+
id: I,
|
|
14
|
+
value: r,
|
|
15
|
+
mask: l,
|
|
16
|
+
inputRegExp: a,
|
|
17
|
+
className: x,
|
|
18
|
+
disabled: t,
|
|
19
|
+
keepLabel: B,
|
|
20
|
+
keepLabelFixed: R,
|
|
21
|
+
style: g,
|
|
22
|
+
fullWidth: h = !0,
|
|
23
|
+
bordered: j = !0,
|
|
24
|
+
proportions: e = "m",
|
|
25
|
+
onFieldClick: k,
|
|
26
|
+
...C
|
|
27
|
+
}) => {
|
|
28
|
+
const n = W(null), F = q(), o = I || F;
|
|
29
|
+
return /* @__PURE__ */ i(
|
|
30
|
+
w,
|
|
31
|
+
{
|
|
32
|
+
label: m,
|
|
33
|
+
onClear: u,
|
|
34
|
+
leftSection: f,
|
|
35
|
+
leftIcon: s,
|
|
36
|
+
rightIcon: c,
|
|
37
|
+
proportions: e,
|
|
38
|
+
keepLabel: B,
|
|
39
|
+
keepLabelFixed: R,
|
|
40
|
+
bordered: j,
|
|
41
|
+
inputRef: n,
|
|
42
|
+
hasError: d,
|
|
43
|
+
disabled: t,
|
|
44
|
+
value: r,
|
|
45
|
+
id: o,
|
|
46
|
+
fullWidth: h,
|
|
47
|
+
className: x,
|
|
48
|
+
style: g,
|
|
49
|
+
onClick: k,
|
|
50
|
+
children: /* @__PURE__ */ i(
|
|
51
|
+
y,
|
|
52
|
+
{
|
|
53
|
+
proportions: e,
|
|
54
|
+
ref: n,
|
|
55
|
+
placeholder: p,
|
|
56
|
+
id: o,
|
|
57
|
+
value: r,
|
|
58
|
+
mask: l,
|
|
59
|
+
inputRegExp: a,
|
|
60
|
+
disabled: t,
|
|
61
|
+
...C
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
G as Field
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as N, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import r from "./InputBase.module.css.js";
|
|
4
|
+
import { getInputBaseStyles as v, applyMask as x } from "./InputBase.utils.js";
|
|
5
|
+
import { classNames as f } from "../../../utils/class-names.js";
|
|
6
|
+
const k = h(
|
|
7
|
+
({
|
|
8
|
+
value: a,
|
|
9
|
+
mask: t,
|
|
10
|
+
inputRegExp: e,
|
|
11
|
+
onChange: o,
|
|
12
|
+
className: p,
|
|
13
|
+
style: i,
|
|
14
|
+
proportions: c = "m",
|
|
15
|
+
autoComplete: u = "off",
|
|
16
|
+
...y
|
|
17
|
+
}, d) => {
|
|
18
|
+
const n = typeof e == "string" ? new RegExp(e) : e, l = v(c), g = (s) => {
|
|
19
|
+
if (!n) {
|
|
20
|
+
o?.(s);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
n.test(s.target.value) && o?.(s);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ N("div", { className: f(r.root, p), style: i, children: [
|
|
26
|
+
/* @__PURE__ */ m(
|
|
27
|
+
"input",
|
|
28
|
+
{
|
|
29
|
+
ref: d,
|
|
30
|
+
value: a ?? "",
|
|
31
|
+
onChange: g,
|
|
32
|
+
className: f(t && r.maskedInput),
|
|
33
|
+
style: l,
|
|
34
|
+
autoComplete: u,
|
|
35
|
+
...y
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
t && /* @__PURE__ */ m(
|
|
39
|
+
"input",
|
|
40
|
+
{
|
|
41
|
+
className: r.mask,
|
|
42
|
+
value: x(a ?? "", t),
|
|
43
|
+
style: l,
|
|
44
|
+
readOnly: !0
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
export {
|
|
51
|
+
k as InputBase
|
|
52
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { resolveTypography as i } from "../../../utils/typography.js";
|
|
2
|
+
const n = (e) => {
|
|
3
|
+
switch (e) {
|
|
4
|
+
case "s":
|
|
5
|
+
return i("description", "l");
|
|
6
|
+
case "l":
|
|
7
|
+
return i("body", "m");
|
|
8
|
+
default:
|
|
9
|
+
return i("body", "s");
|
|
10
|
+
}
|
|
11
|
+
}, l = (e) => {
|
|
12
|
+
const t = n(e);
|
|
13
|
+
return {
|
|
14
|
+
"--field-item-font-family": t.fontFamily,
|
|
15
|
+
"--field-item-font-weight": t.fontWeight,
|
|
16
|
+
"--field-item-font-size": t.fontSize,
|
|
17
|
+
"--field-item-line-height": t.lineHeight,
|
|
18
|
+
"--field-item-letter-spacing": t.letterSpacing
|
|
19
|
+
};
|
|
20
|
+
}, o = (e, t) => e.length >= t.length ? e : e + t?.slice(e.length);
|
|
21
|
+
export {
|
|
22
|
+
o as applyMask,
|
|
23
|
+
l as getInputBaseStyles
|
|
24
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import e from "./InputBaseWrapper.module.css.js";
|
|
3
|
+
import { inputBaseWrapperProportionsResolver as L } from "./InputBaseWrapper.utils.js";
|
|
4
|
+
import { OutlineSystemClose as O } from "../../../icons/components/OutlineSystemClose.js";
|
|
5
|
+
import { classNames as r } from "../../../utils/class-names.js";
|
|
6
|
+
const E = ({
|
|
7
|
+
id: m,
|
|
8
|
+
value: a,
|
|
9
|
+
label: t,
|
|
10
|
+
onClear: i,
|
|
11
|
+
leftSection: h,
|
|
12
|
+
leftIcon: u,
|
|
13
|
+
rightIcon: p,
|
|
14
|
+
children: f,
|
|
15
|
+
inputRef: N,
|
|
16
|
+
hasError: C,
|
|
17
|
+
disabled: v,
|
|
18
|
+
onClick: b,
|
|
19
|
+
className: D,
|
|
20
|
+
style: W,
|
|
21
|
+
fullWidth: w = !0,
|
|
22
|
+
bordered: y = !0,
|
|
23
|
+
keepLabel: c = !0,
|
|
24
|
+
keepLabelFixed: I = !1,
|
|
25
|
+
proportions: s = "m"
|
|
26
|
+
}) => {
|
|
27
|
+
const S = r(
|
|
28
|
+
e.root,
|
|
29
|
+
!y && e.borderNone,
|
|
30
|
+
C && e.error,
|
|
31
|
+
v && e.disabled,
|
|
32
|
+
w && e.fullWidth,
|
|
33
|
+
D
|
|
34
|
+
), x = r(
|
|
35
|
+
e.label,
|
|
36
|
+
(a || I) && e.labelActive,
|
|
37
|
+
(s === "s" || !c) && e.hideLabel,
|
|
38
|
+
(s === "s" || !c) && a && e.hideLabelActive
|
|
39
|
+
), A = r(
|
|
40
|
+
e.children,
|
|
41
|
+
(s === "s" || !t || !c) && e.childrenWithoutLabel
|
|
42
|
+
), B = r(
|
|
43
|
+
e.clearIcon,
|
|
44
|
+
!a && e.hideClearIcon
|
|
45
|
+
), M = {
|
|
46
|
+
...W,
|
|
47
|
+
...L(s)
|
|
48
|
+
}, d = () => {
|
|
49
|
+
N?.current?.focus();
|
|
50
|
+
}, j = () => {
|
|
51
|
+
d(), i?.();
|
|
52
|
+
}, F = (l) => {
|
|
53
|
+
const { className: g } = l.target;
|
|
54
|
+
g === e.middleSection && l.preventDefault();
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ o(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
onClick: b,
|
|
60
|
+
className: S,
|
|
61
|
+
style: M,
|
|
62
|
+
children: [
|
|
63
|
+
h,
|
|
64
|
+
/* @__PURE__ */ o("div", { className: e.main, onClick: d, children: [
|
|
65
|
+
u,
|
|
66
|
+
/* @__PURE__ */ o("div", { className: e.middleSection, onMouseDown: F, children: [
|
|
67
|
+
t && /* @__PURE__ */ n("label", { htmlFor: m, className: x, children: t }),
|
|
68
|
+
/* @__PURE__ */ n("div", { className: A, children: f })
|
|
69
|
+
] }),
|
|
70
|
+
i && /* @__PURE__ */ n(
|
|
71
|
+
O,
|
|
72
|
+
{
|
|
73
|
+
onMouseDown: (l) => l.preventDefault(),
|
|
74
|
+
className: B,
|
|
75
|
+
onClick: j
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
p
|
|
79
|
+
] })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
E as InputBaseWrapper
|
|
86
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const e = "_root_1wbig_1", i = "_label_1wbig_70", l = "_error_1wbig_74", _ = "_disabled_1wbig_74", o = "_main_1wbig_133", c = "_middleSection_1wbig_143", t = "_labelActive_1wbig_168", n = "_children_1wbig_178", b = "_childrenWithoutLabel_1wbig_184", d = "_hideLabel_1wbig_190", r = "_hideLabelActive_1wbig_191", a = "_clearIcon_1wbig_195", s = "_hideClearIcon_1wbig_201", h = "_borderNone_1wbig_205", g = "_fullWidth_1wbig_209", w = {
|
|
2
|
+
root: e,
|
|
3
|
+
label: i,
|
|
4
|
+
error: l,
|
|
5
|
+
disabled: _,
|
|
6
|
+
main: o,
|
|
7
|
+
middleSection: c,
|
|
8
|
+
labelActive: t,
|
|
9
|
+
children: n,
|
|
10
|
+
childrenWithoutLabel: b,
|
|
11
|
+
hideLabel: d,
|
|
12
|
+
hideLabelActive: r,
|
|
13
|
+
clearIcon: a,
|
|
14
|
+
hideClearIcon: s,
|
|
15
|
+
borderNone: h,
|
|
16
|
+
fullWidth: g
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
h as borderNone,
|
|
20
|
+
n as children,
|
|
21
|
+
b as childrenWithoutLabel,
|
|
22
|
+
a as clearIcon,
|
|
23
|
+
w as default,
|
|
24
|
+
_ as disabled,
|
|
25
|
+
l as error,
|
|
26
|
+
g as fullWidth,
|
|
27
|
+
s as hideClearIcon,
|
|
28
|
+
d as hideLabel,
|
|
29
|
+
r as hideLabelActive,
|
|
30
|
+
i as label,
|
|
31
|
+
t as labelActive,
|
|
32
|
+
o as main,
|
|
33
|
+
c as middleSection,
|
|
34
|
+
e as root
|
|
35
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { getSize as i } from "../../../utils/get-size.js";
|
|
2
|
+
import { resolveTypography as a } from "../../../utils/typography.js";
|
|
3
|
+
const n = (e) => ({
|
|
4
|
+
"--field-item-border-radius": i(
|
|
5
|
+
e,
|
|
6
|
+
"field-item-border-radius"
|
|
7
|
+
),
|
|
8
|
+
"--field-item-border-width": i(
|
|
9
|
+
e,
|
|
10
|
+
"field-item-border-width"
|
|
11
|
+
),
|
|
12
|
+
"--field-item-height": i(e, "field-item-height"),
|
|
13
|
+
"--field-item-spacing-between": i(
|
|
14
|
+
e,
|
|
15
|
+
"field-item-spacing-between"
|
|
16
|
+
),
|
|
17
|
+
"--field-item-spacing-horizontal": i(
|
|
18
|
+
e,
|
|
19
|
+
"field-item-spacing-horizontal"
|
|
20
|
+
),
|
|
21
|
+
"--field-item-spacing-vertical": i(
|
|
22
|
+
e,
|
|
23
|
+
"field-item-spacing-vertical"
|
|
24
|
+
),
|
|
25
|
+
"--field-item-icon-width": i(e, "field-item-icon-width"),
|
|
26
|
+
"--field-item-icon-height": i(e, "field-item-icon-height"),
|
|
27
|
+
"--field-item-spacing-input-container-vertical-active": i(
|
|
28
|
+
e,
|
|
29
|
+
"field-item-spacing-input-container-vertical-active"
|
|
30
|
+
)
|
|
31
|
+
}), c = (e) => {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "l":
|
|
34
|
+
return a("body", "m");
|
|
35
|
+
case "m":
|
|
36
|
+
return a("body", "s");
|
|
37
|
+
case "s":
|
|
38
|
+
return a("description", "l");
|
|
39
|
+
}
|
|
40
|
+
}, f = (e) => {
|
|
41
|
+
switch (e) {
|
|
42
|
+
case "m":
|
|
43
|
+
return a("description", "m");
|
|
44
|
+
case "l":
|
|
45
|
+
return a("description", "l");
|
|
46
|
+
}
|
|
47
|
+
}, r = (e) => {
|
|
48
|
+
const t = c(e), l = f(e);
|
|
49
|
+
return {
|
|
50
|
+
...n(e),
|
|
51
|
+
"--field-item-label-font-family": t.fontFamily,
|
|
52
|
+
"--field-item-label-font-weight": t.fontWeight,
|
|
53
|
+
"--field-item-label-font-size": t.fontSize,
|
|
54
|
+
"--field-item-label-line-height": t.lineHeight,
|
|
55
|
+
"--field-item-label-letter-spacing": t.letterSpacing,
|
|
56
|
+
"--field-item-label-font-family-active": l?.fontFamily,
|
|
57
|
+
"--field-item-label-font-weight-active": l?.fontWeight,
|
|
58
|
+
"--field-item-label-font-size-active": l?.fontSize,
|
|
59
|
+
"--field-item-label-line-height-active": l?.lineHeight,
|
|
60
|
+
"--field-item-label-letter-spacing-active": l?.letterSpacing
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
r as inputBaseWrapperProportionsResolver
|
|
65
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as n, jsxs as p, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useRef as G } from "react";
|
|
3
|
+
import t from "./FileUploader.module.css.js";
|
|
4
|
+
import { isValidFileCount as H, ERROR_TEXT as d, isValidFileSize as J, isValidFileType as K } from "./FileUploader.utils.js";
|
|
5
|
+
import { useLocale as Q } from "../../providers/hooks/useLocale/useLocale.js";
|
|
6
|
+
import { OutlineSystemUploadCloud as W } from "../../icons/components/OutlineSystemUploadCloud.js";
|
|
7
|
+
import { Typography as V } from "../Typography/Typography.js";
|
|
8
|
+
import { Button as Y } from "../Button/Button.js";
|
|
9
|
+
import { classNames as u } from "../../utils/class-names.js";
|
|
10
|
+
const le = ({
|
|
11
|
+
onFilesChange: O,
|
|
12
|
+
files: g,
|
|
13
|
+
width: R,
|
|
14
|
+
hasError: S,
|
|
15
|
+
title: b,
|
|
16
|
+
description: k,
|
|
17
|
+
buttonText: E,
|
|
18
|
+
errorText: z,
|
|
19
|
+
isMultiple: h,
|
|
20
|
+
allowedExtensions: L,
|
|
21
|
+
allowedMimeTypes: j,
|
|
22
|
+
maxFileSize: y = 20,
|
|
23
|
+
maxCount: v = 5,
|
|
24
|
+
className: A,
|
|
25
|
+
disabled: o = !1,
|
|
26
|
+
variant: I = "desktop"
|
|
27
|
+
}) => {
|
|
28
|
+
const { locale: c } = Q(), [U, f] = N(!1), [m, s] = N(""), x = G(null), a = I === "mobile", D = z || m || k, w = u(
|
|
29
|
+
t.uploader,
|
|
30
|
+
U && !o && t.dragOver,
|
|
31
|
+
(S || m) && t.error,
|
|
32
|
+
o && t.disabled
|
|
33
|
+
), B = (e) => {
|
|
34
|
+
const r = Array.from(e), l = h ? [...g, ...r] : r;
|
|
35
|
+
O(l), s("");
|
|
36
|
+
}, M = (e) => {
|
|
37
|
+
if (e.preventDefault(), e.stopPropagation(), o) return;
|
|
38
|
+
f(!1);
|
|
39
|
+
const r = e.dataTransfer.files;
|
|
40
|
+
r && T(r);
|
|
41
|
+
}, P = (e) => {
|
|
42
|
+
e.preventDefault(), f(!0);
|
|
43
|
+
}, X = () => {
|
|
44
|
+
f(!1);
|
|
45
|
+
}, _ = (e) => {
|
|
46
|
+
if (o) return;
|
|
47
|
+
const r = e.target.files;
|
|
48
|
+
r && (T(r), e.target.value = "");
|
|
49
|
+
}, T = (e) => {
|
|
50
|
+
const r = g.length + e.length;
|
|
51
|
+
if (!H(r, v)) {
|
|
52
|
+
s(d.maxCountText[c](v));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const l = Array.from(e).filter((i) => {
|
|
56
|
+
const F = J(i, y), C = K(
|
|
57
|
+
i,
|
|
58
|
+
L,
|
|
59
|
+
j
|
|
60
|
+
);
|
|
61
|
+
return F || s(
|
|
62
|
+
d.maxFileSizeText[c](i.name, y)
|
|
63
|
+
), C || s(d.extText[c](i.name)), F && C;
|
|
64
|
+
});
|
|
65
|
+
l.length && B(l);
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ n("div", { className: u(t.root, A), style: { width: R }, children: /* @__PURE__ */ p(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: a ? "" : w,
|
|
71
|
+
onDrop: M,
|
|
72
|
+
onDragOver: P,
|
|
73
|
+
onDragLeave: X,
|
|
74
|
+
onClick: () => x.current?.click(),
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ n(
|
|
77
|
+
"input",
|
|
78
|
+
{
|
|
79
|
+
type: "file",
|
|
80
|
+
"data-testid": "file-input",
|
|
81
|
+
ref: x,
|
|
82
|
+
multiple: h,
|
|
83
|
+
onChange: _,
|
|
84
|
+
hidden: !0,
|
|
85
|
+
disabled: o
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ p("div", { className: t.text, children: [
|
|
89
|
+
!a && /* @__PURE__ */ p(q, { children: [
|
|
90
|
+
/* @__PURE__ */ n(W, {}),
|
|
91
|
+
/* @__PURE__ */ n(
|
|
92
|
+
V,
|
|
93
|
+
{
|
|
94
|
+
category: "body",
|
|
95
|
+
proportions: "lStrong",
|
|
96
|
+
className: t.labelText,
|
|
97
|
+
children: b
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }),
|
|
101
|
+
D && /* @__PURE__ */ n(
|
|
102
|
+
V,
|
|
103
|
+
{
|
|
104
|
+
category: "body",
|
|
105
|
+
proportions: "m",
|
|
106
|
+
className: u(
|
|
107
|
+
t.labelDescription,
|
|
108
|
+
m && t.error,
|
|
109
|
+
o && t.disabled
|
|
110
|
+
),
|
|
111
|
+
children: D
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ n(
|
|
115
|
+
Y,
|
|
116
|
+
{
|
|
117
|
+
size: a ? "m" : "s",
|
|
118
|
+
variant: "outline",
|
|
119
|
+
className: a ? t.btnMobile : "",
|
|
120
|
+
disabled: o,
|
|
121
|
+
children: E
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
] })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
) });
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
le as FileUploader
|
|
131
|
+
};
|