@vodafone_de/brix-components 7.0.7 → 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 +3 -3
- 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 +7 -7
- package/dist/components/MediaText/props.d.ts +1 -1
- 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-D2J2U7wz.js → index-nyF1sqYr.js} +5 -5
- package/dist/index.d.ts +8 -0
- package/dist/index.js +217 -114
- 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-Bz98Tkqt.js → tags-CixnzWW0.js} +15 -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,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 { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
4
|
import { ButtonAppearances } from '../../foundations/types/ButtonAppearances';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconLoaderProps } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* This component imports all(!) InlineSvgIcons
|
|
5
|
+
* Good enough for now, but most likely we want to have some kind of lazyLoading, ssg or ssr
|
|
6
|
+
*/
|
|
7
|
+
declare const IconLoader: FC<IconLoaderProps>;
|
|
8
|
+
export * from './props';
|
|
9
|
+
export * from './validate';
|
|
10
|
+
export default IconLoader;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
|
+
import { SVGAttributes } from 'react';
|
|
3
|
+
import { IconSize } from '../InlineIcon';
|
|
4
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
|
+
export interface IconLoaderProps extends PatternProps, SVGAttributes<SVGElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Pin component's name from string to the concrete name
|
|
8
|
+
*/
|
|
9
|
+
component?: 'IconLoader';
|
|
10
|
+
/**
|
|
11
|
+
* Icon name
|
|
12
|
+
*/
|
|
13
|
+
name: IconName;
|
|
14
|
+
/**
|
|
15
|
+
* size defines the height and width of the icon
|
|
16
|
+
*/
|
|
17
|
+
size: IconSize;
|
|
18
|
+
/**
|
|
19
|
+
* Icons are generally assumed to be decorative and not content-bearing.
|
|
20
|
+
* If an icon transports content, then alt text must be used to store a text for screen readers
|
|
21
|
+
*/
|
|
22
|
+
alt?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IconLoaderProps } from './props';
|
|
2
|
+
export declare const iconSizes: readonly ["iconSize2xs", "iconSizeXs", "iconSizeSm", "iconSizeMd", "iconSizeLg", "iconSizeXl", "iconSize2xl", "iconSize3xl", "iconSize4xl", "iconSize5xl"];
|
|
3
|
+
export declare const validateIconLoaderProps: (props: unknown) => props is IconLoaderProps;
|
|
4
|
+
export declare const isIconLoaderProps: (props: unknown) => props is IconLoaderProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader, it as iconSizeLg, iq as iconSize3xl, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import Body from "../Body/index.js";
|
|
5
4
|
import Heading from "../Heading/index.js";
|
|
5
|
+
import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
6
|
+
import "../../styled-HZzB_zPP.js";
|
|
6
7
|
import InlineLink from "../InlineLink/index.js";
|
|
7
|
-
import { R as RichText } from "../../index-D2J2U7wz.js";
|
|
8
|
-
import { d as divTagName } from "../../tags-Bz98Tkqt.js";
|
|
9
|
-
import { a as spacingXs, s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
10
8
|
import Link from "../Link/index.js";
|
|
9
|
+
import { R as RichText } from "../../index-nyF1sqYr.js";
|
|
10
|
+
import { d as divTagName } from "../../tags-CixnzWW0.js";
|
|
11
|
+
import { a as spacingXs, s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
11
12
|
import styled from "styled-components";
|
|
13
|
+
import { I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
12
14
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
13
15
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
|
-
import { f as filterProps } from "../../filterProps-
|
|
16
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
15
17
|
const iconSnippetSizeSmall = "sm";
|
|
16
18
|
const iconSnippetSizeLarge = "lg";
|
|
17
19
|
const iconSnippetSize3Xl = "3xl";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconLoaderProps } from '@vfde-react/inline-icon-library';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
2
|
import { BodyProps } from '../Body';
|
|
4
3
|
import { HeadingProps } from '../Heading';
|
|
4
|
+
import { IconLoaderProps } from '../IconLoader';
|
|
5
5
|
import { InlineLinkProps } from '../InlineLink';
|
|
6
6
|
import { LinkProps } from '../Link';
|
|
7
7
|
import { LinkAsButtonProps } from '../LinkAsButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconSnippetPosition, IconSnippetProps } from './props';
|
|
2
2
|
export declare const IconSnippetStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<IconSnippetProps, "size" | "icon" | "contents">>> & string;
|
|
3
|
-
export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('
|
|
3
|
+
export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../IconLoader').IconLoaderProps, never>> & string & Omit<import('react').FC<import('../IconLoader').IconLoaderProps>, keyof import('react').Component<any, {}, any>>;
|
|
4
4
|
export declare const IconSnippetContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
5
|
iconPosition: IconSnippetPosition;
|
|
6
6
|
}>> & string;
|
|
@@ -3,8 +3,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import Grid from "../Grid/index.js";
|
|
4
4
|
import GridItem from "../GridItem/index.js";
|
|
5
5
|
import IconSnippet from "../IconSnippet/index.js";
|
|
6
|
-
import { u as ulTagName, l as liTagName } from "../../tags-
|
|
7
|
-
import { b as spacingNone } from "../../Spacing-
|
|
6
|
+
import { u as ulTagName, l as liTagName } from "../../tags-CixnzWW0.js";
|
|
7
|
+
import { b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
8
8
|
const IconSnippetList = ({
|
|
9
9
|
component: _component,
|
|
10
10
|
items,
|
|
@@ -4,8 +4,9 @@ import styled from "styled-components";
|
|
|
4
4
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
5
5
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
6
6
|
import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
7
|
-
import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
|
|
8
|
-
import { f as filterProps } from "../../filterProps-
|
|
7
|
+
import { c as cornerStraight, a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
|
|
8
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
9
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
9
10
|
const objectFitContain = "contain";
|
|
10
11
|
const objectFitCover = "cover";
|
|
11
12
|
const objectFitNone = "none";
|
|
@@ -54,6 +55,42 @@ const ImageStyled = styled.img.withConfig({
|
|
|
54
55
|
}) => ({
|
|
55
56
|
aspectRatio
|
|
56
57
|
}), getBottomSpacing);
|
|
58
|
+
const aspectRatios = [aspectRatio1_1, aspectRatio3_4, aspectRatio16_9, aspectRatio21_9, aspectRatio32_9, aspectRatio48_9];
|
|
59
|
+
const objectFits = [objectFitContain, objectFitCover, objectFitNone];
|
|
60
|
+
const objectPositions = [objectPositionCenter, objectPositionLeftTop, objectPositionLeftCenter, objectPositionLeftBottom, objectPositionRightTop, objectPositionRightCenter, objectPositionRightBottom];
|
|
61
|
+
const horizontalAlignments = [horizontalAlignmentLeft, horizontalAlignmentRight, horizontalAlignmentCenter];
|
|
62
|
+
const cornerStyles = [cornerStraight, cornerRounded];
|
|
63
|
+
const validateImageProps = (props) => {
|
|
64
|
+
if (!isObject(props)) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
const p = props;
|
|
68
|
+
if (!hasMatchingComponentName(p.component, "Image")) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
if (!p.src || typeof p.src !== "string") {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (!p.aspectRatio || !aspectRatios.includes(p.aspectRatio)) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
if (p.objectFit !== void 0 && !objectFits.includes(p.objectFit)) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (p.objectPosition !== void 0 && !objectPositions.includes(p.objectPosition)) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (p.horizontalAlignment !== void 0 && !horizontalAlignments.includes(p.horizontalAlignment)) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (p.corners !== void 0 && !cornerStyles.includes(p.corners)) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
};
|
|
91
|
+
const isImageProps = (props) => {
|
|
92
|
+
return validateImageProps(props);
|
|
93
|
+
};
|
|
57
94
|
const Image = ({
|
|
58
95
|
alt = "",
|
|
59
96
|
...props
|
|
@@ -67,18 +104,25 @@ export {
|
|
|
67
104
|
aspectRatio32_9,
|
|
68
105
|
aspectRatio3_4,
|
|
69
106
|
aspectRatio48_9,
|
|
107
|
+
aspectRatios,
|
|
108
|
+
cornerStyles,
|
|
70
109
|
Image as default,
|
|
71
110
|
horizontalAlignmentCenter,
|
|
72
111
|
horizontalAlignmentLeft,
|
|
73
112
|
horizontalAlignmentRight,
|
|
113
|
+
horizontalAlignments,
|
|
114
|
+
isImageProps,
|
|
74
115
|
objectFitContain,
|
|
75
116
|
objectFitCover,
|
|
76
117
|
objectFitNone,
|
|
118
|
+
objectFits,
|
|
77
119
|
objectPositionCenter,
|
|
78
120
|
objectPositionLeftBottom,
|
|
79
121
|
objectPositionLeftCenter,
|
|
80
122
|
objectPositionLeftTop,
|
|
81
123
|
objectPositionRightBottom,
|
|
82
124
|
objectPositionRightCenter,
|
|
83
|
-
objectPositionRightTop
|
|
125
|
+
objectPositionRightTop,
|
|
126
|
+
objectPositions,
|
|
127
|
+
validateImageProps
|
|
84
128
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AspectRatio, ImageObjectFit, ImageObjectPosition, ImageProps } from './props';
|
|
2
|
+
export declare const aspectRatios: AspectRatio[];
|
|
3
|
+
export declare const objectFits: ImageObjectFit[];
|
|
4
|
+
export declare const objectPositions: ImageObjectPosition[];
|
|
5
|
+
export declare const horizontalAlignments: string[];
|
|
6
|
+
export declare const cornerStyles: string[];
|
|
7
|
+
export declare const validateImageProps: (props: unknown) => props is ImageProps;
|
|
8
|
+
export declare const isImageProps: (props: unknown) => props is ImageProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
|
-
import { b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
|
|
5
|
-
import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, e as spacing2Xs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
|
-
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
-
import { g as getUid, R as RichText } from "../../index-D2J2U7wz.js";
|
|
8
4
|
import Button from "../Button/index.js";
|
|
9
5
|
import Container from "../Container/index.js";
|
|
10
6
|
import Heading, { headingAlignCenter } from "../Heading/index.js";
|
|
11
|
-
import { P as Price, b as priceSizeSm } from "../../index-
|
|
7
|
+
import { P as Price, b as priceSizeSm } from "../../index-CiBLxGmR.js";
|
|
8
|
+
import { g as getUid, R as RichText } from "../../index-nyF1sqYr.js";
|
|
9
|
+
import { b as fontWeightLight } from "../../FontWeight-C2pGs7aR.js";
|
|
10
|
+
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
11
|
+
import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, f as spacing2Xs, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
|
-
import { B as Badge } from "../../index-
|
|
13
|
+
import { B as Badge } from "../../index-BUCDNHMw.js";
|
|
14
14
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
15
15
|
import Grid from "../Grid/index.js";
|
|
16
16
|
import GridItem from "../GridItem/index.js";
|
|
@@ -19,9 +19,9 @@ import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
|
19
19
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
20
20
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
21
21
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
22
|
-
import { b as colorBackgroundOverlay } from "../../BackgroundColor-
|
|
22
|
+
import { b as colorBackgroundOverlay } from "../../BackgroundColor-DSOSZvNi.js";
|
|
23
23
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
24
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
24
|
+
import { a as flexOrientationVertical } from "../../styled-DTFUPagl.js";
|
|
25
25
|
const imageHeaderVariantFull = "full";
|
|
26
26
|
const imageHeaderVariantSplit = "split";
|
|
27
27
|
const imageHeaderPositionRight = "right";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { BadgeProps } from '../Badge/props';
|
|
3
|
-
import { HeadingProps } from '../Heading/props';
|
|
4
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
|
-
import { Theme } from '../../foundations/types/Theme';
|
|
6
3
|
import { BodyProps } from '../Body/props';
|
|
7
4
|
import { ButtonProps } from '../Button/props';
|
|
8
5
|
import { ButtonAsLinkProps } from '../ButtonAsLink/props';
|
|
9
6
|
import { ButtonGroupProps } from '../ButtonGroup/props';
|
|
10
7
|
import { GridColSpan } from '../Grid/props';
|
|
8
|
+
import { HeadingProps } from '../Heading/props';
|
|
11
9
|
import { PriceProps } from '../Price/props';
|
|
12
10
|
import { ResponsiveImageProps } from '../ResponsiveImage/props';
|
|
13
11
|
import { RichTextProps } from '../RichText/props';
|
|
12
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
13
|
+
import { Theme } from '../../foundations/types/Theme';
|
|
14
14
|
export declare const imageHeaderVariantFull = "full";
|
|
15
15
|
export declare const imageHeaderVariantSplit = "split";
|
|
16
16
|
export declare const imageHeaderPositionRight = "right";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { l as inlineIconModeStroke } from "../../props-7dcsjRUx.js";
|
|
4
|
+
import { I, f, i, g, h, j, d, c, b, e, a, k } from "../../props-7dcsjRUx.js";
|
|
5
|
+
import { I as InlineIconStyled } from "../../styled-HZzB_zPP.js";
|
|
6
|
+
const InlineIcon = ({
|
|
7
|
+
className,
|
|
8
|
+
alt = "",
|
|
9
|
+
coloringMode = inlineIconModeStroke,
|
|
10
|
+
viewBox = "0 0 192 192",
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
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 ? {
|
|
14
|
+
"aria-hidden": true
|
|
15
|
+
} : {}, children: [
|
|
16
|
+
"" !== alt && /* @__PURE__ */ jsx("title", { children: alt }),
|
|
17
|
+
props.children
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
I as IconWithAccent,
|
|
22
|
+
InlineIconStyled,
|
|
23
|
+
InlineIcon as default,
|
|
24
|
+
f as iconSize2xl,
|
|
25
|
+
i as iconSize2xs,
|
|
26
|
+
g as iconSize3xl,
|
|
27
|
+
h as iconSize4xl,
|
|
28
|
+
j as iconSize5xl,
|
|
29
|
+
d as iconSizeLg,
|
|
30
|
+
c as iconSizeMd,
|
|
31
|
+
b as iconSizeSm,
|
|
32
|
+
e as iconSizeXl,
|
|
33
|
+
a as iconSizeXs,
|
|
34
|
+
k as inlineIconModeFill,
|
|
35
|
+
inlineIconModeStroke
|
|
36
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SVGAttributes } from 'react';
|
|
2
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
+
export declare const iconSize2xs = "iconSize2xs";
|
|
4
|
+
export declare const iconSizeXs = "iconSizeXs";
|
|
5
|
+
export declare const iconSizeSm = "iconSizeSm";
|
|
6
|
+
export declare const iconSizeMd = "iconSizeMd";
|
|
7
|
+
export declare const iconSizeLg = "iconSizeLg";
|
|
8
|
+
export declare const iconSizeXl = "iconSizeXl";
|
|
9
|
+
export declare const iconSize2xl = "iconSize2xl";
|
|
10
|
+
export declare const iconSize3xl = "iconSize3xl";
|
|
11
|
+
export declare const iconSize4xl = "iconSize4xl";
|
|
12
|
+
export declare const iconSize5xl = "iconSize5xl";
|
|
13
|
+
export type IconSize = typeof iconSize2xs | typeof iconSizeXs | typeof iconSizeSm | typeof iconSizeMd | typeof iconSizeLg | typeof iconSizeXl | typeof iconSize2xl | typeof iconSize3xl | typeof iconSize4xl | typeof iconSize5xl;
|
|
14
|
+
export declare const IconWithAccent: string[];
|
|
15
|
+
export declare const inlineIconModeFill = "fill";
|
|
16
|
+
export declare const inlineIconModeStroke = "stroke";
|
|
17
|
+
export type InlineIconMode = typeof inlineIconModeFill | typeof inlineIconModeStroke;
|
|
18
|
+
export interface InlineIconProps extends PatternProps, SVGAttributes<SVGElement> {
|
|
19
|
+
/**
|
|
20
|
+
* Pin component's name from string to the concrete name
|
|
21
|
+
*/
|
|
22
|
+
component?: 'InlineIcon';
|
|
23
|
+
/**
|
|
24
|
+
* Icons are generally assumed to be decorative and not content-bearing.
|
|
25
|
+
* If an icon transports content, then alt text must be used to store a text for screen readers
|
|
26
|
+
*/
|
|
27
|
+
alt?: string;
|
|
28
|
+
/**
|
|
29
|
+
* This props is an workaround for the inconsistent svg
|
|
30
|
+
* Some need coloring mode fill,
|
|
31
|
+
*/
|
|
32
|
+
coloringMode?: InlineIconMode;
|
|
33
|
+
/**
|
|
34
|
+
* This props is an workaround for the inconsistent svg
|
|
35
|
+
* Some icons have a different viewbox the '0 0 192 192'
|
|
36
|
+
*/
|
|
37
|
+
viewBox?: string;
|
|
38
|
+
/**
|
|
39
|
+
* size defines the height and width of the icon
|
|
40
|
+
*/
|
|
41
|
+
size: IconSize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InlineIconMode, InlineIconProps } from './props';
|
|
2
|
+
export declare const InlineIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, Omit<InlineIconProps, "coloringMode"> & {
|
|
3
|
+
$coloringMode: InlineIconMode;
|
|
4
|
+
}>> & string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InlineIconProps } from './props';
|
|
2
|
+
export declare const iconSizes: readonly ["iconSize2xs", "iconSizeXs", "iconSizeSm", "iconSizeMd", "iconSizeLg", "iconSizeXl", "iconSize2xl", "iconSize3xl", "iconSize4xl", "iconSize5xl"];
|
|
3
|
+
export declare const coloringModes: readonly ["fill", "stroke"];
|
|
4
|
+
export declare const validateInlineIconProps: (props: unknown) => props is InlineIconProps;
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as ease_in_sine } from "../../easing-CDd2rVn6.js";
|
|
6
6
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
7
7
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
8
8
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
9
|
-
import { c as colorBorderFocus } from "../../BorderColor-
|
|
10
|
-
import { a as borderWidthFocus } from "../../BorderWidth-
|
|
11
|
-
import {
|
|
12
|
-
import { f as filterProps } from "../../filterProps-
|
|
9
|
+
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
10
|
+
import { a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
11
|
+
import { g as colorTextBrand, a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
12
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
13
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
13
14
|
const hover = {
|
|
14
15
|
textDecoration: "none",
|
|
15
16
|
color: getTextColor(colorTextBrand)
|
|
@@ -37,7 +38,28 @@ const InlineLinkStyled = styled.a.withConfig({
|
|
|
37
38
|
},
|
|
38
39
|
"&:hover": hover
|
|
39
40
|
});
|
|
41
|
+
const validateInlineLinkProps = (props) => {
|
|
42
|
+
if (!isObject(props)) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const linkProps = props;
|
|
46
|
+
if (!hasMatchingComponentName(linkProps.component, "InlineLink")) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
if (!linkProps.href || typeof linkProps.href !== "string") {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (linkProps.children === void 0) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
};
|
|
57
|
+
const isInlineLinkProps = (props) => {
|
|
58
|
+
return validateInlineLinkProps(props);
|
|
59
|
+
};
|
|
40
60
|
const InlineLink = (props) => /* @__PURE__ */ jsx(InlineLinkStyled, { ...props, children: props.children });
|
|
41
61
|
export {
|
|
42
|
-
InlineLink as default
|
|
62
|
+
InlineLink as default,
|
|
63
|
+
isInlineLinkProps,
|
|
64
|
+
validateInlineLinkProps
|
|
43
65
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,11 +5,11 @@ import FormElement from "../FormElement/index.js";
|
|
|
5
5
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
|
-
import { s as spacingMd, a as spacingXs } from "../../Spacing-
|
|
8
|
+
import { s as spacingMd, a as spacingXs } from "../../Spacing-BzNNxYMI.js";
|
|
9
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
10
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
11
11
|
import { i } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-9UD_-g7q.js";
|
|
13
13
|
const Input = forwardRef(({
|
|
14
14
|
uid,
|
|
15
15
|
status,
|
|
@@ -4,7 +4,7 @@ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTex
|
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
6
6
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
7
|
-
import { f as filterProps } from "../../filterProps-
|
|
7
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
8
8
|
const LabelStyled = styled.label.withConfig({
|
|
9
9
|
shouldForwardProp: filterProps(),
|
|
10
10
|
displayName: "LabelStyled",
|
|
@@ -3,7 +3,7 @@ import { jsx, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
4
|
import Heading from "../Heading/index.js";
|
|
5
5
|
import IconSnippet, { iconSnippetAlignCenter } from "../IconSnippet/index.js";
|
|
6
|
-
import { R as RichText } from "../../index-
|
|
6
|
+
import { R as RichText } from "../../index-nyF1sqYr.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const LegendStyled = styled.legend.withConfig({
|
|
9
9
|
displayName: "LegendStyled",
|
|
@@ -1,7 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-
|
|
3
|
+
import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-E8AZ8kiW.js";
|
|
4
4
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
|
+
import { d as iconNames } from "../../index-DEYEyjbU.js";
|
|
6
|
+
import { l as leftPosition, r as rightPosition } from "../../styled-D_wUvoV0.js";
|
|
7
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
8
|
+
const validateLinkProps = (props) => {
|
|
9
|
+
if (!isObject(props)) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
const p = props;
|
|
13
|
+
if (!hasMatchingComponentName(p.component, "Link")) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (!p.href || typeof p.href !== "string") {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (p.children === void 0) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (!p.icon) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (p.icon.name === void 0 || !iconNames.includes(p.icon.name)) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (p.icon.position === void 0 || ![leftPosition, rightPosition].includes(p.icon.position)) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
};
|
|
33
|
+
const isLinkProps = (props) => {
|
|
34
|
+
return validateLinkProps(props);
|
|
35
|
+
};
|
|
5
36
|
const isLinkAsButtonProp = (props) => {
|
|
6
37
|
return props.href === void 0;
|
|
7
38
|
};
|
|
@@ -15,5 +46,7 @@ const Link = (props) => {
|
|
|
15
46
|
] });
|
|
16
47
|
};
|
|
17
48
|
export {
|
|
18
|
-
Link as default
|
|
49
|
+
Link as default,
|
|
50
|
+
isLinkProps,
|
|
51
|
+
validateLinkProps
|
|
19
52
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { L } from "../../index-
|
|
3
|
+
import { L, i, v } from "../../index-E8AZ8kiW.js";
|
|
4
4
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
5
|
export {
|
|
6
|
-
L as default
|
|
6
|
+
L as default,
|
|
7
|
+
i as isLinkAsButtonProps,
|
|
8
|
+
v as validateLinkAsButtonProps
|
|
7
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { u as ulTagName, l as liTagName } from "../../tags-Bz98Tkqt.js";
|
|
4
|
-
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
5
3
|
import LinkListItem, { linkListItemVariantVertical, linkListItemVariantHorizontal } from "../LinkListItem/index.js";
|
|
4
|
+
import { u as ulTagName, l as liTagName } from "../../tags-CixnzWW0.js";
|
|
5
|
+
import { s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import Grid from "../Grid/index.js";
|
|
8
8
|
import GridItem from "../GridItem/index.js";
|
|
@@ -53,9 +53,9 @@ const LinkList = ({
|
|
|
53
53
|
},
|
|
54
54
|
...props
|
|
55
55
|
}) => {
|
|
56
|
-
return /* @__PURE__ */ jsx(LinkListStyled, { bottomSpacing: props.bottomSpacing, variant, tag: ulTagName, autoLayout: gridConfig, elevation: props.elevation, stretch: true, children: items.map((item, index) => {
|
|
56
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], children: /* @__PURE__ */ jsx(LinkListStyled, { bottomSpacing: props.bottomSpacing, variant, tag: ulTagName, autoLayout: gridConfig, elevation: props.elevation, stretch: true, children: items.map((item, index) => {
|
|
57
57
|
return /* @__PURE__ */ jsx(LinkListLiStyled, { tag: liTagName, variant, children: /* @__PURE__ */ jsx(LinkListItem, { ...item, orientation: variant === linkListVariantRow ? linkListItemVariantVertical : linkListItemVariantHorizontal, elevation: props.elevation, bottomSpacing: spacingNone, isLastItemInList: index === items.length - 1 }) }, item.uid);
|
|
58
|
-
}) });
|
|
58
|
+
}) }) });
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
61
|
LinkList as default,
|