@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
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Text = require('./
|
|
9
|
+
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
10
10
|
var SVG = require('react-inlinesvg');
|
|
11
11
|
var Link = require('./Link_cjs_DbRGq2Yk.js');
|
|
12
12
|
|
|
@@ -289,13 +289,8 @@ var iconAppearanceAccent = {
|
|
|
289
289
|
accent: {
|
|
290
290
|
fill: 'accentPrimary',
|
|
291
291
|
fillHover: 'accentHover',
|
|
292
|
-
labelTextColor: 'accentTextPrimary',
|
|
293
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
294
292
|
borderColor: 'accentBorderPrimary',
|
|
295
|
-
|
|
296
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
297
|
-
loaderFill: 'accentPrimary',
|
|
298
|
-
loaderItemFill: 'accentItemPrimary',
|
|
293
|
+
iconFill: 'accentItemPrimary',
|
|
299
294
|
},
|
|
300
295
|
accentPrimary: {
|
|
301
296
|
fill: 'accentPrimary',
|
|
@@ -303,10 +298,7 @@ var iconAppearanceAccent = {
|
|
|
303
298
|
labelTextColor: 'accentTextPrimary',
|
|
304
299
|
labelTextColorHover: 'accentTextPrimary',
|
|
305
300
|
borderColor: 'accentBorderPrimary',
|
|
306
|
-
|
|
307
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
308
|
-
loaderFill: 'accentPrimary',
|
|
309
|
-
loaderItemFill: 'accentItemPrimary',
|
|
301
|
+
iconFill: 'accentItemPrimary',
|
|
310
302
|
},
|
|
311
303
|
accentSecondary: {
|
|
312
304
|
fill: 'accentPrimary',
|
|
@@ -314,9 +306,8 @@ var iconAppearanceAccent = {
|
|
|
314
306
|
labelTextColor: 'accentTextSecondary',
|
|
315
307
|
labelTextColorHover: 'accentTextSecondary',
|
|
316
308
|
borderColor: 'accentBorderPrimary',
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
309
|
+
iconFill: 'accentItemPrimary',
|
|
310
|
+
},
|
|
320
311
|
};
|
|
321
312
|
|
|
322
313
|
var iconAppearanceDanger = {
|
|
@@ -325,8 +316,6 @@ var iconAppearanceDanger = {
|
|
|
325
316
|
fillHover: 'dangerHover',
|
|
326
317
|
labelTextColor: 'dangerTextSecondary',
|
|
327
318
|
labelTextColorHover: 'dangerTextSecondary',
|
|
328
|
-
loaderFill: 'dangerPrimary',
|
|
329
|
-
loaderItemFill: 'dangerItemPrimary',
|
|
330
319
|
},
|
|
331
320
|
};
|
|
332
321
|
|
|
@@ -336,8 +325,6 @@ var iconAppearanceError = {
|
|
|
336
325
|
fillHover: 'errorHover',
|
|
337
326
|
labelTextColor: 'errorTextPrimary',
|
|
338
327
|
labelTextColorHover: 'errorTextPrimary',
|
|
339
|
-
loaderFill: 'errorPrimary',
|
|
340
|
-
loaderItemFill: 'errorItemPrimary',
|
|
341
328
|
},
|
|
342
329
|
};
|
|
343
330
|
|
|
@@ -348,8 +335,6 @@ var iconAppearanceInfo = {
|
|
|
348
335
|
labelTextColor: 'accentTextPrimary',
|
|
349
336
|
labelTextColorHover: 'accentTextPrimary',
|
|
350
337
|
borderColor: 'accentBorderPrimary',
|
|
351
|
-
loaderFill: 'accentPrimary',
|
|
352
|
-
loaderItemFill: 'accentItemPrimary',
|
|
353
338
|
},
|
|
354
339
|
infoSecondary: {
|
|
355
340
|
fill: 'accentPrimary',
|
|
@@ -357,8 +342,6 @@ var iconAppearanceInfo = {
|
|
|
357
342
|
labelTextColor: 'accentTextSecondary',
|
|
358
343
|
labelTextColorHover: 'accentTextSecondary',
|
|
359
344
|
borderColor: 'accentBorderPrimary',
|
|
360
|
-
loaderFill: 'accentPrimary',
|
|
361
|
-
loaderItemFill: 'accentItemPrimary',
|
|
362
345
|
},
|
|
363
346
|
};
|
|
364
347
|
|
|
@@ -379,132 +362,159 @@ var iconAppearanceSecondary = {
|
|
|
379
362
|
};
|
|
380
363
|
|
|
381
364
|
var iconAppearanceSize = {
|
|
382
|
-
|
|
383
|
-
fillSize: '
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
size40_32: {
|
|
387
|
-
fillSize: '40',
|
|
388
|
-
iconSize: '32',
|
|
365
|
+
size12_12: {
|
|
366
|
+
fillSize: '12',
|
|
367
|
+
badgeAppearanceSize: 'sizeM',
|
|
368
|
+
iconSize: '12',
|
|
389
369
|
},
|
|
390
|
-
|
|
391
|
-
fillSize: '
|
|
392
|
-
|
|
370
|
+
size14_12: {
|
|
371
|
+
fillSize: '14',
|
|
372
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
373
|
+
iconSize: '12',
|
|
393
374
|
},
|
|
394
|
-
|
|
395
|
-
fillSize: '
|
|
396
|
-
|
|
375
|
+
size14_14: {
|
|
376
|
+
fillSize: '14',
|
|
377
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
378
|
+
iconSize: '14',
|
|
397
379
|
},
|
|
398
|
-
|
|
399
|
-
fillSize: '
|
|
400
|
-
|
|
380
|
+
size16_12: {
|
|
381
|
+
fillSize: '16',
|
|
382
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
383
|
+
iconSize: '12',
|
|
401
384
|
},
|
|
402
|
-
|
|
403
|
-
fillSize: '
|
|
385
|
+
size16_14: {
|
|
386
|
+
fillSize: '16',
|
|
387
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
404
388
|
iconSize: '14',
|
|
405
389
|
},
|
|
406
|
-
|
|
407
|
-
fillSize: '
|
|
390
|
+
size16_16: {
|
|
391
|
+
fillSize: '16',
|
|
392
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
393
|
+
iconSize: '16',
|
|
394
|
+
},
|
|
395
|
+
size20_12: {
|
|
396
|
+
fillSize: '20',
|
|
397
|
+
badgeAppearanceSize: 'sizeM',
|
|
408
398
|
iconSize: '12',
|
|
409
399
|
},
|
|
410
|
-
|
|
411
|
-
fillSize: '
|
|
412
|
-
|
|
400
|
+
size20_14: {
|
|
401
|
+
fillSize: '20',
|
|
402
|
+
badgeAppearanceSize: 'sizeM',
|
|
403
|
+
iconSize: '14',
|
|
413
404
|
},
|
|
414
|
-
|
|
415
|
-
fillSize: '
|
|
416
|
-
|
|
405
|
+
size20_16: {
|
|
406
|
+
fillSize: '20',
|
|
407
|
+
badgeAppearanceSize: 'sizeM',
|
|
408
|
+
iconSize: '16',
|
|
417
409
|
},
|
|
418
|
-
|
|
419
|
-
fillSize: '
|
|
410
|
+
size20_20: {
|
|
411
|
+
fillSize: '20',
|
|
412
|
+
badgeAppearanceSize: 'sizeM',
|
|
420
413
|
iconSize: '20',
|
|
421
414
|
},
|
|
422
|
-
|
|
423
|
-
fillSize: '
|
|
424
|
-
|
|
415
|
+
size24_12: {
|
|
416
|
+
fillSize: '24',
|
|
417
|
+
badgeAppearanceSize: 'sizeM',
|
|
418
|
+
iconSize: '12',
|
|
425
419
|
},
|
|
426
|
-
|
|
427
|
-
fillSize: '
|
|
420
|
+
size24_14: {
|
|
421
|
+
fillSize: '24',
|
|
422
|
+
badgeAppearanceSize: 'sizeM',
|
|
428
423
|
iconSize: '14',
|
|
429
424
|
},
|
|
430
|
-
|
|
431
|
-
fillSize: '32',
|
|
432
|
-
iconSize: '12',
|
|
433
|
-
},
|
|
434
|
-
size24_24: {
|
|
425
|
+
size24_16: {
|
|
435
426
|
fillSize: '24',
|
|
436
|
-
|
|
427
|
+
badgeAppearanceSize: 'sizeM',
|
|
428
|
+
iconSize: '16',
|
|
437
429
|
},
|
|
438
430
|
size24_20: {
|
|
439
431
|
fillSize: '24',
|
|
432
|
+
badgeAppearanceSize: 'sizeM',
|
|
440
433
|
iconSize: '20',
|
|
441
434
|
},
|
|
442
|
-
|
|
435
|
+
size24_24: {
|
|
443
436
|
fillSize: '24',
|
|
444
|
-
|
|
437
|
+
badgeAppearanceSize: 'sizeM',
|
|
438
|
+
iconSize: '24',
|
|
445
439
|
},
|
|
446
|
-
|
|
447
|
-
fillSize: '
|
|
440
|
+
size32_12: {
|
|
441
|
+
fillSize: '32',
|
|
442
|
+
badgeAppearanceSize: 'sizeM',
|
|
443
|
+
iconSize: '12',
|
|
444
|
+
},
|
|
445
|
+
size32_14: {
|
|
446
|
+
fillSize: '32',
|
|
447
|
+
badgeAppearanceSize: 'sizeM',
|
|
448
448
|
iconSize: '14',
|
|
449
449
|
},
|
|
450
|
-
|
|
451
|
-
fillSize: '
|
|
452
|
-
|
|
450
|
+
size32_16: {
|
|
451
|
+
fillSize: '32',
|
|
452
|
+
badgeAppearanceSize: 'sizeM',
|
|
453
|
+
iconSize: '16',
|
|
453
454
|
},
|
|
454
|
-
|
|
455
|
-
fillSize: '
|
|
455
|
+
size32_20: {
|
|
456
|
+
fillSize: '32',
|
|
457
|
+
badgeAppearanceSize: 'sizeM',
|
|
456
458
|
iconSize: '20',
|
|
457
459
|
},
|
|
458
|
-
|
|
459
|
-
fillSize: '
|
|
460
|
-
|
|
460
|
+
size32_24: {
|
|
461
|
+
fillSize: '32',
|
|
462
|
+
badgeAppearanceSize: 'sizeM',
|
|
463
|
+
iconSize: '24',
|
|
461
464
|
},
|
|
462
|
-
|
|
463
|
-
fillSize: '
|
|
464
|
-
|
|
465
|
+
size32_32: {
|
|
466
|
+
fillSize: '32',
|
|
467
|
+
badgeAppearanceSize: 'sizeM',
|
|
468
|
+
iconSize: '32',
|
|
465
469
|
},
|
|
466
|
-
|
|
467
|
-
fillSize: '
|
|
470
|
+
size40_12: {
|
|
471
|
+
fillSize: '40',
|
|
472
|
+
badgeAppearanceSize: 'sizeM',
|
|
468
473
|
iconSize: '12',
|
|
469
474
|
},
|
|
470
|
-
|
|
471
|
-
fillSize: '
|
|
472
|
-
|
|
473
|
-
},
|
|
474
|
-
size16_14: {
|
|
475
|
-
fillSize: '16',
|
|
475
|
+
size40_14: {
|
|
476
|
+
fillSize: '40',
|
|
477
|
+
badgeAppearanceSize: 'sizeM',
|
|
476
478
|
iconSize: '14',
|
|
477
479
|
},
|
|
478
|
-
|
|
479
|
-
fillSize: '
|
|
480
|
-
|
|
480
|
+
size40_16: {
|
|
481
|
+
fillSize: '40',
|
|
482
|
+
badgeAppearanceSize: 'sizeM',
|
|
483
|
+
iconSize: '16',
|
|
481
484
|
},
|
|
482
|
-
|
|
483
|
-
fillSize: '
|
|
484
|
-
|
|
485
|
+
size40_20: {
|
|
486
|
+
fillSize: '40',
|
|
487
|
+
badgeAppearanceSize: 'sizeM',
|
|
488
|
+
iconSize: '20',
|
|
485
489
|
},
|
|
486
|
-
|
|
487
|
-
fillSize: '
|
|
488
|
-
|
|
490
|
+
size40_24: {
|
|
491
|
+
fillSize: '40',
|
|
492
|
+
badgeAppearanceSize: 'sizeM',
|
|
493
|
+
iconSize: '24',
|
|
489
494
|
},
|
|
490
|
-
|
|
491
|
-
fillSize: '
|
|
492
|
-
|
|
495
|
+
size40_32: {
|
|
496
|
+
fillSize: '40',
|
|
497
|
+
badgeAppearanceSize: 'sizeM',
|
|
498
|
+
iconSize: '32',
|
|
499
|
+
},
|
|
500
|
+
size40_40: {
|
|
501
|
+
fillSize: '40',
|
|
502
|
+
badgeAppearanceSize: 'sizeL',
|
|
503
|
+
iconSize: '40',
|
|
493
504
|
},
|
|
494
505
|
};
|
|
495
506
|
|
|
496
507
|
var iconAppearanceStyle = {
|
|
497
|
-
|
|
498
|
-
ghost: {
|
|
499
|
-
fill: 'none',
|
|
500
|
-
fillHover: 'none',
|
|
508
|
+
solid: {
|
|
501
509
|
borderColor: '0',
|
|
502
510
|
},
|
|
503
511
|
outlined: {
|
|
504
512
|
fill: 'none',
|
|
505
|
-
fillHover: 'none',
|
|
506
513
|
},
|
|
507
|
-
|
|
514
|
+
full: {},
|
|
515
|
+
ghost: {
|
|
516
|
+
fill: 'none',
|
|
517
|
+
fillHover: 'none',
|
|
508
518
|
borderColor: '0',
|
|
509
519
|
},
|
|
510
520
|
};
|
|
@@ -515,8 +525,12 @@ var iconAppearanceSuccess = {
|
|
|
515
525
|
fillHover: 'successHover',
|
|
516
526
|
labelTextColor: 'successTextSecondary',
|
|
517
527
|
labelTextColorHover: 'successTextSecondary',
|
|
518
|
-
|
|
519
|
-
|
|
528
|
+
},
|
|
529
|
+
successPrimary: {
|
|
530
|
+
fill: 'successPrimary',
|
|
531
|
+
fillHover: 'successHover',
|
|
532
|
+
badgeAppearance: 'accentPrimary',
|
|
533
|
+
iconFill: 'successItemPrimary',
|
|
520
534
|
},
|
|
521
535
|
};
|
|
522
536
|
|
|
@@ -525,25 +539,30 @@ var iconAppearanceSurface = {
|
|
|
525
539
|
fill: 'surfacePrimary',
|
|
526
540
|
fillHover: 'surfaceSecondary',
|
|
527
541
|
labelTextColor: 'surfaceTextPrimary',
|
|
528
|
-
|
|
542
|
+
badgeAppearance: 'accentPrimary',
|
|
543
|
+
iconFill: 'surfaceItemPrimary',
|
|
529
544
|
},
|
|
530
545
|
surfaceSecondary: {
|
|
531
546
|
fill: 'surfaceSecondary',
|
|
532
547
|
fillHover: 'surfaceSecondaryHover',
|
|
533
548
|
labelTextColor: 'surfaceTextPrimary',
|
|
534
|
-
|
|
535
|
-
|
|
549
|
+
badgeAppearance: 'accentPrimary',
|
|
550
|
+
iconFill: 'surfaceItemPrimary',
|
|
536
551
|
},
|
|
537
552
|
surfaceTertiary: {
|
|
538
553
|
fill: 'surfaceTertiary',
|
|
539
554
|
fillHover: 'surfaceTertiaryHover',
|
|
540
555
|
labelTextColor: 'surfaceTextPrimary',
|
|
556
|
+
badgeAppearance: 'accentPrimary',
|
|
557
|
+
iconFill: 'surfaceItemPrimary',
|
|
541
558
|
},
|
|
542
559
|
surfaceQuaternary: {
|
|
543
560
|
fill: 'surfaceQuaternary',
|
|
544
561
|
fillHover: 'surfaceHover',
|
|
545
562
|
labelTextColor: 'surfaceTextPrimary',
|
|
546
563
|
labelTextColorHover: 'surfaceTextHover',
|
|
564
|
+
badgeAppearance: 'accentPrimary',
|
|
565
|
+
iconFill: 'surfaceItemPrimary',
|
|
547
566
|
},
|
|
548
567
|
};
|
|
549
568
|
|
|
@@ -553,8 +572,6 @@ var iconAppearanceWarning = {
|
|
|
553
572
|
fillHover: 'warningHover',
|
|
554
573
|
labelTextColor: 'warningTextSecondary',
|
|
555
574
|
labelTextColorHover: 'warningTextSecondary',
|
|
556
|
-
loaderFill: 'warningPrimary',
|
|
557
|
-
loaderItemFill: 'warningItemPrimary',
|
|
558
575
|
},
|
|
559
576
|
};
|
|
560
577
|
|
|
@@ -594,8 +611,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
594
611
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = iconConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
595
612
|
}, {});
|
|
596
613
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
597
|
-
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;
|
|
598
|
-
// @ts-expect-error
|
|
614
|
+
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;
|
|
599
615
|
var iconStyles = useStyles.useStyles(props).styles;
|
|
600
616
|
return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'icon', !isActive
|
|
601
617
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -606,7 +622,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
606
622
|
: iconFillActiveClass && "icon_fill_active_".concat(iconFillActiveClass), !isActive
|
|
607
623
|
? iconFillHoverClass && "icon_fill_hover_".concat(iconFillHoverClass)
|
|
608
624
|
: iconFillActiveHoverClass &&
|
|
609
|
-
"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, jsxRuntime.jsxs(Link.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 && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
625
|
+
"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, jsxRuntime.jsxs(Link.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 && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
610
626
|
});
|
|
611
627
|
var removeFillStroke = function (code) {
|
|
612
628
|
return code
|
|
@@ -876,247 +892,91 @@ function Title(props) {
|
|
|
876
892
|
}
|
|
877
893
|
return size ? size : 'span';
|
|
878
894
|
}, [tag, size]);
|
|
879
|
-
return (jsxRuntime.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, jsxRuntime.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) && (jsxRuntime.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) && (jsxRuntime.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] }));
|
|
895
|
+
return (jsxRuntime.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, jsxRuntime.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) && (jsxRuntime.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) && (jsxRuntime.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] }));
|
|
880
896
|
}
|
|
881
897
|
|
|
882
|
-
var
|
|
883
|
-
|
|
884
|
-
fill: '
|
|
885
|
-
fillHover: '
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
fillHover: 'accentPrimaryHover',
|
|
890
|
-
borderColor: 'accentBorderPrimary',
|
|
891
|
-
},
|
|
892
|
-
accentSecondary: {
|
|
893
|
-
fill: 'accentPrimary',
|
|
894
|
-
fillHover: 'accentPrimaryHover',
|
|
895
|
-
labelTextColor: 'accentTextSecondary',
|
|
896
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
897
|
-
borderColor: 'accentBorderPrimary',
|
|
898
|
-
loaderItemFill: 'accentItemPrimary',
|
|
899
|
-
},
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
var tooltipAppearanceDanger = {
|
|
903
|
-
danger: {
|
|
904
|
-
fill: 'dangerPrimary',
|
|
905
|
-
fillHover: 'dangerPrimaryHover',
|
|
898
|
+
var tooltipAppearanceDefault = {
|
|
899
|
+
defaultPrimary: {
|
|
900
|
+
fill: 'surfacePrimary',
|
|
901
|
+
fillHover: 'surfacePrimaryHover',
|
|
902
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
903
|
+
borderColor: 'surfaceBorderPrimary',
|
|
904
|
+
textColor: 'surfaceTextPrimary',
|
|
906
905
|
},
|
|
907
906
|
};
|
|
908
907
|
|
|
909
908
|
var tooltipAppearanceDisabled = {
|
|
910
909
|
disabledPrimary: {
|
|
911
|
-
fill: '
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
textColor: '
|
|
915
|
-
iconBeforeFill: 'errorItemQuaternary',
|
|
916
|
-
iconClearFill: 'errorItemPrimary',
|
|
917
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
918
|
-
},
|
|
919
|
-
disabledSecondary: {
|
|
920
|
-
fill: 'surfaceSecondary',
|
|
921
|
-
borderColor: 'surfaceBorderTertiary',
|
|
922
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
923
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
924
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
925
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
910
|
+
fill: 'surfaceDisabled',
|
|
911
|
+
fillHover: 'surfaceDisabledHover',
|
|
912
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
913
|
+
textColor: 'surfaceTextPrimary',
|
|
926
914
|
},
|
|
927
915
|
};
|
|
928
916
|
|
|
929
917
|
var tooltipAppearanceError = {
|
|
930
|
-
|
|
918
|
+
errorPrimary: {
|
|
931
919
|
fill: 'errorPrimary',
|
|
932
920
|
fillHover: 'errorPrimaryHover',
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
loaderItemFill: 'errorItemPrimary',
|
|
937
|
-
},
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
var tooltipAppearanceInfo = {
|
|
941
|
-
info: {
|
|
942
|
-
fill: 'accentPrimary',
|
|
943
|
-
fillHover: 'accentPrimaryHover',
|
|
944
|
-
labelTextColor: 'accentTextPrimary',
|
|
945
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
946
|
-
borderColor: 'accentBorderPrimary',
|
|
947
|
-
loaderFill: 'accentPrimary',
|
|
948
|
-
loaderItemFill: 'accentItemPrimary',
|
|
949
|
-
},
|
|
950
|
-
infoSecondary: {
|
|
951
|
-
fill: 'accentPrimary',
|
|
952
|
-
fillHover: 'accentPrimaryHover',
|
|
953
|
-
labelTextColor: 'accentTextSecondary',
|
|
954
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
955
|
-
borderColor: 'accentBorderPrimary',
|
|
956
|
-
loaderFill: 'accentPrimary',
|
|
957
|
-
loaderItemFill: 'accentItemPrimary',
|
|
958
|
-
},
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
var tooltipAppearancePrimary = {
|
|
962
|
-
primary: {
|
|
963
|
-
fill: 'primaryPrimary',
|
|
964
|
-
fillHover: 'primaryPrimaryHover',
|
|
965
|
-
labelTextColor: 'primaryTextPrimary',
|
|
921
|
+
titleTextColor: 'errorTextPrimary',
|
|
922
|
+
borderColor: 'errorBorderPrimary',
|
|
923
|
+
textColor: 'errorTextPrimary',
|
|
966
924
|
},
|
|
967
925
|
};
|
|
968
926
|
|
|
969
927
|
var tooltipAppearanceRequire = {
|
|
970
928
|
requirePrimary: {
|
|
971
|
-
fill: '
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
iconClearFill: 'warningItemPrimary',
|
|
977
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
978
|
-
},
|
|
979
|
-
requireSecondary: {
|
|
980
|
-
fill: 'surfaceSecondary',
|
|
981
|
-
borderColor: 'surfaceBorderTertiary',
|
|
982
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
983
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
984
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
985
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
986
|
-
},
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
var tooltipAppearanceSecondary = {
|
|
990
|
-
secondary: {
|
|
991
|
-
fill: 'secondaryPrimary',
|
|
992
|
-
fillHover: 'secondaryPrimaryHover',
|
|
993
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
929
|
+
fill: 'warningPrimary',
|
|
930
|
+
fillHover: 'warningPrimaryHover',
|
|
931
|
+
titleTextColor: 'warningTextPrimary',
|
|
932
|
+
borderColor: 'warningBorderPrimary',
|
|
933
|
+
textColor: 'warningTextPrimary',
|
|
994
934
|
},
|
|
995
935
|
};
|
|
996
936
|
|
|
997
937
|
var tooltipAppearanceSize = {
|
|
998
|
-
sizeXXL: {
|
|
999
|
-
size: 'xxl',
|
|
1000
|
-
labelTextSize: 'xxl',
|
|
1001
|
-
iconAfterFillSize: '24',
|
|
1002
|
-
iconAfterSize: '24',
|
|
1003
|
-
iconBeforeFillSize: '24',
|
|
1004
|
-
iconBeforeSize: '24',
|
|
1005
|
-
},
|
|
1006
|
-
sizeXL: {
|
|
1007
|
-
size: 'xl',
|
|
1008
|
-
labelTextSize: 'l',
|
|
1009
|
-
iconAfterFillSize: '24',
|
|
1010
|
-
iconAfterSize: '24',
|
|
1011
|
-
iconBeforeFillSize: '24',
|
|
1012
|
-
iconBeforeSize: '24',
|
|
1013
|
-
},
|
|
1014
938
|
sizeL: {
|
|
1015
939
|
size: 'l',
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
iconAfterSize: '24',
|
|
1019
|
-
iconBeforeFillSize: '24',
|
|
1020
|
-
iconBeforeSize: '24',
|
|
940
|
+
titleSize: 'h5',
|
|
941
|
+
textSize: 's',
|
|
1021
942
|
},
|
|
1022
943
|
sizeM: {
|
|
1023
944
|
size: 'm',
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
iconAfterSize: '24',
|
|
1027
|
-
iconBeforeFillSize: '24',
|
|
1028
|
-
iconBeforeSize: '24',
|
|
945
|
+
titleSize: 'h5',
|
|
946
|
+
textSize: 's',
|
|
1029
947
|
},
|
|
1030
948
|
sizeS: {
|
|
1031
949
|
size: 's',
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
iconAfterSize: '20',
|
|
1035
|
-
iconBeforeFillSize: '20',
|
|
1036
|
-
iconBeforeSize: '20',
|
|
1037
|
-
},
|
|
1038
|
-
sizeXS: {
|
|
1039
|
-
size: 'xs',
|
|
1040
|
-
labelTextSize: 'xs',
|
|
1041
|
-
iconAfterFillSize: '16',
|
|
1042
|
-
iconAfterSize: '16',
|
|
1043
|
-
iconBeforeFillSize: '16',
|
|
1044
|
-
iconBeforeSize: '16',
|
|
1045
|
-
},
|
|
1046
|
-
sizeXXS: {
|
|
1047
|
-
size: 'xxs',
|
|
1048
|
-
labelTextSize: 'xs',
|
|
1049
|
-
iconAfterFillSize: '14',
|
|
1050
|
-
iconAfterSize: '14',
|
|
1051
|
-
iconBeforeFillSize: '14',
|
|
1052
|
-
iconBeforeSize: '14',
|
|
950
|
+
titleSize: 'h5',
|
|
951
|
+
textSize: 's',
|
|
1053
952
|
},
|
|
1054
953
|
};
|
|
1055
954
|
|
|
1056
955
|
var tooltipAppearanceStyle = {
|
|
1057
|
-
|
|
1058
|
-
borderColor: '
|
|
1059
|
-
},
|
|
1060
|
-
ghost: {
|
|
1061
|
-
fill: 'none',
|
|
1062
|
-
borderColor: '0',
|
|
956
|
+
solid: {
|
|
957
|
+
borderColor: 'none',
|
|
1063
958
|
},
|
|
1064
959
|
outlined: {
|
|
1065
960
|
fill: 'none',
|
|
1066
961
|
},
|
|
1067
|
-
|
|
1068
|
-
|
|
962
|
+
full: {},
|
|
963
|
+
ghost: {
|
|
964
|
+
fill: 'none',
|
|
965
|
+
borderColor: 'none',
|
|
1069
966
|
},
|
|
1070
967
|
};
|
|
1071
968
|
|
|
1072
969
|
var tooltipAppearanceSuccess = {
|
|
1073
|
-
|
|
970
|
+
successPrimary: {
|
|
1074
971
|
fill: 'successPrimary',
|
|
1075
972
|
fillHover: 'successPrimaryHover',
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
loaderItemFill: 'successItemPrimary',
|
|
1080
|
-
},
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
var tooltipAppearanceSurface = {
|
|
1084
|
-
surfacePrimary: {
|
|
1085
|
-
fill: 'surfacePrimary',
|
|
1086
|
-
fillHover: 'surfacePrimaryHover',
|
|
1087
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1088
|
-
},
|
|
1089
|
-
surfaceQuaternary: {
|
|
1090
|
-
fill: 'surfaceQuaternary',
|
|
1091
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
1092
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1093
|
-
},
|
|
1094
|
-
surfaceSecondary: {
|
|
1095
|
-
fill: 'surfaceSecondary',
|
|
1096
|
-
fillHover: 'surfaceSecondaryHover',
|
|
1097
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1098
|
-
loaderFill: 'surfaceSecondary',
|
|
1099
|
-
loaderItemFill: 'surfaceItemPrimary',
|
|
1100
|
-
},
|
|
1101
|
-
surfaceTertiary: {
|
|
1102
|
-
fill: 'surfaceTertiary',
|
|
1103
|
-
fillHover: 'surfaceTertiaryHover',
|
|
1104
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
1105
|
-
},
|
|
1106
|
-
};
|
|
1107
|
-
|
|
1108
|
-
var tooltipAppearanceWarning = {
|
|
1109
|
-
warning: {
|
|
1110
|
-
fill: 'warningPrimary',
|
|
1111
|
-
fillHover: 'warningPrimaryHover',
|
|
1112
|
-
labelTextColor: 'warningTextSecondary',
|
|
1113
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
1114
|
-
loaderFill: 'warningPrimary',
|
|
1115
|
-
loaderItemFill: 'warningItemPrimary',
|
|
973
|
+
titleTextColor: 'successTextPrimary',
|
|
974
|
+
borderColor: 'successBorderPrimary',
|
|
975
|
+
textColor: 'successTextPrimary',
|
|
1116
976
|
},
|
|
1117
977
|
};
|
|
1118
978
|
|
|
1119
|
-
var tooltipAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(
|
|
979
|
+
var tooltipAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tooltipAppearanceDefault), tooltipAppearanceSize), tooltipAppearanceDisabled), tooltipAppearanceRequire), tooltipAppearanceStyle), tooltipAppearanceError), tooltipAppearanceSuccess);
|
|
1120
980
|
|
|
1121
981
|
var tooltipConfig = {
|
|
1122
982
|
appearance: tooltipAppearance,
|
|
@@ -1125,7 +985,7 @@ var tooltipConfig = {
|
|
|
1125
985
|
},
|
|
1126
986
|
};
|
|
1127
987
|
var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
1128
|
-
var className = props.className,
|
|
988
|
+
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;
|
|
1129
989
|
var tooltipElementRef = React.useRef(null);
|
|
1130
990
|
var tooltipTimeoutHideRef = React.useRef(null);
|
|
1131
991
|
var tooltipTimeoutShowRef = React.useRef(null);
|
|
@@ -1176,11 +1036,10 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1176
1036
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
1177
1037
|
}, {});
|
|
1178
1038
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
1179
|
-
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;
|
|
1039
|
+
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;
|
|
1180
1040
|
// @ts-expect-error
|
|
1181
1041
|
var tooltipStyles = useStyles.useStyles(props).styles;
|
|
1182
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible
|
|
1183
|
-
"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, jsxRuntime.jsxs("div", { className: "tooltip__inner", children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tooltip__text", size: textSize, textColor: textColor, children: text })), children] }), after] }));
|
|
1042
|
+
return (jsxRuntime.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: [jsxRuntime.jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxRuntime.jsxs("div", { className: "tooltip__inner", children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1184
1043
|
});
|
|
1185
1044
|
|
|
1186
1045
|
exports.Badge = Badge;
|