@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,31 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as n, useState as g } from "react";
|
|
3
|
+
import { AlifProviderContext as f } from "./AlifProvider.context.js";
|
|
4
|
+
import { DEFAULT_MODE as h, DEFAULT_LOCALE as A } from "./AlifProvider.consts.js";
|
|
5
|
+
const m = (t, r) => {
|
|
6
|
+
const [e, o] = g(() => localStorage.getItem(t) || r);
|
|
7
|
+
return n(() => {
|
|
8
|
+
localStorage.setItem(t, e), document.documentElement.setAttribute(`data-${t}`, e);
|
|
9
|
+
}, [t, e]), [e, o];
|
|
10
|
+
}, C = ({
|
|
11
|
+
children: t,
|
|
12
|
+
initialMode: r = h,
|
|
13
|
+
initialLocale: e = A,
|
|
14
|
+
brand: o = "alif"
|
|
15
|
+
}) => {
|
|
16
|
+
const [l, s] = m("theme", r), [c, i] = m(
|
|
17
|
+
"locale",
|
|
18
|
+
e
|
|
19
|
+
);
|
|
20
|
+
return n(() => {
|
|
21
|
+
document.documentElement.setAttribute("data-brand", o);
|
|
22
|
+
}, [o]), /* @__PURE__ */ d(f, { value: { mode: l, toggleMode: () => {
|
|
23
|
+
const a = document.documentElement;
|
|
24
|
+
s((u) => u === "light" ? "dark" : "light"), a.classList.add("themeChanging"), requestAnimationFrame(() => {
|
|
25
|
+
a.classList.remove("themeChanging");
|
|
26
|
+
});
|
|
27
|
+
}, locale: c, setLocale: i }, children: t });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
C as AlifProvider
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DEFAULT_LOCALE as o } from "../AlifProvider/AlifProvider.consts.js";
|
|
2
|
+
class n {
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
translations = {};
|
|
5
|
+
locale = o;
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
cache = {};
|
|
8
|
+
ready = !1;
|
|
9
|
+
constructor() {
|
|
10
|
+
if (typeof window < "u") {
|
|
11
|
+
const t = localStorage.getItem("locale");
|
|
12
|
+
t && (this.locale = t);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async init() {
|
|
16
|
+
this.ready || (await this.load(this.locale), this.ready = !0);
|
|
17
|
+
}
|
|
18
|
+
async load(t) {
|
|
19
|
+
if (!(t === this.locale && Object.keys(this.translations).length > 0)) {
|
|
20
|
+
if (this.cache[t]) {
|
|
21
|
+
this.translations = this.cache[t], this.locale = t;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const a = await fetch(`/locales/${t}.json`);
|
|
26
|
+
if (!a.ok) throw new Error(`Failed to fetch: ${a.status}`);
|
|
27
|
+
const s = await a.json();
|
|
28
|
+
this.cache[t] = s, this.translations = s, this.locale = t;
|
|
29
|
+
} catch (a) {
|
|
30
|
+
console.error(`Failed to load ${t} translations`, a), this.translations = {};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
t(t) {
|
|
35
|
+
const a = t.split(".");
|
|
36
|
+
let s = this.translations;
|
|
37
|
+
for (const i of a)
|
|
38
|
+
if (s && typeof s == "object" && i in s)
|
|
39
|
+
s = s[i];
|
|
40
|
+
else
|
|
41
|
+
return t;
|
|
42
|
+
return typeof s == "string" ? s : t;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const c = new n();
|
|
46
|
+
export {
|
|
47
|
+
c as localization
|
|
48
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useAlifProviderContext as c } from "../../AlifProvider/AlifProvider.context.js";
|
|
2
|
+
import { localization as n } from "../localization.js";
|
|
3
|
+
const g = () => {
|
|
4
|
+
const { locale: t, setLocale: e } = c();
|
|
5
|
+
return { t: (o) => n.t(o), language: t, changeLanguage: async (o) => {
|
|
6
|
+
const a = typeof o == "function" ? o(t) : o;
|
|
7
|
+
await n.load(a), e(a);
|
|
8
|
+
} };
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
g as useTranslation
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as x, useContext as c } from "react";
|
|
3
|
+
function C(o) {
|
|
4
|
+
const e = x(null);
|
|
5
|
+
return [({
|
|
6
|
+
children: t,
|
|
7
|
+
value: r
|
|
8
|
+
}) => /* @__PURE__ */ n(e.Provider, { value: r, children: t }), () => {
|
|
9
|
+
const t = c(e);
|
|
10
|
+
if (t === null)
|
|
11
|
+
throw new Error(o);
|
|
12
|
+
return t;
|
|
13
|
+
}];
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
C as createSafeContext
|
|
17
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function n(t, e = "size") {
|
|
2
|
+
if (t !== void 0)
|
|
3
|
+
return `var(--${e}-${t})`;
|
|
4
|
+
}
|
|
5
|
+
function r(t) {
|
|
6
|
+
return n(t, "border-radius");
|
|
7
|
+
}
|
|
8
|
+
function i(t) {
|
|
9
|
+
return n(t, "font-size");
|
|
10
|
+
}
|
|
11
|
+
function o(t) {
|
|
12
|
+
return n(t, "line-height");
|
|
13
|
+
}
|
|
14
|
+
function u(t) {
|
|
15
|
+
if (t)
|
|
16
|
+
return n(t, "box-shadow");
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
i as getFontSize,
|
|
20
|
+
o as getLineHeight,
|
|
21
|
+
r as getRadius,
|
|
22
|
+
u as getShadow,
|
|
23
|
+
n as getSize
|
|
24
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
display: {
|
|
3
|
+
l: {
|
|
4
|
+
fontSize: "var(--font-size-display-l)",
|
|
5
|
+
lineHeight: "var(--font-line-height-display-l)",
|
|
6
|
+
letterSpacing: "var(--font-letter-spacing-display-l)",
|
|
7
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
8
|
+
},
|
|
9
|
+
lStrong: {
|
|
10
|
+
fontSize: "var(--font-size-display-l-strong)",
|
|
11
|
+
lineHeight: "var(--font-line-height-display-l-strong)",
|
|
12
|
+
letterSpacing: "var(--font-letter-spacing-display-l-strong)",
|
|
13
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
14
|
+
},
|
|
15
|
+
m: {
|
|
16
|
+
fontSize: "var(--font-size-display-m)",
|
|
17
|
+
lineHeight: "var(--font-line-height-display-m)",
|
|
18
|
+
letterSpacing: "var(--font-letter-spacing-display-m)",
|
|
19
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
20
|
+
},
|
|
21
|
+
mStrong: {
|
|
22
|
+
fontSize: "var(--font-size-display-m-strong)",
|
|
23
|
+
lineHeight: "var(--font-line-height-display-m-strong)",
|
|
24
|
+
letterSpacing: "var(--font-letter-spacing-display-m-strong)",
|
|
25
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
26
|
+
},
|
|
27
|
+
s: {
|
|
28
|
+
fontSize: "var(--font-size-display-s)",
|
|
29
|
+
lineHeight: "var(--font-line-height-display-s)",
|
|
30
|
+
letterSpacing: "var(--font-letter-spacing-display-s)",
|
|
31
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
32
|
+
},
|
|
33
|
+
sStrong: {
|
|
34
|
+
fontSize: "var(--font-size-display-s-strong)",
|
|
35
|
+
lineHeight: "var(--font-line-height-display-s-strong)",
|
|
36
|
+
letterSpacing: "var(--font-letter-spacing-display-s-strong)",
|
|
37
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
heading: {
|
|
41
|
+
h1: {
|
|
42
|
+
fontSize: "var(--font-size-heading-h1)",
|
|
43
|
+
lineHeight: "var(--font-line-height-heading-h1)",
|
|
44
|
+
letterSpacing: "var(--font-letter-spacing-heading-h1)",
|
|
45
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
46
|
+
},
|
|
47
|
+
h2: {
|
|
48
|
+
fontSize: "var(--font-size-heading-h2)",
|
|
49
|
+
lineHeight: "var(--font-line-height-heading-h2)",
|
|
50
|
+
letterSpacing: "var(--font-letter-spacing-heading-h2)",
|
|
51
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
52
|
+
},
|
|
53
|
+
h3: {
|
|
54
|
+
fontSize: "var(--font-size-heading-h3)",
|
|
55
|
+
lineHeight: "var(--font-line-height-heading-h3)",
|
|
56
|
+
letterSpacing: "var(--font-letter-spacing-heading-h3)",
|
|
57
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
58
|
+
},
|
|
59
|
+
h4: {
|
|
60
|
+
fontSize: "var(--font-size-heading-h4)",
|
|
61
|
+
lineHeight: "var(--font-line-height-heading-h4)",
|
|
62
|
+
letterSpacing: "var(--font-letter-spacing-heading-h4)",
|
|
63
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
64
|
+
},
|
|
65
|
+
h5: {
|
|
66
|
+
fontSize: "var(--font-size-heading-h5)",
|
|
67
|
+
lineHeight: "var(--font-line-height-heading-h5)",
|
|
68
|
+
letterSpacing: "var(--font-letter-spacing-heading-h5)",
|
|
69
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
70
|
+
},
|
|
71
|
+
h6: {
|
|
72
|
+
fontSize: "var(--font-size-heading-h6)",
|
|
73
|
+
lineHeight: "var(--font-line-height-heading-h6)",
|
|
74
|
+
letterSpacing: "var(--font-letter-spacing-heading-h6)",
|
|
75
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
76
|
+
},
|
|
77
|
+
h7: {
|
|
78
|
+
fontSize: "var(--font-size-heading-h7)",
|
|
79
|
+
lineHeight: "var(--font-line-height-heading-h7)",
|
|
80
|
+
letterSpacing: "var(--font-letter-spacing-heading-h7)",
|
|
81
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
82
|
+
},
|
|
83
|
+
h8: {
|
|
84
|
+
fontSize: "var(--font-size-heading-h8)",
|
|
85
|
+
lineHeight: "var(--font-line-height-heading-h8)",
|
|
86
|
+
letterSpacing: "var(--font-letter-spacing-heading-h8)",
|
|
87
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
88
|
+
},
|
|
89
|
+
h9: {
|
|
90
|
+
fontSize: "var(--font-size-heading-h9)",
|
|
91
|
+
lineHeight: "var(--font-line-height-heading-h9)",
|
|
92
|
+
letterSpacing: "var(--font-letter-spacing-heading-h9)",
|
|
93
|
+
fontWeight: "var(--font-weight-bold, 720)"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
description: {
|
|
97
|
+
l: {
|
|
98
|
+
fontSize: "var(--font-size-description-l)",
|
|
99
|
+
lineHeight: "var(--font-line-height-description-l)",
|
|
100
|
+
letterSpacing: "var(--font-letter-spacing-description-l)",
|
|
101
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
102
|
+
},
|
|
103
|
+
lStrong: {
|
|
104
|
+
fontSize: "var(--font-size-description-l-strong)",
|
|
105
|
+
lineHeight: "var(--font-line-height-description-l-strong)",
|
|
106
|
+
letterSpacing: "var(--font-letter-spacing-description-l-strong)",
|
|
107
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
108
|
+
},
|
|
109
|
+
m: {
|
|
110
|
+
fontSize: "var(--font-size-description-m)",
|
|
111
|
+
lineHeight: "var(--font-line-height-description-m)",
|
|
112
|
+
letterSpacing: "var(--font-letter-spacing-description-m)",
|
|
113
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
114
|
+
},
|
|
115
|
+
mStrong: {
|
|
116
|
+
fontSize: "var(--font-size-description-m-strong)",
|
|
117
|
+
lineHeight: "var(--font-line-height-description-m-strong)",
|
|
118
|
+
letterSpacing: "var(--font-letter-spacing-description-m-strong)",
|
|
119
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
120
|
+
},
|
|
121
|
+
s: {
|
|
122
|
+
fontSize: "var(--font-size-description-s)",
|
|
123
|
+
lineHeight: "var(--font-line-height-description-s)",
|
|
124
|
+
letterSpacing: "var(--font-letter-spacing-description-s)",
|
|
125
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
126
|
+
},
|
|
127
|
+
sStrong: {
|
|
128
|
+
fontSize: "var(--font-size-description-s-strong)",
|
|
129
|
+
lineHeight: "var(--font-line-height-description-s-strong)",
|
|
130
|
+
letterSpacing: "var(--font-letter-spacing-description-s-strong)",
|
|
131
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
132
|
+
},
|
|
133
|
+
sTag: {
|
|
134
|
+
fontSize: "var(--font-size-description-s-tag)",
|
|
135
|
+
lineHeight: "var(--font-line-height-description-s-tag)",
|
|
136
|
+
letterSpacing: "var(--font-letter-spacing-description-s-tag)",
|
|
137
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
body: {
|
|
141
|
+
l: {
|
|
142
|
+
fontSize: "var(--font-size-body-l)",
|
|
143
|
+
lineHeight: "var(--font-line-height-body-l)",
|
|
144
|
+
letterSpacing: "var(--font-letter-spacing-body-l)",
|
|
145
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
146
|
+
},
|
|
147
|
+
lStrong: {
|
|
148
|
+
fontSize: "var(--font-size-body-l-strong)",
|
|
149
|
+
lineHeight: "var(--font-line-height-body-l-strong)",
|
|
150
|
+
letterSpacing: "var(--font-letter-spacing-body-l-strong)",
|
|
151
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
152
|
+
},
|
|
153
|
+
m: {
|
|
154
|
+
fontSize: "var(--font-size-body-m)",
|
|
155
|
+
lineHeight: "var(--font-line-height-body-m)",
|
|
156
|
+
letterSpacing: "var(--font-letter-spacing-body-m)",
|
|
157
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
158
|
+
},
|
|
159
|
+
mStrong: {
|
|
160
|
+
fontSize: "var(--font-size-body-m-strong)",
|
|
161
|
+
lineHeight: "var(--font-line-height-body-m-strong)",
|
|
162
|
+
letterSpacing: "var(--font-letter-spacing-body-m-strong)",
|
|
163
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
164
|
+
},
|
|
165
|
+
s: {
|
|
166
|
+
fontSize: "var(--font-size-body-s)",
|
|
167
|
+
lineHeight: "var(--font-line-height-body-s)",
|
|
168
|
+
letterSpacing: "var(--font-letter-spacing-body-s)",
|
|
169
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
170
|
+
},
|
|
171
|
+
sStrong: {
|
|
172
|
+
fontSize: "var(--font-size-body-s-strong)",
|
|
173
|
+
lineHeight: "var(--font-line-height-body-s-strong)",
|
|
174
|
+
letterSpacing: "var(--font-letter-spacing-body-s-strong)",
|
|
175
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
176
|
+
},
|
|
177
|
+
xs: {
|
|
178
|
+
fontSize: "var(--font-size-body-xs)",
|
|
179
|
+
lineHeight: "var(--font-line-height-body-xs)",
|
|
180
|
+
letterSpacing: "var(--font-letter-spacing-body-xs)",
|
|
181
|
+
fontWeight: "var(--font-weight-regular, 400)"
|
|
182
|
+
},
|
|
183
|
+
xsStrong: {
|
|
184
|
+
fontSize: "var(--font-size-body-xs-strong)",
|
|
185
|
+
lineHeight: "var(--font-line-height-body-xs-strong)",
|
|
186
|
+
letterSpacing: "var(--font-letter-spacing-body-xs-strong)",
|
|
187
|
+
fontWeight: "var(--font-weight-medium, 550)"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}, n = {
|
|
191
|
+
description: "var(--font-family-description)",
|
|
192
|
+
body: "var(--font-family-body)",
|
|
193
|
+
display: "var(--font-family-display)",
|
|
194
|
+
heading: "var(--font-family-heading)"
|
|
195
|
+
}, o = (t, e) => ({
|
|
196
|
+
...i[t][e],
|
|
197
|
+
fontFamily: n[t]
|
|
198
|
+
});
|
|
199
|
+
export {
|
|
200
|
+
o as resolveTypography
|
|
201
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const e = (n, o, t, c) => {
|
|
2
|
+
(n && (o || t) || !n && !c && (o || t)) && console.warn(
|
|
3
|
+
"1.Убедитесь, что флаг isIconBtn всегда установлен, если кнопка предназначена только для иконки. 2.Если флаг isIconBtn установлен используйте только children, а не leftSection / rightSection."
|
|
4
|
+
);
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
e as validateIconButtonProps
|
|
8
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alif-ui-test/core",
|
|
3
|
+
"description": "Core UI components for Alif UI design system",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"ui kit react",
|
|
6
|
+
"alif ui",
|
|
7
|
+
"react alif ui kit",
|
|
8
|
+
"ui",
|
|
9
|
+
"react",
|
|
10
|
+
"typescript",
|
|
11
|
+
"design system"
|
|
12
|
+
],
|
|
13
|
+
"author": "Alif Bank's frontend team",
|
|
14
|
+
"homepage": "https://github.com/alifcapital/alif-ui#readme",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/alifcapital/alif-ui.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/alifcapital/alif-ui/issues"
|
|
21
|
+
},
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"private": false,
|
|
24
|
+
"version": "1.11.0",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"main": "./dist/main.js",
|
|
34
|
+
"module": "./dist/main.js",
|
|
35
|
+
"style": "./dist/core.css",
|
|
36
|
+
"types": "./dist/main.d.ts",
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"import": "./dist/main.js",
|
|
41
|
+
"types": "./dist/main.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./styles.css": {
|
|
44
|
+
"default": "./dist/core.css"
|
|
45
|
+
},
|
|
46
|
+
"./components": {
|
|
47
|
+
"import": "./dist/components/index.js",
|
|
48
|
+
"types": "./dist/components/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./icons": {
|
|
51
|
+
"import": "./dist/icons/index.js",
|
|
52
|
+
"types": "./dist/icons/index.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./utils": {
|
|
55
|
+
"import": "./dist/utils/index.js",
|
|
56
|
+
"types": "./dist/utils/index.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./hooks": {
|
|
59
|
+
"import": "./dist/hooks/index.js",
|
|
60
|
+
"types": "./dist/hooks/index.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"./providers": {
|
|
63
|
+
"import": "./dist/providers/index.js",
|
|
64
|
+
"types": "./dist/providers/index.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./types": {
|
|
67
|
+
"import": "./dist/types/index.js",
|
|
68
|
+
"types": "./dist/types/index.d.ts"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "vite build --config ./vite.config.ts",
|
|
73
|
+
"dev": "vite",
|
|
74
|
+
"preview": "vite preview",
|
|
75
|
+
"lint:fix": "eslint --fix --no-error-on-unmatched-pattern '**/*.{jsx,ts,tsx}'",
|
|
76
|
+
"lint": "npm run eslint && npm run stylelint",
|
|
77
|
+
"stylelint": "stylelint \"**/*.css\" --fix",
|
|
78
|
+
"eslint": "eslint --ext .ts,.tsx --fix",
|
|
79
|
+
"format": "prettier --no-error-on-unmatched-pattern --write **/*.{jsx,ts,tsx}",
|
|
80
|
+
"test": "jest --config ../../../config/jest/jest.config.root.json",
|
|
81
|
+
"publish:core": "npm publish",
|
|
82
|
+
"version:patch": "npm version patch",
|
|
83
|
+
"version:minor": "npm version minor",
|
|
84
|
+
"version:major": "npm version major"
|
|
85
|
+
}
|
|
86
|
+
}
|