@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
|
@@ -1,51 +1,42 @@
|
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
require('../constants/componentProps/textColorActive.js');
|
|
41
|
-
require('../constants/componentProps/textColorHover.js');
|
|
42
|
-
require('../constants/componentProps/underline.js');
|
|
43
|
-
|
|
44
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
45
|
-
|
|
46
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
47
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
48
|
-
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 { Icon } from './Icon.js';
|
|
5
|
+
import { T as Text } from '../Text-DffpwlYq.js';
|
|
6
|
+
import { Loader } from './Loader.js';
|
|
7
|
+
import { LinkWrapper } from './Link.js';
|
|
8
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
9
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
10
|
+
import borderTypeProps from '../constants/componentProps/borderType.js';
|
|
11
|
+
import fillProps from '../constants/componentProps/fill.js';
|
|
12
|
+
import sizeProps from '../constants/componentProps/size.js';
|
|
13
|
+
import shapeProps from '../constants/componentProps/shape.js';
|
|
14
|
+
import typeProps from '../constants/componentProps/type.js';
|
|
15
|
+
import widthProps from '../constants/componentProps/width.js';
|
|
16
|
+
import 'react-inlinesvg';
|
|
17
|
+
import '../constants/componentProps/borderColor.js';
|
|
18
|
+
import '../constants/componentProps/iconSize.js';
|
|
19
|
+
import '../constants/componentProps/strokeColor.js';
|
|
20
|
+
import './Tooltip.js';
|
|
21
|
+
import './Title.js';
|
|
22
|
+
import '../constants/componentProps/textAlign.js';
|
|
23
|
+
import '../constants/componentProps/textColor.js';
|
|
24
|
+
import '../constants/componentProps/textGradient.js';
|
|
25
|
+
import '../constants/componentProps/textStyle.js';
|
|
26
|
+
import '../constants/componentProps/textWeight.js';
|
|
27
|
+
import '../constants/componentProps/titleSize.js';
|
|
28
|
+
import '../constants/componentProps/wrap.js';
|
|
29
|
+
import '../context/UIContext.js';
|
|
30
|
+
import '../hooks/useMediaQueries.js';
|
|
31
|
+
import 'react-responsive';
|
|
32
|
+
import 'lodash/castArray';
|
|
33
|
+
import 'lodash/camelCase';
|
|
34
|
+
import 'lodash/maxBy';
|
|
35
|
+
import 'lodash/upperFirst';
|
|
36
|
+
import '../hooks/styleAttributes.js';
|
|
37
|
+
import '../constants/componentProps/textSize.js';
|
|
38
|
+
import '../jsx-runtime-ClDdVO4Q.js';
|
|
39
|
+
import '../constants/componentProps/underline.js';
|
|
49
40
|
|
|
50
41
|
const buttonConfig = {
|
|
51
42
|
appearance: {},
|
|
@@ -53,7 +44,7 @@ const buttonConfig = {
|
|
|
53
44
|
buttonConfig.appearance = newComponent;
|
|
54
45
|
}
|
|
55
46
|
};
|
|
56
|
-
const Button = /*#__PURE__*/React__default.
|
|
47
|
+
const Button = /*#__PURE__*/React__default.forwardRef(function Button(props, ref) {
|
|
57
48
|
const {
|
|
58
49
|
before,
|
|
59
50
|
appearance,
|
|
@@ -63,6 +54,9 @@ const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(pr
|
|
|
63
54
|
dataTestId,
|
|
64
55
|
Badge,
|
|
65
56
|
children,
|
|
57
|
+
fillIcon,
|
|
58
|
+
fillIconAfter,
|
|
59
|
+
fillIconBefore,
|
|
66
60
|
iconAfter,
|
|
67
61
|
iconAfterSize,
|
|
68
62
|
iconBefore,
|
|
@@ -81,12 +75,18 @@ const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(pr
|
|
|
81
75
|
rel,
|
|
82
76
|
size,
|
|
83
77
|
icon,
|
|
78
|
+
iconShape,
|
|
79
|
+
iconAfterShape,
|
|
80
|
+
iconBeforeShape,
|
|
84
81
|
iconSize,
|
|
85
82
|
iconFill,
|
|
83
|
+
iconFillSize,
|
|
86
84
|
iconStroke,
|
|
87
85
|
iconBeforeFill,
|
|
86
|
+
iconBeforeFillSize,
|
|
88
87
|
iconBeforeStroke,
|
|
89
88
|
iconAfterFill,
|
|
89
|
+
iconAfterFillSize,
|
|
90
90
|
iconAfterStroke,
|
|
91
91
|
iconAfterSrc,
|
|
92
92
|
iconBeforeSrc,
|
|
@@ -98,49 +98,49 @@ const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(pr
|
|
|
98
98
|
onClick,
|
|
99
99
|
onMouseDown
|
|
100
100
|
} = props;
|
|
101
|
-
const widthClass = useDeviceTargetClass
|
|
101
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
102
102
|
prefix: 'button_width_',
|
|
103
103
|
propsKey: 'width'
|
|
104
104
|
});
|
|
105
|
-
const sizeClass = useDeviceTargetClass
|
|
105
|
+
const sizeClass = useDeviceTargetClass(props, {
|
|
106
106
|
prefix: 'button_size_',
|
|
107
107
|
propsKey: 'size'
|
|
108
108
|
});
|
|
109
|
-
const fillClass = useDeviceTargetClass
|
|
109
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
110
110
|
prefix: 'fill_',
|
|
111
111
|
propsKey: 'fill'
|
|
112
112
|
});
|
|
113
|
-
const fillHoverClass = useDeviceTargetClass
|
|
113
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
114
114
|
prefix: 'fill_hover_',
|
|
115
115
|
propsKey: 'fillHover'
|
|
116
116
|
});
|
|
117
|
-
const borderWidthClass = useDeviceTargetClass
|
|
117
|
+
const borderWidthClass = useDeviceTargetClass(props, {
|
|
118
118
|
prefix: 'border-width_',
|
|
119
119
|
propsKey: 'borderWidth'
|
|
120
120
|
});
|
|
121
|
-
const borderColorClass = useDeviceTargetClass
|
|
121
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
122
122
|
prefix: 'border-color_',
|
|
123
123
|
propsKey: 'borderColor'
|
|
124
124
|
});
|
|
125
|
-
const shapeClass = useDeviceTargetClass
|
|
125
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
126
126
|
prefix: 'button_shape_',
|
|
127
127
|
propsKey: 'shape'
|
|
128
128
|
});
|
|
129
|
-
const borderTypeClass = useDeviceTargetClass
|
|
129
|
+
const borderTypeClass = useDeviceTargetClass(props, {
|
|
130
130
|
prefix: 'border_type_',
|
|
131
131
|
propsKey: 'borderType'
|
|
132
132
|
});
|
|
133
|
-
const elevationClass = useDeviceTargetClass
|
|
133
|
+
const elevationClass = useDeviceTargetClass(props, {
|
|
134
134
|
prefix: 'elevation_',
|
|
135
135
|
propsKey: 'elevation'
|
|
136
136
|
});
|
|
137
137
|
const {
|
|
138
138
|
styles: buttonStyles,
|
|
139
139
|
label: labelStyles
|
|
140
|
-
} = useStyles
|
|
141
|
-
return /*#__PURE__*/React__default.
|
|
142
|
-
className:
|
|
143
|
-
"data-test-id": `${dataTestId}Button`,
|
|
140
|
+
} = useStyles(props);
|
|
141
|
+
return /*#__PURE__*/React__default.createElement(LinkWrapper, {
|
|
142
|
+
className: clsx(className, 'button', type && `button_type_${type}`, borderWidthClass || buttonConfig.appearance[appearance]?.borderWidth && `border-width_${buttonConfig.appearance[appearance].borderWidth}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorClass || buttonConfig?.appearance[appearance]?.borderColor && `border-color_${buttonConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderTypeClass || buttonConfig.appearance[appearance]?.borderType && `border-type_${buttonConfig.appearance[appearance].borderType}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillClass || buttonConfig.appearance[appearance]?.fill && `fill_${buttonConfig.appearance[appearance].fill}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || buttonConfig.appearance[appearance]?.fillHover && `fill_hover_${buttonConfig.appearance[appearance].fillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(), shapeClass, sizeClass, widthClass, elevationClass, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', loading && 'button_state_loading', !label && (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc || icon || iconSrc) && 'button_type_icon', label && (after || before || icon || iconAfter || iconAfterSrc || iconBefore || iconBeforeSrc || iconSrc) && `button_type_with-icon button_type_with-icon_${size}`),
|
|
143
|
+
"data-test-id": dataTestId && `${dataTestId}Button`,
|
|
144
144
|
"data-tour": dataTour,
|
|
145
145
|
DefaultComponent: "button",
|
|
146
146
|
disabled: isDisabled,
|
|
@@ -151,82 +151,91 @@ const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(pr
|
|
|
151
151
|
type: htmlType,
|
|
152
152
|
onClick: onClick,
|
|
153
153
|
onMouseDown: onMouseDown
|
|
154
|
-
}, /*#__PURE__*/React__default.
|
|
154
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
155
155
|
className: "button__wrapper",
|
|
156
156
|
ref: ref
|
|
157
|
-
}, loading && /*#__PURE__*/React__default.
|
|
157
|
+
}, loading && /*#__PURE__*/React__default.createElement(Loader, {
|
|
158
158
|
className: "button__loader",
|
|
159
159
|
fill: loaderFill || buttonConfig.appearance[appearance]?.loaderFill,
|
|
160
160
|
itemFill: loaderItemFill || buttonConfig.appearance[appearance]?.loaderItemFill,
|
|
161
161
|
set: loaderSet
|
|
162
|
-
}), before, (iconBefore || iconBeforeSrc) && /*#__PURE__*/React__default.
|
|
162
|
+
}), before, (iconBefore || iconBeforeSrc) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
163
163
|
className: "button__icon_before",
|
|
164
|
+
fill: fillIconBefore,
|
|
165
|
+
fillSize: iconBeforeFillSize,
|
|
164
166
|
iconFill: iconBeforeFill || buttonConfig.appearance[appearance]?.iconBeforeFill,
|
|
165
167
|
iconStroke: iconBeforeStroke || buttonConfig.appearance[appearance]?.iconBeforeStroke,
|
|
166
168
|
imageSrc: iconBeforeSrc,
|
|
169
|
+
shape: iconBeforeShape,
|
|
167
170
|
size: iconBeforeSize,
|
|
168
171
|
SvgImage: iconBefore
|
|
169
|
-
}), (icon || iconSrc) && /*#__PURE__*/React__default.
|
|
172
|
+
}), (icon || iconSrc) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
170
173
|
className: "button__icon",
|
|
174
|
+
fill: fillIcon,
|
|
175
|
+
fillSize: iconFillSize,
|
|
171
176
|
iconFill: iconFill || buttonConfig.appearance[appearance]?.iconFill,
|
|
172
177
|
iconStroke: iconStroke || buttonConfig.appearance[appearance]?.iconStroke,
|
|
173
178
|
imageSrc: iconSrc,
|
|
179
|
+
shape: iconShape,
|
|
174
180
|
size: iconSize,
|
|
175
181
|
SvgImage: icon
|
|
176
|
-
}), (children || label || buttonConfig.appearance[appearance]?.label) && /*#__PURE__*/React__default.
|
|
182
|
+
}), (children || label || buttonConfig.appearance[appearance]?.label) && /*#__PURE__*/React__default.createElement(Text, {
|
|
177
183
|
className: "button__label",
|
|
178
184
|
size: labelTextSize || buttonConfig.appearance[appearance]?.labelTextSize,
|
|
179
185
|
style: labelStyles,
|
|
180
186
|
textColor: labelTextColor || buttonConfig.appearance[appearance]?.labelTextColor,
|
|
181
187
|
textColorHover: labelTextColorHover || buttonConfig.appearance[appearance]?.labelTextColorHover,
|
|
182
188
|
textWrap: labelTextWrap
|
|
183
|
-
}, children || label || buttonConfig.appearance[appearance]?.label), (iconAfter || iconAfterSrc) && /*#__PURE__*/React__default.
|
|
189
|
+
}, children || label || buttonConfig.appearance[appearance]?.label), (iconAfter || iconAfterSrc) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
184
190
|
className: "button__icon_after",
|
|
191
|
+
fill: fillIconAfter,
|
|
192
|
+
fillSize: iconAfterFillSize,
|
|
185
193
|
iconFill: iconAfterFill || buttonConfig.appearance[appearance]?.iconAfterFill,
|
|
186
194
|
iconStroke: iconAfterStroke || buttonConfig.appearance[appearance]?.iconAfterStroke,
|
|
187
195
|
imageSrc: iconAfterSrc,
|
|
196
|
+
shape: iconAfterShape,
|
|
188
197
|
size: iconAfterSize,
|
|
189
198
|
SvgImage: iconAfter
|
|
190
199
|
}), Badge, after));
|
|
191
200
|
});
|
|
192
201
|
Button.propTypes = {
|
|
193
|
-
after:
|
|
194
|
-
appearance:
|
|
195
|
-
Badge:
|
|
196
|
-
before:
|
|
197
|
-
borderType:
|
|
198
|
-
children:
|
|
199
|
-
className:
|
|
200
|
-
dataTour:
|
|
201
|
-
fill:
|
|
202
|
-
href:
|
|
203
|
-
htmlType:
|
|
204
|
-
iconAfterFill:
|
|
205
|
-
iconAfterStroke:
|
|
206
|
-
iconBeforeFill:
|
|
207
|
-
iconBeforeStroke:
|
|
208
|
-
iconFill:
|
|
209
|
-
iconSize:
|
|
210
|
-
iconStroke:
|
|
211
|
-
isDisabled:
|
|
212
|
-
label:
|
|
213
|
-
labelTextColor:
|
|
214
|
-
labelTextColorHover:
|
|
215
|
-
labelTextSize:
|
|
216
|
-
labelTextWrap:
|
|
217
|
-
link:
|
|
218
|
-
loaderFill:
|
|
219
|
-
loaderItemFill:
|
|
220
|
-
loaderSet:
|
|
221
|
-
loading:
|
|
222
|
-
rel:
|
|
223
|
-
shape:
|
|
224
|
-
size:
|
|
225
|
-
target:
|
|
226
|
-
type:
|
|
227
|
-
width:
|
|
228
|
-
onClick:
|
|
229
|
-
onMouseDown:
|
|
202
|
+
after: PropTypes.any,
|
|
203
|
+
appearance: PropTypes.string,
|
|
204
|
+
Badge: PropTypes.element,
|
|
205
|
+
before: PropTypes.any,
|
|
206
|
+
borderType: PropTypes.oneOf(borderTypeProps),
|
|
207
|
+
children: PropTypes.any,
|
|
208
|
+
className: PropTypes.string,
|
|
209
|
+
dataTour: PropTypes.string,
|
|
210
|
+
fill: PropTypes.oneOf(fillProps),
|
|
211
|
+
href: PropTypes.string,
|
|
212
|
+
htmlType: PropTypes.string,
|
|
213
|
+
iconAfterFill: PropTypes.string,
|
|
214
|
+
iconAfterStroke: PropTypes.string,
|
|
215
|
+
iconBeforeFill: PropTypes.string,
|
|
216
|
+
iconBeforeStroke: PropTypes.string,
|
|
217
|
+
iconFill: PropTypes.string,
|
|
218
|
+
iconSize: PropTypes.string,
|
|
219
|
+
iconStroke: PropTypes.string,
|
|
220
|
+
isDisabled: PropTypes.bool,
|
|
221
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
222
|
+
labelTextColor: PropTypes.string,
|
|
223
|
+
labelTextColorHover: PropTypes.string,
|
|
224
|
+
labelTextSize: PropTypes.string,
|
|
225
|
+
labelTextWrap: PropTypes.string,
|
|
226
|
+
link: PropTypes.string,
|
|
227
|
+
loaderFill: PropTypes.string,
|
|
228
|
+
loaderItemFill: PropTypes.string,
|
|
229
|
+
loaderSet: PropTypes.string,
|
|
230
|
+
loading: PropTypes.bool,
|
|
231
|
+
rel: PropTypes.string,
|
|
232
|
+
shape: PropTypes.oneOf(shapeProps),
|
|
233
|
+
size: PropTypes.oneOf(sizeProps),
|
|
234
|
+
target: PropTypes.string,
|
|
235
|
+
type: PropTypes.oneOf(typeProps),
|
|
236
|
+
width: PropTypes.oneOf(widthProps),
|
|
237
|
+
onClick: PropTypes.func,
|
|
238
|
+
onMouseDown: PropTypes.func
|
|
230
239
|
};
|
|
231
240
|
Button.defaultProps = {
|
|
232
241
|
// Button with a `type="submit"` attribute is a form control by default.
|
|
@@ -542,5 +551,4 @@ Button.__docgenInfo = {
|
|
|
542
551
|
}
|
|
543
552
|
};
|
|
544
553
|
|
|
545
|
-
|
|
546
|
-
exports.buttonConfig = buttonConfig;
|
|
554
|
+
export { Button, buttonConfig };
|
|
@@ -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-DffpwlYq.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 };
|