@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
package/dist/components/Cell.js
CHANGED
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_frBCZDrO.js';
|
|
7
|
+
import { L as Label } from '../Label_es_Dl_DrMOh.js';
|
|
8
|
+
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -25,39 +25,75 @@ import '../Link_es_DxtZLeKY.js';
|
|
|
25
25
|
var cellAppearanceSize = {
|
|
26
26
|
sizeXL: {
|
|
27
27
|
size: 'xl',
|
|
28
|
-
|
|
28
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
29
|
+
titleTextSize: 'xl',
|
|
30
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
29
31
|
valueTextSize: 's',
|
|
30
32
|
},
|
|
31
33
|
sizeL: {
|
|
32
34
|
size: 'l',
|
|
35
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
33
36
|
titleTextSize: 'l',
|
|
37
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
34
38
|
valueTextSize: 's',
|
|
35
39
|
},
|
|
36
40
|
sizeM: {
|
|
37
41
|
size: 'm',
|
|
42
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
38
43
|
titleTextSize: 'm',
|
|
44
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
39
45
|
valueTextSize: 's',
|
|
40
46
|
},
|
|
41
47
|
sizeS: {
|
|
42
48
|
size: 's',
|
|
49
|
+
titleLabelAppearanceSize: 'sizeXS',
|
|
43
50
|
titleTextSize: 's',
|
|
51
|
+
valueLabelAppearanceSize: 'sizeXS',
|
|
44
52
|
valueTextSize: 'xs',
|
|
45
53
|
},
|
|
54
|
+
sizeEqualL: {
|
|
55
|
+
size: 'l',
|
|
56
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
57
|
+
titleTextSize: 'l',
|
|
58
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
59
|
+
valueTextSize: 'l',
|
|
60
|
+
},
|
|
61
|
+
sizeEqualM: {
|
|
62
|
+
size: 'm',
|
|
63
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
64
|
+
titleTextSize: 'm',
|
|
65
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
66
|
+
valueTextSize: 'm',
|
|
67
|
+
},
|
|
68
|
+
sizeEqualS: {
|
|
69
|
+
size: 's',
|
|
70
|
+
titleLabelAppearanceSize: 'sizeXS',
|
|
71
|
+
titleTextSize: 's',
|
|
72
|
+
valueLabelAppearanceSize: 'sizeXS',
|
|
73
|
+
valueTextSize: 's',
|
|
74
|
+
},
|
|
75
|
+
sizeEqualXL: {
|
|
76
|
+
size: 'xl',
|
|
77
|
+
titleLabelAppearanceSize: 'sizeS',
|
|
78
|
+
titleTextSize: 'xl',
|
|
79
|
+
valueLabelAppearanceSize: 'sizeS',
|
|
80
|
+
valueTextSize: 'xl',
|
|
81
|
+
},
|
|
46
82
|
};
|
|
47
83
|
|
|
48
84
|
var cellAppearanceStyle = {
|
|
49
|
-
|
|
50
|
-
borderColor: '
|
|
51
|
-
},
|
|
52
|
-
ghost: {
|
|
53
|
-
fill: 'none',
|
|
54
|
-
borderColor: '0',
|
|
85
|
+
solid: {
|
|
86
|
+
borderColor: 'none',
|
|
55
87
|
},
|
|
56
88
|
outlined: {
|
|
57
89
|
fill: 'none',
|
|
58
90
|
},
|
|
59
|
-
|
|
60
|
-
|
|
91
|
+
full: {
|
|
92
|
+
//
|
|
93
|
+
},
|
|
94
|
+
ghost: {
|
|
95
|
+
fill: 'none',
|
|
96
|
+
borderColor: 'none',
|
|
61
97
|
},
|
|
62
98
|
};
|
|
63
99
|
|
|
@@ -65,24 +101,38 @@ var cellAppearanceSurface = {
|
|
|
65
101
|
surfacePrimary: {
|
|
66
102
|
fill: 'surfacePrimary',
|
|
67
103
|
fillHover: 'surfacePrimaryHover',
|
|
104
|
+
titleIconItemFill: 'surfaceItemPrimary',
|
|
105
|
+
titleLabelAppearance: 'accentPrimary',
|
|
68
106
|
labelTextColor: 'surfaceTextPrimary',
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fill: 'surfaceQuaternary',
|
|
72
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
73
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
107
|
+
valueIconItemFill: 'surfaceItemPrimary',
|
|
108
|
+
valueLabelAppearance: 'accentPrimary',
|
|
74
109
|
},
|
|
75
110
|
surfaceSecondary: {
|
|
76
111
|
fill: 'surfaceSecondary',
|
|
77
112
|
fillHover: 'surfaceSecondaryHover',
|
|
113
|
+
titleIconItemFill: 'surfaceItemPrimary',
|
|
114
|
+
titleLabelAppearance: 'accentPrimary',
|
|
78
115
|
labelTextColor: 'surfaceTextPrimary',
|
|
79
|
-
|
|
80
|
-
|
|
116
|
+
valueIconItemFill: 'surfaceItemPrimary',
|
|
117
|
+
valueLabelAppearance: 'accentPrimary',
|
|
81
118
|
},
|
|
82
119
|
surfaceTertiary: {
|
|
83
120
|
fill: 'surfaceTertiary',
|
|
84
121
|
fillHover: 'surfaceTertiaryHover',
|
|
122
|
+
titleIconItemFill: 'surfaceItemPrimary',
|
|
123
|
+
titleLabelAppearance: 'accentPrimary',
|
|
124
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
125
|
+
valueIconItemFill: 'surfaceItemPrimary',
|
|
126
|
+
valueLabelAppearance: 'accentPrimary',
|
|
127
|
+
},
|
|
128
|
+
surfaceQuaternary: {
|
|
129
|
+
fill: 'surfaceQuaternary',
|
|
130
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
131
|
+
titleIconItemFill: 'surfaceItemPrimary',
|
|
132
|
+
titleLabelAppearance: 'accentPrimary',
|
|
85
133
|
labelTextColor: 'surfaceTextPrimary',
|
|
134
|
+
valueIconItemFill: 'surfaceItemPrimary',
|
|
135
|
+
valueLabelAppearance: 'accentPrimary',
|
|
86
136
|
},
|
|
87
137
|
};
|
|
88
138
|
|
|
@@ -95,35 +145,27 @@ var cellConfig = {
|
|
|
95
145
|
},
|
|
96
146
|
};
|
|
97
147
|
function Cell(props) {
|
|
98
|
-
var className = props.className, appearance = props.appearance, title = props.title, titleIcon = props.titleIcon,
|
|
99
|
-
// titleLabelTextSize,
|
|
100
|
-
titleTag = props.titleTag, titleTextColor = props.titleTextColor,
|
|
101
|
-
// titleTextSize,
|
|
102
|
-
titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, mode = props.mode, reverse = props.reverse, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize,
|
|
103
|
-
// valueLabelTextSize,
|
|
104
|
-
valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor,
|
|
105
|
-
// valueTextSize,
|
|
106
|
-
valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, before = props.before, after = props.after, isActive = props.isActive, isEqual = props.isEqual, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
148
|
+
var className = props.className, appearance = props.appearance, title = props.title, titleIcon = props.titleIcon, titleLabel = props.titleLabel, titleTag = props.titleTag, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, value = props.value, valueIcon = props.valueIcon, valueTag = props.valueTag, before = props.before, after = props.after, isActive = props.isActive, isEqual = props.isEqual, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
107
149
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
108
150
|
var _a;
|
|
109
151
|
return (__assign(__assign({}, resultConfig), (_a = cellConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
110
152
|
}, {});
|
|
111
153
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
112
|
-
|
|
113
|
-
// Values for "Desktop*" or "Tablet*" or "Mobile*" device type
|
|
114
|
-
var
|
|
115
|
-
// Properties for current device media queries
|
|
116
|
-
titleLabelTextSize = propsGenerator.titleLabelTextSize, titleTextSize = propsGenerator.titleTextSize, valueLabelTextSize = propsGenerator.valueLabelTextSize, valueTextSize = propsGenerator.valueTextSize,
|
|
117
|
-
// Classes for current device media queries
|
|
118
|
-
bgFillActiveClass = propsGenerator.bgFillActiveClass, bgFillClass = propsGenerator.bgFillClass, bgFillDisabledClass = propsGenerator.bgFillDisabledClass, bgFillHoverClass = propsGenerator.bgFillHoverClass, bgShapeClass = propsGenerator.bgShapeClass, directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, sizeClass = propsGenerator.sizeClass;
|
|
119
|
-
/* eslint-enable perfectionist/sort-objects */
|
|
154
|
+
var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleIconFill = propsGenerator.titleIconFill, titleIconFillHover = propsGenerator.titleIconFillHover, titleIconFillSize = propsGenerator.titleIconFillSize, titleIconItemFill = propsGenerator.titleIconItemFill, titleIconShape = propsGenerator.titleIconShape, titleIconSrc = propsGenerator.titleIconSrc, titleLabelAppearance = propsGenerator.titleLabelAppearance, titleLabelAppearanceSize = propsGenerator.titleLabelAppearanceSize, titleLabelShape = propsGenerator.titleLabelShape, titleLabelSize = propsGenerator.titleLabelSize, titleLabelTextSize = propsGenerator.titleLabelTextSize, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, valueIconFill = propsGenerator.valueIconFill, valueIconFillHover = propsGenerator.valueIconFillHover, valueIconFillSize = propsGenerator.valueIconFillSize, valueIconItemFill = propsGenerator.valueIconItemFill, valueIconShape = propsGenerator.valueIconShape, valueIconSrc = propsGenerator.valueIconSrc, valueLabel = propsGenerator.valueLabel, valueLabelAppearance = propsGenerator.valueLabelAppearance, valueLabelAppearanceSize = propsGenerator.valueLabelAppearanceSize, valueLabelShape = propsGenerator.valueLabelShape, valueLabelSize = propsGenerator.valueLabelSize, valueLabelTextSize = propsGenerator.valueLabelTextSize, valueTextAlign = propsGenerator.valueTextAlign, valueTextColor = propsGenerator.valueTextColor, valueTextSize = propsGenerator.valueTextSize, valueTextTruncate = propsGenerator.valueTextTruncate, valueTextWeight = propsGenerator.valueTextWeight, valueTextWrap = propsGenerator.valueTextWrap, widthClass = propsGenerator.widthClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
|
|
120
155
|
// @ts-expect-error
|
|
121
|
-
var
|
|
122
|
-
return (jsxs("div", { className: clsx(className, 'cell',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
156
|
+
var _a = useStyles(props), dataStyles = _a.data, cellStyles = _a.styles;
|
|
157
|
+
return (jsxs("div", { className: clsx(className, 'cell', sizeClass && "cell_size_".concat(sizeClass), !isActive
|
|
158
|
+
? fillClass && "fill_".concat(fillClass)
|
|
159
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
160
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
161
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isActive
|
|
162
|
+
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
163
|
+
: borderColorActiveClass &&
|
|
164
|
+
"border-color_active_".concat(borderColorActiveClass), !isActive
|
|
165
|
+
? borderColorHoverClass &&
|
|
166
|
+
"border-color_hover_".concat(borderColorHoverClass)
|
|
167
|
+
: borderColorActiveHoverClass &&
|
|
168
|
+
"border-color_active_hover_".concat(borderColorActiveHoverClass), shapeClass && "cell_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { className: "cell__title-label", appearance: "".concat(titleLabelAppearance, " ").concat(titleLabelAppearanceSize), size: titleLabelSize, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, tag: valueTag, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__value-icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), (showValueLabel || valueLabel) && (jsx(Label, { className: "cell__value-label", appearance: "".concat(valueLabelAppearance, " ").concat(valueLabelAppearanceSize), size: valueLabelSize, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
127
169
|
}
|
|
128
170
|
|
|
129
171
|
export { Cell, cellAppearance, cellConfig };
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { T as Text } from '../
|
|
5
|
+
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -20,27 +20,17 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
20
20
|
|
|
21
21
|
var checkboxAppearanceDefault = {
|
|
22
22
|
defaultPrimary: {
|
|
23
|
+
fillCheckbox: 'surfacePrimary',
|
|
24
|
+
fillCheckboxActive: 'surfacePrimary',
|
|
25
|
+
fillCheckboxActiveHover: 'surfaceTertiary',
|
|
26
|
+
fillCheckboxHover: 'surfaceTertiary',
|
|
27
|
+
fillCheckmark: 'surfaceBorderPrimary',
|
|
23
28
|
labelTextColor: 'surfaceTextPrimary',
|
|
24
|
-
descTextColor: '
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
stateFillDisabled: 'surfaceTertiary',
|
|
30
|
-
stateFillDisabledChecked: 'surfaceTertiary',
|
|
31
|
-
requiredStateBorderColor: 'warningBorderPrimary',
|
|
32
|
-
stateBorderColor: 'surfaceBorderTertiary',
|
|
33
|
-
stateBorderColorChecked: 'surfaceBorderAccent',
|
|
34
|
-
stateCheckmarkFill: 'accentItemPrimary',
|
|
35
|
-
stateFillChecked: 'accentPrimary',
|
|
36
|
-
},
|
|
37
|
-
defaultSecondary: {
|
|
38
|
-
fill: 'surfacePrimary',
|
|
39
|
-
borderColor: 'surfaceBorderTertiary',
|
|
40
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
41
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
42
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
43
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
29
|
+
descTextColor: 'surfaceTextPrimary',
|
|
30
|
+
borderColorCheckbox: 'surfaceBorderPrimary',
|
|
31
|
+
borderColorCheckboxActive: 'surfaceBorderPrimary',
|
|
32
|
+
borderColorCheckboxActiveHover: 'surfaceBorderPrimary',
|
|
33
|
+
borderColorCheckboxHover: 'surfaceBorderPrimary',
|
|
44
34
|
},
|
|
45
35
|
};
|
|
46
36
|
|
|
@@ -67,12 +57,17 @@ var checkboxAppearanceDisabled = {
|
|
|
67
57
|
var checkboxAppearanceError = {
|
|
68
58
|
errorPrimary: {
|
|
69
59
|
fill: 'errorTertiary',
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
60
|
+
fillCheckbox: 'errorPrimary',
|
|
61
|
+
fillCheckboxActive: 'errorPrimary',
|
|
62
|
+
fillCheckboxActiveHover: 'errorPrimary',
|
|
63
|
+
fillCheckboxHover: 'surfaceTertiary',
|
|
64
|
+
fillCheckmark: 'errorBorderPrimary',
|
|
65
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
66
|
+
descTextColor: 'surfaceTextPrimary',
|
|
67
|
+
borderColorCheckbox: 'errorBorderPrimary',
|
|
68
|
+
borderColorCheckboxActive: 'errorBorderPrimary',
|
|
69
|
+
borderColorCheckboxActiveHover: 'errorBorderPrimary',
|
|
70
|
+
borderColorCheckboxHover: 'errorBorderPrimary',
|
|
76
71
|
},
|
|
77
72
|
errorSecondary: {
|
|
78
73
|
fill: 'errorSecondary',
|
|
@@ -105,33 +100,20 @@ var checkboxAppearanceRequire = {
|
|
|
105
100
|
};
|
|
106
101
|
|
|
107
102
|
var checkboxAppearanceSize = {
|
|
108
|
-
sizeXXL: {
|
|
109
|
-
size: 'xxl',
|
|
110
|
-
textSize: 'l',
|
|
111
|
-
},
|
|
112
|
-
sizeXL: {
|
|
113
|
-
size: 'xl',
|
|
114
|
-
textSize: 's',
|
|
115
|
-
},
|
|
116
|
-
sizeL: {
|
|
117
|
-
size: 'l',
|
|
118
|
-
textSize: 's',
|
|
119
|
-
},
|
|
120
103
|
sizeM: {
|
|
104
|
+
size: 'm',
|
|
121
105
|
labelTextSize: 'm',
|
|
122
|
-
descTextSize: '
|
|
123
|
-
},
|
|
124
|
-
sizeS: {
|
|
125
|
-
size: 's',
|
|
126
|
-
textSize: 's',
|
|
106
|
+
descTextSize: 'xs',
|
|
127
107
|
},
|
|
128
108
|
sizeXS: {
|
|
129
109
|
size: 'xs',
|
|
130
|
-
|
|
110
|
+
labelTextSize: 's',
|
|
111
|
+
descTextSize: 'xs',
|
|
131
112
|
},
|
|
132
113
|
sizeXXS: {
|
|
133
114
|
size: 'xxs',
|
|
134
|
-
|
|
115
|
+
labelTextSize: 's',
|
|
116
|
+
descTextSize: 'xs',
|
|
135
117
|
},
|
|
136
118
|
};
|
|
137
119
|
|
|
@@ -180,21 +162,32 @@ var checkboxConfig = {
|
|
|
180
162
|
},
|
|
181
163
|
};
|
|
182
164
|
function Checkbox(props) {
|
|
183
|
-
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, disabled = props.disabled, checked = props.checked, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
165
|
+
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, disabled = props.disabled, checked = props.checked, indeterminate = props.indeterminate, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
184
166
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
185
167
|
var _a;
|
|
186
168
|
return (__assign(__assign({}, resultConfig), (_a = checkboxConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
187
169
|
}, {});
|
|
188
170
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
189
|
-
var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
171
|
+
var fillCheckboxActiveClass = propsGenerator.fillCheckboxActiveClass, fillCheckboxActiveHoverClass = propsGenerator.fillCheckboxActiveHoverClass, fillCheckboxClass = propsGenerator.fillCheckboxClass, fillCheckboxHoverClass = propsGenerator.fillCheckboxHoverClass, fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorCheckboxActiveClass = propsGenerator.borderColorCheckboxActiveClass, borderColorCheckboxActiveHoverClass = propsGenerator.borderColorCheckboxActiveHoverClass, borderColorCheckboxClass = propsGenerator.borderColorCheckboxClass, borderColorCheckboxHoverClass = propsGenerator.borderColorCheckboxHoverClass, checkboxShapeClass = propsGenerator.checkboxShapeClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
172
|
+
return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), sizeClass && "checkbox_size_".concat(sizeClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), isSkeleton && "checkbox_skeleton"), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: "checkbox__item", children: [jsx("input", { id: id, className: "checkbox__input", type: "checkbox", disabled: disabled, checked: checked, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsx("div", { className: clsx('checkbox__state', !checked
|
|
173
|
+
? fillCheckboxClass && "fill_".concat(fillCheckboxClass)
|
|
174
|
+
: fillCheckboxActiveClass &&
|
|
175
|
+
"fill_active_".concat(fillCheckboxActiveClass), !checked
|
|
176
|
+
? fillCheckboxHoverClass && "fill_hover_".concat(fillCheckboxHoverClass)
|
|
177
|
+
: fillCheckboxActiveHoverClass &&
|
|
178
|
+
"fill_active_hover_".concat(fillCheckboxActiveHoverClass), !checked
|
|
179
|
+
? borderColorCheckboxClass &&
|
|
180
|
+
"border-color_".concat(borderColorCheckboxClass)
|
|
181
|
+
: borderColorCheckboxActiveClass &&
|
|
182
|
+
"border-color_active_".concat(borderColorCheckboxActiveClass), !checked
|
|
183
|
+
? borderColorCheckboxHoverClass &&
|
|
184
|
+
"border-color_hover_".concat(borderColorCheckboxHoverClass)
|
|
185
|
+
: borderColorCheckboxActiveHoverClass &&
|
|
186
|
+
"border-color_active_hover_".concat(borderColorCheckboxActiveHoverClass), checkboxShapeClass && "checkbox__state_shape_".concat(checkboxShapeClass)), children: "\u00A0" }), jsx("div", { className: clsx(!indeterminate
|
|
187
|
+
? 'checkbox__state-checkmark'
|
|
188
|
+
: 'checkbox__state-indeterminate', (checked || indeterminate) &&
|
|
189
|
+
fillCheckmarkClass &&
|
|
190
|
+
"border-color_".concat(fillCheckmarkClass)), children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
|
|
198
191
|
}
|
|
199
192
|
|
|
200
193
|
export { Checkbox, checkboxAppearance, checkboxConfig };
|
|
@@ -18,8 +18,9 @@ import 'lodash/maxBy';
|
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
|
|
20
20
|
var checkmarkAppearanceAccent = {
|
|
21
|
-
|
|
21
|
+
accentPrimary: {
|
|
22
22
|
fill: 'accentPrimary',
|
|
23
|
+
fillActive: 'accentPrimary',
|
|
23
24
|
borderColor: 'accentBorderPrimary',
|
|
24
25
|
borderWidth: '2',
|
|
25
26
|
checkmarkFill: 'accentItemPrimary',
|
|
@@ -29,31 +30,56 @@ var checkmarkAppearanceAccent = {
|
|
|
29
30
|
var checkmarkAppearanceDisabled = {
|
|
30
31
|
disabled: {
|
|
31
32
|
fill: 'surfaceDisabled',
|
|
33
|
+
fillActive: 'surfaceDisabled',
|
|
34
|
+
borderActiveColor: 'surfaceBorderDisabled',
|
|
32
35
|
borderColor: 'surfaceBorderDisabled',
|
|
33
36
|
borderWidth: '2',
|
|
34
37
|
checkmarkFill: 'surfaceItemDisabled',
|
|
35
38
|
},
|
|
36
39
|
};
|
|
37
40
|
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
var checkmarkAppearanceSize = {
|
|
42
|
+
sizeXXL: {
|
|
43
|
+
size: 'xxl',
|
|
41
44
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
borderColor: null,
|
|
45
|
+
sizeXL: {
|
|
46
|
+
size: 'xl',
|
|
45
47
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
sizeL: {
|
|
49
|
+
size: 'l',
|
|
50
|
+
},
|
|
51
|
+
sizeM: {
|
|
52
|
+
size: 'm',
|
|
53
|
+
},
|
|
54
|
+
sizeS: {
|
|
55
|
+
size: 's',
|
|
56
|
+
},
|
|
57
|
+
sizeXS: {
|
|
58
|
+
size: 'xs',
|
|
59
|
+
},
|
|
60
|
+
sizeXXS: {
|
|
61
|
+
size: 'xxs',
|
|
48
62
|
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var checkmarkAppearanceStyle = {
|
|
49
66
|
solid: {
|
|
50
|
-
borderColor:
|
|
67
|
+
borderColor: 'none',
|
|
68
|
+
},
|
|
69
|
+
outlined: {
|
|
70
|
+
fill: 'none',
|
|
71
|
+
},
|
|
72
|
+
full: {},
|
|
73
|
+
ghost: {
|
|
74
|
+
fill: 'none',
|
|
75
|
+
borderColor: 'none',
|
|
51
76
|
},
|
|
52
77
|
};
|
|
53
78
|
|
|
54
79
|
var checkmarkAppearanceSurface = {
|
|
55
|
-
|
|
80
|
+
surfacePrimary: {
|
|
56
81
|
fill: 'surfacePrimary',
|
|
82
|
+
fillActive: 'surfacePrimary',
|
|
57
83
|
fillHover: 'surfaceHover',
|
|
58
84
|
borderColor: 'surfaceBorderTertiary',
|
|
59
85
|
borderColorHover: 'surfaceBorderPrimary',
|
|
@@ -62,7 +88,7 @@ var checkmarkAppearanceSurface = {
|
|
|
62
88
|
},
|
|
63
89
|
};
|
|
64
90
|
|
|
65
|
-
var checkmarkAppearance = __assign(__assign(__assign(__assign({}, checkmarkAppearanceAccent), checkmarkAppearanceDisabled), checkmarkAppearanceStyle), checkmarkAppearanceSurface);
|
|
91
|
+
var checkmarkAppearance = __assign(__assign(__assign(__assign(__assign({}, checkmarkAppearanceAccent), checkmarkAppearanceDisabled), checkmarkAppearanceStyle), checkmarkAppearanceSurface), checkmarkAppearanceSize);
|
|
66
92
|
|
|
67
93
|
var checkmarkConfig = {
|
|
68
94
|
appearance: checkmarkAppearance,
|
|
@@ -77,10 +103,21 @@ function Checkmark(props) {
|
|
|
77
103
|
return (__assign(__assign({}, resultConfig), (_a = checkmarkConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
78
104
|
}, {});
|
|
79
105
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
80
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
|
|
106
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
|
|
81
107
|
// @ts-expect-error
|
|
82
108
|
var checkmarkStyles = useStyles(props).styles;
|
|
83
|
-
return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass),
|
|
109
|
+
return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), !isChecked
|
|
110
|
+
? fillClass && "fill_".concat(fillClass)
|
|
111
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isChecked
|
|
112
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
113
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isChecked
|
|
114
|
+
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
115
|
+
: borderColorActiveClass &&
|
|
116
|
+
"border-color_active_".concat(borderColorActiveClass), !isChecked
|
|
117
|
+
? borderColorHoverClass &&
|
|
118
|
+
"border-color_hover_".concat(borderColorHoverClass)
|
|
119
|
+
: borderColorActiveHoverClass &&
|
|
120
|
+
"border-color_active_hover_".concat(borderColorActiveHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsx("div", { className: clsx('checkmark__icon', "svg_path_fill_".concat(checkmarkFillClass)), children: jsx("svg", { width: "32", height: "24", fill: "none", viewBox: "0 0 32 24", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { fill: checkmarkFillClass, d: "M28.0896 0.706312L11.4967 18.1772L3.9104 10.1895C3.01576 9.24775 1.56549 9.24775 0.670845 10.1895C-0.223615 11.1315 -0.223615 12.6585 0.670845 13.6005L9.87695 23.2936C10.3243 23.7644 10.9105 24 11.4967 24C12.083 24 12.6692 23.7644 13.1165 23.2936L31.3292 4.11744C32.2236 3.17547 32.2236 1.64848 31.3292 0.706504C30.4345 -0.235469 28.9841 -0.235469 28.0896 0.706312Z" }) }) })) }));
|
|
84
121
|
}
|
|
85
122
|
|
|
86
123
|
export { Checkmark, checkmarkAppearance, checkmarkConfig };
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_D9aK8Roh.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_frBCZDrO.js';
|
|
21
|
+
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,9 +4,9 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_frBCZDrO.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
9
|
+
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -51,18 +51,18 @@ var choiceAppearanceSize = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
var choiceAppearanceStyle = {
|
|
54
|
+
solid: {
|
|
55
|
+
borderColor: 'none',
|
|
56
|
+
},
|
|
57
|
+
outlined: {
|
|
58
|
+
fill: 'none',
|
|
59
|
+
},
|
|
54
60
|
full: {
|
|
55
61
|
/* border / fill */
|
|
56
62
|
},
|
|
57
63
|
ghost: {
|
|
58
64
|
fill: 'none',
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
outlined: {
|
|
62
|
-
fill: 'none',
|
|
63
|
-
},
|
|
64
|
-
solid: {
|
|
65
|
-
borderWidth: '0',
|
|
65
|
+
borderColor: 'none',
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
|
package/dist/components/Code.js
CHANGED
|
@@ -20,16 +20,11 @@ var codeAppearanceDefault = {
|
|
|
20
20
|
fill: 'surfaceSecondary',
|
|
21
21
|
borderColor: 'surfaceBorderTertiary',
|
|
22
22
|
borderHover: 'surfaceBorderQuaternary',
|
|
23
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
24
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
25
23
|
},
|
|
26
24
|
defaultSecondary: {
|
|
27
25
|
fill: 'surfacePrimary',
|
|
28
26
|
borderColor: 'surfaceBorderTertiary',
|
|
29
27
|
borderHover: 'surfaceBorderQuaternary',
|
|
30
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
31
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
32
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
33
28
|
},
|
|
34
29
|
};
|
|
35
30
|
|
|
@@ -39,28 +34,24 @@ var codeAppearanceDisabled = {
|
|
|
39
34
|
borderColor: 'errorBorderQuaternary',
|
|
40
35
|
borderHover: 'errorBorderQuaternary',
|
|
41
36
|
textColor: 'surfaceTextQuaternary',
|
|
42
|
-
iconBeforeFill: 'errorItemQuaternary',
|
|
43
|
-
iconClearFill: 'errorItemPrimary',
|
|
44
37
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
45
38
|
},
|
|
46
39
|
disabledSecondary: {
|
|
47
40
|
fill: 'surfaceSecondary',
|
|
48
41
|
borderColor: 'surfaceBorderTertiary',
|
|
49
42
|
borderHover: 'surfaceBorderQuaternary',
|
|
50
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
51
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
52
43
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
53
44
|
},
|
|
54
45
|
};
|
|
55
46
|
|
|
56
47
|
var codeAppearanceError = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
errorPrimary: {
|
|
49
|
+
inputBorderColor: 'errorBorderQuaternary',
|
|
50
|
+
inputCaretColor: 'secondaryItemSecondary',
|
|
51
|
+
inputFill: 'errorPrimary',
|
|
52
|
+
inputFillHover: 'errorPrimaryHover',
|
|
53
|
+
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
54
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
64
55
|
},
|
|
65
56
|
};
|
|
66
57
|
|
|
@@ -98,18 +89,18 @@ var codeAppearanceSize = {
|
|
|
98
89
|
};
|
|
99
90
|
|
|
100
91
|
var codeAppearanceStyle = {
|
|
101
|
-
|
|
102
|
-
borderColor: '
|
|
103
|
-
},
|
|
104
|
-
ghost: {
|
|
105
|
-
fill: 'none',
|
|
106
|
-
borderColor: '0',
|
|
92
|
+
solid: {
|
|
93
|
+
borderColor: 'none',
|
|
107
94
|
},
|
|
108
95
|
outlined: {
|
|
109
96
|
fill: 'none',
|
|
110
97
|
},
|
|
111
|
-
|
|
112
|
-
borderColor: '
|
|
98
|
+
full: {
|
|
99
|
+
borderColor: 'none',
|
|
100
|
+
},
|
|
101
|
+
ghost: {
|
|
102
|
+
fill: 'none',
|
|
103
|
+
borderColor: 'none',
|
|
113
104
|
},
|
|
114
105
|
};
|
|
115
106
|
|
|
@@ -133,7 +124,7 @@ var codeConfig = {
|
|
|
133
124
|
},
|
|
134
125
|
};
|
|
135
126
|
function Code(props) {
|
|
136
|
-
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? '0' : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
127
|
+
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? '0' : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
137
128
|
var _d = useState(''), otp = _d[0], setOtp = _d[1];
|
|
138
129
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
139
130
|
var _a;
|
|
@@ -146,7 +137,7 @@ function Code(props) {
|
|
|
146
137
|
return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
|
|
147
138
|
"placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
|
|
148
139
|
"border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass &&
|
|
149
|
-
"border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass)), name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
|
|
140
|
+
"border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
|
|
150
141
|
onBlur && onBlur(event);
|
|
151
142
|
otpInputProps.onBlur(event);
|
|
152
143
|
}, onFocus: function (event) {
|