@itcase/ui 1.4.13 → 1.5.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/dist/{Badge-DnWTbwXq.js → Badge-CURAYlMs.js} +28 -28
- package/dist/{Badge-BxT2_kz_.js → Badge-LjfcZycz.js} +29 -29
- package/dist/{Button-xYLCmT3D.js → Button-CMB-ELfe.js} +15 -15
- package/dist/{Button-BiJZz4Bx.js → Button-iPtstCWk.js} +14 -14
- package/dist/{Divider-ImOOytuN.js → Divider-D8hUUrwe.js} +1 -1
- package/dist/{Divider-BQcBkzt1.js → Divider-DhXzYcNF.js} +2 -2
- package/dist/DropdownItem-C8CumsgX.js +117 -0
- package/dist/DropdownItem-CBJeJPbP.js +122 -0
- package/dist/{Group-qq4Iisll.js → Group-BVlu5z77.js} +7 -3
- package/dist/{Group-BICb8bYQ.js → Group-OkygpKiJ.js} +7 -3
- package/dist/{Icon-BcBOnVKH.js → Icon-Ch-L2dOj.js} +9 -7
- package/dist/Icon-CoBJRPlP.js +63 -0
- package/dist/Image-CSzHhlA1.js +17 -0
- package/dist/Image-DuIBtUq5.js +19 -0
- package/dist/{Input-DHJIVk1z.js → Input-ChiH90mV.js} +33 -30
- package/dist/{Input-DiFnIFT7.js → Input-e0kLrbs6.js} +33 -30
- package/dist/{Label-D-LcvthP.js → Label-CP8IAPOM.js} +5 -5
- package/dist/{Label-y2hx5Q81.js → Label-CfE08vBy.js} +6 -6
- package/dist/{Link-BnqN6ysn.js → Link-C04g00r2.js} +18 -11
- package/dist/{Link-DaKqf1pb.js → Link-Sr03Kia9.js} +19 -13
- package/dist/{Loader-VK3q7PBN.js → Loader-CRN4MAbm.js} +2 -2
- package/dist/{Loader-DdKHrLnw.js → Loader-rzo8nnRI.js} +1 -1
- package/dist/{Overlay-CZixnXZ6.js → Overlay-CRIofShk.js} +6 -3
- package/dist/{Overlay-Myen2mqz.js → Overlay-CZFSerUl.js} +6 -3
- package/dist/{Scrollbar-Bo7z7ELm.js → Scrollbar-CThJeCLF.js} +4 -4
- package/dist/{Scrollbar-CKbA0jQU.js → Scrollbar-DcKOfcNp.js} +4 -4
- package/dist/{Text-C49zj3jO.js → Text-CEcBg-F5.js} +6 -3
- package/dist/{Text-C6NSmetx.js → Text-CI2prtf6.js} +6 -3
- package/dist/{Title-BLGDdlnX.js → Title-C4xUtigh.js} +12 -2
- package/dist/{Title-Byi9vhDt.js → Title-CaXw1KBQ.js} +13 -3
- package/dist/{Tooltip-5lQyt5-Y.js → Tooltip-EOu0a93a.js} +9 -9
- package/dist/{Tooltip-DRta8lK_.js → Tooltip-Lhx-Fefx.js} +8 -8
- package/dist/cjs/components/Accordion.js +17 -9
- package/dist/cjs/components/Avatar.js +9 -6
- package/dist/cjs/components/Badge.js +9 -6
- package/dist/cjs/components/Breadcrumbs.js +11 -8
- package/dist/cjs/components/Button.js +10 -7
- package/dist/cjs/components/Cell.js +18 -13
- package/dist/cjs/components/Checkbox.js +8 -5
- package/dist/cjs/components/Checkmark.js +5 -3
- package/dist/cjs/components/Chips.js +35 -17
- package/dist/cjs/components/Choice.js +23 -17
- package/dist/cjs/components/Code.js +9 -4
- package/dist/cjs/components/CookiesWarning.js +13 -10
- package/dist/cjs/components/DadataHintField.js +9 -4
- package/dist/cjs/components/DatePicker.js +24 -42
- package/dist/cjs/components/Divider.js +4 -1
- package/dist/cjs/components/Dot.js +3 -0
- package/dist/cjs/components/Drawer.js +3 -3
- package/dist/cjs/components/Dropdown.js +6 -4
- package/dist/cjs/components/Flex.js +7 -4
- package/dist/cjs/components/Grid.js +12 -9
- package/dist/cjs/components/Group.js +5 -2
- package/dist/cjs/components/HTMLContent.js +5 -2
- package/dist/cjs/components/HeroTitle.js +12 -6
- package/dist/cjs/components/Icon.js +8 -5
- package/dist/cjs/components/Image.js +4 -1
- package/dist/cjs/components/Input.js +5 -2
- package/dist/cjs/components/InputMask.js +11 -6
- package/dist/cjs/components/InputPassword.js +34 -28
- package/dist/cjs/components/Label.js +7 -4
- package/dist/cjs/components/Link.js +6 -5
- package/dist/cjs/components/List.js +6 -3
- package/dist/cjs/components/Loader.js +5 -2
- package/dist/cjs/components/Logo.js +7 -4
- package/dist/cjs/components/MenuItem.js +15 -13
- package/dist/cjs/components/Modal.js +11 -8
- package/dist/cjs/components/ModalSheetBottom.js +5 -2
- package/dist/cjs/components/Notification.js +15 -14
- package/dist/cjs/components/Overlay.js +5 -2
- package/dist/cjs/components/Pagination.js +54 -33
- package/dist/cjs/components/Panel.js +13 -8
- package/dist/cjs/components/Radio.js +15 -11
- package/dist/cjs/components/RangeSlider.js +8 -3
- package/dist/cjs/components/Response.js +15 -12
- package/dist/cjs/components/SVGContent.js +3 -0
- package/dist/cjs/components/ScrollOnDrag.js +4 -1
- package/dist/cjs/components/ScrollToView.js +7 -2
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +20 -15
- package/dist/cjs/components/Segmented.js +20 -20
- package/dist/cjs/components/Select.js +28 -21
- package/dist/cjs/components/Swiper.js +7 -4
- package/dist/cjs/components/Switch.js +25 -6
- package/dist/cjs/components/Tab.js +14 -11
- package/dist/cjs/components/Text.js +5 -2
- package/dist/cjs/components/Textarea.js +26 -20
- package/dist/cjs/components/Tile.js +12 -10
- package/dist/cjs/components/Title.js +4 -1
- package/dist/cjs/components/Tooltip.js +6 -3
- package/dist/cjs/components/Video.js +4 -1
- package/dist/cjs/context/Notifications.js +2 -2
- package/dist/cjs/context/UIContext.js +2 -2
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +3 -0
- package/dist/cjs/hooks/useDevicePropsGenerator.js +4 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +3 -0
- package/dist/cjs/hooks/useStyles.js +4 -1
- package/dist/cjs/hooks/useViewportFix.js +1 -1
- package/dist/components/Accordion.js +18 -10
- package/dist/components/Avatar.js +10 -7
- package/dist/components/Badge.js +10 -7
- package/dist/components/Breadcrumbs.js +12 -9
- package/dist/components/Button.js +11 -8
- package/dist/components/Cell.js +18 -13
- package/dist/components/Checkbox.js +9 -6
- package/dist/components/Checkmark.js +6 -4
- package/dist/components/Chips.js +36 -18
- package/dist/components/Choice.js +23 -17
- package/dist/components/Code.js +10 -5
- package/dist/components/CookiesWarning.js +14 -11
- package/dist/components/DadataHintField.js +10 -5
- package/dist/components/DatePicker.js +25 -43
- package/dist/components/Divider.js +5 -2
- package/dist/components/Dot.js +4 -1
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Dropdown.js +7 -5
- package/dist/components/Flex.js +8 -5
- package/dist/components/Grid.js +13 -10
- package/dist/components/Group.js +5 -2
- package/dist/components/HTMLContent.js +6 -3
- package/dist/components/HeroTitle.js +12 -6
- package/dist/components/Icon.js +9 -6
- package/dist/components/Image.js +5 -2
- package/dist/components/Input.js +5 -2
- package/dist/components/InputMask.js +11 -6
- package/dist/components/InputPassword.js +34 -28
- package/dist/components/Label.js +8 -5
- package/dist/components/Link.js +5 -8
- package/dist/components/List.js +7 -4
- package/dist/components/Loader.js +6 -3
- package/dist/components/Logo.js +8 -5
- package/dist/components/MenuItem.js +15 -13
- package/dist/components/Modal.js +12 -9
- package/dist/components/ModalSheetBottom.js +6 -3
- package/dist/components/Notification.js +16 -15
- package/dist/components/Overlay.js +5 -2
- package/dist/components/Pagination.js +54 -33
- package/dist/components/Panel.js +13 -8
- package/dist/components/Radio.js +15 -11
- package/dist/components/RangeSlider.js +9 -4
- package/dist/components/Response.js +16 -13
- package/dist/components/SVGContent.js +4 -1
- package/dist/components/ScrollOnDrag.js +5 -2
- package/dist/components/ScrollToView.js +8 -3
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +20 -15
- package/dist/components/Segmented.js +20 -20
- package/dist/components/Select.js +29 -22
- package/dist/components/Swiper.js +8 -5
- package/dist/components/Switch.js +25 -6
- package/dist/components/Tab.js +15 -12
- package/dist/components/Text.js +5 -2
- package/dist/components/Textarea.js +26 -20
- package/dist/components/Tile.js +13 -11
- package/dist/components/Title.js +5 -2
- package/dist/components/Tooltip.js +7 -4
- package/dist/components/Video.js +4 -1
- package/dist/context/Notifications.js +3 -3
- package/dist/context/UIContext.js +3 -3
- package/dist/css/components/Accordion/Accordion.css +7 -5
- package/dist/css/components/Avatar/Avatar.css +5 -5
- package/dist/css/components/Checkbox/Checkbox.css +1 -1
- package/dist/css/components/Checkmark/Checkmark.css +24 -1
- package/dist/css/components/Chips/Chips.css +2 -2
- package/dist/css/components/Choice/Choice.css +3 -3
- package/dist/css/components/Code/Code.css +26 -2
- package/dist/css/components/DatePicker/DatePicker.css +23 -33
- package/dist/css/components/Divider/Divider.css +3 -3
- package/dist/css/components/Dot/Dot.css +6 -6
- package/dist/css/components/Drawer/Drawer.css +4 -1
- package/dist/css/components/Dropdown/Dropdown.css +13 -13
- package/dist/css/components/Icon/Icon.css +5 -1
- package/dist/css/components/Image/Image.css +6 -3
- package/dist/css/components/Input/Input.css +21 -35
- package/dist/css/components/InputMask/Input.css +6 -6
- package/dist/css/components/InputPassword/InputPassword.css +2 -2
- package/dist/css/components/Label/Label.css +3 -3
- package/dist/css/components/List/List.css +8 -7
- package/dist/css/components/Loader/Loader.css +0 -2
- package/dist/css/components/Logo/Logo.css +1 -1
- package/dist/css/components/MenuItem/MenuItem.css +24 -6
- package/dist/css/components/Modal/Modal.css +2 -2
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +1 -1
- package/dist/css/components/Notification/Notification.css +22 -10
- package/dist/css/components/Notification/css/__item/notification__item_set_float.css +2 -2
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +5 -5
- package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +2 -2
- package/dist/css/components/Notification/css/__item/notification__item_set_top.css +1 -1
- package/dist/css/components/Overlay/Overlay.css +5 -1
- package/dist/css/components/Pagination/Pagination.css +16 -8
- package/dist/css/components/Pagination/css/__item/pagination__item.css +7 -4
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +4 -1
- package/dist/css/components/Pagination/css/__item/pagination__item_state_disabled.css +1 -1
- package/dist/css/components/Radio/Radio.css +9 -4
- package/dist/css/components/RangeSlider/RangeSlider.css +14 -8
- package/dist/css/components/ScrollToView/ScrollToView.css +2 -2
- package/dist/css/components/Search/Search.css +16 -8
- package/dist/css/components/Search/css/search-input/search-input_shape.css +1 -1
- package/dist/css/components/Search/css/search-input/search-input_size.css +1 -1
- package/dist/css/components/Segmented/Segmented.css +10 -7
- package/dist/css/components/Select/Select.css +10 -10
- package/dist/css/components/Select/css/__control/select__control_shape.css +1 -1
- package/dist/css/components/Select/css/__input-container/select__input-container.css +3 -3
- package/dist/css/components/Select/css/__menu/select__menu-list-item_size.css +2 -2
- package/dist/css/components/Select/css/__menu/select__menu.css +2 -2
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +2 -2
- package/dist/css/components/Switch/Switch.css +19 -1
- package/dist/css/components/Tab/Tab.css +2 -2
- package/dist/css/components/Text/Text.css +1 -1
- package/dist/css/components/Textarea/Textarea.css +2 -2
- package/dist/css/components/Tile/Tile.css +16 -7
- package/dist/css/components/Tooltip/Tooltip.css +16 -2
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +4 -1
- package/dist/hooks/useDevicePropsGenerator.js +5 -2
- package/dist/hooks/useDeviceTargetClass.js +1 -1
- package/dist/hooks/useStyles/useStyles.js +4 -1
- package/dist/hooks/useStyles.js +5 -2
- package/dist/hooks/useViewportFix.js +1 -1
- package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
- package/dist/types/components/Accordion/Accordion.appearance.d.ts +3 -3
- package/dist/types/components/Accordion/Accordion.d.ts +3 -3
- package/dist/types/components/Accordion/Accordion.interface.d.ts +60 -61
- package/dist/types/components/Accordion/AccordionItem.d.ts +3 -3
- package/dist/types/components/Avatar/Avatar.appearance.d.ts +2 -2
- package/dist/types/components/Avatar/Avatar.d.ts +3 -3
- package/dist/types/components/Avatar/Avatar.interface.d.ts +24 -25
- package/dist/types/components/Badge/Badge.appearance.d.ts +2 -2
- package/dist/types/components/Badge/Badge.d.ts +3 -3
- package/dist/types/components/Badge/Badge.interface.d.ts +21 -22
- package/dist/types/components/Badge/appearance/badgeAccent.d.ts +3 -3
- package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeError.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeInfo.d.ts +2 -2
- package/dist/types/components/Badge/appearance/badgePrimary.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeSize.d.ts +7 -7
- package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeSurface.d.ts +7 -7
- package/dist/types/components/Badge/appearance/badgeWarning.d.ts +1 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +49 -49
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +2 -2
- package/dist/types/components/Button/Button.appearance.d.ts +2 -2
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Button/Button.interface.d.ts +44 -45
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +10 -10
- package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
- package/dist/types/components/Cell/Cell.d.ts +3 -3
- package/dist/types/components/Cell/Cell.interface.d.ts +40 -41
- package/dist/types/components/Checkbox/Checkbox.appearance.d.ts +3 -3
- package/dist/types/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +36 -37
- package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +2 -2
- package/dist/types/components/Checkmark/Checkmark.d.ts +3 -3
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +15 -17
- package/dist/types/components/Chips/Chips.appearance.d.ts +2 -2
- package/dist/types/components/Chips/Chips.d.ts +3 -3
- package/dist/types/components/Chips/Chips.interface.d.ts +30 -31
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +4 -0
- package/dist/types/components/Choice/Choice.appearance.d.ts +2 -2
- package/dist/types/components/Choice/Choice.d.ts +3 -3
- package/dist/types/components/Choice/Choice.interface.d.ts +35 -36
- package/dist/types/components/Code/Code.appearance.d.ts +2 -2
- package/dist/types/components/Code/Code.d.ts +3 -3
- package/dist/types/components/Code/Code.interface.d.ts +31 -32
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +2 -2
- package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +10 -10
- package/dist/types/components/DadataHintField/DadataHintField.d.ts +2 -2
- package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +2 -2
- package/dist/types/components/DatePicker/DatePicker.d.ts +3 -3
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +71 -72
- package/dist/types/components/Divider/Divider.d.ts +3 -3
- package/dist/types/components/Divider/Divider.interface.d.ts +29 -30
- package/dist/types/components/Dot/Dot.d.ts +2 -2
- package/dist/types/components/Dot/Dot.interface.d.ts +21 -21
- package/dist/types/components/Drawer/Drawer.appearance.d.ts +2 -2
- package/dist/types/components/Drawer/Drawer.d.ts +3 -3
- package/dist/types/components/Drawer/Drawer.interface.d.ts +12 -12
- package/dist/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +51 -53
- package/dist/types/components/Dropdown/DropdownItem.appearance.d.ts +2 -2
- package/dist/types/components/Dropdown/DropdownItem.d.ts +3 -3
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +25 -0
- package/dist/types/components/Flex/Flex.d.ts +2 -2
- package/dist/types/components/Flex/Flex.interface.d.ts +83 -83
- package/dist/types/components/Flex/FlexItem.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +2 -2
- package/dist/types/components/Grid/Grid.interface.d.ts +47 -47
- package/dist/types/components/Grid/GridItem.d.ts +2 -2
- package/dist/types/components/Grid/GridRow.d.ts +2 -2
- package/dist/types/components/Group/Group.appearance.d.ts +2 -2
- package/dist/types/components/Group/Group.d.ts +3 -3
- package/dist/types/components/Group/Group.interface.d.ts +28 -29
- package/dist/types/components/HTMLContent/HTMLContent.d.ts +2 -2
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +20 -20
- package/dist/types/components/HeroTitle/HeroTitle.appearance.d.ts +2 -2
- package/dist/types/components/HeroTitle/HeroTitle.d.ts +3 -3
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +27 -28
- package/dist/types/components/Icon/Icon.appearance.d.ts +2 -2
- package/dist/types/components/Icon/Icon.d.ts +3 -3
- package/dist/types/components/Icon/Icon.interface.d.ts +49 -50
- package/dist/types/components/Image/Image.d.ts +2 -2
- package/dist/types/components/Image/Image.interface.d.ts +10 -10
- package/dist/types/components/Input/Input.appearance.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts +3 -3
- package/dist/types/components/Input/Input.interface.d.ts +31 -33
- package/dist/types/components/InputMask/Input.d.ts +3 -3
- package/dist/types/components/InputMask/Input.interface.d.ts +31 -33
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +3 -3
- package/dist/types/components/InputPassword/InputPassword.d.ts +3 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +31 -33
- package/dist/types/components/Label/Label.appearance.d.ts +2 -2
- package/dist/types/components/Label/Label.d.ts +3 -3
- package/dist/types/components/Label/Label.interface.d.ts +31 -32
- package/dist/types/components/Link/Link.appearance.d.ts +2 -2
- package/dist/types/components/Link/Link.d.ts +4 -4
- package/dist/types/components/Link/Link.interface.d.ts +31 -32
- package/dist/types/components/List/List.d.ts +2 -2
- package/dist/types/components/List/List.interface.d.ts +13 -13
- package/dist/types/components/List/ListItem.d.ts +2 -2
- package/dist/types/components/Loader/Loader.d.ts +3 -3
- package/dist/types/components/Loader/Loader.interface.d.ts +18 -19
- package/dist/types/components/Logo/Logo.d.ts +3 -3
- package/dist/types/components/Logo/Logo.interface.d.ts +16 -17
- package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +2 -2
- package/dist/types/components/MenuItem/MenuItem.d.ts +3 -10
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +41 -42
- package/dist/types/components/Modal/Modal.appearance.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts +2 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +20 -21
- package/dist/types/components/Modal/ModalLoader.d.ts +1 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +4 -3
- package/dist/types/components/Notification/Notification.interface.d.ts +26 -27
- package/dist/types/components/Notification/NotificationItem.appearance.d.ts +2 -2
- package/dist/types/components/Notification/NotificationItem.d.ts +3 -3
- package/dist/types/components/Notification/NotificationList.d.ts +2 -2
- package/dist/types/components/Overlay/Overlay.appearance.d.ts +2 -2
- package/dist/types/components/Overlay/Overlay.d.ts +3 -3
- package/dist/types/components/Overlay/Overlay.interface.d.ts +14 -15
- package/dist/types/components/Pagination/Pagination.appearance.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.d.ts +3 -3
- package/dist/types/components/Pagination/Pagination.interface.d.ts +37 -38
- package/dist/types/components/Panel/Panel.d.ts +3 -3
- package/dist/types/components/Panel/Panel.interface.d.ts +33 -34
- package/dist/types/components/Radio/Radio.appearance.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +3 -3
- package/dist/types/components/Radio/Radio.interface.d.ts +34 -35
- package/dist/types/components/RangeSlider/RangeSlider.d.ts +2 -2
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/types/components/Response/Response.d.ts +3 -3
- package/dist/types/components/Response/Response.interface.d.ts +41 -42
- package/dist/types/components/SVGContent/SVGContent.d.ts +2 -2
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +5 -5
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.d.ts +2 -2
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +11 -11
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +2 -2
- package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/types/components/Search/Search.appearance.d.ts +2 -2
- package/dist/types/components/Search/Search.interface.d.ts +36 -37
- package/dist/types/components/Search/SearchInput.d.ts +3 -3
- package/dist/types/components/Segmented/Segmented.appearance.d.ts +2 -2
- package/dist/types/components/Segmented/Segmented.d.ts +3 -3
- package/dist/types/components/Segmented/Segmented.interface.d.ts +28 -29
- package/dist/types/components/Select/Select.appearance.d.ts +2 -2
- package/dist/types/components/Select/Select.interface.d.ts +48 -49
- package/dist/types/components/Select/SelectContainer.d.ts +3 -3
- package/dist/types/components/Swiper/Swiper.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.interface.d.ts +10 -10
- package/dist/types/components/Switch/Switch.appearance.d.ts +2 -2
- package/dist/types/components/Switch/Switch.d.ts +3 -3
- package/dist/types/components/Switch/Switch.interface.d.ts +11 -11
- package/dist/types/components/Tab/Tab.appearance.d.ts +2 -2
- package/dist/types/components/Tab/Tab.d.ts +3 -3
- package/dist/types/components/Tab/Tab.interface.d.ts +55 -56
- package/dist/types/components/Tab/TabGroup.d.ts +2 -2
- package/dist/types/components/Text/Text.appearance.d.ts +2 -2
- package/dist/types/components/Text/Text.d.ts +3 -3
- package/dist/types/components/Text/Text.interface.d.ts +33 -34
- package/dist/types/components/Textarea/Textarea.appearance.d.ts +3 -3
- package/dist/types/components/Textarea/Textarea.d.ts +3 -3
- package/dist/types/components/Textarea/Textarea.interface.d.ts +27 -29
- package/dist/types/components/Tile/Tile.appearance.d.ts +2 -2
- package/dist/types/components/Tile/Tile.d.ts +3 -3
- package/dist/types/components/Tile/Tile.interface.d.ts +32 -33
- package/dist/types/components/Title/Title.appearance.d.ts +2 -2
- package/dist/types/components/Title/Title.d.ts +3 -3
- package/dist/types/components/Title/Title.interface.d.ts +27 -28
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +2 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +26 -27
- package/dist/types/components/Video/Video.d.ts +2 -2
- package/dist/types/components/Video/Video.interface.d.ts +2 -2
- package/dist/types/context/Notifications.d.ts +4 -5
- package/dist/types/context/Notifications.interface.d.ts +14 -14
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +2 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +7 -7
- package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +80 -80
- package/package.json +7 -6
- package/dist/DropdownItem-B3E-_Cwp.js +0 -88
- package/dist/DropdownItem-Qg-_2YWD.js +0 -93
- package/dist/Icon-OJ_3E3eM.js +0 -61
- package/dist/Image-BEGwuGBM.js +0 -17
- package/dist/Image-DWfyapuD.js +0 -15
- package/dist/stories/Dev.mdx +0 -9
- package/dist/types/types/componentProps/align.d.ts +0 -2
- package/dist/types/types/componentProps/alignDirection.d.ts +0 -3
- package/dist/types/types/componentProps/alignment.d.ts +0 -3
- package/dist/types/types/componentProps/appearanceKeys.d.ts +0 -1
- package/dist/types/types/componentProps/borderColor.d.ts +0 -3
- package/dist/types/types/componentProps/borderColorHover.d.ts +0 -3
- package/dist/types/types/componentProps/borderType.d.ts +0 -3
- package/dist/types/types/componentProps/borderWidth.d.ts +0 -3
- package/dist/types/types/componentProps/direction.d.ts +0 -3
- package/dist/types/types/componentProps/elevation.d.ts +0 -3
- package/dist/types/types/componentProps/fill.d.ts +0 -3
- package/dist/types/types/componentProps/fillGradient.d.ts +0 -3
- package/dist/types/types/componentProps/fillHover.d.ts +0 -3
- package/dist/types/types/componentProps/fillType.d.ts +0 -3
- package/dist/types/types/componentProps/flexAlign.d.ts +0 -3
- package/dist/types/types/componentProps/flexGrow.d.ts +0 -3
- package/dist/types/types/componentProps/flexJustifyContent.d.ts +0 -3
- package/dist/types/types/componentProps/flexWrap.d.ts +0 -3
- package/dist/types/types/componentProps/gridAlign.d.ts +0 -3
- package/dist/types/types/componentProps/gridAlignSelf.d.ts +0 -3
- package/dist/types/types/componentProps/gridJustifyItems.d.ts +0 -3
- package/dist/types/types/componentProps/gridJustifySelf.d.ts +0 -3
- package/dist/types/types/componentProps/height.d.ts +0 -3
- package/dist/types/types/componentProps/horizontalContentAlign.d.ts +0 -3
- package/dist/types/types/componentProps/horizontalResizeMode.d.ts +0 -3
- package/dist/types/types/componentProps/iconFillSize.d.ts +0 -3
- package/dist/types/types/componentProps/iconSize.d.ts +0 -3
- package/dist/types/types/componentProps/itemColor.d.ts +0 -3
- package/dist/types/types/componentProps/justifyContent.d.ts +0 -3
- package/dist/types/types/componentProps/overflow.d.ts +0 -3
- package/dist/types/types/componentProps/position.d.ts +0 -3
- package/dist/types/types/componentProps/resizeMode.d.ts +0 -3
- package/dist/types/types/componentProps/shape.d.ts +0 -3
- package/dist/types/types/componentProps/size.d.ts +0 -3
- package/dist/types/types/componentProps/sizeOption.d.ts +0 -3
- package/dist/types/types/componentProps/sizePX.d.ts +0 -3
- package/dist/types/types/componentProps/stacking.d.ts +0 -3
- package/dist/types/types/componentProps/state.d.ts +0 -3
- package/dist/types/types/componentProps/stateKeys.d.ts +0 -1
- package/dist/types/types/componentProps/svgFill.d.ts +0 -3
- package/dist/types/types/componentProps/textAlign.d.ts +0 -3
- package/dist/types/types/componentProps/textColor.d.ts +0 -3
- package/dist/types/types/componentProps/textColorActive.d.ts +0 -3
- package/dist/types/types/componentProps/textColorHover.d.ts +0 -3
- package/dist/types/types/componentProps/textGradient.d.ts +0 -3
- package/dist/types/types/componentProps/textSize.d.ts +0 -3
- package/dist/types/types/componentProps/textStyle.d.ts +0 -3
- package/dist/types/types/componentProps/textTag.d.ts +0 -3
- package/dist/types/types/componentProps/textWeight.d.ts +0 -3
- package/dist/types/types/componentProps/textWrap.d.ts +0 -3
- package/dist/types/types/componentProps/titleSize.d.ts +0 -5
- package/dist/types/types/componentProps/type.d.ts +0 -3
- package/dist/types/types/componentProps/underline.d.ts +0 -3
- package/dist/types/types/componentProps/verticalContentAlign.d.ts +0 -3
- package/dist/types/types/componentProps/verticalResizeMode.d.ts +0 -3
- package/dist/types/types/componentProps/width.d.ts +0 -3
- package/dist/types/types/componentProps/wrap.d.ts +0 -3
- package/dist/types/types/index.d.ts +0 -55
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
1
2
|
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
4
|
-
import '../tslib.es6-5FtW-kfi.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'lodash/camelCase';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/upperFirst';
|
|
9
|
+
import '../context/Notifications.js';
|
|
10
|
+
import 'uuid';
|
|
11
|
+
import '@itcase/common';
|
|
9
12
|
import '../context/UIContext.js';
|
|
10
13
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
11
14
|
import 'react-responsive';
|
|
@@ -13,28 +16,24 @@ import '../utils/setViewportProperty.js';
|
|
|
13
16
|
|
|
14
17
|
var textareaAppearance = {
|
|
15
18
|
dev: {
|
|
19
|
+
size: 'm',
|
|
16
20
|
borderColor: 'surfaceBorderTertiary',
|
|
17
21
|
borderHover: 'surfaceBorderQuaternary',
|
|
18
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
19
|
-
shape: 'rounded',
|
|
20
|
-
size: 'm',
|
|
21
22
|
textColor: 'surfaceTextPrimary',
|
|
22
23
|
textSize: 'm',
|
|
24
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
25
|
+
shape: 'rounded',
|
|
23
26
|
},
|
|
24
27
|
};
|
|
25
28
|
var textareaState = {
|
|
26
|
-
|
|
27
|
-
borderColor: '
|
|
28
|
-
placeholderTextColor: 'secondaryTextSecondary',
|
|
29
|
-
},
|
|
30
|
-
activeFilled: {
|
|
31
|
-
borderColor: 'surfaceBorderActive',
|
|
29
|
+
filled: {
|
|
30
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
32
31
|
textColor: 'surfaceTextPrimary',
|
|
33
32
|
},
|
|
34
33
|
disabled: {
|
|
35
34
|
borderColor: 'surfaceBorderDisabled',
|
|
36
|
-
placeholderTextColor: 'surfaceTextDisabled',
|
|
37
35
|
textColor: 'surfaceTextPrimary',
|
|
36
|
+
placeholderTextColor: 'surfaceTextDisabled',
|
|
38
37
|
},
|
|
39
38
|
error: {
|
|
40
39
|
borderColor: 'errorBorderPrimary',
|
|
@@ -44,8 +43,16 @@ var textareaState = {
|
|
|
44
43
|
borderColor: 'errorBorderPrimary',
|
|
45
44
|
textColor: 'surfaceTextPrimary',
|
|
46
45
|
},
|
|
47
|
-
|
|
48
|
-
borderColor: '
|
|
46
|
+
success: {
|
|
47
|
+
borderColor: 'successBorderPrimary',
|
|
48
|
+
textColor: 'surfaceTextPrimary',
|
|
49
|
+
},
|
|
50
|
+
active: {
|
|
51
|
+
borderColor: 'surfaceBorderActive',
|
|
52
|
+
placeholderTextColor: 'secondaryTextSecondary',
|
|
53
|
+
},
|
|
54
|
+
activeFilled: {
|
|
55
|
+
borderColor: 'surfaceBorderActive',
|
|
49
56
|
textColor: 'surfaceTextPrimary',
|
|
50
57
|
},
|
|
51
58
|
normal: {
|
|
@@ -60,10 +67,6 @@ var textareaState = {
|
|
|
60
67
|
borderColor: 'surfaceBorderActive',
|
|
61
68
|
textColor: 'surfaceTextPrimary',
|
|
62
69
|
},
|
|
63
|
-
success: {
|
|
64
|
-
borderColor: 'successBorderPrimary',
|
|
65
|
-
textColor: 'surfaceTextPrimary',
|
|
66
|
-
},
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
var textareaConfig = {
|
|
@@ -84,11 +87,14 @@ function Textarea(props) {
|
|
|
84
87
|
// () => state && textareaConfig.state && textareaConfig.state[state],
|
|
85
88
|
// [state, textareaConfig],
|
|
86
89
|
// )
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
|
|
91
|
+
var _a;
|
|
92
|
+
return (__assign(__assign({}, resultAppearance), (_a = textareaConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
93
|
+
}, {});
|
|
89
94
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
90
95
|
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'm' : _a, widthClass = propsGenerator.widthClass;
|
|
91
|
-
return (jsx("textarea", { id: id, className: clsx(className, 'textarea', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), placeholderTextColorClass &&
|
|
96
|
+
return (jsx("textarea", { id: id, className: clsx(className, 'textarea', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), placeholderTextColorClass &&
|
|
97
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), sizeClass && "textarea_size_".concat(sizeClass), shapeClass && "textarea_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textColorClass && "text-color_".concat(textColorClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass)), disabled: disabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onKeyDown: onKeyDown }));
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
export { Textarea, textareaAppearance, textareaConfig, textareaState };
|
package/dist/components/Tile.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6-
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { B as Badge } from '../Badge-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
8
|
-
import { T as Title } from '../Title-
|
|
6
|
+
import { B as Badge } from '../Badge-LjfcZycz.js';
|
|
7
|
+
import { T as Text } from '../Text-CI2prtf6.js';
|
|
8
|
+
import { T as Title } from '../Title-CaXw1KBQ.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
13
|
+
import '../context/Notifications.js';
|
|
14
|
+
import 'uuid';
|
|
15
|
+
import '@itcase/common';
|
|
13
16
|
import '../context/UIContext.js';
|
|
14
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
18
|
import 'react-responsive';
|
|
16
19
|
import '../utils/setViewportProperty.js';
|
|
17
20
|
import 'lodash/maxBy';
|
|
18
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
|
-
import '../Icon-
|
|
22
|
+
import '../Icon-CoBJRPlP.js';
|
|
20
23
|
import 'react-inlinesvg';
|
|
21
|
-
import '../Link-
|
|
22
|
-
import '../Tooltip-
|
|
24
|
+
import '../Link-Sr03Kia9.js';
|
|
25
|
+
import '../Tooltip-EOu0a93a.js';
|
|
23
26
|
|
|
24
27
|
var tileAppearance = {
|
|
25
28
|
dev: {},
|
|
@@ -32,17 +35,16 @@ var tileConfig = {
|
|
|
32
35
|
},
|
|
33
36
|
};
|
|
34
37
|
function Tile(props) {
|
|
35
|
-
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction,
|
|
38
|
+
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, size = props.size, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
36
39
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
|
|
37
40
|
var _a;
|
|
38
41
|
return (__assign(__assign({}, resultApperance), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
39
42
|
}, {});
|
|
40
43
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
41
|
-
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass,
|
|
44
|
+
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
|
|
42
45
|
// @ts-expect-error
|
|
43
46
|
var tileStyles = useStyles(props).styles;
|
|
44
|
-
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass &&
|
|
45
|
-
"border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, size: titleTextSize, children: title })), text && (jsx(Text, { className: "tile__text", textColor: textColor, textWrap: textWrap, size: textSize, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, textColor: badgeTextColor, textSize: badgeTextSize, size: badgeSize, value: badge })), children, after] }) }));
|
|
47
|
+
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize, textColor: textColor, textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
export { Tile, tileAppearance, tileConfig };
|
package/dist/components/Title.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-
|
|
2
|
-
import '../tslib.es6-
|
|
1
|
+
export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-CaXw1KBQ.js';
|
|
2
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
+
import '../context/Notifications.js';
|
|
7
|
+
import 'uuid';
|
|
8
|
+
import '@itcase/common';
|
|
6
9
|
import '../context/UIContext.js';
|
|
7
10
|
import 'lodash/camelCase';
|
|
8
11
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-
|
|
2
|
-
import '../tslib.es6-
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-EOu0a93a.js';
|
|
2
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
@@ -7,6 +7,9 @@ import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
10
|
+
import '../context/Notifications.js';
|
|
11
|
+
import 'uuid';
|
|
12
|
+
import '@itcase/common';
|
|
10
13
|
import '../context/UIContext.js';
|
|
11
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
12
15
|
import 'react-responsive';
|
|
@@ -14,5 +17,5 @@ import '../utils/setViewportProperty.js';
|
|
|
14
17
|
import '../hooks/useStyles/useStyles.js';
|
|
15
18
|
import 'lodash/maxBy';
|
|
16
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
18
|
-
import '../Title-
|
|
20
|
+
import '../Text-CI2prtf6.js';
|
|
21
|
+
import '../Title-CaXw1KBQ.js';
|
package/dist/components/Video.js
CHANGED
|
@@ -5,8 +5,11 @@ import 'react';
|
|
|
5
5
|
import 'lodash/camelCase';
|
|
6
6
|
import 'lodash/maxBy';
|
|
7
7
|
import 'lodash/upperFirst';
|
|
8
|
+
import '../context/Notifications.js';
|
|
9
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
10
|
+
import 'uuid';
|
|
11
|
+
import '@itcase/common';
|
|
8
12
|
import '../context/UIContext.js';
|
|
9
|
-
import '../tslib.es6-5FtW-kfi.js';
|
|
10
13
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
11
14
|
import 'react-responsive';
|
|
12
15
|
import '../utils/setViewportProperty.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { a as __spreadArray } from '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
|
|
5
5
|
import { v4 } from 'uuid';
|
|
@@ -13,8 +13,8 @@ var STATUSES = {
|
|
|
13
13
|
};
|
|
14
14
|
var NotificationsContext = createContext([]);
|
|
15
15
|
var NotificationsAPIContext = createContext({
|
|
16
|
-
hideNotifications: function (
|
|
17
|
-
showNotification: function (
|
|
16
|
+
hideNotifications: function () { },
|
|
17
|
+
showNotification: function () { },
|
|
18
18
|
notificationStatuses: STATUSES,
|
|
19
19
|
});
|
|
20
20
|
function NotificationsProvider(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { b as __rest, _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { createContext, memo, useMemo, useEffect, useContext } from 'react';
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
@@ -13,7 +13,7 @@ var UserDeviceContext = createContext({
|
|
|
13
13
|
isTablet: false,
|
|
14
14
|
});
|
|
15
15
|
var UIProvider = memo(function UIProvider(props) {
|
|
16
|
-
var
|
|
16
|
+
var _a = props.userDeviceState, userDeviceState = _a === void 0 ? {} : _a, children = props.children;
|
|
17
17
|
/** NOTE:
|
|
18
18
|
* Remember that the "useMediaQueries" hook works by next scenario:
|
|
19
19
|
* when changing the device type(browser width), the hook will first "enable"
|
|
@@ -45,7 +45,7 @@ var UIProvider = memo(function UIProvider(props) {
|
|
|
45
45
|
deviceCurrentType = camelCase(deviceCurrentType.replace('is', ''));
|
|
46
46
|
// On server side render we doesn't known user device and we need to set special word
|
|
47
47
|
return [deviceCurrentType || '_none_', deviceTypesList];
|
|
48
|
-
}, [allDevicesTypes, deviceCurrentMainType]), deviceCurrentType = _b[0], deviceTypesList = _b[1];
|
|
48
|
+
}, [allDevicesTypes, deviceCurrentMainType, fullNamedDeviceTypes]), deviceCurrentType = _b[0], deviceTypesList = _b[1];
|
|
49
49
|
var deviceContextState = useMemo(function () {
|
|
50
50
|
return __assign(__assign({}, allDevicesTypes), { deviceCurrentMainType: deviceCurrentMainType, deviceCurrentType: deviceCurrentType, deviceTypesList: deviceTypesList });
|
|
51
51
|
}, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.accordion {
|
|
2
|
-
border-radius: var(--accordion-border-radius
|
|
2
|
+
border-radius: var(--accordion-border-radius);
|
|
3
3
|
&__wrapper {
|
|
4
4
|
width: 100%;
|
|
5
5
|
max-width: var(--max);
|
|
@@ -33,13 +33,15 @@
|
|
|
33
33
|
.accordion {
|
|
34
34
|
&_shape {
|
|
35
35
|
&_rounded {
|
|
36
|
-
border-radius: var(--accordion-shape-rounded
|
|
36
|
+
border-radius: var(--accordion-shape-rounded);
|
|
37
37
|
^^&-item {
|
|
38
38
|
&:first-child {
|
|
39
|
-
border-radius: var(--accordion-shape-rounded
|
|
39
|
+
border-radius: var(--accordion-shape-rounded)
|
|
40
|
+
var(--accordion-shape-rounded) 0 0;
|
|
40
41
|
}
|
|
41
42
|
&:last-child {
|
|
42
|
-
border-radius: 0 0 var(--accordion-shape-rounded
|
|
43
|
+
border-radius: 0 0 var(--accordion-shape-rounded)
|
|
44
|
+
var(--accordion-shape-rounded);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
.accordion-item {
|
|
66
68
|
&_shape {
|
|
67
69
|
&_rounded {
|
|
68
|
-
border-radius: var(--accordion-item-shape-rounded
|
|
70
|
+
border-radius: var(--accordion-item-shape-rounded);
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
}
|
|
11
11
|
^&__icon {
|
|
12
12
|
position: absolute;
|
|
13
|
-
right: var(--avatar-icon-right
|
|
14
|
-
bottom: var(--avatar-icon-bottom
|
|
13
|
+
right: var(--avatar-icon-right);
|
|
14
|
+
bottom: var(--avatar-icon-bottom);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
div&__dropdown {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
&_rounded {
|
|
67
67
|
^^&__image,
|
|
68
68
|
^^&__wrapper {
|
|
69
|
-
border-radius: var(--avatar-shape-rounded
|
|
69
|
+
border-radius: var(--avatar-shape-rounded);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
position: relative;
|
|
102
102
|
& .dot {
|
|
103
103
|
position: absolute;
|
|
104
|
-
right: var(--avatar-dot-position-right
|
|
105
|
-
bottom: var(--avatar-dot-position-bottom
|
|
104
|
+
right: var(--avatar-dot-position-right);
|
|
105
|
+
bottom: var(--avatar-dot-position-bottom);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
}
|
|
15
15
|
.checkmark {
|
|
16
16
|
&_size {
|
|
17
|
-
@each $size, $scale in (xxl, xl, l, m, s, xs, xxs),
|
|
17
|
+
@each $size, $scale in (xxl, xl, l, m, s, xs, xxs),
|
|
18
|
+
(1.2, 1, 0.8, 0.7, 0.7, 0.7, 0.8) {
|
|
18
19
|
&_$(size) {
|
|
19
20
|
width: var(--checkmark-$(size)-width);
|
|
20
21
|
height: var(--checkmark-$(size)-height);
|
|
@@ -25,3 +26,25 @@
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|
|
29
|
+
:root {
|
|
30
|
+
--checkmark-xxl-width: 64px;
|
|
31
|
+
--checkmark-xxl-height: 64px;
|
|
32
|
+
|
|
33
|
+
--checkmark-xl-width: 56px;
|
|
34
|
+
--checkmark-xl-height: 56px;
|
|
35
|
+
|
|
36
|
+
--checkmark-l-width: 48px;
|
|
37
|
+
--checkmark-l-height: 48px;
|
|
38
|
+
|
|
39
|
+
--checkmark-m-width: 40px;
|
|
40
|
+
--checkmark-m-height: 40px;
|
|
41
|
+
|
|
42
|
+
--checkmark-s-width: 32px;
|
|
43
|
+
--checkmark-s-height: 32px;
|
|
44
|
+
|
|
45
|
+
--checkmark-xs-width: 24px;
|
|
46
|
+
--checkmark-xs-height: 24px;
|
|
47
|
+
|
|
48
|
+
--checkmark-xxs-width: 16px;
|
|
49
|
+
--checkmark-xxs-height: 16px;
|
|
50
|
+
}
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
.chips {
|
|
23
23
|
&_shape {
|
|
24
24
|
&_rounded {
|
|
25
|
-
border-radius: var(--chips-shape-rounded-default
|
|
25
|
+
border-radius: var(--chips-shape-rounded-default);
|
|
26
26
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
27
27
|
&^^&_size_$(size) {
|
|
28
|
-
border-radius: var(--chips-$(size)-shape-rounded
|
|
28
|
+
border-radius: var(--chips-$(size)-shape-rounded);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
.choice {
|
|
79
79
|
&_shape {
|
|
80
80
|
&_rounded {
|
|
81
|
-
border-radius: var(--choice-shape-rounded
|
|
81
|
+
border-radius: var(--choice-shape-rounded);
|
|
82
82
|
overflow: hidden;
|
|
83
83
|
}
|
|
84
84
|
&_circular {
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
|
|
90
90
|
.choice {
|
|
91
91
|
&_size {
|
|
92
|
-
@each $size in
|
|
92
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
93
93
|
&_$(size) {
|
|
94
94
|
^^&__item {
|
|
95
95
|
&-label {
|
|
96
|
-
padding: var(--choice-item-size-$(size)-padding
|
|
96
|
+
padding: var(--choice-item-size-$(size)-padding);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -6,9 +6,20 @@
|
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
.code {
|
|
10
|
+
&_size {
|
|
11
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
12
|
+
&_$(size) {
|
|
13
|
+
^^&__wrapper {
|
|
14
|
+
gap: var(--code-size-$(size)-gap);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
9
20
|
.code__input {
|
|
10
21
|
&_size {
|
|
11
|
-
@each $size in
|
|
22
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
12
23
|
&_$(size) {
|
|
13
24
|
min-width: var(--code-input-size-$(size)-width);
|
|
14
25
|
min-height: var(--code-input-size-$(size)-height);
|
|
@@ -30,10 +41,23 @@
|
|
|
30
41
|
.code__input {
|
|
31
42
|
&_shape {
|
|
32
43
|
&_rounded {
|
|
33
|
-
border-radius: var(--code-input-shape-rounded
|
|
44
|
+
border-radius: var(--code-input-shape-rounded);
|
|
34
45
|
}
|
|
35
46
|
&_circular {
|
|
36
47
|
border-radius: 50%;
|
|
37
48
|
}
|
|
38
49
|
}
|
|
39
50
|
}
|
|
51
|
+
:root {
|
|
52
|
+
--code-input-size-compact-width: 36px;
|
|
53
|
+
--code-input-size-compact-height: 36px;
|
|
54
|
+
--code-input-size-compact-padding: 5px;
|
|
55
|
+
--code-input-size-normal-width: 48px;
|
|
56
|
+
--code-input-size-normal-height: 48px;
|
|
57
|
+
--code-input-size-normal-padding: 10px 12px;
|
|
58
|
+
|
|
59
|
+
--code-input-size-l-width: 56px;
|
|
60
|
+
--code-input-size-l-height: 56px;
|
|
61
|
+
|
|
62
|
+
--code-size-l-gap: 8px;
|
|
63
|
+
}
|
|
@@ -825,9 +825,7 @@ h2.react-datepicker__current-month {
|
|
|
825
825
|
outline: none;
|
|
826
826
|
}
|
|
827
827
|
&--disabled {
|
|
828
|
-
background: var(
|
|
829
|
-
--date-picker-day-outside-background
|
|
830
|
-
) !important;
|
|
828
|
+
background: var(--date-picker-day-outside-background) !important;
|
|
831
829
|
cursor: default !important;
|
|
832
830
|
& .button__label {
|
|
833
831
|
color: var(--date-picker-day-outside-text-color) !important;
|
|
@@ -851,9 +849,7 @@ h2.react-datepicker__current-month {
|
|
|
851
849
|
&:hover {
|
|
852
850
|
background: var(--date-picker-day-selected-background-hover);
|
|
853
851
|
& .button__label {
|
|
854
|
-
color: var(
|
|
855
|
-
--date-picker-day-selected-text-color
|
|
856
|
-
) !important;
|
|
852
|
+
color: var(--date-picker-day-selected-text-color) !important;
|
|
857
853
|
}
|
|
858
854
|
}
|
|
859
855
|
& .button__label {
|
|
@@ -877,9 +873,7 @@ h2.react-datepicker__current-month {
|
|
|
877
873
|
--date-picker-day-range-start-border-radius
|
|
878
874
|
) !important;
|
|
879
875
|
&:hover {
|
|
880
|
-
background: var(
|
|
881
|
-
--date-picker-day-selected-background-hover
|
|
882
|
-
);
|
|
876
|
+
background: var(--date-picker-day-selected-background-hover);
|
|
883
877
|
border-radius: var(
|
|
884
878
|
--date-picker-day-range-start-border-radius
|
|
885
879
|
) !important;
|
|
@@ -938,9 +932,7 @@ h2.react-datepicker__current-month {
|
|
|
938
932
|
background: var(--date-picker-day-selected-background);
|
|
939
933
|
border-radius: 0;
|
|
940
934
|
&:hover {
|
|
941
|
-
background: var(
|
|
942
|
-
--date-picker-day-selected-background-hover
|
|
943
|
-
);
|
|
935
|
+
background: var(--date-picker-day-selected-background-hover);
|
|
944
936
|
& .button__label {
|
|
945
937
|
color: var(
|
|
946
938
|
--date-picker-day-selected-text-color
|
|
@@ -1033,9 +1025,7 @@ h2.react-datepicker__current-month {
|
|
|
1033
1025
|
background: var(--date-picker-day-selected-background);
|
|
1034
1026
|
border-radius: 0;
|
|
1035
1027
|
&:hover {
|
|
1036
|
-
background: var(
|
|
1037
|
-
--date-picker-day-selected-background-hover
|
|
1038
|
-
);
|
|
1028
|
+
background: var(--date-picker-day-selected-background-hover);
|
|
1039
1029
|
& .button__label {
|
|
1040
1030
|
color: var(
|
|
1041
1031
|
--date-picker-day-selected-text-color
|
|
@@ -1079,9 +1069,7 @@ h2.react-datepicker__current-month {
|
|
|
1079
1069
|
}
|
|
1080
1070
|
}
|
|
1081
1071
|
&--outside-month {
|
|
1082
|
-
background: var(
|
|
1083
|
-
--date-picker-day-outside-background
|
|
1084
|
-
) !important;
|
|
1072
|
+
background: var(--date-picker-day-outside-background) !important;
|
|
1085
1073
|
cursor: default !important;
|
|
1086
1074
|
& .button__label {
|
|
1087
1075
|
color: var(--date-picker-day-outside-text-color) !important;
|
|
@@ -1198,27 +1186,29 @@ h2.react-datepicker__current-month {
|
|
|
1198
1186
|
.datepicker {
|
|
1199
1187
|
width: 100%;
|
|
1200
1188
|
border-radius: var(--date-picker-day-border-radius);
|
|
1201
|
-
&
|
|
1189
|
+
&__input {
|
|
1202
1190
|
border-radius: var(--date-picker-day-border-radius);
|
|
1203
1191
|
}
|
|
1204
1192
|
}
|
|
1205
|
-
.
|
|
1206
|
-
&
|
|
1207
|
-
&
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
& .react-
|
|
1211
|
-
|
|
1212
|
-
|
|
1193
|
+
.datepicker {
|
|
1194
|
+
&_type_multiple-months {
|
|
1195
|
+
& .react-datepicker {
|
|
1196
|
+
&__month-container {
|
|
1197
|
+
&:nth-last-child(2) {
|
|
1198
|
+
& .react-datepicker__header--div {
|
|
1199
|
+
& .react-datepicker__icon {
|
|
1200
|
+
&:last-child {
|
|
1201
|
+
display: none;
|
|
1202
|
+
}
|
|
1213
1203
|
}
|
|
1214
1204
|
}
|
|
1215
1205
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1206
|
+
&:last-child {
|
|
1207
|
+
& .react-datepicker__header--div {
|
|
1208
|
+
& .react-datepicker__icon {
|
|
1209
|
+
&:first-child {
|
|
1210
|
+
display: none;
|
|
1211
|
+
}
|
|
1222
1212
|
}
|
|
1223
1213
|
}
|
|
1224
1214
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.divider {
|
|
7
7
|
&_size {
|
|
8
|
-
@each $size in
|
|
8
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
9
9
|
&_$(size) {
|
|
10
10
|
height: var(--divider-$(size)-height);
|
|
11
11
|
min-height: var(--divider-$(size)-height);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
&_direction {
|
|
16
16
|
&_horizontal {
|
|
17
17
|
&^^&_size {
|
|
18
|
-
@each $size in
|
|
18
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
19
19
|
&_$(size) {
|
|
20
20
|
height: var(--divider-$(size)-height);
|
|
21
21
|
min-height: var(--divider-$(size)-height);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
&_vertical {
|
|
27
27
|
&^^&_size {
|
|
28
|
-
@each $size in
|
|
28
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
29
29
|
&_$(size) {
|
|
30
30
|
width: var(--divider-$(size)-width);
|
|
31
31
|
height: auto;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
}
|
|
3
3
|
.dot {
|
|
4
4
|
&_size {
|
|
5
|
-
@each $size in
|
|
5
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
6
6
|
&_$(size) {
|
|
7
|
-
min-width: var(--dot-size-$(size)-width
|
|
8
|
-
min-height: var(--dot-size-$(size)-height
|
|
9
|
-
max-width: var(--dot-size-$(size)-width
|
|
10
|
-
max-height: var(--dot-size-$(size)-height
|
|
7
|
+
min-width: var(--dot-size-$(size)-width);
|
|
8
|
+
min-height: var(--dot-size-$(size)-height);
|
|
9
|
+
max-width: var(--dot-size-$(size)-width);
|
|
10
|
+
max-height: var(--dot-size-$(size)-height);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.dot {
|
|
16
16
|
&_shape {
|
|
17
17
|
&_rounded {
|
|
18
|
-
border-radius: var(--dot-shape-rounded
|
|
18
|
+
border-radius: var(--dot-shape-rounded);
|
|
19
19
|
}
|
|
20
20
|
&_circular {
|
|
21
21
|
border-radius: 50%;
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-flow: column nowrap;
|
|
31
31
|
&__overlay {
|
|
32
|
-
background: var(
|
|
32
|
+
background: var(
|
|
33
|
+
--drawer-overlay-background,
|
|
34
|
+
rgba(116, 116, 116, 0.5)
|
|
35
|
+
) !important;
|
|
33
36
|
opacity: 100% !important;
|
|
34
37
|
backdrop-filter: var(--drawer-overlay-filter, blur(10px)) !important;
|
|
35
38
|
}
|