@itcase/ui 1.2.30 → 1.2.32
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-TyPbVqR_.js → Badge-CHeBPRrf.js} +50 -4
- package/dist/{Badge-BZYBmgBK.js → Badge-DBeSKfoF.js} +49 -3
- package/dist/{Button-avhviao1.js → Button-C8MATksY.js} +65 -6
- package/dist/{Button-BcOsYgoT.js → Button-ChSAts3j.js} +65 -5
- package/dist/Divider-BoB-f9Gr.js +74 -0
- package/dist/Divider-DHIuQUsH.js +71 -0
- package/dist/DropdownItem-B8IMNQww.js +182 -0
- package/dist/{DropdownItem-toApJyeB.js → DropdownItem-E9HkOU63.js} +40 -13
- package/dist/{Group-Dc70Z4_7.js → Group-BCvs5UxK.js} +10 -1
- package/dist/{Group-BiN0haVp.js → Group-u6YDbMxn.js} +11 -2
- package/dist/{Icon-B2BwTQnP.js → Icon-C8ACV9r7.js} +24 -20
- package/dist/{Icon-ClsRaxDk.js → Icon-DptCmI_y.js} +24 -20
- package/dist/{Input-DbzsXvEf.js → Input-CgjHxZmK.js} +56 -3
- package/dist/{Input-BaicBuyd.js → Input-KgHOW5DR.js} +58 -5
- package/dist/{Label-fp2Bus_T.js → Label-B06hLCqo.js} +58 -8
- package/dist/{Label-BfotYOmD.js → Label-zOLL6ePu.js} +57 -8
- package/dist/{Link-CzC1kU5C.js → Link-CeQuavin.js} +1 -1
- package/dist/Loader-DHNcD09o.js +82 -0
- package/dist/Loader-DReoCdZ2.js +85 -0
- package/dist/{MenuItem-BJ3uGKCH.js → MenuItem-BXogEsbS.js} +24 -5
- package/dist/MenuItem-C7frDyBO.js +101 -0
- package/dist/{Scrollbar-CrGXCZ_F.js → Scrollbar-Bo7z7ELm.js} +10 -13
- package/dist/{Scrollbar-DVlIZzvz.js → Scrollbar-CKbA0jQU.js} +10 -13
- package/dist/{Text-kxGZButz.js → Text-C4Bg2Mv6.js} +10 -5
- package/dist/{Text-CC0xnhmx.js → Text-R6XNq6Ca.js} +11 -6
- package/dist/{Title-Ze_OL1Co.js → Title-DWIc05TX.js} +10 -8
- package/dist/{Title-CQ_Fr1hO.js → Title-YVzIwk68.js} +9 -7
- package/dist/{Tooltip-ccRCMYQM.js → Tooltip--c-4Qp04.js} +37 -4
- package/dist/{Tooltip-PrwacZFC.js → Tooltip-BswHy19O.js} +38 -5
- package/dist/cjs/components/Accordion.js +5 -39
- package/dist/cjs/components/Avatar.js +26 -13
- package/dist/cjs/components/Badge.js +3 -6
- package/dist/cjs/components/Breadcrumbs.js +4 -12
- package/dist/cjs/components/Button.js +9 -15
- package/dist/cjs/components/Caption.js +1 -2
- package/dist/cjs/components/Card.js +4 -14
- package/dist/cjs/components/Cell.js +8 -18
- package/dist/cjs/components/Checkbox.js +24 -10
- package/dist/cjs/components/Chips.js +43 -6
- package/dist/cjs/components/Choice.js +22 -15
- package/dist/cjs/components/Code.js +35 -11
- package/dist/cjs/components/ContextMenu.js +9 -26
- package/dist/cjs/components/CookiesWarning.js +11 -24
- package/dist/cjs/components/DadataHintField.js +2 -4
- package/dist/cjs/components/DatePicker.js +14 -20
- package/dist/cjs/components/Divider.js +3 -3
- package/dist/cjs/components/Dot.js +2 -4
- package/dist/cjs/components/Dropdown.js +5 -6
- package/dist/cjs/components/Flex.js +1 -2
- package/dist/cjs/components/Grid.js +2 -9
- package/dist/cjs/components/Group.js +2 -4
- package/dist/cjs/components/HTMLContent.js +1 -2
- package/dist/cjs/components/Icon.js +6 -11
- package/dist/cjs/components/Image.js +1 -2
- package/dist/cjs/components/Input.js +2 -4
- package/dist/cjs/components/InputMask.js +8 -10
- package/dist/cjs/components/InputPassword.js +62 -14
- package/dist/cjs/components/Label.js +6 -10
- package/dist/cjs/components/LanguageSelector.js +6 -11
- package/dist/cjs/components/Link.js +1 -2
- package/dist/cjs/components/List.js +0 -1
- package/dist/cjs/components/Loader.js +3 -6
- package/dist/cjs/components/Logo.js +1 -2
- package/dist/cjs/components/Menu.js +3 -6
- package/dist/cjs/components/MenuItem.js +3 -6
- package/dist/cjs/components/Modal.js +31 -10
- package/dist/cjs/components/ModalSheetBottom.js +34 -0
- package/dist/cjs/components/Notification.js +43 -11
- package/dist/cjs/components/Overlay.js +1 -2
- package/dist/cjs/components/Page.js +4 -47
- package/dist/cjs/components/Pagination.js +7 -12
- package/dist/cjs/components/Panel.js +3 -6
- package/dist/cjs/components/Radio.js +23 -8
- package/dist/cjs/components/RangeSlider.js +1 -2
- package/dist/cjs/components/Response.js +250 -31
- package/dist/cjs/components/SVGContent.js +1 -2
- package/dist/cjs/components/ScrollOnDrag.js +1 -2
- package/dist/cjs/components/ScrollToView.js +1 -2
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +21 -19
- package/dist/cjs/components/Segmented.js +16 -6
- package/dist/cjs/components/Select.js +31 -16
- package/dist/cjs/components/SiteMenu.js +22 -13
- package/dist/cjs/components/Swiper.js +7 -10
- package/dist/cjs/components/Switch.js +15 -3
- package/dist/cjs/components/Tab.js +105 -9
- package/dist/cjs/components/Text.js +2 -4
- package/dist/cjs/components/Textarea.js +58 -5
- package/dist/cjs/components/Tile.js +26 -10
- package/dist/cjs/components/Title.js +2 -4
- package/dist/cjs/components/Tooltip.js +4 -8
- package/dist/cjs/components/Video.js +1 -2
- package/dist/cjs/components/Wrapper.js +4 -9
- package/dist/cjs/context/Notifications.js +0 -5
- package/dist/cjs/context/UIContext.js +0 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +1 -2
- package/dist/cjs/hooks/useStyles.js +0 -1
- package/dist/components/Accordion.js +7 -41
- package/dist/components/Avatar.js +27 -15
- package/dist/components/Badge.js +3 -6
- package/dist/components/Breadcrumbs.js +6 -14
- package/dist/components/Button.js +9 -16
- package/dist/components/Caption.js +1 -2
- package/dist/components/Card.js +4 -14
- package/dist/components/Cell.js +9 -19
- package/dist/components/Checkbox.js +22 -8
- package/dist/components/Chips.js +42 -6
- package/dist/components/Choice.js +22 -15
- package/dist/components/Code.js +36 -13
- package/dist/components/ContextMenu.js +10 -27
- package/dist/components/CookiesWarning.js +12 -25
- package/dist/components/DadataHintField.js +3 -5
- package/dist/components/DatePicker.js +15 -21
- package/dist/components/Divider.js +2 -3
- package/dist/components/Dot.js +2 -4
- package/dist/components/Dropdown.js +6 -8
- package/dist/components/Flex.js +1 -2
- package/dist/components/Grid.js +2 -9
- package/dist/components/Group.js +2 -4
- package/dist/components/HTMLContent.js +1 -2
- package/dist/components/Icon.js +7 -12
- package/dist/components/Image.js +1 -2
- package/dist/components/Input.js +2 -4
- package/dist/components/InputMask.js +8 -10
- package/dist/components/InputPassword.js +61 -13
- package/dist/components/Label.js +5 -10
- package/dist/components/LanguageSelector.js +7 -12
- package/dist/components/Link.js +3 -4
- package/dist/components/List.js +2 -3
- package/dist/components/Loader.js +3 -6
- package/dist/components/Logo.js +3 -4
- package/dist/components/Menu.js +5 -8
- package/dist/components/MenuItem.js +5 -8
- package/dist/components/Modal.js +31 -11
- package/dist/components/ModalSheetBottom.js +32 -0
- package/dist/components/Notification.js +43 -12
- package/dist/components/Overlay.js +1 -2
- package/dist/components/Page.js +4 -47
- package/dist/components/Pagination.js +9 -14
- package/dist/components/Panel.js +3 -6
- package/dist/components/Radio.js +21 -6
- package/dist/components/RangeSlider.js +1 -2
- package/dist/components/Response.js +250 -32
- package/dist/components/SVGContent.js +1 -2
- package/dist/components/ScrollOnDrag.js +2 -3
- package/dist/components/ScrollToView.js +1 -2
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +21 -19
- package/dist/components/Segmented.js +15 -5
- package/dist/components/Select.js +32 -17
- package/dist/components/SiteMenu.js +23 -15
- package/dist/components/Swiper.js +7 -10
- package/dist/components/Switch.js +15 -4
- package/dist/components/Tab.js +106 -11
- package/dist/components/Text.js +2 -4
- package/dist/components/Textarea.js +56 -3
- package/dist/components/Tile.js +26 -11
- package/dist/components/Title.js +2 -4
- package/dist/components/Tooltip.js +4 -8
- package/dist/components/Video.js +1 -2
- package/dist/components/Wrapper.js +4 -9
- package/dist/context/Notifications.js +1 -6
- package/dist/context/UIContext.js +0 -9
- package/dist/css/components/Accordion/Accordion.tokens.css +4 -0
- package/dist/css/components/Avatar/Avatar.css +2 -2
- package/dist/css/components/Avatar/Avatar.tokens.css +2 -0
- package/dist/css/components/Button/Button.tokens.css +117 -0
- package/dist/css/components/Checkbox/Checkbox.tokens.css +4 -0
- package/dist/css/components/Chips/Chips.tokens.css +9 -0
- package/dist/css/components/Choice/Choice.tokens.css +17 -0
- package/dist/css/components/Code/Code.tokens.css +5 -0
- package/dist/css/components/DadataHintField/DadataHintField.tokens.css +4 -0
- package/dist/css/components/DatePicker/DatePicker.tokens.css +38 -0
- package/dist/css/components/Dot/Dot.tokens.css +10 -0
- package/dist/css/components/Dropdown/Dropdown.tokens.css +33 -0
- package/dist/css/components/Grid/Grid.tokens.css +4 -0
- package/dist/css/components/Group/Group.tokens.css +3 -0
- package/dist/css/components/Icon/Icon.css +7 -7
- package/dist/css/components/Icon/Icon.tokens.css +3 -0
- package/dist/css/components/Image/Image.tokens.css +3 -0
- package/dist/css/components/Input/Input.tokens.css +29 -0
- package/dist/css/components/InputPassword/InputPassword.tokens.css +23 -0
- package/dist/css/components/Label/Label.tokens.css +19 -0
- package/dist/css/components/Loader/Loader.tokens.css +3 -0
- package/dist/css/components/Logo/Logo.tokens.css +10 -0
- package/dist/css/components/Menu/Menu.tokens.css +5 -0
- package/dist/css/components/MenuItem/MenuItem.tokens.css +9 -0
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +36 -0
- package/dist/css/components/Overlay/Overlay.tokens.css +4 -0
- package/dist/css/components/Pagination/Pagination.tokens.css +25 -0
- package/dist/css/components/Radio/Radio.tokens.css +3 -0
- package/dist/css/components/Search/Search.tokens.css +8 -0
- package/dist/css/components/Segmented/Segmented.tokens.css +4 -0
- package/dist/css/components/Select/Select.tokens.css +29 -0
- package/dist/css/components/Switch/Switch.tokens.css +7 -0
- package/dist/css/components/Tab/Tab.tokens.css +28 -0
- package/dist/css/components/Textarea/Textarea.tokens.css +7 -0
- package/dist/css/components/Tile/Tile.tokens.css +9 -0
- package/dist/css/styles/svg-color/svg_fill.css +3 -0
- package/dist/css/styles/svg-color/svg_path_fill.css +15 -0
- package/dist/css/tokens/typography.css +1 -1
- package/dist/hooks/useDeviceTargetClass.js +1 -2
- package/dist/hooks/useStyles.js +0 -1
- package/dist/stories/Appearance.stories.js +2 -2
- package/dist/stories/Badge.stories.js +1 -1
- package/dist/stories/Button.stories.js +3 -3
- package/dist/stories/Checkbox.stories.js +1 -1
- package/dist/stories/Chips.stories.js +1 -1
- package/dist/stories/DatePicker.stories.js +1 -1
- package/dist/stories/Group.stories.js +2 -2
- package/dist/stories/Icon.stories.js +2 -2
- package/dist/stories/Input.stories.js +1 -1
- package/dist/stories/InputPassword.stories.js +1 -1
- package/dist/stories/Label.stories.js +1 -1
- package/dist/stories/Loader.stories.js +1 -1
- package/dist/stories/MenuItem.stories.js +1 -1
- package/dist/stories/ModalConfirm.stories.js +1 -1
- package/dist/stories/ModalDefault.stories.js +1 -1
- package/dist/stories/ModalSheetBottom.stories.js +47 -0
- package/dist/stories/Notification.stories.js +2 -2
- package/dist/stories/Radio.stories.js +1 -1
- package/dist/stories/Response.stories.js +38 -12
- package/dist/stories/SearchInput.stories.js +1 -1
- package/dist/stories/Size.stories.js +2 -2
- package/dist/stories/State.stories.js +2 -2
- package/dist/stories/Textarea.stories.js +1 -1
- package/dist/stories/Tile.stories.js +4 -4
- package/dist/stories/Tooltip.stories.js +1 -1
- package/dist/{tslib.es6-w7hdJ3oZ.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/components/Avatar/Avatar.appearance.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +25 -11
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -5
- package/dist/types/components/Button/Button.appearance.d.ts +2 -0
- package/dist/types/components/Button/Button.interface.d.ts +6 -6
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Card/Card.d.ts +0 -10
- package/dist/types/components/Cell/Cell.d.ts +0 -6
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Chips/Chips.appearance.d.ts +2 -0
- package/dist/types/components/Chips/index.d.ts +1 -0
- package/dist/types/components/Choice/Choice.appearance.d.ts +2 -0
- package/dist/types/components/Code/Code.appearance.d.ts +2 -0
- package/dist/types/components/Code/Code.d.ts +6 -8
- package/dist/types/components/Code/Code.interface.d.ts +21 -2
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +0 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +0 -7
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +2 -0
- package/dist/types/components/Divider/Divider.appearance.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +3 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -7
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +28 -15
- package/dist/types/components/Dropdown/DropdownItem.appearance.d.ts +2 -0
- package/dist/types/components/Dropdown/DropdownItem.d.ts +5 -4
- package/dist/types/components/Dropdown/index.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +0 -5
- package/dist/types/components/Grid/GridRow.d.ts +0 -5
- package/dist/types/components/Group/Group.appearance.d.ts +2 -0
- package/dist/types/components/Icon/Icon.appearance.d.ts +2 -0
- package/dist/types/{appearance/Input/index.d.ts → components/Input/Input.appearance.d.ts} +1 -1
- package/dist/types/{appearance/InputPassword/index.d.ts → components/InputPassword/InputPassword.appearance.d.ts} +1 -1
- package/dist/types/components/Label/Label.appearance.d.ts +2 -0
- package/dist/types/components/Label/Label.d.ts +0 -5
- package/dist/types/components/Label/Label.interface.d.ts +6 -6
- package/dist/types/components/Label/index.d.ts +1 -0
- package/dist/types/components/Loader/Loader.appearance.d.ts +2 -0
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +2 -0
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.appearance.d.ts +2 -0
- package/dist/types/components/Modal/Modal.d.ts +3 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +22 -6
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +3 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +8 -7
- package/dist/types/components/Notification/NotificationItem.appearance.d.ts +2 -0
- package/dist/types/components/Notification/index.d.ts +2 -1
- package/dist/types/components/Page/Page.d.ts +3 -0
- package/dist/types/components/Page/Page.interface.d.ts +18 -0
- package/dist/types/components/Page/index.d.ts +1 -42
- package/dist/types/components/Radio/Radio.d.ts +0 -1
- package/dist/types/components/Response/Response.appearance.d.ts +2 -0
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/Response/index.d.ts +1 -0
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -5
- package/dist/types/components/Search/Search.appearance.d.ts +2 -0
- package/dist/types/components/Search/Search.interface.d.ts +9 -9
- package/dist/types/components/Segmented/Segmented.appearance.d.ts +2 -0
- package/dist/types/components/Select/Select.appearance.d.ts +2 -0
- package/dist/types/components/SiteMenu/SiteMenu.appearance.d.ts +2 -0
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +3 -2
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +18 -5
- package/dist/types/components/SiteMenu/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.d.ts +0 -1
- package/dist/types/components/Switch/Switch.appearance.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +3 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +17 -4
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Tab/Tab.appearance.d.ts +2 -0
- package/dist/types/components/Tab/index.d.ts +3 -3
- package/dist/types/components/Text/Text.d.ts +0 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.appearance.d.ts +2 -0
- package/dist/types/components/Tile/Tile.d.ts +3 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +21 -9
- package/dist/types/components/Tile/index.d.ts +1 -1
- package/dist/types/components/Title/Title.appearance.d.ts +2 -0
- package/dist/types/components/Title/Title.d.ts +0 -5
- package/dist/types/components/Video/Video.interface.d.ts +1 -1
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -6
- package/dist/types/context/Notifications.d.ts +0 -7
- package/dist/types/context/UIContext.d.ts +10 -2
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/package.json +14 -16
- package/dist/Divider-BjB5MD6u.js +0 -50
- package/dist/Divider-U5UdY-ef.js +0 -48
- package/dist/DropdownItem-CFkRx8LX.js +0 -156
- package/dist/Loader-CU_5Ydmy.js +0 -53
- package/dist/Loader-Ck59IXGG.js +0 -56
- package/dist/MenuItem-BEYVY0Vf.js +0 -82
- package/dist/appearance/Badge.js +0 -44
- package/dist/appearance/Button.js +0 -53
- package/dist/appearance/Checkbox.js +0 -21
- package/dist/appearance/Chips.js +0 -40
- package/dist/appearance/Choice.js +0 -15
- package/dist/appearance/DatePicker.js +0 -5
- package/dist/appearance/Group.js +0 -11
- package/dist/appearance/Icon.js +0 -12
- package/dist/appearance/Input.js +0 -56
- package/dist/appearance/InputPassword.js +0 -55
- package/dist/appearance/Label.js +0 -54
- package/dist/appearance/Loader.js +0 -28
- package/dist/appearance/MenuItem.js +0 -10
- package/dist/appearance/Notification.js +0 -34
- package/dist/appearance/Radio.js +0 -20
- package/dist/appearance/Response.js +0 -92
- package/dist/appearance/Search.js +0 -11
- package/dist/appearance/Segmented.js +0 -14
- package/dist/appearance/Select.js +0 -24
- package/dist/appearance/Tab.js +0 -118
- package/dist/appearance/Text.js +0 -8
- package/dist/appearance/Textarea.js +0 -56
- package/dist/appearance/Title.js +0 -7
- package/dist/appearance/Tooltip.js +0 -19
- package/dist/cjs/appearance/Badge.js +0 -46
- package/dist/cjs/appearance/Button.js +0 -55
- package/dist/cjs/appearance/Checkbox.js +0 -24
- package/dist/cjs/appearance/Chips.js +0 -42
- package/dist/cjs/appearance/Choice.js +0 -17
- package/dist/cjs/appearance/DatePicker.js +0 -7
- package/dist/cjs/appearance/Group.js +0 -13
- package/dist/cjs/appearance/Icon.js +0 -14
- package/dist/cjs/appearance/Input.js +0 -59
- package/dist/cjs/appearance/InputPassword.js +0 -58
- package/dist/cjs/appearance/Label.js +0 -56
- package/dist/cjs/appearance/Loader.js +0 -30
- package/dist/cjs/appearance/MenuItem.js +0 -12
- package/dist/cjs/appearance/Notification.js +0 -36
- package/dist/cjs/appearance/Radio.js +0 -23
- package/dist/cjs/appearance/Response.js +0 -94
- package/dist/cjs/appearance/Search.js +0 -13
- package/dist/cjs/appearance/Segmented.js +0 -16
- package/dist/cjs/appearance/Select.js +0 -26
- package/dist/cjs/appearance/Tab.js +0 -120
- package/dist/cjs/appearance/Text.js +0 -10
- package/dist/cjs/appearance/Textarea.js +0 -59
- package/dist/cjs/appearance/Title.js +0 -9
- package/dist/cjs/appearance/Tooltip.js +0 -21
- package/dist/types/appearance/Badge/index.d.ts +0 -2
- package/dist/types/appearance/Button/index.d.ts +0 -2
- package/dist/types/appearance/Chips/index.d.ts +0 -2
- package/dist/types/appearance/Choice/index.d.ts +0 -2
- package/dist/types/appearance/DatePicker/index.d.ts +0 -2
- package/dist/types/appearance/Group/index.d.ts +0 -2
- package/dist/types/appearance/Icon/index.d.ts +0 -2
- package/dist/types/appearance/Label/index.d.ts +0 -2
- package/dist/types/appearance/Loader/index.d.ts +0 -2
- package/dist/types/appearance/MenuItem/index.d.ts +0 -2
- package/dist/types/appearance/Notification/index.d.ts +0 -2
- package/dist/types/appearance/Response/index.d.ts +0 -2
- package/dist/types/appearance/Search/index.d.ts +0 -2
- package/dist/types/appearance/Segmented/index.d.ts +0 -2
- package/dist/types/appearance/Select/index.d.ts +0 -2
- package/dist/types/appearance/Tab/index.d.ts +0 -2
- package/dist/types/appearance/Title/index.d.ts +0 -2
- package/dist/types/constants/componentProps/align.d.ts +0 -2
- package/dist/types/constants/componentProps/alignDirection.d.ts +0 -2
- package/dist/types/constants/componentProps/fill.d.ts +0 -2
- package/dist/types/constants/componentProps/horizontalResizeMode.d.ts +0 -2
- package/dist/types/constants/componentProps/position.d.ts +0 -2
- package/dist/types/constants/componentProps/verticalResizeMode.d.ts +0 -2
- package/dist/types/icons/index.d.ts +0 -10
- /package/dist/css/{styles → mediaqueries}/mediaqueries.css +0 -0
- /package/dist/types/components/Badge/{Badge.appearance.d.ts → Badge.appearance..d.ts} +0 -0
- /package/dist/types/{appearance/Checkbox/index.d.ts → components/Checkbox/Checkbox.appearance.d.ts} +0 -0
- /package/dist/types/{appearance/Radio/index.d.ts → components/Radio/Radio.appearance.d.ts} +0 -0
- /package/dist/types/{appearance/Text/index.d.ts → components/Text/Text.appearance.d.ts} +0 -0
- /package/dist/types/{appearance/Textarea/index.d.ts → components/Textarea/Textarea.appearance.d.ts} +0 -0
- /package/dist/types/{appearance/Tooltip/index.d.ts → components/Tooltip/Tooltip.appearance.d.ts} +0 -0
package/dist/components/Icon.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
export { I as Icon, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, i as iconConfig } from '../Icon-DptCmI_y.js';
|
|
2
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
2
3
|
import 'react/jsx-runtime';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
5
6
|
import 'react-inlinesvg';
|
|
6
|
-
import '../appearance/Icon.js';
|
|
7
7
|
import '../hooks/useDeviceTargetClass.js';
|
|
8
|
-
import 'lodash/castArray';
|
|
9
8
|
import 'lodash/camelCase';
|
|
9
|
+
import 'lodash/castArray';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
14
13
|
import '../hooks/useStyles.js';
|
|
15
14
|
import 'lodash/maxBy';
|
|
16
15
|
import 'lodash/upperFirst';
|
|
17
16
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
22
|
-
import '../Text-kxGZButz.js';
|
|
23
|
-
import '../appearance/Text.js';
|
|
24
|
-
import '../Title-CQ_Fr1hO.js';
|
|
25
|
-
import '../appearance/Title.js';
|
|
17
|
+
import '../Link-CeQuavin.js';
|
|
18
|
+
import '../Tooltip--c-4Qp04.js';
|
|
19
|
+
import '../Text-C4Bg2Mv6.js';
|
|
20
|
+
import '../Title-YVzIwk68.js';
|
package/dist/components/Image.js
CHANGED
|
@@ -3,10 +3,9 @@ import 'react/jsx-runtime';
|
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import 'react';
|
|
6
|
-
import 'lodash/castArray';
|
|
7
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import '../hooks/useStyles.js';
|
package/dist/components/Input.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
export { I as Input, i as inputConfig } from '../Input-
|
|
1
|
+
export { I as Input, i as inputConfig } from '../Input-CgjHxZmK.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../appearance/Input.js';
|
|
6
5
|
import '../hooks/useDeviceTargetClass.js';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
9
8
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
9
|
import '../hooks/useMediaQueries.js';
|
|
12
10
|
import 'react-responsive';
|
|
@@ -2,25 +2,24 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import 'lodash/castArray';
|
|
6
5
|
import 'lodash/camelCase';
|
|
6
|
+
import 'lodash/castArray';
|
|
7
7
|
import '../context/UIContext.js';
|
|
8
|
-
import 'prop-types';
|
|
9
8
|
import '../hooks/useMediaQueries.js';
|
|
10
9
|
import 'react-responsive';
|
|
11
10
|
|
|
12
11
|
var inputMaskConfig = {
|
|
13
|
-
state: undefined,
|
|
14
|
-
setState: function (newComponent) {
|
|
15
|
-
inputMaskConfig.state = newComponent;
|
|
16
|
-
},
|
|
17
12
|
appearance: undefined,
|
|
18
13
|
setAppearance: function (newComponent) {
|
|
19
14
|
inputMaskConfig.appearance = newComponent;
|
|
20
15
|
},
|
|
16
|
+
setState: function (newComponent) {
|
|
17
|
+
inputMaskConfig.state = newComponent;
|
|
18
|
+
},
|
|
19
|
+
state: undefined,
|
|
21
20
|
};
|
|
22
21
|
var Input = React.forwardRef(function Input(props, ref) {
|
|
23
|
-
var
|
|
22
|
+
var id = props.id, isDisabled = props.isDisabled, appearance = props.appearance, className = props.className, dataTestId = props.dataTestId, index = props.index, name = props.name, placeholder = props.placeholder, state = props.state, _a = props.type, type = _a === void 0 ? 'text' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
24
23
|
var fillClass = useDeviceTargetClass(props, {
|
|
25
24
|
prefix: 'fill_',
|
|
26
25
|
propsKey: 'fill',
|
|
@@ -127,13 +126,12 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
127
126
|
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())
|
|
128
127
|
: textColorDisabledClass ||
|
|
129
128
|
((stateConfig === null || stateConfig === void 0 ? void 0 : stateConfig.textColor) &&
|
|
130
|
-
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
129
|
+
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
131
130
|
// @ts-expect-error
|
|
132
|
-
ref: ref,
|
|
131
|
+
ref: ref, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), disabled: isDisabled, id: String(id), index: index, placeholder: placeholder, type: type, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
133
132
|
});
|
|
134
133
|
Input.defaultProps = {
|
|
135
134
|
size: 'm',
|
|
136
|
-
type: 'text',
|
|
137
135
|
};
|
|
138
136
|
|
|
139
137
|
export { Input, inputMaskConfig };
|
|
@@ -1,29 +1,77 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { InputPasswordAppearance, InputPasswordState } from '../appearance/InputPassword.js';
|
|
5
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import 'lodash/castArray';
|
|
5
|
+
import { I as Icon } from '../Icon-DptCmI_y.js';
|
|
8
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
9
8
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
9
|
import '../hooks/useMediaQueries.js';
|
|
12
10
|
import 'react-responsive';
|
|
11
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
13
12
|
import 'react-inlinesvg';
|
|
14
|
-
import '../appearance/Icon.js';
|
|
15
13
|
import '../hooks/useStyles.js';
|
|
16
14
|
import 'lodash/maxBy';
|
|
17
15
|
import 'lodash/upperFirst';
|
|
18
16
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
22
|
-
import '../
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
import '../Link-CeQuavin.js';
|
|
18
|
+
import '../Tooltip--c-4Qp04.js';
|
|
19
|
+
import '../Text-C4Bg2Mv6.js';
|
|
20
|
+
import '../Title-YVzIwk68.js';
|
|
21
|
+
|
|
22
|
+
var InputPasswordAppearance = {
|
|
23
|
+
dev: {
|
|
24
|
+
borderColor: 'surfaceBorderTertiary',
|
|
25
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
26
|
+
shape: 'rounded',
|
|
27
|
+
size: 'm',
|
|
28
|
+
textColor: 'surfaceTextPrimary',
|
|
29
|
+
textSize: 'm',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
var InputPasswordState = {
|
|
33
|
+
active: {
|
|
34
|
+
borderColor: 'surfaceBorderActive',
|
|
35
|
+
placeholderTextColor: 'secondaryTextSecondary',
|
|
36
|
+
},
|
|
37
|
+
activeFilled: {
|
|
38
|
+
borderColor: 'surfaceBorderActive',
|
|
39
|
+
textColor: 'surfaceTextPrimary',
|
|
40
|
+
},
|
|
41
|
+
disabled: {
|
|
42
|
+
borderColor: 'surfaceBorderDisabled',
|
|
43
|
+
placeholderTextColor: 'surfaceTextDisabled',
|
|
44
|
+
textColor: 'surfaceTextPrimary',
|
|
45
|
+
},
|
|
46
|
+
error: {
|
|
47
|
+
borderColor: 'errorBorderPrimary',
|
|
48
|
+
placeholderTextColor: 'secondaryTextSecondary',
|
|
49
|
+
},
|
|
50
|
+
errorFilled: {
|
|
51
|
+
borderColor: 'errorBorderPrimary',
|
|
52
|
+
textColor: 'surfaceTextPrimary',
|
|
53
|
+
},
|
|
54
|
+
filled: {
|
|
55
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
56
|
+
textColor: 'surfaceTextPrimary',
|
|
57
|
+
},
|
|
58
|
+
normal: {
|
|
59
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
60
|
+
placeholderTextColor: 'secondaryTextSecondary',
|
|
61
|
+
},
|
|
62
|
+
readonly: {
|
|
63
|
+
borderColor: 'surfaceBorderDisabled',
|
|
64
|
+
textColor: 'surfaceTextPrimary',
|
|
65
|
+
},
|
|
66
|
+
require: {
|
|
67
|
+
borderColor: 'surfaceBorderActive',
|
|
68
|
+
textColor: 'surfaceTextPrimary',
|
|
69
|
+
},
|
|
70
|
+
success: {
|
|
71
|
+
borderColor: 'successBorderPrimary',
|
|
72
|
+
textColor: 'surfaceTextPrimary',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
27
75
|
|
|
28
76
|
var inputPasswordConfig = {
|
|
29
77
|
appearance: InputPasswordAppearance,
|
package/dist/components/Label.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
export { L as Label, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-zOLL6ePu.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../appearance/Label.js';
|
|
6
5
|
import '../hooks/useDeviceTargetClass.js';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
9
8
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
9
|
import '../hooks/useMediaQueries.js';
|
|
12
10
|
import 'react-responsive';
|
|
13
11
|
import '../hooks/useStyles.js';
|
|
14
12
|
import 'lodash/maxBy';
|
|
15
13
|
import 'lodash/upperFirst';
|
|
16
14
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
18
|
-
import '../
|
|
19
|
-
import '../
|
|
20
|
-
import '../appearance/Tooltip.js';
|
|
21
|
-
import '../Title-CQ_Fr1hO.js';
|
|
22
|
-
import '../appearance/Title.js';
|
|
15
|
+
import '../Text-C4Bg2Mv6.js';
|
|
16
|
+
import '../Tooltip--c-4Qp04.js';
|
|
17
|
+
import '../Title-YVzIwk68.js';
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { I as Icon } from '../Icon-
|
|
3
|
+
import { I as Icon } from '../Icon-DptCmI_y.js';
|
|
4
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
import 'react-inlinesvg';
|
|
6
|
-
import '../appearance/Icon.js';
|
|
7
7
|
import '../hooks/useDeviceTargetClass.js';
|
|
8
|
-
import 'lodash/castArray';
|
|
9
8
|
import 'lodash/camelCase';
|
|
9
|
+
import 'lodash/castArray';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
14
13
|
import '../hooks/useStyles.js';
|
|
15
14
|
import 'lodash/maxBy';
|
|
16
15
|
import 'lodash/upperFirst';
|
|
17
16
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
22
|
-
import '../Text-kxGZButz.js';
|
|
23
|
-
import '../appearance/Text.js';
|
|
24
|
-
import '../Title-CQ_Fr1hO.js';
|
|
25
|
-
import '../appearance/Title.js';
|
|
17
|
+
import '../Link-CeQuavin.js';
|
|
18
|
+
import '../Tooltip--c-4Qp04.js';
|
|
19
|
+
import '../Text-C4Bg2Mv6.js';
|
|
20
|
+
import '../Title-YVzIwk68.js';
|
|
26
21
|
|
|
27
22
|
function LanguageSelectorItem(props) {
|
|
28
23
|
var label = props.label, iconSize = props.iconSize, SvgImage = props.SvgImage, isActive = props.isActive, onClick = props.onClick;
|
package/dist/components/Link.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-
|
|
2
|
-
import '../tslib.es6-
|
|
1
|
+
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-CeQuavin.js';
|
|
2
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
6
|
import '../hooks/useDeviceTargetClass.js';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
7
|
import 'lodash/camelCase';
|
|
8
|
+
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
package/dist/components/List.js
CHANGED
|
@@ -2,18 +2,17 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useStyles } from '../hooks/useStyles.js';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { L as Link } from '../Link-
|
|
5
|
+
import { L as Link } from '../Link-CeQuavin.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/maxBy';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
14
13
|
import '../hooks/styleAttributes.js';
|
|
15
14
|
import 'lodash/castArray';
|
|
16
|
-
import '../tslib.es6-
|
|
15
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
16
|
|
|
18
17
|
function List(props) {
|
|
19
18
|
var children = props.children, className = props.className, style = props.style, type = props.type;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
export { L as Loader, l as loaderConfig } from '../Loader-
|
|
1
|
+
export { L as Loader, l as loaderConfig } from '../Loader-DHNcD09o.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
|
-
import '../appearance/Loader.js';
|
|
5
4
|
import '../hooks/useDeviceTargetClass.js';
|
|
6
5
|
import 'react';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
9
8
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
9
|
import '../hooks/useMediaQueries.js';
|
|
12
10
|
import 'react-responsive';
|
|
13
11
|
import '../hooks/useStyles.js';
|
|
14
12
|
import 'lodash/maxBy';
|
|
15
13
|
import 'lodash/upperFirst';
|
|
16
14
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
18
|
-
import '../appearance/Text.js';
|
|
15
|
+
import '../Text-C4Bg2Mv6.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -2,18 +2,17 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { a as LinkWrapper } from '../Link-
|
|
5
|
+
import { a as LinkWrapper } from '../Link-CeQuavin.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
7
|
import 'lodash/camelCase';
|
|
8
|
+
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import 'lodash/maxBy';
|
|
14
13
|
import 'lodash/upperFirst';
|
|
15
14
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../tslib.es6-
|
|
15
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
16
|
|
|
18
17
|
var logoConfig = {
|
|
19
18
|
appearance: undefined,
|
package/dist/components/Menu.js
CHANGED
|
@@ -2,22 +2,19 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { M as MenuItem } from '../MenuItem-
|
|
5
|
+
import { M as MenuItem } from '../MenuItem-C7frDyBO.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
7
|
import 'lodash/camelCase';
|
|
8
|
+
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import 'lodash/maxBy';
|
|
14
13
|
import 'lodash/upperFirst';
|
|
15
14
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../
|
|
17
|
-
import '../
|
|
18
|
-
import '../
|
|
19
|
-
import '../Text-kxGZButz.js';
|
|
20
|
-
import '../appearance/Text.js';
|
|
15
|
+
import '../Link-CeQuavin.js';
|
|
16
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
|
+
import '../Text-C4Bg2Mv6.js';
|
|
21
18
|
|
|
22
19
|
function Menu(props) {
|
|
23
20
|
var after = props.after, before = props.before, children = props.children, className = props.className, items = props.items, type = props.type, onClickItem = props.onClickItem;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
export { M as MenuItem, m as menuItemConfig } from '../MenuItem-
|
|
1
|
+
export { M as MenuItem, m as menuItemConfig } from '../MenuItem-C7frDyBO.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../appearance/MenuItem.js';
|
|
6
5
|
import '../hooks/useDeviceTargetClass.js';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
9
8
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
9
|
import '../hooks/useMediaQueries.js';
|
|
12
10
|
import 'react-responsive';
|
|
13
11
|
import '../hooks/useStyles.js';
|
|
14
12
|
import 'lodash/maxBy';
|
|
15
13
|
import 'lodash/upperFirst';
|
|
16
14
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../tslib.es6-
|
|
19
|
-
import '../Text-
|
|
20
|
-
import '../appearance/Text.js';
|
|
15
|
+
import '../Link-CeQuavin.js';
|
|
16
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
|
+
import '../Text-C4Bg2Mv6.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,20 +5,27 @@ import ReactDOM from 'react-dom';
|
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
7
|
import { O as Overlay } from '../Overlay-DO5dnSRE.js';
|
|
8
|
-
import { L as Loader } from '../Loader-
|
|
9
|
-
import 'lodash/castArray';
|
|
8
|
+
import { L as Loader } from '../Loader-DHNcD09o.js';
|
|
10
9
|
import 'lodash/camelCase';
|
|
10
|
+
import 'lodash/castArray';
|
|
11
11
|
import '../context/UIContext.js';
|
|
12
|
-
import 'prop-types';
|
|
13
12
|
import '../hooks/useMediaQueries.js';
|
|
14
13
|
import 'react-responsive';
|
|
15
14
|
import 'lodash/maxBy';
|
|
16
15
|
import 'lodash/upperFirst';
|
|
17
16
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../
|
|
19
|
-
import '../Text-kxGZButz.js';
|
|
20
|
-
import '../appearance/Text.js';
|
|
17
|
+
import '../Text-C4Bg2Mv6.js';
|
|
21
18
|
|
|
19
|
+
var modalAppearance = {
|
|
20
|
+
dev: {},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var modalConfig = {
|
|
24
|
+
appearance: modalAppearance,
|
|
25
|
+
setAppearance: function (newComponent) {
|
|
26
|
+
modalConfig.appearance = newComponent;
|
|
27
|
+
},
|
|
28
|
+
};
|
|
22
29
|
var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
23
30
|
var _a;
|
|
24
31
|
if (className === void 0) { className = ''; }
|
|
@@ -41,7 +48,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
41
48
|
};
|
|
42
49
|
// Modal component that is an abstraction around the portal API.
|
|
43
50
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
44
|
-
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === void 0 ? true : _a, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isOverlay, isOverlay = _c === void 0 ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === void 0 ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === void 0 ? true : _e, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === void 0 ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
51
|
+
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === void 0 ? true : _a, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isOverlay, isOverlay = _c === void 0 ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === void 0 ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === void 0 ? true : _e, appearance = props.appearance, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === void 0 ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
45
52
|
// Query DOM element
|
|
46
53
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
47
54
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -55,7 +62,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
55
62
|
// Scroll to opened modal
|
|
56
63
|
if (isScrollOnOpen) {
|
|
57
64
|
// modalContentRef.current.style.top = `${window.visualViewport.pageTop}px`
|
|
58
|
-
element.scrollIntoView({
|
|
65
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
59
66
|
}
|
|
60
67
|
// "setTimeout" in this implementation is needs for set focus on modal
|
|
61
68
|
// after "onMouseDown" event on button
|
|
@@ -155,13 +162,26 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
155
162
|
});
|
|
156
163
|
// @ts-expect-error
|
|
157
164
|
var modalStyles = useStyles(props).styles;
|
|
165
|
+
var appearanceConfig = appearance && modalConfig.appearance && modalConfig.appearance[appearance];
|
|
158
166
|
// Use a portal to render the children into the element
|
|
159
167
|
return (modalElement &&
|
|
160
168
|
ReactDOM.createPortal(
|
|
161
169
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
162
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass
|
|
170
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass ||
|
|
171
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
172
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass ||
|
|
173
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
174
|
+
"modal-shape_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), borderColorClass ||
|
|
175
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
176
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
177
|
+
.replace(/([A-Z])/g, '-$1')
|
|
178
|
+
.toLowerCase()), borderWidthClass, borderTypeClass, elevationClass ||
|
|
179
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.elevation) &&
|
|
180
|
+
"elevation_".concat(appearanceConfig.elevation)
|
|
181
|
+
.replace(/([A-Z])/g, '-$1')
|
|
182
|
+
.toLowerCase())), ref: modalContentRef, id: id, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
|
|
163
183
|
// ref={modalOverlayRef}
|
|
164
|
-
fill: overlayFill, opacity: overlayOpacity, fillGradient: overlayFillGradient, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
184
|
+
fill: overlayFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFill), opacity: overlayOpacity || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayOpacity), fillGradient: overlayFillGradient || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFillGradient), isOverlay: isOverlay || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.isOverlay), onClick: onClickOverlay })] })) : null,
|
|
165
185
|
// A DOM element
|
|
166
186
|
modalElement));
|
|
167
187
|
});
|
|
@@ -170,4 +190,4 @@ function ModalLoader(props) {
|
|
|
170
190
|
return (jsx("div", { className: "modal-loading", children: jsx("div", { className: "modal-loading__inner", children: jsx(Loader, {}) }) }));
|
|
171
191
|
}
|
|
172
192
|
|
|
173
|
-
export { Modal, ModalLoader };
|
|
193
|
+
export { Modal, ModalLoader, modalConfig };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Sheet } from 'react-modal-sheet';
|
|
5
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'lodash/camelCase';
|
|
9
|
+
import 'lodash/castArray';
|
|
10
|
+
import '../context/UIContext.js';
|
|
11
|
+
import '../hooks/useMediaQueries.js';
|
|
12
|
+
import 'react-responsive';
|
|
13
|
+
import 'lodash/maxBy';
|
|
14
|
+
import 'lodash/upperFirst';
|
|
15
|
+
import '../hooks/styleAttributes.js';
|
|
16
|
+
|
|
17
|
+
function ModalSheetBottom(props) {
|
|
18
|
+
var children = props.children, isOpenModal = props.isOpenModal, className = props.className, closeButton = props.closeButton, closeModal = props.closeModal;
|
|
19
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
20
|
+
prefix: 'border-color_',
|
|
21
|
+
propsKey: 'borderColor',
|
|
22
|
+
});
|
|
23
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
24
|
+
prefix: 'fill_',
|
|
25
|
+
propsKey: 'fill',
|
|
26
|
+
});
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
var styles = useStyles(props).styles;
|
|
29
|
+
return (jsxs(Sheet, __assign({ className: clsx(className, 'modal-sheet-bottom', borderColorClass, fillClass), isOpen: isOpenModal, onClose: closeModal }, props, { children: [jsxs(Sheet.Container, { className: clsx(className, 'modal-sheet-bottom__container', borderColorClass, fillClass), style: styles, children: [closeButton ? (jsx("div", { className: "modal-sheet-bottom__header", children: jsx("div", { className: clsx('modal-sheet-bottom__close'), onClick: closeModal, children: closeButton }) })) : (jsx(Sheet.Header, { className: "modal-sheet-bottom__header" })), jsx(Sheet.Content, { className: clsx('modal-sheet-bottom__content'), children: children })] }), jsx(Sheet.Backdrop, { className: clsx('modal-sheet-bottom__backdrop'), onClick: closeModal })] })));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ModalSheetBottom };
|
|
@@ -1,26 +1,55 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { notificationItemAppearance } from '../appearance/Notification.js';
|
|
4
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { T as Text } from '../Text-
|
|
7
|
-
import { T as Title } from '../Title-
|
|
5
|
+
import { T as Text } from '../Text-C4Bg2Mv6.js';
|
|
6
|
+
import { T as Title } from '../Title-YVzIwk68.js';
|
|
8
7
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
9
8
|
import 'react';
|
|
10
|
-
import 'lodash/castArray';
|
|
11
9
|
import 'lodash/camelCase';
|
|
10
|
+
import 'lodash/castArray';
|
|
12
11
|
import '../context/UIContext.js';
|
|
13
|
-
import 'prop-types';
|
|
14
12
|
import '../hooks/useMediaQueries.js';
|
|
15
13
|
import 'react-responsive';
|
|
16
14
|
import 'lodash/maxBy';
|
|
17
15
|
import 'lodash/upperFirst';
|
|
18
16
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../
|
|
20
|
-
import '../appearance/Title.js';
|
|
21
|
-
import '../tslib.es6-w7hdJ3oZ.js';
|
|
17
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
22
18
|
import 'uuid';
|
|
23
19
|
|
|
20
|
+
var notificationItemAppearance = {
|
|
21
|
+
accent: {
|
|
22
|
+
fill: 'accentPrimary',
|
|
23
|
+
textColor: 'accentTextPrimary',
|
|
24
|
+
titleTextColor: 'accentTextPrimary',
|
|
25
|
+
},
|
|
26
|
+
primary: {
|
|
27
|
+
fill: 'primaryPrimary',
|
|
28
|
+
textColor: 'primaryTextPrimary',
|
|
29
|
+
titleTextColor: 'primaryTextPrimary',
|
|
30
|
+
},
|
|
31
|
+
secondary: {
|
|
32
|
+
fill: 'secondaryPrimary',
|
|
33
|
+
textColor: 'secondaryTextPrimary',
|
|
34
|
+
titleTextColor: 'secondaryTextPrimary',
|
|
35
|
+
},
|
|
36
|
+
surfacePrimary: {
|
|
37
|
+
fill: 'surfacePrimary',
|
|
38
|
+
textColor: 'surfaceTextPrimary',
|
|
39
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
40
|
+
},
|
|
41
|
+
surfaceSecondary: {
|
|
42
|
+
fill: 'surfaceSecondary',
|
|
43
|
+
textColor: 'surfaceTextPrimary',
|
|
44
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
45
|
+
},
|
|
46
|
+
surfaceTertiary: {
|
|
47
|
+
fill: 'surfaceTertiary',
|
|
48
|
+
textColor: 'surfaceTextPrimary',
|
|
49
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
24
53
|
var notificationItemConfig = {
|
|
25
54
|
appearance: notificationItemAppearance,
|
|
26
55
|
setAppearance: function (newComponent) {
|
|
@@ -38,11 +67,13 @@ function NotificationItem(props) {
|
|
|
38
67
|
propsKey: 'width',
|
|
39
68
|
});
|
|
40
69
|
var appearanceConfig = appearance && notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
70
|
+
// @ts-expect-error
|
|
41
71
|
var notificationStyles = useStyles(props).styles;
|
|
42
|
-
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass
|
|
72
|
+
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass ||
|
|
73
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.width) &&
|
|
74
|
+
"width_".concat(appearanceConfig.width).replace(/([A-Z])/g, '-$1').toLowerCase()), fillClass ||
|
|
43
75
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
44
|
-
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase())), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Title, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor ||
|
|
45
|
-
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor) && appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize, textColor: textColor || ((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) && appearanceConfig.textColor), children: text })), closeButton && (jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
76
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase())), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Title, { className: "notification__item-title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: text })), closeButton && (jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
46
77
|
}
|
|
47
78
|
|
|
48
79
|
function NotificationList(props) {
|
|
@@ -52,4 +83,4 @@ function NotificationList(props) {
|
|
|
52
83
|
return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsx(NotificationItem, { closeButton: closeButton, id: notification.id, size: notification.size || size, status: notification.status, text: notification.text, title: notification.title, type: notification.type || type, set: notification.set || set, onClickClose: hideNotifications }, i)); }) }) }));
|
|
53
84
|
}
|
|
54
85
|
|
|
55
|
-
export { NotificationItem, NotificationList, notificationItemConfig };
|
|
86
|
+
export { NotificationItem, NotificationList, notificationItemAppearance, notificationItemConfig };
|
|
@@ -3,10 +3,9 @@ import 'react/jsx-runtime';
|
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import 'react';
|
|
6
|
-
import 'lodash/castArray';
|
|
7
6
|
import 'lodash/camelCase';
|
|
7
|
+
import 'lodash/castArray';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import '../hooks/useStyles.js';
|