@itcase/ui 1.8.27 → 1.8.29
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/{Avatar_cjs_D84VawE9.js → Avatar_cjs_33OrnLtt.js} +36 -99
- package/dist/{Avatar_es_CUnfNViT.js → Avatar_es_B3LiV8MM.js} +36 -99
- package/dist/{Button_cjs_CYUpbdMO.js → Button_cjs_C05Joa8j.js} +3 -3
- package/dist/{Button_es_Dp6yFZgn.js → Button_es_CO_dwo-N.js} +3 -3
- package/dist/{ChipsGroup_cjs_Ct-NrPmJ.js → ChipsGroup_cjs_Cm_pVx8z.js} +12 -7
- package/dist/{ChipsGroup_es_BNuhlSG6.js → ChipsGroup_es_CLpRB95W.js} +12 -7
- package/dist/{DatePicker_cjs_DamcZFbX.js → DatePicker_cjs_0y_2FcnF.js} +15 -23
- package/dist/{DatePicker_es_Bm_onmmb.js → DatePicker_es_bY1aXemt.js} +15 -23
- package/dist/Divider_cjs_BmCJj3TN.js +99 -0
- package/dist/Divider_es_kY-30pft.js +95 -0
- package/dist/{DropdownItem_cjs_B_7anyaJ.js → DropdownItem_cjs_DPoFy70W.js} +27 -20
- package/dist/{DropdownItem_es_B4EZYdJA.js → DropdownItem_es_CVztMEm0.js} +27 -20
- package/dist/{Label_cjs_ByGAWJcj.js → Label_cjs_BefEcq6i.js} +15 -15
- package/dist/{Label_es_BtwZ3a2V.js → Label_es_Dl_DrMOh.js} +15 -15
- package/dist/{Loader_cjs___VikiqS.js → Loader_cjs_CCrbD8Em.js} +1 -1
- package/dist/{Loader_es_DHKB6tTw.js → Loader_es_B2auu_rc.js} +1 -1
- package/dist/Overlay_cjs_CFOtnzDU.js +42 -0
- package/dist/Overlay_es_DczPjVL9.js +38 -0
- package/dist/{Text_cjs_DPhKj3wf.js → Text_cjs_C9fOm0nd.js} +0 -7
- package/dist/{Text_es_BRb3qqKM.js → Text_es_BfLRfj-5.js} +0 -7
- package/dist/{Tooltip_cjs_CaocDcQ5.js → Tooltip_cjs_pBGCcXLZ.js} +169 -310
- package/dist/{Tooltip_es_D1w1s33u.js → Tooltip_es_frBCZDrO.js} +169 -310
- package/dist/cjs/components/Accordion.js +43 -73
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack/stories/__mock__.js +28 -0
- package/dist/cjs/components/AvatarStack.js +41 -9
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell/stories/__mock__.js +14 -0
- package/dist/cjs/components/Cell.js +84 -42
- package/dist/cjs/components/Checkbox.js +49 -56
- package/dist/cjs/components/Checkmark.js +51 -14
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +10 -10
- package/dist/cjs/components/Code.js +17 -26
- package/dist/cjs/components/CookiesWarning.js +34 -16
- package/dist/cjs/components/DatePeriod.js +46 -9
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +35 -6
- package/dist/cjs/components/Dropdown/stories/__mock__.js +24 -0
- package/dist/cjs/components/Dropdown.js +4 -4
- package/dist/cjs/components/HeroTitle.js +9 -5
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +10 -10
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/Notification/stories/__mock__.js +30 -0
- package/dist/cjs/components/Notification.js +83 -101
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +4 -4
- package/dist/cjs/components/Radio.js +123 -31
- package/dist/cjs/components/Response.js +21 -7
- package/dist/cjs/components/Search.js +60 -98
- package/dist/cjs/components/Segmented.js +6 -6
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +68 -195
- package/dist/cjs/components/Tab.js +11 -11
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +72 -45
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Video/stories/__mocks__.js +10 -0
- package/dist/cjs/components/Video.js +2 -9
- package/dist/cjs/context/Notifications.js +2 -1
- package/dist/components/Accordion.js +44 -73
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack/stories/__mock__.js +26 -0
- package/dist/components/AvatarStack.js +41 -9
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell/stories/__mock__.js +12 -0
- package/dist/components/Cell.js +84 -42
- package/dist/components/Checkbox.js +49 -56
- package/dist/components/Checkmark.js +51 -14
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +10 -10
- package/dist/components/Code.js +17 -26
- package/dist/components/CookiesWarning.js +34 -17
- package/dist/components/DatePeriod.js +46 -9
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +35 -6
- package/dist/components/Dropdown/stories/__mock__.js +22 -0
- package/dist/components/Dropdown.js +4 -4
- package/dist/components/HeroTitle.js +10 -6
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +10 -10
- package/dist/components/Modal.js +4 -4
- package/dist/components/Notification/stories/__mock__.js +28 -0
- package/dist/components/Notification.js +80 -98
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +4 -4
- package/dist/components/Radio.js +124 -31
- package/dist/components/Response.js +21 -7
- package/dist/components/Search.js +60 -98
- package/dist/components/Segmented.js +6 -6
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +68 -195
- package/dist/components/Tab.js +11 -11
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +72 -45
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Video/stories/__mocks__.js +8 -0
- package/dist/components/Video.js +2 -9
- package/dist/context/Notifications.js +2 -1
- package/dist/css/components/Accordion/Accordion.css +39 -14
- package/dist/css/components/Avatar/Avatar.css +44 -16
- package/dist/css/components/AvatarStack/AvatarStack.css +38 -3
- package/dist/css/components/Button/Button.css +1 -0
- package/dist/css/components/Cell/Cell.css +31 -41
- package/dist/css/components/Checkbox/Checkbox.css +63 -38
- package/dist/css/components/Code/Code.css +36 -6
- package/dist/css/components/CookiesWarning/CookiesWarning.css +3 -0
- package/dist/css/components/Divider/Divider.css +24 -0
- package/dist/css/components/Drawer/Drawer.css +11 -0
- package/dist/css/components/Dropdown/Dropdown.css +9 -24
- package/dist/css/components/Flex/Flex.css +4 -2
- package/dist/css/components/Flex/css/__item/flex__item_shape.css +1 -1
- package/dist/css/components/Grid/Grid.css +7 -83
- package/dist/css/components/Grid/css/__item/grid__item_column.css +1 -12
- package/dist/css/components/Group/Group.css +54 -11
- package/dist/css/components/HeroTitle/HeroTitle.css +22 -18
- package/dist/css/components/Link/Link.css +0 -1
- package/dist/css/components/Notification/Notification.css +69 -78
- package/dist/css/components/Notification/css/__item/notification__item.css +22 -0
- package/dist/css/components/Notification/css/__item/notification__item_position_float.css +13 -0
- package/dist/css/components/Notification/css/__item/notification__item_position_toast.css +17 -0
- package/dist/css/components/Notification/css/__item/notification__item_skeleton.css +25 -0
- package/dist/css/components/Notification/css/__item/notification__item_status.css +8 -8
- package/dist/css/components/Overlay/Overlay.css +0 -5
- package/dist/css/components/Radio/Radio.css +6 -63
- package/dist/css/components/Response/Response.css +24 -0
- package/dist/css/components/Search/Search.css +36 -15
- package/dist/css/components/Search/css/search-input/search-input_skeleton.css +25 -0
- package/dist/css/components/Switch/Switch.css +10 -17
- package/dist/css/components/Tab/Tab.css +45 -12
- package/dist/css/components/Text/Text.css +3 -3
- package/dist/css/components/Tile/Tile.css +64 -22
- package/dist/css/components/Title/Title.css +36 -26
- package/dist/css/components/Tooltip/Tooltip.css +95 -42
- package/dist/css/components/Video/Video.css +1 -1
- package/dist/css/styles/blur/blur.css +9 -0
- package/dist/css/styles/border-color/border-color.css +3 -0
- package/dist/css/styles/elevation/elevation.css +1 -1
- package/dist/css/styles/elevation/elevation_hover.css +1 -1
- package/dist/css/styles/opacity/opacity.css +2 -1
- package/dist/stories/AccordionOverview.mdx +12 -0
- package/dist/stories/AccordionPlayground.mdx +10 -0
- package/dist/stories/AvatarOverview.mdx +19 -0
- package/dist/stories/AvatarPlayground.mdx +10 -0
- package/dist/stories/AvatarStackOverview.mdx +13 -0
- package/dist/stories/AvatarStackPlayground.mdx +8 -0
- package/dist/stories/BadgeOverview.mdx +13 -0
- package/dist/stories/BadgePlayground.mdx +8 -0
- package/dist/stories/BreadcrumbsOverview.mdx +14 -0
- package/dist/stories/{Plsyground.mdx → BreadcrumbsPlsyground.mdx} +1 -1
- package/dist/stories/ButtonOverview.mdx +12 -0
- package/dist/stories/ButtonPlayground.mdx +10 -0
- package/dist/stories/CellOverview.mdx +21 -0
- package/dist/stories/CellPlayground.mdx +10 -0
- package/dist/stories/CheckboxOverview.mdx +12 -0
- package/dist/stories/CheckboxPlayground.mdx +10 -0
- package/dist/stories/CheckmarkOverview.mdx +12 -0
- package/dist/stories/CheckmarkPlayground.mdx +10 -0
- package/dist/stories/ChipsOverview.mdx +37 -0
- package/dist/stories/ChipsPlayground.mdx +10 -0
- package/dist/stories/ChoiceOverview.mdx +11 -0
- package/dist/stories/ChoicePlayground.mdx +10 -0
- package/dist/stories/CodeOverview.mdx +11 -0
- package/dist/stories/CodePlayground.mdx +10 -0
- package/dist/stories/CookiesWarningOverview.mdx +13 -0
- package/dist/stories/CookiesWarningPlayground.mdx +11 -0
- package/dist/stories/DadataHintFieldOverview.mdx +11 -0
- package/dist/stories/DatePeriodOverview.mdx +9 -0
- package/dist/stories/DatePeriodPlayground.mdx +10 -0
- package/dist/stories/DatePickerOverview.mdx +12 -0
- package/dist/stories/DatePickerPlayground.mdx +10 -0
- package/dist/stories/DividerOverview.mdx +11 -0
- package/dist/stories/DividerPlayground.mdx +10 -0
- package/dist/stories/DotOverview.mdx +11 -0
- package/dist/stories/DotPlayground.mdx +10 -0
- package/dist/stories/DrawerOverview.mdx +14 -0
- package/dist/stories/DrawerPlayground.mdx +10 -0
- package/dist/stories/DropdownOverview.mdx +11 -0
- package/dist/stories/DropdownPlayground.mdx +10 -0
- package/dist/stories/FlexAlignItems.mdx +73 -0
- package/dist/stories/FlexAlignSelf.mdx +84 -0
- package/dist/stories/FlexDirection.mdx +106 -0
- package/dist/stories/FlexJustifyContent.mdx +87 -0
- package/dist/stories/FlexOverview.mdx +48 -0
- package/dist/stories/FlexPlayground.mdx +10 -0
- package/dist/stories/FlexWrap.mdx +60 -0
- package/dist/stories/GridOverview.mdx +12 -0
- package/dist/stories/GridPlayground.mdx +10 -0
- package/dist/stories/GroupOverview.mdx +22 -0
- package/dist/stories/GroupPlayground.mdx +10 -0
- package/dist/stories/HTMLContentOverview.mdx +11 -0
- package/dist/stories/HTMLContentPlayground.mdx +10 -0
- package/dist/stories/HeroTitleOverview.mdx +36 -0
- package/dist/stories/HeroTitlePlayground.mdx +10 -0
- package/dist/stories/IconOverview.mdx +16 -0
- package/dist/stories/IconPlayground.mdx +10 -0
- package/dist/stories/ImageOverview.mdx +11 -0
- package/dist/stories/ImagePlayground.mdx +10 -0
- package/dist/stories/InputOverview.mdx +11 -0
- package/dist/stories/InputPasswordOverview.mdx +11 -0
- package/dist/stories/InputPasswordPlayground.mdx +10 -0
- package/dist/stories/InputPlayground.mdx +10 -0
- package/dist/stories/LabelOverview.mdx +11 -0
- package/dist/stories/LabelPlayground.mdx +10 -0
- package/dist/stories/LinkOverview.mdx +20 -0
- package/dist/stories/LinkPlayground.mdx +10 -0
- package/dist/stories/ListOverview.mdx +14 -0
- package/dist/stories/ListPlayground.mdx +10 -0
- package/dist/stories/LoaderOverview.mdx +11 -0
- package/dist/stories/LoaderPlayground.mdx +10 -0
- package/dist/stories/LogoOverview.mdx +24 -0
- package/dist/stories/LogoPlayground.mdx +10 -0
- package/dist/stories/MenuItemOverview.mdx +11 -0
- package/dist/stories/MenuItemPlayground.mdx +10 -0
- package/dist/stories/ModalOverview.mdx +15 -0
- package/dist/stories/ModalPlayground.mdx +10 -0
- package/dist/stories/ModalSheetBottomOverview.mdx +9 -0
- package/dist/stories/NotificationOverview.mdx +13 -0
- package/dist/stories/NotificationPlayground.mdx +10 -0
- package/dist/stories/OverlayOverview.mdx +12 -0
- package/dist/stories/OverlayPlayground.mdx +10 -0
- package/dist/stories/Overview.mdx +5 -15
- package/dist/stories/Playground.mdx +4 -4
- package/dist/stories/RadioOverview.mdx +12 -0
- package/dist/stories/RadioPlayground.mdx +10 -0
- package/dist/stories/ResponseOverview.mdx +11 -0
- package/dist/stories/ResponsePlayground.mdx +10 -0
- package/dist/stories/SVGContentOverview.mdx +15 -0
- package/dist/stories/SVGContentPlayground.mdx +10 -0
- package/dist/stories/SearchOverview.mdx +11 -0
- package/dist/stories/SearchPlayground.mdx +11 -0
- package/dist/stories/SegmentedOverview.mdx +12 -0
- package/dist/stories/SegmentedPlayground.mdx +10 -0
- package/dist/stories/SwiperOverview.mdx +28 -0
- package/dist/stories/SwiperPlayground.mdx +10 -0
- package/dist/stories/SwitchOverview.mdx +15 -0
- package/dist/stories/SwitchPlayground.mdx +10 -0
- package/dist/stories/TabOverview.mdx +25 -0
- package/dist/stories/TabPlayground.mdx +10 -0
- package/dist/stories/TextOverview.mdx +40 -0
- package/dist/stories/TextPlayground.mdx +10 -0
- package/dist/stories/TileOverview.mdx +11 -0
- package/dist/stories/TilePlayground.mdx +10 -0
- package/dist/stories/TitleOverview.mdx +12 -0
- package/dist/stories/TitlePlayground.mdx +10 -0
- package/dist/stories/TooltipOverview.mdx +11 -0
- package/dist/stories/TooltipPlayground.mdx +10 -0
- package/dist/stories/VideoOverview.mdx +21 -0
- package/dist/stories/VideoPlayground.mdx +10 -0
- package/dist/types/components/Accordion/Accordion.d.ts +2 -3
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +20 -35
- package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +4 -6
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +6 -5
- package/dist/types/components/Accordion/index.d.ts +2 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -0
- package/dist/types/components/Avatar/appearance/{avatarSurface.d.ts → avatarDefault.d.ts} +6 -5
- package/dist/types/components/Avatar/appearance/avatarSize.d.ts +9 -0
- package/dist/types/components/Avatar/appearance/avatarStyle.d.ts +5 -5
- package/dist/types/components/AvatarStack/AvatarStack.appearance.d.ts +2 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +22 -2
- package/dist/types/components/AvatarStack/appearance/avatarStackSize.d.ts +21 -0
- package/dist/types/components/AvatarStack/stories/__mock__/index.d.ts +12 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +36 -0
- package/dist/types/components/Cell/appearance/cellStyle.d.ts +4 -6
- package/dist/types/components/Cell/appearance/cellSurface.d.ts +19 -5
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +9 -0
- package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +9 -19
- package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +11 -6
- package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +5 -18
- package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +2 -1
- package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +2 -0
- package/dist/types/components/Checkmark/appearance/checkmarkSize.d.ts +24 -0
- package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +7 -9
- package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +2 -1
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +6 -0
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -2
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -6
- package/dist/types/components/Code/Code.interface.d.ts +1 -0
- package/dist/types/components/Code/appearance/codeDefault.d.ts +0 -5
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +0 -4
- package/dist/types/components/Code/appearance/codeError.d.ts +7 -7
- package/dist/types/components/Code/appearance/codeStyle.d.ts +5 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +7 -1
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +2 -1
- package/dist/types/components/CookiesWarning/appearance/cookiesWarningDefault.d.ts +12 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.appearance.d.ts +1 -2
- package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +15 -0
- package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +21 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +7 -13
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +4 -4
- package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +3 -9
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -0
- package/dist/types/components/Divider/appearance/dividerAccent.d.ts +0 -15
- package/dist/types/components/Divider/appearance/dividerError.d.ts +1 -6
- package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +1 -3
- package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +1 -3
- package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +1 -6
- package/dist/types/components/Divider/appearance/dividerSurface.d.ts +3 -13
- package/dist/types/components/Divider/appearance/dividerWarning.d.ts +1 -6
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +7 -1
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +6 -1
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +3 -0
- package/dist/types/components/Dropdown/appearance/dropdownStyle.d.ts +4 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +6 -5
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +44 -0
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +3 -12
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconError.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -4
- package/dist/types/components/Icon/appearance/iconSize.d.ts +56 -28
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +5 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +6 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +8 -3
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSurface.d.ts +9 -9
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +5 -5
- package/dist/types/components/Notification/Notification.appearance.d.ts +2 -0
- package/dist/types/components/Notification/Notification.d.ts +4 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +9 -8
- package/dist/types/components/Notification/NotificationWrapper.d.ts +3 -0
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationError.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationSize.d.ts +2 -0
- package/dist/types/components/{Divider/appearance/dividerStyle.d.ts → Notification/appearance/notificationStyle.d.ts} +3 -5
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +17 -0
- package/dist/types/components/Notification/index.d.ts +4 -4
- package/dist/types/components/Notification/stories/__mock__/index.d.ts +7 -0
- package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +11 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +9 -28
- package/dist/types/components/Radio/Radio.appearance.d.ts +93 -3
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +11 -5
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +12 -0
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +2 -2
- package/dist/types/components/Radio/appearance/radioSize.d.ts +3 -12
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +1 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -0
- package/dist/types/components/Search/Search.interface.d.ts +2 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +2 -13
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchError.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchRequire.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchSize.d.ts +24 -6
- package/dist/types/components/Search/appearance/searchStyle.d.ts +3 -1
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -8
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -5
- package/dist/types/components/Switch/appearance/switchDefault.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +5 -14
- package/dist/types/components/Switch/appearance/switchError.d.ts +6 -6
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +5 -14
- package/dist/types/components/Switch/appearance/switchSize.d.ts +6 -47
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +6 -6
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +4 -4
- package/dist/types/components/Text/appearance/textSize.d.ts +0 -7
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +30 -30
- package/dist/types/components/{Overlay/appearance/overlayStyle.d.ts → Tile/appearance/tileStyle.d.ts} +2 -2
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +19 -8
- package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +10 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -13
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +4 -5
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -12
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +6 -47
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +4 -6
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +4 -5
- package/dist/types/components/Video/stories/{mocks/videoSources.d.ts → __mocks__/index.d.ts} +2 -1
- package/dist/types/context/Notifications.d.ts +1 -1
- package/package.json +9 -9
- package/dist/Divider_cjs_DhqcldLH.js +0 -159
- package/dist/Divider_es_BEYLRagS.js +0 -155
- package/dist/Overlay_cjs_BdAm_zrO.js +0 -229
- package/dist/Overlay_es_cI_-_xUO.js +0 -225
- package/dist/css/components/Notification/css/__item/notification__item_set_float.css +0 -15
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +0 -19
- package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +0 -19
- package/dist/css/components/Notification/css/__item/notification__item_set_top.css +0 -15
- package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +0 -17
- package/dist/stories/index.stories.js +0 -46
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -15
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -6
- package/dist/types/components/Avatar/appearance/avatarError.d.ts +0 -9
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -13
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -7
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -7
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +0 -7
- package/dist/types/components/Avatar/appearance/avatarWarning.d.ts +0 -9
- package/dist/types/components/Notification/NotificationItem.appearance.d.ts +0 -2
- package/dist/types/components/Notification/NotificationItem.d.ts +0 -4
- package/dist/types/components/Notification/NotificationList.d.ts +0 -3
- package/dist/types/components/Notification/appearance/notificationItemError.d.ts +0 -11
- package/dist/types/components/Notification/appearance/notificationItemSize.d.ts +0 -59
- package/dist/types/components/Notification/appearance/notificationItemStyle.d.ts +0 -16
- package/dist/types/components/Notification/appearance/notificationItemSuccess.d.ts +0 -11
- package/dist/types/components/Notification/appearance/notificationItemWarning.d.ts +0 -11
- package/dist/types/components/Overlay/appearance/overlayAccent.d.ts +0 -21
- package/dist/types/components/Overlay/appearance/overlayDanger.d.ts +0 -7
- package/dist/types/components/Overlay/appearance/overlayError.d.ts +0 -11
- package/dist/types/components/Overlay/appearance/overlayInfo.d.ts +0 -21
- package/dist/types/components/Overlay/appearance/overlayPrimary.d.ts +0 -8
- package/dist/types/components/Overlay/appearance/overlaySecondary.d.ts +0 -8
- package/dist/types/components/Overlay/appearance/overlaySize.d.ts +0 -59
- package/dist/types/components/Overlay/appearance/overlaySuccess.d.ts +0 -11
- package/dist/types/components/Overlay/appearance/overlaySurface.d.ts +0 -25
- package/dist/types/components/Overlay/appearance/overlayWarning.d.ts +0 -11
- package/dist/types/components/Search/appearance/searchSurface.d.ts +0 -18
- package/dist/types/components/Switch/appearance/switchAccent.d.ts +0 -20
- package/dist/types/components/Switch/appearance/switchDanger.d.ts +0 -7
- package/dist/types/components/Switch/appearance/switchInfo.d.ts +0 -21
- package/dist/types/components/Switch/appearance/switchPrimary.d.ts +0 -8
- package/dist/types/components/Switch/appearance/switchSecondary.d.ts +0 -8
- package/dist/types/components/Switch/appearance/switchSurface.d.ts +0 -25
- package/dist/types/components/Switch/appearance/switchWarning.d.ts +0 -11
- package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +0 -20
- package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +0 -7
- package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +0 -21
- package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +0 -8
- package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +0 -8
- package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +0 -25
- package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +0 -11
- /package/dist/stories/{Playgroynd.mdx → DadataHintFieldPlaygroynd.mdx} +0 -0
- /package/dist/stories/{AlignContent.mdx → FlexAlignContent.mdx} +0 -0
- /package/dist/stories/{Grow.mdx → FlexGrow.mdx} +0 -0
- /package/dist/stories/{Order.mdx → FlexOrder.mdx} +0 -0
- /package/dist/stories/{AlignItems.mdx → GroupAlignItems.mdx} +0 -0
- /package/dist/stories/{AlignSelf.mdx → GroupAlignSelf.mdx} +0 -0
- /package/dist/stories/{Columns.mdx → GroupColumns.mdx} +0 -0
- /package/dist/stories/{Direction.mdx → GroupDirection.mdx} +0 -0
- /package/dist/stories/{JustifyContent.mdx → GroupJustifyContent.mdx} +0 -0
- /package/dist/stories/{Wrap.mdx → GroupWrap.mdx} +0 -0
|
@@ -4,7 +4,7 @@ import React, { useMemo, useRef, useState, useCallback, useImperativeHandle } fr
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { T as Text } from './
|
|
7
|
+
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
8
8
|
import SVG from 'react-inlinesvg';
|
|
9
9
|
import { a as LinkWrapper } from './Link_es_DxtZLeKY.js';
|
|
10
10
|
|
|
@@ -287,13 +287,8 @@ var iconAppearanceAccent = {
|
|
|
287
287
|
accent: {
|
|
288
288
|
fill: 'accentPrimary',
|
|
289
289
|
fillHover: 'accentHover',
|
|
290
|
-
labelTextColor: 'accentTextPrimary',
|
|
291
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
292
290
|
borderColor: 'accentBorderPrimary',
|
|
293
|
-
|
|
294
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
295
|
-
loaderFill: 'accentPrimary',
|
|
296
|
-
loaderItemFill: 'accentItemPrimary',
|
|
291
|
+
iconFill: 'accentItemPrimary',
|
|
297
292
|
},
|
|
298
293
|
accentPrimary: {
|
|
299
294
|
fill: 'accentPrimary',
|
|
@@ -301,10 +296,7 @@ var iconAppearanceAccent = {
|
|
|
301
296
|
labelTextColor: 'accentTextPrimary',
|
|
302
297
|
labelTextColorHover: 'accentTextPrimary',
|
|
303
298
|
borderColor: 'accentBorderPrimary',
|
|
304
|
-
|
|
305
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
306
|
-
loaderFill: 'accentPrimary',
|
|
307
|
-
loaderItemFill: 'accentItemPrimary',
|
|
299
|
+
iconFill: 'accentItemPrimary',
|
|
308
300
|
},
|
|
309
301
|
accentSecondary: {
|
|
310
302
|
fill: 'accentPrimary',
|
|
@@ -312,9 +304,8 @@ var iconAppearanceAccent = {
|
|
|
312
304
|
labelTextColor: 'accentTextSecondary',
|
|
313
305
|
labelTextColorHover: 'accentTextSecondary',
|
|
314
306
|
borderColor: 'accentBorderPrimary',
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
307
|
+
iconFill: 'accentItemPrimary',
|
|
308
|
+
},
|
|
318
309
|
};
|
|
319
310
|
|
|
320
311
|
var iconAppearanceDanger = {
|
|
@@ -323,8 +314,6 @@ var iconAppearanceDanger = {
|
|
|
323
314
|
fillHover: 'dangerHover',
|
|
324
315
|
labelTextColor: 'dangerTextSecondary',
|
|
325
316
|
labelTextColorHover: 'dangerTextSecondary',
|
|
326
|
-
loaderFill: 'dangerPrimary',
|
|
327
|
-
loaderItemFill: 'dangerItemPrimary',
|
|
328
317
|
},
|
|
329
318
|
};
|
|
330
319
|
|
|
@@ -334,8 +323,6 @@ var iconAppearanceError = {
|
|
|
334
323
|
fillHover: 'errorHover',
|
|
335
324
|
labelTextColor: 'errorTextPrimary',
|
|
336
325
|
labelTextColorHover: 'errorTextPrimary',
|
|
337
|
-
loaderFill: 'errorPrimary',
|
|
338
|
-
loaderItemFill: 'errorItemPrimary',
|
|
339
326
|
},
|
|
340
327
|
};
|
|
341
328
|
|
|
@@ -346,8 +333,6 @@ var iconAppearanceInfo = {
|
|
|
346
333
|
labelTextColor: 'accentTextPrimary',
|
|
347
334
|
labelTextColorHover: 'accentTextPrimary',
|
|
348
335
|
borderColor: 'accentBorderPrimary',
|
|
349
|
-
loaderFill: 'accentPrimary',
|
|
350
|
-
loaderItemFill: 'accentItemPrimary',
|
|
351
336
|
},
|
|
352
337
|
infoSecondary: {
|
|
353
338
|
fill: 'accentPrimary',
|
|
@@ -355,8 +340,6 @@ var iconAppearanceInfo = {
|
|
|
355
340
|
labelTextColor: 'accentTextSecondary',
|
|
356
341
|
labelTextColorHover: 'accentTextSecondary',
|
|
357
342
|
borderColor: 'accentBorderPrimary',
|
|
358
|
-
loaderFill: 'accentPrimary',
|
|
359
|
-
loaderItemFill: 'accentItemPrimary',
|
|
360
343
|
},
|
|
361
344
|
};
|
|
362
345
|
|
|
@@ -377,132 +360,159 @@ var iconAppearanceSecondary = {
|
|
|
377
360
|
};
|
|
378
361
|
|
|
379
362
|
var iconAppearanceSize = {
|
|
380
|
-
|
|
381
|
-
fillSize: '
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
size40_32: {
|
|
385
|
-
fillSize: '40',
|
|
386
|
-
iconSize: '32',
|
|
363
|
+
size12_12: {
|
|
364
|
+
fillSize: '12',
|
|
365
|
+
badgeAppearanceSize: 'sizeM',
|
|
366
|
+
iconSize: '12',
|
|
387
367
|
},
|
|
388
|
-
|
|
389
|
-
fillSize: '
|
|
390
|
-
|
|
368
|
+
size14_12: {
|
|
369
|
+
fillSize: '14',
|
|
370
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
371
|
+
iconSize: '12',
|
|
391
372
|
},
|
|
392
|
-
|
|
393
|
-
fillSize: '
|
|
394
|
-
|
|
373
|
+
size14_14: {
|
|
374
|
+
fillSize: '14',
|
|
375
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
376
|
+
iconSize: '14',
|
|
395
377
|
},
|
|
396
|
-
|
|
397
|
-
fillSize: '
|
|
398
|
-
|
|
378
|
+
size16_12: {
|
|
379
|
+
fillSize: '16',
|
|
380
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
381
|
+
iconSize: '12',
|
|
399
382
|
},
|
|
400
|
-
|
|
401
|
-
fillSize: '
|
|
383
|
+
size16_14: {
|
|
384
|
+
fillSize: '16',
|
|
385
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
402
386
|
iconSize: '14',
|
|
403
387
|
},
|
|
404
|
-
|
|
405
|
-
fillSize: '
|
|
388
|
+
size16_16: {
|
|
389
|
+
fillSize: '16',
|
|
390
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
391
|
+
iconSize: '16',
|
|
392
|
+
},
|
|
393
|
+
size20_12: {
|
|
394
|
+
fillSize: '20',
|
|
395
|
+
badgeAppearanceSize: 'sizeM',
|
|
406
396
|
iconSize: '12',
|
|
407
397
|
},
|
|
408
|
-
|
|
409
|
-
fillSize: '
|
|
410
|
-
|
|
398
|
+
size20_14: {
|
|
399
|
+
fillSize: '20',
|
|
400
|
+
badgeAppearanceSize: 'sizeM',
|
|
401
|
+
iconSize: '14',
|
|
411
402
|
},
|
|
412
|
-
|
|
413
|
-
fillSize: '
|
|
414
|
-
|
|
403
|
+
size20_16: {
|
|
404
|
+
fillSize: '20',
|
|
405
|
+
badgeAppearanceSize: 'sizeM',
|
|
406
|
+
iconSize: '16',
|
|
415
407
|
},
|
|
416
|
-
|
|
417
|
-
fillSize: '
|
|
408
|
+
size20_20: {
|
|
409
|
+
fillSize: '20',
|
|
410
|
+
badgeAppearanceSize: 'sizeM',
|
|
418
411
|
iconSize: '20',
|
|
419
412
|
},
|
|
420
|
-
|
|
421
|
-
fillSize: '
|
|
422
|
-
|
|
413
|
+
size24_12: {
|
|
414
|
+
fillSize: '24',
|
|
415
|
+
badgeAppearanceSize: 'sizeM',
|
|
416
|
+
iconSize: '12',
|
|
423
417
|
},
|
|
424
|
-
|
|
425
|
-
fillSize: '
|
|
418
|
+
size24_14: {
|
|
419
|
+
fillSize: '24',
|
|
420
|
+
badgeAppearanceSize: 'sizeM',
|
|
426
421
|
iconSize: '14',
|
|
427
422
|
},
|
|
428
|
-
|
|
429
|
-
fillSize: '32',
|
|
430
|
-
iconSize: '12',
|
|
431
|
-
},
|
|
432
|
-
size24_24: {
|
|
423
|
+
size24_16: {
|
|
433
424
|
fillSize: '24',
|
|
434
|
-
|
|
425
|
+
badgeAppearanceSize: 'sizeM',
|
|
426
|
+
iconSize: '16',
|
|
435
427
|
},
|
|
436
428
|
size24_20: {
|
|
437
429
|
fillSize: '24',
|
|
430
|
+
badgeAppearanceSize: 'sizeM',
|
|
438
431
|
iconSize: '20',
|
|
439
432
|
},
|
|
440
|
-
|
|
433
|
+
size24_24: {
|
|
441
434
|
fillSize: '24',
|
|
442
|
-
|
|
435
|
+
badgeAppearanceSize: 'sizeM',
|
|
436
|
+
iconSize: '24',
|
|
443
437
|
},
|
|
444
|
-
|
|
445
|
-
fillSize: '
|
|
438
|
+
size32_12: {
|
|
439
|
+
fillSize: '32',
|
|
440
|
+
badgeAppearanceSize: 'sizeM',
|
|
441
|
+
iconSize: '12',
|
|
442
|
+
},
|
|
443
|
+
size32_14: {
|
|
444
|
+
fillSize: '32',
|
|
445
|
+
badgeAppearanceSize: 'sizeM',
|
|
446
446
|
iconSize: '14',
|
|
447
447
|
},
|
|
448
|
-
|
|
449
|
-
fillSize: '
|
|
450
|
-
|
|
448
|
+
size32_16: {
|
|
449
|
+
fillSize: '32',
|
|
450
|
+
badgeAppearanceSize: 'sizeM',
|
|
451
|
+
iconSize: '16',
|
|
451
452
|
},
|
|
452
|
-
|
|
453
|
-
fillSize: '
|
|
453
|
+
size32_20: {
|
|
454
|
+
fillSize: '32',
|
|
455
|
+
badgeAppearanceSize: 'sizeM',
|
|
454
456
|
iconSize: '20',
|
|
455
457
|
},
|
|
456
|
-
|
|
457
|
-
fillSize: '
|
|
458
|
-
|
|
458
|
+
size32_24: {
|
|
459
|
+
fillSize: '32',
|
|
460
|
+
badgeAppearanceSize: 'sizeM',
|
|
461
|
+
iconSize: '24',
|
|
459
462
|
},
|
|
460
|
-
|
|
461
|
-
fillSize: '
|
|
462
|
-
|
|
463
|
+
size32_32: {
|
|
464
|
+
fillSize: '32',
|
|
465
|
+
badgeAppearanceSize: 'sizeM',
|
|
466
|
+
iconSize: '32',
|
|
463
467
|
},
|
|
464
|
-
|
|
465
|
-
fillSize: '
|
|
468
|
+
size40_12: {
|
|
469
|
+
fillSize: '40',
|
|
470
|
+
badgeAppearanceSize: 'sizeM',
|
|
466
471
|
iconSize: '12',
|
|
467
472
|
},
|
|
468
|
-
|
|
469
|
-
fillSize: '
|
|
470
|
-
|
|
471
|
-
},
|
|
472
|
-
size16_14: {
|
|
473
|
-
fillSize: '16',
|
|
473
|
+
size40_14: {
|
|
474
|
+
fillSize: '40',
|
|
475
|
+
badgeAppearanceSize: 'sizeM',
|
|
474
476
|
iconSize: '14',
|
|
475
477
|
},
|
|
476
|
-
|
|
477
|
-
fillSize: '
|
|
478
|
-
|
|
478
|
+
size40_16: {
|
|
479
|
+
fillSize: '40',
|
|
480
|
+
badgeAppearanceSize: 'sizeM',
|
|
481
|
+
iconSize: '16',
|
|
479
482
|
},
|
|
480
|
-
|
|
481
|
-
fillSize: '
|
|
482
|
-
|
|
483
|
+
size40_20: {
|
|
484
|
+
fillSize: '40',
|
|
485
|
+
badgeAppearanceSize: 'sizeM',
|
|
486
|
+
iconSize: '20',
|
|
483
487
|
},
|
|
484
|
-
|
|
485
|
-
fillSize: '
|
|
486
|
-
|
|
488
|
+
size40_24: {
|
|
489
|
+
fillSize: '40',
|
|
490
|
+
badgeAppearanceSize: 'sizeM',
|
|
491
|
+
iconSize: '24',
|
|
487
492
|
},
|
|
488
|
-
|
|
489
|
-
fillSize: '
|
|
490
|
-
|
|
493
|
+
size40_32: {
|
|
494
|
+
fillSize: '40',
|
|
495
|
+
badgeAppearanceSize: 'sizeM',
|
|
496
|
+
iconSize: '32',
|
|
497
|
+
},
|
|
498
|
+
size40_40: {
|
|
499
|
+
fillSize: '40',
|
|
500
|
+
badgeAppearanceSize: 'sizeL',
|
|
501
|
+
iconSize: '40',
|
|
491
502
|
},
|
|
492
503
|
};
|
|
493
504
|
|
|
494
505
|
var iconAppearanceStyle = {
|
|
495
|
-
|
|
496
|
-
ghost: {
|
|
497
|
-
fill: 'none',
|
|
498
|
-
fillHover: 'none',
|
|
506
|
+
solid: {
|
|
499
507
|
borderColor: '0',
|
|
500
508
|
},
|
|
501
509
|
outlined: {
|
|
502
510
|
fill: 'none',
|
|
503
|
-
fillHover: 'none',
|
|
504
511
|
},
|
|
505
|
-
|
|
512
|
+
full: {},
|
|
513
|
+
ghost: {
|
|
514
|
+
fill: 'none',
|
|
515
|
+
fillHover: 'none',
|
|
506
516
|
borderColor: '0',
|
|
507
517
|
},
|
|
508
518
|
};
|
|
@@ -513,8 +523,12 @@ var iconAppearanceSuccess = {
|
|
|
513
523
|
fillHover: 'successHover',
|
|
514
524
|
labelTextColor: 'successTextSecondary',
|
|
515
525
|
labelTextColorHover: 'successTextSecondary',
|
|
516
|
-
|
|
517
|
-
|
|
526
|
+
},
|
|
527
|
+
successPrimary: {
|
|
528
|
+
fill: 'successPrimary',
|
|
529
|
+
fillHover: 'successHover',
|
|
530
|
+
badgeAppearance: 'accentPrimary',
|
|
531
|
+
iconFill: 'successItemPrimary',
|
|
518
532
|
},
|
|
519
533
|
};
|
|
520
534
|
|
|
@@ -523,25 +537,30 @@ var iconAppearanceSurface = {
|
|
|
523
537
|
fill: 'surfacePrimary',
|
|
524
538
|
fillHover: 'surfaceSecondary',
|
|
525
539
|
labelTextColor: 'surfaceTextPrimary',
|
|
526
|
-
|
|
540
|
+
badgeAppearance: 'accentPrimary',
|
|
541
|
+
iconFill: 'surfaceItemPrimary',
|
|
527
542
|
},
|
|
528
543
|
surfaceSecondary: {
|
|
529
544
|
fill: 'surfaceSecondary',
|
|
530
545
|
fillHover: 'surfaceSecondaryHover',
|
|
531
546
|
labelTextColor: 'surfaceTextPrimary',
|
|
532
|
-
|
|
533
|
-
|
|
547
|
+
badgeAppearance: 'accentPrimary',
|
|
548
|
+
iconFill: 'surfaceItemPrimary',
|
|
534
549
|
},
|
|
535
550
|
surfaceTertiary: {
|
|
536
551
|
fill: 'surfaceTertiary',
|
|
537
552
|
fillHover: 'surfaceTertiaryHover',
|
|
538
553
|
labelTextColor: 'surfaceTextPrimary',
|
|
554
|
+
badgeAppearance: 'accentPrimary',
|
|
555
|
+
iconFill: 'surfaceItemPrimary',
|
|
539
556
|
},
|
|
540
557
|
surfaceQuaternary: {
|
|
541
558
|
fill: 'surfaceQuaternary',
|
|
542
559
|
fillHover: 'surfaceHover',
|
|
543
560
|
labelTextColor: 'surfaceTextPrimary',
|
|
544
561
|
labelTextColorHover: 'surfaceTextHover',
|
|
562
|
+
badgeAppearance: 'accentPrimary',
|
|
563
|
+
iconFill: 'surfaceItemPrimary',
|
|
545
564
|
},
|
|
546
565
|
};
|
|
547
566
|
|
|
@@ -551,8 +570,6 @@ var iconAppearanceWarning = {
|
|
|
551
570
|
fillHover: 'warningHover',
|
|
552
571
|
labelTextColor: 'warningTextSecondary',
|
|
553
572
|
labelTextColorHover: 'warningTextSecondary',
|
|
554
|
-
loaderFill: 'warningPrimary',
|
|
555
|
-
loaderItemFill: 'warningItemPrimary',
|
|
556
573
|
},
|
|
557
574
|
};
|
|
558
575
|
|
|
@@ -592,8 +609,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
592
609
|
return (__assign(__assign({}, resultConfig), (_a = iconConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
593
610
|
}, {});
|
|
594
611
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
595
|
-
var alignmentClass = propsGenerator.alignmentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconFillActiveClass = propsGenerator.iconFillActiveClass, iconFillActiveHoverClass = propsGenerator.iconFillActiveHoverClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
596
|
-
// @ts-expect-error
|
|
612
|
+
var alignmentClass = propsGenerator.alignmentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconFillActiveClass = propsGenerator.iconFillActiveClass, iconFillActiveHoverClass = propsGenerator.iconFillActiveHoverClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
597
613
|
var iconStyles = useStyles(props).styles;
|
|
598
614
|
return (jsxs("div", { id: id, className: clsx(className, 'icon', !isActive
|
|
599
615
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -604,7 +620,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
604
620
|
: iconFillActiveClass && "icon_fill_active_".concat(iconFillActiveClass), !isActive
|
|
605
621
|
? iconFillHoverClass && "icon_fill_hover_".concat(iconFillHoverClass)
|
|
606
622
|
: iconFillActiveHoverClass &&
|
|
607
|
-
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), iconFillDisabledClass && "icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxs(LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
623
|
+
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), iconFillDisabledClass && "icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxs(LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
608
624
|
});
|
|
609
625
|
var removeFillStroke = function (code) {
|
|
610
626
|
return code
|
|
@@ -874,247 +890,91 @@ function Title(props) {
|
|
|
874
890
|
}
|
|
875
891
|
return size ? size : 'span';
|
|
876
892
|
}, [tag, size]);
|
|
877
|
-
return (jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), textColorClass && "text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
893
|
+
return (jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), textColorClass && "text text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
878
894
|
}
|
|
879
895
|
|
|
880
|
-
var
|
|
881
|
-
|
|
882
|
-
fill: '
|
|
883
|
-
fillHover: '
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
fillHover: 'accentPrimaryHover',
|
|
888
|
-
borderColor: 'accentBorderPrimary',
|
|
889
|
-
},
|
|
890
|
-
accentSecondary: {
|
|
891
|
-
fill: 'accentPrimary',
|
|
892
|
-
fillHover: 'accentPrimaryHover',
|
|
893
|
-
labelTextColor: 'accentTextSecondary',
|
|
894
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
895
|
-
borderColor: 'accentBorderPrimary',
|
|
896
|
-
loaderItemFill: 'accentItemPrimary',
|
|
897
|
-
},
|
|
898
|
-
};
|
|
899
|
-
|
|
900
|
-
var tooltipAppearanceDanger = {
|
|
901
|
-
danger: {
|
|
902
|
-
fill: 'dangerPrimary',
|
|
903
|
-
fillHover: 'dangerPrimaryHover',
|
|
896
|
+
var tooltipAppearanceDefault = {
|
|
897
|
+
defaultPrimary: {
|
|
898
|
+
fill: 'surfacePrimary',
|
|
899
|
+
fillHover: 'surfacePrimaryHover',
|
|
900
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
901
|
+
borderColor: 'surfaceBorderPrimary',
|
|
902
|
+
textColor: 'surfaceTextPrimary',
|
|
904
903
|
},
|
|
905
904
|
};
|
|
906
905
|
|
|
907
906
|
var tooltipAppearanceDisabled = {
|
|
908
907
|
disabledPrimary: {
|
|
909
|
-
fill: '
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
textColor: '
|
|
913
|
-
iconBeforeFill: 'errorItemQuaternary',
|
|
914
|
-
iconClearFill: 'errorItemPrimary',
|
|
915
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
916
|
-
},
|
|
917
|
-
disabledSecondary: {
|
|
918
|
-
fill: 'surfaceSecondary',
|
|
919
|
-
borderColor: 'surfaceBorderTertiary',
|
|
920
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
921
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
922
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
923
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
908
|
+
fill: 'surfaceDisabled',
|
|
909
|
+
fillHover: 'surfaceDisabledHover',
|
|
910
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
911
|
+
textColor: 'surfaceTextPrimary',
|
|
924
912
|
},
|
|
925
913
|
};
|
|
926
914
|
|
|
927
915
|
var tooltipAppearanceError = {
|
|
928
|
-
|
|
916
|
+
errorPrimary: {
|
|
929
917
|
fill: 'errorPrimary',
|
|
930
918
|
fillHover: 'errorPrimaryHover',
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
loaderItemFill: 'errorItemPrimary',
|
|
935
|
-
},
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
var tooltipAppearanceInfo = {
|
|
939
|
-
info: {
|
|
940
|
-
fill: 'accentPrimary',
|
|
941
|
-
fillHover: 'accentPrimaryHover',
|
|
942
|
-
labelTextColor: 'accentTextPrimary',
|
|
943
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
944
|
-
borderColor: 'accentBorderPrimary',
|
|
945
|
-
loaderFill: 'accentPrimary',
|
|
946
|
-
loaderItemFill: 'accentItemPrimary',
|
|
947
|
-
},
|
|
948
|
-
infoSecondary: {
|
|
949
|
-
fill: 'accentPrimary',
|
|
950
|
-
fillHover: 'accentPrimaryHover',
|
|
951
|
-
labelTextColor: 'accentTextSecondary',
|
|
952
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
953
|
-
borderColor: 'accentBorderPrimary',
|
|
954
|
-
loaderFill: 'accentPrimary',
|
|
955
|
-
loaderItemFill: 'accentItemPrimary',
|
|
956
|
-
},
|
|
957
|
-
};
|
|
958
|
-
|
|
959
|
-
var tooltipAppearancePrimary = {
|
|
960
|
-
primary: {
|
|
961
|
-
fill: 'primaryPrimary',
|
|
962
|
-
fillHover: 'primaryPrimaryHover',
|
|
963
|
-
labelTextColor: 'primaryTextPrimary',
|
|
919
|
+
titleTextColor: 'errorTextPrimary',
|
|
920
|
+
borderColor: 'errorBorderPrimary',
|
|
921
|
+
textColor: 'errorTextPrimary',
|
|
964
922
|
},
|
|
965
923
|
};
|
|
966
924
|
|
|
967
925
|
var tooltipAppearanceRequire = {
|
|
968
926
|
requirePrimary: {
|
|
969
|
-
fill: '
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
iconClearFill: 'warningItemPrimary',
|
|
975
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
976
|
-
},
|
|
977
|
-
requireSecondary: {
|
|
978
|
-
fill: 'surfaceSecondary',
|
|
979
|
-
borderColor: 'surfaceBorderTertiary',
|
|
980
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
981
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
982
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
983
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
984
|
-
},
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
var tooltipAppearanceSecondary = {
|
|
988
|
-
secondary: {
|
|
989
|
-
fill: 'secondaryPrimary',
|
|
990
|
-
fillHover: 'secondaryPrimaryHover',
|
|
991
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
927
|
+
fill: 'warningPrimary',
|
|
928
|
+
fillHover: 'warningPrimaryHover',
|
|
929
|
+
titleTextColor: 'warningTextPrimary',
|
|
930
|
+
borderColor: 'warningBorderPrimary',
|
|
931
|
+
textColor: 'warningTextPrimary',
|
|
992
932
|
},
|
|
993
933
|
};
|
|
994
934
|
|
|
995
935
|
var tooltipAppearanceSize = {
|
|
996
|
-
sizeXXL: {
|
|
997
|
-
size: 'xxl',
|
|
998
|
-
labelTextSize: 'xxl',
|
|
999
|
-
iconAfterFillSize: '24',
|
|
1000
|
-
iconAfterSize: '24',
|
|
1001
|
-
iconBeforeFillSize: '24',
|
|
1002
|
-
iconBeforeSize: '24',
|
|
1003
|
-
},
|
|
1004
|
-
sizeXL: {
|
|
1005
|
-
size: 'xl',
|
|
1006
|
-
labelTextSize: 'l',
|
|
1007
|
-
iconAfterFillSize: '24',
|
|
1008
|
-
iconAfterSize: '24',
|
|
1009
|
-
iconBeforeFillSize: '24',
|
|
1010
|
-
iconBeforeSize: '24',
|
|
1011
|
-
},
|
|
1012
936
|
sizeL: {
|
|
1013
937
|
size: 'l',
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
iconAfterSize: '24',
|
|
1017
|
-
iconBeforeFillSize: '24',
|
|
1018
|
-
iconBeforeSize: '24',
|
|
938
|
+
titleSize: 'h5',
|
|
939
|
+
textSize: 's',
|
|
1019
940
|
},
|
|
1020
941
|
sizeM: {
|
|
1021
942
|
size: 'm',
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
iconAfterSize: '24',
|
|
1025
|
-
iconBeforeFillSize: '24',
|
|
1026
|
-
iconBeforeSize: '24',
|
|
943
|
+
titleSize: 'h5',
|
|
944
|
+
textSize: 's',
|
|
1027
945
|
},
|
|
1028
946
|
sizeS: {
|
|
1029
947
|
size: 's',
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
iconAfterSize: '20',
|
|
1033
|
-
iconBeforeFillSize: '20',
|
|
1034
|
-
iconBeforeSize: '20',
|
|
1035
|
-
},
|
|
1036
|
-
sizeXS: {
|
|
1037
|
-
size: 'xs',
|
|
1038
|
-
labelTextSize: 'xs',
|
|
1039
|
-
iconAfterFillSize: '16',
|
|
1040
|
-
iconAfterSize: '16',
|
|
1041
|
-
iconBeforeFillSize: '16',
|
|
1042
|
-
iconBeforeSize: '16',
|
|
1043
|
-
},
|
|
1044
|
-
sizeXXS: {
|
|
1045
|
-
size: 'xxs',
|
|
1046
|
-
labelTextSize: 'xs',
|
|
1047
|
-
iconAfterFillSize: '14',
|
|
1048
|
-
iconAfterSize: '14',
|
|
1049
|
-
iconBeforeFillSize: '14',
|
|
1050
|
-
iconBeforeSize: '14',
|
|
948
|
+
titleSize: 'h5',
|
|
949
|
+
textSize: 's',
|
|
1051
950
|
},
|
|
1052
951
|
};
|
|
1053
952
|
|
|
1054
953
|
var tooltipAppearanceStyle = {
|
|
1055
|
-
|
|
1056
|
-
borderColor: '
|
|
1057
|
-
},
|
|
1058
|
-
ghost: {
|
|
1059
|
-
fill: 'none',
|
|
1060
|
-
borderColor: '0',
|
|
954
|
+
solid: {
|
|
955
|
+
borderColor: 'none',
|
|
1061
956
|
},
|
|
1062
957
|
outlined: {
|
|
1063
958
|
fill: 'none',
|
|
1064
959
|
},
|
|
1065
|
-
|
|
1066
|
-
|
|
960
|
+
full: {},
|
|
961
|
+
ghost: {
|
|
962
|
+
fill: 'none',
|
|
963
|
+
borderColor: 'none',
|
|
1067
964
|
},
|
|
1068
965
|
};
|
|
1069
966
|
|
|
1070
967
|
var tooltipAppearanceSuccess = {
|
|
1071
|
-
|
|
968
|
+
successPrimary: {
|
|
1072
969
|
fill: 'successPrimary',
|
|
1073
970
|
fillHover: 'successPrimaryHover',
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
loaderItemFill: 'successItemPrimary',
|
|
1078
|
-
},
|
|
1079
|
-
};
|
|
1080
|
-
|
|
1081
|
-
var tooltipAppearanceSurface = {
|
|
1082
|
-
surfacePrimary: {
|
|
1083
|
-
fill: 'surfacePrimary',
|
|
1084
|
-
fillHover: 'surfacePrimaryHover',
|
|
1085
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1086
|
-
},
|
|
1087
|
-
surfaceQuaternary: {
|
|
1088
|
-
fill: 'surfaceQuaternary',
|
|
1089
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
1090
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1091
|
-
},
|
|
1092
|
-
surfaceSecondary: {
|
|
1093
|
-
fill: 'surfaceSecondary',
|
|
1094
|
-
fillHover: 'surfaceSecondaryHover',
|
|
1095
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1096
|
-
loaderFill: 'surfaceSecondary',
|
|
1097
|
-
loaderItemFill: 'surfaceItemPrimary',
|
|
1098
|
-
},
|
|
1099
|
-
surfaceTertiary: {
|
|
1100
|
-
fill: 'surfaceTertiary',
|
|
1101
|
-
fillHover: 'surfaceTertiaryHover',
|
|
1102
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1103
|
-
},
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
var tooltipAppearanceWarning = {
|
|
1107
|
-
warning: {
|
|
1108
|
-
fill: 'warningPrimary',
|
|
1109
|
-
fillHover: 'warningPrimaryHover',
|
|
1110
|
-
labelTextColor: 'warningTextSecondary',
|
|
1111
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
1112
|
-
loaderFill: 'warningPrimary',
|
|
1113
|
-
loaderItemFill: 'warningItemPrimary',
|
|
971
|
+
titleTextColor: 'successTextPrimary',
|
|
972
|
+
borderColor: 'successBorderPrimary',
|
|
973
|
+
textColor: 'successTextPrimary',
|
|
1114
974
|
},
|
|
1115
975
|
};
|
|
1116
976
|
|
|
1117
|
-
var tooltipAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(
|
|
977
|
+
var tooltipAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, tooltipAppearanceDefault), tooltipAppearanceSize), tooltipAppearanceDisabled), tooltipAppearanceRequire), tooltipAppearanceStyle), tooltipAppearanceError), tooltipAppearanceSuccess);
|
|
1118
978
|
|
|
1119
979
|
var tooltipConfig = {
|
|
1120
980
|
appearance: tooltipAppearance,
|
|
@@ -1123,7 +983,7 @@ var tooltipConfig = {
|
|
|
1123
983
|
},
|
|
1124
984
|
};
|
|
1125
985
|
var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
1126
|
-
var className = props.className,
|
|
986
|
+
var className = props.className, appearance = props.appearance, initialIsVisible = props.initialIsVisible, title = props.title, text = props.text, before = props.before, after = props.after, _a = props.openTimeoutDelay, openTimeoutDelay = _a === void 0 ? 500 : _a, _b = props.closeTimeoutDelay, closeTimeoutDelay = _b === void 0 ? 250 : _b, isSkeleton = props.isSkeleton, children = props.children;
|
|
1127
987
|
var tooltipElementRef = useRef(null);
|
|
1128
988
|
var tooltipTimeoutHideRef = useRef(null);
|
|
1129
989
|
var tooltipTimeoutShowRef = useRef(null);
|
|
@@ -1174,11 +1034,10 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1174
1034
|
return (__assign(__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1175
1035
|
}, {});
|
|
1176
1036
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1177
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1037
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
1178
1038
|
// @ts-expect-error
|
|
1179
1039
|
var tooltipStyles = useStyles(props).styles;
|
|
1180
|
-
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible
|
|
1181
|
-
"tooltip_type_arrow tooltip_arrow_position_".concat(arrowPosition), type && "tooltip_type_".concat(type), set && "tooltip_set_".concat(set), widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [before, jsxs("div", { className: "tooltip__inner", children: [title && (jsx(Title, { className: "tooltip__title", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, children: text })), children] }), after] }));
|
|
1040
|
+
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), shapeClass && "tooltip_shape_".concat(shapeClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxs("div", { className: "tooltip__inner", children: [title && (jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1182
1041
|
});
|
|
1183
1042
|
|
|
1184
1043
|
export { Badge as B, Icon as I, Tooltip as T, tooltipAppearance as a, Title as b, titleConfig as c, titleAppearance as d, iconAppearance as e, badgeAppearance as f, badgeConfig as g, iconConfig as i, tooltipConfig as t };
|