@vodafone_de/brix-components 7.0.6 → 7.0.8-renderer-7f7c8f4cc4dca34d63016c96d7cffbd763fed2dd
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/{BackgroundColor-e0N9tdDR.js → BackgroundColor-DSOSZvNi.js} +2 -2
- package/dist/{BorderColor-BummoQ1-.js → BorderColor-CYdSW9dg.js} +5 -5
- package/dist/{BorderWidth-DfOlyKK7.js → BorderWidth-CTOda7Cp.js} +5 -5
- package/dist/{FontWeight-DEBGHbtO.js → FontWeight-C2pGs7aR.js} +2 -2
- package/dist/{HeadingSize-CfCRn3Lh.js → HeadingSize-BoyxJlpz.js} +2 -2
- package/dist/NotificationErrorIcon-DMnAJgPN.js +83 -0
- package/dist/{ObjectColor-BZDBuV8H.js → ObjectColor-DSUXMO7l.js} +6 -6
- package/dist/Spacing-BzNNxYMI.js +25 -0
- package/dist/{TextColor-DsntmDNw.js → TextColor-BXVMXUVE.js} +2 -2
- package/dist/{colorUtils-BSfFfgbi.js → colorUtils-t7G6Q5ev.js} +1 -1
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +52 -9
- package/dist/components/Accordion/props.d.ts +1 -1
- package/dist/components/Accordion/styled.d.ts +1 -1
- package/dist/components/Accordion/validate.d.ts +3 -0
- package/dist/components/Accordion/validate.test.d.ts +1 -0
- package/dist/components/AccordionGroup/index.d.ts +1 -0
- package/dist/components/AccordionGroup/index.js +41 -4
- package/dist/components/AccordionGroup/validate.d.ts +3 -0
- package/dist/components/AccordionGroup/validate.test.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +15 -5
- package/dist/components/Badge/props.d.ts +13 -9
- package/dist/components/Badge/validate.d.ts +5 -0
- package/dist/components/Badge/validate.test.d.ts +1 -0
- package/dist/components/Body/index.d.ts +1 -0
- package/dist/components/Body/index.js +44 -5
- package/dist/components/Body/props.d.ts +3 -3
- package/dist/components/Body/validate.d.ts +8 -0
- package/dist/components/Body/validate.test.d.ts +1 -0
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/ButtonAppearanceHelper.d.ts +1 -1
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +10 -7
- package/dist/components/Button/props.d.ts +0 -5
- package/dist/components/Button/styled.d.ts +1 -1
- package/dist/components/Button/validate.d.ts +6 -0
- package/dist/components/Button/validate.test.d.ts +1 -0
- package/dist/components/ButtonAsLink/index.d.ts +1 -0
- package/dist/components/ButtonAsLink/index.js +6 -2
- package/dist/components/ButtonAsLink/validate.d.ts +4 -0
- package/dist/components/ButtonAsLink/validate.test.d.ts +1 -0
- package/dist/components/ButtonGroup/index.d.ts +1 -0
- package/dist/components/ButtonGroup/index.js +49 -5
- package/dist/components/ButtonGroup/validate.d.ts +6 -0
- package/dist/components/ButtonGroup/validate.test.d.ts +1 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +35 -4
- package/dist/components/Card/props.d.ts +3 -3
- package/dist/components/Card/validate.d.ts +5 -0
- package/dist/components/Card/validate.test.d.ts +1 -0
- package/dist/components/Carousel/components/CarouselNavigation.d.ts +0 -2
- package/dist/components/Carousel/index.js +8 -8
- package/dist/components/Checkbox/index.js +7 -5
- package/dist/components/CheckboxGroup/index.js +3 -3
- package/dist/components/Collapsible/index.js +4 -4
- package/dist/components/ColorSwatch/index.d.ts +1 -0
- package/dist/components/ColorSwatch/index.js +31 -6
- package/dist/components/ColorSwatch/validate.d.ts +4 -0
- package/dist/components/ColorSwatch/validate.test.d.ts +1 -0
- package/dist/components/ColorSwatchGroup/index.d.ts +1 -0
- package/dist/components/ColorSwatchGroup/index.js +35 -6
- package/dist/components/ColorSwatchGroup/props.d.ts +1 -1
- package/dist/components/ColorSwatchGroup/validate.d.ts +4 -0
- package/dist/components/ColorSwatchGroup/validate.test.d.ts +1 -0
- package/dist/components/ConsentMessage/index.d.ts +1 -0
- package/dist/components/ConsentMessage/index.js +6 -5
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.js +36 -65
- package/dist/components/Container/props.d.ts +14 -3
- package/dist/components/Container/validate.d.ts +5 -0
- package/dist/components/Container/validate.test.d.ts +1 -0
- package/dist/components/DateInput/index.js +5 -3
- package/dist/components/DateInput/styled.d.ts +1 -2
- package/dist/components/DemoBox/index.js +6 -4
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/DiscoveryCard/components/DiscoveryCardLinkedImage.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.d.ts +1 -0
- package/dist/components/DiscoveryCard/index.js +72 -15
- package/dist/components/DiscoveryCard/props.d.ts +3 -3
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCard/validate.d.ts +3 -0
- package/dist/components/DiscoveryCard/validate.test.d.ts +1 -0
- package/dist/components/DiscoveryCardGroup/index.d.ts +1 -0
- package/dist/components/DiscoveryCardGroup/index.js +52 -37
- package/dist/components/DiscoveryCardGroup/validate.d.ts +3 -0
- package/dist/components/DiscoveryCardGroup/validate.test.d.ts +1 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +17 -25
- package/dist/components/Divider/validate.d.ts +3 -0
- package/dist/components/Divider/validate.test.d.ts +1 -0
- package/dist/components/Fieldset/index.js +3 -3
- package/dist/components/FilterGroup/index.js +11 -9
- package/dist/components/FilterGroup/props.d.ts +1 -1
- package/dist/components/FilterGroup/styled.d.ts +1 -1
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/Flex/props.d.ts +1 -1
- package/dist/components/FlexItem/index.js +2 -2
- package/dist/components/FootnoteContent/index.js +3 -3
- package/dist/components/FootnoteLink/index.js +2 -2
- package/dist/components/Form/index.js +2 -2
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperLabel/index.js +1 -1
- package/dist/components/FormHelperMessage/index.js +2 -2
- package/dist/components/FormHelperStatusIcon/index.d.ts +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +3 -1
- package/dist/components/FormHelperStatusIcon/styled.d.ts +1 -1
- package/dist/components/GoogleMap/components/Map/props.d.ts +1 -1
- package/dist/components/GoogleMap/index.js +5 -5
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Grid/index.js +39 -4
- package/dist/components/Grid/props.d.ts +5 -5
- package/dist/components/Grid/validate.d.ts +6 -0
- package/dist/components/Grid/validate.test.d.ts +1 -0
- package/dist/components/GridItem/index.d.ts +1 -0
- package/dist/components/GridItem/index.js +32 -3
- package/dist/components/GridItem/props.d.ts +2 -2
- package/dist/components/GridItem/validate.d.ts +5 -0
- package/dist/components/GridItem/validate.test.d.ts +1 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.js +50 -13
- package/dist/components/Heading/props.d.ts +5 -11
- package/dist/components/Heading/styled.d.ts +2 -2
- package/dist/components/Heading/validate.d.ts +9 -0
- package/dist/components/Heading/validate.test.d.ts +1 -0
- package/dist/components/HifiIcon/index.js +2 -2
- package/dist/components/HifiIcon/props.d.ts +2 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.js +1 -3
- package/dist/components/Icon/props.d.ts +1 -4
- package/dist/components/IconButton/index.js +7 -5
- package/dist/components/IconButton/props.d.ts +1 -1
- package/dist/components/IconLoader/index.d.ts +10 -0
- package/dist/components/IconLoader/index.js +9 -0
- package/dist/components/IconLoader/props.d.ts +23 -0
- package/dist/components/IconLoader/validate.d.ts +4 -0
- package/dist/components/IconLoader/validate.test.d.ts +1 -0
- package/dist/components/IconSnippet/index.js +7 -5
- package/dist/components/IconSnippet/props.d.ts +1 -1
- package/dist/components/IconSnippet/styled.d.ts +1 -1
- package/dist/components/IconSnippetList/index.js +2 -2
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Image/index.js +47 -3
- package/dist/components/Image/validate.d.ts +8 -0
- package/dist/components/Image/validate.test.d.ts +1 -0
- package/dist/components/ImageHeader/index.js +8 -8
- package/dist/components/ImageHeader/props.d.ts +3 -3
- package/dist/components/InlineIcon/index.d.ts +6 -0
- package/dist/components/InlineIcon/index.js +36 -0
- package/dist/components/InlineIcon/props.d.ts +42 -0
- package/dist/components/InlineIcon/styled.d.ts +4 -0
- package/dist/components/InlineIcon/validate.d.ts +4 -0
- package/dist/components/InlineLink/index.d.ts +1 -0
- package/dist/components/InlineLink/index.js +28 -6
- package/dist/components/InlineLink/validate.d.ts +3 -0
- package/dist/components/InlineLink/validate.test.d.ts +1 -0
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.js +35 -2
- package/dist/components/Link/validate.d.ts +3 -0
- package/dist/components/Link/validate.test.d.ts +1 -0
- package/dist/components/LinkAsButton/index.d.ts +1 -0
- package/dist/components/LinkAsButton/index.js +4 -2
- package/dist/components/LinkAsButton/validate.d.ts +3 -0
- package/dist/components/LinkAsButton/validate.test.d.ts +1 -0
- package/dist/components/LinkList/index.js +4 -4
- package/dist/components/LinkListItem/index.js +16 -14
- package/dist/components/LinkListItem/props.d.ts +2 -2
- package/dist/components/LinkListItem/styled.d.ts +2 -2
- package/dist/components/LoadingSpinner/index.js +12 -5
- package/dist/components/LoadingSpinner/styled.d.ts +1 -1
- package/dist/components/MediaText/index.js +26 -26
- package/dist/components/MediaText/props.d.ts +9 -9
- package/dist/components/MediaText/styled.d.ts +3 -3
- package/dist/components/Notification/index.js +10 -8
- package/dist/components/Notification/notificationStatusVariants.d.ts +1 -1
- package/dist/components/Overlay/index.js +2 -2
- package/dist/components/PickerGroup/components/Picker/props.d.ts +6 -4
- package/dist/components/PickerGroup/components/PickerElementIcon/index.d.ts +1 -1
- package/dist/components/PickerGroup/components/PickerElementIcon/styled.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +12 -10
- package/dist/components/Price/index.d.ts +1 -0
- package/dist/components/Price/index.js +8 -5
- package/dist/components/Price/props.d.ts +2 -9
- package/dist/components/Price/styled.d.ts +1 -1
- package/dist/components/Price/validate.d.ts +6 -0
- package/dist/components/Price/validate.test.d.ts +1 -0
- package/dist/components/ProductCard/index.js +9 -8
- package/dist/components/ProductCard/styled.d.ts +1 -1
- package/dist/components/RadioGroup/index.js +5 -5
- package/dist/components/Rating/index.js +5 -5
- package/dist/components/ResponsiveImage/index.js +2 -2
- package/dist/components/ResponsiveImage/props.d.ts +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichText/parseHtml.d.ts +1 -1
- package/dist/components/RichText/props.d.ts +1 -1
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.d.ts +2 -1
- package/dist/components/SearchInput/index.js +27 -26
- package/dist/components/SearchInput/props.d.ts +2 -1
- package/dist/components/SearchInput/styled.d.ts +2 -5
- package/dist/components/SelectInput/index.js +8 -6
- package/dist/components/Stepper/index.js +5 -5
- package/dist/components/SuggestInput/index.js +10 -8
- package/dist/components/SuggestInput/props.d.ts +1 -1
- package/dist/components/SuggestInput/styled.d.ts +2 -2
- package/dist/components/Switch/index.js +10 -8
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TabularPrice/props.d.ts +1 -1
- package/dist/components/TextList/index.js +3 -3
- package/dist/components/TextList/props.d.ts +3 -3
- package/dist/components/Textarea/index.js +6 -6
- package/dist/components/TimeInput/index.js +7 -5
- package/dist/components/TimeInput/styled.d.ts +1 -4
- package/dist/components/Tray/index.js +6 -6
- package/dist/components/Tray/props.d.ts +1 -1
- package/dist/components/YoutubeVideo/index.js +2 -2
- package/dist/components/YoutubeVideo/props.d.ts +1 -1
- package/dist/contentful/LegibleContent.d.ts +20 -0
- package/dist/contentful/componentInspectorField.d.ts +5 -0
- package/dist/contentful/componentNameToComponent.d.ts +6 -0
- package/dist/contentful/index.d.ts +1 -0
- package/dist/contentful/index.js +25 -0
- package/dist/contentful/live-preview-inspector/index.d.ts +2 -0
- package/dist/contentful/live-preview-inspector/index.js +65 -0
- package/dist/contentful/live-preview-inspector/props.d.ts +1 -0
- package/dist/contentful/live-preview-renderer/index.d.ts +5 -0
- package/dist/contentful/live-preview-renderer/index.js +7 -0
- package/dist/contentful/live-preview-renderer/props.d.ts +3 -0
- package/dist/contentful/map/MapFunction.d.ts +4 -0
- package/dist/contentful/map/badge.d.ts +4 -0
- package/dist/contentful/map/body.d.ts +4 -0
- package/dist/contentful/map/button.d.ts +5 -0
- package/dist/contentful/map/card.d.ts +5 -0
- package/dist/contentful/map/container.d.ts +7 -0
- package/dist/contentful/map/discovery-card-group.d.ts +5 -0
- package/dist/contentful/map/discovery-card.d.ts +5 -0
- package/dist/contentful/map/divider.d.ts +4 -0
- package/dist/contentful/map/heading.d.ts +5 -0
- package/dist/contentful/map/icon-loader.d.ts +5 -0
- package/dist/contentful/map/image.d.ts +4 -0
- package/dist/contentful/map/link.d.ts +5 -0
- package/dist/contentful/map/mapContentToComponents.d.ts +20 -0
- package/dist/contentful/map/price.d.ts +4 -0
- package/dist/contentful/map/richtext.d.ts +8 -0
- package/dist/contentful/renderer/index.d.ts +5 -0
- package/dist/contentful/renderer/index.js +17 -0
- package/dist/contentful/renderer/props.d.ts +7 -0
- package/dist/contentful/transform/transformBottomSpacing.d.ts +2 -0
- package/dist/contentful/transform/transformIconSize.d.ts +2 -0
- package/dist/{easing-Dm-pO8SY.js → easing-CDd2rVn6.js} +2 -2
- package/dist/filterProps-C73Li8Na.js +13 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/PatternProps/index.d.ts +1 -1
- package/dist/foundations/cssVars.d.ts +2 -2
- package/dist/foundations/tags.d.ts +2 -0
- package/dist/foundations/token/getBackgroundColor/index.d.ts +1 -1
- package/dist/foundations/token/getBodySize/index.d.ts +1 -1
- package/dist/foundations/token/getBorderColor/index.d.ts +1 -1
- package/dist/foundations/token/getBorderRadius/index.d.ts +1 -1
- package/dist/foundations/token/getBorderWidth/index.d.ts +1 -1
- package/dist/foundations/token/getFontWeight/index.d.ts +1 -1
- package/dist/foundations/token/getHeadingSize/index.d.ts +1 -1
- package/dist/foundations/token/getHoverColor/index.d.ts +2 -2
- package/dist/foundations/token/getIconColor/index.d.ts +1 -1
- package/dist/foundations/token/getObjectColor/index.d.ts +1 -1
- package/dist/foundations/token/getOpacity/index.d.ts +1 -1
- package/dist/foundations/token/getPressColor/index.d.ts +2 -2
- package/dist/foundations/token/getSpacing/index.d.ts +1 -1
- package/dist/foundations/token/getTextColor/index.d.ts +1 -1
- package/dist/foundations/token/getTextDecoration/index.d.ts +1 -1
- package/dist/foundations/types/PositionedIconInterface.d.ts +1 -1
- package/dist/foundations/{token/types → types}/Spacing.d.ts +1 -0
- package/dist/foundations/types/SystemIconWithPosition.d.ts +1 -1
- package/dist/hooks/useViewport/index.d.ts +1 -1
- package/dist/icons/index.d.ts +0 -1
- package/dist/icons/index.js +1 -603
- package/dist/{index-DQhtQZ85.js → index-BI5Xlys3.js} +1 -1
- package/dist/{index-CKvLGUdD.js → index-BUCDNHMw.js} +49 -8
- package/dist/index-CN-gxxgB.js +99 -0
- package/dist/{index-WLBo71sp.js → index-CiBLxGmR.js} +55 -29
- package/dist/index-DEYEyjbU.js +20136 -0
- package/dist/index-Dv7RoWED.js +600 -0
- package/dist/{index-DrySIh-D.js → index-E8AZ8kiW.js} +38 -8
- package/dist/{index-BRs8j3Vq.js → index-nyF1sqYr.js} +5 -5
- package/dist/index.d.ts +8 -0
- package/dist/index.js +221 -118
- package/dist/isBottomSpacing-DSLyqm7h.js +10 -0
- package/dist/isObject-BYBrvoVW.js +19 -0
- package/dist/props-7dcsjRUx.js +28 -0
- package/dist/{styled-CYugcGtx.js → styled-8Td4Oj0t.js} +4 -4
- package/dist/{styled-03irSJOQ.js → styled-9UD_-g7q.js} +6 -6
- package/dist/{styled-ODPFCF1a.js → styled-AUfIpwZf.js} +4 -4
- package/dist/styled-COXTMhJ1.js +27 -0
- package/dist/styled-DSAEfZJQ.js +69 -0
- package/dist/{styled-B0YKfXTz.js → styled-DTFUPagl.js} +2 -2
- package/dist/{styled-DLS1p_AJ.js → styled-D_wUvoV0.js} +13 -9
- package/dist/{styled-ZpQohvyx.js → styled-DrQft35m.js} +2 -2
- package/dist/{styled-DMUiOi24.js → styled-DtJ7ZhhG.js} +4 -4
- package/dist/{index-57IF0yrd.js → styled-DwtGn2if.js} +5 -20
- package/dist/styled-HZzB_zPP.js +53 -0
- package/dist/styled-Lkb8cDS-.js +42 -0
- package/dist/{styled-Cqp2oSjW.js → styled-oOq50bDL.js} +4 -4
- package/dist/{tags-DI6H1biK.js → tags-CixnzWW0.js} +17 -8
- package/package.json +5 -1
- package/dist/Spacing-D0HQH9YJ.js +0 -16
- package/dist/filterProps-Cewck8OH.js +0 -13
- package/dist/index-Cbojl4_Q.js +0 -7134
- /package/dist/foundations/{token/types → types}/BackgroundColor.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/BorderColor.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/BorderRadius.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/BorderWidth.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/FontWeight.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/HeadingSize.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/IconColor.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/ObjectColor.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/Opacity.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/TextBodySize.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/TextColor.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/TextDecoration.d.ts +0 -0
- /package/dist/foundations/{token/types → types}/Viewport.d.ts +0 -0
|
@@ -15,10 +15,10 @@ export {
|
|
|
15
15
|
colorBorderFocus as c,
|
|
16
16
|
colorBorderSuccess as d,
|
|
17
17
|
colorBorderCritical as e,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
colorBorderSubtle as f,
|
|
19
|
+
colorBorderWarning as g,
|
|
20
|
+
colorBorderBrand as h,
|
|
21
|
+
colorBorderInverse as i,
|
|
22
|
+
colorBorderSelected as j,
|
|
23
23
|
colorBorderInformation as k
|
|
24
24
|
};
|
|
@@ -8,9 +8,9 @@ const borderWidthMd = "Md";
|
|
|
8
8
|
export {
|
|
9
9
|
borderWidthFocus as a,
|
|
10
10
|
borderWidthUnselected as b,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
borderWidthDivider as c,
|
|
12
|
+
borderWidthSm as d,
|
|
13
|
+
borderWidthSelected as e,
|
|
14
|
+
borderWidthMd as f,
|
|
15
|
+
borderWidthNone as g
|
|
16
16
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
const iconSizeXl = "iconSizeXl";
|
|
4
|
+
const iconSize2xl = "iconSize2xl";
|
|
5
|
+
const iconSize3xl = "iconSize3xl";
|
|
6
|
+
const iconSize4xl = "iconSize4xl";
|
|
7
|
+
const iconSize5xl = "iconSize5xl";
|
|
8
|
+
const IconWithAccent = [iconSizeXl, iconSize2xl, iconSize3xl, iconSize4xl, iconSize5xl];
|
|
9
|
+
const inlineIconModeStroke = "stroke";
|
|
10
|
+
const InlineIconStyled = styled.svg.withConfig({
|
|
11
|
+
displayName: "InlineIconStyled",
|
|
12
|
+
componentId: "sc-1yvjncn-0"
|
|
13
|
+
})({
|
|
14
|
+
display: "flex"
|
|
15
|
+
}, ({
|
|
16
|
+
$coloringMode = inlineIconModeStroke
|
|
17
|
+
}) => {
|
|
18
|
+
const complimentaryColoringMode = "fill" === $coloringMode ? "stroke" : "fill";
|
|
19
|
+
const svgChildrenCss = {
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round",
|
|
22
|
+
strokeWidth: "8"
|
|
23
|
+
};
|
|
24
|
+
svgChildrenCss[`${complimentaryColoringMode}`] = "none";
|
|
25
|
+
const cssObject = {
|
|
26
|
+
"& path, & line, & polyline, & circle, & ellipse, & polygon, & rect": svgChildrenCss
|
|
27
|
+
};
|
|
28
|
+
cssObject[`${$coloringMode}`] = "currentcolor";
|
|
29
|
+
return cssObject;
|
|
30
|
+
}, ({
|
|
31
|
+
size
|
|
32
|
+
}) => {
|
|
33
|
+
if (!IconWithAccent.includes(size)) {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
"& .accent": {
|
|
38
|
+
stroke: "var(--colorIconBrand)"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}, ({
|
|
42
|
+
size
|
|
43
|
+
}) => ({
|
|
44
|
+
width: `var(--${size})`,
|
|
45
|
+
height: `var(--${size})`
|
|
46
|
+
}), ({
|
|
47
|
+
bottomSpacing
|
|
48
|
+
}) => {
|
|
49
|
+
if (!bottomSpacing) {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
marginBottom: `var(--spacing${bottomSpacing})`
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const InlineIcon = ({
|
|
57
|
+
className,
|
|
58
|
+
alt = "",
|
|
59
|
+
coloringMode = inlineIconModeStroke,
|
|
60
|
+
viewBox = "0 0 192 192",
|
|
61
|
+
...props
|
|
62
|
+
}) => {
|
|
63
|
+
return /* @__PURE__ */ jsxs(InlineIconStyled, { ...props, className, $coloringMode: coloringMode, version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox, xmlSpace: "preserve", ..."" === alt ? {
|
|
64
|
+
"aria-hidden": true
|
|
65
|
+
} : {}, children: [
|
|
66
|
+
"" !== alt && /* @__PURE__ */ jsx("title", { children: alt }),
|
|
67
|
+
props.children
|
|
68
|
+
] });
|
|
69
|
+
};
|
|
70
|
+
const NotificationErrorIcon = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
71
|
+
InlineIcon,
|
|
72
|
+
{
|
|
73
|
+
...props,
|
|
74
|
+
coloringMode: "fill",
|
|
75
|
+
viewBox: "0 0 32 32",
|
|
76
|
+
className,
|
|
77
|
+
children: /* @__PURE__ */ jsx("path", { d: "M28.845 22.7267L19.5116 5.44168C19.1673 4.8116 18.6596 4.28583 18.0421 3.91955C17.4245 3.55327 16.7197 3.35999 16.0016 3.35999C15.2836 3.35999 14.5788 3.55327 13.9612 3.91955C13.3436 4.28583 12.836 4.8116 12.4916 5.44168L3.15828 22.72C2.82502 23.3291 2.65603 24.0145 2.66795 24.7087C2.67986 25.4029 2.87227 26.082 3.22624 26.6793C3.58021 27.2766 4.08356 27.7715 4.68678 28.1153C5.29 28.459 5.97231 28.6399 6.66662 28.64H25.3333C26.0269 28.6398 26.7086 28.4593 27.3114 28.1161C27.9142 27.7729 28.4173 27.2788 28.7715 26.6824C29.1257 26.086 29.3187 25.4078 29.3315 24.7143C29.3444 24.0208 29.1767 23.3358 28.845 22.7267ZM15.3333 10.6433C15.3333 10.4665 15.4035 10.297 15.5285 10.1719C15.6536 10.0469 15.8231 9.97668 16 9.97668C16.1768 9.97668 16.3463 10.0469 16.4714 10.1719C16.5964 10.297 16.6666 10.4665 16.6666 10.6433V20.06C16.6666 20.2368 16.5964 20.4064 16.4714 20.5314C16.3463 20.6564 16.1768 20.7267 16 20.7267C15.8231 20.7267 15.6536 20.6564 15.5285 20.5314C15.4035 20.4064 15.3333 20.2368 15.3333 20.06V10.6433ZM16 24.1433C15.8351 24.1433 15.674 24.0945 15.537 24.0029C15.3999 23.9113 15.2931 23.7812 15.2301 23.6289C15.167 23.4766 15.1505 23.3091 15.1826 23.1474C15.2148 22.9858 15.2942 22.8373 15.4107 22.7208C15.5272 22.6042 15.6757 22.5248 15.8374 22.4927C15.999 22.4605 16.1666 22.477 16.3189 22.5401C16.4711 22.6032 16.6013 22.71 16.6928 22.847C16.7844 22.9841 16.8333 23.1452 16.8333 23.31C16.832 23.5302 16.7436 23.7408 16.5874 23.896C16.4313 24.0512 16.2201 24.1384 16 24.1383V24.1433Z" })
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
export {
|
|
81
|
+
InlineIcon as I,
|
|
82
|
+
NotificationErrorIcon as N
|
|
83
|
+
};
|
|
@@ -13,10 +13,10 @@ export {
|
|
|
13
13
|
colorObjectSelected as b,
|
|
14
14
|
colorObjectBrand as c,
|
|
15
15
|
colorObjectUnselected as d,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
colorObjectCritical as e,
|
|
17
|
+
colorObjectWarning as f,
|
|
18
|
+
colorObjectSuccess as g,
|
|
19
|
+
colorObjectInformation as h,
|
|
20
|
+
colorObjectNeutral as i,
|
|
21
|
+
colorObjectAccent as j
|
|
22
22
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const spacingNone = "None";
|
|
2
|
+
const spacing2Xs = "2Xs";
|
|
3
|
+
const spacingXs = "Xs";
|
|
4
|
+
const spacingSm = "Sm";
|
|
5
|
+
const spacingMd = "Md";
|
|
6
|
+
const spacingLg = "Lg";
|
|
7
|
+
const spacingXl = "Xl";
|
|
8
|
+
const spacing2Xl = "2Xl";
|
|
9
|
+
const spacing3Xl = "3Xl";
|
|
10
|
+
const spacing4Xl = "4Xl";
|
|
11
|
+
const spacing5Xl = "5Xl";
|
|
12
|
+
const spacing6Xl = "6Xl";
|
|
13
|
+
const spacing7Xl = "7Xl";
|
|
14
|
+
const spacings = [spacingNone, spacing2Xs, spacingXs, spacingSm, spacingMd, spacingLg, spacingXl, spacing2Xl, spacing3Xl, spacing4Xl, spacing5Xl, spacing6Xl, spacing7Xl];
|
|
15
|
+
export {
|
|
16
|
+
spacingXs as a,
|
|
17
|
+
spacingNone as b,
|
|
18
|
+
spacingSm as c,
|
|
19
|
+
spacingXl as d,
|
|
20
|
+
spacings as e,
|
|
21
|
+
spacing2Xs as f,
|
|
22
|
+
spacing5Xl as g,
|
|
23
|
+
spacingLg as h,
|
|
24
|
+
spacingMd as s
|
|
25
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { b as colorTextInverseStatic, a as colorTextNeutral, d as colorTextNeutralStatic, e as colorTextInverse } from "./TextColor-BXVMXUVE.js";
|
|
1
2
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
2
|
-
import { b as colorTextInverseStatic, a as colorTextNeutral, d as colorTextNeutralStatic, e as colorTextInverse } from "./TextColor-DsntmDNw.js";
|
|
3
3
|
const backgroundForegroundColorMapping = {
|
|
4
4
|
colorBackgroundBrand: getTextColor(colorTextInverseStatic),
|
|
5
5
|
colorBackgroundNeutral: getTextColor(colorTextNeutral),
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { bf as ChevronDownIcon, df as IconLoader, iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import { useRef, useState, useEffect } from "react";
|
|
5
4
|
import Collapsible from "../Collapsible/index.js";
|
|
5
|
+
import { b as ChevronDownIcon, d as iconNames, I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
6
|
+
import { c as iconSizeMd } from "../../props-7dcsjRUx.js";
|
|
7
|
+
import "../../styled-HZzB_zPP.js";
|
|
6
8
|
import styled from "styled-components";
|
|
7
9
|
import Heading from "../Heading/index.js";
|
|
8
10
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
9
11
|
import { noReducedMotion } from "../../foundations/media-query/reducedMotion/index.js";
|
|
10
|
-
import {
|
|
12
|
+
import { e as ease_in_out_sine } from "../../easing-CDd2rVn6.js";
|
|
11
13
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
12
14
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
13
15
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
14
16
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
15
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
16
18
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-
|
|
21
|
-
import { a as colorTextNeutral,
|
|
22
|
-
import { f as filterProps } from "../../filterProps-
|
|
19
|
+
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
|
+
import { g as borderWidthNone, b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
21
|
+
import { f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
22
|
+
import { s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-BzNNxYMI.js";
|
|
23
|
+
import { a as colorTextNeutral, g as colorTextBrand } from "../../TextColor-BXVMXUVE.js";
|
|
24
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
25
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
26
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
23
27
|
const accordionToggleExpanded = "expanded";
|
|
24
28
|
const accordionToggleCollapsing = "collapsing";
|
|
25
29
|
const accordionToggleCollapsed = "collapsed";
|
|
@@ -120,6 +124,43 @@ const AccordionOpenIndicatorStyled = styled(ChevronDownIcon).withConfig({
|
|
|
120
124
|
transform: "rotate(0deg)"
|
|
121
125
|
}
|
|
122
126
|
});
|
|
127
|
+
const validateAccordionProps = (props) => {
|
|
128
|
+
if (!isObject(props)) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
const accordionProps = props;
|
|
132
|
+
if (!hasMatchingComponentName(accordionProps.component, "Accordion")) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
if (typeof accordionProps.uid !== "string" || accordionProps.uid.length === 0) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
if (typeof accordionProps.heading !== "string" || accordionProps.heading.length === 0) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (accordionProps.children === void 0 || accordionProps.children === null) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
if (accordionProps.iconName !== void 0 && !iconNames.includes(accordionProps.iconName)) {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
if (accordionProps.expanded !== void 0 && typeof accordionProps.expanded !== "boolean") {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
if (accordionProps.handleOnToggle !== void 0 && typeof accordionProps.handleOnToggle !== "function") {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
if (accordionProps.verticalScrollOffset !== void 0 && typeof accordionProps.verticalScrollOffset !== "number") {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
if (accordionProps.bottomSpacing && !isBottomSpacing(accordionProps.bottomSpacing)) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
return true;
|
|
160
|
+
};
|
|
161
|
+
const isAccordionProps = (props) => {
|
|
162
|
+
return validateAccordionProps(props);
|
|
163
|
+
};
|
|
123
164
|
const Accordion = ({
|
|
124
165
|
uid,
|
|
125
166
|
children,
|
|
@@ -191,5 +232,7 @@ export {
|
|
|
191
232
|
accordionToggleCollapsed,
|
|
192
233
|
accordionToggleCollapsing,
|
|
193
234
|
accordionToggleExpanded,
|
|
194
|
-
Accordion as default
|
|
235
|
+
Accordion as default,
|
|
236
|
+
isAccordionProps,
|
|
237
|
+
validateAccordionProps
|
|
195
238
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconName } from '@vfde-react/inline-icon-library';
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { HeadingProps } from '../Heading/props';
|
|
4
4
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
@@ -3,4 +3,4 @@ import { AccordionProps } from './props';
|
|
|
3
3
|
export declare const AccordionStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, Omit<AccordionProps, "heading" | "uid">>> & string;
|
|
4
4
|
export declare const AccordionSummaryStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, Omit<AccordionProps, "heading" | "uid">>> & string;
|
|
5
5
|
export declare const AccordionHeadingStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<HeadingProps, HeadingProps>> & string & Omit<import('react').FC<HeadingProps>, keyof import('react').Component<any, {}, any>>;
|
|
6
|
-
export declare const AccordionOpenIndicatorStyled: import('styled-components/dist/types').IStyledComponentBase<"web",
|
|
6
|
+
export declare const AccordionOpenIndicatorStyled: import('styled-components/dist/types').IStyledComponentBase<"web", any> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import Accordion from "../Accordion/index.js";
|
|
4
|
-
import { s as spacingMd, b as spacingNone } from "../../Spacing-
|
|
3
|
+
import Accordion, { validateAccordionProps } from "../Accordion/index.js";
|
|
4
|
+
import { s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
|
-
import { f as filterProps } from "../../filterProps-
|
|
8
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
9
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
10
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
9
11
|
const AccordionGroupSingleExpand = ({
|
|
10
12
|
bottomSpacing = spacingMd,
|
|
11
13
|
...props
|
|
@@ -41,6 +43,39 @@ const AccordionGroupStyled = styled.div.withConfig({
|
|
|
41
43
|
displayName: "AccordionGroupStyled",
|
|
42
44
|
componentId: "sc-17dfswd-0"
|
|
43
45
|
})(getBottomSpacing);
|
|
46
|
+
const validateAccordionGroupProps = (props) => {
|
|
47
|
+
if (!isObject(props)) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
const accordionGroupProps = props;
|
|
51
|
+
if (!hasMatchingComponentName(accordionGroupProps.component, "AccordionGroup")) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
if (!Array.isArray(accordionGroupProps.items) || accordionGroupProps.items.length === 0) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
for (const item of accordionGroupProps.items) {
|
|
58
|
+
if (!validateAccordionProps(item)) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (accordionGroupProps.singleExpand !== void 0 && typeof accordionGroupProps.singleExpand !== "boolean") {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
if (accordionGroupProps.handleOnToggle !== void 0 && typeof accordionGroupProps.handleOnToggle !== "function") {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (accordionGroupProps.verticalScrollOffset !== void 0 && typeof accordionGroupProps.verticalScrollOffset !== "number") {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
if (accordionGroupProps.bottomSpacing && !isBottomSpacing(accordionGroupProps.bottomSpacing)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return true;
|
|
75
|
+
};
|
|
76
|
+
const isAccordionGroupProps = (props) => {
|
|
77
|
+
return validateAccordionGroupProps(props);
|
|
78
|
+
};
|
|
44
79
|
const AccordionGroup = ({
|
|
45
80
|
singleExpand = false,
|
|
46
81
|
bottomSpacing = spacingMd,
|
|
@@ -55,5 +90,7 @@ const AccordionGroup = ({
|
|
|
55
90
|
}) });
|
|
56
91
|
};
|
|
57
92
|
export {
|
|
58
|
-
AccordionGroup as default
|
|
93
|
+
AccordionGroup as default,
|
|
94
|
+
isAccordionGroupProps,
|
|
95
|
+
validateAccordionGroupProps
|
|
59
96
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import "../../index-
|
|
4
|
-
import "../../
|
|
3
|
+
import "../../index-DEYEyjbU.js";
|
|
4
|
+
import "../../props-7dcsjRUx.js";
|
|
5
|
+
import "../../styled-HZzB_zPP.js";
|
|
5
6
|
import "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
+
import "../../Spacing-BzNNxYMI.js";
|
|
6
8
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
-
import {
|
|
9
|
+
import { b, c, d, B, i, p, s, a, t, v } from "../../index-BUCDNHMw.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
b as BadgeAppearanceColor,
|
|
12
|
+
c as badgeAppearances,
|
|
13
|
+
d as badgeSizes,
|
|
14
|
+
B as default,
|
|
15
|
+
i as isBadgeProps,
|
|
16
|
+
p as primaryBadgeAppearance,
|
|
17
|
+
s as secondaryBadgeAppearance,
|
|
18
|
+
a as successBadgeAppearance,
|
|
19
|
+
t as tertiaryBadgeAppearance,
|
|
20
|
+
v as validateBadgeProps
|
|
11
21
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { IconName } from '@vfde-react/inline-icon-library';
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
-
import { ObjectColor } from '../../foundations/
|
|
4
|
+
import { ObjectColor } from '../../foundations/types/ObjectColor.ts';
|
|
5
5
|
import { mediumSize, smallSize } from '../../foundations/types/SizeTypes';
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
export declare const primaryBadgeAppearance = "primary";
|
|
7
|
+
export declare const secondaryBadgeAppearance = "secondary";
|
|
8
|
+
export declare const tertiaryBadgeAppearance = "tertiary";
|
|
9
|
+
export declare const successBadgeAppearance = "success";
|
|
10
|
+
export type BadgeAppearance = typeof primaryBadgeAppearance | typeof secondaryBadgeAppearance | typeof tertiaryBadgeAppearance | typeof successBadgeAppearance;
|
|
11
|
+
export type BadgeSize = typeof smallSize | typeof mediumSize;
|
|
8
12
|
export declare const BadgeAppearanceColor: Record<BadgeAppearance, ObjectColor>;
|
|
9
13
|
export interface BadgeProps extends PatternProps, HTMLAttributes<HTMLSpanElement> {
|
|
10
14
|
/**
|
|
11
15
|
* Pin component's name from string to the concrete name
|
|
12
16
|
*/
|
|
13
17
|
component?: 'Badge';
|
|
14
|
-
/**
|
|
15
|
-
* Can be used on darker backgrounds by setting to `dark`
|
|
16
|
-
*/
|
|
17
|
-
theme?: Theme;
|
|
18
18
|
/**
|
|
19
19
|
* Support for several different appearances with their own background colors
|
|
20
20
|
*/
|
|
@@ -22,9 +22,13 @@ export interface BadgeProps extends PatternProps, HTMLAttributes<HTMLSpanElement
|
|
|
22
22
|
/**
|
|
23
23
|
* Supports two sizes: small and medium
|
|
24
24
|
*/
|
|
25
|
-
size?:
|
|
25
|
+
size?: BadgeSize;
|
|
26
26
|
/**
|
|
27
27
|
* Specify a system icon name to be displayed to the left of content. All system icons are listed here: https://www.vodafone.de/simplicity/icons/
|
|
28
28
|
*/
|
|
29
29
|
icon?: IconName;
|
|
30
|
+
/**
|
|
31
|
+
* Children are mandatory and must be a string
|
|
32
|
+
*/
|
|
33
|
+
children: string;
|
|
30
34
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BadgeAppearance, BadgeProps, BadgeSize } from './props';
|
|
2
|
+
export declare const badgeAppearances: BadgeAppearance[];
|
|
3
|
+
export declare const badgeSizes: BadgeSize[];
|
|
4
|
+
export declare const validateBadgeProps: (props: unknown) => boolean;
|
|
5
|
+
export declare const isBadgeProps: (props: unknown) => props is BadgeProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { c as spacingSm, s as spacingMd } from "../../Spacing-
|
|
3
|
+
import { c as spacingSm, s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
4
4
|
import { t as textBodyMd, a as textBodySm } from "../../TextBodySize-BcZR9mh2.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
@@ -8,9 +8,10 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
|
8
8
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
9
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
10
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import { a as colorTextNeutral } from "../../TextColor-
|
|
13
|
-
import { f as filterProps } from "../../filterProps-
|
|
11
|
+
import { a as fontWeightBold, b as fontWeightLight, f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
12
|
+
import { a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
13
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
14
|
+
import { p as pTagName, d as divTagName, c as spanTagName, k as strongTagName, m as supTagName } from "../../tags-CixnzWW0.js";
|
|
14
15
|
const BodyStyled = styled.p.withConfig({
|
|
15
16
|
shouldForwardProp: filterProps(),
|
|
16
17
|
displayName: "BodyStyled",
|
|
@@ -59,6 +60,38 @@ const BodyStyled = styled.p.withConfig({
|
|
|
59
60
|
const bodyAlignLeft = "left";
|
|
60
61
|
const bodyAlignCenter = "center";
|
|
61
62
|
const bodyAlignRight = "right";
|
|
63
|
+
const bodySizes = [textBodyMd, textBodySm];
|
|
64
|
+
const bodyTags = [pTagName, divTagName, spanTagName, strongTagName, supTagName];
|
|
65
|
+
const bodyAligns = ["left", "center", "right"];
|
|
66
|
+
const bodyWeights = [fontWeightLight, fontWeightRegular, fontWeightBold];
|
|
67
|
+
const validateBodyProps = (props) => {
|
|
68
|
+
if (!props || typeof props !== "object") {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
const bodyProps = props;
|
|
72
|
+
if (!bodyProps.component || bodyProps.component !== "Body") {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (bodyProps.size !== void 0 && !bodySizes.includes(bodyProps.size)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (bodyProps.weight !== void 0 && !bodyWeights.includes(bodyProps.weight)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (bodyProps.align !== void 0 && !bodyAligns.includes(bodyProps.align)) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
if (bodyProps.tag !== void 0 && !bodyTags.includes(bodyProps.tag)) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
if (bodyProps.children === void 0) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
};
|
|
92
|
+
const isBodyProps = (props) => {
|
|
93
|
+
return validateBodyProps(props);
|
|
94
|
+
};
|
|
62
95
|
const Body = ({
|
|
63
96
|
tag = "p",
|
|
64
97
|
bottomSpacing,
|
|
@@ -73,5 +106,11 @@ export {
|
|
|
73
106
|
bodyAlignCenter,
|
|
74
107
|
bodyAlignLeft,
|
|
75
108
|
bodyAlignRight,
|
|
76
|
-
|
|
109
|
+
bodyAligns,
|
|
110
|
+
bodySizes,
|
|
111
|
+
bodyTags,
|
|
112
|
+
bodyWeights,
|
|
113
|
+
Body as default,
|
|
114
|
+
isBodyProps,
|
|
115
|
+
validateBodyProps
|
|
77
116
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
3
|
import { divTagName, pTagName, spanTagName, strongTagName, supTagName } from '../../foundations/tags';
|
|
4
|
-
import { FontWeight } from '../../foundations/
|
|
5
|
-
import { TextBodySize } from '../../foundations/
|
|
4
|
+
import { FontWeight } from '../../foundations/types/FontWeight.ts';
|
|
5
|
+
import { TextBodySize } from '../../foundations/types/TextBodySize.ts';
|
|
6
6
|
import { Theme } from '../../foundations/types/Theme';
|
|
7
7
|
export type BodyTags = typeof pTagName | typeof divTagName | typeof spanTagName | typeof strongTagName | typeof supTagName;
|
|
8
8
|
export declare const bodyAlignLeft = "left";
|
|
@@ -15,7 +15,7 @@ export interface BodyProps extends PatternProps, HTMLAttributes<HTMLParagraphEle
|
|
|
15
15
|
*/
|
|
16
16
|
size?: TextBodySize;
|
|
17
17
|
/**
|
|
18
|
-
* font weight can be light, regular or bold. if strong is used as a tag,
|
|
18
|
+
* font weight can be light, regular or bold. if strong is used as a tag, weight is ignored and Body is always bold
|
|
19
19
|
*/
|
|
20
20
|
weight?: FontWeight;
|
|
21
21
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FontWeight } from '../../foundations/types/FontWeight';
|
|
2
|
+
import { BodyAlign, BodyProps, BodyTags } from './props';
|
|
3
|
+
export declare const bodySizes: string[];
|
|
4
|
+
export declare const bodyTags: BodyTags[];
|
|
5
|
+
export declare const bodyAligns: BodyAlign[];
|
|
6
|
+
export declare const bodyWeights: FontWeight[];
|
|
7
|
+
export declare const validateBodyProps: (props: unknown) => boolean;
|
|
8
|
+
export declare const isBodyProps: (props: unknown) => props is BodyProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useState, useEffect } from "react";
|
|
4
|
-
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
5
4
|
import Container from "../Container/index.js";
|
|
5
|
+
import { s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { a as CardStyled } from "../../styled-
|
|
7
|
+
import { a as CardStyled } from "../../styled-8Td4Oj0t.js";
|
|
8
8
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
9
9
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
10
10
|
import { a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
11
|
-
import { f as filterProps } from "../../filterProps-
|
|
11
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
12
12
|
const bottomBarExtraPadding = 100;
|
|
13
13
|
const BottomBarStyled = styled(CardStyled).withConfig({
|
|
14
14
|
shouldForwardProp: filterProps(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
-
import { ObjectColor } from '../../foundations/token/types/ObjectColor';
|
|
3
2
|
import { ButtonAppearances } from '../../foundations/types/ButtonAppearances';
|
|
3
|
+
import { ObjectColor } from '../../foundations/types/ObjectColor.ts';
|
|
4
4
|
export declare const ButtonAppearanceColor: Record<ButtonAppearances, ObjectColor>;
|
|
5
5
|
export declare const getButtonAppearance: (appearance: ButtonAppearances) => CSSObject;
|