@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/Input.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require('../hooks/useMediaQueries.js');
|
|
11
|
-
require('react-responsive');
|
|
12
|
-
|
|
13
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
16
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
17
|
-
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 { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
+
import 'lodash/castArray';
|
|
6
|
+
import 'lodash/camelCase';
|
|
7
|
+
import '../context/UIContext.js';
|
|
8
|
+
import '../hooks/useMediaQueries.js';
|
|
9
|
+
import 'react-responsive';
|
|
18
10
|
|
|
19
11
|
const inputConfig = {
|
|
20
12
|
state: {},
|
|
@@ -26,12 +18,12 @@ const inputConfig = {
|
|
|
26
18
|
inputConfig.appearance = newComponent;
|
|
27
19
|
}
|
|
28
20
|
};
|
|
29
|
-
const Input = /*#__PURE__*/React__default.
|
|
21
|
+
const Input = /*#__PURE__*/React__default.forwardRef(function Input(props, ref) {
|
|
30
22
|
const {
|
|
31
23
|
appearance,
|
|
32
24
|
state,
|
|
33
|
-
id,
|
|
34
25
|
index,
|
|
26
|
+
id,
|
|
35
27
|
dataTestId,
|
|
36
28
|
type,
|
|
37
29
|
className,
|
|
@@ -44,72 +36,72 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
44
36
|
onFocus,
|
|
45
37
|
onKeyDown
|
|
46
38
|
} = props;
|
|
47
|
-
const fillClass = useDeviceTargetClass
|
|
39
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
48
40
|
prefix: 'fill_',
|
|
49
41
|
propsKey: 'fill'
|
|
50
42
|
});
|
|
51
|
-
const fillDisabledClass = useDeviceTargetClass
|
|
43
|
+
const fillDisabledClass = useDeviceTargetClass(props, {
|
|
52
44
|
prefix: 'fill_disabled_',
|
|
53
45
|
propsKey: 'fillDisabled'
|
|
54
46
|
});
|
|
55
|
-
const sizeClass = useDeviceTargetClass
|
|
47
|
+
const sizeClass = useDeviceTargetClass(props, {
|
|
56
48
|
prefix: 'input_size_',
|
|
57
49
|
propsKey: 'size'
|
|
58
50
|
});
|
|
59
|
-
const shapeClass = useDeviceTargetClass
|
|
51
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
60
52
|
prefix: 'input_shape_',
|
|
61
53
|
propsKey: 'shape'
|
|
62
54
|
});
|
|
63
|
-
const textSizeClass = useDeviceTargetClass
|
|
55
|
+
const textSizeClass = useDeviceTargetClass(props, {
|
|
64
56
|
prefix: 'text_size_',
|
|
65
57
|
propsKey: 'textSize'
|
|
66
58
|
});
|
|
67
|
-
const textColorClass = useDeviceTargetClass
|
|
59
|
+
const textColorClass = useDeviceTargetClass(props, {
|
|
68
60
|
prefix: 'text-color_',
|
|
69
61
|
propsKey: 'textColor'
|
|
70
62
|
});
|
|
71
|
-
const textColorDisabledClass = useDeviceTargetClass
|
|
63
|
+
const textColorDisabledClass = useDeviceTargetClass(props, {
|
|
72
64
|
prefix: 'text-color_disabled_',
|
|
73
65
|
propsKey: 'textColor'
|
|
74
66
|
});
|
|
75
|
-
const caretClass = useDeviceTargetClass
|
|
67
|
+
const caretClass = useDeviceTargetClass(props, {
|
|
76
68
|
prefix: 'caret-color_',
|
|
77
69
|
propsKey: 'caret'
|
|
78
70
|
});
|
|
79
|
-
const placeholderTextColorClass = useDeviceTargetClass
|
|
71
|
+
const placeholderTextColorClass = useDeviceTargetClass(props, {
|
|
80
72
|
prefix: 'placeholder-text-color_',
|
|
81
73
|
propsKey: 'placeholderTextColor'
|
|
82
74
|
});
|
|
83
|
-
const placeholderTextColorDisabledClass = useDeviceTargetClass
|
|
75
|
+
const placeholderTextColorDisabledClass = useDeviceTargetClass(props, {
|
|
84
76
|
prefix: 'placeholder-text-color_disabled_',
|
|
85
77
|
propsKey: 'placeholderTextColorDisabled'
|
|
86
78
|
});
|
|
87
|
-
const weightClass = useDeviceTargetClass
|
|
79
|
+
const weightClass = useDeviceTargetClass(props, {
|
|
88
80
|
prefix: 'text-weight_',
|
|
89
81
|
propsKey: 'textWeight'
|
|
90
82
|
});
|
|
91
|
-
const borderWidthClass = useDeviceTargetClass
|
|
83
|
+
const borderWidthClass = useDeviceTargetClass(props, {
|
|
92
84
|
prefix: 'border-width_',
|
|
93
85
|
propsKey: 'borderWidth'
|
|
94
86
|
});
|
|
95
|
-
const borderWidthDisabledClass = useDeviceTargetClass
|
|
87
|
+
const borderWidthDisabledClass = useDeviceTargetClass(props, {
|
|
96
88
|
prefix: 'border-width_disabled_',
|
|
97
89
|
propsKey: 'borderWidthDisabled'
|
|
98
90
|
});
|
|
99
|
-
const borderColorClass = useDeviceTargetClass
|
|
91
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
100
92
|
prefix: 'border-color_',
|
|
101
93
|
propsKey: 'borderColor'
|
|
102
94
|
});
|
|
103
|
-
const borderColorDisabledClass = useDeviceTargetClass
|
|
95
|
+
const borderColorDisabledClass = useDeviceTargetClass(props, {
|
|
104
96
|
prefix: 'border-color_disabled_',
|
|
105
97
|
propsKey: 'borderColorDisabled'
|
|
106
98
|
});
|
|
107
|
-
const widthClass = useDeviceTargetClass
|
|
99
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
108
100
|
prefix: 'width_',
|
|
109
101
|
propsKey: 'width'
|
|
110
102
|
});
|
|
111
|
-
return /*#__PURE__*/React__default.
|
|
112
|
-
className:
|
|
103
|
+
return /*#__PURE__*/React__default.createElement("input", {
|
|
104
|
+
className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, !isDisabled ? fillClass : fillDisabledClass, shapeClass || inputConfig.appearance[appearance]?.shape && `input_shape_${inputConfig.appearance[appearance].shape}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textSizeClass || inputConfig.appearance[appearance]?.textSize && `text_size_${inputConfig.appearance[appearance].textSize}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass, !isDisabled ? borderWidthClass : borderWidthDisabledClass, sizeClass || inputConfig.appearance[appearance]?.size && `input_size_${inputConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorClass || inputConfig.appearance[appearance]?.borderColor && `border-color_${inputConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || inputConfig.appearance[appearance]?.placeholderTextColor && `placeholder-text-color_${inputConfig.appearance[appearance].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || inputConfig.appearance[appearance]?.textColor && `text-color_${inputConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? borderColorClass || inputConfig.state[state]?.borderColor && `border-color_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : borderColorDisabledClass || inputConfig.state[state]?.borderColor && `border-color_disabled_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? placeholderTextColorClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : placeholderTextColorDisabledClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? textColorClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : textColorDisabledClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
113
105
|
"data-test-id": dataTestId || (name ? `${name}Input` : 'input'),
|
|
114
106
|
disabled: isDisabled,
|
|
115
107
|
id: id,
|
|
@@ -125,16 +117,16 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
125
117
|
});
|
|
126
118
|
});
|
|
127
119
|
Input.propTypes = {
|
|
128
|
-
checked:
|
|
129
|
-
className:
|
|
130
|
-
id:
|
|
131
|
-
isDisabled:
|
|
132
|
-
placeholder:
|
|
133
|
-
type:
|
|
134
|
-
value:
|
|
135
|
-
onBlur:
|
|
136
|
-
onChange:
|
|
137
|
-
onKeyDown:
|
|
120
|
+
checked: PropTypes.bool,
|
|
121
|
+
className: PropTypes.string,
|
|
122
|
+
id: PropTypes.string,
|
|
123
|
+
isDisabled: PropTypes.bool,
|
|
124
|
+
placeholder: PropTypes.string,
|
|
125
|
+
type: PropTypes.string,
|
|
126
|
+
value: PropTypes.string,
|
|
127
|
+
onBlur: PropTypes.func,
|
|
128
|
+
onChange: PropTypes.func,
|
|
129
|
+
onKeyDown: PropTypes.func
|
|
138
130
|
};
|
|
139
131
|
Input.defaultProps = {
|
|
140
132
|
size: 'm',
|
|
@@ -229,5 +221,4 @@ Input.__docgenInfo = {
|
|
|
229
221
|
}
|
|
230
222
|
};
|
|
231
223
|
|
|
232
|
-
|
|
233
|
-
exports.inputConfig = inputConfig;
|
|
224
|
+
export { Input, inputConfig };
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require('../hooks/useMediaQueries.js');
|
|
11
|
-
require('react-responsive');
|
|
12
|
-
|
|
13
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
16
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
17
|
-
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 { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
+
import 'lodash/castArray';
|
|
6
|
+
import 'lodash/camelCase';
|
|
7
|
+
import '../context/UIContext.js';
|
|
8
|
+
import '../hooks/useMediaQueries.js';
|
|
9
|
+
import 'react-responsive';
|
|
18
10
|
|
|
19
11
|
const inputMaskConfig = {
|
|
20
12
|
state: {},
|
|
@@ -26,7 +18,7 @@ const inputMaskConfig = {
|
|
|
26
18
|
inputMaskConfig.appearance = newComponent;
|
|
27
19
|
}
|
|
28
20
|
};
|
|
29
|
-
const Input = /*#__PURE__*/React__default.
|
|
21
|
+
const Input = /*#__PURE__*/React__default.forwardRef(function Input(props, ref) {
|
|
30
22
|
const {
|
|
31
23
|
appearance,
|
|
32
24
|
state,
|
|
@@ -44,72 +36,72 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
44
36
|
onFocus,
|
|
45
37
|
onKeyDown
|
|
46
38
|
} = props;
|
|
47
|
-
const fillClass = useDeviceTargetClass
|
|
39
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
48
40
|
prefix: 'fill_',
|
|
49
41
|
propsKey: 'fill'
|
|
50
42
|
});
|
|
51
|
-
const fillDisabledClass = useDeviceTargetClass
|
|
43
|
+
const fillDisabledClass = useDeviceTargetClass(props, {
|
|
52
44
|
prefix: 'fill_disabled_',
|
|
53
45
|
propsKey: 'fillDisabled'
|
|
54
46
|
});
|
|
55
|
-
const sizeClass = useDeviceTargetClass
|
|
47
|
+
const sizeClass = useDeviceTargetClass(props, {
|
|
56
48
|
prefix: 'input_size_',
|
|
57
49
|
propsKey: 'size'
|
|
58
50
|
});
|
|
59
|
-
const shapeClass = useDeviceTargetClass
|
|
51
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
60
52
|
prefix: 'input_shape_',
|
|
61
53
|
propsKey: 'shape'
|
|
62
54
|
});
|
|
63
|
-
const textSizeClass = useDeviceTargetClass
|
|
55
|
+
const textSizeClass = useDeviceTargetClass(props, {
|
|
64
56
|
prefix: 'text_size_',
|
|
65
57
|
propsKey: 'textSize'
|
|
66
58
|
});
|
|
67
|
-
const textColorClass = useDeviceTargetClass
|
|
59
|
+
const textColorClass = useDeviceTargetClass(props, {
|
|
68
60
|
prefix: 'text-color_',
|
|
69
61
|
propsKey: 'textColor'
|
|
70
62
|
});
|
|
71
|
-
const textColorDisabledClass = useDeviceTargetClass
|
|
63
|
+
const textColorDisabledClass = useDeviceTargetClass(props, {
|
|
72
64
|
prefix: 'text-color_disabled_',
|
|
73
65
|
propsKey: 'textColor'
|
|
74
66
|
});
|
|
75
|
-
const caretClass = useDeviceTargetClass
|
|
67
|
+
const caretClass = useDeviceTargetClass(props, {
|
|
76
68
|
prefix: 'caret-color_',
|
|
77
69
|
propsKey: 'caret'
|
|
78
70
|
});
|
|
79
|
-
const placeholderTextColorClass = useDeviceTargetClass
|
|
71
|
+
const placeholderTextColorClass = useDeviceTargetClass(props, {
|
|
80
72
|
prefix: 'placeholder-text-color_',
|
|
81
73
|
propsKey: 'placeholderTextColor'
|
|
82
74
|
});
|
|
83
|
-
const placeholderTextColorDisabledClass = useDeviceTargetClass
|
|
75
|
+
const placeholderTextColorDisabledClass = useDeviceTargetClass(props, {
|
|
84
76
|
prefix: 'placeholder-text-color_disabled_',
|
|
85
77
|
propsKey: 'placeholderTextColorDisabled'
|
|
86
78
|
});
|
|
87
|
-
const weightClass = useDeviceTargetClass
|
|
79
|
+
const weightClass = useDeviceTargetClass(props, {
|
|
88
80
|
prefix: 'text-weight_',
|
|
89
81
|
propsKey: 'textWeight'
|
|
90
82
|
});
|
|
91
|
-
const borderWidthClass = useDeviceTargetClass
|
|
83
|
+
const borderWidthClass = useDeviceTargetClass(props, {
|
|
92
84
|
prefix: 'border-width_',
|
|
93
85
|
propsKey: 'borderWidth'
|
|
94
86
|
});
|
|
95
|
-
const borderWidthDisabledClass = useDeviceTargetClass
|
|
87
|
+
const borderWidthDisabledClass = useDeviceTargetClass(props, {
|
|
96
88
|
prefix: 'border-width_disabled_',
|
|
97
89
|
propsKey: 'borderWidthDisabled'
|
|
98
90
|
});
|
|
99
|
-
const borderColorClass = useDeviceTargetClass
|
|
91
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
100
92
|
prefix: 'border-color_',
|
|
101
93
|
propsKey: 'borderColor'
|
|
102
94
|
});
|
|
103
|
-
const borderColorDisabledClass = useDeviceTargetClass
|
|
95
|
+
const borderColorDisabledClass = useDeviceTargetClass(props, {
|
|
104
96
|
prefix: 'border-color_disabled_',
|
|
105
97
|
propsKey: 'borderColorDisabled'
|
|
106
98
|
});
|
|
107
|
-
const widthClass = useDeviceTargetClass
|
|
99
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
108
100
|
prefix: 'width_',
|
|
109
101
|
propsKey: 'width'
|
|
110
102
|
});
|
|
111
|
-
return /*#__PURE__*/React__default.
|
|
112
|
-
className:
|
|
103
|
+
return /*#__PURE__*/React__default.createElement("input", {
|
|
104
|
+
className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, !isDisabled ? fillClass : fillDisabledClass, shapeClass || inputMaskConfig.appearance[appearance]?.shape && `input_shape_${inputMaskConfig.appearance[appearance].shape}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textSizeClass || inputMaskConfig.appearance[appearance]?.textSize && `text_size_${inputMaskConfig.appearance[appearance].textSize}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass, !isDisabled ? borderWidthClass : borderWidthDisabledClass, sizeClass || inputMaskConfig.appearance[appearance]?.size && `input_size_${inputMaskConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorClass || inputMaskConfig.appearance[appearance]?.borderColor && `border-color_${inputMaskConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || inputMaskConfig.appearance[appearance]?.placeholderTextColor && `placeholder-text-color_${inputMaskConfig.appearance[appearance].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || inputMaskConfig.appearance[appearance]?.textColor && `text-color_${inputMaskConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? borderColorClass || inputMaskConfig.state[state]?.borderColor && `border-color_${inputMaskConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : borderColorDisabledClass || inputMaskConfig.state[state]?.borderColor && `border-color_disabled_${inputMaskConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? placeholderTextColorClass || inputMaskConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputMaskConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : placeholderTextColorDisabledClass || inputMaskConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputMaskConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? textColorClass || inputMaskConfig.state[state]?.textColor && `text-color_${inputMaskConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : textColorDisabledClass || inputMaskConfig.state[state]?.textColor && `text-color_${inputMaskConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
113
105
|
type: type,
|
|
114
106
|
id: id,
|
|
115
107
|
index: index,
|
|
@@ -125,16 +117,16 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
125
117
|
});
|
|
126
118
|
});
|
|
127
119
|
Input.propTypes = {
|
|
128
|
-
id:
|
|
129
|
-
className:
|
|
130
|
-
placeholder:
|
|
131
|
-
value:
|
|
132
|
-
checked:
|
|
133
|
-
isDisabled:
|
|
134
|
-
onBlur:
|
|
135
|
-
onChange:
|
|
136
|
-
onKeyDown:
|
|
137
|
-
type:
|
|
120
|
+
id: PropTypes.string,
|
|
121
|
+
className: PropTypes.string,
|
|
122
|
+
placeholder: PropTypes.string,
|
|
123
|
+
value: PropTypes.string,
|
|
124
|
+
checked: PropTypes.bool,
|
|
125
|
+
isDisabled: PropTypes.bool,
|
|
126
|
+
onBlur: PropTypes.func,
|
|
127
|
+
onChange: PropTypes.func,
|
|
128
|
+
onKeyDown: PropTypes.func,
|
|
129
|
+
type: PropTypes.string
|
|
138
130
|
};
|
|
139
131
|
Input.defaultProps = {
|
|
140
132
|
size: 'm',
|
|
@@ -229,5 +221,4 @@ Input.__docgenInfo = {
|
|
|
229
221
|
}
|
|
230
222
|
};
|
|
231
223
|
|
|
232
|
-
|
|
233
|
-
exports.inputMaskConfig = inputMaskConfig;
|
|
224
|
+
export { Input, inputMaskConfig };
|
|
@@ -1,49 +1,40 @@
|
|
|
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
|
-
require('../constants/componentProps/wrap.js');
|
|
39
|
-
require('../constants/componentProps/textSize.js');
|
|
40
|
-
require('lodash/castArray');
|
|
41
|
-
|
|
42
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
43
|
-
|
|
44
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
45
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
46
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import React__default, { useState, useMemo, useCallback } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Icon } from './Icon.js';
|
|
5
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
+
import 'react-inlinesvg';
|
|
7
|
+
import './Link.js';
|
|
8
|
+
import '../constants/componentProps/fill.js';
|
|
9
|
+
import '../constants/componentProps/size.js';
|
|
10
|
+
import '../constants/componentProps/textColor.js';
|
|
11
|
+
import '../constants/componentProps/textGradient.js';
|
|
12
|
+
import '../constants/componentProps/textStyle.js';
|
|
13
|
+
import '../constants/componentProps/textWeight.js';
|
|
14
|
+
import '../constants/componentProps/type.js';
|
|
15
|
+
import '../constants/componentProps/underline.js';
|
|
16
|
+
import '../hooks/useStyles.js';
|
|
17
|
+
import 'lodash/camelCase';
|
|
18
|
+
import 'lodash/maxBy';
|
|
19
|
+
import 'lodash/upperFirst';
|
|
20
|
+
import '../hooks/styleAttributes.js';
|
|
21
|
+
import '../context/UIContext.js';
|
|
22
|
+
import '../hooks/useMediaQueries.js';
|
|
23
|
+
import 'react-responsive';
|
|
24
|
+
import '../constants/componentProps/borderColor.js';
|
|
25
|
+
import '../constants/componentProps/borderType.js';
|
|
26
|
+
import '../constants/componentProps/iconSize.js';
|
|
27
|
+
import '../constants/componentProps/shape.js';
|
|
28
|
+
import '../constants/componentProps/strokeColor.js';
|
|
29
|
+
import './Tooltip.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';
|
|
37
|
+
import 'lodash/castArray';
|
|
47
38
|
|
|
48
39
|
const inputPasswordConfig = {
|
|
49
40
|
state: {},
|
|
@@ -76,62 +67,62 @@ function InputMask(props) {
|
|
|
76
67
|
onFocus,
|
|
77
68
|
onKeyDown
|
|
78
69
|
} = props;
|
|
79
|
-
const fillClass = useDeviceTargetClass
|
|
70
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
80
71
|
prefix: 'fill_',
|
|
81
72
|
propsKey: 'fill'
|
|
82
73
|
});
|
|
83
|
-
const sizeClass = useDeviceTargetClass
|
|
74
|
+
const sizeClass = useDeviceTargetClass(props, {
|
|
84
75
|
prefix: 'input-password__input_size_',
|
|
85
76
|
propsKey: 'size'
|
|
86
77
|
});
|
|
87
|
-
const shapeClass = useDeviceTargetClass
|
|
78
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
88
79
|
prefix: 'input-password__input_shape_',
|
|
89
80
|
propsKey: 'shape'
|
|
90
81
|
});
|
|
91
|
-
const textSizeClass = useDeviceTargetClass
|
|
82
|
+
const textSizeClass = useDeviceTargetClass(props, {
|
|
92
83
|
prefix: 'text_size_',
|
|
93
84
|
propsKey: 'textSize'
|
|
94
85
|
});
|
|
95
|
-
const textColorClass = useDeviceTargetClass
|
|
86
|
+
const textColorClass = useDeviceTargetClass(props, {
|
|
96
87
|
prefix: 'text-color_',
|
|
97
88
|
propsKey: 'textColor'
|
|
98
89
|
});
|
|
99
|
-
const caretClass = useDeviceTargetClass
|
|
90
|
+
const caretClass = useDeviceTargetClass(props, {
|
|
100
91
|
prefix: 'caret-color_',
|
|
101
92
|
propsKey: 'caret'
|
|
102
93
|
});
|
|
103
|
-
const placeholderTextColorClass = useDeviceTargetClass
|
|
94
|
+
const placeholderTextColorClass = useDeviceTargetClass(props, {
|
|
104
95
|
prefix: 'placeholder-text-color_',
|
|
105
96
|
propsKey: 'placeholderTextColor'
|
|
106
97
|
});
|
|
107
|
-
const weightClass = useDeviceTargetClass
|
|
98
|
+
const weightClass = useDeviceTargetClass(props, {
|
|
108
99
|
prefix: 'text-weight_',
|
|
109
100
|
propsKey: 'textWeight'
|
|
110
101
|
});
|
|
111
|
-
const borderWidthClass = useDeviceTargetClass
|
|
102
|
+
const borderWidthClass = useDeviceTargetClass(props, {
|
|
112
103
|
prefix: 'border-width_',
|
|
113
104
|
propsKey: 'borderWidth'
|
|
114
105
|
});
|
|
115
|
-
const borderColorClass = useDeviceTargetClass
|
|
106
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
116
107
|
prefix: 'border-color_',
|
|
117
108
|
propsKey: 'borderColor'
|
|
118
109
|
});
|
|
119
|
-
const widthClass = useDeviceTargetClass
|
|
110
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
120
111
|
prefix: 'width_',
|
|
121
112
|
propsKey: 'width'
|
|
122
113
|
});
|
|
123
|
-
const [isRevealed, setIsRevealed] =
|
|
124
|
-
const inputType =
|
|
114
|
+
const [isRevealed, setIsRevealed] = useState(false);
|
|
115
|
+
const inputType = useMemo(() => {
|
|
125
116
|
return isRevealed ? 'text' : 'password';
|
|
126
117
|
}, [isRevealed]);
|
|
127
|
-
const revealeHandler =
|
|
118
|
+
const revealeHandler = useCallback(e => {
|
|
128
119
|
e.preventDefault();
|
|
129
120
|
setIsRevealed(prev => !prev);
|
|
130
121
|
}, [setIsRevealed]);
|
|
131
|
-
return /*#__PURE__*/React__default.
|
|
122
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
132
123
|
className: "input-password"
|
|
133
|
-
}, /*#__PURE__*/React__default.
|
|
134
|
-
className:
|
|
124
|
+
}, /*#__PURE__*/React__default.createElement("input", {
|
|
125
|
+
className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, fillClass, placeholderTextColorClass, shapeClass || inputPasswordConfig.appearance[appearance]?.shape && `input-password__input_shape_${inputPasswordConfig.appearance[appearance].shape}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textSizeClass || inputPasswordConfig.appearance[appearance]?.textSize && `text_size_${inputPasswordConfig.appearance[appearance].textSize}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass, borderWidthClass, sizeClass || inputPasswordConfig.appearance[appearance]?.size && `input-password__input_size_${inputPasswordConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorClass || inputPasswordConfig.state[state]?.borderColor && `border-color_${inputPasswordConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || inputPasswordConfig.appearance[appearance]?.borderColor && `border-color_${inputPasswordConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || inputPasswordConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputPasswordConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || inputPasswordConfig.appearance[appearance]?.placeholderTextColor && `placeholder-text-color_${inputPasswordConfig.appearance[appearance].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || inputPasswordConfig.state[state]?.textColor && `text-color_${inputPasswordConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || inputPasswordConfig.appearance[appearance]?.textColor && `text-color_${inputPasswordConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
135
126
|
type: inputType,
|
|
136
127
|
id: id,
|
|
137
128
|
disabled: disabled,
|
|
@@ -141,7 +132,7 @@ function InputMask(props) {
|
|
|
141
132
|
onChange: onChange,
|
|
142
133
|
onFocus: onFocus,
|
|
143
134
|
onKeyDown: onKeyDown
|
|
144
|
-
}), isRevealable && /*#__PURE__*/React__default.
|
|
135
|
+
}), isRevealable && /*#__PURE__*/React__default.createElement(Icon, {
|
|
145
136
|
className: "input-password__icon",
|
|
146
137
|
iconFill: iconFill,
|
|
147
138
|
iconFillHover: iconFillHover,
|
|
@@ -153,16 +144,16 @@ function InputMask(props) {
|
|
|
153
144
|
}));
|
|
154
145
|
}
|
|
155
146
|
InputMask.propTypes = {
|
|
156
|
-
id:
|
|
157
|
-
className:
|
|
158
|
-
placeholder:
|
|
159
|
-
value:
|
|
160
|
-
checked:
|
|
161
|
-
disabled:
|
|
162
|
-
onBlur:
|
|
163
|
-
onChange:
|
|
164
|
-
onKeyDown:
|
|
165
|
-
type:
|
|
147
|
+
id: PropTypes.string,
|
|
148
|
+
className: PropTypes.string,
|
|
149
|
+
placeholder: PropTypes.string,
|
|
150
|
+
value: PropTypes.string,
|
|
151
|
+
checked: PropTypes.bool,
|
|
152
|
+
disabled: PropTypes.bool,
|
|
153
|
+
onBlur: PropTypes.func,
|
|
154
|
+
onChange: PropTypes.func,
|
|
155
|
+
onKeyDown: PropTypes.func,
|
|
156
|
+
type: PropTypes.string
|
|
166
157
|
};
|
|
167
158
|
InputMask.defaultProps = {
|
|
168
159
|
size: 'm',
|
|
@@ -257,5 +248,4 @@ InputMask.__docgenInfo = {
|
|
|
257
248
|
}
|
|
258
249
|
};
|
|
259
250
|
|
|
260
|
-
|
|
261
|
-
exports.inputPasswordConfig = inputPasswordConfig;
|
|
251
|
+
export { InputMask, inputPasswordConfig };
|