@itcase/ui 1.3.12 → 1.3.13
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/{Badge-DMRagi5O.js → Badge-Bcj5H3vs.js} +2 -2
- package/dist/{Badge-B9tt2YPa.js → Badge-DxHwStfq.js} +2 -2
- package/dist/{Button-DHQeSUSA.js → Button-BIVXOiP4.js} +6 -6
- package/dist/{Button-BVQet4JC.js → Button-C4oPIe_E.js} +6 -6
- package/dist/{DropdownItem-DxGxdjUr.js → DropdownItem-BGsCHiqr.js} +4 -4
- package/dist/{DropdownItem-DXz1l415.js → DropdownItem-CRvS3KEp.js} +4 -4
- package/dist/{Group-B9L2NTgM.js → Group-CIIZoSm5.js} +1 -1
- package/dist/{Group-D6CXN4hS.js → Group-pMTTxQH4.js} +1 -1
- package/dist/{Icon-3VtRLW-J.js → Icon-DJSIqu5Z.js} +2 -2
- package/dist/{Icon-C9FlOMr9.js → Icon-Dz1q9WC2.js} +2 -2
- package/dist/{Input-BrV5_NoV.js → Input-Ck5IbuH6.js} +1 -1
- package/dist/{Input-ffioh1sj.js → Input-zkYoZhQk.js} +1 -1
- package/dist/{Label-DQyB2ThM.js → Label-9O3dQlUa.js} +6 -6
- package/dist/{Label-HKRKV3mn.js → Label-GEBQXoVJ.js} +6 -6
- package/dist/{Link-C2dn5VUy.js → Link-CH-W1dww.js} +1 -1
- package/dist/{Link-CPzqprR1.js → Link-U60OVrcS.js} +1 -1
- package/dist/{Loader-K_DJmah6.js → Loader-Cm98w6lJ.js} +2 -2
- package/dist/{Loader-Dn036JwE.js → Loader-D_53c71f.js} +2 -2
- package/dist/{MenuItem-Cw2Lry6S.js → MenuItem-C422Veuw.js} +3 -3
- package/dist/{MenuItem-DEzP_HLq.js → MenuItem-GoaeJJ04.js} +3 -3
- package/dist/{Scrollbar-CKbA0jQU.js → Scrollbar-CL9V8d1X.js} +1 -1
- package/dist/{Scrollbar-Bo7z7ELm.js → Scrollbar-DkJr3S-w.js} +1 -1
- package/dist/{Text-Beslj4Ns.js → Text-COHpLTYr.js} +1 -1
- package/dist/{Text-JayJa3hj.js → Text-D9sEeRE4.js} +1 -1
- package/dist/{Title-DBaHcpvB.js → Title-BduD-TXE.js} +1 -1
- package/dist/{Title-CHgrIarR.js → Title-Cl95USIn.js} +1 -1
- package/dist/{Tooltip-1Jbub0K6.js → Tooltip-BsbXMzGd.js} +4 -4
- package/dist/{Tooltip-CNua1g76.js → Tooltip-CyZCVyba.js} +4 -4
- package/dist/cjs/components/Accordion.js +7 -7
- package/dist/cjs/components/Avatar.js +9 -9
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +6 -6
- package/dist/cjs/components/Button.js +7 -7
- package/dist/cjs/components/Card.js +2 -2
- package/dist/cjs/components/Cell.js +7 -7
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +10 -10
- package/dist/cjs/components/Code.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +10 -10
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +16 -16
- package/dist/cjs/components/Drawer.js +5 -12
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Flex.js +2 -2
- package/dist/cjs/components/Grid.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +5 -5
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword.js +5 -5
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/Menu.js +4 -4
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +5 -5
- package/dist/cjs/components/Notification.js +4 -4
- package/dist/cjs/components/Pagination.js +28 -28
- package/dist/cjs/components/Panel.js +2 -2
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +17 -17
- package/dist/cjs/components/ScrollToView.js +1 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -9
- package/dist/cjs/components/Segmented.js +13 -13
- package/dist/cjs/components/Select.js +11 -11
- package/dist/cjs/components/SiteMenu.js +6 -6
- package/dist/cjs/components/Swiper.js +8 -8
- package/dist/cjs/components/Tab.js +9 -9
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +4 -4
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Wrapper.js +1 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/cjs/context/UIContext.js +1 -1
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +4 -4
- package/dist/components/Accordion.js +7 -7
- package/dist/components/Avatar.js +9 -9
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +6 -6
- package/dist/components/Button.js +7 -7
- package/dist/components/Card.js +2 -2
- package/dist/components/Cell.js +7 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +10 -10
- package/dist/components/Code.js +1 -1
- package/dist/components/CookiesWarning.js +10 -10
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +16 -16
- package/dist/components/Drawer.js +5 -12
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Flex.js +2 -2
- package/dist/components/Grid.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +5 -5
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword.js +5 -5
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/Menu.js +4 -4
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +5 -5
- package/dist/components/Notification.js +4 -4
- package/dist/components/Pagination.js +28 -28
- package/dist/components/Panel.js +2 -2
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +17 -17
- package/dist/components/ScrollToView.js +1 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +9 -9
- package/dist/components/Segmented.js +13 -13
- package/dist/components/Select.js +11 -11
- package/dist/components/SiteMenu.js +6 -6
- package/dist/components/Swiper.js +8 -8
- package/dist/components/Tab.js +9 -9
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Wrapper.js +1 -1
- package/dist/context/Notifications.js +6 -6
- package/dist/context/UIContext.js +1 -1
- package/dist/css/components/Pagination/Pagination.css +3 -2
- package/dist/css/components/Pagination/css/__item/pagination__item.css +3 -2
- package/dist/css/components/Text/Text.css +2 -1
- package/dist/hooks/useDeviceTargetClassGenerator.js +4 -4
- package/dist/stories/Accordion.mdx +1 -1
- package/dist/stories/AccordionItem.mdx +1 -1
- package/dist/stories/AlignContent.mdx +1 -1
- package/dist/stories/AlignItems.mdx +1 -1
- package/dist/stories/AlignSelf.mdx +1 -1
- package/dist/stories/Appearance.mdx +1 -1
- package/dist/stories/Avatar.mdx +1 -1
- package/dist/stories/Badge.mdx +2 -2
- package/dist/stories/Button.mdx +1 -2
- package/dist/stories/Cell.mdx +1 -1
- package/dist/stories/Checkbox.mdx +1 -2
- package/dist/stories/Chips.mdx +1 -1
- package/dist/stories/Choice.mdx +1 -1
- package/dist/stories/Code.mdx +1 -1
- package/dist/stories/Columns.mdx +1 -1
- package/dist/stories/DatePicker.mdx +1 -1
- package/dist/stories/Dev.mdx +1 -1
- package/dist/stories/DevMode.mdx +3 -2
- package/dist/stories/Direction.mdx +1 -1
- package/dist/stories/Divider.mdx +1 -1
- package/dist/stories/Dot.mdx +1 -1
- package/dist/stories/Drawer.mdx +1 -1
- package/dist/stories/Dropdown.mdx +2 -2
- package/dist/stories/DropdownItem.mdx +1 -1
- package/dist/stories/Group.mdx +1 -1
- package/dist/stories/Grow.mdx +1 -1
- package/dist/stories/Icon.mdx +1 -1
- package/dist/stories/Image.mdx +1 -1
- package/dist/stories/Input.mdx +1 -1
- package/dist/stories/InputPassword.mdx +1 -1
- package/dist/stories/JustifyContent.mdx +1 -1
- package/dist/stories/Label.mdx +1 -1
- package/dist/stories/Loader.mdx +1 -1
- package/dist/stories/Logo.mdx +1 -1
- package/dist/stories/MenuItem.mdx +1 -1
- package/dist/stories/Message.mdx +4 -1
- package/dist/stories/Notification.mdx +1 -1
- package/dist/stories/Order.mdx +1 -1
- package/dist/stories/Overview.mdx +1 -1
- package/dist/stories/Pagination.mdx +1 -1
- package/dist/stories/Playground.mdx +1 -1
- package/dist/stories/Radio.mdx +1 -2
- package/dist/stories/Response.mdx +6 -1
- package/dist/stories/SearchInput.mdx +1 -1
- package/dist/stories/Segmented.mdx +1 -1
- package/dist/stories/Size.mdx +1 -1
- package/dist/stories/Skeleton.mdx +1 -1
- package/dist/stories/State.mdx +1 -1
- package/dist/stories/Switch.mdx +1 -1
- package/dist/stories/Text.mdx +1 -1
- package/dist/stories/Textarea.mdx +1 -1
- package/dist/stories/Tile.mdx +1 -1
- package/dist/stories/Title.mdx +1 -1
- package/dist/stories/Tooltip.mdx +1 -1
- package/dist/stories/WithTooltip.mdx +1 -1
- package/dist/stories/Wrap.mdx +1 -1
- package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.interface.d.ts +5 -5
- package/dist/types/components/Badge/Badge.interface.d.ts +4 -4
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +11 -11
- package/dist/types/components/Button/Button.interface.d.ts +10 -10
- package/dist/types/components/Button/stories/args.d.ts +200 -0
- package/dist/types/components/Caption/Caption.interface.d.ts +5 -5
- package/dist/types/components/Card/Card.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.interface.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +2 -2
- package/dist/types/components/Chips/Chips.interface.d.ts +6 -6
- package/dist/types/components/Chips/stories/args.d.ts +45 -0
- package/dist/types/components/Choice/Choice.interface.d.ts +6 -6
- package/dist/types/components/Code/Code.interface.d.ts +3 -3
- package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +1 -1
- package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +0 -1
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +13 -13
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -2
- package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +5 -5
- package/dist/types/components/Flex/Flex.interface.d.ts +70 -71
- package/dist/types/components/Flex/stories/args.d.ts +80 -0
- package/dist/types/components/Grid/Grid.interface.d.ts +28 -28
- package/dist/types/components/Grid/stories/args.d.ts +90 -0
- package/dist/types/components/Group/Group.interface.d.ts +7 -7
- package/dist/types/components/Group/stories/args.d.ts +78 -0
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +5 -5
- package/dist/types/components/Icon/Icon.interface.d.ts +15 -15
- package/dist/types/components/Image/Image.interface.d.ts +3 -3
- package/dist/types/components/Input/Input.interface.d.ts +3 -3
- package/dist/types/components/InputMask/Input.interface.d.ts +3 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -4
- package/dist/types/components/Label/Label.interface.d.ts +6 -6
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/List/List.interface.d.ts +2 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/Logo/Logo.interface.d.ts +4 -4
- package/dist/types/components/Menu/Menu.interface.d.ts +2 -2
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +3 -3
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +4 -4
- package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +5 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +21 -21
- package/dist/types/components/Radio/Radio.interface.d.ts +4 -4
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +5 -5
- package/dist/types/components/Response/stories/args.d.ts +174 -0
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +3 -3
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +3 -3
- package/dist/types/components/Search/Search.interface.d.ts +7 -7
- package/dist/types/components/Segmented/Segmented.interface.d.ts +3 -3
- package/dist/types/components/Select/Select.interface.d.ts +5 -5
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +3 -3
- package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
- package/dist/types/components/Tab/Tab.interface.d.ts +4 -4
- package/dist/types/components/Tab/stories/args.d.ts +171 -0
- package/dist/types/components/Text/Text.interface.d.ts +3 -3
- package/dist/types/components/Textarea/Textarea.interface.d.ts +4 -4
- package/dist/types/components/Tile/Tile.interface.d.ts +5 -5
- package/dist/types/components/Title/Title.interface.d.ts +8 -8
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +6 -6
- package/dist/types/components/Wrapper/Wrapper.interface.d.ts +5 -5
- package/dist/types/hooks/styleAttributes.interface.d.ts +2 -2
- package/dist/types/types/componentProps/align.d.ts +3 -1
- package/dist/types/types/componentProps/alignDirection.d.ts +3 -1
- package/dist/types/types/componentProps/alignment.d.ts +3 -1
- package/dist/types/types/componentProps/borderColor.d.ts +3 -1
- package/dist/types/types/componentProps/borderColorHover.d.ts +3 -1
- package/dist/types/types/componentProps/borderType.d.ts +3 -1
- package/dist/types/types/componentProps/borderWidth.d.ts +3 -1
- package/dist/types/types/componentProps/captionPosition.d.ts +3 -1
- package/dist/types/types/componentProps/direction.d.ts +3 -1
- package/dist/types/types/componentProps/elevation.d.ts +3 -1
- package/dist/types/types/componentProps/emojiSize.d.ts +3 -1
- package/dist/types/types/componentProps/fill.d.ts +3 -1
- package/dist/types/types/componentProps/fillGradient.d.ts +3 -1
- package/dist/types/types/componentProps/fillHover.d.ts +3 -1
- package/dist/types/types/componentProps/fillType.d.ts +3 -1
- package/dist/types/types/componentProps/flexAlign.d.ts +3 -1
- package/dist/types/types/componentProps/flexGrow.d.ts +3 -1
- package/dist/types/types/componentProps/flexJustifyContent.d.ts +3 -1
- package/dist/types/types/componentProps/flexWrap.d.ts +3 -1
- package/dist/types/types/componentProps/gridAlign.d.ts +3 -1
- package/dist/types/types/componentProps/gridAlignSelf.d.ts +3 -1
- package/dist/types/types/componentProps/gridJustifyItems.d.ts +3 -1
- package/dist/types/types/componentProps/gridJustifySelf.d.ts +3 -1
- package/dist/types/types/componentProps/height.d.ts +3 -1
- package/dist/types/types/componentProps/horizontalContentAlign.d.ts +3 -1
- package/dist/types/types/componentProps/horizontalResizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/iconFillSize.d.ts +3 -1
- package/dist/types/types/componentProps/iconSize.d.ts +3 -1
- package/dist/types/types/componentProps/itemColor.d.ts +3 -1
- package/dist/types/types/componentProps/justifyContent.d.ts +3 -1
- package/dist/types/types/componentProps/overflow.d.ts +3 -1
- package/dist/types/types/componentProps/position.d.ts +3 -1
- package/dist/types/types/componentProps/resizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/shape.d.ts +3 -1
- package/dist/types/types/componentProps/size.d.ts +3 -1
- package/dist/types/types/componentProps/sizeOption.d.ts +3 -0
- package/dist/types/types/componentProps/sizePX.d.ts +3 -1
- package/dist/types/types/componentProps/stacking.d.ts +3 -1
- package/dist/types/types/componentProps/state.d.ts +3 -1
- package/dist/types/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/types/types/componentProps/svgFill.d.ts +3 -1
- package/dist/types/types/componentProps/textAlign.d.ts +3 -1
- package/dist/types/types/componentProps/textColor.d.ts +3 -1
- package/dist/types/types/componentProps/textColorActive.d.ts +3 -2
- package/dist/types/types/componentProps/textColorHover.d.ts +3 -1
- package/dist/types/types/componentProps/textGradient.d.ts +3 -1
- package/dist/types/types/componentProps/textSize.d.ts +3 -1
- package/dist/types/types/componentProps/textStyle.d.ts +3 -1
- package/dist/types/types/componentProps/textTag.d.ts +3 -1
- package/dist/types/types/componentProps/textWeight.d.ts +3 -1
- package/dist/types/types/componentProps/textWrap.d.ts +3 -1
- package/dist/types/types/componentProps/titleSize.d.ts +3 -1
- package/dist/types/types/componentProps/type.d.ts +3 -1
- package/dist/types/types/componentProps/underline.d.ts +3 -1
- package/dist/types/types/componentProps/verticalContentAlign.d.ts +3 -1
- package/dist/types/types/componentProps/verticalResizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/width.d.ts +3 -1
- package/dist/types/types/componentProps/wrap.d.ts +3 -1
- package/dist/types/types/index.d.ts +57 -57
- package/package.json +1 -1
- package/dist/cjs/constants/componentProps/align.js +0 -7
- package/dist/cjs/constants/componentProps/alignDirection.js +0 -7
- package/dist/cjs/constants/componentProps/alignment.js +0 -7
- package/dist/cjs/constants/componentProps/borderColor.js +0 -7
- package/dist/cjs/constants/componentProps/borderColorHover.js +0 -7
- package/dist/cjs/constants/componentProps/borderType.js +0 -7
- package/dist/cjs/constants/componentProps/borderWidth.js +0 -9
- package/dist/cjs/constants/componentProps/captionPosition.js +0 -7
- package/dist/cjs/constants/componentProps/direction.js +0 -7
- package/dist/cjs/constants/componentProps/emojiSize.js +0 -9
- package/dist/cjs/constants/componentProps/fill.js +0 -7
- package/dist/cjs/constants/componentProps/fillGradient.js +0 -7
- package/dist/cjs/constants/componentProps/fillHover.js +0 -7
- package/dist/cjs/constants/componentProps/fillType.js +0 -7
- package/dist/cjs/constants/componentProps/flexAlign.js +0 -7
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +0 -7
- package/dist/cjs/constants/componentProps/flexWrap.js +0 -7
- package/dist/cjs/constants/componentProps/gridAlign.js +0 -7
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +0 -7
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +0 -7
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +0 -7
- package/dist/cjs/constants/componentProps/height.js +0 -7
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +0 -7
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/iconFillSize.js +0 -9
- package/dist/cjs/constants/componentProps/iconSize.js +0 -9
- package/dist/cjs/constants/componentProps/itemColor.js +0 -7
- package/dist/cjs/constants/componentProps/position.js +0 -7
- package/dist/cjs/constants/componentProps/resizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/shape.js +0 -7
- package/dist/cjs/constants/componentProps/size.js +0 -7
- package/dist/cjs/constants/componentProps/sizeInterface.js +0 -7
- package/dist/cjs/constants/componentProps/sizePX.js +0 -9
- package/dist/cjs/constants/componentProps/stacking.js +0 -7
- package/dist/cjs/constants/componentProps/state.js +0 -7
- package/dist/cjs/constants/componentProps/textAlign.js +0 -7
- package/dist/cjs/constants/componentProps/textColor.js +0 -7
- package/dist/cjs/constants/componentProps/textColorActive.js +0 -7
- package/dist/cjs/constants/componentProps/textColorHover.js +0 -7
- package/dist/cjs/constants/componentProps/textGradient.js +0 -7
- package/dist/cjs/constants/componentProps/textSize.js +0 -7
- package/dist/cjs/constants/componentProps/textStyle.js +0 -7
- package/dist/cjs/constants/componentProps/textTag.js +0 -7
- package/dist/cjs/constants/componentProps/textWeight.js +0 -9
- package/dist/cjs/constants/componentProps/textWrap.js +0 -7
- package/dist/cjs/constants/componentProps/titleSize.js +0 -7
- package/dist/cjs/constants/componentProps/type.js +0 -7
- package/dist/cjs/constants/componentProps/underline.js +0 -7
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +0 -7
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/width.js +0 -7
- package/dist/cjs/constants/componentProps/wrap.js +0 -7
- package/dist/cjs/constants.js +0 -109
- package/dist/constants/componentProps/align.js +0 -3
- package/dist/constants/componentProps/alignDirection.js +0 -3
- package/dist/constants/componentProps/alignment.js +0 -3
- package/dist/constants/componentProps/borderColor.js +0 -3
- package/dist/constants/componentProps/borderColorHover.js +0 -3
- package/dist/constants/componentProps/borderType.js +0 -3
- package/dist/constants/componentProps/borderWidth.js +0 -5
- package/dist/constants/componentProps/captionPosition.js +0 -3
- package/dist/constants/componentProps/direction.js +0 -3
- package/dist/constants/componentProps/emojiSize.js +0 -5
- package/dist/constants/componentProps/fill.js +0 -3
- package/dist/constants/componentProps/fillGradient.js +0 -3
- package/dist/constants/componentProps/fillHover.js +0 -3
- package/dist/constants/componentProps/fillType.js +0 -3
- package/dist/constants/componentProps/flexAlign.js +0 -3
- package/dist/constants/componentProps/flexJustifyContent.js +0 -3
- package/dist/constants/componentProps/flexWrap.js +0 -3
- package/dist/constants/componentProps/gridAlign.js +0 -3
- package/dist/constants/componentProps/gridAlignSelf.js +0 -3
- package/dist/constants/componentProps/gridJustifyItems.js +0 -3
- package/dist/constants/componentProps/gridJustifySelf.js +0 -3
- package/dist/constants/componentProps/height.js +0 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +0 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +0 -3
- package/dist/constants/componentProps/iconFillSize.js +0 -5
- package/dist/constants/componentProps/iconSize.js +0 -5
- package/dist/constants/componentProps/itemColor.js +0 -3
- package/dist/constants/componentProps/position.js +0 -3
- package/dist/constants/componentProps/resizeMode.js +0 -3
- package/dist/constants/componentProps/shape.js +0 -3
- package/dist/constants/componentProps/size.js +0 -3
- package/dist/constants/componentProps/sizeInterface.js +0 -3
- package/dist/constants/componentProps/sizePX.js +0 -5
- package/dist/constants/componentProps/stacking.js +0 -3
- package/dist/constants/componentProps/state.js +0 -3
- package/dist/constants/componentProps/textAlign.js +0 -3
- package/dist/constants/componentProps/textColor.js +0 -3
- package/dist/constants/componentProps/textColorActive.js +0 -3
- package/dist/constants/componentProps/textColorHover.js +0 -3
- package/dist/constants/componentProps/textGradient.js +0 -3
- package/dist/constants/componentProps/textSize.js +0 -3
- package/dist/constants/componentProps/textStyle.js +0 -3
- package/dist/constants/componentProps/textTag.js +0 -3
- package/dist/constants/componentProps/textWeight.js +0 -5
- package/dist/constants/componentProps/textWrap.js +0 -3
- package/dist/constants/componentProps/titleSize.js +0 -3
- package/dist/constants/componentProps/type.js +0 -3
- package/dist/constants/componentProps/underline.js +0 -3
- package/dist/constants/componentProps/verticalContentAlign.js +0 -3
- package/dist/constants/componentProps/verticalResizeMode.js +0 -3
- package/dist/constants/componentProps/width.js +0 -3
- package/dist/constants/componentProps/wrap.js +0 -3
- package/dist/constants.js +0 -52
- package/dist/stories/Accordion.stories.js +0 -105
- package/dist/stories/AccordionItem.stories.js +0 -150
- package/dist/stories/AlignItems.stories.js +0 -88
- package/dist/stories/AlignSelf.stories.js +0 -101
- package/dist/stories/Appearance.stories.js +0 -100
- package/dist/stories/Avatar.stories.js +0 -184
- package/dist/stories/Badge.stories.js +0 -115
- package/dist/stories/Button.stories.js +0 -110
- package/dist/stories/Cell.stories.js +0 -306
- package/dist/stories/Checkbox.stories.js +0 -124
- package/dist/stories/Chips.stories.js +0 -106
- package/dist/stories/Choice.stories.js +0 -115
- package/dist/stories/Code.stories.js +0 -96
- package/dist/stories/Columns.stories.js +0 -80
- package/dist/stories/DatePicker.stories.js +0 -171
- package/dist/stories/Direction.stories.js +0 -93
- package/dist/stories/Divider.stories.js +0 -131
- package/dist/stories/Dot.stories.js +0 -85
- package/dist/stories/Drawer.stories.js +0 -75
- package/dist/stories/Dropdown.stories.js +0 -75
- package/dist/stories/DropdownItem.stories.js +0 -150
- package/dist/stories/Flex.stories.js +0 -47
- package/dist/stories/FlexAlignContent.stories.js +0 -102
- package/dist/stories/FlexAlignItems.stories.js +0 -91
- package/dist/stories/FlexAlignSelf.stories.js +0 -97
- package/dist/stories/FlexDirection.stories.js +0 -112
- package/dist/stories/FlexGrow.stories.js +0 -69
- package/dist/stories/FlexJustifyContent.stories.js +0 -98
- package/dist/stories/FlexOrder.stories.js +0 -76
- package/dist/stories/FlexWrap.stories.js +0 -89
- package/dist/stories/Grid.stories.js +0 -202
- package/dist/stories/Group.stories.js +0 -151
- package/dist/stories/Icon.stories.js +0 -193
- package/dist/stories/Image.stories.js +0 -134
- package/dist/stories/Input.stories.js +0 -124
- package/dist/stories/InputPassword.stories.js +0 -112
- package/dist/stories/JustifyContent.stories.js +0 -96
- package/dist/stories/Label.stories.js +0 -173
- package/dist/stories/Loader.stories.js +0 -119
- package/dist/stories/Logo.stories.js +0 -99
- package/dist/stories/MenuItem.stories.js +0 -258
- package/dist/stories/Message.stories.js +0 -34
- package/dist/stories/ModalConfirm.stories.js +0 -60
- package/dist/stories/ModalDefault.stories.js +0 -33
- package/dist/stories/ModalSheetBottom.stories.js +0 -47
- package/dist/stories/Notification.stories.js +0 -105
- package/dist/stories/Pagination.stories.js +0 -63
- package/dist/stories/Radio.stories.js +0 -100
- package/dist/stories/Response.stories.js +0 -92
- package/dist/stories/SearchInput.stories.js +0 -189
- package/dist/stories/Segmented.stories.js +0 -109
- package/dist/stories/Select.stories.js +0 -333
- package/dist/stories/Size.stories.js +0 -99
- package/dist/stories/State.stories.js +0 -67
- package/dist/stories/Switch.stories.js +0 -84
- package/dist/stories/Text.stories.js +0 -172
- package/dist/stories/Textarea.stories.js +0 -90
- package/dist/stories/Tile.stories.js +0 -248
- package/dist/stories/Title.stories.js +0 -168
- package/dist/stories/Tooltip.stories.js +0 -164
- package/dist/stories/Wrap.stories.js +0 -74
- package/dist/types/types/componentProps/sizeInterface.d.ts +0 -1
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
6
|
-
import { L as Loader } from '../Loader-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
5
|
+
import { I as Icon } from '../Icon-Dz1q9WC2.js';
|
|
6
|
+
import { L as Loader } from '../Loader-Cm98w6lJ.js';
|
|
7
|
+
import { T as Text } from '../Text-D9sEeRE4.js';
|
|
8
8
|
import '../tslib.es6-5FtW-kfi.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,9 +16,9 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
20
|
-
import '../Tooltip-
|
|
21
|
-
import '../Title-
|
|
19
|
+
import '../Link-U60OVrcS.js';
|
|
20
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
21
|
+
import '../Title-Cl95USIn.js';
|
|
22
22
|
|
|
23
23
|
var choiceAppearance = {
|
|
24
24
|
accent: {
|
|
@@ -51,7 +51,7 @@ var choiceConfig = {
|
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
var Choice = React.forwardRef(function Choice(props, ref) {
|
|
54
|
-
var _a = props.isCheckbox, isCheckbox = _a ===
|
|
54
|
+
var _a = props.isCheckbox, isCheckbox = _a === undefined ? false : _a, _b = props.isDisabled, isDisabled = _b === undefined ? false : _b, _c = props.isLoading, isLoading = _c === undefined ? false : _c, _d = props.active, active = _d === undefined ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === undefined ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === undefined ? 'normal' : _f, type = props.type;
|
|
55
55
|
var controlRef = useRef(null);
|
|
56
56
|
var optionsRefs = useMemo(function () { return new Map(options.map(function (item) { return [item.value, createRef()]; })); }, [options]);
|
|
57
57
|
var onChange = useCallback(function (event, item) {
|
|
@@ -75,12 +75,12 @@ var Choice = React.forwardRef(function Choice(props, ref) {
|
|
|
75
75
|
: fillActiveDisabledClass && "fill_active_disabled_".concat(fillActiveDisabledClass)
|
|
76
76
|
: !isDisabled
|
|
77
77
|
? fillClass && "fill_".concat(fillClass)
|
|
78
|
-
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig ===
|
|
78
|
+
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), isActive && isDisabled && 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsx("input", { className: "choice__item-radio", name: name, checked: isActive, disabled: isDisabled, id: "".concat(name, "-").concat(item.value), type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: isActive
|
|
79
79
|
? !isDisabled
|
|
80
|
-
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig ===
|
|
80
|
+
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextActiveColor)
|
|
81
81
|
: labelTextActiveColorDisabled
|
|
82
82
|
: !isDisabled
|
|
83
|
-
? labelTextColor || (appearanceConfig === null || appearanceConfig ===
|
|
83
|
+
? labelTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.labelTextColor)
|
|
84
84
|
: labelTextColorDisabled, children: item.label })), (icon || activeIcon) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon, iconFill: isActive
|
|
85
85
|
? activeIconItemFill || item.activeIconItemFill
|
|
86
86
|
: iconItemFill || item.iconItemFill })), after] })] }, "".concat(name, "-").concat(item.value)));
|
package/dist/components/Code.js
CHANGED
|
@@ -21,7 +21,7 @@ var codeConfig = {
|
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
function Code(props) {
|
|
24
|
-
var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a ===
|
|
24
|
+
var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === undefined ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === undefined ? 0 : _b, _c = props.inputType, inputType = _c === undefined ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
25
25
|
var _d = useState(''), otp = _d[0], setOtp = _d[1];
|
|
26
26
|
// @ts-expect-error
|
|
27
27
|
var appearanceConfig = codeConfig.appearance && codeConfig.appearance[appearance];
|
|
@@ -3,9 +3,9 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
7
|
-
import { G as Group } from '../Group-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { B as Button } from '../Button-C4oPIe_E.js';
|
|
7
|
+
import { G as Group } from '../Group-CIIZoSm5.js';
|
|
8
|
+
import { T as Text } from '../Text-D9sEeRE4.js';
|
|
9
9
|
import '../tslib.es6-5FtW-kfi.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -16,20 +16,20 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Icon-
|
|
19
|
+
import '../Icon-Dz1q9WC2.js';
|
|
20
20
|
import 'react-inlinesvg';
|
|
21
|
-
import '../Link-
|
|
22
|
-
import '../Tooltip-
|
|
23
|
-
import '../Title-
|
|
24
|
-
import '../Loader-
|
|
21
|
+
import '../Link-U60OVrcS.js';
|
|
22
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
23
|
+
import '../Title-Cl95USIn.js';
|
|
24
|
+
import '../Loader-Cm98w6lJ.js';
|
|
25
25
|
|
|
26
26
|
function CookiesWarning(props) {
|
|
27
|
-
var _a = props.isHideOnScroll, isHideOnScroll = _a ===
|
|
27
|
+
var _a = props.isHideOnScroll, isHideOnScroll = _a === undefined ? false : _a, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === undefined ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, className = props.className, _c = props.message, message = _c === undefined ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _c, textColor = props.textColor, textSize = props.textSize;
|
|
28
28
|
var cookiesWarningRef = useRef(null);
|
|
29
29
|
var isOpen = useMemo(function () { return Cookies.get('cookies-warning') !== 'close'; }, []);
|
|
30
30
|
var closeCookiesWarning = useCallback(function () {
|
|
31
31
|
var _a;
|
|
32
|
-
(_a = cookiesWarningRef.current) === null || _a ===
|
|
32
|
+
(_a = cookiesWarningRef.current) === null || _a === undefined ? undefined : _a.classList.add('cookies-warning_state_hidden');
|
|
33
33
|
Cookies.set('cookies-warning', 'close');
|
|
34
34
|
}, []);
|
|
35
35
|
useEffect(function () {
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { PartySuggestions } from 'react-dadata';
|
|
6
|
-
import { I as Input } from '../Input-
|
|
6
|
+
import { I as Input } from '../Input-Ck5IbuH6.js';
|
|
7
7
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -6,11 +6,11 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles.js';
|
|
9
|
-
import { B as Button } from '../Button-
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
11
|
-
import { I as Input } from '../Input-
|
|
12
|
-
import { L as Label } from '../Label-
|
|
13
|
-
import { T as Text } from '../Text-
|
|
9
|
+
import { B as Button } from '../Button-C4oPIe_E.js';
|
|
10
|
+
import { I as Icon } from '../Icon-Dz1q9WC2.js';
|
|
11
|
+
import { I as Input } from '../Input-Ck5IbuH6.js';
|
|
12
|
+
import { L as Label } from '../Label-9O3dQlUa.js';
|
|
13
|
+
import { T as Text } from '../Text-D9sEeRE4.js';
|
|
14
14
|
import 'lodash/camelCase';
|
|
15
15
|
import 'lodash/castArray';
|
|
16
16
|
import '../context/UIContext.js';
|
|
@@ -19,11 +19,11 @@ import 'react-responsive';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import 'lodash/upperFirst';
|
|
21
21
|
import '../hooks/styleAttributes.js';
|
|
22
|
-
import '../Link-
|
|
23
|
-
import '../Loader-
|
|
22
|
+
import '../Link-U60OVrcS.js';
|
|
23
|
+
import '../Loader-Cm98w6lJ.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
|
-
import '../Tooltip-
|
|
26
|
-
import '../Title-
|
|
25
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
26
|
+
import '../Title-Cl95USIn.js';
|
|
27
27
|
|
|
28
28
|
var datePickerAppearance = {
|
|
29
29
|
dev: {},
|
|
@@ -36,7 +36,7 @@ var datePickerConfig = {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
function DatePickerInput(props) {
|
|
39
|
-
var appearance = props.appearance, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, _a = props.datePickerProps, datePickerProps = _a ===
|
|
39
|
+
var appearance = props.appearance, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, _a = props.datePickerProps, datePickerProps = _a === undefined ? {} : _a, endValue = props.endValue, inputProps = props.inputProps, labelTextSize = props.labelTextSize, value = props.value, onChange = props.onChange;
|
|
40
40
|
var datepickerRef = useRef(null);
|
|
41
41
|
var start = useMemo(function () {
|
|
42
42
|
if (value) {
|
|
@@ -68,7 +68,7 @@ function DatePickerInput(props) {
|
|
|
68
68
|
setEndDate(newEndDate);
|
|
69
69
|
}, [onChange]);
|
|
70
70
|
var renderDayContents = useCallback(function (day, date) {
|
|
71
|
-
return (jsx(Button, { className: "react-datepicker__day-button", labelTextColor: datePickerProps.dayTextColor || (appearanceConfig === null || appearanceConfig ===
|
|
71
|
+
return (jsx(Button, { className: "react-datepicker__day-button", labelTextColor: datePickerProps.dayTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextColor), labelTextSize: datePickerProps.dayTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextSize), label: date.getDate().toString(), shape: datePickerProps.dayTextShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.dayTextShape), size: datePickerProps.daySize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.daySize) }));
|
|
72
72
|
}, [
|
|
73
73
|
datePickerProps.daySize,
|
|
74
74
|
datePickerProps.dayTextColor,
|
|
@@ -77,7 +77,7 @@ function DatePickerInput(props) {
|
|
|
77
77
|
]);
|
|
78
78
|
var renderCustomHeader = useCallback(function (_a) {
|
|
79
79
|
var decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth, monthDate = _a.monthDate;
|
|
80
|
-
return (jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig ===
|
|
80
|
+
return (jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconLeft || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconLeft), onClick: decreaseMonth })), jsxs("div", { className: "react-datepicker__data", children: [jsx(Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextSize), textColor: datePickerProps.monthTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextColor), textWeight: datePickerProps.monthTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.monthTextWeight), children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsx(Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextSize), textColor: datePickerProps.yearTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextColor), textWeight: datePickerProps.yearTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.yearTextWeight), children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsx(Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFill), fillHover: datePickerProps.iconFillHover || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillHover), fillSize: datePickerProps.iconFillSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconFillSize), iconFill: datePickerProps.iconItemFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconItemFill), shape: datePickerProps.iconShape || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconShape), size: datePickerProps.iconSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconSize), SvgImage: datePickerProps.iconRight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.datePicker.iconRight), onClick: increaseMonth }))] }));
|
|
81
81
|
}, [
|
|
82
82
|
datePickerProps.iconFill,
|
|
83
83
|
datePickerProps.iconFillHover,
|
|
@@ -106,7 +106,7 @@ function DatePickerInput(props) {
|
|
|
106
106
|
var widthClass = classGenerator.widthClass;
|
|
107
107
|
// @ts-expect-error
|
|
108
108
|
var datePickerStyles = useStyles(props).styles;
|
|
109
|
-
return (jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps ===
|
|
109
|
+
return (jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ ref: datepickerRef, endDate: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.selectsRange) ? endDate : undefined, locale: ru, minDate: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.disablePastDays) ? new Date() : undefined, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, customInput: jsx(DatePickerCustomInput, { labelTextSize: labelTextSize, clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datePickerAppearance: appearance, datepickerRef: datepickerRef, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconItemFill: datePickerProps.inputIconItemFill, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputProps: inputProps, isClearable: datePickerProps.isClearable }), popperClassName: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.popper) && "react-datepicker-popper-".concat(datePickerProps.popper), onChange: (datePickerProps === null || datePickerProps === undefined ? undefined : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
|
|
110
110
|
// Important for use custom clear button
|
|
111
111
|
isClearable: false })) }));
|
|
112
112
|
}
|
|
@@ -120,7 +120,7 @@ var DatePickerCustomInput = React.forwardRef(function (props, ref) {
|
|
|
120
120
|
}
|
|
121
121
|
return '';
|
|
122
122
|
}, [value]);
|
|
123
|
-
var inputAppearanceProps = (_a = datePickerConfig.appearance[datePickerAppearance]) === null || _a ===
|
|
123
|
+
var inputAppearanceProps = (_a = datePickerConfig.appearance[datePickerAppearance]) === null || _a === undefined ? undefined : _a.input;
|
|
124
124
|
return (jsxs(React.Fragment, { children: [jsx(Input, __assign({}, inputAppearanceProps, props, inputProps, { ref: ref, autocomplete: "off", value: multipleValue })), inputIcon && jsx(DatePickerInputIcon, __assign({}, props)), isClearable && jsx(DatePickerClearButton, __assign({}, props))] }));
|
|
125
125
|
});
|
|
126
126
|
DatePickerCustomInput.displayName = 'DatePickerCustomInput';
|
|
@@ -128,8 +128,8 @@ function DatePickerClearButton(props) {
|
|
|
128
128
|
var clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, datepickerRef = props.datepickerRef;
|
|
129
129
|
var onClick = useCallback(function (event) {
|
|
130
130
|
var _a, _b;
|
|
131
|
-
(_a = datepickerRef === null || datepickerRef ===
|
|
132
|
-
(_b = datepickerRef === null || datepickerRef ===
|
|
131
|
+
(_a = datepickerRef === null || datepickerRef === undefined ? undefined : datepickerRef.current) === null || _a === undefined ? undefined : _a.onClearClick(event);
|
|
132
|
+
(_b = datepickerRef === null || datepickerRef === undefined ? undefined : datepickerRef.current) === null || _b === undefined ? undefined : _b.handleFocus(event);
|
|
133
133
|
}, []);
|
|
134
134
|
return (jsxs(React.Fragment, { children: [clearLabel && (jsx(Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), labelTextColor: clearLabelTextColor, labelTextSize: clearLabelTextSize, label: clearLabel, labelTextColorHover: clearLabelTextColorHover, onClick: onClick })), (clearIcon || clearIconSrc) && (jsx(Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, size: clearIconSize, SvgImage: clearIcon, onClick: onClick }))] }));
|
|
135
135
|
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import ReactDrawer from 'react-modern-drawer';
|
|
4
|
-
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import '../tslib.es6-5FtW-kfi.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'lodash/camelCase';
|
|
8
|
-
import 'lodash/castArray';
|
|
9
|
-
import '../context/UIContext.js';
|
|
10
|
-
import '../hooks/useMediaQueries.js';
|
|
11
|
-
import 'react-responsive';
|
|
12
4
|
|
|
13
5
|
var drawerAppearance = {
|
|
14
6
|
dev: {},
|
|
@@ -21,10 +13,11 @@ var drawerConfig = {
|
|
|
21
13
|
},
|
|
22
14
|
};
|
|
23
15
|
function Drawer(props) {
|
|
24
|
-
var children = props.children, direction = props.direction, isOpenModal = props.isOpenModal, after = props.after,
|
|
25
|
-
// @ts-expect-error
|
|
26
|
-
|
|
27
|
-
useDeviceTargetClassGenerator(props, appearanceConfig)
|
|
16
|
+
var children = props.children, direction = props.direction, isOpenModal = props.isOpenModal, after = props.after, before = props.before, className = props.className, closeModal = props.closeModal, dataTour = props.dataTour, enableOverlay = props.enableOverlay, size = props.size, type = props.type;
|
|
17
|
+
// // @ts-expect-error
|
|
18
|
+
// const appearanceConfig = drawerConfig.appearance && drawerConfig.appearance[appearance]
|
|
19
|
+
// const classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig)
|
|
20
|
+
// const {} = classGenerator
|
|
28
21
|
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', enableOverlay: enableOverlay, lockBackgroundScroll: false,
|
|
29
22
|
// @ts-expect-error
|
|
30
23
|
open: isOpenModal, overlayClassName: "drawer__overlay", size: size || 600, onClose: closeModal, children: [before && jsx("div", { className: "drawer__before", children: before }), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-BGsCHiqr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -14,5 +14,5 @@ import 'lodash/maxBy';
|
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
16
|
import '../Divider-DBvDCUqP.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../Text-
|
|
17
|
+
import '../Link-U60OVrcS.js';
|
|
18
|
+
import '../Text-D9sEeRE4.js';
|
package/dist/components/Flex.js
CHANGED
|
@@ -14,7 +14,7 @@ import 'lodash/upperFirst';
|
|
|
14
14
|
import '../hooks/styleAttributes.js';
|
|
15
15
|
|
|
16
16
|
function Flex(props) {
|
|
17
|
-
var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a ===
|
|
17
|
+
var id = props.id, children = props.children, className = props.className, _a = props.tag, Tag = _a === undefined ? 'div' : _a, type = props.type, style = props.style, onClick = props.onClick;
|
|
18
18
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
19
19
|
var alignContentClass = classGenerator.alignContentClass, alignItemsClass = classGenerator.alignItemsClass, borderColorClass = classGenerator.borderColorClass, borderTypeClass = classGenerator.borderTypeClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, flowClass = classGenerator.flowClass, justifyContentClass = classGenerator.justifyContentClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass, wrapClass = classGenerator.wrapClass;
|
|
20
20
|
// @ts-expect-error
|
|
@@ -23,7 +23,7 @@ function Flex(props) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function FlexItem(props) {
|
|
26
|
-
var children = props.children, className = props.className, htmlFor = props.htmlFor, _a = props.tag, Tag = _a ===
|
|
26
|
+
var children = props.children, className = props.className, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === undefined ? 'div' : _a, style = props.style;
|
|
27
27
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
28
28
|
var alignItemsClass = classGenerator.alignItemsClass, alignSelfClass = classGenerator.alignSelfClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, growClass = classGenerator.growClass, justifyContentClass = classGenerator.justifyContentClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass, wrapClass = classGenerator.wrapClass;
|
|
29
29
|
// @ts-expect-error
|
package/dist/components/Grid.js
CHANGED
|
@@ -14,7 +14,7 @@ import 'lodash/upperFirst';
|
|
|
14
14
|
import '../hooks/styleAttributes.js';
|
|
15
15
|
|
|
16
16
|
function Grid(props) {
|
|
17
|
-
var id = props.id, children = props.children, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a ===
|
|
17
|
+
var id = props.id, children = props.children, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === undefined ? 'div' : _a, type = props.type, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, style = props.style, onClick = props.onClick;
|
|
18
18
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
19
19
|
var alignContentClass = classGenerator.alignContentClass, alignItemsClass = classGenerator.alignItemsClass, borderColorClass = classGenerator.borderColorClass, columnGapClass = classGenerator.columnGapClass, columnsClass = classGenerator.columnsClass, fillClass = classGenerator.fillClass, justifyContentClass = classGenerator.justifyContentClass, justifyItemsClass = classGenerator.justifyItemsClass, rowGapClass = classGenerator.rowGapClass, rowsClass = classGenerator.rowsClass;
|
|
20
20
|
// @ts-expect-error
|
|
@@ -32,7 +32,7 @@ function GridItem(props) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function GridRow(props) {
|
|
35
|
-
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a ===
|
|
35
|
+
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === undefined ? 'div' : _a, onClick = props.onClick;
|
|
36
36
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
37
37
|
var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass;
|
|
38
38
|
// @ts-expect-error
|
package/dist/components/Group.js
CHANGED
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-Dz1q9WC2.js';
|
|
2
2
|
import '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,7 +14,7 @@ import '../hooks/useStyles.js';
|
|
|
14
14
|
import 'lodash/maxBy';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../Tooltip-
|
|
19
|
-
import '../Text-
|
|
20
|
-
import '../Title-
|
|
17
|
+
import '../Link-U60OVrcS.js';
|
|
18
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
19
|
+
import '../Text-D9sEeRE4.js';
|
|
20
|
+
import '../Title-Cl95USIn.js';
|
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-
|
|
1
|
+
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-Ck5IbuH6.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -24,7 +24,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
24
24
|
// state,
|
|
25
25
|
_a = props.type,
|
|
26
26
|
// state,
|
|
27
|
-
type = _a ===
|
|
27
|
+
type = _a === undefined ? 'text' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
28
28
|
// @ts-expect-error
|
|
29
29
|
var appearanceConfig = inputMaskConfig.appearance && inputMaskConfig.appearance[appearance];
|
|
30
30
|
// const stateConfig = useMemo(
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-Dz1q9WC2.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -14,10 +14,10 @@ import '../hooks/useStyles.js';
|
|
|
14
14
|
import 'lodash/maxBy';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../Tooltip-
|
|
19
|
-
import '../Text-
|
|
20
|
-
import '../Title-
|
|
17
|
+
import '../Link-U60OVrcS.js';
|
|
18
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
19
|
+
import '../Text-D9sEeRE4.js';
|
|
20
|
+
import '../Title-Cl95USIn.js';
|
|
21
21
|
|
|
22
22
|
var InputPasswordAppearance = {
|
|
23
23
|
dev: {
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-9O3dQlUa.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -13,6 +13,6 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Text-
|
|
17
|
-
import '../Tooltip-
|
|
18
|
-
import '../Title-
|
|
16
|
+
import '../Text-D9sEeRE4.js';
|
|
17
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
18
|
+
import '../Title-Cl95USIn.js';
|
package/dist/components/Link.js
CHANGED
package/dist/components/List.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { L as Link } from '../Link-
|
|
5
|
+
import { L as Link } from '../Link-U60OVrcS.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-Cm98w6lJ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
@@ -13,4 +13,4 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Text-
|
|
16
|
+
import '../Text-D9sEeRE4.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { a as LinkWrapper } from '../Link-
|
|
5
|
+
import { a as LinkWrapper } from '../Link-U60OVrcS.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -28,7 +28,7 @@ function Logo(props) {
|
|
|
28
28
|
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, alignItemsClass = classGenerator.alignItemsClass, widthClass = classGenerator.widthClass;
|
|
29
29
|
// @ts-expect-error
|
|
30
30
|
var logo = useStyles(props).styles;
|
|
31
|
-
return (jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass), alt, title, mode && "logo_mode_".concat(mode), (size || (appearanceConfig === null || appearanceConfig ===
|
|
31
|
+
return (jsx("div", { className: clsx(className, 'logo', alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignItemsClass && "logo_align-items_".concat(alignItemsClass), alt, title, mode && "logo_mode_".concat(mode), (size || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.size)) && "logo_size_".concat(size || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.size)), widthClass && "width_".concat(widthClass)), style: logo, children: link || href ? (jsx(LinkWrapper, { className: "logo__link", href: link || href, children: jsx("img", { className: "logo__image", alt: alt || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.alt) || title || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.title), src: src || source || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.src) || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.source), title: title || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.title) || alt || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.alt) }) })) : (jsx("img", { className: "logo__image", alt: alt || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.alt) || title || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.title), src: src || source || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.src) || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.source), title: title || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.title) || alt || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.alt) })) }));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export { Logo, logoConfig };
|
package/dist/components/Menu.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { M as MenuItem } from '../MenuItem-
|
|
5
|
+
import { M as MenuItem } from '../MenuItem-C422Veuw.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -13,8 +13,8 @@ import 'react-responsive';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Link-
|
|
17
|
-
import '../Text-
|
|
16
|
+
import '../Link-U60OVrcS.js';
|
|
17
|
+
import '../Text-D9sEeRE4.js';
|
|
18
18
|
|
|
19
19
|
var menuAppearance = {
|
|
20
20
|
dev: {},
|
|
@@ -35,7 +35,7 @@ function Menu(props) {
|
|
|
35
35
|
// @ts-expect-error
|
|
36
36
|
var menuStyles = useStyles(props).styles;
|
|
37
37
|
return (jsx("div", { className: clsx(className, 'menu', directionClass && "menu_direction_".concat(directionClass), columnsClass && "menu_columns_".concat(columnsClass), type && "menu_type_".concat(type), flexGrowClass && "flex-grow_".concat(flexGrowClass), widthClass && "width_".concat(widthClass)), children: jsxs("div", { className: "menu__wrapper", style: menuStyles, children: [before, children ||
|
|
38
|
-
(items === null || items ===
|
|
38
|
+
(items === null || items === undefined ? undefined : items.map(function (item, i) { return (jsx(MenuItem, { label: item.label, onClick: onClickItem }, "menuItem_".concat(item.id || i))); })), after] }) }));
|
|
39
39
|
}
|
|
40
40
|
Menu.defaultProps = {
|
|
41
41
|
direction: 'horizontal',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MenuItem, a as menuItemAppearance, m as menuItemConfig } from '../MenuItem-
|
|
1
|
+
export { M as MenuItem, a as menuItemAppearance, m as menuItemConfig } from '../MenuItem-C422Veuw.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -13,5 +13,5 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Link-
|
|
17
|
-
import '../Text-
|
|
16
|
+
import '../Link-U60OVrcS.js';
|
|
17
|
+
import '../Text-D9sEeRE4.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,7 +5,7 @@ import ReactDOM from 'react-dom';
|
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
7
|
import { O as Overlay } from '../Overlay-DcGWchjp.js';
|
|
8
|
-
import { L as Loader } from '../Loader-
|
|
8
|
+
import { L as Loader } from '../Loader-Cm98w6lJ.js';
|
|
9
9
|
import '../tslib.es6-5FtW-kfi.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -15,7 +15,7 @@ import 'react-responsive';
|
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Text-
|
|
18
|
+
import '../Text-D9sEeRE4.js';
|
|
19
19
|
|
|
20
20
|
var modalAppearance = {
|
|
21
21
|
dev: {},
|
|
@@ -29,7 +29,7 @@ var modalConfig = {
|
|
|
29
29
|
};
|
|
30
30
|
var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
31
31
|
var _a;
|
|
32
|
-
if (className ===
|
|
32
|
+
if (className === undefined) { className = ''; }
|
|
33
33
|
// prettier-ignore
|
|
34
34
|
var classList = className && typeof className === 'string'
|
|
35
35
|
? className.split(' ').filter(Boolean)
|
|
@@ -49,7 +49,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
49
49
|
};
|
|
50
50
|
// Modal component that is an abstraction around the portal API.
|
|
51
51
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
52
|
-
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a ===
|
|
52
|
+
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === undefined ? true : _a, _b = props.isOpen, initialIsOpen = _b === undefined ? false : _b, _c = props.isOverlay, isOverlay = _c === undefined ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === undefined ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === undefined ? true : _e, appearance = props.appearance, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === undefined ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
53
53
|
// Query DOM element
|
|
54
54
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
55
55
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -148,7 +148,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
148
148
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
149
149
|
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass)), ref: modalContentRef, id: id, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
|
|
150
150
|
// ref={modalOverlayRef}
|
|
151
|
-
fill: overlayFill || (appearanceConfig === null || appearanceConfig ===
|
|
151
|
+
fill: overlayFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.overlayFill), opacity: overlayOpacity || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.overlayOpacity), fillGradient: overlayFillGradient || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.overlayFillGradient), isOverlay: isOverlay || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.isOverlay), onClick: onClickOverlay })] })) : null,
|
|
152
152
|
// A DOM element
|
|
153
153
|
modalElement));
|
|
154
154
|
});
|