@itcase/ui 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion-CqPVnTKh.js +173 -0
- package/dist/Avatar-diLCwtnd.js +49 -0
- package/dist/Breadcrumbs-B79kOtMG.js +619 -0
- package/dist/Button-B7vbiqrJ.js +100 -0
- package/dist/ContextMenuItem-BPqsjmSA.js +204 -0
- package/dist/Divider-BlBwMHgl.js +45 -0
- package/dist/Dot-C3R1y59u.js +34 -0
- package/dist/DropdownItem-Dgf0LRhx.js +644 -0
- package/dist/FlexItem-DzNgFIa0.js +118 -0
- package/dist/GridRow-Cc-rz56R.js +158 -0
- package/dist/Group-fbVPmr8W.js +111 -0
- package/dist/Icon-Dn2eEZvb.js +128 -0
- package/dist/Link-ByBzBRDH.js +132 -0
- package/dist/ListItem-Cf8r3w8t.js +479 -0
- package/dist/ModalLoader-DJVKhIZR.js +374 -0
- package/dist/NotificationList-CJyEnxWw.js +38 -0
- package/dist/SearchResult-erxB06IL.js +530 -0
- package/dist/SelectField-CpQMWXaC.js +571 -0
- package/dist/SiteMenuButton-BFmti8pF.js +181 -0
- package/dist/TabGroup-CjmtgOMw.js +1071 -0
- package/dist/Text-BcGbRc14.js +75 -0
- package/dist/cjs/Accordion-DcZ9P5kP.js +182 -0
- package/dist/cjs/Avatar-DQ5fNpnO.js +55 -0
- package/dist/cjs/Breadcrumbs-HubY1qZQ.js +629 -0
- package/dist/cjs/Button-3GkRq8Pv.js +108 -0
- package/dist/cjs/ContextMenuItem-DmbSoGn1.js +213 -0
- package/dist/cjs/Divider-CIYsHYud.js +51 -0
- package/dist/cjs/Dot-vDSigHDs.js +40 -0
- package/dist/cjs/DropdownItem-Bl-Ghc_6.js +653 -0
- package/dist/cjs/FlexItem-BnORv6q3.js +125 -0
- package/dist/cjs/GridRow-mzs0CkNG.js +166 -0
- package/dist/cjs/Group-4zWTDvKx.js +118 -0
- package/dist/cjs/Icon-UBahY607.js +137 -0
- package/dist/cjs/Link-BoShjCEw.js +142 -0
- package/dist/cjs/ListItem-MrHApmF3.js +488 -0
- package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
- package/dist/cjs/NotificationList-DnI8DqyE.js +46 -0
- package/dist/cjs/SearchResult-bTwR5A-g.js +540 -0
- package/dist/cjs/SelectField-BJTu7BXO.js +583 -0
- package/dist/cjs/SiteMenuButton-BGi0gR1z.js +190 -0
- package/dist/cjs/TabGroup-DIWmGIp2.js +1081 -0
- package/dist/cjs/Text-D7Aq1i5R.js +82 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +8 -0
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/cjs/components/Accordion/index.d.ts +3 -0
- package/dist/cjs/components/Accordion.js +40 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +13 -0
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/cjs/components/Avatar/index.d.ts +1 -0
- package/dist/cjs/components/Avatar.js +43 -0
- package/dist/cjs/components/Badge.js +206 -0
- package/dist/cjs/components/Breadcrumbs.js +43 -0
- package/dist/cjs/components/Button/Button.d.ts +5 -0
- package/dist/cjs/components/Button/Button.interface.d.ts +78 -0
- package/dist/cjs/components/Button/index.d.ts +1 -0
- package/dist/cjs/components/Button.js +41 -0
- package/dist/cjs/components/Caption.js +197 -0
- package/dist/cjs/components/Card.js +279 -0
- package/dist/cjs/components/Cell.js +422 -0
- package/dist/cjs/components/Checkbox.js +166 -0
- package/dist/cjs/components/Chips.js +393 -0
- package/dist/cjs/components/Choice.js +346 -0
- package/dist/cjs/components/Code.js +437 -0
- package/dist/cjs/components/ContextMenu.js +41 -0
- package/dist/cjs/components/CookiesWarning.js +180 -0
- package/dist/cjs/components/DadataHintField.js +1193 -0
- package/dist/cjs/components/DatePicker.js +14097 -0
- package/dist/cjs/components/Divider/Divider.d.ts +3 -0
- package/dist/cjs/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/cjs/components/Divider/index.d.ts +1 -0
- package/dist/cjs/components/Divider.js +21 -0
- package/dist/cjs/components/Dot/Dot.d.ts +6 -0
- package/dist/cjs/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/cjs/components/Dot/index.d.ts +1 -0
- package/dist/cjs/components/Dot.js +21 -0
- package/dist/cjs/components/Drawer.js +284 -0
- package/dist/cjs/components/Dropdown.js +30 -0
- package/dist/cjs/components/Flex/Flex.d.ts +8 -0
- package/dist/cjs/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/cjs/components/Flex/FlexItem.d.ts +8 -0
- package/dist/cjs/components/Flex/index.d.ts +3 -0
- package/dist/cjs/components/Flex.js +22 -0
- package/dist/cjs/components/FormField.js +53 -0
- package/dist/cjs/components/Grid/Grid.d.ts +8 -0
- package/dist/cjs/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/cjs/components/Grid/GridItem.d.ts +3 -0
- package/dist/cjs/components/Grid/GridRow.d.ts +8 -0
- package/dist/cjs/components/Grid/index.d.ts +4 -0
- package/dist/cjs/components/Grid.js +23 -0
- package/dist/cjs/components/Group/Group.d.ts +9 -0
- package/dist/cjs/components/Group/Group.interface.d.ts +51 -0
- package/dist/cjs/components/Group/index.d.ts +1 -0
- package/dist/cjs/components/Group.js +22 -0
- package/dist/cjs/components/Icon/Icon.d.ts +5 -0
- package/dist/cjs/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/cjs/components/Icon/index.d.ts +1 -0
- package/dist/cjs/components/Icon.js +39 -0
- package/dist/cjs/components/Image.js +480 -0
- package/dist/cjs/components/Input.js +233 -0
- package/dist/cjs/components/InputMask.js +233 -0
- package/dist/cjs/components/InputPassword.js +255 -0
- package/dist/cjs/components/Label.js +643 -0
- package/dist/cjs/components/LanguageSelector.js +125 -0
- package/dist/cjs/components/Link/Link.d.ts +11 -0
- package/dist/cjs/components/Link/Link.interface.d.ts +57 -0
- package/dist/cjs/components/Link/index.d.ts +1 -0
- package/dist/cjs/components/Link.js +23 -0
- package/dist/cjs/components/List.js +30 -0
- package/dist/cjs/components/Loader.js +156 -0
- package/dist/cjs/components/Logo.js +175 -0
- package/dist/cjs/components/Menu.js +196 -0
- package/dist/cjs/components/MenuItem.js +680 -0
- package/dist/cjs/components/Modal.js +28 -0
- package/dist/cjs/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/cjs/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/cjs/components/Notification/NotificationList.d.ts +3 -0
- package/dist/cjs/components/Notification/index.d.ts +3 -0
- package/dist/cjs/components/Notification.js +36 -0
- package/dist/cjs/components/Overlay.js +197 -0
- package/dist/cjs/components/Page.js +422 -0
- package/dist/cjs/components/Pagination.js +371 -0
- package/dist/cjs/components/Radio.js +267 -0
- package/dist/{components/Background.js → cjs/components/RangeSlider.js} +105 -74
- package/dist/cjs/components/Response.js +245 -0
- package/dist/cjs/components/ScrollOnDrag.js +214 -0
- package/dist/cjs/components/Scrollbar.js +71 -0
- package/dist/cjs/components/Search.js +43 -0
- package/dist/cjs/components/Segmented.js +235 -0
- package/dist/cjs/components/Select.js +8531 -0
- package/dist/cjs/components/SiteMenu.js +40 -0
- package/dist/cjs/components/Swiper.js +5655 -0
- package/dist/cjs/components/Switch.js +105 -0
- package/dist/cjs/components/Tab.js +42 -0
- package/dist/cjs/components/Text/Text.d.ts +9 -0
- package/dist/cjs/components/Text/Text.interface.d.ts +53 -0
- package/dist/cjs/components/Text/index.d.ts +1 -0
- package/dist/cjs/components/Text.js +22 -0
- package/dist/cjs/components/Textarea.js +212 -0
- package/dist/cjs/components/Tile.js +568 -0
- package/dist/cjs/components/Title.js +400 -0
- package/dist/cjs/components/Tooltip.js +451 -0
- package/dist/cjs/components/Video.js +175 -0
- package/dist/cjs/components/Wrapper.js +438 -0
- package/dist/cjs/components/index.d.ts +58 -0
- package/dist/cjs/components.js +234 -0
- package/dist/cjs/constants/componentProps/align.js +7 -0
- package/dist/cjs/constants/componentProps/alignDirection.js +7 -0
- package/dist/cjs/constants/componentProps/alignment.js +7 -0
- package/dist/cjs/constants/componentProps/borderColor.js +7 -0
- package/dist/cjs/constants/componentProps/borderColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/borderType.js +7 -0
- package/dist/cjs/constants/componentProps/borderWidth.js +9 -0
- package/dist/cjs/constants/componentProps/captionPosition.js +7 -0
- package/dist/cjs/constants/componentProps/direction.js +7 -0
- package/dist/cjs/constants/componentProps/emojiSize.js +9 -0
- package/dist/cjs/constants/componentProps/fill.js +7 -0
- package/dist/cjs/constants/componentProps/fillGradient.js +7 -0
- package/dist/cjs/constants/componentProps/fillHover.js +7 -0
- package/dist/cjs/constants/componentProps/fillType.js +7 -0
- package/dist/cjs/constants/componentProps/flexAlign.js +7 -0
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +7 -0
- package/dist/cjs/constants/componentProps/flexWrap.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlign.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +7 -0
- package/dist/cjs/constants/componentProps/height.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/iconFillSize.js +9 -0
- package/dist/cjs/constants/componentProps/iconSize.js +9 -0
- package/dist/cjs/constants/componentProps/itemColor.js +7 -0
- package/dist/cjs/constants/componentProps/position.js +7 -0
- package/dist/cjs/constants/componentProps/resizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/shape.js +7 -0
- package/dist/cjs/constants/componentProps/size.js +7 -0
- package/dist/cjs/constants/componentProps/sizeInterface.js +7 -0
- package/dist/cjs/constants/componentProps/sizePX.js +9 -0
- package/dist/cjs/constants/componentProps/stacking.js +7 -0
- package/dist/cjs/constants/componentProps/state.js +7 -0
- package/dist/cjs/constants/componentProps/strokeColor.js +7 -0
- package/dist/cjs/constants/componentProps/textAlign.js +7 -0
- package/dist/cjs/constants/componentProps/textColor.js +7 -0
- package/dist/cjs/constants/componentProps/textColorActive.js +7 -0
- package/dist/cjs/constants/componentProps/textColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/textGradient.js +7 -0
- package/dist/cjs/constants/componentProps/textSize.js +7 -0
- package/dist/cjs/constants/componentProps/textStyle.js +7 -0
- package/dist/cjs/constants/componentProps/textTag.js +7 -0
- package/dist/cjs/constants/componentProps/textWeight.js +9 -0
- package/dist/cjs/constants/componentProps/textWrap.js +7 -0
- package/dist/cjs/constants/componentProps/titleSize.js +7 -0
- package/dist/cjs/constants/componentProps/type.js +7 -0
- package/dist/cjs/constants/componentProps/underline.js +7 -0
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/width.js +7 -0
- package/dist/cjs/constants/componentProps/wrap.js +7 -0
- package/dist/cjs/constants.js +111 -0
- package/dist/cjs/context/Notifications.js +123 -0
- package/dist/cjs/context/UIContext.js +57 -0
- package/dist/cjs/context/index.d.ts +2 -0
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/cjs/hooks/styleAttributes.js +39 -0
- package/dist/cjs/hooks/useDeviceTargetClass.js +61 -0
- package/dist/cjs/hooks/useMediaQueries.js +139 -0
- package/dist/cjs/hooks/useStyles.js +135 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/jsx-runtime-BCmQOGxJ.js +1363 -0
- package/dist/cjs/types/componentProps/align.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignment.d.ts +1 -0
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderType.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/cjs/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/cjs/types/componentProps/direction.d.ts +1 -0
- package/dist/cjs/types/componentProps/elevation.d.ts +1 -0
- package/dist/cjs/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/fill.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillType.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/height.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/position.d.ts +1 -0
- package/dist/cjs/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/shape.d.ts +1 -0
- package/dist/cjs/types/componentProps/size.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizePX.d.ts +1 -0
- package/dist/cjs/types/componentProps/stacking.d.ts +1 -0
- package/dist/cjs/types/componentProps/state.d.ts +1 -0
- package/dist/cjs/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/textGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/textStyle.d.ts +1 -0
- package/dist/cjs/types/componentProps/textTag.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/titleSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/type.d.ts +1 -0
- package/dist/cjs/types/componentProps/underline.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/width.d.ts +1 -0
- package/dist/cjs/types/componentProps/wrap.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +56 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion.js +33 -697
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar.js +37 -257
- package/dist/components/Badge.js +41 -56
- package/dist/components/Breadcrumbs.js +36 -656
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.interface.d.ts +78 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button.js +34 -546
- package/dist/components/Caption.js +37 -45
- package/dist/components/Card.js +47 -60
- package/dist/components/Cell.js +83 -96
- package/dist/components/Checkbox.js +41 -56
- package/dist/components/Chips.js +65 -79
- package/dist/components/Choice.js +76 -91
- package/dist/components/Code.js +40 -48
- package/dist/components/ContextMenu.js +34 -246
- package/dist/components/CookiesWarning.js +55 -73
- package/dist/components/DadataHintField.js +55 -64
- package/dist/components/DatePicker.js +296 -327
- package/dist/components/Divider/Divider.d.ts +3 -0
- package/dist/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider.js +15 -257
- package/dist/components/Dot/Dot.d.ts +6 -0
- package/dist/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/components/Dot/index.d.ts +1 -0
- package/dist/components/Dot.js +15 -226
- package/dist/components/Drawer.js +39 -37
- package/dist/components/Dropdown.js +23 -657
- package/dist/components/Flex/Flex.d.ts +8 -0
- package/dist/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/components/Flex/FlexItem.d.ts +8 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/Flex.js +15 -1186
- package/dist/components/FormField.js +43 -617
- package/dist/components/Grid/Grid.d.ts +8 -0
- package/dist/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/components/Grid/GridItem.d.ts +3 -0
- package/dist/components/Grid/GridRow.d.ts +8 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid.js +15 -1709
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.interface.d.ts +51 -0
- package/dist/components/Group/index.d.ts +1 -0
- package/dist/components/Group.js +15 -315
- package/dist/components/Icon/Icon.d.ts +5 -0
- package/dist/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon.js +32 -642
- package/dist/components/Image.js +79 -87
- package/dist/components/Input.js +40 -49
- package/dist/components/InputMask.js +39 -48
- package/dist/components/InputPassword.js +61 -76
- package/dist/components/Label.js +105 -115
- package/dist/components/LanguageSelector.js +48 -62
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/components/Link/Link.interface.d.ts +57 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link.js +15 -505
- package/dist/components/List.js +23 -498
- package/dist/components/Loader.js +41 -56
- package/dist/components/Logo.js +40 -55
- package/dist/components/Menu.js +55 -58
- package/dist/components/MenuItem.js +102 -110
- package/dist/components/Modal.js +21 -402
- package/dist/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/components/Notification/NotificationList.d.ts +3 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Notification.js +28 -281
- package/dist/components/Overlay.js +37 -45
- package/dist/components/Page.js +66 -74
- package/dist/components/Pagination.js +225 -57
- package/dist/components/Radio.js +55 -70
- package/dist/components/RangeSlider.js +53 -62
- package/dist/components/Response.js +104 -120
- package/dist/components/ScrollOnDrag.js +71 -172
- package/dist/components/Scrollbar.js +15 -18
- package/dist/components/Search.js +35 -571
- package/dist/components/Segmented.js +54 -69
- package/dist/components/Select.js +274 -324
- package/dist/components/SiteMenu.js +33 -221
- package/dist/components/Swiper.js +140 -148
- package/dist/components/Switch.js +17 -25
- package/dist/components/Tab.js +34 -1089
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.interface.d.ts +53 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text.js +15 -362
- package/dist/components/Textarea.js +37 -46
- package/dist/components/Tile.js +100 -112
- package/dist/components/Title.js +66 -75
- package/dist/components/Tooltip.js +83 -93
- package/dist/components/Video.js +32 -40
- package/dist/components/Wrapper.js +67 -75
- package/dist/components/index.d.ts +58 -0
- package/dist/components.js +117 -0
- package/dist/constants/componentProps/align.js +1 -3
- package/dist/constants/componentProps/alignDirection.js +1 -3
- package/dist/constants/componentProps/alignment.js +1 -3
- package/dist/constants/componentProps/borderColor.js +1 -3
- package/dist/constants/componentProps/borderColorHover.js +1 -3
- package/dist/constants/componentProps/borderType.js +1 -3
- package/dist/constants/componentProps/borderWidth.js +1 -3
- package/dist/constants/componentProps/captionPosition.js +1 -3
- package/dist/constants/componentProps/direction.js +1 -3
- package/dist/constants/componentProps/emojiSize.js +1 -3
- package/dist/constants/componentProps/fill.js +1 -3
- package/dist/constants/componentProps/fillGradient.js +1 -3
- package/dist/constants/componentProps/fillHover.js +1 -3
- package/dist/constants/componentProps/fillType.js +1 -3
- package/dist/constants/componentProps/flexAlign.js +1 -3
- package/dist/constants/componentProps/flexJustifyContent.js +1 -3
- package/dist/constants/componentProps/flexWrap.js +1 -3
- package/dist/constants/componentProps/gridAlign.js +1 -3
- package/dist/constants/componentProps/gridAlignSelf.js +1 -3
- package/dist/constants/componentProps/gridJustifyItems.js +1 -3
- package/dist/constants/componentProps/gridJustifySelf.js +1 -3
- package/dist/constants/componentProps/height.js +1 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +1 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +1 -3
- package/dist/constants/componentProps/iconFillSize.js +1 -3
- package/dist/constants/componentProps/iconSize.js +1 -3
- package/dist/constants/componentProps/itemColor.js +1 -3
- package/dist/constants/componentProps/position.js +1 -3
- package/dist/constants/componentProps/resizeMode.js +1 -3
- package/dist/constants/componentProps/shape.js +1 -3
- package/dist/constants/componentProps/size.js +1 -3
- package/dist/constants/componentProps/sizeInterface.js +1 -3
- package/dist/constants/componentProps/sizePX.js +1 -3
- package/dist/constants/componentProps/stacking.js +1 -3
- package/dist/constants/componentProps/state.js +1 -3
- package/dist/constants/componentProps/strokeColor.js +1 -3
- package/dist/constants/componentProps/textAlign.js +1 -3
- package/dist/constants/componentProps/textColor.js +1 -3
- package/dist/constants/componentProps/textColorActive.js +1 -3
- package/dist/constants/componentProps/textColorHover.js +1 -3
- package/dist/constants/componentProps/textGradient.js +1 -3
- package/dist/constants/componentProps/textSize.js +1 -3
- package/dist/constants/componentProps/textStyle.js +1 -3
- package/dist/constants/componentProps/textTag.js +1 -3
- package/dist/constants/componentProps/textWeight.js +1 -3
- package/dist/constants/componentProps/textWrap.js +1 -3
- package/dist/constants/componentProps/titleSize.js +1 -3
- package/dist/constants/componentProps/type.js +1 -3
- package/dist/constants/componentProps/underline.js +1 -3
- package/dist/constants/componentProps/verticalContentAlign.js +1 -3
- package/dist/constants/componentProps/verticalResizeMode.js +1 -3
- package/dist/constants/componentProps/width.js +1 -3
- package/dist/constants/componentProps/wrap.js +1 -3
- package/dist/constants.js +53 -111
- package/dist/context/Notifications.js +17 -25
- package/dist/context/UIContext.js +21 -29
- package/dist/context/index.d.ts +2 -0
- package/dist/css/components/Avatar/Avatar.css +10 -0
- package/dist/css/components/Button/Button.css +13 -2
- package/dist/css/components/Dot/Dot.css +10 -4
- package/dist/css/components/Dropdown/Dropdown.css +41 -15
- package/dist/css/components/Pagination/Pagination.css +55 -32
- package/dist/css/components/Pagination/css/__item/pagination__item.css +27 -25
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +28 -13
- package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
- package/dist/css/components/Select/Select.css +8 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill_active_hover.css +6 -3
- package/dist/css/styles/text-color/text-color_active.css +4 -2
- package/dist/floating-ui.dom-BQ7wiYTi.js +1374 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/hooks/styleAttributes.js +2 -4
- package/dist/hooks/useDeviceTargetClass.js +13 -20
- package/dist/hooks/useMediaQueries.js +16 -10
- package/dist/hooks/useStyles.js +22 -30
- package/dist/index.d.ts +4 -0
- package/dist/jsx-runtime-ClDdVO4Q.js +1357 -0
- package/dist/types/componentProps/align.d.ts +1 -0
- package/dist/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/types/componentProps/alignment.d.ts +1 -0
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/types/componentProps/borderColor.d.ts +1 -0
- package/dist/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/types/componentProps/borderType.d.ts +1 -0
- package/dist/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/types/componentProps/direction.d.ts +1 -0
- package/dist/types/componentProps/elevation.d.ts +1 -0
- package/dist/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/types/componentProps/fill.d.ts +1 -0
- package/dist/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/types/componentProps/fillHover.d.ts +1 -0
- package/dist/types/componentProps/fillType.d.ts +1 -0
- package/dist/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/types/componentProps/height.d.ts +1 -0
- package/dist/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/types/componentProps/iconSize.d.ts +1 -0
- package/dist/types/componentProps/itemColor.d.ts +1 -0
- package/dist/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/types/componentProps/position.d.ts +1 -0
- package/dist/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/types/componentProps/shape.d.ts +1 -0
- package/dist/types/componentProps/size.d.ts +1 -0
- package/dist/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/types/componentProps/sizePX.d.ts +1 -0
- package/dist/types/componentProps/stacking.d.ts +1 -0
- package/dist/types/componentProps/state.d.ts +1 -0
- package/dist/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/types/componentProps/textAlign.d.ts +1 -0
- package/dist/types/componentProps/textColor.d.ts +1 -0
- package/dist/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/types/componentProps/textGradient.d.ts +1 -0
- package/dist/types/componentProps/textSize.d.ts +1 -0
- package/dist/types/componentProps/textStyle.d.ts +1 -0
- package/dist/types/componentProps/textTag.d.ts +1 -0
- package/dist/types/componentProps/textWeight.d.ts +1 -0
- package/dist/types/componentProps/textWrap.d.ts +1 -0
- package/dist/types/componentProps/titleSize.d.ts +1 -0
- package/dist/types/componentProps/type.d.ts +1 -0
- package/dist/types/componentProps/underline.d.ts +1 -0
- package/dist/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/width.d.ts +1 -0
- package/dist/types/componentProps/wrap.d.ts +1 -0
- package/dist/types/index.d.ts +56 -0
- package/package.json +86 -29
- package/dist/css/components/Background/Background.css +0 -11
- /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
package/dist/components/Image.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
require('react-responsive');
|
|
19
|
-
require('lodash/castArray');
|
|
20
|
-
|
|
21
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
-
|
|
23
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
24
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
25
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import borderColorProps from '../constants/componentProps/borderColor.js';
|
|
5
|
+
import resizeModeProps from '../constants/componentProps/resizeMode.js';
|
|
6
|
+
import shapeProps from '../constants/componentProps/shape.js';
|
|
7
|
+
import widthProps from '../constants/componentProps/width.js';
|
|
8
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
9
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
10
|
+
import 'lodash/castArray';
|
|
11
|
+
import 'lodash/camelCase';
|
|
12
|
+
import '../context/UIContext.js';
|
|
13
|
+
import '../hooks/useMediaQueries.js';
|
|
14
|
+
import 'react-responsive';
|
|
15
|
+
import 'lodash/maxBy';
|
|
16
|
+
import 'lodash/upperFirst';
|
|
17
|
+
import '../hooks/styleAttributes.js';
|
|
26
18
|
|
|
27
19
|
function Image(props) {
|
|
28
20
|
const {
|
|
@@ -42,55 +34,55 @@ function Image(props) {
|
|
|
42
34
|
onClick,
|
|
43
35
|
onError
|
|
44
36
|
} = props;
|
|
45
|
-
const cursorClass = useDeviceTargetClass
|
|
37
|
+
const cursorClass = useDeviceTargetClass(props, {
|
|
46
38
|
prefix: 'cursor_',
|
|
47
39
|
propsKey: 'cursor'
|
|
48
40
|
});
|
|
49
|
-
const horizontalAlignClass = useDeviceTargetClass
|
|
41
|
+
const horizontalAlignClass = useDeviceTargetClass(props, {
|
|
50
42
|
prefix: 'image_horizontal-align_',
|
|
51
43
|
propsKey: 'horizontalAlign'
|
|
52
44
|
});
|
|
53
|
-
const verticalAlignClass = useDeviceTargetClass
|
|
45
|
+
const verticalAlignClass = useDeviceTargetClass(props, {
|
|
54
46
|
prefix: 'image_vertical-align_',
|
|
55
47
|
propsKey: 'verticalContentAlign'
|
|
56
48
|
});
|
|
57
|
-
const shapeClass = useDeviceTargetClass
|
|
49
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
58
50
|
prefix: 'image_shape_',
|
|
59
51
|
propsKey: 'shape'
|
|
60
52
|
});
|
|
61
|
-
const resizeModeClass = useDeviceTargetClass
|
|
53
|
+
const resizeModeClass = useDeviceTargetClass(props, {
|
|
62
54
|
prefix: 'image_resize-mode_',
|
|
63
55
|
propsKey: 'resizeMode'
|
|
64
56
|
});
|
|
65
|
-
const widthClass = useDeviceTargetClass
|
|
57
|
+
const widthClass = useDeviceTargetClass(props, {
|
|
66
58
|
prefix: 'width_',
|
|
67
59
|
propsKey: 'width'
|
|
68
60
|
});
|
|
69
|
-
const heightClass = useDeviceTargetClass
|
|
61
|
+
const heightClass = useDeviceTargetClass(props, {
|
|
70
62
|
prefix: 'height_',
|
|
71
63
|
propsKey: 'height'
|
|
72
64
|
});
|
|
73
|
-
const imageWidthClass = useDeviceTargetClass
|
|
65
|
+
const imageWidthClass = useDeviceTargetClass(props, {
|
|
74
66
|
prefix: 'width_',
|
|
75
67
|
propsKey: 'imageWidth'
|
|
76
68
|
});
|
|
77
|
-
const imageHeightClass = useDeviceTargetClass
|
|
69
|
+
const imageHeightClass = useDeviceTargetClass(props, {
|
|
78
70
|
prefix: 'height_',
|
|
79
71
|
propsKey: 'imageHeight'
|
|
80
72
|
});
|
|
81
|
-
const borderClass = useDeviceTargetClass
|
|
73
|
+
const borderClass = useDeviceTargetClass(props, {
|
|
82
74
|
prefix: 'border-color_',
|
|
83
|
-
propsKey: '
|
|
75
|
+
propsKey: 'borderColor'
|
|
84
76
|
});
|
|
85
|
-
const borderColorImageClass = useDeviceTargetClass
|
|
77
|
+
const borderColorImageClass = useDeviceTargetClass(props, {
|
|
86
78
|
prefix: 'border-color-image_',
|
|
87
79
|
propsKey: 'borderColorImage'
|
|
88
80
|
});
|
|
89
|
-
const fillClass = useDeviceTargetClass
|
|
81
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
90
82
|
prefix: 'fill_',
|
|
91
83
|
propsKey: 'fill'
|
|
92
84
|
});
|
|
93
|
-
const fillHoverClass = useDeviceTargetClass
|
|
85
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
94
86
|
prefix: 'fill_hover_',
|
|
95
87
|
propsKey: 'fillHover'
|
|
96
88
|
});
|
|
@@ -98,64 +90,64 @@ function Image(props) {
|
|
|
98
90
|
styles,
|
|
99
91
|
wrapper: wrapperStyles,
|
|
100
92
|
image: imageStyles
|
|
101
|
-
} = useStyles
|
|
102
|
-
return /*#__PURE__*/React__default.
|
|
103
|
-
className:
|
|
93
|
+
} = useStyles(props);
|
|
94
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
95
|
+
className: clsx(className, 'image', mode && `image_mode_${mode}`, type && `image_type_${type}`, cursorClass, horizontalAlignClass, verticalAlignClass, shapeClass, fillClass, fillHoverClass, resizeModeClass, widthClass, heightClass),
|
|
104
96
|
onClick: onClick,
|
|
105
97
|
style: styles
|
|
106
|
-
}, before, /*#__PURE__*/React__default.
|
|
107
|
-
className:
|
|
98
|
+
}, before, /*#__PURE__*/React__default.createElement("div", {
|
|
99
|
+
className: clsx('image__wrapper', imageWrapperClassName),
|
|
108
100
|
style: wrapperStyles
|
|
109
|
-
}, /*#__PURE__*/React__default.
|
|
101
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
110
102
|
alt: alt,
|
|
111
103
|
src: src,
|
|
112
104
|
style: imageStyles,
|
|
113
105
|
title: title,
|
|
114
|
-
className:
|
|
106
|
+
className: clsx('image__item', imageWidthClass, imageHeightClass, imageClassName, borderClass, borderColorImageClass),
|
|
115
107
|
onError: onError
|
|
116
108
|
}), overlay, caption, children), after);
|
|
117
109
|
}
|
|
118
110
|
Image.propTypes = {
|
|
119
|
-
after:
|
|
120
|
-
alt:
|
|
121
|
-
before:
|
|
122
|
-
border:
|
|
123
|
-
borderColorImage:
|
|
124
|
-
borderColorImageDesktop:
|
|
125
|
-
borderColorImageMobile:
|
|
126
|
-
borderColorImageTablet:
|
|
127
|
-
overlay:
|
|
128
|
-
caption:
|
|
129
|
-
children:
|
|
130
|
-
className:
|
|
131
|
-
imageClassName:
|
|
132
|
-
imgWrapClassName:
|
|
133
|
-
onClick:
|
|
134
|
-
resizeMode:
|
|
135
|
-
resizeModeDesktop:
|
|
136
|
-
resizeModeMobile:
|
|
137
|
-
resizeModeTablet:
|
|
138
|
-
shape:
|
|
139
|
-
shapeDesktop:
|
|
140
|
-
shapeMobile:
|
|
141
|
-
shapeTablet:
|
|
142
|
-
src:
|
|
143
|
-
style:
|
|
144
|
-
title:
|
|
145
|
-
type:
|
|
146
|
-
сontentX:
|
|
147
|
-
сontentXDesktop:
|
|
148
|
-
сontentXMobile:
|
|
149
|
-
сontentXTablet:
|
|
150
|
-
сontentY:
|
|
151
|
-
сontentYDesktop:
|
|
152
|
-
сontentYMobile:
|
|
153
|
-
сontentYTablet:
|
|
154
|
-
imageWidth:
|
|
155
|
-
imageWidthMobile:
|
|
156
|
-
imageWidthTablet:
|
|
157
|
-
imageWidthDesktop:
|
|
158
|
-
onError:
|
|
111
|
+
after: PropTypes.any,
|
|
112
|
+
alt: PropTypes.string,
|
|
113
|
+
before: PropTypes.any,
|
|
114
|
+
border: PropTypes.string,
|
|
115
|
+
borderColorImage: PropTypes.oneOf(borderColorProps),
|
|
116
|
+
borderColorImageDesktop: PropTypes.oneOf(borderColorProps),
|
|
117
|
+
borderColorImageMobile: PropTypes.oneOf(borderColorProps),
|
|
118
|
+
borderColorImageTablet: PropTypes.oneOf(borderColorProps),
|
|
119
|
+
overlay: PropTypes.any,
|
|
120
|
+
caption: PropTypes.any,
|
|
121
|
+
children: PropTypes.any,
|
|
122
|
+
className: PropTypes.string,
|
|
123
|
+
imageClassName: PropTypes.string,
|
|
124
|
+
imgWrapClassName: PropTypes.string,
|
|
125
|
+
onClick: PropTypes.func,
|
|
126
|
+
resizeMode: PropTypes.oneOf(resizeModeProps),
|
|
127
|
+
resizeModeDesktop: PropTypes.oneOf(resizeModeProps),
|
|
128
|
+
resizeModeMobile: PropTypes.oneOf(resizeModeProps),
|
|
129
|
+
resizeModeTablet: PropTypes.oneOf(resizeModeProps),
|
|
130
|
+
shape: PropTypes.oneOf(shapeProps),
|
|
131
|
+
shapeDesktop: PropTypes.oneOf(shapeProps),
|
|
132
|
+
shapeMobile: PropTypes.oneOf(shapeProps),
|
|
133
|
+
shapeTablet: PropTypes.oneOf(shapeProps),
|
|
134
|
+
src: PropTypes.string,
|
|
135
|
+
style: PropTypes.object,
|
|
136
|
+
title: PropTypes.string,
|
|
137
|
+
type: PropTypes.string,
|
|
138
|
+
сontentX: PropTypes.string,
|
|
139
|
+
сontentXDesktop: PropTypes.string,
|
|
140
|
+
сontentXMobile: PropTypes.string,
|
|
141
|
+
сontentXTablet: PropTypes.string,
|
|
142
|
+
сontentY: PropTypes.string,
|
|
143
|
+
сontentYDesktop: PropTypes.string,
|
|
144
|
+
сontentYMobile: PropTypes.string,
|
|
145
|
+
сontentYTablet: PropTypes.string,
|
|
146
|
+
imageWidth: PropTypes.oneOf(widthProps),
|
|
147
|
+
imageWidthMobile: PropTypes.oneOf(widthProps),
|
|
148
|
+
imageWidthTablet: PropTypes.oneOf(widthProps),
|
|
149
|
+
imageWidthDesktop: PropTypes.oneOf(widthProps),
|
|
150
|
+
onError: PropTypes.func
|
|
159
151
|
};
|
|
160
152
|
Image.__docgenInfo = {
|
|
161
153
|
"description": "",
|
|
@@ -477,4 +469,4 @@ Image.__docgenInfo = {
|
|
|
477
469
|
}
|
|
478
470
|
};
|
|
479
471
|
|
|
480
|
-
|
|
472
|
+
export { Image };
|
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 };
|