@itcase/ui 1.8.25 → 1.8.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar_cjs_D84VawE9.js → Avatar_cjs_33OrnLtt.js} +36 -99
- package/dist/{Avatar_es_CUnfNViT.js → Avatar_es_B3LiV8MM.js} +36 -99
- package/dist/{Button_cjs_CYUpbdMO.js → Button_cjs_C05Joa8j.js} +3 -3
- package/dist/{Button_es_Dp6yFZgn.js → Button_es_CO_dwo-N.js} +3 -3
- package/dist/{ChipsGroup_cjs_Ct-NrPmJ.js → ChipsGroup_cjs_Cm_pVx8z.js} +12 -7
- package/dist/{ChipsGroup_es_BNuhlSG6.js → ChipsGroup_es_CLpRB95W.js} +12 -7
- package/dist/{DatePicker_cjs_DamcZFbX.js → DatePicker_cjs_0y_2FcnF.js} +15 -23
- package/dist/{DatePicker_es_Bm_onmmb.js → DatePicker_es_bY1aXemt.js} +15 -23
- package/dist/Divider_cjs_BmCJj3TN.js +99 -0
- package/dist/Divider_es_kY-30pft.js +95 -0
- package/dist/{DropdownItem_cjs_B_7anyaJ.js → DropdownItem_cjs_DPoFy70W.js} +27 -20
- package/dist/{DropdownItem_es_B4EZYdJA.js → DropdownItem_es_CVztMEm0.js} +27 -20
- package/dist/{Label_cjs_ByGAWJcj.js → Label_cjs_BefEcq6i.js} +15 -15
- package/dist/{Label_es_BtwZ3a2V.js → Label_es_Dl_DrMOh.js} +15 -15
- package/dist/{Loader_cjs___VikiqS.js → Loader_cjs_CCrbD8Em.js} +1 -1
- package/dist/{Loader_es_DHKB6tTw.js → Loader_es_B2auu_rc.js} +1 -1
- package/dist/Overlay_cjs_CFOtnzDU.js +42 -0
- package/dist/Overlay_es_DczPjVL9.js +38 -0
- package/dist/{Text_cjs_DPhKj3wf.js → Text_cjs_C9fOm0nd.js} +0 -7
- package/dist/{Text_es_BRb3qqKM.js → Text_es_BfLRfj-5.js} +0 -7
- package/dist/{Tooltip_cjs_CaocDcQ5.js → Tooltip_cjs_pBGCcXLZ.js} +169 -310
- package/dist/{Tooltip_es_D1w1s33u.js → Tooltip_es_frBCZDrO.js} +169 -310
- package/dist/cjs/components/Accordion.js +43 -73
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack/stories/__mock__.js +28 -0
- package/dist/cjs/components/AvatarStack.js +41 -9
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell/stories/__mock__.js +14 -0
- package/dist/cjs/components/Cell.js +84 -42
- package/dist/cjs/components/Checkbox.js +49 -56
- package/dist/cjs/components/Checkmark.js +51 -14
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +10 -10
- package/dist/cjs/components/Code.js +17 -26
- package/dist/cjs/components/CookiesWarning.js +34 -16
- package/dist/cjs/components/DatePeriod.js +46 -50
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +35 -6
- package/dist/cjs/components/Dropdown/stories/__mock__.js +24 -0
- package/dist/cjs/components/Dropdown.js +4 -4
- package/dist/cjs/components/HeroTitle.js +9 -5
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +10 -10
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/Notification/stories/__mock__.js +30 -0
- package/dist/cjs/components/Notification.js +83 -101
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +4 -4
- package/dist/cjs/components/Radio.js +123 -31
- package/dist/cjs/components/Response.js +21 -7
- package/dist/cjs/components/Search.js +60 -98
- package/dist/cjs/components/Segmented.js +6 -6
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +68 -195
- package/dist/cjs/components/Tab.js +11 -11
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +72 -45
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Video/stories/__mocks__.js +10 -0
- package/dist/cjs/components/Video.js +2 -9
- package/dist/cjs/context/Notifications.js +2 -1
- package/dist/components/Accordion.js +44 -73
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack/stories/__mock__.js +26 -0
- package/dist/components/AvatarStack.js +41 -9
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell/stories/__mock__.js +12 -0
- package/dist/components/Cell.js +84 -42
- package/dist/components/Checkbox.js +49 -56
- package/dist/components/Checkmark.js +51 -14
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +10 -10
- package/dist/components/Code.js +17 -26
- package/dist/components/CookiesWarning.js +34 -17
- package/dist/components/DatePeriod.js +46 -49
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +35 -6
- package/dist/components/Dropdown/stories/__mock__.js +22 -0
- package/dist/components/Dropdown.js +4 -4
- package/dist/components/HeroTitle.js +10 -6
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +10 -10
- package/dist/components/Modal.js +4 -4
- package/dist/components/Notification/stories/__mock__.js +28 -0
- package/dist/components/Notification.js +80 -98
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +4 -4
- package/dist/components/Radio.js +124 -31
- package/dist/components/Response.js +21 -7
- package/dist/components/Search.js +60 -98
- package/dist/components/Segmented.js +6 -6
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +68 -195
- package/dist/components/Tab.js +11 -11
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +72 -45
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Video/stories/__mocks__.js +8 -0
- package/dist/components/Video.js +2 -9
- package/dist/context/Notifications.js +2 -1
- package/dist/css/components/Accordion/Accordion.css +39 -14
- package/dist/css/components/Avatar/Avatar.css +44 -16
- package/dist/css/components/AvatarStack/AvatarStack.css +38 -3
- package/dist/css/components/Button/Button.css +1 -0
- package/dist/css/components/Cell/Cell.css +31 -41
- package/dist/css/components/Checkbox/Checkbox.css +63 -38
- package/dist/css/components/Code/Code.css +36 -6
- package/dist/css/components/CookiesWarning/CookiesWarning.css +3 -0
- package/dist/css/components/Divider/Divider.css +24 -0
- package/dist/css/components/Drawer/Drawer.css +11 -0
- package/dist/css/components/Dropdown/Dropdown.css +9 -24
- package/dist/css/components/Flex/Flex.css +4 -2
- package/dist/css/components/Flex/css/__item/flex__item_shape.css +1 -1
- package/dist/css/components/Grid/Grid.css +7 -83
- package/dist/css/components/Grid/css/__item/grid__item_column.css +1 -12
- package/dist/css/components/Group/Group.css +54 -11
- package/dist/css/components/HeroTitle/HeroTitle.css +22 -18
- package/dist/css/components/Link/Link.css +0 -1
- package/dist/css/components/Notification/Notification.css +69 -78
- package/dist/css/components/Notification/css/__item/notification__item.css +22 -0
- package/dist/css/components/Notification/css/__item/notification__item_position_float.css +13 -0
- package/dist/css/components/Notification/css/__item/notification__item_position_toast.css +17 -0
- package/dist/css/components/Notification/css/__item/notification__item_skeleton.css +25 -0
- package/dist/css/components/Notification/css/__item/notification__item_status.css +8 -8
- package/dist/css/components/Overlay/Overlay.css +0 -5
- package/dist/css/components/Radio/Radio.css +6 -63
- package/dist/css/components/Response/Response.css +24 -0
- package/dist/css/components/Search/Search.css +36 -15
- package/dist/css/components/Search/css/search-input/search-input_skeleton.css +25 -0
- package/dist/css/components/Switch/Switch.css +10 -17
- package/dist/css/components/Tab/Tab.css +45 -12
- package/dist/css/components/Text/Text.css +3 -3
- package/dist/css/components/Tile/Tile.css +64 -22
- package/dist/css/components/Title/Title.css +36 -26
- package/dist/css/components/Tooltip/Tooltip.css +95 -42
- package/dist/css/components/Video/Video.css +1 -1
- package/dist/css/styles/blur/blur.css +9 -0
- package/dist/css/styles/border-color/border-color.css +3 -0
- package/dist/css/styles/elevation/elevation.css +1 -1
- package/dist/css/styles/elevation/elevation_hover.css +1 -1
- package/dist/css/styles/opacity/opacity.css +2 -1
- package/dist/stories/AccordionOverview.mdx +12 -0
- package/dist/stories/AccordionPlayground.mdx +10 -0
- package/dist/stories/AvatarOverview.mdx +19 -0
- package/dist/stories/AvatarPlayground.mdx +10 -0
- package/dist/stories/AvatarStackOverview.mdx +13 -0
- package/dist/stories/AvatarStackPlayground.mdx +8 -0
- package/dist/stories/BadgeOverview.mdx +13 -0
- package/dist/stories/BadgePlayground.mdx +8 -0
- package/dist/stories/BreadcrumbsOverview.mdx +14 -0
- package/dist/stories/{Plsyground.mdx → BreadcrumbsPlsyground.mdx} +1 -1
- package/dist/stories/ButtonOverview.mdx +12 -0
- package/dist/stories/ButtonPlayground.mdx +10 -0
- package/dist/stories/CellOverview.mdx +21 -0
- package/dist/stories/CellPlayground.mdx +10 -0
- package/dist/stories/CheckboxOverview.mdx +12 -0
- package/dist/stories/CheckboxPlayground.mdx +10 -0
- package/dist/stories/CheckmarkOverview.mdx +12 -0
- package/dist/stories/CheckmarkPlayground.mdx +10 -0
- package/dist/stories/ChipsOverview.mdx +37 -0
- package/dist/stories/ChipsPlayground.mdx +10 -0
- package/dist/stories/ChoiceOverview.mdx +11 -0
- package/dist/stories/ChoicePlayground.mdx +10 -0
- package/dist/stories/CodeOverview.mdx +11 -0
- package/dist/stories/CodePlayground.mdx +10 -0
- package/dist/stories/CookiesWarningOverview.mdx +13 -0
- package/dist/stories/CookiesWarningPlayground.mdx +11 -0
- package/dist/stories/DadataHintFieldOverview.mdx +11 -0
- package/dist/stories/DatePeriodOverview.mdx +9 -0
- package/dist/stories/DatePeriodPlayground.mdx +10 -0
- package/dist/stories/DatePickerOverview.mdx +12 -0
- package/dist/stories/DatePickerPlayground.mdx +10 -0
- package/dist/stories/DividerOverview.mdx +11 -0
- package/dist/stories/DividerPlayground.mdx +10 -0
- package/dist/stories/DotOverview.mdx +11 -0
- package/dist/stories/DotPlayground.mdx +10 -0
- package/dist/stories/DrawerOverview.mdx +14 -0
- package/dist/stories/DrawerPlayground.mdx +10 -0
- package/dist/stories/DropdownOverview.mdx +11 -0
- package/dist/stories/DropdownPlayground.mdx +10 -0
- package/dist/stories/FlexAlignItems.mdx +73 -0
- package/dist/stories/FlexAlignSelf.mdx +84 -0
- package/dist/stories/FlexDirection.mdx +106 -0
- package/dist/stories/FlexJustifyContent.mdx +87 -0
- package/dist/stories/FlexOverview.mdx +48 -0
- package/dist/stories/FlexPlayground.mdx +10 -0
- package/dist/stories/FlexWrap.mdx +60 -0
- package/dist/stories/GridOverview.mdx +12 -0
- package/dist/stories/GridPlayground.mdx +10 -0
- package/dist/stories/GroupOverview.mdx +22 -0
- package/dist/stories/GroupPlayground.mdx +10 -0
- package/dist/stories/HTMLContentOverview.mdx +11 -0
- package/dist/stories/HTMLContentPlayground.mdx +10 -0
- package/dist/stories/HeroTitleOverview.mdx +36 -0
- package/dist/stories/HeroTitlePlayground.mdx +10 -0
- package/dist/stories/IconOverview.mdx +16 -0
- package/dist/stories/IconPlayground.mdx +10 -0
- package/dist/stories/ImageOverview.mdx +11 -0
- package/dist/stories/ImagePlayground.mdx +10 -0
- package/dist/stories/InputOverview.mdx +11 -0
- package/dist/stories/InputPasswordOverview.mdx +11 -0
- package/dist/stories/InputPasswordPlayground.mdx +10 -0
- package/dist/stories/InputPlayground.mdx +10 -0
- package/dist/stories/LabelOverview.mdx +11 -0
- package/dist/stories/LabelPlayground.mdx +10 -0
- package/dist/stories/LinkOverview.mdx +20 -0
- package/dist/stories/LinkPlayground.mdx +10 -0
- package/dist/stories/ListOverview.mdx +14 -0
- package/dist/stories/ListPlayground.mdx +10 -0
- package/dist/stories/LoaderOverview.mdx +11 -0
- package/dist/stories/LoaderPlayground.mdx +10 -0
- package/dist/stories/LogoOverview.mdx +24 -0
- package/dist/stories/LogoPlayground.mdx +10 -0
- package/dist/stories/MenuItemOverview.mdx +11 -0
- package/dist/stories/MenuItemPlayground.mdx +10 -0
- package/dist/stories/ModalOverview.mdx +15 -0
- package/dist/stories/ModalPlayground.mdx +10 -0
- package/dist/stories/ModalSheetBottomOverview.mdx +9 -0
- package/dist/stories/NotificationOverview.mdx +13 -0
- package/dist/stories/NotificationPlayground.mdx +10 -0
- package/dist/stories/OverlayOverview.mdx +12 -0
- package/dist/stories/OverlayPlayground.mdx +10 -0
- package/dist/stories/Overview.mdx +5 -15
- package/dist/stories/Playground.mdx +4 -4
- package/dist/stories/RadioOverview.mdx +12 -0
- package/dist/stories/RadioPlayground.mdx +10 -0
- package/dist/stories/ResponseOverview.mdx +11 -0
- package/dist/stories/ResponsePlayground.mdx +10 -0
- package/dist/stories/SVGContentOverview.mdx +15 -0
- package/dist/stories/SVGContentPlayground.mdx +10 -0
- package/dist/stories/SearchOverview.mdx +11 -0
- package/dist/stories/SearchPlayground.mdx +11 -0
- package/dist/stories/SegmentedOverview.mdx +12 -0
- package/dist/stories/SegmentedPlayground.mdx +10 -0
- package/dist/stories/SwiperOverview.mdx +28 -0
- package/dist/stories/SwiperPlayground.mdx +10 -0
- package/dist/stories/SwitchOverview.mdx +15 -0
- package/dist/stories/SwitchPlayground.mdx +10 -0
- package/dist/stories/TabOverview.mdx +25 -0
- package/dist/stories/TabPlayground.mdx +10 -0
- package/dist/stories/TextOverview.mdx +40 -0
- package/dist/stories/TextPlayground.mdx +10 -0
- package/dist/stories/TileOverview.mdx +11 -0
- package/dist/stories/TilePlayground.mdx +10 -0
- package/dist/stories/TitleOverview.mdx +12 -0
- package/dist/stories/TitlePlayground.mdx +10 -0
- package/dist/stories/TooltipOverview.mdx +11 -0
- package/dist/stories/TooltipPlayground.mdx +10 -0
- package/dist/stories/VideoOverview.mdx +21 -0
- package/dist/stories/VideoPlayground.mdx +10 -0
- package/dist/types/components/Accordion/Accordion.d.ts +2 -3
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +20 -35
- package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +4 -6
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +6 -5
- package/dist/types/components/Accordion/index.d.ts +2 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -0
- package/dist/types/components/Avatar/appearance/{avatarSurface.d.ts → avatarDefault.d.ts} +6 -5
- package/dist/types/components/Avatar/appearance/avatarSize.d.ts +9 -0
- package/dist/types/components/Avatar/appearance/avatarStyle.d.ts +5 -5
- package/dist/types/components/AvatarStack/AvatarStack.appearance.d.ts +2 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +22 -2
- package/dist/types/components/AvatarStack/appearance/avatarStackSize.d.ts +21 -0
- package/dist/types/components/AvatarStack/stories/__mock__/index.d.ts +12 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +36 -0
- package/dist/types/components/Cell/appearance/cellStyle.d.ts +4 -6
- package/dist/types/components/Cell/appearance/cellSurface.d.ts +19 -5
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +9 -0
- package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +9 -19
- package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +11 -6
- package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +5 -18
- package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +2 -1
- package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +2 -0
- package/dist/types/components/Checkmark/appearance/checkmarkSize.d.ts +24 -0
- package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +7 -9
- package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +2 -1
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +6 -0
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -2
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -6
- package/dist/types/components/Code/Code.interface.d.ts +1 -0
- package/dist/types/components/Code/appearance/codeDefault.d.ts +0 -5
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +0 -4
- package/dist/types/components/Code/appearance/codeError.d.ts +7 -7
- package/dist/types/components/Code/appearance/codeStyle.d.ts +5 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +7 -1
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +2 -1
- package/dist/types/components/CookiesWarning/appearance/cookiesWarningDefault.d.ts +12 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +2 -7
- package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +15 -0
- package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +21 -0
- package/dist/types/components/DatePeriod/index.d.ts +0 -1
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +7 -13
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +4 -4
- package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +3 -9
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -0
- package/dist/types/components/Divider/appearance/dividerAccent.d.ts +0 -15
- package/dist/types/components/Divider/appearance/dividerError.d.ts +1 -6
- package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +1 -3
- package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +1 -3
- package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +1 -6
- package/dist/types/components/Divider/appearance/dividerSurface.d.ts +3 -13
- package/dist/types/components/Divider/appearance/dividerWarning.d.ts +1 -6
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +7 -1
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +6 -1
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +3 -0
- package/dist/types/components/Dropdown/appearance/dropdownStyle.d.ts +4 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +6 -5
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +44 -0
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +3 -12
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconError.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -4
- package/dist/types/components/Icon/appearance/iconSize.d.ts +56 -28
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +5 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +6 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +8 -3
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSurface.d.ts +9 -9
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +5 -5
- package/dist/types/components/Notification/Notification.appearance.d.ts +2 -0
- package/dist/types/components/Notification/Notification.d.ts +4 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +9 -8
- package/dist/types/components/Notification/NotificationWrapper.d.ts +3 -0
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationError.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationSize.d.ts +2 -0
- package/dist/types/components/{Divider/appearance/dividerStyle.d.ts → Notification/appearance/notificationStyle.d.ts} +3 -5
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +17 -0
- package/dist/types/components/Notification/index.d.ts +4 -4
- package/dist/types/components/Notification/stories/__mock__/index.d.ts +7 -0
- package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +11 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +9 -28
- package/dist/types/components/Radio/Radio.appearance.d.ts +93 -3
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +11 -5
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +12 -0
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +2 -2
- package/dist/types/components/Radio/appearance/radioSize.d.ts +3 -12
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +1 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -0
- package/dist/types/components/Search/Search.interface.d.ts +2 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +2 -13
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchError.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchRequire.d.ts +2 -9
- package/dist/types/components/Search/appearance/searchSize.d.ts +24 -6
- package/dist/types/components/Search/appearance/searchStyle.d.ts +3 -1
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -8
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -5
- package/dist/types/components/Switch/appearance/switchDefault.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +5 -14
- package/dist/types/components/Switch/appearance/switchError.d.ts +6 -6
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +5 -14
- package/dist/types/components/Switch/appearance/switchSize.d.ts +6 -47
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +6 -6
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +4 -4
- package/dist/types/components/Text/appearance/textSize.d.ts +0 -7
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +30 -30
- package/dist/types/components/{Overlay/appearance/overlayStyle.d.ts → Tile/appearance/tileStyle.d.ts} +2 -2
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +19 -8
- package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +10 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -13
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +4 -5
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -12
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +6 -47
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +4 -6
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +4 -5
- package/dist/types/components/Video/stories/{mocks/videoSources.d.ts → __mocks__/index.d.ts} +2 -1
- package/dist/types/context/Notifications.d.ts +1 -1
- package/package.json +10 -10
- 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/DatePeriod/datePeriodIntervals.d.ts +0 -3
- 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
|
@@ -8,16 +8,16 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
12
|
-
var Tooltip = require('./
|
|
11
|
+
var Button = require('./Button_cjs_C05Joa8j.js');
|
|
12
|
+
var Tooltip = require('./Tooltip_cjs_pBGCcXLZ.js');
|
|
13
13
|
var Input = require('./Input_cjs_BAVggtkk.js');
|
|
14
|
-
var Label = require('./
|
|
15
|
-
var Text = require('./
|
|
14
|
+
var Label = require('./Label_cjs_BefEcq6i.js');
|
|
15
|
+
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
18
18
|
var datePickerSize = {
|
|
19
|
-
|
|
20
|
-
size: '
|
|
19
|
+
sizeL: {
|
|
20
|
+
size: 'l',
|
|
21
21
|
daySize: 'xs',
|
|
22
22
|
dayTextSize: 'm',
|
|
23
23
|
iconFillSize: 24,
|
|
@@ -29,16 +29,14 @@ var datePickerSize = {
|
|
|
29
29
|
daySize: 'xxl',
|
|
30
30
|
dayTextSize: 'm',
|
|
31
31
|
iconFillSize: 24,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
iconLeft: _default.icon14.ChevronLeft,
|
|
33
|
+
iconRight: _default.icon14.ChevronRight,
|
|
34
34
|
iconSize: 14,
|
|
35
35
|
monthTextSize: 'm',
|
|
36
36
|
yearTextSize: 'm',
|
|
37
|
-
iconLeft: _default.icon14.ChevronLeft,
|
|
38
|
-
iconRight: _default.icon14.ChevronRight,
|
|
39
37
|
},
|
|
40
|
-
|
|
41
|
-
size: '
|
|
38
|
+
sizeS: {
|
|
39
|
+
size: 's',
|
|
42
40
|
daySize: 'xs',
|
|
43
41
|
dayTextSize: 'm',
|
|
44
42
|
iconFillSize: 24,
|
|
@@ -49,28 +47,22 @@ var datePickerSize = {
|
|
|
49
47
|
|
|
50
48
|
var datePickerStyle = {
|
|
51
49
|
solid: {
|
|
52
|
-
datePickerProps: {},
|
|
53
50
|
inputProps: {
|
|
54
|
-
|
|
51
|
+
borderColor: 'none',
|
|
55
52
|
},
|
|
56
53
|
},
|
|
57
54
|
outlined: {
|
|
58
|
-
datePickerProps: {},
|
|
59
55
|
inputProps: {
|
|
60
56
|
fill: 'none',
|
|
61
57
|
},
|
|
62
58
|
},
|
|
63
59
|
ghost: {
|
|
64
|
-
datePickerProps: {},
|
|
65
60
|
inputProps: {
|
|
66
61
|
fill: 'none',
|
|
67
|
-
|
|
62
|
+
borderColor: 'none',
|
|
68
63
|
},
|
|
69
64
|
},
|
|
70
|
-
full: {
|
|
71
|
-
datePickerProps: {},
|
|
72
|
-
inputProps: {},
|
|
73
|
-
},
|
|
65
|
+
full: {},
|
|
74
66
|
};
|
|
75
67
|
|
|
76
68
|
var datePickerAppearanceSurface = {
|
|
@@ -109,7 +101,7 @@ function DatePickerInput(props) {
|
|
|
109
101
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
110
102
|
}, {});
|
|
111
103
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
112
|
-
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
104
|
+
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
113
105
|
var start = React.useMemo(function () {
|
|
114
106
|
if (value) {
|
|
115
107
|
if (typeof value === 'string') {
|
|
@@ -167,7 +159,7 @@ function DatePickerInput(props) {
|
|
|
167
159
|
setEndDate(end);
|
|
168
160
|
}, [end]);
|
|
169
161
|
var datePickerStyles = useStyles.useStyles(props).styles;
|
|
170
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: locale.ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
162
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: locale.ru, popperPlacement: popperPlacement, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
171
163
|
// Important for use custom clear button
|
|
172
164
|
isClearable: false })) }));
|
|
173
165
|
}
|
|
@@ -6,16 +6,16 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
10
|
-
import { I as Icon } from './
|
|
9
|
+
import { B as Button } from './Button_es_CO_dwo-N.js';
|
|
10
|
+
import { I as Icon } from './Tooltip_es_frBCZDrO.js';
|
|
11
11
|
import { I as Input } from './Input_es_CNduH28G.js';
|
|
12
|
-
import { L as Label } from './
|
|
13
|
-
import { T as Text } from './
|
|
12
|
+
import { L as Label } from './Label_es_Dl_DrMOh.js';
|
|
13
|
+
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
14
14
|
import { icon14 } from '@itcase/icons/default';
|
|
15
15
|
|
|
16
16
|
var datePickerSize = {
|
|
17
|
-
|
|
18
|
-
size: '
|
|
17
|
+
sizeL: {
|
|
18
|
+
size: 'l',
|
|
19
19
|
daySize: 'xs',
|
|
20
20
|
dayTextSize: 'm',
|
|
21
21
|
iconFillSize: 24,
|
|
@@ -27,16 +27,14 @@ var datePickerSize = {
|
|
|
27
27
|
daySize: 'xxl',
|
|
28
28
|
dayTextSize: 'm',
|
|
29
29
|
iconFillSize: 24,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
iconLeft: icon14.ChevronLeft,
|
|
31
|
+
iconRight: icon14.ChevronRight,
|
|
32
32
|
iconSize: 14,
|
|
33
33
|
monthTextSize: 'm',
|
|
34
34
|
yearTextSize: 'm',
|
|
35
|
-
iconLeft: icon14.ChevronLeft,
|
|
36
|
-
iconRight: icon14.ChevronRight,
|
|
37
35
|
},
|
|
38
|
-
|
|
39
|
-
size: '
|
|
36
|
+
sizeS: {
|
|
37
|
+
size: 's',
|
|
40
38
|
daySize: 'xs',
|
|
41
39
|
dayTextSize: 'm',
|
|
42
40
|
iconFillSize: 24,
|
|
@@ -47,28 +45,22 @@ var datePickerSize = {
|
|
|
47
45
|
|
|
48
46
|
var datePickerStyle = {
|
|
49
47
|
solid: {
|
|
50
|
-
datePickerProps: {},
|
|
51
48
|
inputProps: {
|
|
52
|
-
|
|
49
|
+
borderColor: 'none',
|
|
53
50
|
},
|
|
54
51
|
},
|
|
55
52
|
outlined: {
|
|
56
|
-
datePickerProps: {},
|
|
57
53
|
inputProps: {
|
|
58
54
|
fill: 'none',
|
|
59
55
|
},
|
|
60
56
|
},
|
|
61
57
|
ghost: {
|
|
62
|
-
datePickerProps: {},
|
|
63
58
|
inputProps: {
|
|
64
59
|
fill: 'none',
|
|
65
|
-
|
|
60
|
+
borderColor: 'none',
|
|
66
61
|
},
|
|
67
62
|
},
|
|
68
|
-
full: {
|
|
69
|
-
datePickerProps: {},
|
|
70
|
-
inputProps: {},
|
|
71
|
-
},
|
|
63
|
+
full: {},
|
|
72
64
|
};
|
|
73
65
|
|
|
74
66
|
var datePickerAppearanceSurface = {
|
|
@@ -107,7 +99,7 @@ function DatePickerInput(props) {
|
|
|
107
99
|
return (__assign(__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
108
100
|
}, {});
|
|
109
101
|
var propsGenerator = useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
110
|
-
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
102
|
+
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
111
103
|
var start = useMemo(function () {
|
|
112
104
|
if (value) {
|
|
113
105
|
if (typeof value === 'string') {
|
|
@@ -165,7 +157,7 @@ function DatePickerInput(props) {
|
|
|
165
157
|
setEndDate(end);
|
|
166
158
|
}, [end]);
|
|
167
159
|
var datePickerStyles = useStyles(props).styles;
|
|
168
|
-
return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
160
|
+
return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: ru, popperPlacement: popperPlacement, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
169
161
|
// Important for use custom clear button
|
|
170
162
|
isClearable: false })) }));
|
|
171
163
|
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
|
+
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
+
|
|
9
|
+
var dividerAppearanceAccent = {
|
|
10
|
+
accentPrimary: {
|
|
11
|
+
fill: 'accentPrimary',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
var dividerAppearanceError = {
|
|
16
|
+
errorPrimary: {
|
|
17
|
+
fill: 'errorPrimary',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var dividerAppearancePrimary = {
|
|
22
|
+
primaryPrimary: {
|
|
23
|
+
fill: 'primaryPrimary',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var dividerAppearanceSecondary = {
|
|
28
|
+
secondaryPrimary: {
|
|
29
|
+
fill: 'secondaryPrimary',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var dividerAppearanceSize = {
|
|
34
|
+
sizeL: {
|
|
35
|
+
size: 'l',
|
|
36
|
+
},
|
|
37
|
+
sizeM: {
|
|
38
|
+
size: 'm',
|
|
39
|
+
},
|
|
40
|
+
sizeS: {
|
|
41
|
+
size: 's',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var dividerAppearanceSuccess = {
|
|
46
|
+
successPrimary: {
|
|
47
|
+
fill: 'successPrimary',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var dividerAppearanceSurface = {
|
|
52
|
+
surfacePrimary: {
|
|
53
|
+
fill: 'surfacePrimary',
|
|
54
|
+
},
|
|
55
|
+
surfaceSecondary: {
|
|
56
|
+
fill: 'surfaceSecondary',
|
|
57
|
+
},
|
|
58
|
+
surfaceTertiary: {
|
|
59
|
+
fill: 'surfaceTertiary',
|
|
60
|
+
},
|
|
61
|
+
surfaceQuaternary: {
|
|
62
|
+
fill: 'surfaceQuaternary',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var dividerAppearanceWarning = {
|
|
67
|
+
warningPrimary: {
|
|
68
|
+
fill: 'warningPrimary',
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var dividerAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, dividerAppearanceSize), dividerAppearanceAccent), dividerAppearanceError), dividerAppearancePrimary), dividerAppearanceSecondary), dividerAppearanceSuccess), dividerAppearanceSurface), dividerAppearanceWarning);
|
|
73
|
+
|
|
74
|
+
var dividerConfig = {
|
|
75
|
+
appearance: dividerAppearance,
|
|
76
|
+
setAppearance: function (appearanceConfig) {
|
|
77
|
+
dividerConfig.appearance = appearanceConfig;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
function Divider(props) {
|
|
81
|
+
var className = props.className, appearance = props.appearance, direction = props.direction, isDisabled = props.isDisabled, isActive = props.isActive, isSkeleton = props.isSkeleton;
|
|
82
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
83
|
+
var _a;
|
|
84
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
85
|
+
}, {});
|
|
86
|
+
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
87
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
88
|
+
// @ts-expect-error
|
|
89
|
+
var hrStyles = useStyles.useStyles(props).styles;
|
|
90
|
+
return (jsxRuntime.jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), direction && "divider_direction_".concat(direction), sizeClass && "divider_size_".concat(sizeClass), !isActive
|
|
91
|
+
? fillClass && "fill_".concat(fillClass)
|
|
92
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
93
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
94
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isSkeleton && "divider_skeleton"), style: hrStyles }));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
exports.Divider = Divider;
|
|
98
|
+
exports.dividerAppearance = dividerAppearance;
|
|
99
|
+
exports.dividerConfig = dividerConfig;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
+
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
+
|
|
7
|
+
var dividerAppearanceAccent = {
|
|
8
|
+
accentPrimary: {
|
|
9
|
+
fill: 'accentPrimary',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
var dividerAppearanceError = {
|
|
14
|
+
errorPrimary: {
|
|
15
|
+
fill: 'errorPrimary',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var dividerAppearancePrimary = {
|
|
20
|
+
primaryPrimary: {
|
|
21
|
+
fill: 'primaryPrimary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var dividerAppearanceSecondary = {
|
|
26
|
+
secondaryPrimary: {
|
|
27
|
+
fill: 'secondaryPrimary',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var dividerAppearanceSize = {
|
|
32
|
+
sizeL: {
|
|
33
|
+
size: 'l',
|
|
34
|
+
},
|
|
35
|
+
sizeM: {
|
|
36
|
+
size: 'm',
|
|
37
|
+
},
|
|
38
|
+
sizeS: {
|
|
39
|
+
size: 's',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var dividerAppearanceSuccess = {
|
|
44
|
+
successPrimary: {
|
|
45
|
+
fill: 'successPrimary',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var dividerAppearanceSurface = {
|
|
50
|
+
surfacePrimary: {
|
|
51
|
+
fill: 'surfacePrimary',
|
|
52
|
+
},
|
|
53
|
+
surfaceSecondary: {
|
|
54
|
+
fill: 'surfaceSecondary',
|
|
55
|
+
},
|
|
56
|
+
surfaceTertiary: {
|
|
57
|
+
fill: 'surfaceTertiary',
|
|
58
|
+
},
|
|
59
|
+
surfaceQuaternary: {
|
|
60
|
+
fill: 'surfaceQuaternary',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var dividerAppearanceWarning = {
|
|
65
|
+
warningPrimary: {
|
|
66
|
+
fill: 'warningPrimary',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var dividerAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, dividerAppearanceSize), dividerAppearanceAccent), dividerAppearanceError), dividerAppearancePrimary), dividerAppearanceSecondary), dividerAppearanceSuccess), dividerAppearanceSurface), dividerAppearanceWarning);
|
|
71
|
+
|
|
72
|
+
var dividerConfig = {
|
|
73
|
+
appearance: dividerAppearance,
|
|
74
|
+
setAppearance: function (appearanceConfig) {
|
|
75
|
+
dividerConfig.appearance = appearanceConfig;
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
function Divider(props) {
|
|
79
|
+
var className = props.className, appearance = props.appearance, direction = props.direction, isDisabled = props.isDisabled, isActive = props.isActive, isSkeleton = props.isSkeleton;
|
|
80
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
81
|
+
var _a;
|
|
82
|
+
return (__assign(__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
83
|
+
}, {});
|
|
84
|
+
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
85
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
86
|
+
// @ts-expect-error
|
|
87
|
+
var hrStyles = useStyles(props).styles;
|
|
88
|
+
return (jsx("hr", { className: clsx(className, 'divider', widthClass && "width_".concat(widthClass), direction && "divider_direction_".concat(direction), sizeClass && "divider_size_".concat(sizeClass), !isActive
|
|
89
|
+
? fillClass && "fill_".concat(fillClass)
|
|
90
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
91
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
92
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isSkeleton && "divider_skeleton"), style: hrStyles }));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { Divider as D, dividerAppearance as a, dividerConfig as d };
|
|
@@ -6,12 +6,12 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
|
-
var Divider = require('./
|
|
10
|
-
var Tooltip = require('./
|
|
11
|
-
var Text = require('./
|
|
9
|
+
var Divider = require('./Divider_cjs_BmCJj3TN.js');
|
|
10
|
+
var Tooltip = require('./Tooltip_cjs_pBGCcXLZ.js');
|
|
11
|
+
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
12
12
|
|
|
13
13
|
function Dropdown(props) {
|
|
14
|
-
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
|
|
14
|
+
var className = props.className, appearance = props.appearance, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, dropdownList = props.dropdownList, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
|
|
15
15
|
var dropdownRef = React.useRef(null);
|
|
16
16
|
// const [isOpen, setIsOpen] = useState(false)
|
|
17
17
|
var _c = React.useState({
|
|
@@ -60,16 +60,21 @@ function Dropdown(props) {
|
|
|
60
60
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
61
61
|
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
62
62
|
var styles = useStyles.useStyles(props).styles;
|
|
63
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsxRuntime.
|
|
63
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxRuntime.jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
64
64
|
// Add "onAnimationEnd" only for wrapper for ignore dropdown button
|
|
65
|
-
onAnimationEnd: onAnimationEnd, children: children })), after] }));
|
|
65
|
+
onAnimationEnd: onAnimationEnd, children: [dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.map(function (item) { return (jsxRuntime.jsx(DropdownItem, { appearance: appearance, label: item.label, badgeValue: item.badgeValue, iconAfter: item.iconAfter, iconBefore: item.iconBefore, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })), after] }));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
var dropdownAppearanceAccent = {
|
|
69
69
|
accentPrimary: {
|
|
70
70
|
fill: 'accentPrimary',
|
|
71
71
|
fillHover: 'accentPrimaryHover',
|
|
72
|
-
|
|
72
|
+
labelTextColor: 'accentTextPrimary',
|
|
73
|
+
labelTextColorActive: 'accentTextPrimary',
|
|
74
|
+
labelTextColorActiveHover: 'accentTextPrimary',
|
|
75
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
76
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
77
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
73
78
|
},
|
|
74
79
|
accentSecondary: {
|
|
75
80
|
fill: 'accentPrimary',
|
|
@@ -84,6 +89,7 @@ var dropdownAppearanceSize = {
|
|
|
84
89
|
sizeL: {
|
|
85
90
|
size: 'l',
|
|
86
91
|
labelTextSize: 'l',
|
|
92
|
+
dividerSize: 's',
|
|
87
93
|
iconAfterFillSize: '24',
|
|
88
94
|
iconAfterSize: '24',
|
|
89
95
|
iconBeforeFillSize: '24',
|
|
@@ -92,6 +98,7 @@ var dropdownAppearanceSize = {
|
|
|
92
98
|
sizeS: {
|
|
93
99
|
size: 's',
|
|
94
100
|
labelTextSize: 's',
|
|
101
|
+
dividerSize: 's',
|
|
95
102
|
iconAfterFillSize: '16',
|
|
96
103
|
iconAfterSize: '16',
|
|
97
104
|
iconBeforeFillSize: '16',
|
|
@@ -100,6 +107,7 @@ var dropdownAppearanceSize = {
|
|
|
100
107
|
sizeXS: {
|
|
101
108
|
size: 'xs',
|
|
102
109
|
labelTextSize: 'xs',
|
|
110
|
+
dividerSize: 's',
|
|
103
111
|
iconAfterFillSize: '12',
|
|
104
112
|
iconAfterSize: '12',
|
|
105
113
|
iconBeforeFillSize: '12',
|
|
@@ -108,18 +116,16 @@ var dropdownAppearanceSize = {
|
|
|
108
116
|
};
|
|
109
117
|
|
|
110
118
|
var dropdownAppearanceStyle = {
|
|
111
|
-
|
|
112
|
-
borderColor: '
|
|
113
|
-
},
|
|
114
|
-
ghost: {
|
|
115
|
-
fill: 'none',
|
|
116
|
-
borderColor: '0',
|
|
119
|
+
solid: {
|
|
120
|
+
borderColor: 'none',
|
|
117
121
|
},
|
|
118
122
|
outlined: {
|
|
119
123
|
fill: 'none',
|
|
120
124
|
},
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
full: {},
|
|
126
|
+
ghost: {
|
|
127
|
+
fill: 'none',
|
|
128
|
+
borderColor: 'none',
|
|
123
129
|
},
|
|
124
130
|
};
|
|
125
131
|
|
|
@@ -131,14 +137,10 @@ var dropdownAppearanceSurface = {
|
|
|
131
137
|
labelTextColorActive: 'surfaceTextPrimary',
|
|
132
138
|
labelTextColorActiveHover: 'surfaceTextPrimary',
|
|
133
139
|
labelTextColorHover: 'surfaceTextPrimary',
|
|
140
|
+
dividerFill: 'surfaceTertiary',
|
|
134
141
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
135
142
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
136
143
|
},
|
|
137
|
-
surfaceQuaternary: {
|
|
138
|
-
fill: 'surfaceQuaternary',
|
|
139
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
140
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
141
|
-
},
|
|
142
144
|
surfaceSecondary: {
|
|
143
145
|
fill: 'surfaceSecondary',
|
|
144
146
|
fillHover: 'surfaceSecondaryHover',
|
|
@@ -151,6 +153,11 @@ var dropdownAppearanceSurface = {
|
|
|
151
153
|
fillHover: 'surfaceTertiaryHover',
|
|
152
154
|
labelTextColor: 'surfaceTextPrimary',
|
|
153
155
|
},
|
|
156
|
+
surfaceQuaternary: {
|
|
157
|
+
fill: 'surfaceQuaternary',
|
|
158
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
159
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
160
|
+
},
|
|
154
161
|
};
|
|
155
162
|
|
|
156
163
|
var dropdownItemAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, dropdownAppearanceSurface), dropdownAppearanceStyle), dropdownAppearanceAccent), dropdownAppearanceSize);
|
|
@@ -4,12 +4,12 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { D as Divider } from './
|
|
8
|
-
import { I as Icon } from './
|
|
9
|
-
import { T as Text } from './
|
|
7
|
+
import { D as Divider } from './Divider_es_kY-30pft.js';
|
|
8
|
+
import { I as Icon } from './Tooltip_es_frBCZDrO.js';
|
|
9
|
+
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
10
10
|
|
|
11
11
|
function Dropdown(props) {
|
|
12
|
-
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
|
|
12
|
+
var className = props.className, appearance = props.appearance, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, dropdownList = props.dropdownList, before = props.before, after = props.after, isOpen = props.isOpen, setIsOpen = props.setIsOpen, children = props.children;
|
|
13
13
|
var dropdownRef = useRef(null);
|
|
14
14
|
// const [isOpen, setIsOpen] = useState(false)
|
|
15
15
|
var _c = useState({
|
|
@@ -58,16 +58,21 @@ function Dropdown(props) {
|
|
|
58
58
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
59
59
|
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
60
60
|
var styles = useStyles(props).styles;
|
|
61
|
-
return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (
|
|
61
|
+
return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
62
62
|
// Add "onAnimationEnd" only for wrapper for ignore dropdown button
|
|
63
|
-
onAnimationEnd: onAnimationEnd, children: children })), after] }));
|
|
63
|
+
onAnimationEnd: onAnimationEnd, children: [dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.map(function (item) { return (jsx(DropdownItem, { appearance: appearance, label: item.label, badgeValue: item.badgeValue, iconAfter: item.iconAfter, iconBefore: item.iconBefore, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })), after] }));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
var dropdownAppearanceAccent = {
|
|
67
67
|
accentPrimary: {
|
|
68
68
|
fill: 'accentPrimary',
|
|
69
69
|
fillHover: 'accentPrimaryHover',
|
|
70
|
-
|
|
70
|
+
labelTextColor: 'accentTextPrimary',
|
|
71
|
+
labelTextColorActive: 'accentTextPrimary',
|
|
72
|
+
labelTextColorActiveHover: 'accentTextPrimary',
|
|
73
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
74
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
75
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
71
76
|
},
|
|
72
77
|
accentSecondary: {
|
|
73
78
|
fill: 'accentPrimary',
|
|
@@ -82,6 +87,7 @@ var dropdownAppearanceSize = {
|
|
|
82
87
|
sizeL: {
|
|
83
88
|
size: 'l',
|
|
84
89
|
labelTextSize: 'l',
|
|
90
|
+
dividerSize: 's',
|
|
85
91
|
iconAfterFillSize: '24',
|
|
86
92
|
iconAfterSize: '24',
|
|
87
93
|
iconBeforeFillSize: '24',
|
|
@@ -90,6 +96,7 @@ var dropdownAppearanceSize = {
|
|
|
90
96
|
sizeS: {
|
|
91
97
|
size: 's',
|
|
92
98
|
labelTextSize: 's',
|
|
99
|
+
dividerSize: 's',
|
|
93
100
|
iconAfterFillSize: '16',
|
|
94
101
|
iconAfterSize: '16',
|
|
95
102
|
iconBeforeFillSize: '16',
|
|
@@ -98,6 +105,7 @@ var dropdownAppearanceSize = {
|
|
|
98
105
|
sizeXS: {
|
|
99
106
|
size: 'xs',
|
|
100
107
|
labelTextSize: 'xs',
|
|
108
|
+
dividerSize: 's',
|
|
101
109
|
iconAfterFillSize: '12',
|
|
102
110
|
iconAfterSize: '12',
|
|
103
111
|
iconBeforeFillSize: '12',
|
|
@@ -106,18 +114,16 @@ var dropdownAppearanceSize = {
|
|
|
106
114
|
};
|
|
107
115
|
|
|
108
116
|
var dropdownAppearanceStyle = {
|
|
109
|
-
|
|
110
|
-
borderColor: '
|
|
111
|
-
},
|
|
112
|
-
ghost: {
|
|
113
|
-
fill: 'none',
|
|
114
|
-
borderColor: '0',
|
|
117
|
+
solid: {
|
|
118
|
+
borderColor: 'none',
|
|
115
119
|
},
|
|
116
120
|
outlined: {
|
|
117
121
|
fill: 'none',
|
|
118
122
|
},
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
full: {},
|
|
124
|
+
ghost: {
|
|
125
|
+
fill: 'none',
|
|
126
|
+
borderColor: 'none',
|
|
121
127
|
},
|
|
122
128
|
};
|
|
123
129
|
|
|
@@ -129,14 +135,10 @@ var dropdownAppearanceSurface = {
|
|
|
129
135
|
labelTextColorActive: 'surfaceTextPrimary',
|
|
130
136
|
labelTextColorActiveHover: 'surfaceTextPrimary',
|
|
131
137
|
labelTextColorHover: 'surfaceTextPrimary',
|
|
138
|
+
dividerFill: 'surfaceTertiary',
|
|
132
139
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
133
140
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
134
141
|
},
|
|
135
|
-
surfaceQuaternary: {
|
|
136
|
-
fill: 'surfaceQuaternary',
|
|
137
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
138
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
139
|
-
},
|
|
140
142
|
surfaceSecondary: {
|
|
141
143
|
fill: 'surfaceSecondary',
|
|
142
144
|
fillHover: 'surfaceSecondaryHover',
|
|
@@ -149,6 +151,11 @@ var dropdownAppearanceSurface = {
|
|
|
149
151
|
fillHover: 'surfaceTertiaryHover',
|
|
150
152
|
labelTextColor: 'surfaceTextPrimary',
|
|
151
153
|
},
|
|
154
|
+
surfaceQuaternary: {
|
|
155
|
+
fill: 'surfaceQuaternary',
|
|
156
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
157
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
158
|
+
},
|
|
152
159
|
};
|
|
153
160
|
|
|
154
161
|
var dropdownItemAppearance = __assign(__assign(__assign(__assign({}, dropdownAppearanceSurface), dropdownAppearanceStyle), dropdownAppearanceAccent), dropdownAppearanceSize);
|