@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,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-CN-gxxgB.js";
|
|
4
|
+
import { c, a, b, f, e, d } from "../../index-CN-gxxgB.js";
|
|
3
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as ButtonStyled } from "../../styled-DLS1p_AJ.js";
|
|
6
|
-
const buttonFullWidth = "full";
|
|
7
|
-
const buttonAutoWidth = "auto";
|
|
6
|
+
import { B as ButtonStyled } from "../../styled-D_wUvoV0.js";
|
|
8
7
|
const isButtonAsLinkProp = (props) => {
|
|
9
8
|
return props.href !== void 0;
|
|
10
9
|
};
|
|
@@ -18,7 +17,11 @@ const Button = (props) => {
|
|
|
18
17
|
] });
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
c as buttonAppearances,
|
|
21
|
+
a as buttonAutoWidth,
|
|
22
|
+
b as buttonFullWidth,
|
|
23
|
+
f as buttonWidthBehaviors,
|
|
24
|
+
Button as default,
|
|
25
|
+
e as isButtonProps,
|
|
26
|
+
d as validateButtonProps
|
|
24
27
|
};
|
|
@@ -2,7 +2,6 @@ import { ButtonHTMLAttributes } from 'react';
|
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
3
|
import { ButtonAppearances } from '../../foundations/types/ButtonAppearances';
|
|
4
4
|
import { default as PositionedIconInterface } from '../../foundations/types/PositionedIconInterface';
|
|
5
|
-
import { Theme } from '../../foundations/types/Theme';
|
|
6
5
|
export declare const buttonFullWidth = "full";
|
|
7
6
|
export declare const buttonAutoWidth = "auto";
|
|
8
7
|
export type ButtonWidthBehavior = typeof buttonFullWidth | typeof buttonAutoWidth;
|
|
@@ -11,10 +10,6 @@ export interface ButtonSharedProps {
|
|
|
11
10
|
* Supports different button appearances
|
|
12
11
|
*/
|
|
13
12
|
appearance?: ButtonAppearances;
|
|
14
|
-
/**
|
|
15
|
-
* Can be used on darker backgrounds by setting to 'dark'
|
|
16
|
-
*/
|
|
17
|
-
theme?: Theme;
|
|
18
13
|
/**
|
|
19
14
|
* Supports different width behaviors
|
|
20
15
|
*/
|
|
@@ -6,5 +6,5 @@ import { ButtonProps } from './props';
|
|
|
6
6
|
* base & alias tokens for now, but just keep it here
|
|
7
7
|
*/
|
|
8
8
|
export declare const buttonHeight = "44px";
|
|
9
|
-
export declare const ButtonIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('
|
|
9
|
+
export declare const ButtonIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../IconLoader').IconLoaderProps, SvgInlineIconFactoryPropsWithPosition>> & string & Omit<import('react').FC<import('../IconLoader').IconLoaderProps>, keyof import('react').Component<any, {}, any>>;
|
|
10
10
|
export declare const ButtonStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonAppearances } from '../../foundations/types/ButtonAppearances.ts';
|
|
2
|
+
import { ButtonProps } from './props';
|
|
3
|
+
export declare const buttonAppearances: ButtonAppearances;
|
|
4
|
+
export declare const buttonWidthBehaviors: readonly ["full", "auto"];
|
|
5
|
+
export declare const validateButtonProps: (props: unknown) => props is ButtonProps;
|
|
6
|
+
export declare const isButtonProps: (props: unknown) => props is ButtonProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { B } from "../../index-
|
|
3
|
+
import { h, B, i, v } from "../../index-CN-gxxgB.js";
|
|
4
4
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
|
+
import "../../styled-DwtGn2if.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
h as buttonWidthBehaviors,
|
|
8
|
+
B as default,
|
|
9
|
+
i as isButtonAsLinkProps,
|
|
10
|
+
v as validateButtonAsLinkProps
|
|
7
11
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ButtonAsLinkProps } from './props';
|
|
2
|
+
export declare const buttonWidthBehaviors: readonly ["full", "auto"];
|
|
3
|
+
export declare const validateButtonAsLinkProps: (props: unknown) => props is ButtonAsLinkProps;
|
|
4
|
+
export declare const isButtonAsLinkProps: (props: unknown) => props is ButtonAsLinkProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import Button from "../Button/index.js";
|
|
4
4
|
import Flex from "../Flex/index.js";
|
|
5
|
-
import { f as flexOrientationHorizontal,
|
|
5
|
+
import { b as flexJustifyStart, c as flexJustifyEnd, d as flexJustifyCenter, e as flexJustifyBetween, f as flexOrientationHorizontal, a as flexOrientationVertical } from "../../styled-DTFUPagl.js";
|
|
6
6
|
import FlexItem from "../FlexItem/index.js";
|
|
7
|
-
import { c as spacingSm, s as spacingMd } from "../../Spacing-
|
|
7
|
+
import { c as spacingSm, s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
8
8
|
import { u as useViewport } from "../../index-Cs0Hw0dj.js";
|
|
9
|
+
import { d as validateButtonProps, v as validateButtonAsLinkProps } from "../../index-CN-gxxgB.js";
|
|
10
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
11
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
12
|
+
const flexJustifyBehaviors = [flexJustifyStart, flexJustifyEnd, flexJustifyCenter, flexJustifyBetween];
|
|
13
|
+
const flexOrientations = [flexOrientationHorizontal, flexOrientationVertical];
|
|
14
|
+
const validateButtonGroupProps = (props) => {
|
|
15
|
+
if (!isObject(props)) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
const buttonGroupProps = props;
|
|
19
|
+
if (!hasMatchingComponentName(buttonGroupProps.component, "ButtonGroup")) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (!Array.isArray(buttonGroupProps.buttons) || buttonGroupProps.buttons.length === 0) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
for (const button of buttonGroupProps.buttons) {
|
|
26
|
+
const isValidButton = validateButtonProps(button);
|
|
27
|
+
const isValidButtonAsLink = validateButtonAsLinkProps(button);
|
|
28
|
+
if (!isValidButton && !isValidButtonAsLink) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (buttonGroupProps.justifyHorizontal !== void 0 && !flexJustifyBehaviors.includes(buttonGroupProps.justifyHorizontal)) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
if (buttonGroupProps.orientation !== void 0 && !flexOrientations.includes(buttonGroupProps.orientation)) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
if (buttonGroupProps.isReversed !== void 0 && typeof buttonGroupProps.isReversed !== "boolean") {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
if (buttonGroupProps.bottomSpacing && !isBottomSpacing(buttonGroupProps.bottomSpacing)) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
};
|
|
46
|
+
const isButtonGroupProps = (props) => {
|
|
47
|
+
return validateButtonGroupProps(props);
|
|
48
|
+
};
|
|
9
49
|
const renderButtons = (buttons, isMobile, isReversed = false) => {
|
|
10
50
|
if (!isMobile && isReversed) {
|
|
11
51
|
buttons = buttons.slice().reverse();
|
|
12
52
|
}
|
|
13
53
|
return buttons.map((button) => {
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
+
return /* @__PURE__ */ jsx(FlexItem, { as: "li", grow: isMobile ? "auto" : void 0, bottomSpacing: "None", children: /* @__PURE__ */ jsx(Button, { ...button, bottomSpacing: "None", width: isMobile ? "full" : button.width, children: button.children }, button.uid) }, button.uid);
|
|
15
55
|
});
|
|
16
56
|
};
|
|
17
57
|
const ButtonGroup = ({
|
|
@@ -30,5 +70,9 @@ const ButtonGroup = ({
|
|
|
30
70
|
return /* @__PURE__ */ jsx(Flex, { className: props.className, bottomSpacing, gapSpacing: spacingSm, justify, orientation: "sm" === viewport ? "vertical" : orientation, as: "ul", children: renderButtons(buttons, "sm" === viewport, isReversed) });
|
|
31
71
|
};
|
|
32
72
|
export {
|
|
33
|
-
ButtonGroup as default
|
|
73
|
+
ButtonGroup as default,
|
|
74
|
+
flexJustifyBehaviors,
|
|
75
|
+
flexOrientations,
|
|
76
|
+
isButtonGroupProps,
|
|
77
|
+
validateButtonGroupProps
|
|
34
78
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FlexJustifyBehavior, FlexOrientation } from '../Flex/props';
|
|
2
|
+
import { ButtonGroupProps } from './props';
|
|
3
|
+
export declare const flexJustifyBehaviors: FlexJustifyBehavior[];
|
|
4
|
+
export declare const flexOrientations: FlexOrientation[];
|
|
5
|
+
export declare const validateButtonGroupProps: (props: unknown) => props is ButtonGroupProps;
|
|
6
|
+
export declare const isButtonGroupProps: (props: unknown) => props is ButtonGroupProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { d as divTagName } from "../../tags-
|
|
4
|
-
import { a as CardStyled } from "../../styled-
|
|
5
|
-
import { C } from "../../styled-
|
|
3
|
+
import { d as divTagName, s as sectionTagName, a as articleTagName, b as asideTagName, c as spanTagName } from "../../tags-CixnzWW0.js";
|
|
4
|
+
import { a as CardStyled } from "../../styled-8Td4Oj0t.js";
|
|
5
|
+
import { C } from "../../styled-8Td4Oj0t.js";
|
|
6
|
+
const cardAppearances = ["primary", "secondary"];
|
|
7
|
+
const cardTags = [divTagName, sectionTagName, articleTagName, asideTagName, spanTagName];
|
|
8
|
+
const validateCardProps = (props) => {
|
|
9
|
+
if (!props || typeof props !== "object") {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
const cardProps = props;
|
|
13
|
+
if (!cardProps.component || cardProps.component !== "Card") {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (cardProps.appearance !== void 0 && !cardAppearances.includes(cardProps.appearance)) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (cardProps.isMobileDark !== void 0 && typeof cardProps.isMobileDark !== "boolean") {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (cardProps.tag !== void 0 && !cardTags.includes(cardProps.tag)) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (cardProps.children === void 0) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
};
|
|
30
|
+
const isCardProps = (props) => {
|
|
31
|
+
return validateCardProps(props);
|
|
32
|
+
};
|
|
6
33
|
const Card = ({
|
|
7
34
|
children,
|
|
8
35
|
className,
|
|
@@ -14,5 +41,9 @@ const Card = ({
|
|
|
14
41
|
}) => /* @__PURE__ */ jsx(CardStyled, { ...props, className: (className ? className : "") + (isMobileDark ? " DarkMobile" : "") + ("Dark" === theme || "secondary" === appearance ? " Dark" : ""), appearance, as: tag, children });
|
|
15
42
|
export {
|
|
16
43
|
C as CardAppearanceColor,
|
|
17
|
-
|
|
44
|
+
cardAppearances,
|
|
45
|
+
cardTags,
|
|
46
|
+
Card as default,
|
|
47
|
+
isCardProps,
|
|
48
|
+
validateCardProps
|
|
18
49
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { articleTagName, asideTagName, divTagName, sectionTagName, spanTagName } from '../../foundations/tags';
|
|
4
|
-
import { BackgroundColor } from '../../foundations/
|
|
3
|
+
import { articleTagName, asideTagName, divTagName, mainTagName, navTagName, sectionTagName, spanTagName } from '../../foundations/tags';
|
|
4
|
+
import { BackgroundColor } from '../../foundations/types/BackgroundColor.ts';
|
|
5
5
|
import { Theme } from '../../foundations/types/Theme';
|
|
6
6
|
export type CardAppearance = 'primary' | 'secondary';
|
|
7
7
|
export declare const CardAppearanceColor: Record<CardAppearance, BackgroundColor>;
|
|
8
|
-
export type CardTag = typeof divTagName | typeof sectionTagName | typeof articleTagName | typeof asideTagName | typeof spanTagName;
|
|
8
|
+
export type CardTag = typeof divTagName | typeof sectionTagName | typeof articleTagName | typeof asideTagName | typeof spanTagName | typeof navTagName | typeof mainTagName;
|
|
9
9
|
export interface CardProps extends PatternProps, HTMLAttributes<HTMLElement> {
|
|
10
10
|
/**
|
|
11
11
|
* Card item content
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CardAppearance, CardProps, CardTag } from './props';
|
|
2
|
+
export declare const cardAppearances: CardAppearance[];
|
|
3
|
+
export declare const cardTags: CardTag[];
|
|
4
|
+
export declare const validateCardProps: (props: unknown) => boolean;
|
|
5
|
+
export declare const isCardProps: (props: unknown) => props is CardProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,5 +3,3 @@ import { CarouselProps } from '../props';
|
|
|
3
3
|
type CarouselNavigationProps = Pick<CarouselProps, 'uid' | 'screenReaderInstruction' | 'prevAriaLabel' | 'nextAriaLabel'>;
|
|
4
4
|
declare const CarouselNavigation: FC<CarouselNavigationProps>;
|
|
5
5
|
export default CarouselNavigation;
|
|
6
|
-
export * from '../props';
|
|
7
|
-
export * from '../styled';
|
|
@@ -3,22 +3,22 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import "@af-utils/scrollend-polyfill";
|
|
4
4
|
import { createContext, useRef, useState, useEffect, useContext, createElement } from "react";
|
|
5
5
|
import { useFocusWithin } from "../../hooks/useFocusWithin/index.js";
|
|
6
|
-
import { l as liTagName, u as ulTagName } from "../../tags-
|
|
7
|
-
import { s as spacingMd } from "../../Spacing-
|
|
6
|
+
import { l as liTagName, u as ulTagName } from "../../tags-CixnzWW0.js";
|
|
7
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
8
8
|
import styled from "styled-components";
|
|
9
|
-
import { a as CardStyled } from "../../styled-
|
|
10
|
-
import { G as GridStyled } from "../../styled-
|
|
11
|
-
import { G as GridItemStyled } from "../../styled-
|
|
9
|
+
import { a as CardStyled } from "../../styled-8Td4Oj0t.js";
|
|
10
|
+
import { G as GridStyled } from "../../styled-DrQft35m.js";
|
|
11
|
+
import { G as GridItemStyled } from "../../styled-oOq50bDL.js";
|
|
12
12
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
13
13
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
14
14
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
15
15
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
16
16
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
17
17
|
import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
18
|
-
import { c as colorObjectBrand, d as colorObjectUnselected } from "../../ObjectColor-
|
|
19
|
-
import { f as filterProps } from "../../filterProps-
|
|
18
|
+
import { c as colorObjectBrand, d as colorObjectUnselected } from "../../ObjectColor-DSUXMO7l.js";
|
|
19
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
20
20
|
import IconButton from "../IconButton/index.js";
|
|
21
|
-
import { S as ScreenreaderOnly } from "../../index-
|
|
21
|
+
import { S as ScreenreaderOnly } from "../../index-BI5Xlys3.js";
|
|
22
22
|
const getItems = (items, loop) => {
|
|
23
23
|
const normalizedItems = [...items].map((item, index) => ({
|
|
24
24
|
...item,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { N as NotificationErrorIcon } from "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
5
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
6
|
+
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
7
|
+
import "../../styled-HZzB_zPP.js";
|
|
6
8
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
7
9
|
import styled from "styled-components";
|
|
8
10
|
import Label from "../Label/index.js";
|
|
@@ -16,12 +18,12 @@ import { getIconColor } from "../../foundations/token/getIconColor/index.js";
|
|
|
16
18
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
17
19
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
18
20
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
|
-
import { c as colorBorderFocus } from "../../BorderColor-
|
|
21
|
+
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
22
|
import { d as borderRadiusSm } from "../../BorderRadius-ClUShVLu.js";
|
|
21
|
-
import { a as borderWidthFocus } from "../../BorderWidth-
|
|
23
|
+
import { a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
22
24
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
|
-
import { s as spacingMd } from "../../Spacing-
|
|
24
|
-
import { f as filterProps } from "../../filterProps-
|
|
25
|
+
import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
|
|
26
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
25
27
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
26
28
|
const CheckboxLabelStyled = styled(Label).withConfig({
|
|
27
29
|
shouldForwardProp: filterProps(),
|
|
@@ -3,12 +3,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect, createElement } from "react";
|
|
4
4
|
import Checkbox from "../Checkbox/index.js";
|
|
5
5
|
import Fieldset from "../Fieldset/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { h as spacingLg, s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
|
-
import { F as FlexStyled } from "../../styled-
|
|
8
|
+
import { F as FlexStyled } from "../../styled-DTFUPagl.js";
|
|
9
9
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
10
10
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
11
|
-
import { f as filterProps } from "../../filterProps-
|
|
11
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
12
12
|
const CheckboxGroupStyled = styled(FlexStyled).withConfig({
|
|
13
13
|
shouldForwardProp: filterProps(),
|
|
14
14
|
displayName: "CheckboxGroupStyled",
|
|
@@ -3,12 +3,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef, useEffect } from "react";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { noReducedMotion } from "../../foundations/media-query/reducedMotion/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { e as ease_in_out_sine } from "../../easing-CDd2rVn6.js";
|
|
7
7
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
8
8
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
9
|
-
import { a as borderWidthFocus } from "../../BorderWidth-
|
|
10
|
-
import { b as spacingNone } from "../../Spacing-
|
|
11
|
-
import { f as filterProps } from "../../filterProps-
|
|
9
|
+
import { a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
|
|
10
|
+
import { b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
11
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
12
12
|
const CollapsibleStyled = styled.div.withConfig({
|
|
13
13
|
shouldForwardProp: filterProps(),
|
|
14
14
|
displayName: "CollapsibleStyled",
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { g as getComputedBackgroundColor, p as parseColorToRgbObject, a as getContrastRatio } from "../../colorUtils-
|
|
5
|
-
import { iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
|
|
4
|
+
import { g as getComputedBackgroundColor, p as parseColorToRgbObject, a as getContrastRatio } from "../../colorUtils-t7G6Q5ev.js";
|
|
6
5
|
import styled from "styled-components";
|
|
6
|
+
import { c as iconSizeMd } from "../../props-7dcsjRUx.js";
|
|
7
|
+
import "../../styled-HZzB_zPP.js";
|
|
7
8
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
8
9
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
9
10
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
10
|
-
import { a as colorBorderNeutral } from "../../BorderColor-
|
|
11
|
-
import { b as spacingNone } from "../../Spacing-
|
|
12
|
-
import { f as filterProps } from "../../filterProps-
|
|
11
|
+
import { a as colorBorderNeutral } from "../../BorderColor-CYdSW9dg.js";
|
|
12
|
+
import { b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
13
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
13
14
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
15
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
14
16
|
const colorSwatchSizeSmall = "sm";
|
|
15
17
|
const colorSwatchSizeMedium = "md";
|
|
16
18
|
const ColorSwatchSVGStyled = styled.svg.withConfig({
|
|
@@ -58,6 +60,26 @@ const ColorSwatchCircleStyled = styled.circle.withConfig({
|
|
|
58
60
|
height: "100%"
|
|
59
61
|
};
|
|
60
62
|
});
|
|
63
|
+
const colorSwatchSizes = [colorSwatchSizeSmall, colorSwatchSizeMedium];
|
|
64
|
+
const validateColorSwatchProps = (props) => {
|
|
65
|
+
if (!isObject(props)) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
const colorSwatchProps = props;
|
|
69
|
+
if (!hasMatchingComponentName(colorSwatchProps.component, "ColorSwatch")) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
if (!colorSwatchProps.color || typeof colorSwatchProps.color !== "string") {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (colorSwatchProps.size !== void 0 && !colorSwatchSizes.includes(colorSwatchProps.size)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
return true;
|
|
79
|
+
};
|
|
80
|
+
const isColorSwatchProps = (props) => {
|
|
81
|
+
return validateColorSwatchProps(props);
|
|
82
|
+
};
|
|
61
83
|
const ColorSwatch = ({
|
|
62
84
|
color,
|
|
63
85
|
size,
|
|
@@ -83,5 +105,8 @@ const ColorSwatch = ({
|
|
|
83
105
|
export {
|
|
84
106
|
colorSwatchSizeMedium,
|
|
85
107
|
colorSwatchSizeSmall,
|
|
86
|
-
|
|
108
|
+
colorSwatchSizes,
|
|
109
|
+
ColorSwatch as default,
|
|
110
|
+
isColorSwatchProps,
|
|
111
|
+
validateColorSwatchProps
|
|
87
112
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ColorSwatchProps } from './props';
|
|
2
|
+
export declare const colorSwatchSizes: readonly ["sm", "md"];
|
|
3
|
+
export declare const validateColorSwatchProps: (props: unknown) => props is ColorSwatchProps;
|
|
4
|
+
export declare const isColorSwatchProps: (props: unknown) => props is ColorSwatchProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
|
|
3
|
+
import ColorSwatch, { colorSwatchSizeSmall, colorSwatchSizeMedium } from "../ColorSwatch/index.js";
|
|
4
|
+
import { s as spacingMd, f as spacing2Xs } from "../../Spacing-BzNNxYMI.js";
|
|
6
5
|
import styled from "styled-components";
|
|
7
|
-
import { F as FlexStyled } from "../../styled-
|
|
6
|
+
import { F as FlexStyled } from "../../styled-DTFUPagl.js";
|
|
7
|
+
import { c as iconSizeMd } from "../../props-7dcsjRUx.js";
|
|
8
|
+
import "../../styled-HZzB_zPP.js";
|
|
8
9
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
|
-
import { f as filterProps } from "../../filterProps-
|
|
10
|
+
import { f as filterProps } from "../../filterProps-C73Li8Na.js";
|
|
10
11
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
12
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
13
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-DSLyqm7h.js";
|
|
11
14
|
const ColorSwatchListStyled = styled(FlexStyled).withConfig({
|
|
12
15
|
shouldForwardProp: filterProps(),
|
|
13
16
|
displayName: "ColorSwatchListStyled",
|
|
@@ -29,6 +32,29 @@ const ColorSwatchItemStyled = styled.li.withConfig({
|
|
|
29
32
|
height: size === colorSwatchSizeSmall ? "12px" : getCssVar(iconSizeMd)
|
|
30
33
|
};
|
|
31
34
|
});
|
|
35
|
+
const colorSwatchSizes = [colorSwatchSizeSmall, colorSwatchSizeMedium];
|
|
36
|
+
const validateColorSwatchGroupProps = (props) => {
|
|
37
|
+
if (!isObject(props)) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
const groupProps = props;
|
|
41
|
+
if (!hasMatchingComponentName(groupProps.component, "ColorSwatchGroup")) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
if (!Array.isArray(groupProps.colorSwatches)) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
if (groupProps.size !== void 0 && !colorSwatchSizes.includes(groupProps.size)) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (groupProps.bottomSpacing && !isBottomSpacing(groupProps.bottomSpacing)) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return true;
|
|
54
|
+
};
|
|
55
|
+
const isColorSwatchGroupProps = (props) => {
|
|
56
|
+
return validateColorSwatchGroupProps(props);
|
|
57
|
+
};
|
|
32
58
|
const ColorSwatchGroup = ({
|
|
33
59
|
colorSwatches,
|
|
34
60
|
size,
|
|
@@ -39,5 +65,8 @@ const ColorSwatchGroup = ({
|
|
|
39
65
|
return colorSwatchesMap.length ? /* @__PURE__ */ jsx(ColorSwatchListStyled, { className: props.className, gapSpacing: spacing2Xs, as: "ul", "aria-label": props["aria-label"], bottomSpacing, children: colorSwatchesMap }) : null;
|
|
40
66
|
};
|
|
41
67
|
export {
|
|
42
|
-
|
|
68
|
+
colorSwatchSizes,
|
|
69
|
+
ColorSwatchGroup as default,
|
|
70
|
+
isColorSwatchGroupProps,
|
|
71
|
+
validateColorSwatchGroupProps
|
|
43
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { ColorSwatchProps, ColorSwatchSizes } from '../ColorSwatch';
|
|
2
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { ColorSwatchProps, ColorSwatchSizes } from '../ColorSwatch/props';
|
|
4
4
|
export interface ColorSwatchGroupProps extends PatternProps, HTMLAttributes<HTMLUListElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Pin component's name from string to the concrete name
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ColorSwatchGroupProps } from './props';
|
|
2
|
+
export declare const colorSwatchSizes: readonly ["sm", "md"];
|
|
3
|
+
export declare const validateColorSwatchGroupProps: (props: unknown) => props is ColorSwatchGroupProps;
|
|
4
|
+
export declare const isColorSwatchGroupProps: (props: unknown) => props is ColorSwatchGroupProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import Body, { bodyAlignCenter } from "../Body/index.js";
|
|
5
|
-
import Button
|
|
5
|
+
import Button from "../Button/index.js";
|
|
6
|
+
import { a as buttonAutoWidth } from "../../index-CN-gxxgB.js";
|
|
6
7
|
import styled from "styled-components";
|
|
7
|
-
import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-
|
|
8
|
+
import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-D_wUvoV0.js";
|
|
8
9
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
9
10
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
10
11
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
11
|
-
import { b as colorBackgroundOverlay } from "../../BackgroundColor-
|
|
12
|
-
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-
|
|
12
|
+
import { b as colorBackgroundOverlay } from "../../BackgroundColor-DSOSZvNi.js";
|
|
13
|
+
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
|
|
13
14
|
import Heading, { headingAlignCenter } from "../Heading/index.js";
|
|
14
|
-
import { t as textHeadingXs } from "../../HeadingSize-
|
|
15
|
+
import { t as textHeadingXs } from "../../HeadingSize-BoyxJlpz.js";
|
|
15
16
|
const ConsentMessageBackgroundStyled = styled.div.withConfig({
|
|
16
17
|
displayName: "ConsentMessageBackgroundStyled",
|
|
17
18
|
componentId: "sc-gbn604-0"
|