@itcase/ui 1.3.30 → 1.3.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-BX4N91_C.js +250 -0
- package/dist/Badge-CGHosmYx.js +246 -0
- package/dist/Button-D1m2MxZA.js +291 -0
- package/dist/Button-DZ3z7f-A.js +287 -0
- package/dist/Divider-BQcBkzt1.js +30 -0
- package/dist/Divider-ImOOytuN.js +34 -0
- package/dist/{DropdownItem-FNOztnTT.js → DropdownItem-BiiEhR49.js} +12 -16
- package/dist/{DropdownItem-Bq-oPnWX.js → DropdownItem-g5jWbyJy.js} +12 -16
- package/dist/{Group-c3ZkPu8e.js → Group-BKJmVwPZ.js} +4 -4
- package/dist/{Group-BY8OkVsS.js → Group-Bkz3RO18.js} +4 -4
- package/dist/{Icon-pUvizy3W.js → Icon-GVGrUu_Z.js} +6 -6
- package/dist/{Icon-BdHr6E6M.js → Icon-htF_V35Y.js} +7 -7
- package/dist/{Image-BbBG_UGI.js → Image-BEGwuGBM.js} +4 -4
- package/dist/{Image-D-QHhsrC.js → Image-DWfyapuD.js} +4 -4
- package/dist/{Input-BrV5_NoV.js → Input-COFdaiTe.js} +3 -3
- package/dist/{Input-ffioh1sj.js → Input-Dwvk-poq.js} +3 -3
- package/dist/Label-Dpeq55TV.js +233 -0
- package/dist/Label-XTFwl1aq.js +237 -0
- package/dist/{Link-CxWmYMyL.js → Link-B38Hn4G2.js} +5 -5
- package/dist/{Link-DN2LhPjD.js → Link-BhJ5BdyS.js} +6 -6
- package/dist/Loader-CBEbIRnd.js +69 -0
- package/dist/Loader-CsPvc-9g.js +65 -0
- package/dist/{MenuItem-CLDNk2l8.js → MenuItem-Cjlnmfwh.js} +6 -6
- package/dist/{MenuItem-amqx61Y0.js → MenuItem-PJkuGghn.js} +6 -6
- package/dist/{Overlay-B9nOIfLe.js → Overlay-BKh07Vb2.js} +4 -4
- package/dist/{Overlay-Yf9EEclM.js → Overlay-DiCjwUv4.js} +4 -4
- package/dist/{Text-Beslj4Ns.js → Text-C49zj3jO.js} +7 -7
- package/dist/{Text-JayJa3hj.js → Text-C6NSmetx.js} +7 -7
- package/dist/{Title-BfKF5WvZ.js → Title-BWWyRwLY.js} +4 -4
- package/dist/{Title-C7Qv9WfS.js → Title-Dck3eHNM.js} +4 -4
- package/dist/{Tooltip-AodzD-7D.js → Tooltip-BYgzNVYI.js} +18 -14
- package/dist/{Tooltip-BDEyAnd-.js → Tooltip-DpBQQoNo.js} +18 -14
- package/dist/cjs/components/Accordion.js +15 -15
- package/dist/cjs/components/Avatar.js +22 -20
- package/dist/cjs/components/Badge.js +12 -7
- package/dist/cjs/components/Breadcrumbs.js +16 -21
- package/dist/cjs/components/Button.js +13 -13
- package/dist/cjs/components/Card.js +9 -9
- package/dist/cjs/components/Cell.js +32 -17
- package/dist/cjs/components/Checkbox.js +13 -13
- package/dist/cjs/components/Checkmark.js +25 -23
- package/dist/cjs/components/Chips.js +22 -17
- package/dist/cjs/components/Choice.js +13 -13
- package/dist/cjs/components/Code.js +9 -19
- package/dist/cjs/components/CookiesWarning.js +15 -15
- package/dist/cjs/components/DadataHintField.js +4 -3
- package/dist/cjs/components/DatePicker.js +43 -19
- package/dist/cjs/components/Divider.js +7 -7
- package/dist/cjs/components/Dot.js +7 -7
- package/dist/cjs/components/Dropdown.js +9 -9
- package/dist/cjs/components/Flex.js +12 -11
- package/dist/cjs/components/Grid.js +12 -12
- package/dist/cjs/components/Group.js +6 -6
- package/dist/cjs/components/HTMLContent.js +7 -7
- package/dist/cjs/components/HeroTitle.js +9 -9
- package/dist/cjs/components/Icon.js +10 -10
- package/dist/cjs/components/Image.js +6 -6
- package/dist/cjs/components/Input.js +4 -3
- package/dist/cjs/components/InputMask.js +16 -15
- package/dist/cjs/components/InputPassword.js +12 -16
- package/dist/cjs/components/Label.js +10 -10
- package/dist/cjs/components/Link.js +6 -6
- package/dist/cjs/components/List.js +13 -12
- package/dist/cjs/components/Loader.js +8 -8
- package/dist/cjs/components/Logo.js +17 -15
- package/dist/cjs/components/Menu.js +11 -15
- package/dist/cjs/components/MenuItem.js +8 -8
- package/dist/cjs/components/Modal.js +11 -16
- package/dist/cjs/components/ModalSheetBottom.js +3 -3
- package/dist/cjs/components/Notification.js +8 -8
- package/dist/cjs/components/Overlay.js +6 -6
- package/dist/cjs/components/Pagination.js +14 -14
- package/dist/cjs/components/Panel.js +9 -9
- package/dist/cjs/components/Radio.js +16 -19
- package/dist/cjs/components/RangeSlider.js +7 -7
- package/dist/cjs/components/Response.js +15 -15
- package/dist/cjs/components/SVGContent.js +7 -7
- package/dist/cjs/components/ScrollOnDrag.js +8 -11
- package/dist/cjs/components/ScrollToView.js +9 -9
- package/dist/cjs/components/Search.js +16 -19
- package/dist/cjs/components/Segmented.js +8 -8
- package/dist/cjs/components/Select.js +34 -34
- package/dist/cjs/components/Swiper.js +11 -14
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +17 -13
- package/dist/cjs/components/Text.js +6 -6
- package/dist/cjs/components/Textarea.js +8 -11
- package/dist/cjs/components/Tile.js +24 -20
- package/dist/cjs/components/Title.js +8 -8
- package/dist/cjs/components/Tooltip.js +9 -9
- package/dist/cjs/components/Video.js +4 -3
- package/dist/cjs/context/UIContext.js +48 -17
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +120 -0
- package/dist/cjs/hooks/useDevicePropsGenerator.js +17 -0
- package/dist/cjs/hooks/useDeviceTargetClass.js +8 -3
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +129 -0
- package/dist/cjs/hooks/useMediaQueries.js +4 -122
- package/dist/cjs/hooks/{styleAttributes.js → useStyles/styleAttributes.js} +8 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +190 -0
- package/dist/cjs/hooks/useStyles.js +10 -174
- package/dist/components/Accordion.js +16 -16
- package/dist/components/Avatar.js +22 -20
- package/dist/components/Badge.js +13 -8
- package/dist/components/Breadcrumbs.js +17 -22
- package/dist/components/Button.js +13 -13
- package/dist/components/Card.js +10 -10
- package/dist/components/Cell.js +33 -18
- package/dist/components/Checkbox.js +14 -14
- package/dist/components/Checkmark.js +25 -23
- package/dist/components/Chips.js +22 -17
- package/dist/components/Choice.js +14 -14
- package/dist/components/Code.js +10 -20
- package/dist/components/CookiesWarning.js +16 -16
- package/dist/components/DadataHintField.js +5 -4
- package/dist/components/DatePicker.js +44 -20
- package/dist/components/Divider.js +7 -7
- package/dist/components/Dot.js +8 -8
- package/dist/components/Dropdown.js +10 -10
- package/dist/components/Flex.js +13 -12
- package/dist/components/Grid.js +13 -13
- package/dist/components/Group.js +7 -7
- package/dist/components/HTMLContent.js +8 -8
- package/dist/components/HeroTitle.js +9 -9
- package/dist/components/Icon.js +11 -11
- package/dist/components/Image.js +7 -7
- package/dist/components/Input.js +5 -4
- package/dist/components/InputMask.js +17 -16
- package/dist/components/InputPassword.js +13 -17
- package/dist/components/Label.js +10 -10
- package/dist/components/Link.js +7 -7
- package/dist/components/List.js +14 -13
- package/dist/components/Loader.js +8 -8
- package/dist/components/Logo.js +17 -15
- package/dist/components/Menu.js +12 -16
- package/dist/components/MenuItem.js +9 -9
- package/dist/components/Modal.js +12 -17
- package/dist/components/ModalSheetBottom.js +4 -4
- package/dist/components/Notification.js +9 -9
- package/dist/components/Overlay.js +7 -7
- package/dist/components/Pagination.js +15 -15
- package/dist/components/Panel.js +10 -10
- package/dist/components/Radio.js +17 -20
- package/dist/components/RangeSlider.js +8 -8
- package/dist/components/Response.js +16 -16
- package/dist/components/SVGContent.js +8 -8
- package/dist/components/ScrollOnDrag.js +9 -12
- package/dist/components/ScrollToView.js +10 -10
- package/dist/components/Search.js +17 -20
- package/dist/components/Segmented.js +9 -9
- package/dist/components/Select.js +35 -35
- package/dist/components/Swiper.js +12 -15
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +18 -14
- package/dist/components/Text.js +7 -7
- package/dist/components/Textarea.js +9 -12
- package/dist/components/Tile.js +24 -20
- package/dist/components/Title.js +8 -8
- package/dist/components/Tooltip.js +9 -9
- package/dist/components/Video.js +4 -3
- package/dist/context/Notifications.js +1 -1
- package/dist/context/UIContext.js +50 -18
- package/dist/css/components/Avatar/Avatar.css +8 -8
- package/dist/css/components/Badge/Badge.css +48 -26
- package/dist/css/components/Badge/Badge.tokens.css +48 -18
- package/dist/css/components/Button/Button.css +67 -303
- package/dist/css/components/Button/Button.tokens.css +37 -115
- package/dist/css/components/Cell/Cell.css +2 -2
- package/dist/css/components/Checkbox/Checkbox.css +6 -4
- package/dist/css/components/Checkmark/Checkmark.css +11 -10
- package/dist/css/components/Checkmark/Checkmark.tokens.css +20 -14
- package/dist/css/components/Chips/Chips.css +0 -10
- package/dist/css/components/DadataHintField/DadataHintField.css +0 -8
- package/dist/css/components/DadataHintField/DadataHintField.tokens.css +7 -2
- package/dist/css/components/DatePicker/DatePicker.css +102 -69
- package/dist/css/components/DatePicker/DatePicker.tokens.css +7 -2
- package/dist/css/components/Divider/Divider.css +0 -12
- package/dist/css/components/Divider/Divider.tokens.css +12 -0
- package/dist/css/components/Flex/Flex.css +0 -1
- package/dist/css/components/Grid/Grid.css +1 -5
- package/dist/css/components/Group/Group.css +2 -0
- package/dist/css/components/HeroTitle/HeroTitle.css +2 -2
- package/dist/css/components/Icon/Icon.css +13 -14
- package/dist/css/components/Icon/Icon.tokens.css +2 -1
- package/dist/css/components/Image/Image.css +3 -3
- package/dist/css/components/Label/Label.css +2 -2
- package/dist/css/components/Loader/Loader.css +12 -5
- package/dist/css/components/Logo/Logo.css +3 -19
- package/dist/css/components/Menu/Menu.css +9 -1
- package/dist/css/components/MenuItem/MenuItem.css +0 -10
- package/dist/css/components/MenuItem/MenuItem.tokens.css +9 -1
- package/dist/css/components/Radio/Radio.css +0 -3
- package/dist/css/components/Radio/Radio.tokens.css +2 -1
- package/dist/css/components/ScrollToView/ScrollToView.css +4 -4
- package/dist/css/components/Swiper/Swiper.css +2 -3
- package/dist/css/components/Switch/Switch.css +0 -7
- package/dist/css/components/Text/Text.css +2 -2
- package/dist/css/components/Title/Title.css +2 -2
- package/dist/css/components/Tooltip/Tooltip.css +15 -21
- package/dist/css/components/Tooltip/Tooltip.tokens.css +13 -0
- package/dist/css/styles/direction/direction.css +2 -0
- package/dist/css/styles/fill/fill.css +14 -9
- package/dist/css/styles/fill/fill_active.css +6 -3
- package/dist/css/styles/fill/fill_active_hover.css +8 -6
- package/dist/css/styles/fill/fill_disabled.css +6 -3
- package/dist/css/styles/fill/fill_hover.css +6 -3
- package/dist/css/styles/shape-strength/shape-strength.css +22 -0
- package/dist/css/styles/svg-color/svg_fill.css +27 -17
- package/dist/css/styles/svg-color/svg_fill_hover.css +12 -10
- package/dist/css/styles/svg-color/svg_path_fill.css +13 -9
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +118 -0
- package/dist/hooks/useDevicePropsGenerator.js +11 -0
- package/dist/hooks/useDeviceTargetClass.js +8 -3
- package/dist/hooks/useMediaQueries/useMediaQueries.js +127 -0
- package/dist/hooks/useMediaQueries.js +3 -125
- package/dist/hooks/{styleAttributes.js → useStyles/styleAttributes.js} +8 -1
- package/dist/hooks/useStyles/useStyles.js +188 -0
- package/dist/hooks/useStyles.js +9 -177
- package/dist/stories/AlignContent.mdx +1 -1
- package/dist/stories/AlignItems.mdx +1 -1
- package/dist/stories/AlignSelf.mdx +1 -1
- package/dist/stories/Appearance.mdx +1 -1
- package/dist/stories/Avatar.mdx +1 -1
- package/dist/stories/Checkbox.mdx +1 -1
- package/dist/stories/Checkmark.mdx +7 -3
- package/dist/stories/Chips.mdx +1 -1
- package/dist/stories/Choice.mdx +1 -1
- package/dist/stories/Code.mdx +1 -1
- package/dist/stories/Columns.mdx +1 -1
- package/dist/stories/Components.mdx +197 -0
- package/dist/stories/DatePicker.mdx +1 -1
- package/dist/stories/Dev.mdx +1 -1
- package/dist/stories/DevMode.mdx +1 -1
- package/dist/stories/Direction.mdx +1 -1
- package/dist/stories/Divider.mdx +1 -1
- package/dist/stories/Dot.mdx +1 -1
- package/dist/stories/Drawer.mdx +1 -1
- package/dist/stories/Dropdown.mdx +2 -2
- package/dist/stories/DropdownItem.mdx +1 -1
- package/dist/stories/Group.mdx +1 -1
- package/dist/stories/Grow.mdx +1 -1
- package/dist/stories/HeroTitle.mdx +1 -1
- package/dist/stories/Icon.mdx +1 -1
- package/dist/stories/Image.mdx +1 -1
- package/dist/stories/Input.mdx +1 -1
- package/dist/stories/InputPassword.mdx +1 -1
- package/dist/stories/JustifyContent.mdx +1 -1
- package/dist/stories/Label.mdx +1 -1
- package/dist/stories/Loader.mdx +1 -1
- package/dist/stories/Logo.mdx +1 -1
- package/dist/stories/MenuItem.mdx +1 -1
- package/dist/stories/Message.mdx +1 -1
- package/dist/stories/Notification.mdx +1 -1
- package/dist/stories/Order.mdx +1 -1
- package/dist/stories/Overview.mdx +1 -1
- package/dist/stories/Pagination.mdx +1 -1
- package/dist/stories/Playground.mdx +1 -1
- package/dist/stories/Radio.mdx +1 -1
- package/dist/stories/Response.mdx +1 -1
- package/dist/stories/SearchInput.mdx +1 -1
- package/dist/stories/Segmented.mdx +1 -1
- package/dist/stories/Size.mdx +1 -1
- package/dist/stories/Skeleton.mdx +1 -1
- package/dist/stories/State.mdx +1 -1
- package/dist/stories/Switch.mdx +1 -1
- package/dist/stories/Text.mdx +1 -1
- package/dist/stories/Textarea.mdx +1 -1
- package/dist/stories/Tile.mdx +1 -1
- package/dist/stories/Title.mdx +1 -1
- package/dist/stories/Tooltip.mdx +1 -1
- package/dist/stories/WithTooltip.mdx +1 -1
- package/dist/stories/Wrap.mdx +1 -1
- package/dist/{tslib.es6-Bwu1Cn-t.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/appearance/defaultAppearance.d.ts +33 -0
- package/dist/types/appearance/index.d.ts +3 -0
- package/dist/types/appearance/styleAppearance.d.ts +14 -0
- package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +0 -6
- package/dist/types/components/Badge/Badge.interface.d.ts +1 -1
- package/dist/types/components/Badge/appearance/badgeAccent.d.ts +39 -0
- package/dist/types/components/Badge/appearance/badgeDanger.d.ts +11 -0
- package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +10 -0
- package/dist/types/components/Badge/appearance/badgeError.d.ts +12 -0
- package/dist/types/components/Badge/appearance/badgeInfo.d.ts +18 -0
- package/dist/types/components/Badge/appearance/badgePrimary.d.ts +11 -0
- package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +11 -0
- package/dist/types/components/Badge/appearance/badgeSize.d.ts +32 -0
- package/dist/types/components/Badge/appearance/badgeStyle.d.ts +16 -0
- package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +11 -0
- package/dist/types/components/Badge/appearance/badgeSurface.d.ts +29 -0
- package/dist/types/components/Badge/appearance/badgeWarning.d.ts +11 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -5
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +1 -1
- package/dist/types/components/Button/Button.interface.d.ts +1 -1
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +50 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonError.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +21 -0
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +8 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +8 -0
- package/dist/types/components/Button/appearance/buttonSize.d.ts +59 -0
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +16 -0
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +25 -0
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +11 -0
- package/dist/types/components/Button/stories/args.d.ts +49 -49
- package/dist/types/components/Card/Card.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.interface.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -1
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +1 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -1
- package/dist/types/components/Chips/stories/args.d.ts +2 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -1
- package/dist/types/components/Code/Code.d.ts +0 -15
- package/dist/types/components/Code/Code.interface.d.ts +1 -1
- package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +1 -1
- package/dist/types/components/Divider/Divider.d.ts +0 -5
- package/dist/types/components/Divider/Divider.interface.d.ts +1 -1
- package/dist/types/components/Dot/Dot.interface.d.ts +1 -1
- package/dist/types/components/Drawer/Drawer.interface.d.ts +1 -1
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -1
- package/dist/types/components/Dropdown/DropdownItem.d.ts +0 -7
- package/dist/types/components/Flex/Flex.interface.d.ts +1 -1
- package/dist/types/components/Flex/stories/args.d.ts +1 -1
- package/dist/types/components/Grid/Grid.interface.d.ts +1 -1
- package/dist/types/components/Grid/stories/args.d.ts +2 -2
- package/dist/types/components/Group/Group.interface.d.ts +1 -1
- package/dist/types/components/Group/stories/args.d.ts +2 -2
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -1
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -1
- package/dist/types/components/Icon/Icon.interface.d.ts +1 -1
- package/dist/types/components/Image/Image.interface.d.ts +1 -1
- package/dist/types/components/Input/Input.interface.d.ts +1 -1
- package/dist/types/components/InputMask/Input.interface.d.ts +1 -1
- package/dist/types/components/InputPassword/InputPassword.d.ts +0 -6
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +1 -1
- package/dist/types/components/Label/Label.interface.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelAccent.d.ts +13 -0
- package/dist/types/components/Label/appearance/labelDanger.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelGradient.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelInfo.d.ts +21 -0
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +8 -0
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +8 -0
- package/dist/types/components/Label/appearance/labelSize.d.ts +59 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +16 -0
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +24 -0
- package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/List/List.interface.d.ts +1 -1
- package/dist/types/components/Loader/Loader.interface.d.ts +1 -1
- package/dist/types/components/Loader/appearance/loaderAccent.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSurface.d.ts +15 -0
- package/dist/types/components/Logo/Logo.interface.d.ts +1 -1
- package/dist/types/components/Menu/Menu.d.ts +0 -5
- package/dist/types/components/Menu/Menu.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
- package/dist/types/components/Modal/Modal.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +1 -1
- package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +1 -1
- package/dist/types/components/Panel/Panel.interface.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +0 -5
- package/dist/types/components/Radio/Radio.interface.d.ts +1 -1
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +1 -1
- package/dist/types/components/Response/stories/args.d.ts +4 -4
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +1 -1
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -5
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +1 -1
- package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +1 -1
- package/dist/types/components/Search/Search.interface.d.ts +1 -1
- package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -1
- package/dist/types/components/Swiper/Swiper.d.ts +0 -5
- package/dist/types/components/Swiper/Swiper.interface.d.ts +1 -1
- package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -1
- package/dist/types/components/Tab/stories/args.d.ts +3 -3
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Textarea/Textarea.d.ts +0 -5
- package/dist/types/components/Textarea/Textarea.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.d.ts +0 -5
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -1
- package/dist/types/components/Title/Title.interface.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +1 -1
- package/dist/types/components/Video/Video.interface.d.ts +1 -1
- package/dist/types/context/UIContext.d.ts +8 -12
- package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +3 -0
- package/dist/types/hooks/{useDeviceTargetClassGenerator.interface.d.ts → useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts} +2 -2
- package/dist/types/hooks/useMediaQueries/index.d.ts +1 -0
- package/dist/types/hooks/useStyles/index.d.ts +1 -0
- package/dist/types/hooks/useStyles/styleAttributes.d.ts +4 -0
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/types/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/types/componentProps/fill.d.ts +1 -1
- package/package.json +15 -12
- package/dist/Badge-5gtVywXB.js +0 -111
- package/dist/Badge-DhOJoJgc.js +0 -115
- package/dist/Button-BSnodY9v.js +0 -103
- package/dist/Button-Kcw2DdY0.js +0 -99
- package/dist/Divider-DBvDCUqP.js +0 -30
- package/dist/Divider-Goh6mpPK.js +0 -34
- package/dist/Label-CBwPiUuf.js +0 -97
- package/dist/Label-DgyUhGTQ.js +0 -93
- package/dist/Loader-Dn036JwE.js +0 -56
- package/dist/Loader-K_DJmah6.js +0 -52
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +0 -3
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +0 -98
- package/dist/css/styles/gap/gap.css +0 -7
- package/dist/hooks/useDeviceTargetClassGenerator.interface.js +0 -1
- package/dist/hooks/useDeviceTargetClassGenerator.js +0 -96
- package/dist/stories/Badge.mdx +0 -20
- package/dist/stories/Button.mdx +0 -47
- package/dist/types/components/Badge/stories/args.d.ts +0 -69
- package/dist/types/hooks/styleAttributes.d.ts +0 -2
- package/dist/types/hooks/useDeviceTargetClassGenerator.d.ts +0 -3
- /package/dist/cjs/{hooks.js → hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js} +0 -0
- /package/dist/cjs/hooks/{styleAttributes.interface.js → useStyles/styleAttributes.interface.js} +0 -0
- /package/dist/{hooks.js → hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js} +0 -0
- /package/dist/hooks/{styleAttributes.interface.js → useStyles/styleAttributes.interface.js} +0 -0
- /package/dist/types/hooks/{useMediaQueries.d.ts → useMediaQueries/useMediaQueries.d.ts} +0 -0
- /package/dist/types/hooks/{styleAttributes.interface.d.ts → useStyles/styleAttributes.interface.d.ts} +0 -0
- /package/dist/types/hooks/{useStyles.d.ts → useStyles/useStyles.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { tBorderColorHoverProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tFillProps, tIconSizeProps, tItemColorProps, tShapeProps, tTextColorProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tWidthProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
export interface iSearchThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
borderColor?: tBorderColorProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tTextColorActiveProps, tTextColorProps, tTextSizeProps, tTextWrapProps, tWidthProps } from 'types';
|
|
2
2
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
3
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
export interface iSegmentedThemeColor {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
6
6
|
borderType?: tBorderTypeProps;
|
|
@@ -2,7 +2,7 @@ import { CSSProperties, ReactNode, type Ref } from 'react';
|
|
|
2
2
|
import { SwiperClass, type SwiperRef } from 'swiper/react';
|
|
3
3
|
import { SwiperModule, SwiperOptions } from 'swiper/types';
|
|
4
4
|
import { tAlignDirectionProps, tAlignProps, tFillProps, tShapeProps, tTextColorProps, tTextWeightProps, tTitleSizeProps } from 'types';
|
|
5
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
5
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
6
6
|
export interface iSwiperProps extends iStyleAttributes {
|
|
7
7
|
id?: string;
|
|
8
8
|
[key: number | string | symbol]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
2
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface iSwitchThemeColor {
|
|
4
4
|
size?: string;
|
|
5
5
|
set?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { tAlignDirectionProps, tAlignProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tDirectionProps, tFillHoverProps, tFillProps, tJustifyContentProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tWidthProps, tWrapProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import type { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
interface iTabThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
align?: tAlignProps;
|
|
@@ -29,7 +29,7 @@ export declare const argTypes: {
|
|
|
29
29
|
};
|
|
30
30
|
badgeFill: {
|
|
31
31
|
control: string;
|
|
32
|
-
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
|
|
32
|
+
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
|
|
33
33
|
};
|
|
34
34
|
badgeSize: {
|
|
35
35
|
control: string;
|
|
@@ -55,7 +55,7 @@ export declare const argTypes: {
|
|
|
55
55
|
};
|
|
56
56
|
fill: {
|
|
57
57
|
control: string;
|
|
58
|
-
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
|
|
58
|
+
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
|
|
59
59
|
};
|
|
60
60
|
fillHover: {
|
|
61
61
|
control: string;
|
|
@@ -125,7 +125,7 @@ export declare const argTypes: {
|
|
|
125
125
|
if: {
|
|
126
126
|
arg: string;
|
|
127
127
|
};
|
|
128
|
-
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
|
|
128
|
+
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
|
|
129
129
|
};
|
|
130
130
|
rel: {
|
|
131
131
|
if: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
import type { tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tTypeProps, tWidthProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import type { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
interface iTextThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
size?: tSizeProps;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { iTextareaConfig, iTextareaProps } from './Textarea.interface';
|
|
2
2
|
declare const textareaConfig: iTextareaConfig;
|
|
3
3
|
declare function Textarea(props: iTextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Textarea {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
size: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
4
|
export { Textarea, textareaConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tBorderColorHoverProps, tBorderColorProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tWidthProps } from 'types';
|
|
2
2
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
3
3
|
import { tStateKeysDefault } from 'types/componentProps/stateKeys';
|
|
4
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
export interface iTextareaThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
borderColor?: tBorderColorProps;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { iTileConfig, iTileProps } from './Tile.interface';
|
|
2
2
|
declare const tileConfig: iTileConfig;
|
|
3
3
|
declare function Tile(props: iTileProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Tile {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
alignDirection: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
4
|
export { Tile, tileConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { tAlignDirectionProps, tAlignProps, tBorderColorHoverProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tDirectionProps, tFillProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTextWrapProps, tTitleSizeProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
export interface iTileThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
borderColor?: tBorderColorProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { tFillProps, tSvgFillProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tTitleSizeProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
interface iTitleThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
fill?: tFillProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { tAlignDirectionProps, tAlignmentProps, tAlignProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tElevationProps, tFillProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTitleSizeProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
export interface iTooltipThemeColor {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
align?: tAlignProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
2
|
+
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface iVideoProps extends iStyleAttributes {
|
|
4
4
|
id?: string;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare function useUserDeviceContext(): {
|
|
3
|
-
isMobile: boolean;
|
|
4
|
-
isTablet: boolean;
|
|
5
|
-
isDesktop: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare function useSiteMenuContext(): {
|
|
8
|
-
isSiteMenuOpen: boolean;
|
|
9
|
-
setIsSiteMenuOpen: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const UIProvider: React.NamedExoticComponent<iUIProvider>;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
12
2
|
interface iUIProvider {
|
|
13
3
|
children?: ReactNode;
|
|
14
4
|
userDeviceState?: {
|
|
@@ -17,4 +7,10 @@ interface iUIProvider {
|
|
|
17
7
|
isTablet?: boolean;
|
|
18
8
|
};
|
|
19
9
|
}
|
|
20
|
-
|
|
10
|
+
declare const UIProvider: import("react").NamedExoticComponent<iUIProvider>;
|
|
11
|
+
declare function useUserDeviceContext(): {
|
|
12
|
+
isDesktop: boolean;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
isTablet: boolean;
|
|
15
|
+
};
|
|
16
|
+
export { UIProvider, useUserDeviceContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDevicePropsGenerator } from './useDevicePropsGenerator';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { iAppearanceConfig, iComponentProps, iDevicePropsGenerator } from './useDevicePropsGenerator.interface';
|
|
2
|
+
declare function useDevicePropsGenerator(componentProps: iComponentProps, appearanceConfig?: iAppearanceConfig): iDevicePropsGenerator;
|
|
3
|
+
export { useDevicePropsGenerator };
|
|
@@ -9,7 +9,7 @@ interface iGeneratorGetClassParams {
|
|
|
9
9
|
replace?: [RegExp, string];
|
|
10
10
|
}
|
|
11
11
|
type tGetClass = (propsKey: keyof iComponentProps, params?: iGeneratorGetClassParams) => string;
|
|
12
|
-
interface
|
|
12
|
+
interface iDevicePropsGenerator {
|
|
13
13
|
[key: string]: string;
|
|
14
14
|
/**
|
|
15
15
|
* Function to create class from props or appearance config by passing key and prefix(optional)
|
|
@@ -17,4 +17,4 @@ interface iDeviceTargetClassGenerator {
|
|
|
17
17
|
*/
|
|
18
18
|
getClass: tGetClass;
|
|
19
19
|
}
|
|
20
|
-
export type { iComponentProps, iAppearanceConfig, iGeneratorGetClassParams,
|
|
20
|
+
export type { iComponentProps, iAppearanceConfig, iGeneratorGetClassParams, iDevicePropsGenerator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useMediaQueries } from './useMediaQueries';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useStyles } from './useStyles';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type tAppearanceKeysDefault = 'accent' | 'accentSecondary' | 'accentTertiary' | 'any' | 'cantLoadData' | 'custom' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'gradientPrimary' | 'l' | 'm' | 'primary' | 'refresh' | 's' | 'search' | 'secondary' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
|
|
1
|
+
export type tAppearanceKeysDefault = 'accent' | 'accentPrimary' | 'accentQuaternary' | 'accentSecondary' | 'accentTertiary' | 'any' | 'cantLoadData' | 'custom' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'full' | 'ghost' | 'gradientPrimary' | 'l' | 'm' | 'outlined' | 'primary' | 'refresh' | 's' | 'search' | 'secondary' | 'solid' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const borderColorProps: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled"];
|
|
1
|
+
declare const borderColorProps: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled", "none"];
|
|
2
2
|
export type tBorderColorProps = (typeof borderColorProps)[number];
|
|
3
3
|
export { borderColorProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const fillProps: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
|
|
1
|
+
declare const fillProps: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
|
|
2
2
|
export type tFillProps = (typeof fillProps)[number];
|
|
3
3
|
export { fillProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.32",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -91,16 +91,16 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
94
|
-
"@itcase/storybook-config": "^1.0.59",
|
|
95
94
|
"@itcase/common": "^1.2.19",
|
|
96
|
-
"@itcase/config": "^1.0.
|
|
95
|
+
"@itcase/config": "^1.0.26",
|
|
97
96
|
"@itcase/icons": "^1.0.23",
|
|
97
|
+
"@itcase/storybook-config": "^1.0.63",
|
|
98
98
|
"clsx": "^2.1.1",
|
|
99
99
|
"date-fns": "^4.1.0",
|
|
100
|
-
"framer-motion": "^12.
|
|
100
|
+
"framer-motion": "^12.6.2",
|
|
101
101
|
"js-cookie": "^3.0.5",
|
|
102
102
|
"lodash": "^4.17.21",
|
|
103
|
-
"motion": "^12.
|
|
103
|
+
"motion": "^12.6.2",
|
|
104
104
|
"rc-slider": "^11.1.8",
|
|
105
105
|
"react": "^18.3.1",
|
|
106
106
|
"react-dadata": "^2.27.4",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"react-scroll": "^1.9.3",
|
|
117
117
|
"react-scrollbars-custom": "^4.1.1",
|
|
118
118
|
"react-select": "^5.10.1",
|
|
119
|
-
"swiper": "^11.2.
|
|
119
|
+
"swiper": "^11.2.6",
|
|
120
120
|
"uuid": "^11.1.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@babel/preset-react": "^7.26.3",
|
|
126
126
|
"@commitlint/cli": "^19.8.0",
|
|
127
127
|
"@commitlint/config-conventional": "^19.8.0",
|
|
128
|
-
"@itcase/lint": "^1.0.
|
|
128
|
+
"@itcase/lint": "^1.0.48",
|
|
129
129
|
"@rollup/plugin-babel": "^6.0.4",
|
|
130
130
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
131
131
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -136,6 +136,7 @@
|
|
|
136
136
|
"@semantic-release/changelog": "^6.0.3",
|
|
137
137
|
"@semantic-release/git": "^10.0.1",
|
|
138
138
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
139
|
+
"@svgr/webpack": "^8.1.0",
|
|
139
140
|
"@types/js-cookie": "^3.0.6",
|
|
140
141
|
"@types/lodash": "^4.17.16",
|
|
141
142
|
"@types/react": "^19",
|
|
@@ -148,20 +149,22 @@
|
|
|
148
149
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
149
150
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
150
151
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
151
|
-
"eslint": "9.
|
|
152
|
+
"eslint": "9.23.0",
|
|
152
153
|
"husky": "^9.1.7",
|
|
153
154
|
"lint-staged": "^15.5.0",
|
|
154
155
|
"npm": "^11.2.0",
|
|
155
156
|
"postcss": "^8.5.3",
|
|
156
157
|
"prettier": "^3.5.3",
|
|
157
|
-
"
|
|
158
|
+
"react-docgen-typescript": "^2.2.2",
|
|
159
|
+
"react-svg": "^16.3.0",
|
|
160
|
+
"rollup": "^4.38.0",
|
|
158
161
|
"rollup-plugin-copy": "^3.5.0",
|
|
159
|
-
"rollup-plugin-dts": "^6.
|
|
162
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
160
163
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
161
164
|
"rollup-preserve-directives": "^1.1.3",
|
|
162
165
|
"semantic-release": "^24.2.3",
|
|
163
|
-
"storybook": "^8.6.
|
|
164
|
-
"stylelint": "^16.
|
|
166
|
+
"storybook": "^8.6.11",
|
|
167
|
+
"stylelint": "^16.17.0",
|
|
165
168
|
"typescript": "^5.8.2"
|
|
166
169
|
},
|
|
167
170
|
"msw": {
|
package/dist/Badge-5gtVywXB.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { _ as __assign } from './tslib.es6-Bwu1Cn-t.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { useDeviceTargetClassGenerator } from './hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { T as Text } from './Text-JayJa3hj.js';
|
|
7
|
-
|
|
8
|
-
var badgeAppearance = {
|
|
9
|
-
accent: {
|
|
10
|
-
fill: 'accentPrimary',
|
|
11
|
-
fillHover: 'accentPrimaryHover',
|
|
12
|
-
textColor: 'accentTextPrimary',
|
|
13
|
-
},
|
|
14
|
-
primary: {
|
|
15
|
-
fill: 'primaryPrimary',
|
|
16
|
-
fillHover: 'primaryPrimaryHover',
|
|
17
|
-
textColor: 'primaryTextPrimary',
|
|
18
|
-
},
|
|
19
|
-
secondary: {
|
|
20
|
-
fill: 'secondaryPrimary',
|
|
21
|
-
fillHover: 'secondaryPrimaryHover',
|
|
22
|
-
textColor: 'secondaryTextPrimary',
|
|
23
|
-
},
|
|
24
|
-
surfacePrimary: {
|
|
25
|
-
fill: 'surfacePrimary',
|
|
26
|
-
fillHover: 'surfacePrimaryHover',
|
|
27
|
-
textColor: 'surfaceTextPrimary',
|
|
28
|
-
},
|
|
29
|
-
surfaceSecondary: {
|
|
30
|
-
fill: 'surfaceSecondary',
|
|
31
|
-
fillHover: 'surfaceSecondaryHover',
|
|
32
|
-
textColor: 'surfaceTextPrimary',
|
|
33
|
-
},
|
|
34
|
-
surfaceTertiary: {
|
|
35
|
-
fill: 'surfaceTertiary',
|
|
36
|
-
fillHover: 'surfaceTertiaryHover',
|
|
37
|
-
textColor: 'surfaceTextPrimary',
|
|
38
|
-
},
|
|
39
|
-
surfaceQuaternary: {
|
|
40
|
-
fill: 'surfaceQuaternary',
|
|
41
|
-
fillHover: 'surfaceTertiaryHover',
|
|
42
|
-
textColor: 'surfaceTextInverse',
|
|
43
|
-
},
|
|
44
|
-
disabled: {
|
|
45
|
-
fill: 'accentDisabled',
|
|
46
|
-
fillHover: 'none',
|
|
47
|
-
textColor: 'accentTextDisabled',
|
|
48
|
-
},
|
|
49
|
-
success: {
|
|
50
|
-
fill: 'successPrimary',
|
|
51
|
-
fillHover: 'successPrimary',
|
|
52
|
-
textColor: 'successTextSecondary',
|
|
53
|
-
},
|
|
54
|
-
warning: {
|
|
55
|
-
fill: 'warningPrimary',
|
|
56
|
-
fillHover: 'warningPrimary',
|
|
57
|
-
textColor: 'warningTextSecondary',
|
|
58
|
-
},
|
|
59
|
-
danger: {
|
|
60
|
-
fill: 'dangerPrimary',
|
|
61
|
-
fillHover: 'dangerPrimary',
|
|
62
|
-
textColor: 'dangerTextSecondary',
|
|
63
|
-
},
|
|
64
|
-
textXXS: {
|
|
65
|
-
textSize: 'xxs',
|
|
66
|
-
},
|
|
67
|
-
textXS: {
|
|
68
|
-
textSize: 'xs',
|
|
69
|
-
},
|
|
70
|
-
textS: {
|
|
71
|
-
textSize: 's',
|
|
72
|
-
},
|
|
73
|
-
textM: {
|
|
74
|
-
textSize: 'm',
|
|
75
|
-
},
|
|
76
|
-
textL: {
|
|
77
|
-
textSize: 'l',
|
|
78
|
-
},
|
|
79
|
-
textXL: {
|
|
80
|
-
textSize: 'xl',
|
|
81
|
-
},
|
|
82
|
-
textXXL: {
|
|
83
|
-
textSize: 'xxl',
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var badgeConfig = {
|
|
88
|
-
appearance: badgeAppearance,
|
|
89
|
-
setAppearance: function (newComponent) {
|
|
90
|
-
badgeConfig.appearance = newComponent;
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
function Badge(props) {
|
|
94
|
-
var children = props.children, appearance = props.appearance, className = props.className, mode = props.mode, textColor = props.textColor, textSize = props.textSize, value = props.value;
|
|
95
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
|
|
96
|
-
var _a;
|
|
97
|
-
return (__assign(__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
98
|
-
}, {});
|
|
99
|
-
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
100
|
-
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
|
|
101
|
-
// @ts-expect-error
|
|
102
|
-
var badgeStyles = useStyles(props).styles;
|
|
103
|
-
return (jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass)), style: badgeStyles, children: children ||
|
|
104
|
-
(value && (jsx(Text, { size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
|
|
105
|
-
}
|
|
106
|
-
Badge.defaultProps = {
|
|
107
|
-
shape: 'circular',
|
|
108
|
-
size: 'm',
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export { Badge as B, badgeConfig as a, badgeAppearance as b };
|
package/dist/Badge-DhOJoJgc.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.js');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var clsx = require('clsx');
|
|
6
|
-
var useDeviceTargetClassGenerator = require('./cjs/hooks/useDeviceTargetClassGenerator.js');
|
|
7
|
-
var useStyles = require('./cjs/hooks/useStyles.js');
|
|
8
|
-
var Text = require('./Text-Beslj4Ns.js');
|
|
9
|
-
|
|
10
|
-
var badgeAppearance = {
|
|
11
|
-
accent: {
|
|
12
|
-
fill: 'accentPrimary',
|
|
13
|
-
fillHover: 'accentPrimaryHover',
|
|
14
|
-
textColor: 'accentTextPrimary',
|
|
15
|
-
},
|
|
16
|
-
primary: {
|
|
17
|
-
fill: 'primaryPrimary',
|
|
18
|
-
fillHover: 'primaryPrimaryHover',
|
|
19
|
-
textColor: 'primaryTextPrimary',
|
|
20
|
-
},
|
|
21
|
-
secondary: {
|
|
22
|
-
fill: 'secondaryPrimary',
|
|
23
|
-
fillHover: 'secondaryPrimaryHover',
|
|
24
|
-
textColor: 'secondaryTextPrimary',
|
|
25
|
-
},
|
|
26
|
-
surfacePrimary: {
|
|
27
|
-
fill: 'surfacePrimary',
|
|
28
|
-
fillHover: 'surfacePrimaryHover',
|
|
29
|
-
textColor: 'surfaceTextPrimary',
|
|
30
|
-
},
|
|
31
|
-
surfaceSecondary: {
|
|
32
|
-
fill: 'surfaceSecondary',
|
|
33
|
-
fillHover: 'surfaceSecondaryHover',
|
|
34
|
-
textColor: 'surfaceTextPrimary',
|
|
35
|
-
},
|
|
36
|
-
surfaceTertiary: {
|
|
37
|
-
fill: 'surfaceTertiary',
|
|
38
|
-
fillHover: 'surfaceTertiaryHover',
|
|
39
|
-
textColor: 'surfaceTextPrimary',
|
|
40
|
-
},
|
|
41
|
-
surfaceQuaternary: {
|
|
42
|
-
fill: 'surfaceQuaternary',
|
|
43
|
-
fillHover: 'surfaceTertiaryHover',
|
|
44
|
-
textColor: 'surfaceTextInverse',
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
fill: 'accentDisabled',
|
|
48
|
-
fillHover: 'none',
|
|
49
|
-
textColor: 'accentTextDisabled',
|
|
50
|
-
},
|
|
51
|
-
success: {
|
|
52
|
-
fill: 'successPrimary',
|
|
53
|
-
fillHover: 'successPrimary',
|
|
54
|
-
textColor: 'successTextSecondary',
|
|
55
|
-
},
|
|
56
|
-
warning: {
|
|
57
|
-
fill: 'warningPrimary',
|
|
58
|
-
fillHover: 'warningPrimary',
|
|
59
|
-
textColor: 'warningTextSecondary',
|
|
60
|
-
},
|
|
61
|
-
danger: {
|
|
62
|
-
fill: 'dangerPrimary',
|
|
63
|
-
fillHover: 'dangerPrimary',
|
|
64
|
-
textColor: 'dangerTextSecondary',
|
|
65
|
-
},
|
|
66
|
-
textXXS: {
|
|
67
|
-
textSize: 'xxs',
|
|
68
|
-
},
|
|
69
|
-
textXS: {
|
|
70
|
-
textSize: 'xs',
|
|
71
|
-
},
|
|
72
|
-
textS: {
|
|
73
|
-
textSize: 's',
|
|
74
|
-
},
|
|
75
|
-
textM: {
|
|
76
|
-
textSize: 'm',
|
|
77
|
-
},
|
|
78
|
-
textL: {
|
|
79
|
-
textSize: 'l',
|
|
80
|
-
},
|
|
81
|
-
textXL: {
|
|
82
|
-
textSize: 'xl',
|
|
83
|
-
},
|
|
84
|
-
textXXL: {
|
|
85
|
-
textSize: 'xxl',
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
var badgeConfig = {
|
|
90
|
-
appearance: badgeAppearance,
|
|
91
|
-
setAppearance: function (newComponent) {
|
|
92
|
-
badgeConfig.appearance = newComponent;
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
function Badge(props) {
|
|
96
|
-
var children = props.children, appearance = props.appearance, className = props.className, mode = props.mode, textColor = props.textColor, textSize = props.textSize, value = props.value;
|
|
97
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
|
|
98
|
-
var _a;
|
|
99
|
-
return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
100
|
-
}, {});
|
|
101
|
-
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
102
|
-
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
|
|
103
|
-
// @ts-expect-error
|
|
104
|
-
var badgeStyles = useStyles.useStyles(props).styles;
|
|
105
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass)), style: badgeStyles, children: children ||
|
|
106
|
-
(value && (jsxRuntime.jsx(Text.Text, { size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
|
|
107
|
-
}
|
|
108
|
-
Badge.defaultProps = {
|
|
109
|
-
shape: 'circular',
|
|
110
|
-
size: 'm',
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
exports.Badge = Badge;
|
|
114
|
-
exports.badgeAppearance = badgeAppearance;
|
|
115
|
-
exports.badgeConfig = badgeConfig;
|