@vodafone_de/brix-components 7.0.6 → 7.0.8

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.
Files changed (64) hide show
  1. package/README.md +1 -0
  2. package/dist/{FontWeight-DEBGHbtO.js → FontWeight-CR22KTex.js} +2 -2
  3. package/dist/components/Accordion/index.js +1 -1
  4. package/dist/components/Badge/index.js +1 -1
  5. package/dist/components/Body/index.js +1 -1
  6. package/dist/components/Button/index.js +2 -2
  7. package/dist/components/ButtonAsLink/index.js +1 -1
  8. package/dist/components/ButtonGroup/index.js +1 -1
  9. package/dist/components/Carousel/components/CarouselContext.d.ts +3 -2
  10. package/dist/components/Carousel/index.js +41 -52
  11. package/dist/components/Carousel/utils/useScrollSpy.d.ts +2 -0
  12. package/dist/components/ConsentMessage/index.js +1 -1
  13. package/dist/components/ConsentMessage/styled.d.ts +1 -1
  14. package/dist/components/DemoBox/index.js +1 -1
  15. package/dist/components/Dialog/index.js +1 -1
  16. package/dist/components/Dialog/styled.d.ts +1 -1
  17. package/dist/components/DiscoveryCard/index.js +5 -5
  18. package/dist/components/DiscoveryCard/styled.d.ts +1 -1
  19. package/dist/components/DiscoveryCardGroup/index.js +1 -1
  20. package/dist/components/GoogleMap/styled.d.ts +1 -1
  21. package/dist/components/Heading/index.js +1 -1
  22. package/dist/components/IconButton/index.js +1 -1
  23. package/dist/components/IconSnippet/index.js +3 -4
  24. package/dist/components/IconSnippet/props.d.ts +2 -2
  25. package/dist/components/IconSnippet/styled.d.ts +1 -1
  26. package/dist/components/ImageHeader/index.js +4 -4
  27. package/dist/components/ImageHeader/styled.d.ts +4 -4
  28. package/dist/components/InlineLink/index.js +1 -1
  29. package/dist/components/Legend/index.js +1 -1
  30. package/dist/components/Link/index.js +1 -1
  31. package/dist/components/LinkAsButton/index.js +1 -1
  32. package/dist/components/LinkListItem/index.js +1 -1
  33. package/dist/components/Notification/index.js +1 -1
  34. package/dist/components/PickerGroup/index.js +2 -2
  35. package/dist/components/Price/index.js +1 -1
  36. package/dist/components/ProductCard/index.js +3 -3
  37. package/dist/components/RichText/index.js +1 -1
  38. package/dist/components/SearchInput/index.js +1 -1
  39. package/dist/components/SearchInput/styled.d.ts +1 -1
  40. package/dist/components/Stepper/index.js +2 -2
  41. package/dist/components/TabularPrice/index.js +1 -1
  42. package/dist/components/TextList/index.js +1 -1
  43. package/dist/components/Tray/index.js +1 -1
  44. package/dist/components/YoutubeVideo/index.js +2 -1
  45. package/dist/hooks/useViewport/index.js +22 -5
  46. package/dist/{index-BRs8j3Vq.js → index-BeSd-V81.js} +1 -1
  47. package/dist/{index-DrySIh-D.js → index-C5GzK6_0.js} +1 -1
  48. package/dist/{index-57IF0yrd.js → index-C7meHOM4.js} +2 -2
  49. package/dist/{index-CKvLGUdD.js → index-ZHkR70j3.js} +1 -1
  50. package/dist/{index-WLBo71sp.js → index-aUJfXBUI.js} +1 -1
  51. package/dist/index.d.ts +0 -4
  52. package/dist/index.js +119 -129
  53. package/dist/{styled-DLS1p_AJ.js → styled-BSqC5P9h.js} +1 -1
  54. package/package.json +1 -1
  55. package/dist/components/MediaText/index.d.ts +0 -5
  56. package/dist/components/MediaText/index.js +0 -121
  57. package/dist/components/MediaText/props.d.ts +0 -42
  58. package/dist/components/MediaText/styled.d.ts +0 -4
  59. package/dist/components/Rating/assets/StarSVG.d.ts +0 -3
  60. package/dist/components/Rating/index.d.ts +0 -6
  61. package/dist/components/Rating/index.js +0 -153
  62. package/dist/components/Rating/props.d.ts +0 -22
  63. package/dist/components/Rating/styled.d.ts +0 -6
  64. package/dist/index-Cs0Hw0dj.js +0 -25
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
1
  # Highly experimental build
2
2
 
3
3
  Very likely no one will use this build in production.
4
+
@@ -2,7 +2,7 @@ const fontWeightLight = "light";
2
2
  const fontWeightRegular = "regular";
3
3
  const fontWeightBold = "bold";
4
4
  export {
5
- fontWeightRegular as a,
6
- fontWeightLight as b,
5
+ fontWeightLight as a,
6
+ fontWeightRegular as b,
7
7
  fontWeightBold as f
8
8
  };
@@ -16,7 +16,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
16
16
  import { getTextColor } from "../../foundations/token/getTextColor/index.js";
17
17
  import { j as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
18
18
  import { f as borderWidthNone, b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
19
- import { a as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
19
+ import { b as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
20
20
  import { s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
21
21
  import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
22
22
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
@@ -4,7 +4,7 @@ import "../../index-Cbojl4_Q.js";
4
4
  import "../../Spacing-D0HQH9YJ.js";
5
5
  import "../../SizeTypes-Ck_RdzIf.js";
6
6
  import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
7
- import { a, B } from "../../index-CKvLGUdD.js";
7
+ import { a, B } from "../../index-ZHkR70j3.js";
8
8
  export {
9
9
  a as BadgeAppearanceColor,
10
10
  B as default
@@ -8,7 +8,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
8
8
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
9
9
  import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
10
10
  import { getTextColor } from "../../foundations/token/getTextColor/index.js";
11
- import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
11
+ import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
12
12
  import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
13
13
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
14
14
  const BodyStyled = styled.p.withConfig({
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
4
- import { B as ButtonAsLink, g as getButtonIcon } from "../../index-57IF0yrd.js";
5
- import { B as ButtonStyled } from "../../styled-DLS1p_AJ.js";
4
+ import { B as ButtonAsLink, g as getButtonIcon } from "../../index-C7meHOM4.js";
5
+ import { B as ButtonStyled } from "../../styled-BSqC5P9h.js";
6
6
  const buttonFullWidth = "full";
7
7
  const buttonAutoWidth = "auto";
8
8
  const isButtonAsLinkProp = (props) => {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { B } from "../../index-57IF0yrd.js";
3
+ import { B } from "../../index-C7meHOM4.js";
4
4
  import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  export {
6
6
  B as default
@@ -5,7 +5,7 @@ import Flex from "../Flex/index.js";
5
5
  import { f as flexOrientationHorizontal, b as flexJustifyStart } from "../../styled-B0YKfXTz.js";
6
6
  import FlexItem from "../FlexItem/index.js";
7
7
  import { c as spacingSm, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
8
- import { u as useViewport } from "../../index-Cs0Hw0dj.js";
8
+ import { useViewport } from "../../hooks/useViewport/index.js";
9
9
  const renderButtons = (buttons, isMobile, isReversed = false) => {
10
10
  if (!isMobile && isReversed) {
11
11
  buttons = buttons.slice().reverse();
@@ -1,4 +1,4 @@
1
- import { FC, RefObject } from 'react';
1
+ import { FC, MutableRefObject } from 'react';
2
2
  import { CarouselRuntimeProps } from '../props';
3
3
  /**
4
4
  * Can either be false to indicate that no button should be rendered
@@ -6,7 +6,8 @@ import { CarouselRuntimeProps } from '../props';
6
6
  */
7
7
  export type CarouselButton = (() => void) | false;
8
8
  export type CarouselState = {
9
- ref: RefObject<HTMLDivElement> | undefined;
9
+ ref: MutableRefObject<HTMLDivElement> | undefined;
10
+ visibleItems: number;
10
11
  interactive: number[];
11
12
  goPrev: CarouselButton;
12
13
  goNext: CarouselButton;
@@ -78,6 +78,7 @@ const scrollTo = (element, left, behavior = "smooth") => {
78
78
  };
79
79
  const initialState = {
80
80
  ref: void 0,
81
+ visibleItems: 1,
81
82
  interactive: [0],
82
83
  goPrev: false,
83
84
  goNext: false,
@@ -98,57 +99,56 @@ const CarouselProvider = ({
98
99
  const [scrollSpyIndex, setScrollSpyIndex] = useState(void 0);
99
100
  const [interactive, setInteractive] = useState([]);
100
101
  const [needsFirstPosition, setNeedsFirstPosition] = useState(activeIndex !== 0);
101
- const [carouselLayoutedAttributes, setCarouselLayoutedAttributes] = useState(void 0);
102
+ const [itemWidth, setItemWidth] = useState(0);
103
+ const [visibleItems, setVisibleItems] = useState(1);
102
104
  const [goPrev, setGoPrev] = useState(false);
103
105
  const [goNext, setGoNext] = useState(false);
104
106
  const [numberOfIndicators, setNumberOfIndicators] = useState(0);
105
107
  const [activeIndicator, setActiveIndicator] = useState(props.items[props.activeIndex].index);
106
- const getCarouselLayoutedAttributes = () => {
107
- const carouselElement = ref.current;
108
- if (!carouselElement) {
109
- return;
110
- }
111
- const itemWidth = carouselElement.querySelector("[data-carousel-item]").offsetWidth;
112
- const track = carouselElement.offsetWidth;
113
- const numberOfItemsThatFitOnTrack = Math.floor(track / itemWidth);
114
- const visibleItems = Math.min(numberOfItemsThatFitOnTrack, props.items.length);
115
- if ((carouselLayoutedAttributes == null ? void 0 : carouselLayoutedAttributes.itemWidth) !== itemWidth || (carouselLayoutedAttributes == null ? void 0 : carouselLayoutedAttributes.visibleItems) !== visibleItems) {
116
- setCarouselLayoutedAttributes({
117
- itemWidth,
118
- visibleItems
119
- });
120
- }
121
- };
122
108
  useEffect(() => {
123
- if (!carouselLayoutedAttributes) {
124
- return;
125
- }
126
109
  if (loop) {
127
110
  const update = props.items.filter((item) => !item.ghost).length;
128
111
  setNumberOfIndicators(update);
129
112
  } else {
130
- const update = props.items.filter((item) => !item.ghost).length - carouselLayoutedAttributes.visibleItems + 1;
113
+ const update = props.items.filter((item) => !item.ghost).length - visibleItems + 1;
131
114
  setNumberOfIndicators(update);
132
115
  }
133
- }, [loop, carouselLayoutedAttributes, props.items]);
116
+ }, [loop, visibleItems, props.items]);
134
117
  useEffect(() => {
135
- if (!carouselLayoutedAttributes) {
118
+ if (!(ref == null ? void 0 : ref.current)) {
119
+ return;
120
+ }
121
+ if (!itemWidth) {
136
122
  return;
137
123
  }
138
- let updateInteractive = [...Array(carouselLayoutedAttributes.visibleItems).keys()].map((i) => activeIndex + i);
124
+ const track = ref == null ? void 0 : ref.current.offsetWidth;
125
+ setVisibleItems(Math.floor(track / itemWidth));
126
+ }, [itemWidth]);
127
+ useEffect(() => {
128
+ let updateInteractive = [...Array(visibleItems).keys()].map((i) => activeIndex + i);
139
129
  if (focus) {
140
130
  updateInteractive = [...Array(props.items.length).keys()];
141
131
  }
142
132
  setInteractive(updateInteractive);
143
- }, [focus, activeIndex, carouselLayoutedAttributes, props.items]);
133
+ }, [focus, activeIndex, visibleItems, props.items]);
144
134
  useEffect(() => {
145
135
  if (!(ref == null ? void 0 : ref.current)) {
146
136
  return;
147
137
  }
148
- window.addEventListener("resize", getCarouselLayoutedAttributes);
149
- getCarouselLayoutedAttributes();
138
+ const handleResize = () => {
139
+ if (!window) {
140
+ return;
141
+ }
142
+ if (!(ref == null ? void 0 : ref.current)) {
143
+ return;
144
+ }
145
+ const itemWidth2 = ref.current.querySelector("[data-carousel-item]").offsetWidth;
146
+ setItemWidth(itemWidth2);
147
+ };
148
+ window.addEventListener("resize", handleResize);
149
+ handleResize();
150
150
  return () => {
151
- window.removeEventListener("resize", getCarouselLayoutedAttributes);
151
+ window.removeEventListener("resize", handleResize);
152
152
  };
153
153
  }, [ref.current]);
154
154
  useEffect(() => {
@@ -156,31 +156,25 @@ const CarouselProvider = ({
156
156
  if (!(ref == null ? void 0 : ref.current)) {
157
157
  return;
158
158
  }
159
- if (!carouselLayoutedAttributes) {
159
+ if (!itemWidth) {
160
160
  return;
161
161
  }
162
162
  const handleScroll = (event) => {
163
- if (!carouselLayoutedAttributes) {
164
- return;
165
- }
166
163
  const left = event.target.scrollLeft;
167
- const ucurrent = getItemByScroll(left - carouselLayoutedAttributes.itemWidth / 2, carouselLayoutedAttributes.itemWidth, props.items);
164
+ const ucurrent = getItemByScroll(left - itemWidth / 2, itemWidth, props.items);
168
165
  setScrollSpyIndex(ucurrent);
169
166
  };
170
167
  const handleScrollend = (event) => {
171
- if (!carouselLayoutedAttributes) {
172
- return;
173
- }
174
168
  const left = event.target.scrollLeft;
175
- let updateActiveIndex = getItemByScroll(left - carouselLayoutedAttributes.itemWidth / 2, carouselLayoutedAttributes.itemWidth, props.items);
169
+ let updateActiveIndex = getItemByScroll(left - itemWidth / 2, itemWidth, props.items);
176
170
  if (loop) {
177
171
  const ghosts = [];
178
- for (let i = 0, x = carouselLayoutedAttributes.visibleItems; i < x; i += 1) {
172
+ for (let i = 0, x = visibleItems; i < x; i += 1) {
179
173
  ghosts.push(props.items[i + updateActiveIndex].ghost);
180
174
  }
181
175
  if (!ghosts.includes(false)) {
182
176
  updateActiveIndex = props.items.findIndex((item) => item.index === props.items[updateActiveIndex].index && !item.ghost);
183
- const left2 = updateActiveIndex * carouselLayoutedAttributes.itemWidth;
177
+ const left2 = updateActiveIndex * itemWidth;
184
178
  const behavior = "instant";
185
179
  scrollTo(ref.current, left2, behavior);
186
180
  }
@@ -198,34 +192,31 @@ const CarouselProvider = ({
198
192
  (_a2 = ref.current) == null ? void 0 : _a2.removeEventListener("scroll", handleScroll);
199
193
  (_b2 = ref.current) == null ? void 0 : _b2.removeEventListener("scrollend", handleScrollend);
200
194
  };
201
- }, [ref.current, carouselLayoutedAttributes, props.items]);
195
+ }, [ref.current, itemWidth, visibleItems, props.items]);
202
196
  useEffect(() => {
203
197
  if (!ref.current) {
204
198
  return;
205
199
  }
206
- if (!carouselLayoutedAttributes) {
207
- return;
208
- }
209
200
  if (scrollSpyIndex) {
210
201
  return;
211
202
  }
212
203
  if (activeIndex === scrollSpyIndex) {
213
204
  return;
214
205
  }
215
- const left = activeIndex * carouselLayoutedAttributes.itemWidth;
206
+ const left = activeIndex * itemWidth;
216
207
  const behavior = needsFirstPosition ? "instant" : "smooth";
217
208
  scrollTo(ref.current, left, behavior);
218
- }, [activeIndex, scrollSpyIndex, ref.current, carouselLayoutedAttributes]);
209
+ }, [activeIndex, scrollSpyIndex, ref.current, itemWidth]);
219
210
  useEffect(() => {
220
- if (!props.onUpdate || !carouselLayoutedAttributes) {
211
+ if (!props.onUpdate) {
221
212
  return;
222
213
  }
223
214
  const visibleIndexes = [];
224
- for (let i = 0, x = carouselLayoutedAttributes.visibleItems; i < x; i += 1) {
215
+ for (let i = 0, x = visibleItems; i < x; i += 1) {
225
216
  visibleIndexes.push(props.items[i + activeIndex].index);
226
217
  }
227
218
  props.onUpdate(visibleIndexes);
228
- }, [activeIndex, carouselLayoutedAttributes]);
219
+ }, [activeIndex]);
229
220
  const movePrev = () => {
230
221
  const prev = activeIndex > 0 ? activeIndex - 1 : props.items.length - 1;
231
222
  setActiveIndex(prev);
@@ -250,6 +241,7 @@ const CarouselProvider = ({
250
241
  return /* @__PURE__ */ jsx(CarouselContext.Provider, { value: {
251
242
  state: {
252
243
  ref,
244
+ visibleItems,
253
245
  interactive,
254
246
  goPrev,
255
247
  goNext,
@@ -411,7 +403,7 @@ const CarouselIndicator = () => {
411
403
  activeIndicator
412
404
  }
413
405
  } = useContext(CarouselContext);
414
- if (!numberOfIndicators || 1 >= numberOfIndicators) {
406
+ if (!numberOfIndicators) {
415
407
  return null;
416
408
  }
417
409
  const indicators = [...Array(numberOfIndicators).keys()];
@@ -495,9 +487,6 @@ const Carousel = ({
495
487
  gridConfig = carouselDefaultGridConfig,
496
488
  ...props
497
489
  }) => {
498
- if (0 === items.length) {
499
- return null;
500
- }
501
490
  activeIndex = activeIndex ? activeIndex : 0;
502
491
  activeIndex = loop ? activeIndex + items.length : activeIndex;
503
492
  const loopableItems = getItems(items, loop);
@@ -0,0 +1,2 @@
1
+ import { CarouselState } from '../components/CarouselContext';
2
+ export declare const useScrollSpy: (carouselState: CarouselState) => number;
@@ -4,7 +4,7 @@ import { useState, useEffect } from "react";
4
4
  import Body, { bodyAlignCenter } from "../Body/index.js";
5
5
  import Button, { buttonAutoWidth } from "../Button/index.js";
6
6
  import styled from "styled-components";
7
- import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-DLS1p_AJ.js";
7
+ import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-BSqC5P9h.js";
8
8
  import { v as viewport } from "../../index-Ck2bCrhT.js";
9
9
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
10
10
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
@@ -4,5 +4,5 @@ export declare const ConsentMessageBackgroundStyled: import('styled-components/d
4
4
  * Blurring the image create artifacts on the edges,
5
5
  * so I position these edges outside the visible area with 16px from each side to hide them
6
6
  */
7
- export declare const ConsentMessageBackgroundMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ConsentMessageProps, "theme" | "backgroundImage">>> & string;
7
+ export declare const ConsentMessageBackgroundMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ConsentMessageProps, "backgroundImage" | "theme">>> & string;
8
8
  export declare const ConsentMessageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import IconSnippet from "../IconSnippet/index.js";
4
4
  import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
5
- import { g as getUid } from "../../index-BRs8j3Vq.js";
5
+ import { g as getUid } from "../../index-BeSd-V81.js";
6
6
  import { D as DemoBoxStyled } from "../../styled-ODPFCF1a.js";
7
7
  const heading = {
8
8
  component: "Heading",
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useState, useRef, useEffect } from "react";
4
4
  import { createPortal } from "react-dom";
5
- import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
5
+ import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
6
6
  import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
7
7
  import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
8
8
  import Heading from "../Heading/index.js";
@@ -1,5 +1,5 @@
1
1
  import { DialogProps } from './props';
2
- export declare const DialogOverlayStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<DialogProps, "buttons" | "heading"> & {
2
+ export declare const DialogOverlayStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<DialogProps, "heading" | "buttons"> & {
3
3
  open: boolean;
4
4
  }>> & string;
5
5
  export declare const DialogCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Card').CardProps, never>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment } from "react";
4
- import { R as RichText } from "../../index-BRs8j3Vq.js";
5
- import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
4
+ import { R as RichText } from "../../index-BeSd-V81.js";
5
+ import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
6
6
  import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
7
7
  import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from "../../Spacing-D0HQH9YJ.js";
8
8
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
9
- import { b as BadgeStyled, B as Badge } from "../../index-CKvLGUdD.js";
9
+ import { b as BadgeStyled, B as Badge } from "../../index-ZHkR70j3.js";
10
10
  import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
11
11
  import Heading from "../Heading/index.js";
12
12
  import Link from "../Link/index.js";
13
- import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-WLBo71sp.js";
13
+ import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-aUJfXBUI.js";
14
14
  import Image, { aspectRatio16_9, aspectRatio1_1 } from "../Image/index.js";
15
15
  import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
16
16
  import styled from "styled-components";
@@ -18,7 +18,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
18
18
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
19
19
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
20
20
  import Card from "../Card/index.js";
21
- import { a as LinkStyled } from "../../index-DrySIh-D.js";
21
+ import { a as LinkStyled } from "../../index-C5GzK6_0.js";
22
22
  const discoveryCardOrientationVertical = "vertical";
23
23
  const discoveryCardOrientationHorizontal = "horizontal";
24
24
  const DiscoveryCardStyled = styled(Card).withConfig({
@@ -1,6 +1,6 @@
1
1
  import { AnchorHTMLAttributes } from 'react';
2
2
  import { DiscoveryCardProps } from './props';
3
- export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "badge" | "heading" | "price" | "uid" | "body" | "link" | "image">>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
3
+ export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "heading" | "body" | "uid" | "badge" | "price" | "link" | "image">>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
4
4
  export declare const DiscoveryCardContentyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
5
  export declare const DiscoveryCardImageLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Pick<DiscoveryCardProps, "orientation" | "bottomSpacing"> & AnchorHTMLAttributes<HTMLAnchorElement>>> & string;
6
6
  export declare const DiscoveryCardImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Image').ImageProps, never>> & string & Omit<import('react').FC<import('../Image').ImageProps>, keyof import('react').Component<any, {}, any>>;
@@ -6,7 +6,7 @@ import Grid from "../Grid/index.js";
6
6
  import GridItem from "../GridItem/index.js";
7
7
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
8
  import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
9
- import { a as LinkStyled } from "../../index-DrySIh-D.js";
9
+ import { a as LinkStyled } from "../../index-C5GzK6_0.js";
10
10
  const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
11
11
  displayName: "DiscoveryCardGroupGridStyled",
12
12
  componentId: "sc-6axszn-0"
@@ -1,2 +1,2 @@
1
1
  import { GoogleMapProps } from './props';
2
- export declare const GoogleMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<GoogleMapProps, "apiKey" | "consentMessage">>> & string;
2
+ export declare const GoogleMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<GoogleMapProps, "consentMessage" | "apiKey">>> & string;
@@ -9,7 +9,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
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 { f as fontWeightBold, b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
12
+ import { f as fontWeightBold, a as fontWeightLight } from "../../FontWeight-CR22KTex.js";
13
13
  import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
14
14
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
15
15
  const headingAlignLeft = "left";
@@ -13,7 +13,7 @@ import { b as borderRadiusMd, c as borderRadiusFull } from "../../BorderRadius-C
13
13
  import { d as borderWidthSelected } from "../../BorderWidth-DfOlyKK7.js";
14
14
  import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
15
15
  import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
16
- import { b as buttonHeight, g as getButtonAppearance, p as primaryAppearance, a as ButtonAppearanceColor } from "../../styled-DLS1p_AJ.js";
16
+ import { b as buttonHeight, g as getButtonAppearance, p as primaryAppearance, a as ButtonAppearanceColor } from "../../styled-BSqC5P9h.js";
17
17
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
18
18
  import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
19
19
  const iconButtonShapeSquare = "square";
@@ -4,9 +4,9 @@ import { df as IconLoader, it as iconSizeLg, iq as iconSize3xl, iv as iconSizeSm
4
4
  import Body from "../Body/index.js";
5
5
  import Heading from "../Heading/index.js";
6
6
  import InlineLink from "../InlineLink/index.js";
7
- import { R as RichText } from "../../index-BRs8j3Vq.js";
7
+ import { R as RichText } from "../../index-BeSd-V81.js";
8
8
  import { d as divTagName } from "../../tags-DI6H1biK.js";
9
- import { a as spacingXs, s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
9
+ import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
10
10
  import Link from "../Link/index.js";
11
11
  import styled from "styled-components";
12
12
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
@@ -95,11 +95,10 @@ const IconSnippet = ({
95
95
  iconPosition = iconSnippetPositionLeft,
96
96
  iconAlign = iconSnippetAlignTop,
97
97
  tag = divTagName,
98
- icon,
99
98
  ...props
100
99
  }) => {
101
100
  return /* @__PURE__ */ jsxs(IconSnippetStyled, { ...props, iconPosition, iconAlign, as: tag, children: [
102
- /* @__PURE__ */ jsx(IconLoaderStyled, { ...icon, bottomSpacing: spacingNone, size: size === iconSnippetSizeLarge ? iconSizeLg : size === iconSnippetSize3Xl ? iconSize3xl : iconSizeSm }),
101
+ /* @__PURE__ */ jsx(IconLoaderStyled, { size: size === iconSnippetSizeLarge ? iconSizeLg : size === iconSnippetSize3Xl ? iconSize3xl : iconSizeSm, name: props.icon }),
103
102
  /* @__PURE__ */ jsx(IconSnippetContentStyled, { as: tag, iconPosition, children: getContents(contents) })
104
103
  ] });
105
104
  };
@@ -1,4 +1,4 @@
1
- import { IconLoaderProps } from '@vfde-react/inline-icon-library';
1
+ import { IconName } from '@vfde-react/inline-icon-library';
2
2
  import { HTMLAttributes } from 'react';
3
3
  import { BodyProps } from '../Body';
4
4
  import { HeadingProps } from '../Heading';
@@ -28,7 +28,7 @@ export interface IconSnippetProps extends PatternProps, HTMLAttributes<HTMLDivEl
28
28
  /**
29
29
  * Icon
30
30
  */
31
- icon: Omit<IconLoaderProps, 'size' | 'bottomSpacing'>;
31
+ icon: IconName;
32
32
  /**
33
33
  * contents must be an array containing any combination of HeadingProps, BodyProps, RichTextProps and/or InlineLinkProps;
34
34
  */
@@ -1,5 +1,5 @@
1
1
  import { IconSnippetPosition, IconSnippetProps } from './props';
2
- export declare const IconSnippetStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<IconSnippetProps, "size" | "icon" | "contents">>> & string;
2
+ export declare const IconSnippetStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<IconSnippetProps, "size" | "contents" | "icon">>> & string;
3
3
  export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@vfde-react/inline-icon-library').IconLoaderProps, never>> & string & Omit<import('react').FC<import('@vfde-react/inline-icon-library').IconLoaderProps>, keyof import('react').Component<any, {}, any>>;
4
4
  export declare const IconSnippetContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
5
  iconPosition: IconSnippetPosition;
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import Body from "../Body/index.js";
4
- import { b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
4
+ import { a as fontWeightLight } from "../../FontWeight-CR22KTex.js";
5
5
  import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, e as spacing2Xs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
6
6
  import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
7
- import { g as getUid, R as RichText } from "../../index-BRs8j3Vq.js";
7
+ import { g as getUid, R as RichText } from "../../index-BeSd-V81.js";
8
8
  import Button from "../Button/index.js";
9
9
  import Container from "../Container/index.js";
10
10
  import Heading, { headingAlignCenter } from "../Heading/index.js";
11
- import { P as Price, b as priceSizeSm } from "../../index-WLBo71sp.js";
11
+ import { P as Price, b as priceSizeSm } from "../../index-aUJfXBUI.js";
12
12
  import styled from "styled-components";
13
- import { B as Badge } from "../../index-CKvLGUdD.js";
13
+ import { B as Badge } from "../../index-ZHkR70j3.js";
14
14
  import ButtonGroup from "../ButtonGroup/index.js";
15
15
  import Grid from "../Grid/index.js";
16
16
  import GridItem from "../GridItem/index.js";
@@ -1,9 +1,9 @@
1
1
  import { ImageHeaderProps } from './props';
2
2
  export declare const getBadgeTopPosition: () => string;
3
- export declare const ImageHeaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Grid').GridProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../Grid').GridProps>, keyof import('react').Component<any, {}, any>>;
4
- export declare const ImageHeaderImagesContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
5
- export declare const ImageHeaderResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ResponsiveImage').ResponsiveImageProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../ResponsiveImage').ResponsiveImageProps>, keyof import('react').Component<any, {}, any>>;
6
- export declare const ImageHeaderContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "variant" | "position" | "contentGridDesktopColumns">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
3
+ export declare const ImageHeaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Grid').GridProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../Grid').GridProps>, keyof import('react').Component<any, {}, any>>;
4
+ export declare const ImageHeaderImagesContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
5
+ export declare const ImageHeaderResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ResponsiveImage').ResponsiveImageProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../ResponsiveImage').ResponsiveImageProps>, keyof import('react').Component<any, {}, any>>;
6
+ export declare const ImageHeaderContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "position" | "variant" | "contentGridDesktopColumns">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
7
7
  export declare const ImageHeaderBadgeStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Badge').BadgeProps, never>> & string & Omit<import('react').FC<import('../Badge').BadgeProps>, keyof import('react').Component<any, {}, any>>;
8
8
  export declare const ImageHeaderHeadingStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Heading').HeadingProps, never>> & string & Omit<import('react').FC<import('../Heading').HeadingProps>, keyof import('react').Component<any, {}, any>>;
9
9
  export declare const ImageHeaderButtonGroupStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../ButtonGroup').ButtonGroupProps, never>> & string & Omit<import('react').FC<import('../ButtonGroup').ButtonGroupProps>, keyof import('react').Component<any, {}, any>>;
@@ -8,7 +8,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
8
8
  import { getTextColor } from "../../foundations/token/getTextColor/index.js";
9
9
  import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
10
10
  import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
11
- import { f as colorTextBrand, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
11
+ import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
12
12
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
13
13
  const hover = {
14
14
  textDecoration: "none",
@@ -3,7 +3,7 @@ import { jsx, Fragment } from "react/jsx-runtime";
3
3
  import Body from "../Body/index.js";
4
4
  import Heading from "../Heading/index.js";
5
5
  import IconSnippet, { iconSnippetAlignCenter } from "../IconSnippet/index.js";
6
- import { R as RichText } from "../../index-BRs8j3Vq.js";
6
+ import { R as RichText } from "../../index-BeSd-V81.js";
7
7
  import styled from "styled-components";
8
8
  const LegendStyled = styled.legend.withConfig({
9
9
  displayName: "LegendStyled",
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-DrySIh-D.js";
3
+ import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-C5GzK6_0.js";
4
4
  import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  const isLinkAsButtonProp = (props) => {
6
6
  return props.href === void 0;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { L } from "../../index-DrySIh-D.js";
3
+ import { L } from "../../index-C5GzK6_0.js";
4
4
  import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  export {
6
6
  L as default
@@ -4,7 +4,7 @@ import { iu as iconSizeMd, df as IconLoader } from "../../index-Cbojl4_Q.js";
4
4
  import { s as spanTagName } from "../../tags-DI6H1biK.js";
5
5
  import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
6
6
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
7
- import { B as Badge } from "../../index-CKvLGUdD.js";
7
+ import { B as Badge } from "../../index-ZHkR70j3.js";
8
8
  import styled from "styled-components";
9
9
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
10
10
  import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
@@ -7,7 +7,7 @@ import ButtonGroup from "../ButtonGroup/index.js";
7
7
  import Flex from "../Flex/index.js";
8
8
  import Heading from "../Heading/index.js";
9
9
  import Link from "../Link/index.js";
10
- import { R as RichText } from "../../index-BRs8j3Vq.js";
10
+ import { R as RichText } from "../../index-BeSd-V81.js";
11
11
  import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
12
12
  import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
13
13
  import { e as colorBorderCritical, f as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-BummoQ1-.js";
@@ -6,7 +6,7 @@ import { e as spacing2Xs, s as spacingMd, c as spacingSm, b as spacingNone } fro
6
6
  import { useState, useEffect } from "react";
7
7
  import Grid from "../Grid/index.js";
8
8
  import { df as IconLoader, iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
9
- import { B as Badge } from "../../index-CKvLGUdD.js";
9
+ import { B as Badge } from "../../index-ZHkR70j3.js";
10
10
  import ColorSwatch from "../ColorSwatch/index.js";
11
11
  import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
12
12
  import styled from "styled-components";
@@ -27,7 +27,7 @@ import { getTextColor } from "../../foundations/token/getTextColor/index.js";
27
27
  import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
28
28
  import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
29
29
  import { a as borderWidthFocus, d as borderWidthSelected } from "../../BorderWidth-DfOlyKK7.js";
30
- import { a as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
30
+ import { b as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
31
31
  import { o as opacityOverlay } from "../../Opacity-smkGiwsf.js";
32
32
  import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
33
33
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
@@ -2,7 +2,7 @@
2
2
  import "react/jsx-runtime";
3
3
  import "../../index-DQhtQZ85.js";
4
4
  import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
- import { c, P, i, g, f, h, p, a, e, d, b } from "../../index-WLBo71sp.js";
5
+ import { c, P, i, g, f, h, p, a, e, d, b } from "../../index-aUJfXBUI.js";
6
6
  export {
7
7
  c as createScreenReaderText,
8
8
  P as default,