@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { _ as __assign, a as LinkWrapper } from './Link-ByBzBRDH.js';
|
|
2
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
3
|
+
import React__default, { useState, useMemo } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import SVG from 'react-inlinesvg';
|
|
6
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
8
|
+
import { Tooltip } from './components/Tooltip.js';
|
|
9
|
+
|
|
10
|
+
var iconConfig = {
|
|
11
|
+
appearance: {},
|
|
12
|
+
setAppearance: function (newComponent) {
|
|
13
|
+
iconConfig.appearance = newComponent;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
var Icon = React__default.forwardRef(function Icon(props, ref) {
|
|
17
|
+
var _a = useState(false), isTooltipVisible = _a[0], setIsTooltipVisible = _a[1];
|
|
18
|
+
var Badge = props.Badge, SvgImage = props.SvgImage, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, height = props.height, href = props.href, id = props.id, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, tooltipAppearance = props.tooltipAppearance, tooltipText = props.tooltipText, tooltipTextSize = props.tooltipTextSize, tooltipTitle = props.tooltipTitle, tooltipTitleSize = props.tooltipTitleSize, width = props.width, onClick = props.onClick;
|
|
19
|
+
var svgSizes = useMemo(function () {
|
|
20
|
+
var sizes = {};
|
|
21
|
+
if (width) {
|
|
22
|
+
sizes.width = width;
|
|
23
|
+
}
|
|
24
|
+
if (height) {
|
|
25
|
+
sizes.height = height;
|
|
26
|
+
}
|
|
27
|
+
return sizes;
|
|
28
|
+
}, [height, width]);
|
|
29
|
+
var cursorClass = useDeviceTargetClass(props, {
|
|
30
|
+
prefix: 'cursor_',
|
|
31
|
+
propsKey: 'cursor',
|
|
32
|
+
});
|
|
33
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
34
|
+
prefix: 'fill_',
|
|
35
|
+
propsKey: 'fill',
|
|
36
|
+
});
|
|
37
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
38
|
+
prefix: 'fill_hover_',
|
|
39
|
+
propsKey: 'fillHover',
|
|
40
|
+
});
|
|
41
|
+
var fillDisabledClass = useDeviceTargetClass(props, {
|
|
42
|
+
prefix: 'fill_disabled_',
|
|
43
|
+
propsKey: 'fillDisabled',
|
|
44
|
+
});
|
|
45
|
+
var fillSizeClass = useDeviceTargetClass(props, {
|
|
46
|
+
prefix: 'icon_fill_size_',
|
|
47
|
+
propsKey: 'fillSize',
|
|
48
|
+
});
|
|
49
|
+
var iconFillClass = useDeviceTargetClass(props, {
|
|
50
|
+
prefix: 'icon_fill_',
|
|
51
|
+
propsKey: 'iconFill',
|
|
52
|
+
});
|
|
53
|
+
var iconFillHoverClass = useDeviceTargetClass(props, {
|
|
54
|
+
prefix: 'icon_fill_hover_',
|
|
55
|
+
propsKey: 'iconFillHover',
|
|
56
|
+
});
|
|
57
|
+
var iconFillDisabledClass = useDeviceTargetClass(props, {
|
|
58
|
+
prefix: 'icon_fill_disabled_',
|
|
59
|
+
propsKey: 'iconFillDisabled',
|
|
60
|
+
});
|
|
61
|
+
var iconStrokeClass = useDeviceTargetClass(props, {
|
|
62
|
+
prefix: 'icon_stroke_',
|
|
63
|
+
propsKey: 'iconStroke',
|
|
64
|
+
});
|
|
65
|
+
var iconStrokeHoverClass = useDeviceTargetClass(props, {
|
|
66
|
+
prefix: 'icon_stroke_hover_',
|
|
67
|
+
propsKey: 'iconStrokeHover',
|
|
68
|
+
});
|
|
69
|
+
var iconStrokeDisabledClass = useDeviceTargetClass(props, {
|
|
70
|
+
prefix: 'icon_stroke_disabled_',
|
|
71
|
+
propsKey: 'iconStrokeDisabled',
|
|
72
|
+
});
|
|
73
|
+
var iconSizeClass = useDeviceTargetClass(props, {
|
|
74
|
+
prefix: 'icon_size_',
|
|
75
|
+
propsKey: 'iconSize',
|
|
76
|
+
});
|
|
77
|
+
var shapeClass = useDeviceTargetClass(props, {
|
|
78
|
+
prefix: 'icon_shape_',
|
|
79
|
+
propsKey: 'shape',
|
|
80
|
+
});
|
|
81
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
82
|
+
prefix: 'border-color_',
|
|
83
|
+
propsKey: 'borderColor',
|
|
84
|
+
});
|
|
85
|
+
var borderColorHoverClass = useDeviceTargetClass(props, {
|
|
86
|
+
prefix: 'border-color_hover_',
|
|
87
|
+
propsKey: 'borderColorHover',
|
|
88
|
+
});
|
|
89
|
+
var borderWidthClass = useDeviceTargetClass(props, {
|
|
90
|
+
prefix: 'border-width_',
|
|
91
|
+
propsKey: 'borderWidth',
|
|
92
|
+
});
|
|
93
|
+
var borderTypeClass = useDeviceTargetClass(props, {
|
|
94
|
+
prefix: 'border_type_',
|
|
95
|
+
propsKey: 'borderType',
|
|
96
|
+
});
|
|
97
|
+
var alignmentClass = useDeviceTargetClass(props, {
|
|
98
|
+
prefix: 'alignment_',
|
|
99
|
+
propsKey: 'alignment',
|
|
100
|
+
});
|
|
101
|
+
// @ts-expect-error
|
|
102
|
+
var iconStyles = useStyles(props).styles;
|
|
103
|
+
var ImageComponent = useMemo(function () {
|
|
104
|
+
if (SvgImage) {
|
|
105
|
+
return jsxRuntimeExports.jsx(SvgImage, __assign({}, svgSizes));
|
|
106
|
+
}
|
|
107
|
+
if (imageSrc) {
|
|
108
|
+
if (imageSrc.endsWith('.svg')) {
|
|
109
|
+
return jsxRuntimeExports.jsx(SVG, { preProcessor: removeFillStroke, src: imageSrc });
|
|
110
|
+
}
|
|
111
|
+
return jsxRuntimeExports.jsx("img", { src: imageSrc });
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
114
|
+
}, [SvgImage, svgSizes, imageSrc]);
|
|
115
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'icon', fillClass, fillHoverClass, fillSizeClass, fillDisabledClass, iconFillClass, iconFillHoverClass, iconFillDisabledClass, shapeClass, iconStrokeClass, iconStrokeHoverClass, iconStrokeDisabledClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, cursorClass, Badge && 'icon_type_with-badge', (link || href || onClick) && 'cursor_type_pointer'), "data-tour": dataTour, id: String(id), ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: function () { return setIsTooltipVisible(true); }, onMouseLeave: function () { return setIsTooltipVisible(false); }, children: jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx(link || href ? 'icon__link' : 'icon__item', iconSizeClass), DefaultComponent: "div", href: link || href, rel: linkRel, target: linkTarget, children: [before, ImageComponent, after, Badge, isTooltipVisible && showTooltip && (jsxRuntimeExports.jsx(Tooltip
|
|
116
|
+
// @ts-expect-error
|
|
117
|
+
, {
|
|
118
|
+
// @ts-expect-error
|
|
119
|
+
appearance: tooltipAppearance, className: clsx(className, 'icon__tooltip', alignmentClass), text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize }))] }) }));
|
|
120
|
+
});
|
|
121
|
+
Icon.defaultProps = {
|
|
122
|
+
LinkComponent: 'a',
|
|
123
|
+
};
|
|
124
|
+
var removeFillStroke = function (code) {
|
|
125
|
+
return code.replace(/fill=".*?"/g, 'fill=""').replace(/stroke=".*?"/g, 'stroke=""');
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export { Icon as I, iconConfig as i };
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
|
|
7
|
+
/******************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var __assign = function() {
|
|
25
|
+
__assign = Object.assign || function __assign(t) {
|
|
26
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
+
s = arguments[i];
|
|
28
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
};
|
|
32
|
+
return __assign.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
function __rest(s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
+
t[p] = s[p];
|
|
39
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
+
t[p[i]] = s[p[i]];
|
|
43
|
+
}
|
|
44
|
+
return t;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function __spreadArray(to, from, pack) {
|
|
48
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
49
|
+
if (ar || !(i in from)) {
|
|
50
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
51
|
+
ar[i] = from[i];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
58
|
+
var e = new Error(message);
|
|
59
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var linkConfig = {
|
|
63
|
+
LinkComponent: 'a',
|
|
64
|
+
setLinkComponent: function (newComponent) {
|
|
65
|
+
linkConfig.LinkComponent = newComponent;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
function Link(props) {
|
|
69
|
+
var after = props.after, before = props.before, children = props.children, className = props.className, LinkComponent = props.LinkComponent, href = props.href, link = props.link, target = props.target, rel = props.rel, text = props.text, _a = props.underline, underline = _a === void 0 ? 'underline' : _a, onClick = props.onClick, onMouseDown = props.onMouseDown;
|
|
70
|
+
var sizeClass = useDeviceTargetClass(props, {
|
|
71
|
+
prefix: 'text_size_',
|
|
72
|
+
propsKey: 'size',
|
|
73
|
+
});
|
|
74
|
+
var textColorClass = useDeviceTargetClass(props, {
|
|
75
|
+
prefix: 'text-color_',
|
|
76
|
+
propsKey: 'textColor',
|
|
77
|
+
});
|
|
78
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
79
|
+
prefix: 'fill_',
|
|
80
|
+
propsKey: 'fill',
|
|
81
|
+
});
|
|
82
|
+
var weightClass = useDeviceTargetClass(props, {
|
|
83
|
+
prefix: 'text-weight_',
|
|
84
|
+
propsKey: 'textWeight',
|
|
85
|
+
});
|
|
86
|
+
var textColorHoverClass = useDeviceTargetClass(props, {
|
|
87
|
+
prefix: 'text-color_hover_',
|
|
88
|
+
propsKey: 'textColorHover',
|
|
89
|
+
});
|
|
90
|
+
var textStyleClass = useDeviceTargetClass(props, {
|
|
91
|
+
prefix: 'text-style_',
|
|
92
|
+
propsKey: 'textColorHover',
|
|
93
|
+
});
|
|
94
|
+
var textGradientClass = useDeviceTargetClass(props, {
|
|
95
|
+
prefix: 'text-gradient_',
|
|
96
|
+
propsKey: 'textGradient',
|
|
97
|
+
});
|
|
98
|
+
// @ts-expect-error
|
|
99
|
+
var styles = useStyles(props).styles;
|
|
100
|
+
return (jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx(className, 'link', sizeClass, underline && "link_underline_".concat(underline), (textColorClass ||
|
|
101
|
+
textColorHoverClass ||
|
|
102
|
+
textGradientClass ||
|
|
103
|
+
textStyleClass ||
|
|
104
|
+
weightClass) &&
|
|
105
|
+
'text', textColorClass, textColorHoverClass, textGradientClass, textStyleClass, weightClass, fillClass), Component: LinkComponent, href: href || link, rel: rel, style: styles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
|
|
106
|
+
}
|
|
107
|
+
Link.defaultProps = {
|
|
108
|
+
underline: 'underline',
|
|
109
|
+
};
|
|
110
|
+
// Wrapper with "Link" by condition
|
|
111
|
+
function LinkWrapper(props) {
|
|
112
|
+
var children = props.children, Component = props.Component, DefaultComponent = props.DefaultComponent, href = props.href, target = props.target, rel = props.rel, otherProps = __rest(props, ["children", "Component", "DefaultComponent", "href", "target", "rel"]);
|
|
113
|
+
if (href) {
|
|
114
|
+
// If href passed, make link-wrapper
|
|
115
|
+
var LinkComponent = Component || linkConfig.LinkComponent;
|
|
116
|
+
if (LinkComponent) {
|
|
117
|
+
return (jsxRuntimeExports.jsx(LinkComponent, __assign({ href: href, rel: rel, target: target }, otherProps, { children: children })));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (DefaultComponent) {
|
|
121
|
+
// If has default "Component" - render it
|
|
122
|
+
return jsxRuntimeExports.jsx(DefaultComponent, __assign({}, otherProps, { children: children }));
|
|
123
|
+
}
|
|
124
|
+
// Return children and pass current props to
|
|
125
|
+
return React__default.Children.toArray(children)
|
|
126
|
+
.filter(Boolean)
|
|
127
|
+
.map(function (child) {
|
|
128
|
+
return React__default.isValidElement(child) ? React__default.cloneElement(child, otherProps) : child;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { Link as L, __assign as _, LinkWrapper as a, __spreadArray as b, linkConfig as l };
|
|
@@ -10,7 +10,7 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
10
10
|
import textStyleProps from './constants/componentProps/textStyle.js';
|
|
11
11
|
import textWeightProps from './constants/componentProps/textWeight.js';
|
|
12
12
|
import typeProps from './constants/componentProps/type.js';
|
|
13
|
-
import { Link } from './
|
|
13
|
+
import { L as Link } from './Link-ByBzBRDH.js';
|
|
14
14
|
|
|
15
15
|
function List(props) {
|
|
16
16
|
const {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-ClDdVO4Q.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useNotifications, useNotificationsAPI } from './context/Notifications.js';
|
|
4
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
6
|
+
import { Title } from './components/Title.js';
|
|
7
|
+
|
|
8
|
+
var notificationItemConfig = {
|
|
9
|
+
appearance: {},
|
|
10
|
+
setAppearance: function (newComponent) {
|
|
11
|
+
notificationItemConfig.appearance = newComponent;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
function NotificationItem(props) {
|
|
15
|
+
var id = props.id, appearance = props.appearance, closeButton = props.closeButton, after = props.after, before = props.before, set = props.set, status = props.status, size = props.size, dataTour = props.dataTour, text = props.text, _a = props.textSize, textSize = _a === void 0 ? 's' : _a, textColor = props.textColor, title = props.title, _b = props.titleTextSize, titleTextSize = _b === void 0 ? 'h5' : _b, titleTextColor = props.titleTextColor, onClickClose = props.onClickClose, className = props.className;
|
|
16
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
17
|
+
prefix: 'fill_',
|
|
18
|
+
propsKey: 'fill',
|
|
19
|
+
});
|
|
20
|
+
var appearanceConfig = appearance && notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
21
|
+
return (jsxRuntimeExports.jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', fillClass ||
|
|
22
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
23
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase())), "data-tour": dataTour, children: [before, jsxRuntimeExports.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntimeExports.jsx(Title, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor ||
|
|
24
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor) && appearanceConfig.titleTextColor), children: title })), text && (jsxRuntimeExports.jsx(Text, { className: "notification__item-text", size: textSize, textColor: textColor || ((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) && appearanceConfig.textColor), children: text })), closeButton && (jsxRuntimeExports.jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
25
|
+
}
|
|
26
|
+
NotificationItem.defaultProps = {
|
|
27
|
+
titleTextSize: 'h5',
|
|
28
|
+
textSize: 's',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function NotificationList(props) {
|
|
32
|
+
var notifications = useNotifications();
|
|
33
|
+
var hideNotifications = useNotificationsAPI().hideNotifications;
|
|
34
|
+
var className = props.className, size = props.size, type = props.type, set = props.set, closeButton = props.closeButton;
|
|
35
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx('notification', className), children: jsxRuntimeExports.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntimeExports.jsx(NotificationItem, { id: notification.id, type: notification.type || type, set: notification.set || set, size: notification.size || size, title: notification.title, text: notification.text, status: notification.status, closeButton: closeButton, onClickClose: hideNotifications }, i)); }) }) }));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { NotificationItem as N, NotificationList as a, notificationItemConfig as n };
|
|
@@ -2,8 +2,8 @@ import React__default, { useCallback } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import fillProps from './constants/componentProps/fill.js';
|
|
5
|
-
import { Icon } from './
|
|
6
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
6
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
7
7
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles.js';
|
|
9
9
|
import { Scrollbar } from './components/Scrollbar.js';
|
|
@@ -9,9 +9,9 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
9
9
|
import { Switch } from './components/Switch.js';
|
|
10
10
|
import directionProps from './constants/componentProps/direction.js';
|
|
11
11
|
import sizeProps from './constants/componentProps/size.js';
|
|
12
|
-
import { Divider } from './
|
|
13
|
-
import { T as Text } from './Text-
|
|
14
|
-
import { Icon } from './
|
|
12
|
+
import { D as Divider } from './Divider-BlBwMHgl.js';
|
|
13
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
14
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
15
15
|
import { useStyles } from './hooks/useStyles.js';
|
|
16
16
|
import { SelectInput } from './components/Select.js';
|
|
17
17
|
|
|
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useSiteMenuContext } from './context/UIContext.js';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { Icon } from './
|
|
7
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { I as Icon } from './Icon-Dn2eEZvb.js';
|
|
7
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
8
8
|
|
|
9
9
|
function SiteMenu(props) {
|
|
10
10
|
const {
|
|
@@ -2,9 +2,9 @@ import React__default from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { Badge } from './components/Badge.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
6
|
-
import { Link } from './
|
|
7
|
-
import { Divider } from './
|
|
5
|
+
import { T as Text } from './Text-BcGbRc14.js';
|
|
6
|
+
import { L as Link } from './Link-ByBzBRDH.js';
|
|
7
|
+
import { D as Divider } from './Divider-BlBwMHgl.js';
|
|
8
8
|
import fillProps from './constants/componentProps/fill.js';
|
|
9
9
|
import shapeProps from './constants/componentProps/shape.js';
|
|
10
10
|
import textColorActiveProps from './constants/componentProps/textColorActive.js';
|
|
@@ -4,14 +4,13 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
4
4
|
import { useStyles } from './hooks/useStyles.js';
|
|
5
5
|
|
|
6
6
|
var textConfig = {
|
|
7
|
-
appearance:
|
|
7
|
+
appearance: undefined,
|
|
8
8
|
setAppearance: function (newComponent) {
|
|
9
9
|
textConfig.appearance = newComponent;
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
function Text(props) {
|
|
13
|
-
var _a,
|
|
14
|
-
var after = props.after, appearance = props.appearance, dataTestId = props.dataTestId, before = props.before, children = props.children, className = props.className, cursor = props.cursor, dataTour = props.dataTour, htmlFor = props.htmlFor, mode = props.mode, _c = props.tag, Tag = _c === void 0 ? 'span' : _c, type = props.type, onClick = props.onClick;
|
|
13
|
+
var after = props.after, appearance = props.appearance, dataTestId = props.dataTestId, before = props.before, children = props.children, className = props.className, cursor = props.cursor, dataTour = props.dataTour, htmlFor = props.htmlFor, mode = props.mode, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, type = props.type, onClick = props.onClick;
|
|
15
14
|
var cursorClass = useDeviceTargetClass(props, {
|
|
16
15
|
prefix: 'cursor_',
|
|
17
16
|
propsKey: 'cursor',
|
|
@@ -62,17 +61,12 @@ function Text(props) {
|
|
|
62
61
|
});
|
|
63
62
|
// @ts-expect-error
|
|
64
63
|
var textStyles = useStyles(props).styles;
|
|
64
|
+
var appearanceConfig = appearance && textConfig.appearance && textConfig.appearance[appearance];
|
|
65
65
|
return (jsxRuntimeExports.jsxs(Tag, { className: clsx(className, 'text', sizeClass ||
|
|
66
|
-
(
|
|
67
|
-
((
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.toLowerCase()), weightClass, textAlignClass, textColorClass ||
|
|
71
|
-
(appearance &&
|
|
72
|
-
((_b = textConfig.appearance[appearance]) === null || _b === void 0 ? void 0 : _b.textColor) &&
|
|
73
|
-
"text-color_".concat(textConfig.appearance[appearance].textColor)
|
|
74
|
-
.replace(/([A-Z])/g, '-$1')
|
|
75
|
-
.toLowerCase()), textColorActiveClass, textColorHoverClass, textGradientClass, textStyleClass, textTruncateClass, textWrapClass, type && "text_type_".concat(type), mode && "text_mode_".concat(mode), widthClass, cursorClass, onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, htmlFor: htmlFor, style: textStyles, onClick: onClick, "data-test-id": dataTestId, children: [before, children, after] }));
|
|
66
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.size) &&
|
|
67
|
+
"text_size_".concat(appearanceConfig.size).replace(/([A-Z])/g, '-$1').toLowerCase()), weightClass, textAlignClass, textColorClass ||
|
|
68
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) &&
|
|
69
|
+
"text-color_".concat(appearanceConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase()), textColorActiveClass, textColorHoverClass, textGradientClass, textStyleClass, textTruncateClass, textWrapClass, type && "text_type_".concat(type), mode && "text_mode_".concat(mode), widthClass, cursorClass, onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, htmlFor: htmlFor, style: textStyles, onClick: onClick, "data-test-id": dataTestId, children: [before, children, after] }));
|
|
76
70
|
}
|
|
77
71
|
Text.defaultProps = {
|
|
78
72
|
tag: 'span',
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var Link = require('./Link-BoShjCEw.js');
|
|
3
4
|
var jsxRuntime = require('./jsx-runtime-BCmQOGxJ.js');
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var clsx = require('clsx');
|
|
6
7
|
var castArray = require('lodash/castArray');
|
|
7
8
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
8
9
|
var useStyles = require('./hooks/useStyles.js');
|
|
9
|
-
var
|
|
10
|
-
var Text = require('./Text-
|
|
10
|
+
var Icon = require('./Icon-UBahY607.js');
|
|
11
|
+
var Text = require('./Text-D7Aq1i5R.js');
|
|
11
12
|
|
|
12
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
|
|
@@ -15,38 +16,6 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
15
16
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
16
17
|
var castArray__default = /*#__PURE__*/_interopDefault(castArray);
|
|
17
18
|
|
|
18
|
-
/******************************************************************************
|
|
19
|
-
Copyright (c) Microsoft Corporation.
|
|
20
|
-
|
|
21
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
22
|
-
purpose with or without fee is hereby granted.
|
|
23
|
-
|
|
24
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
25
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
26
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
27
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
28
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
-
***************************************************************************** */
|
|
32
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function __spreadArray(to, from, pack) {
|
|
36
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
37
|
-
if (ar || !(i in from)) {
|
|
38
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
39
|
-
ar[i] = from[i];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
46
|
-
var e = new Error(message);
|
|
47
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
19
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
51
20
|
return /*#__PURE__*/React__default.default.createElement("svg", props, /*#__PURE__*/React__default.default.createElement("path", {
|
|
52
21
|
d: "M8 11C8.23051 11 8.42712 10.9233 8.60339 10.764L13.7763 6.16224C13.9254 6.03835 14 5.87316 14 5.68437C14 5.30088 13.661 5 13.2136 5C12.9966 5 12.8 5.0767 12.6508 5.20649L8 9.35398L3.34915 5.20649C3.19322 5.0767 2.99661 5 2.77966 5C2.33898 5 2 5.30089 2 5.68437C2 5.87316 2.07458 6.03835 2.22373 6.16224L7.39661 10.764C7.57288 10.9233 7.76949 10.9941 8 11Z"
|
|
@@ -123,7 +92,7 @@ function AccordionItem(props) {
|
|
|
123
92
|
var styles = useStyles.useStyles(props).styles;
|
|
124
93
|
return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: clsx__default.default('accordion-item', className, borderColorClass, fillClass, fillHoverClass, shapeClass, size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { className: clsx__default.default('accordion-item__title', titleBorderColorClass, titleFillClass, titleFillHoverClass, 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default('accordion-item__icon', 'cursor_type_pointer'), onClick: onClickTitle, children: icon || (
|
|
125
94
|
// @ts-expect-error
|
|
126
|
-
jsxRuntime.jsxRuntimeExports.jsx(
|
|
95
|
+
jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, { iconFill: iconFill, size: "16", SvgImage: icon16.ChevronDown })) }), beforeContent && beforeContent, isExpanded && (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default('accordion-item__content', contentBorderColorClass, contentFillClass, fillHoverClass), children: children ||
|
|
127
96
|
(content && (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
|
|
128
97
|
}
|
|
129
98
|
AccordionItem.defaultProps = {
|
|
@@ -143,7 +112,7 @@ function Accordion(props) {
|
|
|
143
112
|
}
|
|
144
113
|
else {
|
|
145
114
|
// ... with target id
|
|
146
|
-
return __spreadArray(__spreadArray([], prevState, true), [targetItem.id], false);
|
|
115
|
+
return Link.__spreadArray(Link.__spreadArray([], prevState, true), [targetItem.id], false);
|
|
147
116
|
}
|
|
148
117
|
}
|
|
149
118
|
else {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('./jsx-runtime-BCmQOGxJ.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
7
|
+
var Icon = require('./Icon-UBahY607.js');
|
|
8
|
+
var index = require('./components/Image.js');
|
|
9
|
+
var Text = require('./Text-D7Aq1i5R.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
14
|
+
|
|
15
|
+
function Avatar(props) {
|
|
16
|
+
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;
|
|
17
|
+
var fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
18
|
+
prefix: 'fill_',
|
|
19
|
+
propsKey: 'fill',
|
|
20
|
+
});
|
|
21
|
+
var fillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
22
|
+
prefix: 'fill_hover_',
|
|
23
|
+
propsKey: 'fillHover',
|
|
24
|
+
});
|
|
25
|
+
var shapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
26
|
+
prefix: 'avatar_shape_',
|
|
27
|
+
propsKey: 'shape',
|
|
28
|
+
});
|
|
29
|
+
var avatarChars = React.useMemo(function () {
|
|
30
|
+
var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
|
|
31
|
+
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
32
|
+
return "".concat(firstChar).concat(secondChar);
|
|
33
|
+
}, [firstName, secondName]);
|
|
34
|
+
return (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default(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: jsxRuntime.jsxRuntimeExports.jsxs("div", { className: clsx__default.default('avatar__wrapper', fillClass, fillHoverClass), children: [before, src ? (jsxRuntime.jsxRuntimeExports.jsx(index.Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { className: "avatar__name", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars })), (icon || iconSrc) && (jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, stroke: iconStroke, SvgImage: icon })), Dot, after] }) }));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.Avatar = Avatar;
|
|
@@ -9,9 +9,9 @@ var fill = require('./constants/componentProps/fill.js');
|
|
|
9
9
|
var position = require('./constants/componentProps/position.js');
|
|
10
10
|
var shape = require('./constants/componentProps/shape.js');
|
|
11
11
|
var width = require('./constants/componentProps/width.js');
|
|
12
|
-
var
|
|
13
|
-
var Text = require('./Text-
|
|
14
|
-
var
|
|
12
|
+
var Icon = require('./Icon-UBahY607.js');
|
|
13
|
+
var Text = require('./Text-D7Aq1i5R.js');
|
|
14
|
+
var Link = require('./Link-BoShjCEw.js');
|
|
15
15
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
16
16
|
var useStyles = require('./hooks/useStyles.js');
|
|
17
17
|
|
|
@@ -59,7 +59,7 @@ function BreadcrumbsItem(props) {
|
|
|
59
59
|
const {
|
|
60
60
|
styles: itemStyles
|
|
61
61
|
} = useStyles.useStyles(props);
|
|
62
|
-
return /*#__PURE__*/React__default.default.createElement(
|
|
62
|
+
return /*#__PURE__*/React__default.default.createElement(Link.LinkWrapper, {
|
|
63
63
|
className: clsx__default.default(className, 'breadcrumbs__item', set && `breadcrumbs__item_set_${set}`, fillClass, positionClass, shapeClass, underlineClass, onClick && (cursor || 'cursor_type_pointer')),
|
|
64
64
|
DefaultComponent: "div",
|
|
65
65
|
href: href,
|
|
@@ -70,7 +70,7 @@ function BreadcrumbsItem(props) {
|
|
|
70
70
|
size: textSize,
|
|
71
71
|
textColor: textColor,
|
|
72
72
|
textColorHover: textColorHover
|
|
73
|
-
}, text || children), iconAfter && /*#__PURE__*/React__default.default.createElement(
|
|
73
|
+
}, text || children), iconAfter && /*#__PURE__*/React__default.default.createElement(Icon.Icon, {
|
|
74
74
|
bgFill: iconAfterBgFill,
|
|
75
75
|
className: "breadcrumbs__item-icon",
|
|
76
76
|
fill: iconAfterFill,
|