@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.
Files changed (323) hide show
  1. package/dist/{BackgroundColor-e0N9tdDR.js → BackgroundColor-DSOSZvNi.js} +2 -2
  2. package/dist/{BorderColor-BummoQ1-.js → BorderColor-CYdSW9dg.js} +5 -5
  3. package/dist/{BorderWidth-DfOlyKK7.js → BorderWidth-CTOda7Cp.js} +5 -5
  4. package/dist/{FontWeight-DEBGHbtO.js → FontWeight-C2pGs7aR.js} +2 -2
  5. package/dist/{HeadingSize-CfCRn3Lh.js → HeadingSize-BoyxJlpz.js} +2 -2
  6. package/dist/NotificationErrorIcon-DMnAJgPN.js +83 -0
  7. package/dist/{ObjectColor-BZDBuV8H.js → ObjectColor-DSUXMO7l.js} +6 -6
  8. package/dist/Spacing-BzNNxYMI.js +25 -0
  9. package/dist/{TextColor-DsntmDNw.js → TextColor-BXVMXUVE.js} +2 -2
  10. package/dist/{colorUtils-BSfFfgbi.js → colorUtils-t7G6Q5ev.js} +1 -1
  11. package/dist/components/Accordion/index.d.ts +1 -0
  12. package/dist/components/Accordion/index.js +52 -9
  13. package/dist/components/Accordion/props.d.ts +1 -1
  14. package/dist/components/Accordion/styled.d.ts +1 -1
  15. package/dist/components/Accordion/validate.d.ts +3 -0
  16. package/dist/components/Accordion/validate.test.d.ts +1 -0
  17. package/dist/components/AccordionGroup/index.d.ts +1 -0
  18. package/dist/components/AccordionGroup/index.js +41 -4
  19. package/dist/components/AccordionGroup/validate.d.ts +3 -0
  20. package/dist/components/AccordionGroup/validate.test.d.ts +1 -0
  21. package/dist/components/Badge/index.d.ts +1 -0
  22. package/dist/components/Badge/index.js +15 -5
  23. package/dist/components/Badge/props.d.ts +13 -9
  24. package/dist/components/Badge/validate.d.ts +5 -0
  25. package/dist/components/Badge/validate.test.d.ts +1 -0
  26. package/dist/components/Body/index.d.ts +1 -0
  27. package/dist/components/Body/index.js +44 -5
  28. package/dist/components/Body/props.d.ts +3 -3
  29. package/dist/components/Body/validate.d.ts +8 -0
  30. package/dist/components/Body/validate.test.d.ts +1 -0
  31. package/dist/components/BottomBar/index.js +3 -3
  32. package/dist/components/Button/ButtonAppearanceHelper.d.ts +1 -1
  33. package/dist/components/Button/index.d.ts +1 -0
  34. package/dist/components/Button/index.js +10 -7
  35. package/dist/components/Button/props.d.ts +0 -5
  36. package/dist/components/Button/styled.d.ts +1 -1
  37. package/dist/components/Button/validate.d.ts +6 -0
  38. package/dist/components/Button/validate.test.d.ts +1 -0
  39. package/dist/components/ButtonAsLink/index.d.ts +1 -0
  40. package/dist/components/ButtonAsLink/index.js +6 -2
  41. package/dist/components/ButtonAsLink/validate.d.ts +4 -0
  42. package/dist/components/ButtonAsLink/validate.test.d.ts +1 -0
  43. package/dist/components/ButtonGroup/index.d.ts +1 -0
  44. package/dist/components/ButtonGroup/index.js +49 -5
  45. package/dist/components/ButtonGroup/validate.d.ts +6 -0
  46. package/dist/components/ButtonGroup/validate.test.d.ts +1 -0
  47. package/dist/components/Card/index.d.ts +1 -0
  48. package/dist/components/Card/index.js +35 -4
  49. package/dist/components/Card/props.d.ts +3 -3
  50. package/dist/components/Card/validate.d.ts +5 -0
  51. package/dist/components/Card/validate.test.d.ts +1 -0
  52. package/dist/components/Carousel/components/CarouselNavigation.d.ts +0 -2
  53. package/dist/components/Carousel/index.js +8 -8
  54. package/dist/components/Checkbox/index.js +7 -5
  55. package/dist/components/CheckboxGroup/index.js +3 -3
  56. package/dist/components/Collapsible/index.js +4 -4
  57. package/dist/components/ColorSwatch/index.d.ts +1 -0
  58. package/dist/components/ColorSwatch/index.js +31 -6
  59. package/dist/components/ColorSwatch/validate.d.ts +4 -0
  60. package/dist/components/ColorSwatch/validate.test.d.ts +1 -0
  61. package/dist/components/ColorSwatchGroup/index.d.ts +1 -0
  62. package/dist/components/ColorSwatchGroup/index.js +35 -6
  63. package/dist/components/ColorSwatchGroup/props.d.ts +1 -1
  64. package/dist/components/ColorSwatchGroup/validate.d.ts +4 -0
  65. package/dist/components/ColorSwatchGroup/validate.test.d.ts +1 -0
  66. package/dist/components/ConsentMessage/index.d.ts +1 -0
  67. package/dist/components/ConsentMessage/index.js +6 -5
  68. package/dist/components/Container/index.d.ts +1 -0
  69. package/dist/components/Container/index.js +36 -65
  70. package/dist/components/Container/props.d.ts +14 -3
  71. package/dist/components/Container/validate.d.ts +5 -0
  72. package/dist/components/Container/validate.test.d.ts +1 -0
  73. package/dist/components/DateInput/index.js +5 -3
  74. package/dist/components/DateInput/styled.d.ts +1 -2
  75. package/dist/components/DemoBox/index.js +6 -4
  76. package/dist/components/Dialog/index.js +7 -7
  77. package/dist/components/DiscoveryCard/components/DiscoveryCardLinkedImage.d.ts +1 -1
  78. package/dist/components/DiscoveryCard/index.d.ts +1 -0
  79. package/dist/components/DiscoveryCard/index.js +72 -15
  80. package/dist/components/DiscoveryCard/props.d.ts +3 -3
  81. package/dist/components/DiscoveryCard/styled.d.ts +1 -1
  82. package/dist/components/DiscoveryCard/validate.d.ts +3 -0
  83. package/dist/components/DiscoveryCard/validate.test.d.ts +1 -0
  84. package/dist/components/DiscoveryCardGroup/index.d.ts +1 -0
  85. package/dist/components/DiscoveryCardGroup/index.js +52 -37
  86. package/dist/components/DiscoveryCardGroup/validate.d.ts +3 -0
  87. package/dist/components/DiscoveryCardGroup/validate.test.d.ts +1 -0
  88. package/dist/components/Divider/index.d.ts +1 -0
  89. package/dist/components/Divider/index.js +17 -25
  90. package/dist/components/Divider/validate.d.ts +3 -0
  91. package/dist/components/Divider/validate.test.d.ts +1 -0
  92. package/dist/components/Fieldset/index.js +3 -3
  93. package/dist/components/FilterGroup/index.js +11 -9
  94. package/dist/components/FilterGroup/props.d.ts +1 -1
  95. package/dist/components/FilterGroup/styled.d.ts +1 -1
  96. package/dist/components/Flex/index.js +2 -2
  97. package/dist/components/Flex/props.d.ts +1 -1
  98. package/dist/components/FlexItem/index.js +2 -2
  99. package/dist/components/FootnoteContent/index.js +3 -3
  100. package/dist/components/FootnoteLink/index.js +2 -2
  101. package/dist/components/Form/index.js +2 -2
  102. package/dist/components/FormElement/index.js +1 -1
  103. package/dist/components/FormHelperLabel/index.js +1 -1
  104. package/dist/components/FormHelperMessage/index.js +2 -2
  105. package/dist/components/FormHelperStatusIcon/index.d.ts +1 -1
  106. package/dist/components/FormHelperStatusIcon/index.js +3 -1
  107. package/dist/components/FormHelperStatusIcon/styled.d.ts +1 -1
  108. package/dist/components/GoogleMap/components/Map/props.d.ts +1 -1
  109. package/dist/components/GoogleMap/index.js +5 -5
  110. package/dist/components/Grid/index.d.ts +1 -0
  111. package/dist/components/Grid/index.js +39 -4
  112. package/dist/components/Grid/props.d.ts +5 -5
  113. package/dist/components/Grid/validate.d.ts +6 -0
  114. package/dist/components/Grid/validate.test.d.ts +1 -0
  115. package/dist/components/GridItem/index.d.ts +1 -0
  116. package/dist/components/GridItem/index.js +32 -3
  117. package/dist/components/GridItem/props.d.ts +2 -2
  118. package/dist/components/GridItem/validate.d.ts +5 -0
  119. package/dist/components/GridItem/validate.test.d.ts +1 -0
  120. package/dist/components/Heading/index.d.ts +1 -0
  121. package/dist/components/Heading/index.js +50 -13
  122. package/dist/components/Heading/props.d.ts +5 -11
  123. package/dist/components/Heading/styled.d.ts +2 -2
  124. package/dist/components/Heading/validate.d.ts +9 -0
  125. package/dist/components/Heading/validate.test.d.ts +1 -0
  126. package/dist/components/HifiIcon/index.js +2 -2
  127. package/dist/components/HifiIcon/props.d.ts +2 -1
  128. package/dist/components/Icon/index.d.ts +2 -2
  129. package/dist/components/Icon/index.js +1 -3
  130. package/dist/components/Icon/props.d.ts +1 -4
  131. package/dist/components/IconButton/index.js +7 -5
  132. package/dist/components/IconButton/props.d.ts +1 -1
  133. package/dist/components/IconLoader/index.d.ts +10 -0
  134. package/dist/components/IconLoader/index.js +9 -0
  135. package/dist/components/IconLoader/props.d.ts +23 -0
  136. package/dist/components/IconLoader/validate.d.ts +4 -0
  137. package/dist/components/IconLoader/validate.test.d.ts +1 -0
  138. package/dist/components/IconSnippet/index.js +7 -5
  139. package/dist/components/IconSnippet/props.d.ts +1 -1
  140. package/dist/components/IconSnippet/styled.d.ts +1 -1
  141. package/dist/components/IconSnippetList/index.js +2 -2
  142. package/dist/components/Image/index.d.ts +1 -0
  143. package/dist/components/Image/index.js +47 -3
  144. package/dist/components/Image/validate.d.ts +8 -0
  145. package/dist/components/Image/validate.test.d.ts +1 -0
  146. package/dist/components/ImageHeader/index.js +8 -8
  147. package/dist/components/ImageHeader/props.d.ts +3 -3
  148. package/dist/components/InlineIcon/index.d.ts +6 -0
  149. package/dist/components/InlineIcon/index.js +36 -0
  150. package/dist/components/InlineIcon/props.d.ts +42 -0
  151. package/dist/components/InlineIcon/styled.d.ts +4 -0
  152. package/dist/components/InlineIcon/validate.d.ts +4 -0
  153. package/dist/components/InlineLink/index.d.ts +1 -0
  154. package/dist/components/InlineLink/index.js +28 -6
  155. package/dist/components/InlineLink/validate.d.ts +3 -0
  156. package/dist/components/InlineLink/validate.test.d.ts +1 -0
  157. package/dist/components/Input/index.js +2 -2
  158. package/dist/components/Label/index.js +1 -1
  159. package/dist/components/Legend/index.js +1 -1
  160. package/dist/components/Link/index.d.ts +1 -0
  161. package/dist/components/Link/index.js +35 -2
  162. package/dist/components/Link/validate.d.ts +3 -0
  163. package/dist/components/Link/validate.test.d.ts +1 -0
  164. package/dist/components/LinkAsButton/index.d.ts +1 -0
  165. package/dist/components/LinkAsButton/index.js +4 -2
  166. package/dist/components/LinkAsButton/validate.d.ts +3 -0
  167. package/dist/components/LinkAsButton/validate.test.d.ts +1 -0
  168. package/dist/components/LinkList/index.js +4 -4
  169. package/dist/components/LinkListItem/index.js +16 -14
  170. package/dist/components/LinkListItem/props.d.ts +2 -2
  171. package/dist/components/LinkListItem/styled.d.ts +2 -2
  172. package/dist/components/LoadingSpinner/index.js +12 -5
  173. package/dist/components/LoadingSpinner/styled.d.ts +1 -1
  174. package/dist/components/MediaText/index.js +26 -26
  175. package/dist/components/MediaText/props.d.ts +9 -9
  176. package/dist/components/MediaText/styled.d.ts +3 -3
  177. package/dist/components/Notification/index.js +10 -8
  178. package/dist/components/Notification/notificationStatusVariants.d.ts +1 -1
  179. package/dist/components/Overlay/index.js +2 -2
  180. package/dist/components/PickerGroup/components/Picker/props.d.ts +6 -4
  181. package/dist/components/PickerGroup/components/PickerElementIcon/index.d.ts +1 -1
  182. package/dist/components/PickerGroup/components/PickerElementIcon/styled.d.ts +1 -1
  183. package/dist/components/PickerGroup/index.js +12 -10
  184. package/dist/components/Price/index.d.ts +1 -0
  185. package/dist/components/Price/index.js +8 -5
  186. package/dist/components/Price/props.d.ts +2 -9
  187. package/dist/components/Price/styled.d.ts +1 -1
  188. package/dist/components/Price/validate.d.ts +6 -0
  189. package/dist/components/Price/validate.test.d.ts +1 -0
  190. package/dist/components/ProductCard/index.js +9 -8
  191. package/dist/components/ProductCard/styled.d.ts +1 -1
  192. package/dist/components/RadioGroup/index.js +5 -5
  193. package/dist/components/Rating/index.js +5 -5
  194. package/dist/components/ResponsiveImage/index.js +2 -2
  195. package/dist/components/ResponsiveImage/props.d.ts +1 -1
  196. package/dist/components/RichText/index.js +1 -1
  197. package/dist/components/RichText/parseHtml.d.ts +1 -1
  198. package/dist/components/RichText/props.d.ts +1 -1
  199. package/dist/components/ScreenreaderOnly/index.js +1 -1
  200. package/dist/components/SearchInput/index.d.ts +2 -1
  201. package/dist/components/SearchInput/index.js +27 -26
  202. package/dist/components/SearchInput/props.d.ts +2 -1
  203. package/dist/components/SearchInput/styled.d.ts +2 -5
  204. package/dist/components/SelectInput/index.js +8 -6
  205. package/dist/components/Stepper/index.js +5 -5
  206. package/dist/components/SuggestInput/index.js +10 -8
  207. package/dist/components/SuggestInput/props.d.ts +1 -1
  208. package/dist/components/SuggestInput/styled.d.ts +2 -2
  209. package/dist/components/Switch/index.js +10 -8
  210. package/dist/components/TabularPrice/index.js +2 -2
  211. package/dist/components/TabularPrice/props.d.ts +1 -1
  212. package/dist/components/TextList/index.js +3 -3
  213. package/dist/components/TextList/props.d.ts +3 -3
  214. package/dist/components/Textarea/index.js +6 -6
  215. package/dist/components/TimeInput/index.js +7 -5
  216. package/dist/components/TimeInput/styled.d.ts +1 -4
  217. package/dist/components/Tray/index.js +6 -6
  218. package/dist/components/Tray/props.d.ts +1 -1
  219. package/dist/components/YoutubeVideo/index.js +2 -2
  220. package/dist/components/YoutubeVideo/props.d.ts +1 -1
  221. package/dist/contentful/LegibleContent.d.ts +20 -0
  222. package/dist/contentful/componentInspectorField.d.ts +5 -0
  223. package/dist/contentful/componentNameToComponent.d.ts +6 -0
  224. package/dist/contentful/index.d.ts +1 -0
  225. package/dist/contentful/index.js +25 -0
  226. package/dist/contentful/live-preview-inspector/index.d.ts +2 -0
  227. package/dist/contentful/live-preview-inspector/index.js +65 -0
  228. package/dist/contentful/live-preview-inspector/props.d.ts +1 -0
  229. package/dist/contentful/live-preview-renderer/index.d.ts +5 -0
  230. package/dist/contentful/live-preview-renderer/index.js +7 -0
  231. package/dist/contentful/live-preview-renderer/props.d.ts +3 -0
  232. package/dist/contentful/map/MapFunction.d.ts +4 -0
  233. package/dist/contentful/map/badge.d.ts +4 -0
  234. package/dist/contentful/map/body.d.ts +4 -0
  235. package/dist/contentful/map/button.d.ts +5 -0
  236. package/dist/contentful/map/card.d.ts +5 -0
  237. package/dist/contentful/map/container.d.ts +7 -0
  238. package/dist/contentful/map/discovery-card-group.d.ts +5 -0
  239. package/dist/contentful/map/discovery-card.d.ts +5 -0
  240. package/dist/contentful/map/divider.d.ts +4 -0
  241. package/dist/contentful/map/heading.d.ts +5 -0
  242. package/dist/contentful/map/icon-loader.d.ts +5 -0
  243. package/dist/contentful/map/image.d.ts +4 -0
  244. package/dist/contentful/map/link.d.ts +5 -0
  245. package/dist/contentful/map/mapContentToComponents.d.ts +20 -0
  246. package/dist/contentful/map/price.d.ts +4 -0
  247. package/dist/contentful/map/richtext.d.ts +8 -0
  248. package/dist/contentful/renderer/index.d.ts +5 -0
  249. package/dist/contentful/renderer/index.js +17 -0
  250. package/dist/contentful/renderer/props.d.ts +7 -0
  251. package/dist/contentful/transform/transformBottomSpacing.d.ts +2 -0
  252. package/dist/contentful/transform/transformIconSize.d.ts +2 -0
  253. package/dist/{easing-Dm-pO8SY.js → easing-CDd2rVn6.js} +2 -2
  254. package/dist/filterProps-C73Li8Na.js +13 -0
  255. package/dist/foundations/GlobalStyle/index.js +1 -1
  256. package/dist/foundations/PatternProps/index.d.ts +1 -1
  257. package/dist/foundations/cssVars.d.ts +2 -2
  258. package/dist/foundations/tags.d.ts +2 -0
  259. package/dist/foundations/token/getBackgroundColor/index.d.ts +1 -1
  260. package/dist/foundations/token/getBodySize/index.d.ts +1 -1
  261. package/dist/foundations/token/getBorderColor/index.d.ts +1 -1
  262. package/dist/foundations/token/getBorderRadius/index.d.ts +1 -1
  263. package/dist/foundations/token/getBorderWidth/index.d.ts +1 -1
  264. package/dist/foundations/token/getFontWeight/index.d.ts +1 -1
  265. package/dist/foundations/token/getHeadingSize/index.d.ts +1 -1
  266. package/dist/foundations/token/getHoverColor/index.d.ts +2 -2
  267. package/dist/foundations/token/getIconColor/index.d.ts +1 -1
  268. package/dist/foundations/token/getObjectColor/index.d.ts +1 -1
  269. package/dist/foundations/token/getOpacity/index.d.ts +1 -1
  270. package/dist/foundations/token/getPressColor/index.d.ts +2 -2
  271. package/dist/foundations/token/getSpacing/index.d.ts +1 -1
  272. package/dist/foundations/token/getTextColor/index.d.ts +1 -1
  273. package/dist/foundations/token/getTextDecoration/index.d.ts +1 -1
  274. package/dist/foundations/types/PositionedIconInterface.d.ts +1 -1
  275. package/dist/foundations/{token/types → types}/Spacing.d.ts +1 -0
  276. package/dist/foundations/types/SystemIconWithPosition.d.ts +1 -1
  277. package/dist/hooks/useViewport/index.d.ts +1 -1
  278. package/dist/icons/index.d.ts +0 -1
  279. package/dist/icons/index.js +1 -603
  280. package/dist/{index-DQhtQZ85.js → index-BI5Xlys3.js} +1 -1
  281. package/dist/{index-CKvLGUdD.js → index-BUCDNHMw.js} +49 -8
  282. package/dist/index-CN-gxxgB.js +99 -0
  283. package/dist/{index-WLBo71sp.js → index-CiBLxGmR.js} +55 -29
  284. package/dist/index-DEYEyjbU.js +20136 -0
  285. package/dist/index-Dv7RoWED.js +600 -0
  286. package/dist/{index-DrySIh-D.js → index-E8AZ8kiW.js} +38 -8
  287. package/dist/{index-BRs8j3Vq.js → index-nyF1sqYr.js} +5 -5
  288. package/dist/index.d.ts +8 -0
  289. package/dist/index.js +221 -118
  290. package/dist/isBottomSpacing-DSLyqm7h.js +10 -0
  291. package/dist/isObject-BYBrvoVW.js +19 -0
  292. package/dist/props-7dcsjRUx.js +28 -0
  293. package/dist/{styled-CYugcGtx.js → styled-8Td4Oj0t.js} +4 -4
  294. package/dist/{styled-03irSJOQ.js → styled-9UD_-g7q.js} +6 -6
  295. package/dist/{styled-ODPFCF1a.js → styled-AUfIpwZf.js} +4 -4
  296. package/dist/styled-COXTMhJ1.js +27 -0
  297. package/dist/styled-DSAEfZJQ.js +69 -0
  298. package/dist/{styled-B0YKfXTz.js → styled-DTFUPagl.js} +2 -2
  299. package/dist/{styled-DLS1p_AJ.js → styled-D_wUvoV0.js} +13 -9
  300. package/dist/{styled-ZpQohvyx.js → styled-DrQft35m.js} +2 -2
  301. package/dist/{styled-DMUiOi24.js → styled-DtJ7ZhhG.js} +4 -4
  302. package/dist/{index-57IF0yrd.js → styled-DwtGn2if.js} +5 -20
  303. package/dist/styled-HZzB_zPP.js +53 -0
  304. package/dist/styled-Lkb8cDS-.js +42 -0
  305. package/dist/{styled-Cqp2oSjW.js → styled-oOq50bDL.js} +4 -4
  306. package/dist/{tags-DI6H1biK.js → tags-CixnzWW0.js} +17 -8
  307. package/package.json +5 -1
  308. package/dist/Spacing-D0HQH9YJ.js +0 -16
  309. package/dist/filterProps-Cewck8OH.js +0 -13
  310. package/dist/index-Cbojl4_Q.js +0 -7134
  311. /package/dist/foundations/{token/types → types}/BackgroundColor.d.ts +0 -0
  312. /package/dist/foundations/{token/types → types}/BorderColor.d.ts +0 -0
  313. /package/dist/foundations/{token/types → types}/BorderRadius.d.ts +0 -0
  314. /package/dist/foundations/{token/types → types}/BorderWidth.d.ts +0 -0
  315. /package/dist/foundations/{token/types → types}/FontWeight.d.ts +0 -0
  316. /package/dist/foundations/{token/types → types}/HeadingSize.d.ts +0 -0
  317. /package/dist/foundations/{token/types → types}/IconColor.d.ts +0 -0
  318. /package/dist/foundations/{token/types → types}/ObjectColor.d.ts +0 -0
  319. /package/dist/foundations/{token/types → types}/Opacity.d.ts +0 -0
  320. /package/dist/foundations/{token/types → types}/TextBodySize.d.ts +0 -0
  321. /package/dist/foundations/{token/types → types}/TextColor.d.ts +0 -0
  322. /package/dist/foundations/{token/types → types}/TextDecoration.d.ts +0 -0
  323. /package/dist/foundations/{token/types → types}/Viewport.d.ts +0 -0
@@ -1,76 +1,47 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
5
- import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
6
- import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
7
- import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
- import { getTextColor } from "../../foundations/token/getTextColor/index.js";
9
- import { j as colorBorderSubtle } from "../../BorderColor-BummoQ1-.js";
10
- import { e as borderWidthDivider } from "../../BorderWidth-DfOlyKK7.js";
11
- import { d as spacingXl, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
12
- import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
13
- import { f as filterProps } from "../../filterProps-Cewck8OH.js";
14
- import { f as colorBackgroundBrand, e as colorBackgroundBrandGradient, a as colorBackgroundSubtle, c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
15
- const ContainerAppearanceColor = {
16
- primary: colorBackgroundNeutral,
17
- secondary: colorBackgroundSubtle,
18
- tertiary: colorBackgroundBrandGradient,
19
- alternative: colorBackgroundBrand
20
- };
21
- const ContainerBackgroundStyled = styled.div.withConfig({
22
- shouldForwardProp: filterProps(),
23
- displayName: "ContainerBackgroundStyled",
24
- componentId: "sc-a9r652-0"
25
- })({
26
- color: getTextColor(colorTextNeutral)
27
- }, ({
28
- padding = spacingXl
29
- }) => ({
30
- paddingTop: getSpacing(padding),
31
- paddingBottom: getSpacing(padding)
32
- }), ({
33
- appearance = "primary"
34
- }) => {
35
- return {
36
- background: getBackgroundColor(ContainerAppearanceColor[appearance])
37
- };
38
- }, ({
39
- border = false
40
- }) => {
41
- if (!border) {
42
- return {};
3
+ import { a as ContainerBackgroundStyled, b as ContainerCenterStyled } from "../../styled-DSAEfZJQ.js";
4
+ import { C } from "../../styled-DSAEfZJQ.js";
5
+ import { b as spacingNone, d as spacingXl, g as spacing5Xl } from "../../Spacing-BzNNxYMI.js";
6
+ const containerAppearances = ["primary", "secondary", "tertiary", "alternative"];
7
+ const containerPaddings = [spacingNone, spacingXl, spacing5Xl];
8
+ const validateContainerProps = (props) => {
9
+ if (!props || typeof props !== "object") {
10
+ return false;
11
+ }
12
+ const containerProps = props;
13
+ if (!containerProps.component || containerProps.component !== "Container") {
14
+ return false;
15
+ }
16
+ if (containerProps.appearance !== void 0 && !containerAppearances.includes(containerProps.appearance)) {
17
+ return false;
18
+ }
19
+ if (containerProps.border !== void 0 && typeof containerProps.border !== "boolean") {
20
+ return false;
43
21
  }
44
- return {
45
- borderBottom: `${getBorderWidth(borderWidthDivider)} solid ${getBorderColor(colorBorderSubtle)}`
46
- };
47
- });
48
- const maxWidthBreakpoint = "1280px";
49
- const maxWidthViewport = (stylesInViewport) => {
50
- return {
51
- [`@media screen and (min-width: ${maxWidthBreakpoint})`]: {
52
- ...stylesInViewport
53
- }
54
- };
22
+ if (containerProps.padding !== void 0 && !containerPaddings.includes(containerProps.padding)) {
23
+ return false;
24
+ }
25
+ if (containerProps.children === void 0) {
26
+ return false;
27
+ }
28
+ return true;
29
+ };
30
+ const isContainerProps = (props) => {
31
+ return validateContainerProps(props);
55
32
  };
56
- const ContainerCenterStyled = styled.div.withConfig({
57
- displayName: "ContainerCenterStyled",
58
- componentId: "sc-a9r652-1"
59
- })({
60
- marginLeft: getSpacing(spacingMd),
61
- marginRight: getSpacing(spacingMd)
62
- }, maxWidthViewport({
63
- maxWidth: `1240px`,
64
- marginLeft: "auto",
65
- marginRight: "auto"
66
- }));
67
33
  const Container = ({
68
34
  className,
69
35
  children,
70
36
  appearance = "primary",
37
+ tag = "div",
71
38
  ...props
72
- }) => /* @__PURE__ */ jsx(ContainerBackgroundStyled, { className: `${className ? className : ""} ${["tertiary", "alternative"].indexOf(appearance) > -1 ? "Dark" : props.theme}`, appearance, ...props, children: /* @__PURE__ */ jsx(ContainerCenterStyled, { children }) });
39
+ }) => /* @__PURE__ */ jsx(ContainerBackgroundStyled, { className: `${className ? className : ""} ${["tertiary", "alternative"].indexOf(appearance) > -1 ? "Dark" : props.theme}`, appearance, as: tag, ...props, children: /* @__PURE__ */ jsx(ContainerCenterStyled, { children }) });
73
40
  export {
74
- ContainerAppearanceColor,
75
- Container as default
41
+ C as ContainerAppearanceColor,
42
+ containerAppearances,
43
+ containerPaddings,
44
+ Container as default,
45
+ isContainerProps,
46
+ validateContainerProps
76
47
  };
@@ -1,11 +1,17 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- import { BackgroundColor } from '../../foundations/token/types/BackgroundColor';
3
- import { spacing5Xl, spacingNone, spacingXl } from '../../foundations/token/types/Spacing';
2
+ import { PatternProps } from '../../foundations/PatternProps';
3
+ import { articleTagName, asideTagName, divTagName, mainTagName, navTagName, sectionTagName } from '../../foundations/tags';
4
+ import { BackgroundColor } from '../../foundations/types/BackgroundColor.ts';
5
+ import { spacing5Xl, spacingNone, spacingXl } from '../../foundations/types/Spacing.ts';
4
6
  import { Theme } from '../../foundations/types/Theme';
5
7
  export type Padding = typeof spacingNone | typeof spacingXl | typeof spacing5Xl;
6
8
  export type ContainerAppearance = 'primary' | 'secondary' | 'tertiary' | 'alternative';
7
9
  export declare const ContainerAppearanceColor: Record<ContainerAppearance, BackgroundColor>;
8
- export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
10
+ export type ContainerTag = typeof divTagName | typeof sectionTagName | typeof articleTagName | typeof asideTagName | typeof mainTagName | typeof navTagName;
11
+ export interface ContainerProps extends Omit<PatternProps, 'bottomSpacing'>, HTMLAttributes<HTMLDivElement> {
12
+ /**
13
+ * children is mandatory
14
+ */
9
15
  children: ReactNode;
10
16
  /**
11
17
  * Pin component's name from string to the concrete name
@@ -24,4 +30,9 @@ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
24
30
  */
25
31
  padding?: Padding;
26
32
  theme?: Theme;
33
+ /**
34
+ * use a different html tag to render Container
35
+ * ```div``` is default
36
+ */
37
+ tag?: ContainerTag;
27
38
  }
@@ -0,0 +1,5 @@
1
+ import { ContainerAppearance, ContainerProps, Padding } from './props';
2
+ export declare const containerAppearances: ContainerAppearance[];
3
+ export declare const containerPaddings: Padding[];
4
+ export declare const validateContainerProps: (props: unknown) => boolean;
5
+ export declare const isContainerProps: (props: unknown) => props is ContainerProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,16 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import { aW as CalendarMonthIcon, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
4
3
  import { forwardRef, useRef, useImperativeHandle } from "react";
5
4
  import FormElement from "../FormElement/index.js";
6
5
  import FormHelperLabel from "../FormHelperLabel/index.js";
7
6
  import FormHelperMessage from "../FormHelperMessage/index.js";
8
7
  import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
8
+ import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
9
+ import "../../styled-HZzB_zPP.js";
9
10
  import { a as inputStateError } from "../../props-DDpgcryb.js";
10
- import { a as InputStyled, I as InputWrapperStyled } from "../../styled-03irSJOQ.js";
11
- import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
11
+ import { a as InputStyled, I as InputWrapperStyled } from "../../styled-9UD_-g7q.js";
12
+ import { s as spacingMd, a as spacingXs } from "../../Spacing-BzNNxYMI.js";
13
+ import { e as CalendarMonthIcon } from "../../index-DEYEyjbU.js";
12
14
  import styled from "styled-components";
13
15
  const CalendarMonthIconStyled = styled(CalendarMonthIcon).withConfig({
14
16
  displayName: "CalendarMonthIconStyled",
@@ -1,4 +1,3 @@
1
- import { InlineIconProps } from '@vfde-react/inline-icon-library';
2
1
  import { InputHTMLAttributes } from 'react';
3
- export declare const CalendarMonthIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<InlineIconProps, InlineIconProps>> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
2
+ export declare const CalendarMonthIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", any> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
4
3
  export declare const DateInputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof InputHTMLAttributes<HTMLInputElement>> & InputHTMLAttributes<HTMLInputElement>, InputHTMLAttributes<HTMLInputElement>>> & string;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import IconSnippet from "../IconSnippet/index.js";
4
- import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
5
- import { g as getUid } from "../../index-BRs8j3Vq.js";
6
- import { D as DemoBoxStyled } from "../../styled-ODPFCF1a.js";
4
+ import { t as textHeadingXs } from "../../HeadingSize-BoyxJlpz.js";
5
+ import { g as getUid } from "../../index-nyF1sqYr.js";
6
+ import { D as DemoBoxStyled } from "../../styled-AUfIpwZf.js";
7
7
  const heading = {
8
8
  component: "Heading",
9
9
  children: "Child component",
@@ -15,7 +15,9 @@ const richText = {
15
15
  html: "<p>This is a placeholder.</p>",
16
16
  uid: getUid()
17
17
  };
18
- const DemoBox = (props) => /* @__PURE__ */ jsx(DemoBoxStyled, { ...props, children: /* @__PURE__ */ jsx(IconSnippet, { size: "small", icon: "Sync", bottomSpacing: "None", contents: [heading, richText] }) });
18
+ const DemoBox = (props) => /* @__PURE__ */ jsx(DemoBoxStyled, { ...props, children: /* @__PURE__ */ jsx(IconSnippet, { size: "sm", icon: {
19
+ name: "Sync"
20
+ }, bottomSpacing: "None", contents: [heading, richText] }) });
19
21
  export {
20
22
  DemoBox as default
21
23
  };
@@ -2,21 +2,21 @@
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";
6
- import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
7
- import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
8
5
  import Heading from "../Heading/index.js";
6
+ import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
7
+ import { a as textHeadingMd } from "../../HeadingSize-BoyxJlpz.js";
8
+ import { s as spacingMd, b as spacingNone } from "../../Spacing-BzNNxYMI.js";
9
9
  import styled from "styled-components";
10
10
  import ButtonGroup from "../ButtonGroup/index.js";
11
11
  import Card from "../Card/index.js";
12
+ import Flex from "../Flex/index.js";
12
13
  import IconButton from "../IconButton/index.js";
13
14
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
14
15
  import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
15
16
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
16
- import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
17
- import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
18
- import { f as filterProps } from "../../filterProps-Cewck8OH.js";
19
- import Flex from "../Flex/index.js";
17
+ import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-DSOSZvNi.js";
18
+ import { a as borderWidthFocus } from "../../BorderWidth-CTOda7Cp.js";
19
+ import { f as filterProps } from "../../filterProps-C73Li8Na.js";
20
20
  const DialogOverlayStyled = styled.div.withConfig({
21
21
  shouldForwardProp: filterProps(),
22
22
  displayName: "DialogOverlayStyled",
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { DiscoveryCardProps } from '../props';
2
+ import { DiscoveryCardProps } from '..';
3
3
  declare const DiscoveryCardLinkedImage: FC<Pick<DiscoveryCardProps, 'uid' | 'image' | 'link' | 'orientation' | 'bottomSpacing'>>;
4
4
  export default DiscoveryCardLinkedImage;
@@ -3,3 +3,4 @@ import { DiscoveryCardProps } from './props';
3
3
  declare const DiscoveryCard: FC<DiscoveryCardProps>;
4
4
  export default DiscoveryCard;
5
5
  export * from './props';
6
+ export * from './validate';
@@ -1,24 +1,33 @@
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";
6
- import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
7
- import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from "../../Spacing-D0HQH9YJ.js";
4
+ import { e as BadgeStyled, i as isBadgeProps, B as Badge } from "../../index-BUCDNHMw.js";
5
+ import Body, { isBodyProps, bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
6
+ import Heading, { isHeadingProps } from "../Heading/index.js";
7
+ import Link, { isLinkProps } from "../Link/index.js";
8
+ import { k as isPriceProps, b as priceSizeSm, P as Price, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-CiBLxGmR.js";
9
+ import { R as RichText } from "../../index-nyF1sqYr.js";
10
+ import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
11
+ import { b as textHeadingSm } from "../../HeadingSize-BoyxJlpz.js";
8
12
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
9
- import { b as BadgeStyled, B as Badge } from "../../index-CKvLGUdD.js";
10
- import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
11
- import Heading from "../Heading/index.js";
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";
14
- import Image, { aspectRatio16_9, aspectRatio1_1 } from "../Image/index.js";
15
- import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
13
+ import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from "../../Spacing-BzNNxYMI.js";
14
+ import "../../NotificationErrorIcon-DMnAJgPN.js";
15
+ import "../../styled-HZzB_zPP.js";
16
+ import "html-react-parser";
17
+ import "../../index-BI5Xlys3.js";
18
+ import "../FootnoteLink/index.js";
19
+ import "../../styled-D_wUvoV0.js";
20
+ import { a as LinkStyled } from "../../index-E8AZ8kiW.js";
21
+ import "../InlineLink/index.js";
22
+ import "uuid";
16
23
  import styled from "styled-components";
24
+ import Card from "../Card/index.js";
25
+ import Image, { aspectRatio16_9, aspectRatio1_1, isImageProps } from "../Image/index.js";
17
26
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
18
27
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
19
- import { f as filterProps } from "../../filterProps-Cewck8OH.js";
20
- import Card from "../Card/index.js";
21
- import { a as LinkStyled } from "../../index-DrySIh-D.js";
28
+ import { f as filterProps } from "../../filterProps-C73Li8Na.js";
29
+ import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
30
+ import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
22
31
  const discoveryCardOrientationVertical = "vertical";
23
32
  const discoveryCardOrientationHorizontal = "horizontal";
24
33
  const DiscoveryCardStyled = styled(Card).withConfig({
@@ -99,6 +108,52 @@ const DiscoveryCardLinkedImage = ({
99
108
  orientation = discoveryCardOrientationVertical,
100
109
  bottomSpacing
101
110
  }) => /* @__PURE__ */ jsx(DiscoveryCardImageLinkStyled, { ...linkProps, tabIndex: -1, "aria-describedby": `headingId-${uid}`, orientation, bottomSpacing, children: /* @__PURE__ */ jsx(Image, { ...image, aspectRatio: orientation === discoveryCardOrientationVertical ? aspectRatio16_9 : aspectRatio1_1, corners: cornerRounded }) });
111
+ const validateDiscoveryCardProps = (props) => {
112
+ if (!isObject(props)) {
113
+ return false;
114
+ }
115
+ const p = props;
116
+ if (!hasMatchingComponentName(p.component, "DiscoveryCard")) {
117
+ return false;
118
+ }
119
+ if (!p.uid || typeof p.uid !== "string") {
120
+ return false;
121
+ }
122
+ if (p.orientation && ![discoveryCardOrientationVertical, discoveryCardOrientationHorizontal].includes(p.orientation)) {
123
+ return false;
124
+ }
125
+ if (!p.image || false === isImageProps({
126
+ ...p.image,
127
+ aspectRatio: aspectRatio1_1
128
+ })) {
129
+ return false;
130
+ }
131
+ if (!p.heading || false === isHeadingProps({
132
+ ...p.heading,
133
+ size: textHeadingSm
134
+ })) {
135
+ return false;
136
+ }
137
+ if (!p.link || false === isLinkProps(p.link)) {
138
+ return false;
139
+ }
140
+ if (p.badge && false === isBadgeProps(p.badge)) {
141
+ return false;
142
+ }
143
+ if (p.body && false === isBodyProps(p.body)) {
144
+ return false;
145
+ }
146
+ if (p.price && false === isPriceProps({
147
+ ...p.price,
148
+ size: priceSizeSm
149
+ })) {
150
+ return false;
151
+ }
152
+ return true;
153
+ };
154
+ const isDiscoveryCardProps = (props) => {
155
+ return validateDiscoveryCardProps(props);
156
+ };
102
157
  const DiscoveryCard = ({
103
158
  orientation = discoveryCardOrientationVertical,
104
159
  uid,
@@ -126,5 +181,7 @@ const DiscoveryCard = ({
126
181
  export {
127
182
  DiscoveryCard as default,
128
183
  discoveryCardOrientationHorizontal,
129
- discoveryCardOrientationVertical
184
+ discoveryCardOrientationVertical,
185
+ isDiscoveryCardProps,
186
+ validateDiscoveryCardProps
130
187
  };
@@ -1,12 +1,12 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { BadgeProps } from '../Badge/props';
3
+ import { BodyProps } from '../Body';
4
+ import { HeadingProps } from '../Heading';
3
5
  import { ImageProps } from '../Image/props';
4
6
  import { LinkProps } from '../Link/props';
5
7
  import { PriceProps } from '../Price/props';
6
- import { PatternProps } from '../../foundations/PatternProps';
7
- import { BodyProps } from '../Body';
8
- import { HeadingProps } from '../Heading';
9
8
  import { RichTextProps } from '../RichText';
9
+ import { PatternProps } from '../../foundations/PatternProps';
10
10
  export declare const discoveryCardOrientationVertical = "vertical";
11
11
  export declare const discoveryCardOrientationHorizontal = "horizontal";
12
12
  export type DiscoveryCardOrientation = typeof discoveryCardOrientationVertical | typeof discoveryCardOrientationHorizontal;
@@ -2,5 +2,5 @@ import { AnchorHTMLAttributes } from 'react';
2
2
  import { DiscoveryCardProps } from './props';
3
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>>;
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
- 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;
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, "bottomSpacing" | "orientation"> & 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>>;
@@ -0,0 +1,3 @@
1
+ import { DiscoveryCardProps } from './props';
2
+ export declare const validateDiscoveryCardProps: (props: unknown) => props is DiscoveryCardProps;
3
+ export declare const isDiscoveryCardProps: (props: unknown) => props is DiscoveryCardProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -3,3 +3,4 @@ import { DiscoveryCardGroupProps } from './props';
3
3
  declare const DiscoveryCardGroup: FC<DiscoveryCardGroupProps>;
4
4
  export default DiscoveryCardGroup;
5
5
  export * from './props';
6
+ export * from './validate';
@@ -1,42 +1,55 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import DiscoveryCard, { discoveryCardOrientationVertical } from "../DiscoveryCard/index.js";
5
- import Grid from "../Grid/index.js";
6
- import GridItem from "../GridItem/index.js";
7
- import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
- import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
9
- import { a as LinkStyled } from "../../index-DrySIh-D.js";
10
- const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
11
- displayName: "DiscoveryCardGroupGridStyled",
12
- componentId: "sc-6axszn-0"
13
- })({
14
- alignItems: "stretch"
15
- });
16
- const DiscoveryCardGroupGridItemStyled = styled(GridItem).withConfig({
17
- displayName: "DiscoveryCardGroupGridItemStyled",
18
- componentId: "sc-6axszn-1"
19
- })({
20
- gap: getSpacing(spacingMd)
21
- });
22
- const DiscoveryCardStyled = styled(DiscoveryCard).withConfig({
23
- displayName: "DiscoveryCardStyled",
24
- componentId: "sc-6axszn-2"
25
- })({
26
- flex: 1,
27
- marginBottom: 0
28
- }, ({
29
- orientation
30
- }) => {
31
- const css = {};
32
- if (orientation === discoveryCardOrientationVertical) {
33
- const buttonSelector = `& ${LinkStyled.toString()}`;
34
- css[buttonSelector] = {
35
- marginTop: "auto"
36
- };
3
+ import { D as DiscoveryCardGroupGridStyled, a as DiscoveryCardGroupGridItemStyled, b as DiscoveryCardStyled } from "../../styled-Lkb8cDS-.js";
4
+ import "react";
5
+ import "../../NotificationErrorIcon-DMnAJgPN.js";
6
+ import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
7
+ import "../../styled-HZzB_zPP.js";
8
+ import "html-react-parser";
9
+ import "../../index-BUCDNHMw.js";
10
+ import "../Body/index.js";
11
+ import "../../index-BI5Xlys3.js";
12
+ import "../FootnoteLink/index.js";
13
+ import "../Heading/index.js";
14
+ import "../../styled-D_wUvoV0.js";
15
+ import "../../index-E8AZ8kiW.js";
16
+ import "../../index-CiBLxGmR.js";
17
+ import "../InlineLink/index.js";
18
+ import "../../index-nyF1sqYr.js";
19
+ import "uuid";
20
+ import { validateDiscoveryCardProps, discoveryCardOrientationVertical, discoveryCardOrientationHorizontal } from "../DiscoveryCard/index.js";
21
+ import "../Image/index.js";
22
+ const validateDiscoveryCardGroupProps = (props) => {
23
+ if (!isObject(props)) {
24
+ return false;
37
25
  }
38
- return css;
39
- });
26
+ const p = props;
27
+ if (!hasMatchingComponentName(p.component, "DiscoveryCardGroup")) {
28
+ return false;
29
+ }
30
+ if (!p.uid || typeof p.uid !== "string") {
31
+ return false;
32
+ }
33
+ if (!Array.isArray(p.discoveryCardsList) || p.discoveryCardsList.length !== 3) {
34
+ return false;
35
+ }
36
+ for (let i = 0; i < p.discoveryCardsList.length; i++) {
37
+ const card = p.discoveryCardsList[i];
38
+ if (!validateDiscoveryCardProps(card)) {
39
+ return false;
40
+ }
41
+ if (i === 0 && card.orientation !== discoveryCardOrientationVertical) {
42
+ return false;
43
+ }
44
+ if (i > 0 && card.orientation !== discoveryCardOrientationHorizontal) {
45
+ return false;
46
+ }
47
+ }
48
+ return true;
49
+ };
50
+ const isDiscoveryCardGroupProps = (props) => {
51
+ return validateDiscoveryCardGroupProps(props);
52
+ };
40
53
  const DiscoveryCardGroup = ({
41
54
  component: _component,
42
55
  discoveryCardsList,
@@ -49,5 +62,7 @@ const DiscoveryCardGroup = ({
49
62
  ] })
50
63
  ] });
51
64
  export {
52
- DiscoveryCardGroup as default
65
+ DiscoveryCardGroup as default,
66
+ isDiscoveryCardGroupProps,
67
+ validateDiscoveryCardGroupProps
53
68
  };
@@ -0,0 +1,3 @@
1
+ import { DiscoveryCardGroupProps } from './props';
2
+ export declare const validateDiscoveryCardGroupProps: (props: unknown) => props is DiscoveryCardGroupProps;
3
+ export declare const isDiscoveryCardGroupProps: (props: unknown) => props is DiscoveryCardGroupProps;
@@ -3,3 +3,4 @@ import { DividerProps } from './props';
3
3
  declare const Divider: FC<DividerProps>;
4
4
  export default Divider;
5
5
  export * from './props';
6
+ export * from './validate';
@@ -1,30 +1,22 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import forcedColors from "../../foundations/media-query/forcedColors/index.js";
5
- import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
6
- import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
7
- import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
8
- import { j as colorBorderSubtle } from "../../BorderColor-BummoQ1-.js";
9
- import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
10
- import { f as filterProps } from "../../filterProps-Cewck8OH.js";
11
- const DividerLineStyled = styled.hr.withConfig({
12
- shouldForwardProp: filterProps(),
13
- displayName: "DividerLineStyled",
14
- componentId: "sc-1lpd5g7-0"
15
- })({
16
- ...forcedColors({
17
- border: `${getBorderWidth("Divider")} solid CanvasText`
18
- }),
19
- border: `${getBorderWidth("Divider")} solid ${getBorderColor(colorBorderSubtle)}`,
20
- borderBottom: "none",
21
- width: "100%"
22
- }, ({
23
- bottomSpacing = spacingMd
24
- }) => getBottomSpacing({
25
- bottomSpacing
26
- }));
3
+ import { D as DividerLineStyled } from "../../styled-COXTMhJ1.js";
4
+ const validateDividerProps = (props) => {
5
+ if (!props || typeof props !== "object") {
6
+ return false;
7
+ }
8
+ const dividerProps = props;
9
+ if (dividerProps.component !== "Divider") {
10
+ return false;
11
+ }
12
+ return true;
13
+ };
14
+ const isDividerProps = (props) => {
15
+ return validateDividerProps(props);
16
+ };
27
17
  const Divider = (props) => /* @__PURE__ */ jsx(DividerLineStyled, { ...props });
28
18
  export {
29
- Divider as default
19
+ Divider as default,
20
+ isDividerProps,
21
+ validateDividerProps
30
22
  };
@@ -0,0 +1,3 @@
1
+ import { DividerProps } from './props';
2
+ export declare const validateDividerProps: (props: unknown) => props is DividerProps;
3
+ export declare const isDividerProps: (props: unknown) => props is DividerProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import { eB as NotificationErrorIcon } from "../../index-Cbojl4_Q.js";
3
+ import { N as NotificationErrorIcon } from "../../NotificationErrorIcon-DMnAJgPN.js";
4
4
  import { forwardRef } from "react";
5
5
  import FormHelperMessage from "../FormHelperMessage/index.js";
6
6
  import { a as inputStateError } from "../../props-DDpgcryb.js";
7
7
  import Legend from "../Legend/index.js";
8
- import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
8
+ import { s as spacingMd } from "../../Spacing-BzNNxYMI.js";
9
9
  import styled from "styled-components";
10
10
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
11
- import { f as filterProps } from "../../filterProps-Cewck8OH.js";
11
+ import { f as filterProps } from "../../filterProps-C73Li8Na.js";
12
12
  const FieldsetStyled = styled.fieldset.withConfig({
13
13
  shouldForwardProp: filterProps(),
14
14
  displayName: "FieldsetStyled",