@itcase/ui 1.1.6 → 1.1.8
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/Accordion-CqPVnTKh.js +173 -0
- package/dist/Avatar-diLCwtnd.js +49 -0
- package/dist/Breadcrumbs-B79kOtMG.js +619 -0
- package/dist/Button-B7vbiqrJ.js +100 -0
- package/dist/ContextMenuItem-BPqsjmSA.js +204 -0
- package/dist/Divider-BlBwMHgl.js +45 -0
- package/dist/Dot-C3R1y59u.js +34 -0
- package/dist/DropdownItem-Dgf0LRhx.js +644 -0
- package/dist/FlexItem-DzNgFIa0.js +118 -0
- package/dist/GridRow-Cc-rz56R.js +158 -0
- package/dist/Group-fbVPmr8W.js +111 -0
- package/dist/Icon-Dn2eEZvb.js +128 -0
- package/dist/Link-ByBzBRDH.js +132 -0
- package/dist/ListItem-Cf8r3w8t.js +479 -0
- package/dist/ModalLoader-DJVKhIZR.js +374 -0
- package/dist/NotificationList-CJyEnxWw.js +38 -0
- package/dist/SearchResult-erxB06IL.js +530 -0
- package/dist/SelectField-CpQMWXaC.js +571 -0
- package/dist/SiteMenuButton-BFmti8pF.js +181 -0
- package/dist/TabGroup-CjmtgOMw.js +1071 -0
- package/dist/Text-BcGbRc14.js +75 -0
- package/dist/cjs/Accordion-DcZ9P5kP.js +182 -0
- package/dist/cjs/Avatar-DQ5fNpnO.js +55 -0
- package/dist/cjs/Breadcrumbs-HubY1qZQ.js +629 -0
- package/dist/cjs/Button-3GkRq8Pv.js +108 -0
- package/dist/cjs/ContextMenuItem-DmbSoGn1.js +213 -0
- package/dist/cjs/Divider-CIYsHYud.js +51 -0
- package/dist/cjs/Dot-vDSigHDs.js +40 -0
- package/dist/cjs/DropdownItem-Bl-Ghc_6.js +653 -0
- package/dist/cjs/FlexItem-BnORv6q3.js +125 -0
- package/dist/cjs/GridRow-mzs0CkNG.js +166 -0
- package/dist/cjs/Group-4zWTDvKx.js +118 -0
- package/dist/cjs/Icon-UBahY607.js +137 -0
- package/dist/cjs/Link-BoShjCEw.js +142 -0
- package/dist/cjs/ListItem-MrHApmF3.js +488 -0
- package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
- package/dist/cjs/NotificationList-DnI8DqyE.js +46 -0
- package/dist/cjs/SearchResult-bTwR5A-g.js +540 -0
- package/dist/cjs/SelectField-BJTu7BXO.js +583 -0
- package/dist/cjs/SiteMenuButton-BGi0gR1z.js +190 -0
- package/dist/cjs/TabGroup-DIWmGIp2.js +1081 -0
- package/dist/cjs/Text-D7Aq1i5R.js +82 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +8 -0
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/cjs/components/Accordion/index.d.ts +3 -0
- package/dist/cjs/components/Accordion.js +40 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +13 -0
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/cjs/components/Avatar/index.d.ts +1 -0
- package/dist/cjs/components/Avatar.js +43 -0
- package/dist/cjs/components/Badge.js +206 -0
- package/dist/cjs/components/Breadcrumbs.js +43 -0
- package/dist/cjs/components/Button/Button.d.ts +5 -0
- package/dist/cjs/components/Button/Button.interface.d.ts +78 -0
- package/dist/cjs/components/Button/index.d.ts +1 -0
- package/dist/cjs/components/Button.js +41 -0
- package/dist/cjs/components/Caption.js +197 -0
- package/dist/cjs/components/Card.js +279 -0
- package/dist/cjs/components/Cell.js +422 -0
- package/dist/cjs/components/Checkbox.js +166 -0
- package/dist/cjs/components/Chips.js +393 -0
- package/dist/cjs/components/Choice.js +346 -0
- package/dist/cjs/components/Code.js +437 -0
- package/dist/cjs/components/ContextMenu.js +41 -0
- package/dist/cjs/components/CookiesWarning.js +180 -0
- package/dist/cjs/components/DadataHintField.js +1193 -0
- package/dist/cjs/components/DatePicker.js +14097 -0
- package/dist/cjs/components/Divider/Divider.d.ts +3 -0
- package/dist/cjs/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/cjs/components/Divider/index.d.ts +1 -0
- package/dist/cjs/components/Divider.js +21 -0
- package/dist/cjs/components/Dot/Dot.d.ts +6 -0
- package/dist/cjs/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/cjs/components/Dot/index.d.ts +1 -0
- package/dist/cjs/components/Dot.js +21 -0
- package/dist/cjs/components/Drawer.js +284 -0
- package/dist/cjs/components/Dropdown.js +30 -0
- package/dist/cjs/components/Flex/Flex.d.ts +8 -0
- package/dist/cjs/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/cjs/components/Flex/FlexItem.d.ts +8 -0
- package/dist/cjs/components/Flex/index.d.ts +3 -0
- package/dist/cjs/components/Flex.js +22 -0
- package/dist/cjs/components/FormField.js +53 -0
- package/dist/cjs/components/Grid/Grid.d.ts +8 -0
- package/dist/cjs/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/cjs/components/Grid/GridItem.d.ts +3 -0
- package/dist/cjs/components/Grid/GridRow.d.ts +8 -0
- package/dist/cjs/components/Grid/index.d.ts +4 -0
- package/dist/cjs/components/Grid.js +23 -0
- package/dist/cjs/components/Group/Group.d.ts +9 -0
- package/dist/cjs/components/Group/Group.interface.d.ts +51 -0
- package/dist/cjs/components/Group/index.d.ts +1 -0
- package/dist/cjs/components/Group.js +22 -0
- package/dist/cjs/components/Icon/Icon.d.ts +5 -0
- package/dist/cjs/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/cjs/components/Icon/index.d.ts +1 -0
- package/dist/cjs/components/Icon.js +39 -0
- package/dist/cjs/components/Image.js +480 -0
- package/dist/cjs/components/Input.js +233 -0
- package/dist/cjs/components/InputMask.js +233 -0
- package/dist/cjs/components/InputPassword.js +255 -0
- package/dist/cjs/components/Label.js +643 -0
- package/dist/cjs/components/LanguageSelector.js +125 -0
- package/dist/cjs/components/Link/Link.d.ts +11 -0
- package/dist/cjs/components/Link/Link.interface.d.ts +57 -0
- package/dist/cjs/components/Link/index.d.ts +1 -0
- package/dist/cjs/components/Link.js +23 -0
- package/dist/cjs/components/List.js +30 -0
- package/dist/cjs/components/Loader.js +156 -0
- package/dist/cjs/components/Logo.js +175 -0
- package/dist/cjs/components/Menu.js +196 -0
- package/dist/cjs/components/MenuItem.js +680 -0
- package/dist/cjs/components/Modal.js +28 -0
- package/dist/cjs/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/cjs/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/cjs/components/Notification/NotificationList.d.ts +3 -0
- package/dist/cjs/components/Notification/index.d.ts +3 -0
- package/dist/cjs/components/Notification.js +36 -0
- package/dist/cjs/components/Overlay.js +197 -0
- package/dist/cjs/components/Page.js +422 -0
- package/dist/cjs/components/Pagination.js +371 -0
- package/dist/cjs/components/Radio.js +267 -0
- package/dist/{components/Background.js → cjs/components/RangeSlider.js} +105 -74
- package/dist/cjs/components/Response.js +245 -0
- package/dist/cjs/components/ScrollOnDrag.js +214 -0
- package/dist/cjs/components/Scrollbar.js +71 -0
- package/dist/cjs/components/Search.js +43 -0
- package/dist/cjs/components/Segmented.js +235 -0
- package/dist/cjs/components/Select.js +8531 -0
- package/dist/cjs/components/SiteMenu.js +40 -0
- package/dist/cjs/components/Swiper.js +5655 -0
- package/dist/cjs/components/Switch.js +105 -0
- package/dist/cjs/components/Tab.js +42 -0
- package/dist/cjs/components/Text/Text.d.ts +9 -0
- package/dist/cjs/components/Text/Text.interface.d.ts +53 -0
- package/dist/cjs/components/Text/index.d.ts +1 -0
- package/dist/cjs/components/Text.js +22 -0
- package/dist/cjs/components/Textarea.js +212 -0
- package/dist/cjs/components/Tile.js +568 -0
- package/dist/cjs/components/Title.js +400 -0
- package/dist/cjs/components/Tooltip.js +451 -0
- package/dist/cjs/components/Video.js +175 -0
- package/dist/cjs/components/Wrapper.js +438 -0
- package/dist/cjs/components/index.d.ts +58 -0
- package/dist/cjs/components.js +234 -0
- package/dist/cjs/constants/componentProps/align.js +7 -0
- package/dist/cjs/constants/componentProps/alignDirection.js +7 -0
- package/dist/cjs/constants/componentProps/alignment.js +7 -0
- package/dist/cjs/constants/componentProps/borderColor.js +7 -0
- package/dist/cjs/constants/componentProps/borderColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/borderType.js +7 -0
- package/dist/cjs/constants/componentProps/borderWidth.js +9 -0
- package/dist/cjs/constants/componentProps/captionPosition.js +7 -0
- package/dist/cjs/constants/componentProps/direction.js +7 -0
- package/dist/cjs/constants/componentProps/emojiSize.js +9 -0
- package/dist/cjs/constants/componentProps/fill.js +7 -0
- package/dist/cjs/constants/componentProps/fillGradient.js +7 -0
- package/dist/cjs/constants/componentProps/fillHover.js +7 -0
- package/dist/cjs/constants/componentProps/fillType.js +7 -0
- package/dist/cjs/constants/componentProps/flexAlign.js +7 -0
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +7 -0
- package/dist/cjs/constants/componentProps/flexWrap.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlign.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +7 -0
- package/dist/cjs/constants/componentProps/height.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/iconFillSize.js +9 -0
- package/dist/cjs/constants/componentProps/iconSize.js +9 -0
- package/dist/cjs/constants/componentProps/itemColor.js +7 -0
- package/dist/cjs/constants/componentProps/position.js +7 -0
- package/dist/cjs/constants/componentProps/resizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/shape.js +7 -0
- package/dist/cjs/constants/componentProps/size.js +7 -0
- package/dist/cjs/constants/componentProps/sizeInterface.js +7 -0
- package/dist/cjs/constants/componentProps/sizePX.js +9 -0
- package/dist/cjs/constants/componentProps/stacking.js +7 -0
- package/dist/cjs/constants/componentProps/state.js +7 -0
- package/dist/cjs/constants/componentProps/strokeColor.js +7 -0
- package/dist/cjs/constants/componentProps/textAlign.js +7 -0
- package/dist/cjs/constants/componentProps/textColor.js +7 -0
- package/dist/cjs/constants/componentProps/textColorActive.js +7 -0
- package/dist/cjs/constants/componentProps/textColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/textGradient.js +7 -0
- package/dist/cjs/constants/componentProps/textSize.js +7 -0
- package/dist/cjs/constants/componentProps/textStyle.js +7 -0
- package/dist/cjs/constants/componentProps/textTag.js +7 -0
- package/dist/cjs/constants/componentProps/textWeight.js +9 -0
- package/dist/cjs/constants/componentProps/textWrap.js +7 -0
- package/dist/cjs/constants/componentProps/titleSize.js +7 -0
- package/dist/cjs/constants/componentProps/type.js +7 -0
- package/dist/cjs/constants/componentProps/underline.js +7 -0
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/width.js +7 -0
- package/dist/cjs/constants/componentProps/wrap.js +7 -0
- package/dist/cjs/constants.js +111 -0
- package/dist/cjs/context/Notifications.js +123 -0
- package/dist/cjs/context/UIContext.js +57 -0
- package/dist/cjs/context/index.d.ts +2 -0
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/cjs/hooks/styleAttributes.js +39 -0
- package/dist/cjs/hooks/useDeviceTargetClass.js +61 -0
- package/dist/cjs/hooks/useMediaQueries.js +139 -0
- package/dist/cjs/hooks/useStyles.js +135 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/jsx-runtime-BCmQOGxJ.js +1363 -0
- package/dist/cjs/types/componentProps/align.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignment.d.ts +1 -0
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderType.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/cjs/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/cjs/types/componentProps/direction.d.ts +1 -0
- package/dist/cjs/types/componentProps/elevation.d.ts +1 -0
- package/dist/cjs/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/fill.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillType.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/height.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/position.d.ts +1 -0
- package/dist/cjs/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/shape.d.ts +1 -0
- package/dist/cjs/types/componentProps/size.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizePX.d.ts +1 -0
- package/dist/cjs/types/componentProps/stacking.d.ts +1 -0
- package/dist/cjs/types/componentProps/state.d.ts +1 -0
- package/dist/cjs/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/textGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/textStyle.d.ts +1 -0
- package/dist/cjs/types/componentProps/textTag.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/titleSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/type.d.ts +1 -0
- package/dist/cjs/types/componentProps/underline.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/width.d.ts +1 -0
- package/dist/cjs/types/componentProps/wrap.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +56 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion.js +33 -697
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar.js +37 -257
- package/dist/components/Badge.js +41 -56
- package/dist/components/Breadcrumbs.js +36 -656
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.interface.d.ts +78 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button.js +34 -546
- package/dist/components/Caption.js +37 -45
- package/dist/components/Card.js +47 -60
- package/dist/components/Cell.js +83 -96
- package/dist/components/Checkbox.js +41 -56
- package/dist/components/Chips.js +65 -79
- package/dist/components/Choice.js +76 -91
- package/dist/components/Code.js +40 -48
- package/dist/components/ContextMenu.js +34 -246
- package/dist/components/CookiesWarning.js +55 -73
- package/dist/components/DadataHintField.js +55 -64
- package/dist/components/DatePicker.js +296 -327
- package/dist/components/Divider/Divider.d.ts +3 -0
- package/dist/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider.js +15 -257
- package/dist/components/Dot/Dot.d.ts +6 -0
- package/dist/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/components/Dot/index.d.ts +1 -0
- package/dist/components/Dot.js +15 -226
- package/dist/components/Drawer.js +39 -37
- package/dist/components/Dropdown.js +23 -657
- package/dist/components/Flex/Flex.d.ts +8 -0
- package/dist/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/components/Flex/FlexItem.d.ts +8 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/Flex.js +15 -1186
- package/dist/components/FormField.js +43 -617
- package/dist/components/Grid/Grid.d.ts +8 -0
- package/dist/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/components/Grid/GridItem.d.ts +3 -0
- package/dist/components/Grid/GridRow.d.ts +8 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid.js +15 -1709
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.interface.d.ts +51 -0
- package/dist/components/Group/index.d.ts +1 -0
- package/dist/components/Group.js +15 -315
- package/dist/components/Icon/Icon.d.ts +5 -0
- package/dist/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon.js +32 -642
- package/dist/components/Image.js +79 -87
- package/dist/components/Input.js +40 -49
- package/dist/components/InputMask.js +39 -48
- package/dist/components/InputPassword.js +61 -76
- package/dist/components/Label.js +105 -115
- package/dist/components/LanguageSelector.js +48 -62
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/components/Link/Link.interface.d.ts +57 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link.js +15 -505
- package/dist/components/List.js +23 -498
- package/dist/components/Loader.js +41 -56
- package/dist/components/Logo.js +40 -55
- package/dist/components/Menu.js +55 -58
- package/dist/components/MenuItem.js +102 -110
- package/dist/components/Modal.js +21 -402
- package/dist/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/components/Notification/NotificationList.d.ts +3 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Notification.js +28 -281
- package/dist/components/Overlay.js +37 -45
- package/dist/components/Page.js +66 -74
- package/dist/components/Pagination.js +225 -57
- package/dist/components/Radio.js +55 -70
- package/dist/components/RangeSlider.js +53 -62
- package/dist/components/Response.js +104 -120
- package/dist/components/ScrollOnDrag.js +71 -172
- package/dist/components/Scrollbar.js +15 -18
- package/dist/components/Search.js +35 -571
- package/dist/components/Segmented.js +54 -69
- package/dist/components/Select.js +274 -324
- package/dist/components/SiteMenu.js +33 -221
- package/dist/components/Swiper.js +140 -148
- package/dist/components/Switch.js +17 -25
- package/dist/components/Tab.js +34 -1089
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.interface.d.ts +53 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text.js +15 -362
- package/dist/components/Textarea.js +37 -46
- package/dist/components/Tile.js +100 -112
- package/dist/components/Title.js +66 -75
- package/dist/components/Tooltip.js +83 -93
- package/dist/components/Video.js +32 -40
- package/dist/components/Wrapper.js +67 -75
- package/dist/components/index.d.ts +58 -0
- package/dist/components.js +117 -0
- package/dist/constants/componentProps/align.js +1 -3
- package/dist/constants/componentProps/alignDirection.js +1 -3
- package/dist/constants/componentProps/alignment.js +1 -3
- package/dist/constants/componentProps/borderColor.js +1 -3
- package/dist/constants/componentProps/borderColorHover.js +1 -3
- package/dist/constants/componentProps/borderType.js +1 -3
- package/dist/constants/componentProps/borderWidth.js +1 -3
- package/dist/constants/componentProps/captionPosition.js +1 -3
- package/dist/constants/componentProps/direction.js +1 -3
- package/dist/constants/componentProps/emojiSize.js +1 -3
- package/dist/constants/componentProps/fill.js +1 -3
- package/dist/constants/componentProps/fillGradient.js +1 -3
- package/dist/constants/componentProps/fillHover.js +1 -3
- package/dist/constants/componentProps/fillType.js +1 -3
- package/dist/constants/componentProps/flexAlign.js +1 -3
- package/dist/constants/componentProps/flexJustifyContent.js +1 -3
- package/dist/constants/componentProps/flexWrap.js +1 -3
- package/dist/constants/componentProps/gridAlign.js +1 -3
- package/dist/constants/componentProps/gridAlignSelf.js +1 -3
- package/dist/constants/componentProps/gridJustifyItems.js +1 -3
- package/dist/constants/componentProps/gridJustifySelf.js +1 -3
- package/dist/constants/componentProps/height.js +1 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +1 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +1 -3
- package/dist/constants/componentProps/iconFillSize.js +1 -3
- package/dist/constants/componentProps/iconSize.js +1 -3
- package/dist/constants/componentProps/itemColor.js +1 -3
- package/dist/constants/componentProps/position.js +1 -3
- package/dist/constants/componentProps/resizeMode.js +1 -3
- package/dist/constants/componentProps/shape.js +1 -3
- package/dist/constants/componentProps/size.js +1 -3
- package/dist/constants/componentProps/sizeInterface.js +1 -3
- package/dist/constants/componentProps/sizePX.js +1 -3
- package/dist/constants/componentProps/stacking.js +1 -3
- package/dist/constants/componentProps/state.js +1 -3
- package/dist/constants/componentProps/strokeColor.js +1 -3
- package/dist/constants/componentProps/textAlign.js +1 -3
- package/dist/constants/componentProps/textColor.js +1 -3
- package/dist/constants/componentProps/textColorActive.js +1 -3
- package/dist/constants/componentProps/textColorHover.js +1 -3
- package/dist/constants/componentProps/textGradient.js +1 -3
- package/dist/constants/componentProps/textSize.js +1 -3
- package/dist/constants/componentProps/textStyle.js +1 -3
- package/dist/constants/componentProps/textTag.js +1 -3
- package/dist/constants/componentProps/textWeight.js +1 -3
- package/dist/constants/componentProps/textWrap.js +1 -3
- package/dist/constants/componentProps/titleSize.js +1 -3
- package/dist/constants/componentProps/type.js +1 -3
- package/dist/constants/componentProps/underline.js +1 -3
- package/dist/constants/componentProps/verticalContentAlign.js +1 -3
- package/dist/constants/componentProps/verticalResizeMode.js +1 -3
- package/dist/constants/componentProps/width.js +1 -3
- package/dist/constants/componentProps/wrap.js +1 -3
- package/dist/constants.js +53 -111
- package/dist/context/Notifications.js +17 -25
- package/dist/context/UIContext.js +21 -29
- package/dist/context/index.d.ts +2 -0
- package/dist/css/components/Avatar/Avatar.css +10 -0
- package/dist/css/components/Button/Button.css +13 -2
- package/dist/css/components/Dot/Dot.css +10 -4
- package/dist/css/components/Dropdown/Dropdown.css +41 -15
- package/dist/css/components/Pagination/Pagination.css +55 -32
- package/dist/css/components/Pagination/css/__item/pagination__item.css +27 -25
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +28 -13
- package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
- package/dist/css/components/Select/Select.css +8 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill_active_hover.css +6 -3
- package/dist/css/styles/text-color/text-color_active.css +4 -2
- package/dist/floating-ui.dom-BQ7wiYTi.js +1374 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/hooks/styleAttributes.js +2 -4
- package/dist/hooks/useDeviceTargetClass.js +13 -20
- package/dist/hooks/useMediaQueries.js +16 -10
- package/dist/hooks/useStyles.js +22 -30
- package/dist/index.d.ts +4 -0
- package/dist/jsx-runtime-ClDdVO4Q.js +1357 -0
- package/dist/types/componentProps/align.d.ts +1 -0
- package/dist/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/types/componentProps/alignment.d.ts +1 -0
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/types/componentProps/borderColor.d.ts +1 -0
- package/dist/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/types/componentProps/borderType.d.ts +1 -0
- package/dist/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/types/componentProps/direction.d.ts +1 -0
- package/dist/types/componentProps/elevation.d.ts +1 -0
- package/dist/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/types/componentProps/fill.d.ts +1 -0
- package/dist/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/types/componentProps/fillHover.d.ts +1 -0
- package/dist/types/componentProps/fillType.d.ts +1 -0
- package/dist/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/types/componentProps/height.d.ts +1 -0
- package/dist/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/types/componentProps/iconSize.d.ts +1 -0
- package/dist/types/componentProps/itemColor.d.ts +1 -0
- package/dist/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/types/componentProps/position.d.ts +1 -0
- package/dist/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/types/componentProps/shape.d.ts +1 -0
- package/dist/types/componentProps/size.d.ts +1 -0
- package/dist/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/types/componentProps/sizePX.d.ts +1 -0
- package/dist/types/componentProps/stacking.d.ts +1 -0
- package/dist/types/componentProps/state.d.ts +1 -0
- package/dist/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/types/componentProps/textAlign.d.ts +1 -0
- package/dist/types/componentProps/textColor.d.ts +1 -0
- package/dist/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/types/componentProps/textGradient.d.ts +1 -0
- package/dist/types/componentProps/textSize.d.ts +1 -0
- package/dist/types/componentProps/textStyle.d.ts +1 -0
- package/dist/types/componentProps/textTag.d.ts +1 -0
- package/dist/types/componentProps/textWeight.d.ts +1 -0
- package/dist/types/componentProps/textWrap.d.ts +1 -0
- package/dist/types/componentProps/titleSize.d.ts +1 -0
- package/dist/types/componentProps/type.d.ts +1 -0
- package/dist/types/componentProps/underline.d.ts +1 -0
- package/dist/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/width.d.ts +1 -0
- package/dist/types/componentProps/wrap.d.ts +1 -0
- package/dist/types/index.d.ts +56 -0
- package/package.json +86 -29
- package/dist/css/components/Background/Background.css +0 -11
- /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
|
@@ -1,68 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
require('lodash/upperFirst');
|
|
18
|
-
require('../hooks/styleAttributes.js');
|
|
19
|
-
|
|
20
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
-
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
23
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
24
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import fillProps from '../constants/componentProps/fill.js';
|
|
5
|
+
import fillGradientProps from '../constants/componentProps/fillGradient.js';
|
|
6
|
+
import captionPositionProps from '../constants/componentProps/captionPosition.js';
|
|
7
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
8
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
9
|
+
import 'lodash/castArray';
|
|
10
|
+
import 'lodash/camelCase';
|
|
11
|
+
import '../context/UIContext.js';
|
|
12
|
+
import '../hooks/useMediaQueries.js';
|
|
13
|
+
import 'react-responsive';
|
|
14
|
+
import 'lodash/maxBy';
|
|
15
|
+
import 'lodash/upperFirst';
|
|
16
|
+
import '../hooks/styleAttributes.js';
|
|
25
17
|
|
|
26
18
|
function Caption(props) {
|
|
27
19
|
const {
|
|
28
20
|
children,
|
|
29
21
|
className
|
|
30
22
|
} = props;
|
|
31
|
-
const fillClass = useDeviceTargetClass
|
|
23
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
32
24
|
prefix: 'fill_',
|
|
33
25
|
propsKey: 'fill'
|
|
34
26
|
});
|
|
35
|
-
const fillGradientClass = useDeviceTargetClass
|
|
27
|
+
const fillGradientClass = useDeviceTargetClass(props, {
|
|
36
28
|
prefix: 'fill-gradient_',
|
|
37
29
|
propsKey: 'fillGradient'
|
|
38
30
|
});
|
|
39
|
-
const positionClass = useDeviceTargetClass
|
|
31
|
+
const positionClass = useDeviceTargetClass(props, {
|
|
40
32
|
prefix: 'caption_position_',
|
|
41
33
|
propsKey: 'position'
|
|
42
34
|
});
|
|
43
35
|
const {
|
|
44
36
|
styles: captionStyles
|
|
45
|
-
} = useStyles
|
|
46
|
-
return /*#__PURE__*/React__default.
|
|
47
|
-
className:
|
|
37
|
+
} = useStyles(props);
|
|
38
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
39
|
+
className: clsx(className, 'caption', positionClass, fillClass, fillGradientClass),
|
|
48
40
|
style: captionStyles
|
|
49
41
|
}, children);
|
|
50
42
|
}
|
|
51
43
|
Caption.propTypes = {
|
|
52
|
-
children:
|
|
53
|
-
className:
|
|
54
|
-
fill:
|
|
55
|
-
fillMobile:
|
|
56
|
-
fillTablet:
|
|
57
|
-
fillDesktop:
|
|
58
|
-
fillGradient:
|
|
59
|
-
fillGradientMobile:
|
|
60
|
-
fillGradientTablet:
|
|
61
|
-
fillGradientDesktop:
|
|
62
|
-
position:
|
|
63
|
-
positionMobile:
|
|
64
|
-
positionTablet:
|
|
65
|
-
positionDesktop:
|
|
44
|
+
children: PropTypes.any,
|
|
45
|
+
className: PropTypes.string,
|
|
46
|
+
fill: PropTypes.oneOf(fillProps),
|
|
47
|
+
fillMobile: PropTypes.oneOf(fillProps),
|
|
48
|
+
fillTablet: PropTypes.oneOf(fillProps),
|
|
49
|
+
fillDesktop: PropTypes.oneOf(fillProps),
|
|
50
|
+
fillGradient: PropTypes.oneOf(fillGradientProps),
|
|
51
|
+
fillGradientMobile: PropTypes.oneOf(fillGradientProps),
|
|
52
|
+
fillGradientTablet: PropTypes.oneOf(fillGradientProps),
|
|
53
|
+
fillGradientDesktop: PropTypes.oneOf(fillGradientProps),
|
|
54
|
+
position: PropTypes.oneOf(captionPositionProps),
|
|
55
|
+
positionMobile: PropTypes.oneOf(captionPositionProps),
|
|
56
|
+
positionTablet: PropTypes.oneOf(captionPositionProps),
|
|
57
|
+
positionDesktop: PropTypes.oneOf(captionPositionProps)
|
|
66
58
|
};
|
|
67
59
|
Caption.__docgenInfo = {
|
|
68
60
|
"description": "",
|
|
@@ -194,4 +186,4 @@ Caption.__docgenInfo = {
|
|
|
194
186
|
}
|
|
195
187
|
};
|
|
196
188
|
|
|
197
|
-
|
|
189
|
+
export { Caption };
|
package/dist/components/Card.js
CHANGED
|
@@ -1,38 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
require('../context/UIContext.js');
|
|
24
|
-
require('../hooks/useMediaQueries.js');
|
|
25
|
-
require('react-responsive');
|
|
26
|
-
require('../constants/componentProps/borderColor.js');
|
|
27
|
-
require('../constants/componentProps/resizeMode.js');
|
|
28
|
-
require('../constants/componentProps/width.js');
|
|
29
|
-
require('lodash/castArray');
|
|
30
|
-
|
|
31
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
|
-
|
|
33
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
34
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
35
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import sizeProps from '../constants/componentProps/size.js';
|
|
5
|
+
import shapeProps from '../constants/componentProps/shape.js';
|
|
6
|
+
import horizontalResizeModeProps from '../constants/componentProps/horizontalResizeMode.js';
|
|
7
|
+
import { T as Text } from '../Text-BcGbRc14.js';
|
|
8
|
+
import { Image } from './Image.js';
|
|
9
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
10
|
+
import '../jsx-runtime-ClDdVO4Q.js';
|
|
11
|
+
import '../hooks/useStyles.js';
|
|
12
|
+
import 'lodash/camelCase';
|
|
13
|
+
import 'lodash/maxBy';
|
|
14
|
+
import 'lodash/upperFirst';
|
|
15
|
+
import '../hooks/styleAttributes.js';
|
|
16
|
+
import '../context/UIContext.js';
|
|
17
|
+
import '../hooks/useMediaQueries.js';
|
|
18
|
+
import 'react-responsive';
|
|
19
|
+
import '../constants/componentProps/borderColor.js';
|
|
20
|
+
import '../constants/componentProps/resizeMode.js';
|
|
21
|
+
import '../constants/componentProps/width.js';
|
|
22
|
+
import 'lodash/castArray';
|
|
36
23
|
|
|
37
24
|
function Card(props) {
|
|
38
25
|
const {
|
|
@@ -53,31 +40,31 @@ function Card(props) {
|
|
|
53
40
|
type,
|
|
54
41
|
onClick
|
|
55
42
|
} = props;
|
|
56
|
-
const shapeClass = useDeviceTargetClass
|
|
43
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
57
44
|
prefix: 'card_shape_',
|
|
58
45
|
propsKey: 'shape'
|
|
59
46
|
});
|
|
60
|
-
const widthClass = useDeviceTargetClass
|
|
47
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
61
48
|
prefix: 'resize-horizontal_',
|
|
62
49
|
propsKey: 'width'
|
|
63
50
|
});
|
|
64
|
-
return /*#__PURE__*/React__default.
|
|
65
|
-
className:
|
|
51
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
52
|
+
className: clsx(className, 'card', shapeClass, size && `card_size_${size}`, type && `card_type_${type}`, widthClass),
|
|
66
53
|
onClick: onClick
|
|
67
|
-
}, /*#__PURE__*/React__default.
|
|
54
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
68
55
|
className: "card__wrapper"
|
|
69
|
-
}, image, src && /*#__PURE__*/React__default.
|
|
56
|
+
}, image, src && /*#__PURE__*/React__default.createElement(Image, {
|
|
70
57
|
className: "card__image",
|
|
71
58
|
shape: imageShape,
|
|
72
59
|
src: src
|
|
73
|
-
}), /*#__PURE__*/React__default.
|
|
60
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
74
61
|
className: "card__data"
|
|
75
|
-
}, title && /*#__PURE__*/React__default.
|
|
62
|
+
}, title && /*#__PURE__*/React__default.createElement(Text, {
|
|
76
63
|
className: "card__data-title",
|
|
77
64
|
size: titleSize,
|
|
78
65
|
textColor: titleColor,
|
|
79
66
|
tag: titleTag
|
|
80
|
-
}, title), text && /*#__PURE__*/React__default.
|
|
67
|
+
}, title), text && /*#__PURE__*/React__default.createElement(Text, {
|
|
81
68
|
size: textSize,
|
|
82
69
|
tag: textTag,
|
|
83
70
|
textColor: textColor,
|
|
@@ -85,21 +72,21 @@ function Card(props) {
|
|
|
85
72
|
}, text)), children));
|
|
86
73
|
}
|
|
87
74
|
Card.propTypes = {
|
|
88
|
-
size:
|
|
89
|
-
children:
|
|
90
|
-
className:
|
|
91
|
-
type:
|
|
92
|
-
shape:
|
|
93
|
-
shapeDesktop:
|
|
94
|
-
shapeMobile:
|
|
95
|
-
shapeTablet:
|
|
96
|
-
image:
|
|
97
|
-
onClick:
|
|
98
|
-
imageShape:
|
|
99
|
-
width:
|
|
100
|
-
widthMobile:
|
|
101
|
-
widthTablet:
|
|
102
|
-
widthDesktop:
|
|
75
|
+
size: PropTypes.oneOf(PropTypes.oneOf(sizeProps)),
|
|
76
|
+
children: PropTypes.any,
|
|
77
|
+
className: PropTypes.string,
|
|
78
|
+
type: PropTypes.string,
|
|
79
|
+
shape: PropTypes.oneOf(shapeProps),
|
|
80
|
+
shapeDesktop: PropTypes.oneOf(shapeProps),
|
|
81
|
+
shapeMobile: PropTypes.oneOf(shapeProps),
|
|
82
|
+
shapeTablet: PropTypes.oneOf(shapeProps),
|
|
83
|
+
image: PropTypes.string,
|
|
84
|
+
onClick: PropTypes.func,
|
|
85
|
+
imageShape: PropTypes.oneOf(shapeProps),
|
|
86
|
+
width: PropTypes.oneOf(horizontalResizeModeProps),
|
|
87
|
+
widthMobile: PropTypes.oneOf(horizontalResizeModeProps),
|
|
88
|
+
widthTablet: PropTypes.oneOf(horizontalResizeModeProps),
|
|
89
|
+
widthDesktop: PropTypes.oneOf(horizontalResizeModeProps)
|
|
103
90
|
};
|
|
104
91
|
Card.defaultProps = {
|
|
105
92
|
textSize: 'p',
|
|
@@ -281,4 +268,4 @@ Card.__docgenInfo = {
|
|
|
281
268
|
}
|
|
282
269
|
};
|
|
283
270
|
|
|
284
|
-
|
|
271
|
+
export { Card };
|
package/dist/components/Cell.js
CHANGED
|
@@ -1,50 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
require('../constants/componentProps/strokeColor.js');
|
|
36
|
-
require('./Tooltip.js');
|
|
37
|
-
require('./Title.js');
|
|
38
|
-
require('../constants/componentProps/wrap.js');
|
|
39
|
-
require('../constants/componentProps/textColorActive.js');
|
|
40
|
-
require('../constants/componentProps/textColorHover.js');
|
|
41
|
-
require('lodash/castArray');
|
|
42
|
-
|
|
43
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
44
|
-
|
|
45
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
46
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
47
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { I as Icon } from '../Icon-Dn2eEZvb.js';
|
|
5
|
+
import { T as Text } from '../Text-BcGbRc14.js';
|
|
6
|
+
import { Label } from './Label.js';
|
|
7
|
+
import textSizeProps from '../constants/componentProps/textSize.js';
|
|
8
|
+
import textColorProps from '../constants/componentProps/textColor.js';
|
|
9
|
+
import textAlignProps from '../constants/componentProps/textAlign.js';
|
|
10
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
11
|
+
import '../Link-ByBzBRDH.js';
|
|
12
|
+
import '../jsx-runtime-ClDdVO4Q.js';
|
|
13
|
+
import '../hooks/useStyles.js';
|
|
14
|
+
import 'lodash/camelCase';
|
|
15
|
+
import 'lodash/maxBy';
|
|
16
|
+
import 'lodash/upperFirst';
|
|
17
|
+
import '../hooks/styleAttributes.js';
|
|
18
|
+
import '../context/UIContext.js';
|
|
19
|
+
import '../hooks/useMediaQueries.js';
|
|
20
|
+
import 'react-responsive';
|
|
21
|
+
import 'react-inlinesvg';
|
|
22
|
+
import './Tooltip.js';
|
|
23
|
+
import './Title.js';
|
|
24
|
+
import '../constants/componentProps/fill.js';
|
|
25
|
+
import '../constants/componentProps/textGradient.js';
|
|
26
|
+
import '../constants/componentProps/textStyle.js';
|
|
27
|
+
import '../constants/componentProps/textWeight.js';
|
|
28
|
+
import '../constants/componentProps/titleSize.js';
|
|
29
|
+
import '../constants/componentProps/type.js';
|
|
30
|
+
import '../constants/componentProps/wrap.js';
|
|
31
|
+
import '../constants/componentProps/size.js';
|
|
32
|
+
import '../constants/componentProps/shape.js';
|
|
33
|
+
import '../constants/componentProps/borderType.js';
|
|
34
|
+
import 'lodash/castArray';
|
|
48
35
|
|
|
49
36
|
function Cell(props) {
|
|
50
37
|
const {
|
|
@@ -104,65 +91,65 @@ function Cell(props) {
|
|
|
104
91
|
onClick,
|
|
105
92
|
onMouseEnter
|
|
106
93
|
} = props;
|
|
107
|
-
const fillClass = useDeviceTargetClass
|
|
94
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
108
95
|
prefix: 'fill_',
|
|
109
96
|
propsKey: 'fill'
|
|
110
97
|
});
|
|
111
|
-
const fillHoverClass = useDeviceTargetClass
|
|
98
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
112
99
|
prefix: 'fill_hover_',
|
|
113
100
|
propsKey: 'fillHover'
|
|
114
101
|
});
|
|
115
|
-
const fillActiveClass = useDeviceTargetClass
|
|
102
|
+
const fillActiveClass = useDeviceTargetClass(props, {
|
|
116
103
|
prefix: 'fill_active_',
|
|
117
104
|
propsKey: 'fillActive'
|
|
118
105
|
});
|
|
119
|
-
const fillDisabledClass = useDeviceTargetClass
|
|
106
|
+
const fillDisabledClass = useDeviceTargetClass(props, {
|
|
120
107
|
prefix: 'fill_disabled_',
|
|
121
108
|
propsKey: 'fillDisabled'
|
|
122
109
|
});
|
|
123
|
-
const shapeClass = useDeviceTargetClass
|
|
110
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
124
111
|
prefix: 'cell__wrapper_shape_',
|
|
125
112
|
propsKey: 'shape'
|
|
126
113
|
});
|
|
127
|
-
const bgFillClass = useDeviceTargetClass
|
|
114
|
+
const bgFillClass = useDeviceTargetClass(props, {
|
|
128
115
|
prefix: 'fill_',
|
|
129
116
|
propsKey: 'bgFill'
|
|
130
117
|
});
|
|
131
|
-
const bgFillHoverClass = useDeviceTargetClass
|
|
118
|
+
const bgFillHoverClass = useDeviceTargetClass(props, {
|
|
132
119
|
prefix: 'fill_hover_',
|
|
133
120
|
propsKey: 'bgFillHover'
|
|
134
121
|
});
|
|
135
|
-
const bgFillActiveClass = useDeviceTargetClass
|
|
122
|
+
const bgFillActiveClass = useDeviceTargetClass(props, {
|
|
136
123
|
prefix: 'fill_active_',
|
|
137
124
|
propsKey: 'bgFillActive'
|
|
138
125
|
});
|
|
139
|
-
const bgFillDisabledClass = useDeviceTargetClass
|
|
126
|
+
const bgFillDisabledClass = useDeviceTargetClass(props, {
|
|
140
127
|
prefix: 'fill_disabled_',
|
|
141
128
|
propsKey: 'bgFillDisabled'
|
|
142
129
|
});
|
|
143
|
-
const bgShapeClass = useDeviceTargetClass
|
|
130
|
+
const bgShapeClass = useDeviceTargetClass(props, {
|
|
144
131
|
prefix: 'cell_shape_',
|
|
145
132
|
propsKey: 'bgShape'
|
|
146
133
|
});
|
|
147
|
-
const directionClass = useDeviceTargetClass
|
|
134
|
+
const directionClass = useDeviceTargetClass(props, {
|
|
148
135
|
prefix: 'cell__wrapper_direction_',
|
|
149
136
|
propsKey: 'direction'
|
|
150
137
|
});
|
|
151
|
-
const widthClass = useDeviceTargetClass
|
|
138
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
152
139
|
prefix: 'width_',
|
|
153
140
|
propsKey: 'width'
|
|
154
141
|
});
|
|
155
|
-
return /*#__PURE__*/React__default.
|
|
156
|
-
className:
|
|
142
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
143
|
+
className: clsx(className, 'cell', mode && `cell_mode_${mode}`, size && `cell_size_${size}`, set && `cell_set_${set}`, bgFillClass, bgFillHoverClass, isActive && bgFillActiveClass, isDisabled && bgFillDisabledClass, bgShapeClass, widthClass, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'),
|
|
157
144
|
onClick: onClick,
|
|
158
145
|
onMouseEnter: onMouseEnter
|
|
159
|
-
}, before && /*#__PURE__*/React__default.
|
|
146
|
+
}, before && /*#__PURE__*/React__default.createElement("div", {
|
|
160
147
|
className: "cell__before"
|
|
161
|
-
}, before), /*#__PURE__*/React__default.
|
|
162
|
-
className:
|
|
163
|
-
}, title && /*#__PURE__*/React__default.
|
|
148
|
+
}, before), /*#__PURE__*/React__default.createElement("div", {
|
|
149
|
+
className: clsx('cell__wrapper', directionClass, fillClass, fillHoverClass, isActive && fillActiveClass, isDisabled && fillDisabledClass, shapeClass)
|
|
150
|
+
}, title && /*#__PURE__*/React__default.createElement("div", {
|
|
164
151
|
className: "cell__data"
|
|
165
|
-
}, /*#__PURE__*/React__default.
|
|
152
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
166
153
|
className: "cell__title",
|
|
167
154
|
size: titleTextSize,
|
|
168
155
|
tag: titleTag,
|
|
@@ -170,7 +157,7 @@ function Cell(props) {
|
|
|
170
157
|
textTruncate: titleTextTruncate,
|
|
171
158
|
textWeight: titleTextWeight,
|
|
172
159
|
textWrap: titleTextWrap
|
|
173
|
-
}, title), (titleIcon || titleIconSrc) && /*#__PURE__*/React__default.
|
|
160
|
+
}, title), (titleIcon || titleIconSrc) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
174
161
|
className: "cell__icon",
|
|
175
162
|
fill: titleIconFill,
|
|
176
163
|
fillSize: titleIconFillSize,
|
|
@@ -180,15 +167,15 @@ function Cell(props) {
|
|
|
180
167
|
imageSrc: titleIconSrc,
|
|
181
168
|
shape: titleIconShape,
|
|
182
169
|
SvgImage: titleIcon
|
|
183
|
-
}), showTitleLabel && /*#__PURE__*/React__default.
|
|
170
|
+
}), showTitleLabel && /*#__PURE__*/React__default.createElement(Label, {
|
|
184
171
|
appearance: titleLabelAppearance,
|
|
185
172
|
label: titleLabel,
|
|
186
173
|
labelTextSize: titleLabelTextSize,
|
|
187
174
|
shape: titleLabelShape,
|
|
188
175
|
size: titleLabelSize
|
|
189
|
-
})), value && /*#__PURE__*/React__default.
|
|
176
|
+
})), value && /*#__PURE__*/React__default.createElement("div", {
|
|
190
177
|
className: "cell__data"
|
|
191
|
-
}, /*#__PURE__*/React__default.
|
|
178
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
192
179
|
className: "cell__value",
|
|
193
180
|
size: valueTextSize,
|
|
194
181
|
tag: valueTag,
|
|
@@ -196,7 +183,7 @@ function Cell(props) {
|
|
|
196
183
|
textColor: valueTextColor,
|
|
197
184
|
textWeight: valueTextWeight,
|
|
198
185
|
textWrap: valueTextWrap
|
|
199
|
-
}, value), (valueIcon || valueIconSrc) && /*#__PURE__*/React__default.
|
|
186
|
+
}, value), (valueIcon || valueIconSrc) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
200
187
|
className: "cell__icon",
|
|
201
188
|
fill: valueIconFill,
|
|
202
189
|
fillSize: valueIconFillSize,
|
|
@@ -206,38 +193,38 @@ function Cell(props) {
|
|
|
206
193
|
imageSrc: valueIconSrc,
|
|
207
194
|
shape: valueIconShape,
|
|
208
195
|
SvgImage: valueIcon
|
|
209
|
-
}), showValueLabel && /*#__PURE__*/React__default.
|
|
196
|
+
}), showValueLabel && /*#__PURE__*/React__default.createElement(Label, {
|
|
210
197
|
appearance: valueLabelAppearance,
|
|
211
198
|
label: valueLabel,
|
|
212
199
|
labelTextSize: valueLabelTextSize,
|
|
213
200
|
shape: valueLabelShape,
|
|
214
201
|
size: valueLabelSize
|
|
215
|
-
}))), after && /*#__PURE__*/React__default.
|
|
202
|
+
}))), after && /*#__PURE__*/React__default.createElement("div", {
|
|
216
203
|
className: "cell__after"
|
|
217
204
|
}, after));
|
|
218
205
|
}
|
|
219
206
|
Cell.propTypes = {
|
|
220
|
-
after:
|
|
221
|
-
before:
|
|
222
|
-
children:
|
|
223
|
-
className:
|
|
224
|
-
isActive:
|
|
225
|
-
isDisabled:
|
|
226
|
-
title:
|
|
227
|
-
titleIcon:
|
|
228
|
-
titleIconFill:
|
|
229
|
-
titleIconStroke:
|
|
230
|
-
titleTextColor:
|
|
231
|
-
titleTextSize:
|
|
232
|
-
value:
|
|
233
|
-
valueIcon:
|
|
234
|
-
valueIconFill:
|
|
235
|
-
valueIconStroke:
|
|
236
|
-
valueTextAlign:
|
|
237
|
-
valueTextColor:
|
|
238
|
-
valueTextSize:
|
|
239
|
-
onClick:
|
|
240
|
-
onMouseEnter:
|
|
207
|
+
after: PropTypes.any,
|
|
208
|
+
before: PropTypes.any,
|
|
209
|
+
children: PropTypes.any,
|
|
210
|
+
className: PropTypes.string,
|
|
211
|
+
isActive: PropTypes.bool,
|
|
212
|
+
isDisabled: PropTypes.bool,
|
|
213
|
+
title: PropTypes.string,
|
|
214
|
+
titleIcon: PropTypes.any,
|
|
215
|
+
titleIconFill: PropTypes.string,
|
|
216
|
+
titleIconStroke: PropTypes.string,
|
|
217
|
+
titleTextColor: PropTypes.oneOf(textColorProps),
|
|
218
|
+
titleTextSize: PropTypes.oneOf(textSizeProps),
|
|
219
|
+
value: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
|
|
220
|
+
valueIcon: PropTypes.any,
|
|
221
|
+
valueIconFill: PropTypes.string,
|
|
222
|
+
valueIconStroke: PropTypes.string,
|
|
223
|
+
valueTextAlign: PropTypes.oneOf(textAlignProps),
|
|
224
|
+
valueTextColor: PropTypes.oneOf(textColorProps),
|
|
225
|
+
valueTextSize: PropTypes.oneOf(textSizeProps),
|
|
226
|
+
onClick: PropTypes.func,
|
|
227
|
+
onMouseEnter: PropTypes.func
|
|
241
228
|
};
|
|
242
229
|
Cell.defaultProps = {
|
|
243
230
|
isDisabled: false,
|
|
@@ -343,7 +330,7 @@ Cell.__docgenInfo = {
|
|
|
343
330
|
"type": {
|
|
344
331
|
"name": "enum",
|
|
345
332
|
"computed": true,
|
|
346
|
-
"value": "
|
|
333
|
+
"value": "textSizeProps"
|
|
347
334
|
},
|
|
348
335
|
"required": false
|
|
349
336
|
},
|
|
@@ -424,4 +411,4 @@ Cell.__docgenInfo = {
|
|
|
424
411
|
}
|
|
425
412
|
};
|
|
426
413
|
|
|
427
|
-
|
|
414
|
+
export { Cell };
|