@itcase/ui 1.1.5 → 1.1.7
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-JS45IVx7.js +204 -0
- package/dist/Breadcrumbs-KOoMbWmP.js +619 -0
- package/dist/ContextMenuItem-CF5L8xev.js +204 -0
- package/dist/DropdownItem-C0gYXEq6.js +644 -0
- package/dist/FlexItem-DHynUt6v.js +118 -0
- package/dist/GridRow-Buc4dsHd.js +1691 -0
- package/dist/Group-DhYXDvAJ.js +119 -0
- package/dist/ListItem-DYbK4_8c.js +479 -0
- package/dist/ModalLoader-DJVKhIZR.js +374 -0
- package/dist/NotificationList-KbxjrO3o.js +245 -0
- package/dist/SearchResult-DNPmzvp8.js +530 -0
- package/dist/SelectField-uEsQcoxF.js +571 -0
- package/dist/SiteMenuButton-DE_hCJUV.js +181 -0
- package/dist/TabGroup-CCR5jORT.js +1071 -0
- package/dist/Text-DffpwlYq.js +81 -0
- package/dist/cjs/Accordion-BDTE-Lkj.js +213 -0
- package/dist/cjs/Breadcrumbs-BV5q8aPJ.js +629 -0
- package/dist/cjs/ContextMenuItem-C8eg828K.js +213 -0
- package/dist/cjs/DropdownItem-DT8iQfVh.js +653 -0
- package/dist/cjs/FlexItem-CYXxJtYX.js +125 -0
- package/dist/cjs/GridRow-6wilpUeo.js +1701 -0
- package/dist/cjs/Group-DbzIk8kt.js +126 -0
- package/dist/cjs/ListItem-CTDoiG0C.js +488 -0
- package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
- package/dist/cjs/NotificationList-B6QbYA9H.js +255 -0
- package/dist/cjs/SearchResult-CdsV7oDb.js +540 -0
- package/dist/cjs/SelectField-DVCsVz6q.js +583 -0
- package/dist/cjs/SiteMenuButton-CVdX1ouh.js +190 -0
- package/dist/cjs/TabGroup-B1LUF9Hg.js +1081 -0
- package/dist/cjs/Text-CfBPhwqK.js +88 -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 +45 -0
- package/dist/cjs/components/Avatar.js +270 -0
- package/dist/cjs/components/Badge.js +206 -0
- package/dist/cjs/components/Breadcrumbs.js +48 -0
- package/dist/cjs/components/Button.js +563 -0
- package/dist/cjs/components/Caption.js +197 -0
- package/dist/cjs/components/Card.js +279 -0
- package/dist/cjs/components/Cell.js +426 -0
- package/dist/cjs/components/Checkbox.js +166 -0
- package/dist/cjs/components/Chips.js +393 -0
- package/dist/cjs/components/Choice.js +351 -0
- package/dist/cjs/components/Code.js +437 -0
- package/dist/cjs/components/ContextMenu.js +48 -0
- package/dist/cjs/components/CookiesWarning.js +186 -0
- package/dist/cjs/components/DadataHintField.js +1193 -0
- package/dist/cjs/components/DatePicker.js +14102 -0
- package/dist/{components/Background.js → cjs/components/Divider.js} +75 -83
- package/dist/cjs/components/Dot.js +226 -0
- package/dist/cjs/components/Drawer.js +274 -0
- package/dist/cjs/components/Dropdown.js +36 -0
- package/dist/cjs/components/Flex/Flex.d.ts +8 -0
- package/dist/cjs/components/Flex/Flex.interface.d.ts +116 -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 +59 -0
- package/dist/cjs/components/Grid.js +30 -0
- package/dist/cjs/components/Group/Group.d.ts +9 -0
- package/dist/cjs/components/Group/Group.interface.d.ts +49 -0
- package/dist/cjs/components/Group/index.d.ts +1 -0
- package/dist/cjs/components/Group.js +22 -0
- package/dist/cjs/components/Icon.js +641 -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 +260 -0
- package/dist/cjs/components/Label.js +643 -0
- package/dist/cjs/components/LanguageSelector.js +130 -0
- package/dist/cjs/components/Link.js +505 -0
- package/dist/cjs/components/List.js +31 -0
- package/dist/cjs/components/Loader.js +156 -0
- package/dist/cjs/components/Logo.js +182 -0
- package/dist/cjs/components/Menu.js +192 -0
- package/dist/cjs/components/MenuItem.js +680 -0
- package/dist/cjs/components/Modal.js +28 -0
- package/dist/cjs/components/Notification.js +37 -0
- package/dist/cjs/components/Overlay.js +197 -0
- package/dist/cjs/components/Page.js +422 -0
- package/dist/cjs/components/Pagination.js +372 -0
- package/dist/cjs/components/Radio.js +267 -0
- package/dist/cjs/components/RangeSlider.js +296 -0
- package/dist/cjs/components/Response.js +248 -0
- package/dist/cjs/components/ScrollOnDrag.js +214 -0
- package/dist/cjs/components/Scrollbar.js +71 -0
- package/dist/cjs/components/Search.js +48 -0
- package/dist/cjs/components/Segmented.js +235 -0
- package/dist/cjs/components/Select.js +8538 -0
- package/dist/cjs/components/SiteMenu.js +45 -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 +51 -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 +571 -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 +241 -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-ts/componentProps/align.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/alignDirection.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/alignment.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderColorHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderType.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/borderWidth.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/captionPosition.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/direction.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/elevation.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/emojiSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fill.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillGradient.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/fillType.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/flexWrap.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/height.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/iconFillSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/itemColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/justifyContent.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/position.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/resizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/shape.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/size.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/sizeInterface.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/sizePX.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/stacking.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/state.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/strokeColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColor.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColorActive.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textColorHover.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textGradient.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textStyle.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textTag.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textWeight.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/textWrap.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/titleSize.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/type.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/underline.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/width.d.ts +1 -0
- package/dist/cjs/constants-ts/componentProps/wrap.d.ts +1 -0
- package/dist/cjs/constants-ts/index.d.ts +56 -0
- package/dist/cjs/constants.js +111 -0
- package/dist/cjs/context/Notifications.js +122 -0
- package/dist/cjs/context/UIContext.js +56 -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 +145 -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/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 +38 -697
- package/dist/components/Avatar.js +75 -70
- package/dist/components/Badge.js +41 -56
- package/dist/components/Breadcrumbs.js +41 -656
- package/dist/components/Button.js +115 -107
- package/dist/components/Caption.js +37 -45
- package/dist/components/Card.js +47 -60
- package/dist/components/Cell.js +87 -96
- package/dist/components/Checkbox.js +41 -56
- package/dist/components/Chips.js +64 -78
- package/dist/components/Choice.js +81 -91
- package/dist/components/Code.js +40 -48
- package/dist/components/ContextMenu.js +41 -246
- package/dist/components/CookiesWarning.js +61 -73
- package/dist/components/DadataHintField.js +59 -65
- package/dist/components/DatePicker.js +5255 -425
- package/dist/components/Divider.js +47 -55
- package/dist/components/Dot.js +37 -45
- package/dist/components/Drawer.js +26 -34
- package/dist/components/Dropdown.js +29 -657
- package/dist/components/Flex/Flex.d.ts +8 -0
- package/dist/components/Flex/Flex.interface.d.ts +116 -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 -1185
- package/dist/components/FormField.js +49 -617
- package/dist/components/Grid.js +22 -1705
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.interface.d.ts +49 -0
- package/dist/components/Group/index.d.ts +1 -0
- package/dist/components/Group.js +15 -315
- package/dist/components/Icon.js +113 -124
- package/dist/components/Image.js +78 -94
- package/dist/components/Input.js +40 -49
- package/dist/components/InputMask.js +39 -48
- package/dist/components/InputPassword.js +66 -76
- package/dist/components/Label.js +104 -114
- package/dist/components/LanguageSelector.js +53 -62
- package/dist/components/Link.js +74 -84
- package/dist/components/List.js +24 -498
- package/dist/components/Loader.js +41 -56
- package/dist/components/Logo.js +47 -55
- package/dist/components/Menu.js +51 -58
- package/dist/components/MenuItem.js +103 -111
- package/dist/components/Modal.js +21 -402
- package/dist/components/Notification.js +29 -281
- package/dist/components/Overlay.js +37 -45
- package/dist/components/Page.js +66 -74
- package/dist/components/Pagination.js +223 -54
- package/dist/components/Radio.js +55 -70
- package/dist/components/RangeSlider.js +53 -62
- package/dist/components/Response.js +109 -122
- package/dist/components/ScrollOnDrag.js +80 -164
- package/dist/components/Scrollbar.js +15 -18
- package/dist/components/Search.js +40 -571
- package/dist/components/Segmented.js +54 -69
- package/dist/components/Select.js +281 -324
- package/dist/components/SiteMenu.js +38 -221
- package/dist/components/Swiper.js +183 -186
- 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 +51 -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 +103 -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 +124 -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-ts/componentProps/align.d.ts +1 -0
- package/dist/constants-ts/componentProps/alignDirection.d.ts +1 -0
- package/dist/constants-ts/componentProps/alignment.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderColorHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderType.d.ts +1 -0
- package/dist/constants-ts/componentProps/borderWidth.d.ts +1 -0
- package/dist/constants-ts/componentProps/captionPosition.d.ts +1 -0
- package/dist/constants-ts/componentProps/direction.d.ts +1 -0
- package/dist/constants-ts/componentProps/elevation.d.ts +1 -0
- package/dist/constants-ts/componentProps/emojiSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/fill.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillGradient.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/fillType.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexGrow.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/constants-ts/componentProps/flexWrap.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/constants-ts/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/constants-ts/componentProps/height.d.ts +1 -0
- package/dist/constants-ts/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/iconFillSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/iconSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/itemColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/justifyContent.d.ts +1 -0
- package/dist/constants-ts/componentProps/position.d.ts +1 -0
- package/dist/constants-ts/componentProps/resizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/shape.d.ts +1 -0
- package/dist/constants-ts/componentProps/size.d.ts +1 -0
- package/dist/constants-ts/componentProps/sizeInterface.d.ts +1 -0
- package/dist/constants-ts/componentProps/sizePX.d.ts +1 -0
- package/dist/constants-ts/componentProps/stacking.d.ts +1 -0
- package/dist/constants-ts/componentProps/state.d.ts +1 -0
- package/dist/constants-ts/componentProps/strokeColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/textAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColor.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColorActive.d.ts +1 -0
- package/dist/constants-ts/componentProps/textColorHover.d.ts +1 -0
- package/dist/constants-ts/componentProps/textGradient.d.ts +1 -0
- package/dist/constants-ts/componentProps/textSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/textStyle.d.ts +1 -0
- package/dist/constants-ts/componentProps/textTag.d.ts +1 -0
- package/dist/constants-ts/componentProps/textWeight.d.ts +1 -0
- package/dist/constants-ts/componentProps/textWrap.d.ts +1 -0
- package/dist/constants-ts/componentProps/titleSize.d.ts +1 -0
- package/dist/constants-ts/componentProps/type.d.ts +1 -0
- package/dist/constants-ts/componentProps/underline.d.ts +1 -0
- package/dist/constants-ts/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/constants-ts/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/constants-ts/componentProps/width.d.ts +1 -0
- package/dist/constants-ts/componentProps/wrap.d.ts +1 -0
- package/dist/constants-ts/index.d.ts +56 -0
- package/dist/constants.js +53 -111
- package/dist/context/Notifications.js +16 -25
- package/dist/context/UIContext.js +20 -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 +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +11 -10
- package/dist/css/components/Dropdown/Dropdown.css +41 -15
- package/dist/css/components/Grid/Grid.css +9 -17
- package/dist/css/components/MenuItem/MenuItem.css +5 -5
- package/dist/css/components/Modal/Modal.css +1 -0
- 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 +30 -5
- package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
- package/dist/css/components/Select/Select.css +9 -1
- package/dist/css/components/Select/css/__single-value/select__single-value.css +1 -1
- package/dist/css/components/Swiper/Swiper.css +2 -2
- 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 +145 -0
- package/dist/hooks/styleAttributes.js +5 -7
- 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/package.json +91 -40
- package/dist/_commonjsHelpers-CFO10eej.js +0 -7
- package/dist/css/components/Background/Background.css +0 -11
- /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
package/dist/components/Icon.js
CHANGED
|
@@ -1,49 +1,39 @@
|
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
require('../constants/componentProps/titleSize.js');
|
|
38
|
-
require('../constants/componentProps/wrap.js');
|
|
39
|
-
require('../constants/componentProps/textSize.js');
|
|
40
|
-
|
|
41
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
42
|
-
|
|
43
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
44
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
45
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
46
|
-
var SVG__default = /*#__PURE__*/_interopDefault(SVG);
|
|
1
|
+
import React__default, { useState, useMemo } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import SVG from 'react-inlinesvg';
|
|
5
|
+
import { LinkWrapper } from './Link.js';
|
|
6
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
+
import fillProps from '../constants/componentProps/fill.js';
|
|
9
|
+
import borderColorProps from '../constants/componentProps/borderColor.js';
|
|
10
|
+
import borderTypeProps from '../constants/componentProps/borderType.js';
|
|
11
|
+
import iconSizeProps from '../constants/componentProps/iconSize.js';
|
|
12
|
+
import shapeProps from '../constants/componentProps/shape.js';
|
|
13
|
+
import strokeColorProps from '../constants/componentProps/strokeColor.js';
|
|
14
|
+
import { Tooltip } from './Tooltip.js';
|
|
15
|
+
import '../constants/componentProps/size.js';
|
|
16
|
+
import '../constants/componentProps/textColor.js';
|
|
17
|
+
import '../constants/componentProps/textGradient.js';
|
|
18
|
+
import '../constants/componentProps/textStyle.js';
|
|
19
|
+
import '../constants/componentProps/textWeight.js';
|
|
20
|
+
import '../constants/componentProps/type.js';
|
|
21
|
+
import '../constants/componentProps/underline.js';
|
|
22
|
+
import 'lodash/castArray';
|
|
23
|
+
import 'lodash/camelCase';
|
|
24
|
+
import '../context/UIContext.js';
|
|
25
|
+
import '../hooks/useMediaQueries.js';
|
|
26
|
+
import 'react-responsive';
|
|
27
|
+
import 'lodash/maxBy';
|
|
28
|
+
import 'lodash/upperFirst';
|
|
29
|
+
import '../hooks/styleAttributes.js';
|
|
30
|
+
import '../Text-DffpwlYq.js';
|
|
31
|
+
import '../jsx-runtime-ClDdVO4Q.js';
|
|
32
|
+
import './Title.js';
|
|
33
|
+
import '../constants/componentProps/textAlign.js';
|
|
34
|
+
import '../constants/componentProps/titleSize.js';
|
|
35
|
+
import '../constants/componentProps/wrap.js';
|
|
36
|
+
import '../constants/componentProps/textSize.js';
|
|
47
37
|
|
|
48
38
|
const iconConfig = {
|
|
49
39
|
appearance: {},
|
|
@@ -51,8 +41,8 @@ const iconConfig = {
|
|
|
51
41
|
iconConfig.appearance = newComponent;
|
|
52
42
|
}
|
|
53
43
|
};
|
|
54
|
-
const Icon = /*#__PURE__*/React__default.
|
|
55
|
-
const [isTooltipVisible, setIsTooltipVisible] =
|
|
44
|
+
const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
|
|
45
|
+
const [isTooltipVisible, setIsTooltipVisible] = useState(false);
|
|
56
46
|
const {
|
|
57
47
|
Badge,
|
|
58
48
|
SvgImage,
|
|
@@ -76,7 +66,7 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
76
66
|
width,
|
|
77
67
|
onClick
|
|
78
68
|
} = props;
|
|
79
|
-
const svgSizes =
|
|
69
|
+
const svgSizes = useMemo(() => {
|
|
80
70
|
const sizes = {};
|
|
81
71
|
if (width) {
|
|
82
72
|
sizes.width = width;
|
|
@@ -86,100 +76,100 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
86
76
|
}
|
|
87
77
|
return sizes;
|
|
88
78
|
}, [height, width]);
|
|
89
|
-
const cursorClass = useDeviceTargetClass
|
|
79
|
+
const cursorClass = useDeviceTargetClass(props, {
|
|
90
80
|
prefix: 'cursor_',
|
|
91
81
|
propsKey: 'cursor'
|
|
92
82
|
});
|
|
93
|
-
const fillClass = useDeviceTargetClass
|
|
83
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
94
84
|
prefix: 'fill_',
|
|
95
85
|
propsKey: 'fill'
|
|
96
86
|
});
|
|
97
|
-
const fillHoverClass = useDeviceTargetClass
|
|
87
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
98
88
|
prefix: 'fill_hover_',
|
|
99
89
|
propsKey: 'fillHover'
|
|
100
90
|
});
|
|
101
|
-
const fillDisabledClass = useDeviceTargetClass
|
|
91
|
+
const fillDisabledClass = useDeviceTargetClass(props, {
|
|
102
92
|
prefix: 'fill_disabled_',
|
|
103
93
|
propsKey: 'fillDisabled'
|
|
104
94
|
});
|
|
105
|
-
const fillSizeClass = useDeviceTargetClass
|
|
95
|
+
const fillSizeClass = useDeviceTargetClass(props, {
|
|
106
96
|
prefix: 'icon_fill_size_',
|
|
107
97
|
propsKey: 'fillSize'
|
|
108
98
|
});
|
|
109
|
-
const iconFillClass = useDeviceTargetClass
|
|
99
|
+
const iconFillClass = useDeviceTargetClass(props, {
|
|
110
100
|
prefix: 'icon_fill_',
|
|
111
101
|
propsKey: 'iconFill'
|
|
112
102
|
});
|
|
113
|
-
const iconFillHoverClass = useDeviceTargetClass
|
|
103
|
+
const iconFillHoverClass = useDeviceTargetClass(props, {
|
|
114
104
|
prefix: 'icon_fill_hover_',
|
|
115
105
|
propsKey: 'iconFillHover'
|
|
116
106
|
});
|
|
117
|
-
const iconFillDisabledClass = useDeviceTargetClass
|
|
107
|
+
const iconFillDisabledClass = useDeviceTargetClass(props, {
|
|
118
108
|
prefix: 'icon_fill_disabled_',
|
|
119
109
|
propsKey: 'iconFillDisabled'
|
|
120
110
|
});
|
|
121
|
-
const iconStrokeClass = useDeviceTargetClass
|
|
111
|
+
const iconStrokeClass = useDeviceTargetClass(props, {
|
|
122
112
|
prefix: 'icon_stroke_',
|
|
123
113
|
propsKey: 'iconStroke'
|
|
124
114
|
});
|
|
125
|
-
const iconStrokeHoverClass = useDeviceTargetClass
|
|
115
|
+
const iconStrokeHoverClass = useDeviceTargetClass(props, {
|
|
126
116
|
prefix: 'icon_stroke_hover_',
|
|
127
117
|
propsKey: 'iconStrokeHover'
|
|
128
118
|
});
|
|
129
|
-
const iconStrokeDisabledClass = useDeviceTargetClass
|
|
119
|
+
const iconStrokeDisabledClass = useDeviceTargetClass(props, {
|
|
130
120
|
prefix: 'icon_stroke_disabled_',
|
|
131
121
|
propsKey: 'iconStrokeDisabled'
|
|
132
122
|
});
|
|
133
|
-
const iconSizeClass = useDeviceTargetClass
|
|
123
|
+
const iconSizeClass = useDeviceTargetClass(props, {
|
|
134
124
|
prefix: 'icon_size_',
|
|
135
125
|
propsKey: 'iconSize'
|
|
136
126
|
});
|
|
137
|
-
const shapeClass = useDeviceTargetClass
|
|
127
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
138
128
|
prefix: 'icon_shape_',
|
|
139
129
|
propsKey: 'shape'
|
|
140
130
|
});
|
|
141
|
-
const borderColorClass = useDeviceTargetClass
|
|
131
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
142
132
|
prefix: 'border-color_',
|
|
143
133
|
propsKey: 'borderColor'
|
|
144
134
|
});
|
|
145
|
-
const borderColorHoverClass = useDeviceTargetClass
|
|
135
|
+
const borderColorHoverClass = useDeviceTargetClass(props, {
|
|
146
136
|
prefix: 'border-color_hover_',
|
|
147
137
|
propsKey: 'borderColorHover'
|
|
148
138
|
});
|
|
149
|
-
const borderWidthClass = useDeviceTargetClass
|
|
139
|
+
const borderWidthClass = useDeviceTargetClass(props, {
|
|
150
140
|
prefix: 'border-width_',
|
|
151
141
|
propsKey: 'borderWidth'
|
|
152
142
|
});
|
|
153
|
-
const borderTypeClass = useDeviceTargetClass
|
|
143
|
+
const borderTypeClass = useDeviceTargetClass(props, {
|
|
154
144
|
prefix: 'border_type_',
|
|
155
145
|
propsKey: 'borderType'
|
|
156
146
|
});
|
|
157
|
-
const alignmentClass = useDeviceTargetClass
|
|
147
|
+
const alignmentClass = useDeviceTargetClass(props, {
|
|
158
148
|
prefix: 'alignment_',
|
|
159
149
|
propsKey: 'alignment'
|
|
160
150
|
});
|
|
161
151
|
const {
|
|
162
152
|
styles: iconStyles
|
|
163
|
-
} = useStyles
|
|
164
|
-
const ImageComponent =
|
|
153
|
+
} = useStyles(props);
|
|
154
|
+
const ImageComponent = useMemo(() => {
|
|
165
155
|
if (SvgImage) {
|
|
166
|
-
return /*#__PURE__*/React__default.
|
|
156
|
+
return /*#__PURE__*/React__default.createElement(SvgImage, svgSizes);
|
|
167
157
|
}
|
|
168
158
|
if (imageSrc) {
|
|
169
159
|
if (imageSrc.endsWith('.svg')) {
|
|
170
|
-
return /*#__PURE__*/React__default.
|
|
160
|
+
return /*#__PURE__*/React__default.createElement(SVG, {
|
|
171
161
|
preProcessor: removeFillStroke,
|
|
172
162
|
src: imageSrc
|
|
173
163
|
});
|
|
174
164
|
}
|
|
175
|
-
return /*#__PURE__*/React__default.
|
|
165
|
+
return /*#__PURE__*/React__default.createElement("img", {
|
|
176
166
|
src: imageSrc
|
|
177
167
|
});
|
|
178
168
|
}
|
|
179
169
|
return null;
|
|
180
170
|
}, [SvgImage, svgSizes, imageSrc]);
|
|
181
|
-
return /*#__PURE__*/React__default.
|
|
182
|
-
className:
|
|
171
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
172
|
+
className: clsx(className, 'icon', fillClass, fillHoverClass, fillSizeClass, fillDisabledClass, iconFillClass, iconFillHoverClass, iconFillDisabledClass, shapeClass, iconStrokeClass, iconStrokeHoverClass, iconStrokeDisabledClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, cursorClass, Badge && 'icon_type_with-badge', (link || href || onClick) && 'cursor_type_pointer'),
|
|
183
173
|
"data-tour": dataTour,
|
|
184
174
|
id: id,
|
|
185
175
|
ref: ref,
|
|
@@ -187,15 +177,15 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
187
177
|
onClick: onClick,
|
|
188
178
|
onMouseEnter: () => setIsTooltipVisible(true),
|
|
189
179
|
onMouseLeave: () => setIsTooltipVisible(false)
|
|
190
|
-
}, /*#__PURE__*/React__default.
|
|
191
|
-
className:
|
|
180
|
+
}, /*#__PURE__*/React__default.createElement(LinkWrapper, {
|
|
181
|
+
className: clsx(link || href ? 'icon__link' : 'icon__item', iconSizeClass),
|
|
192
182
|
DefaultComponent: "div",
|
|
193
183
|
href: link || href,
|
|
194
184
|
rel: linkRel,
|
|
195
185
|
target: linkTarget
|
|
196
|
-
}, before, ImageComponent, after, Badge, isTooltipVisible && showTooltip && /*#__PURE__*/React__default.
|
|
186
|
+
}, before, ImageComponent, after, Badge, isTooltipVisible && showTooltip && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
197
187
|
appearance: tooltipAppearance,
|
|
198
|
-
className:
|
|
188
|
+
className: clsx(className, 'icon__tooltip', alignmentClass),
|
|
199
189
|
text: tooltipText,
|
|
200
190
|
textSize: tooltipTextSize,
|
|
201
191
|
title: tooltipTitle,
|
|
@@ -203,51 +193,51 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
203
193
|
})));
|
|
204
194
|
});
|
|
205
195
|
Icon.propTypes = {
|
|
206
|
-
after:
|
|
196
|
+
after: PropTypes.any,
|
|
207
197
|
// "bool" type is valid for condition constructions, e.g. "Boolean(some) && <Badge>"
|
|
208
|
-
Badge:
|
|
209
|
-
before:
|
|
210
|
-
borderColor:
|
|
211
|
-
borderType:
|
|
212
|
-
className:
|
|
213
|
-
dataTour:
|
|
214
|
-
fill:
|
|
215
|
-
fillDesktop:
|
|
216
|
-
fillMobile:
|
|
217
|
-
fillSize:
|
|
218
|
-
fillSizeDesktop:
|
|
219
|
-
fillSizeMobile:
|
|
220
|
-
fillSizeTablet:
|
|
221
|
-
fillTablet:
|
|
222
|
-
height:
|
|
223
|
-
href:
|
|
224
|
-
iconStroke:
|
|
225
|
-
iconStrokeDesktop:
|
|
226
|
-
iconStrokeMobile:
|
|
227
|
-
iconStrokeTablet:
|
|
228
|
-
id:
|
|
229
|
-
imageSrc:
|
|
230
|
-
link:
|
|
231
|
-
LinkComponent:
|
|
232
|
-
linkRel:
|
|
233
|
-
linkTarget:
|
|
234
|
-
shape:
|
|
235
|
-
shapeDesktop:
|
|
236
|
-
shapeMobile:
|
|
237
|
-
shapeTablet:
|
|
238
|
-
showTooltip:
|
|
239
|
-
size:
|
|
240
|
-
sizeDesktop:
|
|
241
|
-
sizeMobile:
|
|
242
|
-
sizeTablet:
|
|
243
|
-
SvgImage:
|
|
244
|
-
tooltipAppearance:
|
|
245
|
-
tooltipText:
|
|
246
|
-
tooltipTextSize:
|
|
247
|
-
tooltipTitle:
|
|
248
|
-
tooltipTitleSize:
|
|
249
|
-
width:
|
|
250
|
-
onClick:
|
|
198
|
+
Badge: PropTypes.oneOfType([PropTypes.element, PropTypes.bool]),
|
|
199
|
+
before: PropTypes.any,
|
|
200
|
+
borderColor: PropTypes.oneOf(borderColorProps),
|
|
201
|
+
borderType: PropTypes.oneOf(borderTypeProps),
|
|
202
|
+
className: PropTypes.string,
|
|
203
|
+
dataTour: PropTypes.string,
|
|
204
|
+
fill: PropTypes.oneOf(fillProps),
|
|
205
|
+
fillDesktop: PropTypes.oneOf(fillProps),
|
|
206
|
+
fillMobile: PropTypes.oneOf(fillProps),
|
|
207
|
+
fillSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
208
|
+
fillSizeDesktop: PropTypes.string,
|
|
209
|
+
fillSizeMobile: PropTypes.string,
|
|
210
|
+
fillSizeTablet: PropTypes.string,
|
|
211
|
+
fillTablet: PropTypes.oneOf(fillProps),
|
|
212
|
+
height: PropTypes.string,
|
|
213
|
+
href: PropTypes.string,
|
|
214
|
+
iconStroke: PropTypes.oneOf(strokeColorProps),
|
|
215
|
+
iconStrokeDesktop: PropTypes.oneOf(strokeColorProps),
|
|
216
|
+
iconStrokeMobile: PropTypes.oneOf(strokeColorProps),
|
|
217
|
+
iconStrokeTablet: PropTypes.oneOf(strokeColorProps),
|
|
218
|
+
id: PropTypes.string,
|
|
219
|
+
imageSrc: PropTypes.string,
|
|
220
|
+
link: PropTypes.string,
|
|
221
|
+
LinkComponent: PropTypes.any,
|
|
222
|
+
linkRel: PropTypes.string,
|
|
223
|
+
linkTarget: PropTypes.string,
|
|
224
|
+
shape: PropTypes.oneOf(shapeProps),
|
|
225
|
+
shapeDesktop: PropTypes.oneOf(shapeProps),
|
|
226
|
+
shapeMobile: PropTypes.oneOf(shapeProps),
|
|
227
|
+
shapeTablet: PropTypes.oneOf(shapeProps),
|
|
228
|
+
showTooltip: PropTypes.bool,
|
|
229
|
+
size: PropTypes.oneOf(iconSizeProps),
|
|
230
|
+
sizeDesktop: PropTypes.oneOf(iconSizeProps),
|
|
231
|
+
sizeMobile: PropTypes.oneOf(iconSizeProps),
|
|
232
|
+
sizeTablet: PropTypes.oneOf(iconSizeProps),
|
|
233
|
+
SvgImage: PropTypes.oneOfType([PropTypes.elementType, PropTypes.func, PropTypes.object]),
|
|
234
|
+
tooltipAppearance: PropTypes.string,
|
|
235
|
+
tooltipText: PropTypes.string,
|
|
236
|
+
tooltipTextSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
237
|
+
tooltipTitle: PropTypes.string,
|
|
238
|
+
tooltipTitleSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
239
|
+
width: PropTypes.string,
|
|
240
|
+
onClick: PropTypes.func
|
|
251
241
|
};
|
|
252
242
|
Icon.defaultProps = {
|
|
253
243
|
LinkComponent: 'a'
|
|
@@ -638,5 +628,4 @@ Icon.__docgenInfo = {
|
|
|
638
628
|
}
|
|
639
629
|
};
|
|
640
630
|
|
|
641
|
-
|
|
642
|
-
exports.iconConfig = iconConfig;
|
|
631
|
+
export { Icon, iconConfig };
|
package/dist/components/Image.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
require('react-responsive');
|
|
19
|
-
require('lodash/castArray');
|
|
20
|
-
|
|
21
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
-
|
|
23
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
24
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
25
|
-
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 borderColorProps from '../constants/componentProps/borderColor.js';
|
|
5
|
+
import resizeModeProps from '../constants/componentProps/resizeMode.js';
|
|
6
|
+
import shapeProps from '../constants/componentProps/shape.js';
|
|
7
|
+
import widthProps from '../constants/componentProps/width.js';
|
|
8
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
9
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
10
|
+
import 'lodash/camelCase';
|
|
11
|
+
import 'lodash/maxBy';
|
|
12
|
+
import 'lodash/upperFirst';
|
|
13
|
+
import '../hooks/styleAttributes.js';
|
|
14
|
+
import '../context/UIContext.js';
|
|
15
|
+
import '../hooks/useMediaQueries.js';
|
|
16
|
+
import 'react-responsive';
|
|
17
|
+
import 'lodash/castArray';
|
|
26
18
|
|
|
27
19
|
function Image(props) {
|
|
28
20
|
const {
|
|
@@ -42,55 +34,55 @@ function Image(props) {
|
|
|
42
34
|
onClick,
|
|
43
35
|
onError
|
|
44
36
|
} = props;
|
|
45
|
-
const cursorClass = useDeviceTargetClass
|
|
37
|
+
const cursorClass = useDeviceTargetClass(props, {
|
|
46
38
|
prefix: 'cursor_',
|
|
47
39
|
propsKey: 'cursor'
|
|
48
40
|
});
|
|
49
|
-
const horizontalAlignClass = useDeviceTargetClass
|
|
41
|
+
const horizontalAlignClass = useDeviceTargetClass(props, {
|
|
50
42
|
prefix: 'image_horizontal-align_',
|
|
51
43
|
propsKey: 'horizontalAlign'
|
|
52
44
|
});
|
|
53
|
-
const verticalAlignClass = useDeviceTargetClass
|
|
45
|
+
const verticalAlignClass = useDeviceTargetClass(props, {
|
|
54
46
|
prefix: 'image_vertical-align_',
|
|
55
47
|
propsKey: 'verticalContentAlign'
|
|
56
48
|
});
|
|
57
|
-
const shapeClass = useDeviceTargetClass
|
|
49
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
58
50
|
prefix: 'image_shape_',
|
|
59
51
|
propsKey: 'shape'
|
|
60
52
|
});
|
|
61
|
-
const resizeModeClass = useDeviceTargetClass
|
|
53
|
+
const resizeModeClass = useDeviceTargetClass(props, {
|
|
62
54
|
prefix: 'image_resize-mode_',
|
|
63
55
|
propsKey: 'resizeMode'
|
|
64
56
|
});
|
|
65
|
-
const widthClass = useDeviceTargetClass
|
|
57
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
66
58
|
prefix: 'width_',
|
|
67
59
|
propsKey: 'width'
|
|
68
60
|
});
|
|
69
|
-
const heightClass = useDeviceTargetClass
|
|
61
|
+
const heightClass = useDeviceTargetClass(props, {
|
|
70
62
|
prefix: 'height_',
|
|
71
63
|
propsKey: 'height'
|
|
72
64
|
});
|
|
73
|
-
const imageWidthClass = useDeviceTargetClass
|
|
65
|
+
const imageWidthClass = useDeviceTargetClass(props, {
|
|
74
66
|
prefix: 'width_',
|
|
75
67
|
propsKey: 'imageWidth'
|
|
76
68
|
});
|
|
77
|
-
const imageHeightClass = useDeviceTargetClass
|
|
69
|
+
const imageHeightClass = useDeviceTargetClass(props, {
|
|
78
70
|
prefix: 'height_',
|
|
79
71
|
propsKey: 'imageHeight'
|
|
80
72
|
});
|
|
81
|
-
const borderClass = useDeviceTargetClass
|
|
73
|
+
const borderClass = useDeviceTargetClass(props, {
|
|
82
74
|
prefix: 'border-color_',
|
|
83
75
|
propsKey: 'border'
|
|
84
76
|
});
|
|
85
|
-
const borderColorImageClass = useDeviceTargetClass
|
|
77
|
+
const borderColorImageClass = useDeviceTargetClass(props, {
|
|
86
78
|
prefix: 'border-color-image_',
|
|
87
79
|
propsKey: 'borderColorImage'
|
|
88
80
|
});
|
|
89
|
-
const fillClass = useDeviceTargetClass
|
|
81
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
90
82
|
prefix: 'fill_',
|
|
91
83
|
propsKey: 'fill'
|
|
92
84
|
});
|
|
93
|
-
const fillHoverClass = useDeviceTargetClass
|
|
85
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
94
86
|
prefix: 'fill_hover_',
|
|
95
87
|
propsKey: 'fillHover'
|
|
96
88
|
});
|
|
@@ -98,65 +90,64 @@ function Image(props) {
|
|
|
98
90
|
styles,
|
|
99
91
|
wrapper: wrapperStyles,
|
|
100
92
|
image: imageStyles
|
|
101
|
-
} = useStyles
|
|
102
|
-
return /*#__PURE__*/React__default.
|
|
103
|
-
className:
|
|
93
|
+
} = useStyles(props);
|
|
94
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
95
|
+
className: clsx(className, 'image', mode && `image_mode_${mode}`, type && `image_type_${type}`, cursorClass, horizontalAlignClass, verticalAlignClass, shapeClass, fillClass, fillHoverClass, resizeModeClass, widthClass, heightClass),
|
|
104
96
|
onClick: onClick,
|
|
105
97
|
style: styles
|
|
106
|
-
}, before, /*#__PURE__*/React__default.
|
|
107
|
-
className:
|
|
98
|
+
}, before, /*#__PURE__*/React__default.createElement("div", {
|
|
99
|
+
className: clsx('image__wrapper', imageWrapperClassName),
|
|
108
100
|
style: wrapperStyles
|
|
109
|
-
}, /*#__PURE__*/React__default.
|
|
101
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
110
102
|
alt: alt,
|
|
111
103
|
src: src,
|
|
112
104
|
style: imageStyles,
|
|
113
105
|
title: title,
|
|
114
|
-
className:
|
|
106
|
+
className: clsx('image__item', imageWidthClass, imageHeightClass, imageClassName, borderClass, borderColorImageClass),
|
|
115
107
|
onError: onError
|
|
116
108
|
}), overlay, caption, children), after);
|
|
117
109
|
}
|
|
118
110
|
Image.propTypes = {
|
|
119
|
-
after:
|
|
120
|
-
alt:
|
|
121
|
-
before:
|
|
122
|
-
border:
|
|
123
|
-
borderColorImage:
|
|
124
|
-
borderColorImageDesktop:
|
|
125
|
-
borderColorImageMobile:
|
|
126
|
-
borderColorImageTablet:
|
|
127
|
-
overlay:
|
|
128
|
-
caption:
|
|
129
|
-
children:
|
|
130
|
-
className:
|
|
131
|
-
imageClassName:
|
|
132
|
-
imgWrapClassName:
|
|
133
|
-
onClick:
|
|
134
|
-
resizeMode:
|
|
135
|
-
resizeModeDesktop:
|
|
136
|
-
resizeModeMobile:
|
|
137
|
-
resizeModeTablet:
|
|
138
|
-
shape:
|
|
139
|
-
shapeDesktop:
|
|
140
|
-
shapeMobile:
|
|
141
|
-
shapeTablet:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
с
|
|
148
|
-
с
|
|
149
|
-
с
|
|
150
|
-
с
|
|
151
|
-
с
|
|
152
|
-
с
|
|
153
|
-
с
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
onError: PropTypes__default.default.func
|
|
111
|
+
after: PropTypes.any,
|
|
112
|
+
alt: PropTypes.string,
|
|
113
|
+
before: PropTypes.any,
|
|
114
|
+
border: PropTypes.string,
|
|
115
|
+
borderColorImage: PropTypes.oneOf(borderColorProps),
|
|
116
|
+
borderColorImageDesktop: PropTypes.oneOf(borderColorProps),
|
|
117
|
+
borderColorImageMobile: PropTypes.oneOf(borderColorProps),
|
|
118
|
+
borderColorImageTablet: PropTypes.oneOf(borderColorProps),
|
|
119
|
+
overlay: PropTypes.any,
|
|
120
|
+
caption: PropTypes.any,
|
|
121
|
+
children: PropTypes.any,
|
|
122
|
+
className: PropTypes.string,
|
|
123
|
+
imageClassName: PropTypes.string,
|
|
124
|
+
imgWrapClassName: PropTypes.string,
|
|
125
|
+
onClick: PropTypes.func,
|
|
126
|
+
resizeMode: PropTypes.oneOf(resizeModeProps),
|
|
127
|
+
resizeModeDesktop: PropTypes.oneOf(resizeModeProps),
|
|
128
|
+
resizeModeMobile: PropTypes.oneOf(resizeModeProps),
|
|
129
|
+
resizeModeTablet: PropTypes.oneOf(resizeModeProps),
|
|
130
|
+
shape: PropTypes.oneOf(shapeProps),
|
|
131
|
+
shapeDesktop: PropTypes.oneOf(shapeProps),
|
|
132
|
+
shapeMobile: PropTypes.oneOf(shapeProps),
|
|
133
|
+
shapeTablet: PropTypes.oneOf(shapeProps),
|
|
134
|
+
src: PropTypes.string,
|
|
135
|
+
style: PropTypes.object,
|
|
136
|
+
title: PropTypes.string,
|
|
137
|
+
type: PropTypes.string,
|
|
138
|
+
сontentX: PropTypes.string,
|
|
139
|
+
сontentXDesktop: PropTypes.string,
|
|
140
|
+
сontentXMobile: PropTypes.string,
|
|
141
|
+
сontentXTablet: PropTypes.string,
|
|
142
|
+
сontentY: PropTypes.string,
|
|
143
|
+
сontentYDesktop: PropTypes.string,
|
|
144
|
+
сontentYMobile: PropTypes.string,
|
|
145
|
+
сontentYTablet: PropTypes.string,
|
|
146
|
+
imageWidth: PropTypes.oneOf(widthProps),
|
|
147
|
+
imageWidthMobile: PropTypes.oneOf(widthProps),
|
|
148
|
+
imageWidthTablet: PropTypes.oneOf(widthProps),
|
|
149
|
+
imageWidthDesktop: PropTypes.oneOf(widthProps),
|
|
150
|
+
onError: PropTypes.func
|
|
160
151
|
};
|
|
161
152
|
Image.__docgenInfo = {
|
|
162
153
|
"description": "",
|
|
@@ -348,13 +339,6 @@ Image.__docgenInfo = {
|
|
|
348
339
|
},
|
|
349
340
|
"required": false
|
|
350
341
|
},
|
|
351
|
-
"size": {
|
|
352
|
-
"description": "",
|
|
353
|
-
"type": {
|
|
354
|
-
"name": "string"
|
|
355
|
-
},
|
|
356
|
-
"required": false
|
|
357
|
-
},
|
|
358
342
|
"src": {
|
|
359
343
|
"description": "",
|
|
360
344
|
"type": {
|
|
@@ -485,4 +469,4 @@ Image.__docgenInfo = {
|
|
|
485
469
|
}
|
|
486
470
|
};
|
|
487
471
|
|
|
488
|
-
|
|
472
|
+
export { Image };
|