@itcase/ui 1.8.27 → 1.8.30
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_DN9BoTKe.js} +13 -10
- package/dist/{ChipsGroup_es_BNuhlSG6.js → ChipsGroup_es_D9aK8Roh.js} +13 -10
- package/dist/{DatePicker_cjs_DamcZFbX.js → DatePicker_cjs_B_OWDm9X.js} +15 -26
- package/dist/{DatePicker_es_Bm_onmmb.js → DatePicker_es_BCbmUdl0.js} +15 -26
- 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 +61 -75
- 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 +48 -11
- 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 +62 -75
- 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 +48 -11
- 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 +64 -19
- package/dist/css/components/Avatar/Avatar.css +44 -16
- package/dist/css/components/AvatarStack/AvatarStack.css +38 -3
- package/dist/css/components/Badge/Badge.css +1 -1
- 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 +27 -35
- package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +4 -6
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +15 -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 +17 -0
- package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +19 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +7 -15
- 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/DatePicker/appearance/datePickerSurface.d.ts +0 -2
- 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
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
3
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var clsx = require('clsx');
|
|
5
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
6
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_pBGCcXLZ.js');
|
|
9
|
+
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
10
|
+
var _default = require('@itcase/icons/default');
|
|
9
11
|
var Notifications = require('../context/Notifications.js');
|
|
10
12
|
require('../context/UIContext.js');
|
|
11
13
|
require('react');
|
|
@@ -19,142 +21,122 @@ require('react-responsive');
|
|
|
19
21
|
require('../utils/setViewportProperty.js');
|
|
20
22
|
require('lodash/maxBy');
|
|
21
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
+
require('react-inlinesvg');
|
|
25
|
+
require('../../Link_cjs_DbRGq2Yk.js');
|
|
22
26
|
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
fill: '
|
|
26
|
-
fillHover: '
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
var notificationAppearanceDefault = {
|
|
28
|
+
defaultPrimary: {
|
|
29
|
+
fill: 'surfacePrimary',
|
|
30
|
+
fillHover: 'surfacePrimaryHover',
|
|
31
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
32
|
+
titleTextSize: 'xxl',
|
|
33
|
+
descTextColor: 'surfaceTextPrimary',
|
|
34
|
+
descTextSize: 'm',
|
|
35
|
+
borderColor: 'surfaceBorderPrimary',
|
|
36
|
+
elevation: 8,
|
|
37
|
+
textColor: 'surfaceTextPrimary',
|
|
38
|
+
iconSize: 20,
|
|
39
|
+
closeIcon: _default.icon20.Close,
|
|
40
|
+
closeIconFillIcon: 'surfaceItemPrimary',
|
|
31
41
|
},
|
|
32
42
|
};
|
|
33
43
|
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
iconBeforeFillSize: '24',
|
|
49
|
-
iconBeforeSize: '24',
|
|
50
|
-
},
|
|
51
|
-
sizeL: {
|
|
52
|
-
size: 'l',
|
|
53
|
-
labelTextSize: 'l',
|
|
54
|
-
iconAfterFillSize: '24',
|
|
55
|
-
iconAfterSize: '24',
|
|
56
|
-
iconBeforeFillSize: '24',
|
|
57
|
-
iconBeforeSize: '24',
|
|
58
|
-
},
|
|
59
|
-
sizeM: {
|
|
60
|
-
size: 'm',
|
|
61
|
-
labelTextSize: 'm',
|
|
62
|
-
iconAfterFillSize: '24',
|
|
63
|
-
iconAfterSize: '24',
|
|
64
|
-
iconBeforeFillSize: '24',
|
|
65
|
-
iconBeforeSize: '24',
|
|
66
|
-
},
|
|
67
|
-
sizeS: {
|
|
68
|
-
size: 's',
|
|
69
|
-
labelTextSize: 's',
|
|
70
|
-
iconAfterFillSize: '20',
|
|
71
|
-
iconAfterSize: '20',
|
|
72
|
-
iconBeforeFillSize: '20',
|
|
73
|
-
iconBeforeSize: '20',
|
|
74
|
-
},
|
|
75
|
-
sizeXS: {
|
|
76
|
-
size: 'xs',
|
|
77
|
-
labelTextSize: 'xs',
|
|
78
|
-
iconAfterFillSize: '16',
|
|
79
|
-
iconAfterSize: '16',
|
|
80
|
-
iconBeforeFillSize: '16',
|
|
81
|
-
iconBeforeSize: '16',
|
|
82
|
-
},
|
|
83
|
-
sizeXXS: {
|
|
84
|
-
size: 'xxs',
|
|
85
|
-
labelTextSize: 'xs',
|
|
86
|
-
iconAfterFillSize: '14',
|
|
87
|
-
iconAfterSize: '14',
|
|
88
|
-
iconBeforeFillSize: '14',
|
|
89
|
-
iconBeforeSize: '14',
|
|
44
|
+
var notificationAppearanceError = {
|
|
45
|
+
errorPrimary: {
|
|
46
|
+
fill: 'errorPrimary',
|
|
47
|
+
fillHover: 'errorPrimaryHover',
|
|
48
|
+
titleTextColor: 'errorTextPrimary',
|
|
49
|
+
titleTextSize: 'xxl',
|
|
50
|
+
descTextColor: 'errorTextPrimary',
|
|
51
|
+
descTextSize: 'm',
|
|
52
|
+
borderColor: 'errorBorderPrimary',
|
|
53
|
+
elevation: 8,
|
|
54
|
+
textColor: 'errorTextPrimary',
|
|
55
|
+
iconSize: 20,
|
|
56
|
+
closeIcon: _default.icon20.Close,
|
|
57
|
+
closeIconFillIcon: 'errorItemPrimary',
|
|
90
58
|
},
|
|
91
59
|
};
|
|
92
60
|
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
61
|
+
var notificationAppearanceSize = {};
|
|
62
|
+
|
|
63
|
+
var notificationAppearanceStyle = {
|
|
64
|
+
full: {},
|
|
97
65
|
ghost: {
|
|
98
66
|
fill: 'none',
|
|
99
|
-
borderColor: '
|
|
67
|
+
borderColor: 'none',
|
|
100
68
|
},
|
|
101
69
|
outlined: {
|
|
102
70
|
fill: 'none',
|
|
103
71
|
},
|
|
104
72
|
solid: {
|
|
105
|
-
borderColor: '
|
|
73
|
+
borderColor: 'none',
|
|
106
74
|
},
|
|
107
75
|
};
|
|
108
76
|
|
|
109
|
-
var
|
|
110
|
-
|
|
77
|
+
var notificationAppearanceSuccess = {
|
|
78
|
+
successPrimary: {
|
|
111
79
|
fill: 'successPrimary',
|
|
112
80
|
fillHover: 'successPrimaryHover',
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
81
|
+
titleTextColor: 'successTextPrimary',
|
|
82
|
+
titleTextSize: 'xxl',
|
|
83
|
+
descTextColor: 'successTextPrimary',
|
|
84
|
+
descTextSize: 'm',
|
|
85
|
+
borderColor: 'successBorderPrimary',
|
|
86
|
+
elevation: 8,
|
|
87
|
+
textColor: 'successTextPrimary',
|
|
88
|
+
iconSize: 20,
|
|
89
|
+
closeIcon: _default.icon20.Close,
|
|
90
|
+
closeIconFillIcon: 'accentItemPrimary',
|
|
117
91
|
},
|
|
118
92
|
};
|
|
119
93
|
|
|
120
|
-
var
|
|
121
|
-
|
|
94
|
+
var notificationAppearanceWarning = {
|
|
95
|
+
warningPrimary: {
|
|
122
96
|
fill: 'warningPrimary',
|
|
123
97
|
fillHover: 'warningPrimaryHover',
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
98
|
+
titleTextColor: 'warningTextPrimary',
|
|
99
|
+
titleTextSize: 'xxl',
|
|
100
|
+
descTextColor: 'warningTextPrimary',
|
|
101
|
+
descTextSize: 'm',
|
|
102
|
+
borderColor: 'surfaceBorderPrimary',
|
|
103
|
+
elevation: 8,
|
|
104
|
+
textColor: 'warningTextPrimary',
|
|
105
|
+
iconSize: 20,
|
|
106
|
+
closeIcon: _default.icon20.Close,
|
|
107
|
+
closeIconFillIcon: 'warningItemPrimary',
|
|
128
108
|
},
|
|
129
109
|
};
|
|
130
110
|
|
|
131
|
-
var
|
|
111
|
+
var notificationAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceSuccess), notificationAppearanceWarning);
|
|
132
112
|
|
|
133
|
-
var
|
|
134
|
-
appearance:
|
|
113
|
+
var notificationConfig = {
|
|
114
|
+
appearance: notificationAppearance,
|
|
135
115
|
setAppearance: function (appearanceConfig) {
|
|
136
|
-
|
|
116
|
+
notificationConfig.appearance = appearanceConfig;
|
|
137
117
|
},
|
|
138
118
|
};
|
|
139
|
-
function
|
|
140
|
-
var id = props.id, className = props.className,
|
|
141
|
-
var appearanceConfig =
|
|
142
|
-
|
|
119
|
+
function Notification(props) {
|
|
120
|
+
var id = props.id, className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, status = props.status, dataTestId = props.dataTestId, dataTour = props.dataTour, before = props.before, after = props.after, close = props.close, isSkeleton = props.isSkeleton, onClickClose = props.onClickClose;
|
|
121
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
122
|
+
var _a;
|
|
123
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = notificationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
124
|
+
}, {});
|
|
143
125
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
144
|
-
var fillClass = propsGenerator.fillClass, widthClass = propsGenerator.widthClass;
|
|
126
|
+
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, elevationClass = propsGenerator.elevationClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
145
127
|
// @ts-expect-error
|
|
146
128
|
var notificationStyles = useStyles.useStyles(props).styles;
|
|
147
|
-
return (jsxRuntime.jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status),
|
|
129
|
+
return (jsxRuntime.jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), type && "notification__item_set_".concat(type), elevationClass && "elevation_".concat(elevationClass), sizeClass && "notification__item_set_".concat(sizeClass), widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass), isSkeleton && "notification__item_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(Text.Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: clsx('notification__item-close', 'cursor_type_pointer'), fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: function () { return onClickClose && onClickClose(id); } }))] }), after] }));
|
|
148
130
|
}
|
|
149
131
|
|
|
150
|
-
function
|
|
132
|
+
function NotificationWrapper(props) {
|
|
151
133
|
var notifications = Notifications.useNotifications();
|
|
152
134
|
var hideNotifications = Notifications.useNotificationsAPI().hideNotifications;
|
|
153
|
-
var className = props.className,
|
|
154
|
-
return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntime.jsx(
|
|
135
|
+
var className = props.className, close = props.close;
|
|
136
|
+
return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
|
|
155
137
|
}
|
|
156
138
|
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
159
|
-
exports.
|
|
160
|
-
exports.
|
|
139
|
+
exports.Notification = Notification;
|
|
140
|
+
exports.NotificationWrapper = NotificationWrapper;
|
|
141
|
+
exports.notificationAppearance = notificationAppearance;
|
|
142
|
+
exports.notificationConfig = notificationConfig;
|
|
@@ -8,9 +8,9 @@ var ceil = require('lodash/ceil');
|
|
|
8
8
|
var ReactPaginate = require('react-paginate');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var DropdownItem = require('../../
|
|
12
|
-
var Tooltip = require('../../
|
|
13
|
-
var Text = require('../../
|
|
11
|
+
var DropdownItem = require('../../DropdownItem_cjs_DPoFy70W.js');
|
|
12
|
+
var Tooltip = require('../../Tooltip_cjs_pBGCcXLZ.js');
|
|
13
|
+
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
14
14
|
var _default = require('@itcase/icons/default');
|
|
15
15
|
require('lodash/camelCase');
|
|
16
16
|
require('lodash/castArray');
|
|
@@ -24,7 +24,7 @@ require('react-responsive');
|
|
|
24
24
|
require('../utils/setViewportProperty.js');
|
|
25
25
|
require('lodash/maxBy');
|
|
26
26
|
require('../hooks/useStyles/styleAttributes.js');
|
|
27
|
-
require('../../
|
|
27
|
+
require('../../Divider_cjs_BmCJj3TN.js');
|
|
28
28
|
require('react-inlinesvg');
|
|
29
29
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
|
-
var Text = require('../../
|
|
7
|
+
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
8
8
|
require('react');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -20,57 +20,149 @@ require('../hooks/useStyles/useStyles.js');
|
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
|
|
23
|
+
var radioAppearanceDefault = {
|
|
24
|
+
defaultPrimary: {
|
|
25
|
+
fillCheckmark: 'surfacePrimary',
|
|
26
|
+
fillRadio: 'surfaceTertiary',
|
|
27
|
+
fillRadioActive: 'surfaceTertiary',
|
|
28
|
+
fillRadioActiveHover: 'surfaceTertiary',
|
|
29
|
+
fillRadioHover: 'surfaceTertiary',
|
|
25
30
|
labelTextColor: 'surfaceTextPrimary',
|
|
26
|
-
labelTextSize: 'm',
|
|
27
31
|
descTextColor: 'surfaceTextPrimary',
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
borderColorRadio: 'surfaceBorderPrimary',
|
|
33
|
+
borderColorRadioActive: 'surfaceBorderPrimary',
|
|
34
|
+
borderColorRadioActiveHover: 'surfaceBorderPrimary',
|
|
35
|
+
borderColorRadioHover: 'surfaceBorderPrimary',
|
|
36
|
+
},
|
|
37
|
+
defaultSecondary: {
|
|
38
|
+
fill: 'surfacePrimary',
|
|
39
|
+
borderColor: 'surfaceBorderTertiary',
|
|
40
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
41
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
42
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
43
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var radioAppearanceDisabled = {
|
|
48
|
+
disabledPrimary: {
|
|
49
|
+
fill: 'warningTertiary',
|
|
50
|
+
borderColor: 'warningBorderQuaternary',
|
|
51
|
+
borderHover: 'warningBorderQuaternary',
|
|
52
|
+
textColor: 'surfaceTextPrimary',
|
|
53
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
54
|
+
iconClearFill: 'warningItemPrimary',
|
|
55
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
33
56
|
},
|
|
34
57
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
|
|
59
|
+
var radioAppearanceError = {
|
|
60
|
+
error: {
|
|
61
|
+
fill: 'errorPrimary',
|
|
62
|
+
fillHover: 'errorPrimaryHover',
|
|
63
|
+
labelTextColor: 'errorTextPrimary',
|
|
64
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
65
|
+
loaderFill: 'errorPrimary',
|
|
66
|
+
loaderItemFill: 'errorItemPrimary',
|
|
39
67
|
},
|
|
40
68
|
};
|
|
41
69
|
|
|
70
|
+
var radioAppearanceRequire = {
|
|
71
|
+
requirePrimary: {
|
|
72
|
+
fill: 'warningTertiary',
|
|
73
|
+
borderColor: 'warningBorderQuaternary',
|
|
74
|
+
borderHover: 'warningBorderQuaternary',
|
|
75
|
+
textColor: 'surfaceTextPrimary',
|
|
76
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
77
|
+
iconClearFill: 'warningItemPrimary',
|
|
78
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
79
|
+
},
|
|
80
|
+
requireSecondary: {
|
|
81
|
+
fill: 'surfaceSecondary',
|
|
82
|
+
borderColor: 'surfaceBorderTertiary',
|
|
83
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
84
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
85
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
86
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
var radioAppearanceSize = {
|
|
91
|
+
sizeM: {
|
|
92
|
+
size: 'm',
|
|
93
|
+
labelTextSize: 'm',
|
|
94
|
+
descTextSize: 'xs',
|
|
95
|
+
},
|
|
96
|
+
sizeXS: {
|
|
97
|
+
size: 'xs',
|
|
98
|
+
labelTextSize: 'm',
|
|
99
|
+
descTextSize: 'xs',
|
|
100
|
+
},
|
|
101
|
+
sizeXXS: {
|
|
102
|
+
size: 'xxs',
|
|
103
|
+
labelTextSize: 'm',
|
|
104
|
+
descTextSize: 'xs',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var radioAppearanceStyle = {
|
|
109
|
+
full: {
|
|
110
|
+
borderColor: '0',
|
|
111
|
+
},
|
|
112
|
+
ghost: {
|
|
113
|
+
fill: 'none',
|
|
114
|
+
borderColor: '0',
|
|
115
|
+
},
|
|
116
|
+
outlined: {
|
|
117
|
+
fill: 'none',
|
|
118
|
+
},
|
|
119
|
+
solid: {
|
|
120
|
+
borderColor: '0',
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var radioAppearanceSuccess = {
|
|
125
|
+
success: {
|
|
126
|
+
fill: 'successPrimary',
|
|
127
|
+
fillHover: 'successPrimaryHover',
|
|
128
|
+
labelTextColor: 'successTextSecondary',
|
|
129
|
+
labelTextColorHover: 'successTextSecondary',
|
|
130
|
+
loaderFill: 'successPrimary',
|
|
131
|
+
loaderItemFill: 'successItemPrimary',
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
var radioAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, radioAppearanceDefault), radioAppearanceError), radioAppearanceSuccess), radioAppearanceRequire), radioAppearanceDisabled), radioAppearanceSize), radioAppearanceStyle);
|
|
136
|
+
|
|
42
137
|
var radioConfig = {
|
|
43
138
|
appearance: radioAppearance,
|
|
44
|
-
state: radioState,
|
|
45
139
|
setAppearance: function (appearanceConfig) {
|
|
46
140
|
radioConfig.appearance = appearanceConfig;
|
|
47
141
|
},
|
|
48
|
-
setState: function (newComponent) {
|
|
49
|
-
radioConfig.state = newComponent;
|
|
50
|
-
},
|
|
51
142
|
};
|
|
52
143
|
function Radio(props) {
|
|
53
|
-
var id = props.id, className = props.className, appearance = props.appearance, label = props.label,
|
|
144
|
+
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, onChange = props.onChange;
|
|
54
145
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
55
146
|
var _a;
|
|
56
147
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = radioConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
57
148
|
}, {});
|
|
58
149
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
59
|
-
var fillClass = propsGenerator.fillClass,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"border-
|
|
150
|
+
var fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, fillRadioActiveClass = propsGenerator.fillRadioActiveClass, fillRadioActiveHoverClass = propsGenerator.fillRadioActiveHoverClass, fillRadioClass = propsGenerator.fillRadioClass, fillRadioHoverClass = propsGenerator.fillRadioHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorRadioActiveClass = propsGenerator.borderColorRadioActiveClass, borderColorRadioActiveHoverClass = propsGenerator.borderColorRadioActiveHoverClass, borderColorRadioClass = propsGenerator.borderColorRadioClass, borderColorRadioHoverClass = propsGenerator.borderColorRadioHoverClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b;
|
|
151
|
+
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'radio', fillClass && "fill_".concat(fillClass)), htmlFor: id, children: [jsxRuntime.jsxs("div", { className: clsx('radio__item'), children: [jsxRuntime.jsx("input", { id: id, className: "radio__input", type: "radio", disabled: isDisabled && 'disabled', checked: checked, onChange: onChange }), jsxRuntime.jsx("div", { className: clsx('radio__state', shapeClass && "shape_".concat(shapeClass), !checked
|
|
152
|
+
? fillRadioClass && "fill_".concat(fillRadioClass)
|
|
153
|
+
: fillRadioActiveClass && "fill_active_".concat(fillRadioActiveClass), !checked
|
|
154
|
+
? fillRadioHoverClass && "fill_hover_".concat(fillRadioHoverClass)
|
|
155
|
+
: fillRadioActiveHoverClass &&
|
|
156
|
+
"fill_active_hover_".concat(fillRadioActiveHoverClass), !checked
|
|
157
|
+
? borderColorRadioClass && "border-color_".concat(borderColorRadioClass)
|
|
158
|
+
: borderColorRadioActiveClass &&
|
|
159
|
+
"border-color_active_".concat(borderColorRadioActiveClass), !checked
|
|
160
|
+
? borderColorRadioHoverClass &&
|
|
161
|
+
"border-color_hover_".concat(borderColorRadioHoverClass)
|
|
162
|
+
: borderColorRadioActiveHoverClass &&
|
|
163
|
+
"border-color_active_hover_".concat(borderColorRadioActiveHoverClass)), children: "\u00A0" }), jsxRuntime.jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && "fill_".concat(fillCheckmarkClass)), children: "\u00A0" })] }), label && (jsxRuntime.jsx(Text.Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsxRuntime.jsx(Text.Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
|
|
71
164
|
}
|
|
72
165
|
|
|
73
166
|
exports.Radio = Radio;
|
|
74
167
|
exports.radioAppearance = radioAppearance;
|
|
75
168
|
exports.radioConfig = radioConfig;
|
|
76
|
-
exports.radioState = radioState;
|
|
@@ -7,9 +7,9 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Button = require('../../
|
|
10
|
+
var Button = require('../../Button_cjs_C05Joa8j.js');
|
|
11
11
|
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
12
|
-
var Text = require('../../
|
|
12
|
+
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
15
15
|
require('lodash/upperFirst');
|
|
@@ -22,9 +22,9 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Tooltip_cjs_pBGCcXLZ.js');
|
|
26
26
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
27
|
-
require('../../
|
|
27
|
+
require('../../Loader_cjs_CCrbD8Em.js');
|
|
28
28
|
|
|
29
29
|
var responseAppearanceConfirm = {
|
|
30
30
|
confirm: {
|
|
@@ -47,6 +47,8 @@ var responseAppearanceFail = {
|
|
|
47
47
|
descTextSize: 'm',
|
|
48
48
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
49
49
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
50
|
+
svgFill: 'surfaceTertiary',
|
|
51
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
50
52
|
},
|
|
51
53
|
};
|
|
52
54
|
|
|
@@ -59,6 +61,8 @@ var responseAppearanceNothingFound = {
|
|
|
59
61
|
descTextSize: 'm',
|
|
60
62
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
61
63
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
64
|
+
svgFill: 'surfaceTertiary',
|
|
65
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
62
66
|
},
|
|
63
67
|
};
|
|
64
68
|
|
|
@@ -71,6 +75,8 @@ var responseAppearanceRefresh = {
|
|
|
71
75
|
descTextSize: 'm',
|
|
72
76
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
73
77
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
78
|
+
svgFill: 'surfaceTertiary',
|
|
79
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
74
80
|
},
|
|
75
81
|
};
|
|
76
82
|
|
|
@@ -83,6 +89,8 @@ var responseAppearanceError = {
|
|
|
83
89
|
descTextSize: 'm',
|
|
84
90
|
primaryButtonAppearance: 'errorPrimary sizeXXL',
|
|
85
91
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
92
|
+
svgFill: 'errorPrimary',
|
|
93
|
+
svgPathFill: 'errorItemPrimary',
|
|
86
94
|
},
|
|
87
95
|
};
|
|
88
96
|
|
|
@@ -95,6 +103,8 @@ var responseAppearanceSuccess = {
|
|
|
95
103
|
descTextSize: 'm',
|
|
96
104
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
97
105
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
106
|
+
svgFill: 'surfaceTertiary',
|
|
107
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
98
108
|
},
|
|
99
109
|
};
|
|
100
110
|
|
|
@@ -107,6 +117,8 @@ var responseAppearanceUnableLoadData = {
|
|
|
107
117
|
descTextSize: 'm',
|
|
108
118
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
109
119
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
120
|
+
svgFill: 'surfaceTertiary',
|
|
121
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
110
122
|
},
|
|
111
123
|
};
|
|
112
124
|
|
|
@@ -119,6 +131,8 @@ var responseAppearanceWarning = {
|
|
|
119
131
|
descTextSize: 'm',
|
|
120
132
|
primaryButtonAppearance: 'warningPrimary sizeXXL',
|
|
121
133
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
134
|
+
svgFill: 'warningPrimary',
|
|
135
|
+
svgPathFill: 'warningItemPrimary',
|
|
122
136
|
},
|
|
123
137
|
};
|
|
124
138
|
|
|
@@ -131,13 +145,13 @@ var responseConfig = {
|
|
|
131
145
|
},
|
|
132
146
|
};
|
|
133
147
|
function Response(props) {
|
|
134
|
-
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton,
|
|
148
|
+
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, onClickSecondaryButton = props.onClickSecondaryButton, secondaryButton = props.secondaryButton, before = props.before, after = props.after, isSkeleton = props.isSkeleton;
|
|
135
149
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
136
150
|
var _a;
|
|
137
151
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = responseConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
138
152
|
}, {});
|
|
139
153
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
140
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass
|
|
154
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, onClickPrimaryButton = propsGenerator.onClickPrimaryButton, primaryButtonAfter = propsGenerator.primaryButtonAfter, primaryButtonAppearance = propsGenerator.primaryButtonAppearance, primaryButtonBefore = propsGenerator.primaryButtonBefore, primaryButtonFill = propsGenerator.primaryButtonFill, primaryButtonFillHover = propsGenerator.primaryButtonFillHover, primaryButtonLabel = propsGenerator.primaryButtonLabel, primaryButtonLabelTextColor = propsGenerator.primaryButtonLabelTextColor, primaryButtonLabelTextSize = propsGenerator.primaryButtonLabelTextSize, primaryButtonShape = propsGenerator.primaryButtonShape, primaryButtonSize = propsGenerator.primaryButtonSize, primaryButtonWidth = propsGenerator.primaryButtonWidth, secondaryButtonAfter = propsGenerator.secondaryButtonAfter, secondaryButtonAppearance = propsGenerator.secondaryButtonAppearance, secondaryButtonBefore = propsGenerator.secondaryButtonBefore, secondaryButtonFill = propsGenerator.secondaryButtonFill, secondaryButtonFillHover = propsGenerator.secondaryButtonFillHover, secondaryButtonLabel = propsGenerator.secondaryButtonLabel, secondaryButtonLabelTextColor = propsGenerator.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = propsGenerator.secondaryButtonLabelTextSize, secondaryButtonShape = propsGenerator.secondaryButtonShape, secondaryButtonSize = propsGenerator.secondaryButtonSize, secondaryButtonWidth = propsGenerator.secondaryButtonWidth, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc;
|
|
141
155
|
var ImageComponent = React.useMemo(function () {
|
|
142
156
|
var src = imageSrc || svgSrc;
|
|
143
157
|
var Image = SvgImage;
|
|
@@ -166,7 +180,7 @@ function Response(props) {
|
|
|
166
180
|
}, [imageSrc, svgSrc, SvgImage, width, height, svgFillClass]);
|
|
167
181
|
// @ts-expect-error
|
|
168
182
|
var _a = useStyles.useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
169
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs("div", { className: "response__wrapper-inner", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
|
|
183
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs("div", { className: "response__wrapper-inner", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
|
|
170
184
|
primaryButton ||
|
|
171
185
|
secondaryButtonLabel ||
|
|
172
186
|
secondaryButton ||
|