@itcase/ui 1.1.7 → 1.1.9
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 → Accordion-CqPVnTKh.js} +3 -34
- package/dist/Avatar-DB6Si0s1.js +31 -0
- package/dist/{Breadcrumbs-KOoMbWmP.js → Breadcrumbs-B79kOtMG.js} +3 -3
- package/dist/Button-B7vbiqrJ.js +100 -0
- package/dist/{ContextMenuItem-CF5L8xev.js → ContextMenuItem-BPqsjmSA.js} +3 -3
- package/dist/Divider-BlBwMHgl.js +45 -0
- package/dist/Dot-C3R1y59u.js +34 -0
- package/dist/{DropdownItem-C0gYXEq6.js → DropdownItem-Dgf0LRhx.js} +3 -3
- package/dist/{FlexItem-DHynUt6v.js → FlexItem-DzNgFIa0.js} +1 -1
- package/dist/GridRow-Cc-rz56R.js +158 -0
- package/dist/{Group-DhYXDvAJ.js → Group-fbVPmr8W.js} +12 -20
- package/dist/Icon-Dn2eEZvb.js +128 -0
- package/dist/Link-ByBzBRDH.js +132 -0
- package/dist/{ListItem-DYbK4_8c.js → ListItem-Cf8r3w8t.js} +1 -1
- package/dist/NotificationList-CJyEnxWw.js +38 -0
- package/dist/{SearchResult-DNPmzvp8.js → SearchResult-erxB06IL.js} +2 -2
- package/dist/{SelectField-uEsQcoxF.js → SelectField-CpQMWXaC.js} +3 -3
- package/dist/{SiteMenuButton-DE_hCJUV.js → SiteMenuButton-BFmti8pF.js} +2 -2
- package/dist/{TabGroup-CCR5jORT.js → TabGroup-CjmtgOMw.js} +3 -3
- package/dist/{Text-DffpwlYq.js → Text-BcGbRc14.js} +7 -13
- package/dist/cjs/{Accordion-BDTE-Lkj.js → Accordion-DcZ9P5kP.js} +5 -36
- package/dist/cjs/Avatar-C8tufLEH.js +37 -0
- package/dist/cjs/{Breadcrumbs-BV5q8aPJ.js → Breadcrumbs-HubY1qZQ.js} +5 -5
- package/dist/cjs/Button-3GkRq8Pv.js +108 -0
- package/dist/cjs/{ContextMenuItem-C8eg828K.js → ContextMenuItem-DmbSoGn1.js} +6 -6
- package/dist/cjs/Divider-CIYsHYud.js +51 -0
- package/dist/cjs/Dot-vDSigHDs.js +40 -0
- package/dist/cjs/{DropdownItem-DT8iQfVh.js → DropdownItem-Bl-Ghc_6.js} +5 -5
- package/dist/cjs/{FlexItem-CYXxJtYX.js → FlexItem-BnORv6q3.js} +1 -1
- package/dist/cjs/GridRow-mzs0CkNG.js +166 -0
- package/dist/cjs/{Group-DbzIk8kt.js → Group-4zWTDvKx.js} +12 -20
- package/dist/cjs/Icon-UBahY607.js +137 -0
- package/dist/cjs/Link-BoShjCEw.js +142 -0
- package/dist/cjs/{ListItem-CTDoiG0C.js → ListItem-MrHApmF3.js} +2 -2
- package/dist/cjs/NotificationList-DnI8DqyE.js +46 -0
- package/dist/cjs/{SearchResult-CdsV7oDb.js → SearchResult-bTwR5A-g.js} +7 -7
- package/dist/cjs/{SelectField-DVCsVz6q.js → SelectField-BJTu7BXO.js} +11 -11
- package/dist/cjs/{SiteMenuButton-CVdX1ouh.js → SiteMenuButton-BGi0gR1z.js} +3 -3
- package/dist/cjs/{TabGroup-B1LUF9Hg.js → TabGroup-DIWmGIp2.js} +7 -7
- package/dist/cjs/{Text-CfBPhwqK.js → Text-D7Aq1i5R.js} +7 -13
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/cjs/components/Accordion.js +11 -16
- package/dist/cjs/components/Avatar/Avatar.d.ts +3 -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 +21 -248
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +17 -22
- 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 +25 -547
- package/dist/cjs/components/Card.js +1 -1
- package/dist/cjs/components/Cell.js +18 -22
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +10 -15
- package/dist/cjs/components/ContextMenu.js +10 -17
- package/dist/cjs/components/CookiesWarning.js +12 -18
- package/dist/cjs/components/DatePicker.js +13 -18
- 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 +12 -248
- 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 +11 -216
- package/dist/cjs/components/Drawer.js +14 -4
- package/dist/cjs/components/Dropdown.js +7 -13
- package/dist/cjs/components/Flex/Flex.interface.d.ts +5 -3
- package/dist/cjs/components/Flex/index.d.ts +2 -2
- package/dist/cjs/components/Flex.js +1 -1
- package/dist/cjs/components/FormField.js +12 -18
- 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 +3 -10
- package/dist/cjs/components/Group/Group.interface.d.ts +9 -7
- package/dist/cjs/components/Group.js +1 -1
- 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 +21 -623
- package/dist/cjs/components/Image.js +6 -6
- package/dist/cjs/components/InputPassword.js +14 -19
- package/dist/cjs/components/Label.js +12 -12
- package/dist/cjs/components/LanguageSelector.js +20 -25
- 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 +14 -496
- package/dist/cjs/components/List.js +3 -4
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +7 -14
- package/dist/cjs/components/Menu.js +18 -14
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +1 -1
- 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 +6 -7
- package/dist/cjs/components/Pagination.js +36 -37
- package/dist/cjs/components/Panel/Panel.d.ts +7 -0
- package/dist/cjs/components/Panel/Panel.interface.d.ts +56 -0
- package/dist/cjs/components/Panel/index.d.ts +1 -0
- package/dist/cjs/components/Panel.js +112 -0
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +15 -18
- package/dist/cjs/components/Search.js +19 -24
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +78 -51
- package/dist/cjs/components/SiteMenu.js +14 -19
- package/dist/cjs/components/Tab.js +8 -8
- package/dist/cjs/components/Text/Text.interface.d.ts +29 -27
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +6 -9
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components.js +138 -145
- package/dist/cjs/context/Notifications.js +1 -0
- package/dist/cjs/context/UIContext.js +1 -0
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +12 -13
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/cjs/types/componentProps/fill.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/{constants-ts → types}/componentProps/iconFillSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/overflow.d.ts +1 -0
- package/dist/{constants-ts → cjs/types}/index.d.ts +1 -0
- package/dist/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/components/Accordion.js +11 -16
- package/dist/components/Avatar/Avatar.d.ts +3 -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 +20 -245
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +17 -22
- 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 +23 -543
- package/dist/components/Card.js +1 -1
- package/dist/components/Cell.js +13 -17
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +9 -14
- package/dist/components/ContextMenu.js +10 -17
- package/dist/components/CookiesWarning.js +11 -17
- package/dist/components/DatePicker.js +9 -14
- 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 +11 -245
- 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 +10 -213
- package/dist/components/Drawer.js +14 -4
- package/dist/components/Dropdown.js +7 -13
- package/dist/components/Flex/Flex.interface.d.ts +5 -3
- package/dist/components/Flex/index.d.ts +2 -2
- package/dist/components/Flex.js +1 -1
- package/dist/components/FormField.js +12 -18
- 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 +3 -10
- package/dist/components/Group/Group.interface.d.ts +9 -7
- package/dist/components/Group.js +1 -1
- 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 +19 -618
- package/dist/components/Image.js +6 -6
- package/dist/components/InputPassword.js +13 -18
- package/dist/components/Label.js +12 -12
- package/dist/components/LanguageSelector.js +19 -24
- 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 +11 -491
- package/dist/components/List.js +3 -4
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +6 -13
- package/dist/components/Menu.js +18 -14
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +1 -1
- 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 +6 -7
- package/dist/components/Pagination.js +36 -37
- package/dist/components/Panel/Panel.d.ts +7 -0
- package/dist/components/Panel/Panel.interface.d.ts +56 -0
- package/dist/components/Panel/index.d.ts +1 -0
- package/dist/components/Panel.js +105 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +13 -16
- package/dist/components/Search.js +19 -24
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +73 -46
- package/dist/components/SiteMenu.js +14 -19
- package/dist/components/Tab.js +8 -8
- package/dist/components/Text/Text.interface.d.ts +29 -27
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +6 -9
- package/dist/components/Tooltip.js +1 -1
- package/dist/components.js +25 -32
- package/dist/context/Notifications.js +1 -0
- package/dist/context/UIContext.js +1 -0
- package/dist/css/components/Button/Button.css +12 -1
- package/dist/css/components/Dot/Dot.css +10 -4
- package/dist/css/components/Link/Link.css +4 -0
- package/dist/css/components/Pagination/Pagination.css +2 -0
- package/dist/css/components/Panel/Panel.css +107 -0
- package/dist/css/styles/fill/fill_active_hover.css +6 -3
- package/dist/hooks/styleAttributes.interface.d.ts +12 -13
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/types/componentProps/fill.d.ts +1 -0
- package/dist/types/componentProps/fillHover.d.ts +1 -0
- package/dist/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/{constants-ts → types}/componentProps/iconFillSize.d.ts +1 -1
- package/dist/types/componentProps/iconSize.d.ts +1 -0
- package/dist/types/componentProps/overflow.d.ts +1 -0
- package/dist/{cjs/constants-ts → types}/index.d.ts +1 -0
- package/package.json +10 -4
- package/dist/GridRow-Buc4dsHd.js +0 -1691
- package/dist/NotificationList-KbxjrO3o.js +0 -245
- package/dist/cjs/GridRow-6wilpUeo.js +0 -1701
- package/dist/cjs/NotificationList-B6QbYA9H.js +0 -255
- package/dist/cjs/constants-ts/componentProps/fill.d.ts +0 -1
- package/dist/cjs/constants-ts/componentProps/fillHover.d.ts +0 -1
- package/dist/cjs/constants-ts/componentProps/flexGrow.d.ts +0 -1
- package/dist/cjs/constants-ts/componentProps/iconSize.d.ts +0 -1
- package/dist/constants-ts/componentProps/fill.d.ts +0 -1
- package/dist/constants-ts/componentProps/fillHover.d.ts +0 -1
- package/dist/constants-ts/componentProps/flexGrow.d.ts +0 -1
- package/dist/constants-ts/componentProps/iconSize.d.ts +0 -1
- /package/dist/cjs/{constants-ts → types}/componentProps/align.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/alignDirection.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/alignment.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/borderColor.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/borderColorHover.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/borderType.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/borderWidth.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/captionPosition.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/direction.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/elevation.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/emojiSize.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/fillGradient.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/fillType.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/flexAlign.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/flexJustifyContent.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/flexWrap.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/gridAlign.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/gridAlignSelf.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/gridJustifyItems.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/gridJustifySelf.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/height.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/horizontalContentAlign.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/horizontalResizeMode.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/itemColor.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/justifyContent.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/position.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/resizeMode.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/shape.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/size.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/sizeInterface.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/sizePX.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/stacking.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/state.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/strokeColor.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textAlign.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textColor.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textColorActive.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textColorHover.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textGradient.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textSize.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textStyle.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textTag.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textWeight.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/textWrap.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/titleSize.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/type.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/underline.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/verticalContentAlign.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/verticalResizeMode.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/width.d.ts +0 -0
- /package/dist/cjs/{constants-ts → types}/componentProps/wrap.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/align.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/alignDirection.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/alignment.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/borderColor.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/borderColorHover.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/borderType.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/borderWidth.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/captionPosition.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/direction.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/elevation.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/emojiSize.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/fillGradient.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/fillType.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/flexAlign.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/flexJustifyContent.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/flexWrap.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/gridAlign.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/gridAlignSelf.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/gridJustifyItems.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/gridJustifySelf.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/height.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/horizontalContentAlign.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/horizontalResizeMode.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/itemColor.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/justifyContent.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/position.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/resizeMode.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/shape.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/size.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/sizeInterface.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/sizePX.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/stacking.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/state.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/strokeColor.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textAlign.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textColor.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textColorActive.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textColorHover.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textGradient.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textSize.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textStyle.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textTag.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textWeight.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/textWrap.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/titleSize.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/type.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/underline.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/verticalContentAlign.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/verticalResizeMode.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/width.d.ts +0 -0
- /package/dist/{constants-ts → types}/componentProps/wrap.d.ts +0 -0
|
@@ -1,43 +1,12 @@
|
|
|
1
|
+
import { b as __spreadArray } from './Link-ByBzBRDH.js';
|
|
1
2
|
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
3
|
import React__default, { useCallback, useState, useMemo } from 'react';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import castArray from 'lodash/castArray';
|
|
5
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
7
|
-
import { Icon } from './
|
|
8
|
-
import { T as Text } from './Text-
|
|
9
|
-
|
|
10
|
-
/******************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
12
|
-
|
|
13
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
-
purpose with or without fee is hereby granted.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
-
***************************************************************************** */
|
|
24
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function __spreadArray(to, from, pack) {
|
|
28
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
29
|
-
if (ar || !(i in from)) {
|
|
30
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
31
|
-
ar[i] = from[i];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
38
|
-
var e = new Error(message);
|
|
39
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
40
|
-
};
|
|
8
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
9
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
41
10
|
|
|
42
11
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
43
12
|
return /*#__PURE__*/React__default.createElement("svg", props, /*#__PURE__*/React__default.createElement("path", {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
6
|
+
import { Image } from './components/Image.js';
|
|
7
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
8
|
+
|
|
9
|
+
function Avatar(props) {
|
|
10
|
+
var className = props.className, Dot = props.Dot, icon = props.icon, _a = props.size, size = _a === void 0 ? '96' : _a, after = props.after, before = props.before, src = props.src, type = props.type, mode = props.mode, onClick = props.onClick, _b = props.textSize, textSize = _b === void 0 ? 'l' : _b, _c = props.textColor, textColor = _c === void 0 ? 'surfaceTextTertiary' : _c, _d = props.textWeight, textWeight = _d === void 0 ? '600' : _d, iconSrc = props.iconSrc, iconItemFill = props.iconItemFill, iconShape = props.iconShape, iconSize = props.iconSize, iconStroke = props.iconStroke, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconFillSize = props.iconFillSize, _e = props.firstName, firstName = _e === void 0 ? '' : _e, _f = props.secondName, secondName = _f === void 0 ? '' : _f;
|
|
11
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
12
|
+
prefix: 'fill_',
|
|
13
|
+
propsKey: 'fill',
|
|
14
|
+
});
|
|
15
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
16
|
+
prefix: 'fill_hover_',
|
|
17
|
+
propsKey: 'fillHover',
|
|
18
|
+
});
|
|
19
|
+
var shapeClass = useDeviceTargetClass(props, {
|
|
20
|
+
prefix: 'avatar_shape_',
|
|
21
|
+
propsKey: 'shape',
|
|
22
|
+
});
|
|
23
|
+
var avatarChars = useMemo(function () {
|
|
24
|
+
var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
|
|
25
|
+
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
26
|
+
return "".concat(firstChar).concat(secondChar);
|
|
27
|
+
}, [firstName, secondName]);
|
|
28
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'avatar', shapeClass, mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxRuntimeExports.jsxs("div", { className: clsx('avatar__wrapper', fillClass, fillHoverClass), children: [before, src ? (jsxRuntimeExports.jsx(Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsxRuntimeExports.jsx(Text, { className: "avatar__name", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars })), (icon || iconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, stroke: iconStroke, SvgImage: icon })), Dot, after] }) }));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Avatar as A };
|
|
@@ -7,9 +7,9 @@ import fillProps from './constants/componentProps/fill.js';
|
|
|
7
7
|
import positionProps from './constants/componentProps/position.js';
|
|
8
8
|
import shapeProps from './constants/componentProps/shape.js';
|
|
9
9
|
import widthProps from './constants/componentProps/width.js';
|
|
10
|
-
import { Icon } from './
|
|
11
|
-
import { T as Text } from './Text-
|
|
12
|
-
import { LinkWrapper } from './
|
|
10
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
11
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
12
|
+
import { a as LinkWrapper } from './Link-ByBzBRDH.js';
|
|
13
13
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
14
14
|
import { useStyles } from './hooks/useStyles.js';
|
|
15
15
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
7
|
+
import { a as LinkWrapper } from './Link-ByBzBRDH.js';
|
|
8
|
+
import { Loader } from './components/Loader.js';
|
|
9
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
10
|
+
|
|
11
|
+
var buttonConfig = {
|
|
12
|
+
appearance: undefined,
|
|
13
|
+
setAppearance: function (newComponent) {
|
|
14
|
+
buttonConfig.appearance = newComponent;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
var Button = React__default.forwardRef(function Button(props, ref) {
|
|
18
|
+
var before = props.before, appearance = props.appearance, after = props.after, className = props.className, dataTour = props.dataTour, dataTestId = props.dataTestId, Badge = props.Badge, children = props.children, fillIcon = props.fillIcon, fillIconAfter = props.fillIconAfter, fillIconBefore = props.fillIconBefore, iconAfter = props.iconAfter, iconAfterSize = props.iconAfterSize, iconBefore = props.iconBefore, iconBeforeSize = props.iconBeforeSize, label = props.label, labelTextColor = props.labelTextColor, labelTextColorHover = props.labelTextColorHover, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, _a = props.loaderSet, loaderSet = _a === void 0 ? 'simple' : _a, loaderFill = props.loaderFill, loaderItemFill = props.loaderItemFill, link = props.link, href = props.href, target = props.target, rel = props.rel, _b = props.size, size = _b === void 0 ? 'xl' : _b, icon = props.icon, iconShape = props.iconShape, iconAfterShape = props.iconAfterShape, iconBeforeShape = props.iconBeforeShape, iconSize = props.iconSize, iconFill = props.iconFill, iconFillSize = props.iconFillSize, iconStroke = props.iconStroke, iconBeforeFill = props.iconBeforeFill, iconBeforeFillSize = props.iconBeforeFillSize, iconBeforeStroke = props.iconBeforeStroke, iconAfterFill = props.iconAfterFill, iconAfterFillSize = props.iconAfterFillSize, iconAfterStroke = props.iconAfterStroke, iconAfterSrc = props.iconAfterSrc, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, type = props.type, _c = props.loading, loading = _c === void 0 ? false : _c, _d = props.htmlType, htmlType = _d === void 0 ? 'button' : _d; props.width; var isDisabled = props.isDisabled, onClick = props.onClick, onMouseDown = props.onMouseDown;
|
|
19
|
+
var widthClass = useDeviceTargetClass(props, {
|
|
20
|
+
prefix: 'button_width_',
|
|
21
|
+
propsKey: 'width',
|
|
22
|
+
});
|
|
23
|
+
var sizeClass = useDeviceTargetClass(props, {
|
|
24
|
+
prefix: 'button_size_',
|
|
25
|
+
propsKey: 'size',
|
|
26
|
+
});
|
|
27
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
28
|
+
prefix: 'fill_',
|
|
29
|
+
propsKey: 'fill',
|
|
30
|
+
});
|
|
31
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
32
|
+
prefix: 'fill_hover_',
|
|
33
|
+
propsKey: 'fillHover',
|
|
34
|
+
});
|
|
35
|
+
var borderWidthClass = useDeviceTargetClass(props, {
|
|
36
|
+
prefix: 'border-width_',
|
|
37
|
+
propsKey: 'borderWidth',
|
|
38
|
+
});
|
|
39
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
40
|
+
prefix: 'border-color_',
|
|
41
|
+
propsKey: 'borderColor',
|
|
42
|
+
});
|
|
43
|
+
var shapeClass = useDeviceTargetClass(props, {
|
|
44
|
+
prefix: 'button_shape_',
|
|
45
|
+
propsKey: 'shape',
|
|
46
|
+
});
|
|
47
|
+
var borderTypeClass = useDeviceTargetClass(props, {
|
|
48
|
+
prefix: 'border_type_',
|
|
49
|
+
propsKey: 'borderType',
|
|
50
|
+
});
|
|
51
|
+
var elevationClass = useDeviceTargetClass(props, {
|
|
52
|
+
prefix: 'elevation_',
|
|
53
|
+
propsKey: 'elevation',
|
|
54
|
+
});
|
|
55
|
+
// @ts-expect-error
|
|
56
|
+
var _f = useStyles(props), buttonStyles = _f.styles, labelStyles = _f.label;
|
|
57
|
+
var appearanceConfig = appearance && buttonConfig.appearance && buttonConfig.appearance[appearance];
|
|
58
|
+
return (jsxRuntimeExports.jsx(LinkWrapper, { className: clsx(className, 'button', type && "button_type_".concat(type), borderWidthClass ||
|
|
59
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderWidth) &&
|
|
60
|
+
"border-width_".concat(appearanceConfig.borderWidth)
|
|
61
|
+
.replace(/([A-Z])/g, '-$1')
|
|
62
|
+
.toLowerCase()), borderColorClass ||
|
|
63
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
64
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
65
|
+
.replace(/([A-Z])/g, '-$1')
|
|
66
|
+
.toLowerCase()), borderTypeClass ||
|
|
67
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderType) &&
|
|
68
|
+
"border-type_".concat(appearanceConfig.borderType).replace(/([A-Z])/g, '-$1').toLowerCase()), fillClass ||
|
|
69
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
70
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
71
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
72
|
+
"fill_hover_".concat(appearanceConfig.fillHover).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass, sizeClass, widthClass, elevationClass, onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', loading && 'button_state_loading', !label &&
|
|
73
|
+
(iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc || icon || iconSrc) &&
|
|
74
|
+
'button_type_icon', label &&
|
|
75
|
+
(after ||
|
|
76
|
+
before ||
|
|
77
|
+
icon ||
|
|
78
|
+
iconAfter ||
|
|
79
|
+
iconAfterSrc ||
|
|
80
|
+
iconBefore ||
|
|
81
|
+
iconBeforeSrc ||
|
|
82
|
+
iconSrc) &&
|
|
83
|
+
"button_type_with-icon button_type_with-icon_".concat(size)), "data-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, DefaultComponent: "button", disabled: isDisabled, href: link || href, rel: rel, style: buttonStyles, target: target, type: htmlType, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntimeExports.jsxs("div", { className: "button__wrapper", ref: ref, children: [loading && (jsxRuntimeExports.jsx(Loader, { className: "button__loader",
|
|
84
|
+
// @ts-expect-error
|
|
85
|
+
fill: loaderFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderFill), itemFill: loaderItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderItemFill), set: loaderSet })), before, (iconBefore || iconBeforeSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_before", fill: fillIconBefore, fillSize: iconBeforeFillSize, iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeFill), iconStroke: iconBeforeStroke || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeStroke), imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon", fill: fillIcon, fillSize: iconFillSize, iconFill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), iconStroke: iconStroke || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconStroke), imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntimeExports.jsx(Text, { className: "button__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize) || undefined,
|
|
86
|
+
// @ts-expect-error
|
|
87
|
+
style: labelStyles, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorHover: labelTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColorHover), textWrap: labelTextWrap, textWeight: labelTextWeight, children: children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (iconAfter || iconAfterSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_after", fill: fillIconAfter, fillSize: iconAfterFillSize, iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterFill), iconStroke: iconAfterStroke || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterStroke), imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
|
|
88
|
+
});
|
|
89
|
+
Button.defaultProps = {
|
|
90
|
+
// Button with a `type="submit"` attribute is a form control by default.
|
|
91
|
+
// If the button is not associated with any form, it will look for
|
|
92
|
+
// the nearest form in the DOM and submit its data when clicked.
|
|
93
|
+
htmlType: 'button',
|
|
94
|
+
size: 'xl',
|
|
95
|
+
width: 'hug',
|
|
96
|
+
loaderSet: 'simple',
|
|
97
|
+
loading: false,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { Button as B, buttonConfig as b };
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import shapeProps from './constants/componentProps/shape.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
7
|
-
import { Icon } from './
|
|
8
|
-
import { Divider } from './
|
|
6
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
7
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
8
|
+
import { D as Divider } from './Divider-BlBwMHgl.js';
|
|
9
9
|
|
|
10
10
|
function ContextMenu(props) {
|
|
11
11
|
const {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
5
|
+
|
|
6
|
+
function Divider(props) {
|
|
7
|
+
var className = props.className;
|
|
8
|
+
var directionClass = useDeviceTargetClass(props, {
|
|
9
|
+
prefix: 'divider_direction_',
|
|
10
|
+
propsKey: 'direction',
|
|
11
|
+
});
|
|
12
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
13
|
+
prefix: 'fill_',
|
|
14
|
+
propsKey: 'fill',
|
|
15
|
+
});
|
|
16
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
17
|
+
prefix: 'fill_hover_',
|
|
18
|
+
propsKey: 'fillHover',
|
|
19
|
+
});
|
|
20
|
+
var fillActiveClass = useDeviceTargetClass(props, {
|
|
21
|
+
prefix: 'fill_active_',
|
|
22
|
+
propsKey: 'fillActive',
|
|
23
|
+
});
|
|
24
|
+
var fillActiveHoverClass = useDeviceTargetClass(props, {
|
|
25
|
+
prefix: 'fill_active_hover_',
|
|
26
|
+
propsKey: 'fillActiveHover',
|
|
27
|
+
});
|
|
28
|
+
var fillDisabledClass = useDeviceTargetClass(props, {
|
|
29
|
+
prefix: 'fill_disabled_',
|
|
30
|
+
propsKey: 'fillDisabled',
|
|
31
|
+
});
|
|
32
|
+
var sizeClass = useDeviceTargetClass(props, {
|
|
33
|
+
prefix: 'divider_size_',
|
|
34
|
+
propsKey: 'size',
|
|
35
|
+
});
|
|
36
|
+
var widthClass = useDeviceTargetClass(props, {
|
|
37
|
+
prefix: 'width_',
|
|
38
|
+
propsKey: 'width',
|
|
39
|
+
});
|
|
40
|
+
// @ts-expect-error
|
|
41
|
+
var hrStyles = useStyles(props).styles;
|
|
42
|
+
return (jsxRuntimeExports.jsx("hr", { className: clsx(className, 'divider', widthClass, directionClass, sizeClass, fillClass, fillHoverClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass), style: hrStyles }));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Divider as D };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
5
|
+
|
|
6
|
+
function Dot(props) {
|
|
7
|
+
var className = props.className, children = props.children;
|
|
8
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
9
|
+
prefix: 'border-color_',
|
|
10
|
+
propsKey: 'borderColor',
|
|
11
|
+
});
|
|
12
|
+
var borderTypeClass = useDeviceTargetClass(props, {
|
|
13
|
+
prefix: 'border_type_',
|
|
14
|
+
propsKey: 'borderType',
|
|
15
|
+
});
|
|
16
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
17
|
+
prefix: 'fill_',
|
|
18
|
+
propsKey: 'fill',
|
|
19
|
+
});
|
|
20
|
+
var shapeClass = useDeviceTargetClass(props, {
|
|
21
|
+
prefix: 'dot_shape_',
|
|
22
|
+
propsKey: 'shape',
|
|
23
|
+
});
|
|
24
|
+
var sizeClass = useDeviceTargetClass(props, {
|
|
25
|
+
prefix: 'dot_size_',
|
|
26
|
+
propsKey: 'size',
|
|
27
|
+
});
|
|
28
|
+
// @ts-expect-error
|
|
29
|
+
var styles = useStyles(props).styles;
|
|
30
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'dot', borderColorClass, borderTypeClass, fillClass, shapeClass, sizeClass), style: styles, children: children }));
|
|
31
|
+
}
|
|
32
|
+
Dot.defaultProps = {};
|
|
33
|
+
|
|
34
|
+
export { Dot as D };
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { Divider } from './
|
|
7
|
-
import { Link } from './
|
|
8
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { D as Divider } from './Divider-BlBwMHgl.js';
|
|
7
|
+
import { L as Link } from './Link-ByBzBRDH.js';
|
|
8
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
9
9
|
import fillProps from './constants/componentProps/fill.js';
|
|
10
10
|
import shapeProps from './constants/componentProps/shape.js';
|
|
11
11
|
import typeProps from './constants/componentProps/type.js';
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
5
|
+
|
|
6
|
+
function Grid(props) {
|
|
7
|
+
var id = props.id, after = props.after, before = props.before, children = props.children, className = props.className, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, onClick = props.onClick, type = props.type, useGridSystem = props.useGridSystem, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, dataTour = props.dataTour, verticalResizing = props.verticalResizing;
|
|
8
|
+
var columnsClass = useDeviceTargetClass(props, {
|
|
9
|
+
prefix: 'grid_columns_',
|
|
10
|
+
propsKey: 'columns',
|
|
11
|
+
});
|
|
12
|
+
var rowsClass = useDeviceTargetClass(props, {
|
|
13
|
+
prefix: 'grid_rows_',
|
|
14
|
+
propsKey: 'rows',
|
|
15
|
+
});
|
|
16
|
+
var rowGapClass = useDeviceTargetClass(props, {
|
|
17
|
+
prefix: 'grid_row-gap_',
|
|
18
|
+
propsKey: 'rowGap',
|
|
19
|
+
});
|
|
20
|
+
var columnGapClass = useDeviceTargetClass(props, {
|
|
21
|
+
prefix: 'grid_column-gap_',
|
|
22
|
+
propsKey: 'columnGap',
|
|
23
|
+
});
|
|
24
|
+
var alignContentClass = useDeviceTargetClass(props, {
|
|
25
|
+
prefix: 'grid_align-content_',
|
|
26
|
+
propsKey: 'alignContent',
|
|
27
|
+
});
|
|
28
|
+
var alignItemsClass = useDeviceTargetClass(props, {
|
|
29
|
+
prefix: 'grid_align-items_',
|
|
30
|
+
propsKey: 'alignItems',
|
|
31
|
+
});
|
|
32
|
+
var justifyContentClass = useDeviceTargetClass(props, {
|
|
33
|
+
prefix: 'grid_justify-content_',
|
|
34
|
+
propsKey: 'justifyContent',
|
|
35
|
+
});
|
|
36
|
+
var justifyItemsClass = useDeviceTargetClass(props, {
|
|
37
|
+
prefix: 'grid_justify-items_',
|
|
38
|
+
propsKey: 'justifyItems',
|
|
39
|
+
});
|
|
40
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
41
|
+
prefix: 'fill_',
|
|
42
|
+
propsKey: 'fill',
|
|
43
|
+
});
|
|
44
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
45
|
+
prefix: 'border-color_',
|
|
46
|
+
propsKey: 'borderColor',
|
|
47
|
+
});
|
|
48
|
+
useDeviceTargetClass(props, {
|
|
49
|
+
prefix: 'fill_',
|
|
50
|
+
propsKey: 'fillWrapper',
|
|
51
|
+
});
|
|
52
|
+
useDeviceTargetClass(props, {
|
|
53
|
+
prefix: 'fill_',
|
|
54
|
+
propsKey: 'fillWrapperInner',
|
|
55
|
+
});
|
|
56
|
+
useDeviceTargetClass(props, {
|
|
57
|
+
prefix: 'grid_shape_',
|
|
58
|
+
propsKey: 'shapeWrapper',
|
|
59
|
+
});
|
|
60
|
+
useDeviceTargetClass(props, {
|
|
61
|
+
prefix: 'grid_shape_',
|
|
62
|
+
propsKey: 'shapeWrapperInner',
|
|
63
|
+
});
|
|
64
|
+
// prettier-ignore
|
|
65
|
+
// @ts-expect-error
|
|
66
|
+
var _b = useStyles(props), gridStyles = _b.styles; _b.gridWrapper; _b.gridWrapperInner;
|
|
67
|
+
return (jsxRuntimeExports.jsxs(Tag, { className: clsx(className, 'grid', useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass, rowsClass, rowGapClass, columnGapClass, alignContentClass, alignItemsClass, borderColorClass, justifyContentClass, justifyItemsClass, fillClass, horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, id: id, style: gridStyles, onClick: onClick, children: [before && jsxRuntimeExports.jsx("div", { className: "grid__before", children: before }), children, after && jsxRuntimeExports.jsx("div", { className: "grid__after", children: after })] }));
|
|
68
|
+
}
|
|
69
|
+
Grid.defaultProps = {
|
|
70
|
+
tag: 'div',
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
function GridItem(props) {
|
|
74
|
+
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, onClick = props.onClick;
|
|
75
|
+
var orderClass = useDeviceTargetClass(props, {
|
|
76
|
+
prefix: 'order_',
|
|
77
|
+
propsKey: 'order',
|
|
78
|
+
});
|
|
79
|
+
var alignSelfClass = useDeviceTargetClass(props, {
|
|
80
|
+
prefix: 'grid__item_align-self_',
|
|
81
|
+
propsKey: 'alignSelf',
|
|
82
|
+
});
|
|
83
|
+
var justifySelfClass = useDeviceTargetClass(props, {
|
|
84
|
+
prefix: 'grid__item_justify-self_',
|
|
85
|
+
propsKey: 'justifySelf',
|
|
86
|
+
});
|
|
87
|
+
var columnStartClass = useDeviceTargetClass(props, {
|
|
88
|
+
prefix: 'grid__item_column-start_',
|
|
89
|
+
propsKey: 'columnStart',
|
|
90
|
+
});
|
|
91
|
+
var columnEndClass = useDeviceTargetClass(props, {
|
|
92
|
+
prefix: 'grid__item_column-end_',
|
|
93
|
+
propsKey: 'columnEnd',
|
|
94
|
+
});
|
|
95
|
+
var columnSpanClass = useDeviceTargetClass(props, {
|
|
96
|
+
prefix: 'grid__item_column-span_',
|
|
97
|
+
propsKey: 'columnSpan',
|
|
98
|
+
});
|
|
99
|
+
var rowStartClass = useDeviceTargetClass(props, {
|
|
100
|
+
prefix: 'grid__item_row-start_',
|
|
101
|
+
propsKey: 'rowStart',
|
|
102
|
+
});
|
|
103
|
+
var rowEndClass = useDeviceTargetClass(props, {
|
|
104
|
+
prefix: 'grid__item_row-end_',
|
|
105
|
+
propsKey: 'rowEnd',
|
|
106
|
+
});
|
|
107
|
+
var rowSpanClass = useDeviceTargetClass(props, {
|
|
108
|
+
prefix: 'grid__item_row-span_',
|
|
109
|
+
propsKey: 'rowSpan',
|
|
110
|
+
});
|
|
111
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
112
|
+
prefix: 'fill_',
|
|
113
|
+
propsKey: 'fill',
|
|
114
|
+
});
|
|
115
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
116
|
+
prefix: 'fill_hover_',
|
|
117
|
+
propsKey: 'fillHover',
|
|
118
|
+
});
|
|
119
|
+
var gapClass = useDeviceTargetClass(props, {
|
|
120
|
+
prefix: 'gap_',
|
|
121
|
+
propsKey: 'gap',
|
|
122
|
+
});
|
|
123
|
+
var rowGapClass = useDeviceTargetClass(props, {
|
|
124
|
+
prefix: 'row-gap_',
|
|
125
|
+
propsKey: 'rowGap',
|
|
126
|
+
});
|
|
127
|
+
var columnGapClass = useDeviceTargetClass(props, {
|
|
128
|
+
prefix: 'column-gap_',
|
|
129
|
+
propsKey: 'columnGap',
|
|
130
|
+
});
|
|
131
|
+
var directionClass = useDeviceTargetClass(props, {
|
|
132
|
+
prefix: 'direction_',
|
|
133
|
+
propsKey: 'direction',
|
|
134
|
+
});
|
|
135
|
+
// @ts-expect-error
|
|
136
|
+
var gridItemStyles = useStyles(props).styles;
|
|
137
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'grid__item', orderClass, fillClass, fillHoverClass, alignSelfClass, justifySelfClass, columnStartClass, columnEndClass, columnSpanClass, rowStartClass, rowEndClass, rowSpanClass, directionClass, gapClass, rowGapClass, columnGapClass), "data-tour": dataTour, id: String(id), style: gridItemStyles, onClick: onClick, children: children }));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function GridRow(props) {
|
|
141
|
+
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, htmlFor = props.htmlFor, onClick = props.onClick;
|
|
142
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
143
|
+
prefix: 'fill_',
|
|
144
|
+
propsKey: 'fill',
|
|
145
|
+
});
|
|
146
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
147
|
+
prefix: 'fill_hover_',
|
|
148
|
+
propsKey: 'fillHover',
|
|
149
|
+
});
|
|
150
|
+
// @ts-expect-error
|
|
151
|
+
var gridRowStyles = useStyles(props).styles;
|
|
152
|
+
return (jsxRuntimeExports.jsx(Tag, { className: clsx(className, 'grid__row', fillClass, fillHoverClass), "data-tour": dataTour, htmlFor: htmlFor, id: id, style: gridRowStyles, onClick: onClick, children: children }));
|
|
153
|
+
}
|
|
154
|
+
GridRow.defaultProps = {
|
|
155
|
+
tag: 'div',
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export { Grid as G, GridRow as a, GridItem as b };
|
|
@@ -4,7 +4,7 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
4
4
|
import { useStyles } from './hooks/useStyles.js';
|
|
5
5
|
|
|
6
6
|
var groupConfig = {
|
|
7
|
-
appearance:
|
|
7
|
+
appearance: undefined,
|
|
8
8
|
setAppearance: function (newComponent) {
|
|
9
9
|
groupConfig.appearance = newComponent;
|
|
10
10
|
},
|
|
@@ -85,30 +85,22 @@ function Group(props) {
|
|
|
85
85
|
});
|
|
86
86
|
// @ts-expect-error
|
|
87
87
|
var _b = useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
|
|
88
|
+
var appearanceConfig = appearance && groupConfig.appearance && groupConfig.appearance[appearance];
|
|
88
89
|
return (jsxRuntimeExports.jsx(Tag, { className: clsx(className, 'group', widthClass, heightClass, columnsClass, contentAlignClass, alignDirectionClass, directionClass ||
|
|
89
|
-
(
|
|
90
|
-
|
|
91
|
-
"group_direction_".concat(groupConfig.appearance[appearance].direction)
|
|
90
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.direction) &&
|
|
91
|
+
"group_direction_".concat(appearanceConfig.direction)
|
|
92
92
|
.replace(/([A-Z])/g, '-$1')
|
|
93
93
|
.toLowerCase()), alignClass, fillClass ||
|
|
94
|
-
(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
groupConfig.appearance[appearance].fillHover &&
|
|
101
|
-
"fill_hover_".concat(groupConfig.appearance[appearance].fillHover)
|
|
102
|
-
.replace(/([A-Z])/g, '-$1')
|
|
103
|
-
.toLowerCase()), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', stackingClass, wrapClass, growClass, shapeClass, borderColorClass ||
|
|
104
|
-
(appearance &&
|
|
105
|
-
groupConfig.appearance[appearance].borderColor &&
|
|
106
|
-
"border-color_".concat(groupConfig.appearance[appearance].borderColor)
|
|
94
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
95
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
96
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
97
|
+
"fill_hover_".concat(appearanceConfig.fillHover).replace(/([A-Z])/g, '-$1').toLowerCase()), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', stackingClass, wrapClass, growClass, shapeClass, borderColorClass ||
|
|
98
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
99
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
107
100
|
.replace(/([A-Z])/g, '-$1')
|
|
108
101
|
.toLowerCase()), borderWidthClass ||
|
|
109
|
-
(
|
|
110
|
-
|
|
111
|
-
"border-width_".concat(groupConfig.appearance[appearance].borderWidth)
|
|
102
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderWidth) &&
|
|
103
|
+
"border-width_".concat(appearanceConfig.borderWidth)
|
|
112
104
|
.replace(/([A-Z])/g, '-$1')
|
|
113
105
|
.toLowerCase()), borderTypeClass, elevationClass, justifyContentClass), "data-tour": dataTour, htmlFor: htmlFor, id: id, style: Object.assign({}, groupStyles, style), onClick: onClick, children: horizontalScroll ? (jsxRuntimeExports.jsx("div", { className: "group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
|
|
114
106
|
}
|