@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,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import { useState } from "react";
|
|
5
4
|
import Fieldset from "../Fieldset/index.js";
|
|
5
|
+
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
6
|
+
import "../../styled-HZzB_zPP.js";
|
|
6
7
|
import styled from "styled-components";
|
|
7
|
-
import {
|
|
8
|
+
import { I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
9
|
+
import { s as screenreaderOnly } from "../../index-BI5Xlys3.js";
|
|
8
10
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
9
11
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
10
12
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
@@ -15,15 +17,15 @@ import { getHoverColor } from "../../foundations/token/getHoverColor/index.js";
|
|
|
15
17
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
16
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
17
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
18
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
19
|
-
import { b as colorBorderUnselected,
|
|
20
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
21
|
+
import { b as colorBorderUnselected, j as colorBorderSelected, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
22
|
import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
21
|
-
import { b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-
|
|
22
|
-
import { b as colorObjectSelected } from "../../ObjectColor-
|
|
23
|
-
import { a as spacingXs, b as spacingNone,
|
|
23
|
+
import { b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
24
|
+
import { b as colorObjectSelected } from "../../ObjectColor-DSUXMO7l.js";
|
|
25
|
+
import { a as spacingXs, b as spacingNone, f as spacing2Xs, c as spacingSm } from "../../Spacing-BzNNxYMI.js";
|
|
24
26
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
25
|
-
import { a as colorTextNeutral, b as colorTextInverseStatic } from "../../TextColor-
|
|
26
|
-
import { f as filterProps } from "../../filterProps-
|
|
27
|
+
import { a as colorTextNeutral, b as colorTextInverseStatic } from "../../TextColor-BXVMXUVE.js";
|
|
28
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
27
29
|
const FilterGroupStyled = styled.div.withConfig({
|
|
28
30
|
shouldForwardProp: filterProps(),
|
|
29
31
|
displayName: "FilterGroupStyled",
|
|
@@ -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, InputHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { FieldsetSharedProps } from '../Fieldset/props';
|
|
4
4
|
export interface FilterProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -3,5 +3,5 @@ export declare const FilterGroupStyled: import('styled-components/dist/types').I
|
|
|
3
3
|
export declare const FilterStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, HTMLAttributes<HTMLLabelElement> & {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
}>> & string;
|
|
6
|
-
export declare const FilterIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('
|
|
6
|
+
export declare const FilterIconStyled: 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>>;
|
|
7
7
|
export declare const FilterInputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { F as FlexStyled } from "../../styled-
|
|
4
|
-
import { e, d, c, b, f, a } from "../../styled-
|
|
3
|
+
import { F as FlexStyled } from "../../styled-DTFUPagl.js";
|
|
4
|
+
import { e, d, c, b, f, a } from "../../styled-DTFUPagl.js";
|
|
5
5
|
const Flex = ({
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { Spacing } from '../../foundations/
|
|
3
|
+
import { Spacing } from '../../foundations/types/Spacing.ts';
|
|
4
4
|
export declare const flexOrientationHorizontal = "horizontal";
|
|
5
5
|
export declare const flexOrientationVertical = "vertical";
|
|
6
6
|
export type FlexOrientation = typeof flexOrientationHorizontal | typeof flexOrientationVertical;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cloneElement } from "react";
|
|
4
|
-
import { b as spacingNone } from "../../Spacing-
|
|
4
|
+
import { b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
import { f as filterProps } from "../../filterProps-
|
|
6
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
7
7
|
const flexItemFullGrow = "full";
|
|
8
8
|
const flexItemAutoGrow = "auto";
|
|
9
9
|
const FlexItemStyled = styled.div.withConfig({
|
|
@@ -5,9 +5,9 @@ import styled, { keyframes, css } from "styled-components";
|
|
|
5
5
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
6
6
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
7
7
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
8
|
-
import { c as colorBorderFocus } from "../../BorderColor-
|
|
9
|
-
import { a as borderWidthFocus } from "../../BorderWidth-
|
|
10
|
-
import { f as filterProps } from "../../filterProps-
|
|
8
|
+
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
9
|
+
import { a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
10
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
11
11
|
const rotate = keyframes(["0%{box-shadow:transparent 0px 0px 0px 0px;}50%{box-shadow:", " 0px 0px 2px ", ";}100%{box-shadow:transparent 0px 0px 0px 0px;}}"], getBorderColor(colorBorderFocus), getBorderWidth(borderWidthFocus));
|
|
12
12
|
const FootnoteContentStyled = styled.div.withConfig({
|
|
13
13
|
shouldForwardProp: filterProps(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { S as ScreenreaderOnly } from "../../index-
|
|
3
|
+
import { S as ScreenreaderOnly } from "../../index-BI5Xlys3.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import InlineLink from "../InlineLink/index.js";
|
|
6
6
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f as spacing2Xs } from "../../Spacing-BzNNxYMI.js";
|
|
8
8
|
const FootnoteLinkStyled = styled(InlineLink).withConfig({
|
|
9
9
|
displayName: "FootnoteLinkStyled",
|
|
10
10
|
componentId: "sc-ydos3j-0"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { b as spacingNone } from "../../Spacing-
|
|
3
|
+
import { b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
6
|
-
import { f as filterProps } from "../../filterProps-
|
|
6
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
7
7
|
const FormStyled = styled.form.withConfig({
|
|
8
8
|
shouldForwardProp: filterProps(),
|
|
9
9
|
displayName: "FormStyled",
|
|
@@ -5,7 +5,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
|
5
5
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
6
6
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
7
7
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
8
|
-
import { f as filterProps } from "../../filterProps-
|
|
8
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
9
9
|
const FormElementStyled = styled.div.withConfig({
|
|
10
10
|
shouldForwardProp: filterProps(),
|
|
11
11
|
displayName: "FormElementStyled",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { a as spacingXs, b as spacingNone } from "../../Spacing-
|
|
3
|
+
import { a as spacingXs, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
4
4
|
import { a as textBodySm } from "../../TextBodySize-BcZR9mh2.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import Body from "../Body/index.js";
|
|
7
7
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
8
8
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { f as colorTextCritical } from "../../TextColor-BXVMXUVE.js";
|
|
10
10
|
const FormHelperMessageStyled = styled(Body).withConfig({
|
|
11
11
|
displayName: "FormHelperMessageStyled",
|
|
12
12
|
componentId: "sc-cxtjnu-0"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
4
|
+
import "../../styled-HZzB_zPP.js";
|
|
4
5
|
import styled from "styled-components";
|
|
6
|
+
import { I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
5
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
6
8
|
import { getIconColor } from "../../foundations/token/getIconColor/index.js";
|
|
7
9
|
import { c as colorIconSuccess, a as colorIconCritical } from "../../IconColor-CtC9WUgr.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IconLoaderProps } from '
|
|
1
|
+
import { IconLoaderProps } from '../IconLoader';
|
|
2
2
|
import { FormHelperStatusIconProps } from './props';
|
|
3
3
|
export declare const FormHelperStatusIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<IconLoaderProps, IconLoaderProps & FormHelperStatusIconProps>> & string & Omit<import('react').FC<IconLoaderProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMap, APIProvider, Map } from "@vis.gl/react-google-maps";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
|
-
import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
6
|
-
import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
|
|
7
5
|
import ConsentMessage from "../ConsentMessage/index.js";
|
|
6
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
7
|
+
import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
|
|
8
8
|
import styled from "styled-components";
|
|
9
9
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
10
10
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
11
11
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
12
12
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
13
13
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { f as colorBorderSubtle } from "../../BorderColor-CYdSW9dg.js";
|
|
15
15
|
import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
16
|
-
import {
|
|
16
|
+
import { d as borderWidthSm } from "../../BorderWidth-CTOda7Cp.js";
|
|
17
17
|
import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
|
|
18
|
-
import { f as filterProps } from "../../filterProps-
|
|
18
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
19
19
|
const MapInner = ({
|
|
20
20
|
setMap,
|
|
21
21
|
children
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { l as liTagName, d as divTagName } from "../../tags-
|
|
4
|
-
import { s as spacingMd } from "../../Spacing-
|
|
3
|
+
import { l as liTagName, d as divTagName, u as ulTagName, o as olTagName } from "../../tags-CixnzWW0.js";
|
|
4
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
5
5
|
import { Children, cloneElement } from "react";
|
|
6
|
-
import { G as GridStyled } from "../../styled-
|
|
6
|
+
import { G as GridStyled } from "../../styled-DrQft35m.js";
|
|
7
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
8
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
7
9
|
const autoLayout = (props) => {
|
|
8
10
|
if (!props.autoLayout) {
|
|
9
11
|
return props.children;
|
|
@@ -27,6 +29,34 @@ const inheritTagandSpacingToGridItems = (gridItems, tag, spacing) => {
|
|
|
27
29
|
spacing
|
|
28
30
|
}));
|
|
29
31
|
};
|
|
32
|
+
const gridTags = [divTagName, ulTagName, olTagName];
|
|
33
|
+
const gridAligns = ["left", "center", "right"];
|
|
34
|
+
const gridSpacings = ["None", "Md"];
|
|
35
|
+
const validateGridProps = (props) => {
|
|
36
|
+
if (!isObject(props)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const gridProps = props;
|
|
40
|
+
if (!hasMatchingComponentName(gridProps.component, "Grid")) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (gridProps.align !== void 0 && !gridAligns.includes(gridProps.align)) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (gridProps.tag !== void 0 && !gridTags.includes(gridProps.tag)) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
if (gridProps.spacing !== void 0 && !gridSpacings.includes(gridProps.spacing)) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (gridProps.bottomSpacing && !isBottomSpacing(gridProps.bottomSpacing)) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
};
|
|
57
|
+
const isGridProps = (props) => {
|
|
58
|
+
return validateGridProps(props);
|
|
59
|
+
};
|
|
30
60
|
const Grid = ({
|
|
31
61
|
tag = divTagName,
|
|
32
62
|
spacing = spacingMd,
|
|
@@ -35,5 +65,10 @@ const Grid = ({
|
|
|
35
65
|
return /* @__PURE__ */ jsx(GridStyled, { ...props, as: tag, spacing, children: inheritTagandSpacingToGridItems(autoLayout(props), tag, spacing) });
|
|
36
66
|
};
|
|
37
67
|
export {
|
|
38
|
-
Grid as default
|
|
68
|
+
Grid as default,
|
|
69
|
+
gridAligns,
|
|
70
|
+
gridSpacings,
|
|
71
|
+
gridTags,
|
|
72
|
+
isGridProps,
|
|
73
|
+
validateGridProps
|
|
39
74
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { divTagName, olTagName, ulTagName } from '../../foundations/tags';
|
|
4
|
-
import { Spacing } from '../../foundations/token/types/Spacing';
|
|
5
|
-
import { ViewportName } from '../../foundations/token/types/Viewport';
|
|
6
2
|
import { GridItemProps } from '../GridItem/props';
|
|
3
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
+
import { articleTagName, asideTagName, divTagName, mainTagName, navTagName, olTagName, sectionTagName, ulTagName } from '../../foundations/tags';
|
|
5
|
+
import { Spacing } from '../../foundations/types/Spacing';
|
|
6
|
+
import { ViewportName } from '../../foundations/types/Viewport';
|
|
7
7
|
export type GridColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
8
|
-
export type GridTag = typeof divTagName | typeof ulTagName | typeof olTagName;
|
|
8
|
+
export type GridTag = typeof divTagName | typeof ulTagName | typeof olTagName | typeof navTagName | typeof mainTagName | typeof sectionTagName | typeof asideTagName | typeof articleTagName;
|
|
9
9
|
export type GridSpacing = Extract<Spacing, 'None' | 'Md'>;
|
|
10
10
|
/**
|
|
11
11
|
* type GridConfig defines an object that can contain colspans
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridProps } from './props';
|
|
2
|
+
export declare const gridTags: readonly ["div", "ul", "ol"];
|
|
3
|
+
export declare const gridAligns: readonly ["left", "center", "right"];
|
|
4
|
+
export declare const gridSpacings: readonly ["None", "Md"];
|
|
5
|
+
export declare const validateGridProps: (props: unknown) => props is GridProps;
|
|
6
|
+
export declare const isGridProps: (props: unknown) => props is GridProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { d as divTagName } from "../../tags-
|
|
4
|
-
import { G as GridItemStyled } from "../../styled-
|
|
3
|
+
import { d as divTagName, l as liTagName } from "../../tags-CixnzWW0.js";
|
|
4
|
+
import { G as GridItemStyled } from "../../styled-oOq50bDL.js";
|
|
5
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
6
|
+
const gridItemTags = [divTagName, liTagName];
|
|
7
|
+
const gridItemAligns = ["left", "center", "right"];
|
|
8
|
+
const validateGridItemProps = (props) => {
|
|
9
|
+
if (!isObject(props)) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
const itemProps = props;
|
|
13
|
+
if (!hasMatchingComponentName(itemProps.component, "GridItem")) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (itemProps.align !== void 0 && !gridItemAligns.includes(itemProps.align)) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (itemProps.tag !== void 0 && !gridItemTags.includes(itemProps.tag)) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (itemProps.children === void 0) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
};
|
|
27
|
+
const isGridItemProps = (props) => {
|
|
28
|
+
return validateGridItemProps(props);
|
|
29
|
+
};
|
|
5
30
|
const GridItem = ({
|
|
6
31
|
sm = 12,
|
|
7
32
|
tag = divTagName,
|
|
8
33
|
...props
|
|
9
34
|
}) => /* @__PURE__ */ jsx(GridItemStyled, { ...props, as: tag, sm, children: props.children });
|
|
10
35
|
export {
|
|
11
|
-
GridItem as default
|
|
36
|
+
GridItem as default,
|
|
37
|
+
gridItemAligns,
|
|
38
|
+
gridItemTags,
|
|
39
|
+
isGridItemProps,
|
|
40
|
+
validateGridItemProps
|
|
12
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { GridConfig, GridProps } from '../Grid/props';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
-
import { divTagName, liTagName } from '../../foundations/tags';
|
|
5
|
-
export type GridItemTag = typeof divTagName | typeof liTagName;
|
|
4
|
+
import { articleTagName, asideTagName, divTagName, liTagName, mainTagName, navTagName, sectionTagName } from '../../foundations/tags';
|
|
5
|
+
export type GridItemTag = typeof divTagName | typeof liTagName | typeof navTagName | typeof mainTagName | typeof sectionTagName | typeof asideTagName | typeof articleTagName;
|
|
6
6
|
export type GridItemAlign = 'left' | 'center' | 'right';
|
|
7
7
|
export interface GridItemProps extends GridConfig, Omit<PatternProps, 'bottomSpacing'>, Pick<GridProps, 'spacing'>, HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
children: ReactNode;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GridItemProps } from './props';
|
|
2
|
+
export declare const gridItemTags: readonly ["div", "li"];
|
|
3
|
+
export declare const gridItemAligns: readonly ["left", "center", "right"];
|
|
4
|
+
export declare const validateGridItemProps: (props: unknown) => props is GridItemProps;
|
|
5
|
+
export declare const isGridItemProps: (props: unknown) => props is GridItemProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import FootnoteLink from "../FootnoteLink/index.js";
|
|
4
|
-
import { a as spacingXs, c as spacingSm, s as spacingMd,
|
|
4
|
+
import { a as spacingXs, c as spacingSm, s as spacingMd, h as spacingLg, d as spacingXl } from "../../Spacing-BzNNxYMI.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { h as h5TagName,
|
|
7
|
+
import { h as h5TagName, e as h4TagName, f as h3TagName, g as h2TagName, i as h1TagName, j as h6TagName, d as divTagName, c as spanTagName, p as pTagName } from "../../tags-CixnzWW0.js";
|
|
8
8
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
9
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
10
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
11
11
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import { a as colorTextNeutral } from "../../TextColor-
|
|
14
|
-
import { f as filterProps } from "../../filterProps-
|
|
12
|
+
import { a as fontWeightBold, b as fontWeightLight, f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
13
|
+
import { a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
14
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
15
|
+
import { c as textHeadingXl, d as textHeadingLg, a as textHeadingMd, b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-BoyxJlpz.js";
|
|
16
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
17
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
15
18
|
const headingAlignLeft = "left";
|
|
16
19
|
const headingAlignCenter = "center";
|
|
17
20
|
const mapHeadingSizeToFontWeight = {
|
|
@@ -38,13 +41,6 @@ const mapSizeToBottomSpacing = {
|
|
|
38
41
|
const attributes = (props) => {
|
|
39
42
|
const attrs = {};
|
|
40
43
|
attrs.as = props.tag ? props.tag : mapSizeToTag[props.size];
|
|
41
|
-
if (attrs.as && false === headingHtmlTags.includes(attrs.as)) {
|
|
42
|
-
attrs.role = "heading";
|
|
43
|
-
if (!props["aria-level"]) {
|
|
44
|
-
const level = parseInt(mapSizeToTag[props.size].replace("h", ""));
|
|
45
|
-
attrs["aria-level"] = level;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
44
|
return attrs;
|
|
49
45
|
};
|
|
50
46
|
const HeadingStyled = styled.h1.withConfig({
|
|
@@ -80,6 +76,41 @@ const HeadingStyled = styled.h1.withConfig({
|
|
|
80
76
|
bottomSpacing: mapSizeToBottomSpacing[size]
|
|
81
77
|
});
|
|
82
78
|
});
|
|
79
|
+
const headingSizes = [textHeadingXl, textHeadingLg, textHeadingMd, textHeadingSm, textHeadingXs];
|
|
80
|
+
const headlingAligns = ["left", "center"];
|
|
81
|
+
const headingTags = [h1TagName, h2TagName, h3TagName, h4TagName, h5TagName, h6TagName, divTagName, spanTagName, pTagName];
|
|
82
|
+
const headingWeights = [fontWeightLight, fontWeightRegular, fontWeightBold];
|
|
83
|
+
const validateHeadingProps = (props) => {
|
|
84
|
+
if (!isObject(props)) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
const headingProps = props;
|
|
88
|
+
if (!hasMatchingComponentName(headingProps.component, "Heading")) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (!headingProps.size || !headingSizes.includes(headingProps.size)) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (headingProps.tag !== void 0 && !headingTags.includes(headingProps.tag)) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
if (headingProps.weight !== void 0 && !headingWeights.includes(headingProps.weight)) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
if (headingProps.align !== void 0 && !headlingAligns.includes(headingProps.align)) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (headingProps.children === void 0) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (headingProps.bottomSpacing && !isBottomSpacing(headingProps.bottomSpacing)) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
};
|
|
111
|
+
const isHeadingProps = (props) => {
|
|
112
|
+
return validateHeadingProps(props);
|
|
113
|
+
};
|
|
83
114
|
const Heading = ({
|
|
84
115
|
bottomSpacing = spacingMd,
|
|
85
116
|
...props
|
|
@@ -90,5 +121,11 @@ const Heading = ({
|
|
|
90
121
|
export {
|
|
91
122
|
Heading as default,
|
|
92
123
|
headingAlignCenter,
|
|
93
|
-
headingAlignLeft
|
|
124
|
+
headingAlignLeft,
|
|
125
|
+
headingSizes,
|
|
126
|
+
headingTags,
|
|
127
|
+
headingWeights,
|
|
128
|
+
headlingAligns,
|
|
129
|
+
isHeadingProps,
|
|
130
|
+
validateHeadingProps
|
|
94
131
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { FootnoteLinkProps } from '../FootnoteLink/props';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
-
import {
|
|
5
|
-
import { FontWeight } from '../../foundations/
|
|
6
|
-
import { TextHeadingSize } from '../../foundations/
|
|
7
|
-
import { Theme } from '../../foundations/types/Theme';
|
|
4
|
+
import { divTagName, HeadingHtmlTag, pTagName, spanTagName } from '../../foundations/tags';
|
|
5
|
+
import { FontWeight } from '../../foundations/types/FontWeight.ts';
|
|
6
|
+
import { TextHeadingSize } from '../../foundations/types/HeadingSize.ts';
|
|
8
7
|
export type HeadingTag = HeadingHtmlTag | typeof divTagName | typeof spanTagName | typeof pTagName;
|
|
9
8
|
export declare const headingAlignLeft = "left";
|
|
10
9
|
export declare const headingAlignCenter = "center";
|
|
11
|
-
type HeadingAlign = typeof headingAlignLeft | typeof headingAlignCenter;
|
|
10
|
+
export type HeadingAlign = typeof headingAlignLeft | typeof headingAlignCenter;
|
|
12
11
|
export interface HeadingProps extends PatternProps, HTMLAttributes<HTMLHeadingElement> {
|
|
13
12
|
/**
|
|
14
|
-
* heading tshirt size between xs and
|
|
13
|
+
* heading tshirt size between xs and xl
|
|
15
14
|
*/
|
|
16
15
|
size: TextHeadingSize;
|
|
17
16
|
/**
|
|
@@ -28,10 +27,6 @@ export interface HeadingProps extends PatternProps, HTMLAttributes<HTMLHeadingEl
|
|
|
28
27
|
* Align left or center
|
|
29
28
|
*/
|
|
30
29
|
align?: HeadingAlign;
|
|
31
|
-
/**
|
|
32
|
-
* Can be used on darker backgrounds by setting to 'dark'
|
|
33
|
-
*/
|
|
34
|
-
theme?: Theme;
|
|
35
30
|
/**
|
|
36
31
|
* Content of heading
|
|
37
32
|
*/
|
|
@@ -43,4 +38,3 @@ export interface HeadingProps extends PatternProps, HTMLAttributes<HTMLHeadingEl
|
|
|
43
38
|
/** Pin component's name from string to the concrete name */
|
|
44
39
|
component?: 'Heading';
|
|
45
40
|
}
|
|
46
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { FontWeight } from '../../foundations/
|
|
3
|
-
import { TextHeadingSize } from '../../foundations/
|
|
2
|
+
import { FontWeight } from '../../foundations/types/FontWeight.ts';
|
|
3
|
+
import { TextHeadingSize } from '../../foundations/types/HeadingSize.ts';
|
|
4
4
|
import { HeadingProps } from './props';
|
|
5
5
|
export declare const mapHeadingSizeToFontWeight: {
|
|
6
6
|
[key in TextHeadingSize]: FontWeight;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FontWeight } from '../../foundations/types/FontWeight';
|
|
2
|
+
import { TextHeadingSize } from '../../foundations/types/HeadingSize';
|
|
3
|
+
import { HeadingAlign, HeadingProps, HeadingTag } from './props';
|
|
4
|
+
export declare const headingSizes: TextHeadingSize[];
|
|
5
|
+
export declare const headlingAligns: HeadingAlign[];
|
|
6
|
+
export declare const headingTags: HeadingTag[];
|
|
7
|
+
export declare const headingWeights: FontWeight[];
|
|
8
|
+
export declare const validateHeadingProps: (props: unknown) => boolean;
|
|
9
|
+
export declare const isHeadingProps: (props: unknown) => props is HeadingProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
5
|
-
import { s as spacingMd } from "../../Spacing-
|
|
6
|
-
import { f as filterProps } from "../../filterProps-
|
|
5
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
6
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
7
7
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
8
8
|
const IconStyled = styled.img.withConfig({
|
|
9
9
|
shouldForwardProp: filterProps(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { iconSize6xl, iconSize7xl, iconSize8xl, iconSize9xl } from '../Icon';
|
|
3
|
+
import { iconSize5xl } from '../InlineIcon';
|
|
3
4
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
5
|
export type HifiIconSize = typeof iconSize5xl | typeof iconSize6xl | typeof iconSize7xl | typeof iconSize8xl | typeof iconSize9xl;
|
|
5
6
|
export interface HifiIconProps extends PatternProps, ImgHTMLAttributes<HTMLImageElement> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconLoaderProps } from '@vfde-react/inline-icon-library';
|
|
2
1
|
import { FC } from 'react';
|
|
2
|
+
import { HifiIconProps } from '../HifiIcon';
|
|
3
|
+
import { IconLoaderProps } from '../IconLoader';
|
|
3
4
|
import { IconProps } from './props';
|
|
4
|
-
import { HifiIconProps } from '../HifiIcon/props';
|
|
5
5
|
/**
|
|
6
6
|
* The Icon component exposes the three options to render an icon:
|
|
7
7
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import HifiIcon from "../HifiIcon/index.js";
|
|
5
|
-
|
|
4
|
+
import { I as IconLoader } from "../../index-DEYEyjbU.js";
|
|
6
5
|
const iconSize6xl = "iconSize6xl";
|
|
7
6
|
const iconSize7xl = "iconSize7xl";
|
|
8
7
|
const iconSize8xl = "iconSize8xl";
|
|
@@ -30,7 +29,6 @@ const Icon = (props) => {
|
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
31
|
Icon as default,
|
|
33
|
-
iconSize5xl,
|
|
34
32
|
iconSize6xl,
|
|
35
33
|
iconSize7xl,
|
|
36
34
|
iconSize8xl,
|