@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
2
|
import { ButtonGroupProps } from '../ButtonGroup/props';
|
|
4
3
|
import { HeadingProps } from '../Heading/props';
|
|
4
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
5
|
export interface TrayProps extends PatternProps, Omit<HTMLAttributes<HTMLDivElement>, 'onToggle'> {
|
|
6
6
|
/**
|
|
7
7
|
* Pin component's name from string to the concrete name
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
|
|
4
3
|
import ConsentMessage from "../ConsentMessage/index.js";
|
|
4
|
+
import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
7
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
8
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
9
|
-
import { s as spacingMd } from "../../Spacing-
|
|
9
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
10
10
|
const YoutubeVideoStyled = styled.div.withConfig({
|
|
11
11
|
displayName: "YoutubeVideoStyled",
|
|
12
12
|
componentId: "sc-1q2uytw-0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
2
|
import { ConsentMessageProps } from '../ConsentMessage/props';
|
|
3
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
4
|
export interface YoutubeVideoProps extends PatternProps, HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Pin component's name from string to the concrete name
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type LegibleContent = string | number | boolean | null | LegibleContent[] | {
|
|
2
|
+
sys: {
|
|
3
|
+
id: string;
|
|
4
|
+
contentType: {
|
|
5
|
+
sys: {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
fields: {
|
|
11
|
+
[key: string]: number | boolean | string | boolean | LegibleContent | LegibleContent[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type MaybeLegibleContent = LegibleContent | string | null;
|
|
15
|
+
export declare const validateLegibleContent: (check: unknown) => check is LegibleContent;
|
|
16
|
+
/**
|
|
17
|
+
* That it's null or string is actually nonsense ;)
|
|
18
|
+
* But at least while I'm searching for all the any's, I'll take it as it is for now.
|
|
19
|
+
*/
|
|
20
|
+
export declare const isLegibleContent: (check: unknown) => check is LegibleContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './renderer';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "@contentful/live-preview/react";
|
|
4
|
+
import "../NotificationErrorIcon-DMnAJgPN.js";
|
|
5
|
+
import "../styled-HZzB_zPP.js";
|
|
6
|
+
import "html-react-parser";
|
|
7
|
+
import "../index-BUCDNHMw.js";
|
|
8
|
+
import "../components/Body/index.js";
|
|
9
|
+
import "../styled-D_wUvoV0.js";
|
|
10
|
+
import "../styled-DwtGn2if.js";
|
|
11
|
+
import "../styled-8Td4Oj0t.js";
|
|
12
|
+
import "../styled-DSAEfZJQ.js";
|
|
13
|
+
import "react";
|
|
14
|
+
import "../index-BI5Xlys3.js";
|
|
15
|
+
import "../components/FootnoteLink/index.js";
|
|
16
|
+
import "../components/Heading/index.js";
|
|
17
|
+
import "../index-E8AZ8kiW.js";
|
|
18
|
+
import "../index-CiBLxGmR.js";
|
|
19
|
+
import "../components/InlineLink/index.js";
|
|
20
|
+
import "../index-nyF1sqYr.js";
|
|
21
|
+
import "uuid";
|
|
22
|
+
import "../components/DiscoveryCard/index.js";
|
|
23
|
+
import "../components/Image/index.js";
|
|
24
|
+
import "../styled-Lkb8cDS-.js";
|
|
25
|
+
import "../styled-COXTMhJ1.js";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useContentfulInspectorMode } from "@contentful/live-preview/react";
|
|
4
|
+
import { B as Badge } from "../../index-BUCDNHMw.js";
|
|
5
|
+
import Body from "../../components/Body/index.js";
|
|
6
|
+
import Button from "../../components/Button/index.js";
|
|
7
|
+
import { B as ButtonAsLink } from "../../index-CN-gxxgB.js";
|
|
8
|
+
import Card from "../../components/Card/index.js";
|
|
9
|
+
import Container from "../../components/Container/index.js";
|
|
10
|
+
import DiscoveryCard from "../../components/DiscoveryCard/index.js";
|
|
11
|
+
import DiscoveryCardGroup from "../../components/DiscoveryCardGroup/index.js";
|
|
12
|
+
import Divider from "../../components/Divider/index.js";
|
|
13
|
+
import Heading from "../../components/Heading/index.js";
|
|
14
|
+
import { I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
15
|
+
import Image from "../../components/Image/index.js";
|
|
16
|
+
import Link from "../../components/Link/index.js";
|
|
17
|
+
import { L as LinkAsButton } from "../../index-E8AZ8kiW.js";
|
|
18
|
+
import { P as Price } from "../../index-CiBLxGmR.js";
|
|
19
|
+
const componentInspectorField = {
|
|
20
|
+
Badge: "children",
|
|
21
|
+
Body: "children",
|
|
22
|
+
Button: "children",
|
|
23
|
+
ButtonAsLink: "children",
|
|
24
|
+
Card: "children",
|
|
25
|
+
Container: "children",
|
|
26
|
+
Divider: "cmsTitle",
|
|
27
|
+
Heading: "children",
|
|
28
|
+
Link: "children",
|
|
29
|
+
LinkAsButton: "children",
|
|
30
|
+
Image: "children",
|
|
31
|
+
Price: "price",
|
|
32
|
+
IconLoader: "icon",
|
|
33
|
+
DiscoveryCard: "cmsTitle",
|
|
34
|
+
DiscoveryCardGroup: "discoveryCards"
|
|
35
|
+
};
|
|
36
|
+
const componentNameToComponent = {
|
|
37
|
+
Badge,
|
|
38
|
+
Body,
|
|
39
|
+
Button,
|
|
40
|
+
ButtonAsLink,
|
|
41
|
+
Card,
|
|
42
|
+
Container,
|
|
43
|
+
Divider,
|
|
44
|
+
Heading,
|
|
45
|
+
Link,
|
|
46
|
+
LinkAsButton,
|
|
47
|
+
Image,
|
|
48
|
+
Price,
|
|
49
|
+
IconLoader,
|
|
50
|
+
DiscoveryCard,
|
|
51
|
+
DiscoveryCardGroup
|
|
52
|
+
};
|
|
53
|
+
const LivePreviewInspector = (props) => {
|
|
54
|
+
const inspectorProps = useContentfulInspectorMode({
|
|
55
|
+
entryId: props.uid
|
|
56
|
+
});
|
|
57
|
+
const BrixComponent = componentNameToComponent[props.component];
|
|
58
|
+
const inspectorField = componentInspectorField[props.component];
|
|
59
|
+
return /* @__PURE__ */ jsx(BrixComponent, { ...props, ...inspectorProps({
|
|
60
|
+
fieldId: inspectorField
|
|
61
|
+
}), children: props.children });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
LivePreviewInspector
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type LivePreviewInspectorProps = {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ContentEntry } from './container.tsx';
|
|
3
|
+
export type MapFunction = (content: ContentEntry, Component?: FC<any>) => ReactNode | null;
|
|
4
|
+
export type MapFunctionWithChildren = (content: ContentEntry, isDraft: boolean, Component?: FC<any>) => ReactNode | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../../components/Button';
|
|
2
|
+
import { ButtonAsLinkProps } from '../../components/ButtonAsLink';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapButtonProps: (content: any) => ButtonProps | ButtonAsLinkProps | false;
|
|
5
|
+
export declare const mapButton: MapFunction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CardProps } from '../../components/Card';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunctionWithChildren } from './MapFunction';
|
|
4
|
+
export declare const mapCardProps: (content: ContentEntry, mappedChildren: any) => CardProps | false;
|
|
5
|
+
export declare const mapCard: MapFunctionWithChildren;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Entry } from 'contentful';
|
|
2
|
+
import { ContainerProps } from '../../components/Container';
|
|
3
|
+
import { MapFunctionWithChildren } from './MapFunction';
|
|
4
|
+
export interface ContentEntry extends Entry<any> {
|
|
5
|
+
}
|
|
6
|
+
export declare const mapContainerProps: (content: ContentEntry, mappedChildren: any) => ContainerProps | false;
|
|
7
|
+
export declare const mapContainer: MapFunctionWithChildren;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DiscoveryCardGroupProps } from '../../components/DiscoveryCardGroup';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapDiscoveryCardGroupProps: (content: ContentEntry) => DiscoveryCardGroupProps | false;
|
|
5
|
+
export declare const mapDiscoveryCardGroup: MapFunction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DiscoveryCardProps } from '../../components/DiscoveryCard';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapDiscoveryCardProps: (content: ContentEntry) => DiscoveryCardProps | false;
|
|
5
|
+
export declare const mapDiscoveryCard: MapFunction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HeadingProps } from '../../components/Heading';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapHeadingProps: (content: ContentEntry) => HeadingProps | false;
|
|
5
|
+
export declare const mapHeading: MapFunction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconLoaderProps } from '../../components/IconLoader';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapIconLoaderProps: (content: ContentEntry) => IconLoaderProps | false;
|
|
5
|
+
export declare const mapIconLoader: MapFunction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LinkProps } from '../../components/Link';
|
|
2
|
+
import { LinkAsButtonProps } from '../../components/LinkAsButton';
|
|
3
|
+
import { MapFunction } from './MapFunction';
|
|
4
|
+
export declare const mapLinkProps: (content: any) => LinkProps | LinkAsButtonProps | false;
|
|
5
|
+
export declare const mapLink: MapFunction;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ContentEntry } from './container';
|
|
3
|
+
import { MapFunction, MapFunctionWithChildren } from './MapFunction';
|
|
4
|
+
type ComponentMapperFunction = {
|
|
5
|
+
[key: string]: MapFunction;
|
|
6
|
+
};
|
|
7
|
+
type ComponentWithChilrenMapperFunction = {
|
|
8
|
+
[key: string]: MapFunctionWithChildren;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* map id of content-model to mapping fn
|
|
12
|
+
*/
|
|
13
|
+
export declare const componentMapperFunction: ComponentMapperFunction;
|
|
14
|
+
/**
|
|
15
|
+
* map id of content-model to mapping fn
|
|
16
|
+
*/
|
|
17
|
+
export declare const componentWithChildrenMapperFunction: ComponentWithChilrenMapperFunction;
|
|
18
|
+
export declare const mapContentToComponent: (content: ContentEntry | string | null, isDraft?: boolean) => ReactNode;
|
|
19
|
+
export declare const mapContentToComponents: (contents: any[], isDraft?: boolean) => ReactNode;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ContentfulRichtextProps {
|
|
3
|
+
uid: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
component: 'ContentfulRichtext';
|
|
6
|
+
}
|
|
7
|
+
export declare const isContentfulRichtextProps: (props: ContentfulRichtextProps | any) => props is ContentfulRichtextProps;
|
|
8
|
+
export declare const mapRichText: (content: any) => ContentfulRichtextProps;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { L as LivePreviewRenderer, m as mapContentToComponents } from "../../index-Dv7RoWED.js";
|
|
4
|
+
const Renderer = ({
|
|
5
|
+
content,
|
|
6
|
+
isDraftMode
|
|
7
|
+
}) => {
|
|
8
|
+
if (isDraftMode) {
|
|
9
|
+
return /* @__PURE__ */ jsx(LivePreviewRenderer, { content });
|
|
10
|
+
}
|
|
11
|
+
const Components = mapContentToComponents(content);
|
|
12
|
+
console.log(Components);
|
|
13
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Components });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
Renderer as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "corners", "coversFullPage", "description", "expanded", "filterItems", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "isActive", "isChecked", "isDisabled", "isFullscreen", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
|
|
2
|
+
const filterProps = (propsNotPassToDom = []) => {
|
|
3
|
+
const shouldForwardProp = (prop) => {
|
|
4
|
+
if ("string" !== typeof prop) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
|
|
8
|
+
};
|
|
9
|
+
return shouldForwardProp;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
filterProps as f
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { css, createGlobalStyle } from "styled-components";
|
|
3
|
-
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "../../styled-
|
|
3
|
+
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "../../styled-DtJ7ZhhG.js";
|
|
4
4
|
import { c as breakpoint_medium, a as breakpoint_large } from "../../index-Ck2bCrhT.js";
|
|
5
5
|
const colorVodafoneRed = "colorVodafoneRed";
|
|
6
6
|
const colorVodafoneRedTint = "colorVodafoneRedTint";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Spacing } from '../
|
|
1
|
+
import { Spacing } from '../types/Spacing.ts';
|
|
2
2
|
export interface PatternProps {
|
|
3
3
|
/** Component name. is used in cms & bob and in brix to render children dynamically
|
|
4
4
|
* @TODO discuss refactoring of RIT prerender. Maybe using displayName could fulfil the purpose, but be closer to standard React
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Color } from './token/base/baseColors';
|
|
2
|
-
import { BackgroundColor } from './
|
|
3
|
-
import { ObjectColor } from './
|
|
2
|
+
import { BackgroundColor } from './types/BackgroundColor.ts';
|
|
3
|
+
import { ObjectColor } from './types/ObjectColor.ts';
|
|
4
4
|
import { Theme } from './types/Theme';
|
|
5
5
|
export declare const backgroundColors: Record<BackgroundColor, Record<Theme, Color>>;
|
|
6
6
|
export declare const objectColors: Record<ObjectColor, Record<Theme, Color>>;
|
|
@@ -17,3 +17,5 @@ export declare const liTagName = "li";
|
|
|
17
17
|
export declare const sectionTagName = "section";
|
|
18
18
|
export declare const articleTagName = "article";
|
|
19
19
|
export declare const asideTagName = "aside";
|
|
20
|
+
export declare const navTagName = "nav";
|
|
21
|
+
export declare const mainTagName = "main";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BackgroundColor } from '
|
|
1
|
+
import { BackgroundColor } from '../../types/BackgroundColor.ts';
|
|
2
2
|
export declare const getBackgroundColor: (color: BackgroundColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BorderColor } from '
|
|
1
|
+
import { BorderColor } from '../../types/BorderColor.ts';
|
|
2
2
|
export declare const getBorderColor: (color: BorderColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BorderRadius } from '
|
|
1
|
+
import { BorderRadius } from '../../types/BorderRadius.ts';
|
|
2
2
|
export declare const getBorderRadius: (radius: BorderRadius) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetBorderWidth } from '
|
|
1
|
+
import { GetBorderWidth } from '../../types/BorderWidth.ts';
|
|
2
2
|
export declare const getBorderWidth: (borderWidth: GetBorderWidth) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FontWeight } from '
|
|
1
|
+
import { FontWeight } from '../../types/FontWeight.ts';
|
|
2
2
|
export declare const getFontWeight: (weight: FontWeight) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BackgroundColor } from '
|
|
2
|
-
import { ObjectColor } from '
|
|
1
|
+
import { BackgroundColor } from '../../types/BackgroundColor.ts';
|
|
2
|
+
import { ObjectColor } from '../../types/ObjectColor.ts';
|
|
3
3
|
export declare const getHoverColor: (color: ObjectColor | BackgroundColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconColor } from '
|
|
1
|
+
import { IconColor } from '../../types/IconColor.ts';
|
|
2
2
|
export declare const getIconColor: (color: IconColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectColor } from '
|
|
1
|
+
import { ObjectColor } from '../../types/ObjectColor.ts';
|
|
2
2
|
export declare const getObjectColor: (color: ObjectColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Opacity } from '
|
|
1
|
+
import { Opacity } from '../../types/Opacity.ts';
|
|
2
2
|
export declare const getOpacity: (opacity: Opacity) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BackgroundColor } from '
|
|
2
|
-
import { ObjectColor } from '
|
|
1
|
+
import { BackgroundColor } from '../../types/BackgroundColor.ts';
|
|
2
|
+
import { ObjectColor } from '../../types/ObjectColor.ts';
|
|
3
3
|
export declare const getPressColor: (color: ObjectColor | BackgroundColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Spacing } from '
|
|
1
|
+
import { Spacing } from '../../types/Spacing.ts';
|
|
2
2
|
export declare const getSpacing: (spacing: Spacing) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextColor } from '
|
|
1
|
+
import { TextColor } from '../../types/TextColor.ts';
|
|
2
2
|
export declare const getTextColor: (color: TextColor) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextDecoration } from '
|
|
1
|
+
import { TextDecoration } from '../../types/TextDecoration.ts';
|
|
2
2
|
export declare const getTextDecoration: (textDecoration: TextDecoration) => string;
|
|
@@ -51,3 +51,4 @@ export declare const spacing6Xl = "6Xl";
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const spacing7Xl = "7Xl";
|
|
53
53
|
export type Spacing = typeof spacingNone | typeof spacing2Xs | typeof spacingXs | typeof spacingSm | typeof spacingMd | typeof spacingLg | typeof spacingXl | typeof spacing2Xl | typeof spacing3Xl | typeof spacing4Xl | typeof spacing5Xl | typeof spacing6Xl | typeof spacing7Xl;
|
|
54
|
+
export declare const spacings: Spacing[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlineIconProps } from '
|
|
1
|
+
import { InlineIconProps } from '../../components/InlineIcon/props';
|
|
2
2
|
import { default as PositionType } from './PositionType';
|
|
3
3
|
export type SvgInlineIconFactoryPropsWithPosition = {
|
|
4
4
|
iconPosition: PositionType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewportName } from '../../foundations/
|
|
1
|
+
import { ViewportName } from '../../foundations/types/Viewport';
|
|
2
2
|
/**
|
|
3
3
|
* The useViewport hook is a custom React Hook that determines the current viewport size
|
|
4
4
|
* is matching one of our three size categories:
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vfde-react/inline-icon-library';
|