@vodafone_de/brix-components 7.0.18 → 7.0.19-renderer-160d7c2a82db2376acbaa3eb5a12e7ed633eecea
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/{BorderWidth-eg_mz82k.js → BorderWidth-CJBdnPCs.js} +4 -4
- package/dist/{ButtonAppearanceHelper-D2SlSoU8.js → ButtonAppearanceHelper-DmvsaGEZ.js} +3 -3
- package/dist/IconSize-DJZz7UwL.js +30 -0
- package/dist/{ObjectColor-0RAzLGI5.js → ObjectColor-DxgEnOBM.js} +6 -6
- package/dist/{Spacing-BMQelJYr.js → Spacing-ByE4oCiE.js} +5 -5
- package/dist/Viewport-C35jx6QE.js +8 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +41 -115
- 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 -11
- package/dist/components/AccordionGroup/validate.d.ts +3 -0
- package/dist/components/AccordionGroup/validate.test.d.ts +1 -0
- package/dist/components/Badge/index.js +17 -54
- package/dist/components/Body/index.js +3 -3
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.js +10 -7
- 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 -3
- 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 +48 -4
- 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/validate.d.ts +5 -0
- package/dist/components/Card/validate.test.d.ts +1 -0
- package/dist/components/Carousel/index.js +8 -8
- package/dist/components/Checkbox/index.js +4 -5
- package/dist/components/CheckboxGroup/index.js +3 -3
- package/dist/components/Collapsible/index.js +1 -50
- package/dist/components/ColorSwatch/index.d.ts +1 -0
- package/dist/components/ColorSwatch/index.js +28 -5
- 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 +34 -7
- package/dist/components/ColorSwatchGroup/validate.d.ts +4 -0
- package/dist/components/ColorSwatchGroup/validate.test.d.ts +1 -0
- package/dist/components/ConsentMessage/index.js +6 -69
- package/dist/components/ConsentMessage/props.d.ts +0 -5
- package/dist/components/ConsentMessage/styled.d.ts +1 -1
- package/dist/components/ConsentMessage/validate.d.ts +3 -0
- package/dist/components/ConsentMessage/validate.test.d.ts +1 -0
- package/dist/components/Container/index.js +3 -3
- package/dist/components/DateInput/index.js +3 -4
- package/dist/components/DemoBox/index.js +2 -2
- package/dist/components/Dialog/index.js +3 -3
- package/dist/components/DiscoveryCard/index.d.ts +1 -0
- package/dist/components/DiscoveryCard/index.js +63 -17
- 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 -2
- 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 +2 -2
- package/dist/components/FilterGroup/index.js +7 -8
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FlexItem/index.js +2 -2
- package/dist/components/FootnoteContent/index.js +2 -2
- 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 +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +2 -3
- package/dist/components/GoogleMap/index.js +3 -3
- package/dist/components/Grid/index.js +5 -4
- package/dist/components/GridItem/index.js +3 -3
- package/dist/components/Heading/index.js +75 -8
- package/dist/components/HifiIcon/index.d.ts +1 -0
- package/dist/components/HifiIcon/index.js +35 -3
- package/dist/components/HifiIcon/validate.d.ts +4 -0
- package/dist/components/HifiIcon/validate.test.d.ts +1 -0
- package/dist/components/Icon/index.js +2 -10
- package/dist/components/Icon/props.d.ts +1 -7
- package/dist/components/IconButton/index.js +7 -8
- package/dist/components/IconLoader/index.js +1 -1
- package/dist/components/IconSnippet/index.d.ts +1 -0
- package/dist/components/IconSnippet/index.js +46 -56
- package/dist/components/IconSnippet/validate.d.ts +7 -0
- package/dist/components/IconSnippet/validate.test.d.ts +1 -0
- package/dist/components/IconSnippetList/index.d.ts +1 -0
- package/dist/components/IconSnippetList/index.js +25 -3
- package/dist/components/IconSnippetList/validate.d.ts +3 -0
- package/dist/components/IconSnippetList/validate.test.d.ts +1 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Image/index.js +28 -39
- package/dist/components/Image/validate.d.ts +8 -0
- package/dist/components/Image/validate.test.d.ts +1 -0
- package/dist/components/ImageHeader/index.d.ts +1 -0
- package/dist/components/ImageHeader/index.js +46 -189
- package/dist/components/ImageHeader/validate.d.ts +5 -0
- package/dist/components/ImageHeader/validate.test.d.ts +1 -0
- package/dist/components/InlineIcon/index.js +55 -15
- package/dist/components/InlineIcon/props.d.ts +1 -10
- package/dist/components/InlineIcon/validate.d.ts +4 -0
- package/dist/components/InlineLink/index.d.ts +1 -0
- package/dist/components/InlineLink/index.js +26 -4
- 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 +36 -3
- 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 +5 -5
- package/dist/components/LinkListItem/index.js +8 -9
- package/dist/components/LoadingSpinner/index.js +2 -2
- package/dist/components/MediaText/index.d.ts +1 -0
- package/dist/components/MediaText/index.js +26 -119
- package/dist/components/MediaText/props.d.ts +2 -1
- package/dist/components/MediaText/validate.d.ts +4 -0
- package/dist/components/MediaText/validate.test.d.ts +1 -0
- package/dist/components/Notification/index.js +7 -8
- package/dist/components/OpenTextFootnoteAdapter/index.js +2 -2
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +25 -25
- package/dist/components/Price/index.d.ts +2 -1
- package/dist/components/Price/index.js +8 -3
- package/dist/components/Price/props.d.ts +1 -0
- 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 +7 -8
- package/dist/components/QuickLinkList/index.js +5 -5
- package/dist/components/RadioGroup/index.js +4 -4
- package/dist/components/Rating/index.js +5 -5
- package/dist/components/ResponsiveImage/index.d.ts +1 -0
- package/dist/components/ResponsiveImage/index.js +37 -3
- package/dist/components/ResponsiveImage/validate.d.ts +3 -0
- package/dist/components/ResponsiveImage/validate.test.d.ts +1 -0
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +2 -2
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.js +6 -7
- package/dist/components/SelectInput/index.js +3 -4
- package/dist/components/Stepper/index.js +4 -4
- package/dist/components/SuggestInput/index.js +6 -7
- package/dist/components/Switch/index.js +7 -8
- package/dist/components/TabGroup/index.js +7 -8
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +3 -4
- package/dist/components/Textarea/index.js +2 -2
- package/dist/components/TimeInput/index.js +4 -5
- package/dist/components/Tray/index.js +3 -3
- package/dist/components/YoutubeVideo/index.js +1 -35
- package/dist/components/YoutubeVideo/validate.d.ts +3 -0
- package/dist/components/YoutubeVideo/validate.test.d.ts +1 -0
- package/dist/contentful/components.d.ts +1 -1
- package/dist/contentful/index.js +34 -15
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-inspector/props.d.ts +1 -0
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/map/accordion.d.ts +4 -0
- package/dist/contentful/map/accordionGroup.d.ts +4 -0
- package/dist/contentful/map/button.d.ts +5 -0
- package/dist/contentful/map/buttonGroup.d.ts +4 -0
- package/dist/contentful/map/card.d.ts +4 -0
- package/dist/contentful/map/consentMessage.d.ts +4 -0
- package/dist/contentful/map/discovery-card-group.d.ts +4 -0
- package/dist/contentful/map/discovery-card.d.ts +4 -0
- package/dist/contentful/map/divider.d.ts +4 -0
- package/dist/contentful/map/hifiIcon.d.ts +4 -0
- package/dist/contentful/map/iconSnippet.d.ts +4 -0
- package/dist/contentful/map/iconSnippetList.d.ts +4 -0
- package/dist/contentful/map/image.d.ts +4 -0
- package/dist/contentful/map/imageHeader.d.ts +4 -0
- package/dist/contentful/map/link.d.ts +5 -0
- package/dist/contentful/map/mediaText.d.ts +4 -0
- package/dist/contentful/map/price.d.ts +4 -0
- package/dist/contentful/map/responsiveImage.d.ts +4 -0
- package/dist/contentful/map/youtubeVideo.d.ts +4 -0
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/contentful/transform/transformCornerStyle.d.ts +2 -0
- package/dist/contentful/transform/transformHifiIconSize.d.ts +2 -0
- package/dist/{easing-Dm-pO8SY.js → easing-CDd2rVn6.js} +2 -2
- package/dist/filterProps-Dzq_1ixx.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/types/IconSize.d.ts +14 -0
- package/dist/hooks/useViewport/index.js +20 -5
- package/dist/{styled-B-_SmQSA.js → index-C-bqMoOl.js} +51 -7
- package/dist/{index-BBQw77Pn.js → index-D7EtOB4k.js} +1 -1
- package/dist/{index-BdUFiKHr.js → index-DIG2l06W.js} +3 -2
- package/dist/index-DoZI2zfV.js +160 -0
- package/dist/{index-R87ALCWk.js → index-DyGQCH0e.js} +35 -7
- package/dist/index-TJ0cifu5.js +205 -0
- package/dist/{index-Cy0Uf6Y5.js → index-ZEZOKvJp.js} +51 -4
- package/dist/{index-C8lpS44n.js → index-bsOFSpSM.js} +51 -4
- package/dist/index.js +251 -200
- package/dist/isBottomSpacing-b0EvVB9Q.js +10 -0
- package/dist/{isObject-cuWKq2kY.js → isObject-BYBrvoVW.js} +0 -8
- package/dist/mapContentToComponents-DgQYH4zD.js +1991 -0
- package/dist/styled-03vTgjHT.js +54 -0
- package/dist/{styled-DOK4C5Ml.js → styled-5peQSRz-.js} +1 -1
- package/dist/{styled-BlHKbHF4.js → styled-BO-GrImO.js} +1 -1
- package/dist/styled-BPeniuO0.js +121 -0
- package/dist/{styled-D8a-ap4J.js → styled-BTsai9Gx.js} +2 -2
- package/dist/styled-Bbv_s98G.js +71 -0
- package/dist/styled-BfFsPw02.js +69 -0
- package/dist/{styled-CPNO3vN5.js → styled-Bt96Bp_i.js} +2 -2
- package/dist/{styled-jl0239KS.js → styled-C0P3sqxZ.js} +3 -3
- package/dist/{styled-BTBLpB_G.js → styled-C3Qd-IA6.js} +3 -3
- package/dist/styled-CDhStyaD.js +11 -0
- package/dist/styled-CUuPiXn5.js +42 -0
- package/dist/{styled-U9du2n1i.js → styled-D6PXFxpi.js} +2 -2
- package/dist/{styled-1OrCdMDT.js → styled-DJGpk8Rb.js} +2 -2
- package/dist/styled-DbBMNAgh.js +205 -0
- package/dist/{styled-DtUIJa88.js → styled-DnSLhVGk.js} +8 -4
- package/dist/styled-Dngnh67H.js +58 -0
- package/dist/{styled-CW4e5Qa3.js → styled-Donz9ejT.js} +2 -2
- package/dist/{styled-Djetw1lK.js → styled-DupFoGx7.js} +4 -4
- package/dist/{styled-CyZvsdJs.js → styled-Dw0bhzvx.js} +2 -2
- package/dist/styled-K5zcg4ow.js +42 -0
- package/dist/{styled-BM1Yo9eD.js → styled-dZZrI8e7.js} +5 -5
- package/dist/{tags-38kBhOn6.js → tags-DUd7mBtU.js} +10 -10
- package/dist/validate-DYmFz2FF.js +85 -0
- package/package.json +1 -1
- package/dist/filterProps-CTn92eZw.js +0 -17
- package/dist/index-Dy21IAhD.js +0 -83
- package/dist/index-G2mpsxF7.js +0 -25
- package/dist/mapContentToComponents-CbXgjoiV.js +0 -756
- package/dist/props-7dcsjRUx.js +0 -28
- package/dist/styled-DJWrbsIZ.js +0 -55
- package/dist/styled-RnVr222F.js +0 -53
- package/dist/styled-VAsSnb5y.js +0 -76
|
@@ -8,9 +8,9 @@ const borderWidthMd = "Md";
|
|
|
8
8
|
export {
|
|
9
9
|
borderWidthFocus as a,
|
|
10
10
|
borderWidthUnselected as b,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
borderWidthNone as c,
|
|
12
|
+
borderWidthSelected as d,
|
|
13
|
+
borderWidthSm as e,
|
|
14
|
+
borderWidthDivider as f,
|
|
15
15
|
borderWidthMd as g
|
|
16
16
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import forcedColors from "./foundations/media-query/forcedColors/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as ease_in_sine } from "./easing-CDd2rVn6.js";
|
|
3
3
|
import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
|
|
4
4
|
import { getBorderWidth } from "./foundations/token/getBorderWidth/index.js";
|
|
5
5
|
import { getHoverColor } from "./foundations/token/getHoverColor/index.js";
|
|
6
6
|
import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
|
|
7
7
|
import { getPressColor } from "./foundations/token/getPressColor/index.js";
|
|
8
8
|
import { c as colorBorderFocus } from "./BorderColor-CYdSW9dg.js";
|
|
9
|
-
import { a as borderWidthFocus,
|
|
10
|
-
import { c as colorObjectNeutral, a as colorObjectBrand, b as colorObjectInverse } from "./ObjectColor-
|
|
9
|
+
import { a as borderWidthFocus, d as borderWidthSelected } from "./BorderWidth-CJBdnPCs.js";
|
|
10
|
+
import { c as colorObjectNeutral, a as colorObjectBrand, b as colorObjectInverse } from "./ObjectColor-DxgEnOBM.js";
|
|
11
11
|
import { g as getForegroundColor } from "./colorUtils-lb0oJttx.js";
|
|
12
12
|
const ButtonAppearanceColor = {
|
|
13
13
|
primary: colorObjectBrand,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const iconSize2xs = "iconSize2xs";
|
|
2
|
+
const iconSizeXs = "iconSizeXs";
|
|
3
|
+
const iconSizeSm = "iconSizeSm";
|
|
4
|
+
const iconSizeMd = "iconSizeMd";
|
|
5
|
+
const iconSizeLg = "iconSizeLg";
|
|
6
|
+
const iconSizeXl = "iconSizeXl";
|
|
7
|
+
const iconSize2xl = "iconSize2xl";
|
|
8
|
+
const iconSize3xl = "iconSize3xl";
|
|
9
|
+
const iconSize4xl = "iconSize4xl";
|
|
10
|
+
const iconSize5xl = "iconSize5xl";
|
|
11
|
+
const iconSize6xl = "iconSize6xl";
|
|
12
|
+
const iconSize7xl = "iconSize7xl";
|
|
13
|
+
const iconSize8xl = "iconSize8xl";
|
|
14
|
+
const iconSize9xl = "iconSize9xl";
|
|
15
|
+
export {
|
|
16
|
+
iconSizeSm as a,
|
|
17
|
+
iconSizeLg as b,
|
|
18
|
+
iconSize2xs as c,
|
|
19
|
+
iconSizeXl as d,
|
|
20
|
+
iconSize2xl as e,
|
|
21
|
+
iconSize3xl as f,
|
|
22
|
+
iconSize4xl as g,
|
|
23
|
+
iconSize5xl as h,
|
|
24
|
+
iconSizeMd as i,
|
|
25
|
+
iconSize6xl as j,
|
|
26
|
+
iconSize7xl as k,
|
|
27
|
+
iconSize8xl as l,
|
|
28
|
+
iconSize9xl as m,
|
|
29
|
+
iconSizeXs as n
|
|
30
|
+
};
|
|
@@ -13,10 +13,10 @@ export {
|
|
|
13
13
|
colorObjectInverse as b,
|
|
14
14
|
colorObjectNeutral as c,
|
|
15
15
|
colorObjectSelected as d,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
colorObjectUnselected as e,
|
|
17
|
+
colorObjectCritical as f,
|
|
18
|
+
colorObjectWarning as g,
|
|
19
|
+
colorObjectSuccess as h,
|
|
20
|
+
colorObjectInformation as i,
|
|
21
|
+
colorObjectAccent as j
|
|
22
22
|
};
|
|
@@ -16,10 +16,10 @@ export {
|
|
|
16
16
|
spacingMd as a,
|
|
17
17
|
spacingXs as b,
|
|
18
18
|
spacingSm as c,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
spacings as d,
|
|
20
|
+
spacingXl as e,
|
|
21
|
+
spacing2Xs as f,
|
|
22
|
+
spacing5Xl as g,
|
|
23
|
+
spacingLg as h,
|
|
24
24
|
spacingNone as s
|
|
25
25
|
};
|
|
@@ -2,127 +2,51 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useState, useEffect } from "react";
|
|
4
4
|
import Collapsible from "../Collapsible/index.js";
|
|
5
|
-
import { I as IconLoader } from "../../index-
|
|
6
|
-
import {
|
|
7
|
-
import "../../styled-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import Heading from "../Heading/index.js";
|
|
11
|
-
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
12
|
-
import { noReducedMotion } from "../../foundations/media-query/reducedMotion/index.js";
|
|
13
|
-
import { a as ease_in_out_sine } from "../../easing-Dm-pO8SY.js";
|
|
14
|
-
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
15
|
-
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
16
|
-
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
17
|
-
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
18
|
-
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
|
-
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
|
-
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
21
|
-
import { f as borderWidthNone, b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
22
|
-
import { f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
23
|
-
import { a as spacingMd, s as spacingNone, b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
24
|
-
import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
|
|
25
|
-
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
5
|
+
import { b as iconNames, I as IconLoader } from "../../index-DIG2l06W.js";
|
|
6
|
+
import { i as iconSizeMd } from "../../IconSize-DJZz7UwL.js";
|
|
7
|
+
import { A as AccordionStyled, a as AccordionSummaryStyled, b as AccordionHeadingStyled, c as AccordionOpenIndicatorStyled } from "../../styled-BPeniuO0.js";
|
|
8
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
9
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-b0EvVB9Q.js";
|
|
26
10
|
const accordionToggleExpanded = "expanded";
|
|
27
11
|
const accordionToggleCollapsing = "collapsing";
|
|
28
12
|
const accordionToggleCollapsed = "collapsed";
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
displayName: "AccordionStyled",
|
|
33
|
-
componentId: "sc-1t5leix-0"
|
|
34
|
-
})({
|
|
35
|
-
display: "flex",
|
|
36
|
-
flexDirection: "column"
|
|
37
|
-
}, {
|
|
38
|
-
borderStyle: "solid",
|
|
39
|
-
borderColor: getBorderColor(colorBorderSubtle),
|
|
40
|
-
borderWidth: getBorderWidth(borderWidthNone),
|
|
41
|
-
borderTopWidth: getBorderWidth(borderWidthUnselected),
|
|
42
|
-
borderBottomWidth: getBorderWidth(borderWidthUnselected),
|
|
43
|
-
"& + &": {
|
|
44
|
-
borderTopWidth: getBorderWidth(borderWidthNone)
|
|
13
|
+
const validateAccordionProps = (props) => {
|
|
14
|
+
if (!isObject(props)) {
|
|
15
|
+
return false;
|
|
45
16
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
scrollMarginTop: `${verticalScrollOffset}px`
|
|
50
|
-
}), getBottomSpacing);
|
|
51
|
-
const AccordionSummaryStyled = styled.summary.withConfig({
|
|
52
|
-
shouldForwardProp: filterProps(),
|
|
53
|
-
displayName: "AccordionSummaryStyled",
|
|
54
|
-
componentId: "sc-1t5leix-1"
|
|
55
|
-
})({
|
|
56
|
-
display: "flex",
|
|
57
|
-
alignItems: "center",
|
|
58
|
-
cursor: "pointer",
|
|
59
|
-
gap: `${getSpacing(spacingNone)} ${getSpacing(spacingXs)}`,
|
|
60
|
-
padding: `${getSpacing(spacingMd)} ${getSpacing(spacingNone)}`,
|
|
61
|
-
listStyleType: "none",
|
|
62
|
-
overflow: "hidden",
|
|
63
|
-
transition: `color ${openCloseDuration} ease-out`,
|
|
64
|
-
color: getTextColor(colorTextNeutral)
|
|
65
|
-
}, {
|
|
66
|
-
"&:hover": {
|
|
67
|
-
color: getTextColor(colorTextBrand)
|
|
17
|
+
const accordionProps = props;
|
|
18
|
+
if (!hasMatchingComponentName(accordionProps.component, "Accordion")) {
|
|
19
|
+
return false;
|
|
68
20
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
"&:focus-visible": {
|
|
73
|
-
...forcedColors({
|
|
74
|
-
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
75
|
-
}),
|
|
76
|
-
outline: "none",
|
|
77
|
-
boxShadow: `${focusColor} 0px 0px 0px ${getBorderWidth(borderWidthFocus)}`
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}, {
|
|
81
|
-
"&::-webkit-details-marker": {
|
|
82
|
-
display: "none"
|
|
21
|
+
if (typeof accordionProps.uid !== "string" || accordionProps.uid.length === 0) {
|
|
22
|
+
return false;
|
|
83
23
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, {
|
|
93
|
-
fontWeight: getFontWeight(fontWeightRegular),
|
|
94
|
-
"details[open] &": {
|
|
95
|
-
fontWeight: getFontWeight(fontWeightBold)
|
|
96
|
-
},
|
|
97
|
-
...noReducedMotion({
|
|
98
|
-
"details[open] &, details[open].collapsing &": {
|
|
99
|
-
transition: `font-weight ${openCloseDuration} ease-out`
|
|
100
|
-
},
|
|
101
|
-
"details[open].collapsing &": {
|
|
102
|
-
fontWeight: getFontWeight(fontWeightRegular)
|
|
103
|
-
}
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
const AccordionOpenIndicatorStyled = styled(ChevronDownIcon).withConfig({
|
|
107
|
-
displayName: "AccordionOpenIndicatorStyled",
|
|
108
|
-
componentId: "sc-1t5leix-3"
|
|
109
|
-
})({
|
|
110
|
-
transformOrigin: "center",
|
|
111
|
-
color: getTextColor(colorTextBrand)
|
|
112
|
-
}, {
|
|
113
|
-
transform: "rotate(0deg)",
|
|
114
|
-
"details[open] &": {
|
|
115
|
-
transform: "rotate(180deg)"
|
|
116
|
-
},
|
|
117
|
-
...noReducedMotion({
|
|
118
|
-
"details[open] &, details[open].collapsing &": {
|
|
119
|
-
transition: `transform ${openCloseDuration} ${ease_in_out_sine}`
|
|
120
|
-
}
|
|
121
|
-
}),
|
|
122
|
-
"details[open].collapsing &": {
|
|
123
|
-
transform: "rotate(0deg)"
|
|
24
|
+
if (typeof accordionProps.heading !== "string" || accordionProps.heading.length === 0) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
if (accordionProps.children === void 0 || accordionProps.children === null) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
if (accordionProps.iconName !== void 0 && !iconNames.includes(accordionProps.iconName)) {
|
|
31
|
+
return false;
|
|
124
32
|
}
|
|
125
|
-
|
|
33
|
+
if (accordionProps.expanded !== void 0 && typeof accordionProps.expanded !== "boolean") {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
if (accordionProps.handleOnToggle !== void 0 && typeof accordionProps.handleOnToggle !== "function") {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (accordionProps.verticalScrollOffset !== void 0 && typeof accordionProps.verticalScrollOffset !== "number") {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
if (accordionProps.bottomSpacing && !isBottomSpacing(accordionProps.bottomSpacing)) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
};
|
|
47
|
+
const isAccordionProps = (props) => {
|
|
48
|
+
return validateAccordionProps(props);
|
|
49
|
+
};
|
|
126
50
|
const Accordion = ({
|
|
127
51
|
uid,
|
|
128
52
|
children,
|
|
@@ -197,5 +121,7 @@ export {
|
|
|
197
121
|
accordionToggleCollapsed,
|
|
198
122
|
accordionToggleCollapsing,
|
|
199
123
|
accordionToggleExpanded,
|
|
200
|
-
Accordion as default
|
|
124
|
+
Accordion as default,
|
|
125
|
+
isAccordionProps,
|
|
126
|
+
validateAccordionProps
|
|
201
127
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import Accordion from "../Accordion/index.js";
|
|
4
|
-
import { a as spacingMd, s as spacingNone } from "../../Spacing-
|
|
3
|
+
import Accordion, { validateAccordionProps } from "../Accordion/index.js";
|
|
4
|
+
import { a as spacingMd, s as spacingNone } from "../../Spacing-ByE4oCiE.js";
|
|
5
5
|
import { useState } from "react";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { A as AccordionGroupStyled } from "../../styled-CDhStyaD.js";
|
|
7
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
8
|
+
import { i as isBottomSpacing } from "../../isBottomSpacing-b0EvVB9Q.js";
|
|
9
9
|
const AccordionGroupSingleExpand = ({
|
|
10
10
|
bottomSpacing = spacingMd,
|
|
11
11
|
...props
|
|
@@ -36,11 +36,39 @@ const AccordionGroupSingleExpand = ({
|
|
|
36
36
|
return /* @__PURE__ */ jsx(Accordion, { ...accordion, expanded: accordionExpanded[accordion.uid], handleOnToggle, bottomSpacing: spacing, verticalScrollOffset: props.verticalScrollOffset, children: accordion.children }, accordion.uid);
|
|
37
37
|
}) });
|
|
38
38
|
};
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
const validateAccordionGroupProps = (props) => {
|
|
40
|
+
if (!isObject(props)) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
const accordionGroupProps = props;
|
|
44
|
+
if (!hasMatchingComponentName(accordionGroupProps.component, "AccordionGroup")) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
if (!Array.isArray(accordionGroupProps.items) || accordionGroupProps.items.length === 0) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
for (const item of accordionGroupProps.items) {
|
|
51
|
+
if (!validateAccordionProps(item)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (accordionGroupProps.singleExpand !== void 0 && typeof accordionGroupProps.singleExpand !== "boolean") {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
if (accordionGroupProps.handleOnToggle !== void 0 && typeof accordionGroupProps.handleOnToggle !== "function") {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (accordionGroupProps.verticalScrollOffset !== void 0 && typeof accordionGroupProps.verticalScrollOffset !== "number") {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (accordionGroupProps.bottomSpacing && !isBottomSpacing(accordionGroupProps.bottomSpacing)) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return true;
|
|
68
|
+
};
|
|
69
|
+
const isAccordionGroupProps = (props) => {
|
|
70
|
+
return validateAccordionGroupProps(props);
|
|
71
|
+
};
|
|
44
72
|
const AccordionGroup = ({
|
|
45
73
|
singleExpand = false,
|
|
46
74
|
bottomSpacing = spacingMd,
|
|
@@ -55,5 +83,7 @@ const AccordionGroup = ({
|
|
|
55
83
|
}) });
|
|
56
84
|
};
|
|
57
85
|
export {
|
|
58
|
-
AccordionGroup as default
|
|
86
|
+
AccordionGroup as default,
|
|
87
|
+
isAccordionGroupProps,
|
|
88
|
+
validateAccordionGroupProps
|
|
59
89
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,57 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "../../
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { p as primaryBadgeAppearance, s as secondaryBadgeAppearance, t as tertiaryBadgeAppearance, a as successBadgeAppearance, b as BadgeStyled } from "../../styled-B-_SmQSA.js";
|
|
10
|
-
import { B } from "../../styled-B-_SmQSA.js";
|
|
11
|
-
const badgeAppearances = [primaryBadgeAppearance, secondaryBadgeAppearance, tertiaryBadgeAppearance, successBadgeAppearance];
|
|
12
|
-
const badgeSizes = [smallSize, mediumSize];
|
|
13
|
-
const validateBadgeProps = (props) => {
|
|
14
|
-
if (!props || typeof props !== "object") {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
const badgeProps = props;
|
|
18
|
-
if (!badgeProps.component || badgeProps.component !== "Badge") {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (typeof badgeProps.children !== "string") {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (badgeProps.appearance !== void 0 && !badgeAppearances.includes(badgeProps.appearance)) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (badgeProps.size !== void 0 && !badgeSizes.includes(badgeProps.size)) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
if (badgeProps.icon !== void 0 && !iconNames.includes(badgeProps.icon)) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
return true;
|
|
34
|
-
};
|
|
35
|
-
const isBadgeProps = (props) => {
|
|
36
|
-
return validateBadgeProps(props);
|
|
37
|
-
};
|
|
38
|
-
const Badge = ({
|
|
39
|
-
children,
|
|
40
|
-
bottomSpacing = spacingMd,
|
|
41
|
-
...props
|
|
42
|
-
}) => /* @__PURE__ */ jsxs(BadgeStyled, { ...props, bottomSpacing, children: [
|
|
43
|
-
props.icon ? /* @__PURE__ */ jsx(IconLoader, { name: props.icon, size: props.size === smallSize ? iconSizeXs : iconSizeSm }) : null,
|
|
44
|
-
renderInlineRichTextFromOpenText(children)
|
|
45
|
-
] });
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "../../index-DIG2l06W.js";
|
|
4
|
+
import "../../IconSize-DJZz7UwL.js";
|
|
5
|
+
import "../../SizeTypes-Ck_RdzIf.js";
|
|
6
|
+
import "../../Spacing-ByE4oCiE.js";
|
|
7
|
+
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
8
|
+
import { b, c, d, B, i, p, s, a, t, v } from "../../index-C-bqMoOl.js";
|
|
46
9
|
export {
|
|
47
|
-
|
|
48
|
-
badgeAppearances,
|
|
49
|
-
badgeSizes,
|
|
50
|
-
|
|
51
|
-
isBadgeProps,
|
|
52
|
-
primaryBadgeAppearance,
|
|
53
|
-
secondaryBadgeAppearance,
|
|
54
|
-
successBadgeAppearance,
|
|
55
|
-
tertiaryBadgeAppearance,
|
|
56
|
-
validateBadgeProps
|
|
10
|
+
b as BadgeAppearanceColor,
|
|
11
|
+
c as badgeAppearances,
|
|
12
|
+
d as badgeSizes,
|
|
13
|
+
B as default,
|
|
14
|
+
i as isBadgeProps,
|
|
15
|
+
p as primaryBadgeAppearance,
|
|
16
|
+
s as secondaryBadgeAppearance,
|
|
17
|
+
a as successBadgeAppearance,
|
|
18
|
+
t as tertiaryBadgeAppearance,
|
|
19
|
+
v as validateBadgeProps
|
|
57
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import FootnoteLink from "../FootnoteLink/index.js";
|
|
4
|
-
import { c as spacingSm, a as spacingMd } from "../../Spacing-
|
|
4
|
+
import { c as spacingSm, a as spacingMd } from "../../Spacing-ByE4oCiE.js";
|
|
5
5
|
import { t as textBodyMd, a as textBodySm } from "../../TextBodySize-BcZR9mh2.js";
|
|
6
6
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
7
|
import styled from "styled-components";
|
|
@@ -11,8 +11,8 @@ import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
|
11
11
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
12
12
|
import { a as fontWeightBold, b as fontWeightLight, f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
13
13
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
14
|
-
import { a as filterProps } from "../../filterProps-
|
|
15
|
-
import { p as pTagName, d as divTagName, s as spanTagName,
|
|
14
|
+
import { a as filterProps } from "../../filterProps-Dzq_1ixx.js";
|
|
15
|
+
import { p as pTagName, d as divTagName, s as spanTagName, k as strongTagName, q as supTagName } from "../../tags-DUd7mBtU.js";
|
|
16
16
|
const BodyStyled = styled.p.withConfig({
|
|
17
17
|
shouldForwardProp: filterProps(),
|
|
18
18
|
displayName: "BodyStyled",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useState, useEffect } from "react";
|
|
4
4
|
import Container from "../Container/index.js";
|
|
5
|
-
import { a as spacingMd, s as spacingNone } from "../../Spacing-
|
|
5
|
+
import { a as spacingMd, s as spacingNone } from "../../Spacing-ByE4oCiE.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { a as CardStyled } from "../../styled-
|
|
7
|
+
import { a as CardStyled } from "../../styled-DJGpk8Rb.js";
|
|
8
8
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
9
9
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
10
10
|
import { a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
11
|
-
import { a as filterProps } from "../../filterProps-
|
|
11
|
+
import { a as filterProps } from "../../filterProps-Dzq_1ixx.js";
|
|
12
12
|
const bottomBarExtraPadding = 100;
|
|
13
13
|
const BottomBarStyled = styled(CardStyled).withConfig({
|
|
14
14
|
shouldForwardProp: filterProps(),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ButtonProps } from './props';
|
|
3
2
|
import { ButtonAsLinkProps } from '../ButtonAsLink/props';
|
|
3
|
+
import { ButtonProps } from './props';
|
|
4
4
|
declare const Button: FC<ButtonProps | ButtonAsLinkProps>;
|
|
5
5
|
export default Button;
|
|
6
6
|
export * from './props';
|
|
7
|
+
export * from './validate';
|
|
@@ -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-
|
|
3
|
+
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-DoZI2zfV.js";
|
|
4
|
+
import { c, a, b, f, e, d } from "../../index-DoZI2zfV.js";
|
|
4
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
|
-
import { B as ButtonStyled } from "../../styled-
|
|
6
|
-
const buttonFullWidth = "full";
|
|
7
|
-
const buttonAutoWidth = "auto";
|
|
6
|
+
import { B as ButtonStyled } from "../../styled-DnSLhVGk.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
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonAppearances } from '../../foundations/types/ButtonAppearances';
|
|
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,9 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { B } from "../../index-
|
|
3
|
+
import { h, B, i, v } from "../../index-DoZI2zfV.js";
|
|
4
4
|
import "../../hooks/useLinkComponent/index.js";
|
|
5
|
-
import "../../filterProps-
|
|
5
|
+
import "../../filterProps-Dzq_1ixx.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
h as buttonWidthBehaviors,
|
|
9
|
+
B as default,
|
|
10
|
+
i as isButtonAsLinkProps,
|
|
11
|
+
v as validateButtonAsLinkProps
|
|
9
12
|
};
|
|
@@ -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 {};
|