@sok-brand-sites/common-frontend-components 0.0.1-security → 1.643.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @sok-brand-sites/common-frontend-components might be problematic. Click here for more details.

Files changed (211) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -3
  3. package/dist/_virtual/_tslib.js +234 -0
  4. package/dist/assets/icons/Icons.js +118 -0
  5. package/dist/assets/logos/logos.js +19 -0
  6. package/dist/components/Accordion/Accordion.js +36 -0
  7. package/dist/components/Accordion/Accordion.styles.js +75 -0
  8. package/dist/components/AnimationWrapper/AnimationWrapper.js +35 -0
  9. package/dist/components/AnimationWrapper/AnimationWrapper.styles.js +26 -0
  10. package/dist/components/BlockGenerator/BlockContent.js +139 -0
  11. package/dist/components/BlockGenerator/BlockGenerator.js +62 -0
  12. package/dist/components/BlockGenerator/BlockGenerator.styles.js +44 -0
  13. package/dist/components/Button/Button.js +49 -0
  14. package/dist/components/Button/Button.styles.js +46 -0
  15. package/dist/components/Card/Card.js +79 -0
  16. package/dist/components/Card/Card.styles.js +137 -0
  17. package/dist/components/Carousel/Carousel.js +153 -0
  18. package/dist/components/Carousel/Carousel.styles.js +261 -0
  19. package/dist/components/CarouselNarrow/CarouselNarrow.js +120 -0
  20. package/dist/components/CarouselNarrow/CarouselNarrow.styles.js +281 -0
  21. package/dist/components/Column/Column.js +31 -0
  22. package/dist/components/Column/Column.styles.js +34 -0
  23. package/dist/components/Columns/Columns.js +38 -0
  24. package/dist/components/Columns/Columns.styles.js +21 -0
  25. package/dist/components/Embed/Embed.js +54 -0
  26. package/dist/components/Embed/Embed.styles.js +12 -0
  27. package/dist/components/Footer/Footer.js +63 -0
  28. package/dist/components/Footer/Footer.styles.js +67 -0
  29. package/dist/components/FormBuilder/FormBuilder.js +364 -0
  30. package/dist/components/FormBuilder/FormBuilder.styles.js +224 -0
  31. package/dist/components/FormBuilder/FormBuilderCheckboxes.js +39 -0
  32. package/dist/components/FormBuilder/FormBuilderInput.js +29 -0
  33. package/dist/components/FormBuilder/FormBuilderParagraph.js +15 -0
  34. package/dist/components/FormBuilder/FormBuilderSelect.js +39 -0
  35. package/dist/components/FormBuilder/FormBuilderTextAreaInput.js +29 -0
  36. package/dist/components/FormBuilder/utiles.js +13 -0
  37. package/dist/components/FullBgHero/FullBgHero.js +93 -0
  38. package/dist/components/FullBgHero/FullBgHero.styles.js +180 -0
  39. package/dist/components/GlobalStyle/GlobalStyle.js +285 -0
  40. package/dist/components/Header/Header.js +290 -0
  41. package/dist/components/Header/Header.styles.js +314 -0
  42. package/dist/components/Heading/Heading.js +29 -0
  43. package/dist/components/Heading/Heading.styles.js +21 -0
  44. package/dist/components/Hero/Hero.js +76 -0
  45. package/dist/components/Hero/Hero.styles.js +128 -0
  46. package/dist/components/IconLinks/IconLinks.js +118 -0
  47. package/dist/components/IconLinks/IconLinks.styles.js +259 -0
  48. package/dist/components/ImageCarousel/ImageCarousel.js +102 -0
  49. package/dist/components/ImageCarousel/ImageCarousel.styles.js +96 -0
  50. package/dist/components/LanguageSelector/LanguageSelector.js +72 -0
  51. package/dist/components/LanguageSelector/LanguageSelector.styles.js +72 -0
  52. package/dist/components/Layout/Layout.js +15 -0
  53. package/dist/components/Layout/Layout.styles.js +8 -0
  54. package/dist/components/List/List.js +25 -0
  55. package/dist/components/List/List.styles.js +11 -0
  56. package/dist/components/MarginWrapper/MarginWrapper.js +17 -0
  57. package/dist/components/MarginWrapper/MarginWrapper.styles.js +38 -0
  58. package/dist/components/OverlayCards/OverlayCard/OverlayCard.js +132 -0
  59. package/dist/components/OverlayCards/OverlayCard/OverlayCard.styles.js +133 -0
  60. package/dist/components/OverlayCards/OverlayCards.js +46 -0
  61. package/dist/components/OverlayCards/OverlayCards.styles.js +14 -0
  62. package/dist/components/OverlayCards/OverlayCards.types.js +9 -0
  63. package/dist/components/Paragraph/Paragraph.js +29 -0
  64. package/dist/components/Paragraph/Paragraph.styles.js +14 -0
  65. package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.js +45 -0
  66. package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.styles.js +37 -0
  67. package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.js +16 -0
  68. package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.styles.js +44 -0
  69. package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.js +43 -0
  70. package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.styles.js +63 -0
  71. package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.js +77 -0
  72. package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.styles.js +68 -0
  73. package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.js +125 -0
  74. package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.styles.js +32 -0
  75. package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.js +85 -0
  76. package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.styles.js +134 -0
  77. package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.js +142 -0
  78. package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.styles.js +43 -0
  79. package/dist/components/PlaceOfBusiness/Services/Services.js +30 -0
  80. package/dist/components/PlaceOfBusiness/Services/Services.styles.js +61 -0
  81. package/dist/components/PlaceOfBusiness/utils.js +177 -0
  82. package/dist/components/Promotion/Promotion.js +66 -0
  83. package/dist/components/Promotion/Promotion.styles.js +124 -0
  84. package/dist/components/RestrictedWidthContainer/RestrictedWidthContainer.js +63 -0
  85. package/dist/components/Seo/Seo.js +58 -0
  86. package/dist/components/SideBySide/SideBySide.js +81 -0
  87. package/dist/components/SideBySide/SideBySide.styles.js +179 -0
  88. package/dist/components/SocialMediaLinks/SocialMediaLinks.js +28 -0
  89. package/dist/components/SocialMediaLinks/SocialMediaLinks.styles.js +22 -0
  90. package/dist/components/SubHero/SubHero.js +22 -0
  91. package/dist/components/SubHero/SubHero.styles.js +52 -0
  92. package/dist/components/Table/Table.js +23 -0
  93. package/dist/components/Table/Table.styles.js +121 -0
  94. package/dist/components/Table/WpTable.styles.js +5 -0
  95. package/dist/components/constants.js +34 -0
  96. package/dist/components/utils.js +160 -0
  97. package/dist/fonts/Agrandir/Agrandir-Bold.woff.js +2 -0
  98. package/dist/fonts/Agrandir/Agrandir-Bold.woff2.js +2 -0
  99. package/dist/fonts/Agrandir/Agrandir-Light.woff.js +2 -0
  100. package/dist/fonts/Agrandir/Agrandir-Light.woff2.js +2 -0
  101. package/dist/fonts/Agrandir/index.js +16 -0
  102. package/dist/fonts/Brule/Brule-Bold.woff.js +2 -0
  103. package/dist/fonts/Brule/Brule-Bold.woff2.js +2 -0
  104. package/dist/fonts/Brule/Brule-Medium.woff.js +2 -0
  105. package/dist/fonts/Brule/Brule-Medium.woff2.js +2 -0
  106. package/dist/fonts/Brule/Brule-Regular.woff.js +2 -0
  107. package/dist/fonts/Brule/Brule-Regular.woff2.js +2 -0
  108. package/dist/fonts/Brule/index.js +18 -0
  109. package/dist/fonts/Domaine/Domaine-Text-Medium.woff.js +2 -0
  110. package/dist/fonts/Domaine/Domaine-Text-Medium.woff2.js +2 -0
  111. package/dist/fonts/Domaine/index.js +14 -0
  112. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff.js +2 -0
  113. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff2.js +2 -0
  114. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff.js +2 -0
  115. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff2.js +2 -0
  116. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff.js +2 -0
  117. package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff2.js +2 -0
  118. package/dist/fonts/FranklinGothic/index.js +18 -0
  119. package/dist/fonts/MinionPro/MinionPro-Regular.woff.js +2 -0
  120. package/dist/fonts/MinionPro/MinionPro-Regular.woff2.js +2 -0
  121. package/dist/fonts/MinionPro/index.js +14 -0
  122. package/dist/fonts/Montserrat/Montserrat-Bold.woff.js +2 -0
  123. package/dist/fonts/Montserrat/Montserrat-Bold.woff2.js +2 -0
  124. package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff.js +2 -0
  125. package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff2.js +2 -0
  126. package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff.js +2 -0
  127. package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff2.js +2 -0
  128. package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff.js +2 -0
  129. package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff2.js +2 -0
  130. package/dist/fonts/Montserrat/Montserrat-Italic.woff.js +2 -0
  131. package/dist/fonts/Montserrat/Montserrat-Italic.woff2.js +2 -0
  132. package/dist/fonts/Montserrat/Montserrat-Light.woff.js +2 -0
  133. package/dist/fonts/Montserrat/Montserrat-Light.woff2.js +2 -0
  134. package/dist/fonts/Montserrat/Montserrat-LightItalic.woff.js +2 -0
  135. package/dist/fonts/Montserrat/Montserrat-LightItalic.woff2.js +2 -0
  136. package/dist/fonts/Montserrat/Montserrat-Medium.woff.js +2 -0
  137. package/dist/fonts/Montserrat/Montserrat-Medium.woff2.js +2 -0
  138. package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff.js +2 -0
  139. package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff2.js +2 -0
  140. package/dist/fonts/Montserrat/Montserrat-Regular.woff.js +2 -0
  141. package/dist/fonts/Montserrat/Montserrat-Regular.woff2.js +2 -0
  142. package/dist/fonts/Montserrat/index.js +90 -0
  143. package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff.js +2 -0
  144. package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff2.js +2 -0
  145. package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff.js +2 -0
  146. package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff2.js +2 -0
  147. package/dist/fonts/SBonus/SBonusUX-LightItalic.woff.js +2 -0
  148. package/dist/fonts/SBonus/SBonusUX-LightItalic.woff2.js +2 -0
  149. package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff.js +2 -0
  150. package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff2.js +2 -0
  151. package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff.js +2 -0
  152. package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff2.js +2 -0
  153. package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff.js +2 -0
  154. package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff2.js +2 -0
  155. package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff.js +2 -0
  156. package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff2.js +2 -0
  157. package/dist/fonts/SBonus/SBonusUXWEB-Light.woff.js +2 -0
  158. package/dist/fonts/SBonus/SBonusUXWEB-Light.woff2.js +2 -0
  159. package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff.js +2 -0
  160. package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff2.js +2 -0
  161. package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff.js +2 -0
  162. package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff2.js +2 -0
  163. package/dist/fonts/SBonus/index.js +95 -0
  164. package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff.js +2 -0
  165. package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff2.js +2 -0
  166. package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff.js +2 -0
  167. package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff2.js +2 -0
  168. package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff.js +2 -0
  169. package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff2.js +2 -0
  170. package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff.js +2 -0
  171. package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff2.js +2 -0
  172. package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff.js +2 -0
  173. package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff2.js +2 -0
  174. package/dist/fonts/SBonusDisplay/index.js +22 -0
  175. package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff.js +2 -0
  176. package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff2.js +2 -0
  177. package/dist/fonts/SuomiGrumpy/index.js +14 -0
  178. package/dist/fonts/utils.js +5 -0
  179. package/dist/hooks/useElementRect.js +65 -0
  180. package/dist/hooks/windowsize.js +31 -0
  181. package/dist/locales/constants.js +6 -0
  182. package/dist/locales/translations.json.js +153 -0
  183. package/dist/styles/media.js +40 -0
  184. package/dist/themes/neutral/breakpoints.js +11 -0
  185. package/dist/themes/neutral/colors.js +3 -0
  186. package/dist/themes/neutral/components.js +940 -0
  187. package/dist/themes/neutral/fonts.js +7 -0
  188. package/dist/themes/neutral/index.js +10 -0
  189. package/dist/themes/neutral/spacings.js +21 -0
  190. package/dist/themes/ravintolakonseptit/breakpoints.js +11 -0
  191. package/dist/themes/ravintolakonseptit/colors.js +17 -0
  192. package/dist/themes/ravintolakonseptit/components.js +936 -0
  193. package/dist/themes/ravintolakonseptit/fonts.js +5 -0
  194. package/dist/themes/ravintolakonseptit/index.js +10 -0
  195. package/dist/themes/ravintolakonseptit/spacings.js +21 -0
  196. package/dist/themes/sokos/breakpoints.js +11 -0
  197. package/dist/themes/sokos/colors.js +3 -0
  198. package/dist/themes/sokos/components.js +936 -0
  199. package/dist/themes/sokos/index.js +10 -0
  200. package/dist/themes/sokospalvelut/breakpoints.js +11 -0
  201. package/dist/themes/sokospalvelut/colors.js +3 -0
  202. package/dist/themes/sokospalvelut/components.js +936 -0
  203. package/dist/themes/sokospalvelut/fonts.js +11 -0
  204. package/dist/themes/sokospalvelut/index.js +10 -0
  205. package/dist/themes/theme.types.js +12 -0
  206. package/dist/themes/tykkimakiresort/colors.js +35 -0
  207. package/dist/themes/tykkimakiresort/components.js +936 -0
  208. package/dist/themes/tykkimakiresort/fonts.js +7 -0
  209. package/dist/themes/tykkimakiresort/index.js +10 -0
  210. package/package.json +33 -3
  211. package/scripts/build.js +132 -0
@@ -0,0 +1,139 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { components } from '../constants.js';
4
+ import Button from '../Button/Button.js';
5
+ import SideBySide from '../SideBySide/SideBySide.js';
6
+ import Hero from '../Hero/Hero.js';
7
+ import SubHero from '../SubHero/SubHero.js';
8
+ import Paragraph from '../Paragraph/Paragraph.js';
9
+ import Columns from '../Columns/Columns.js';
10
+ import AccordionBlock from '../Accordion/Accordion.js';
11
+ import Card from '../Card/Card.js';
12
+ import FullBgHero from '../FullBgHero/FullBgHero.js';
13
+ import Embed from '../Embed/Embed.js';
14
+ import List from '../List/List.js';
15
+ import Table from '../Table/Table.js';
16
+ import Carousel from '../Carousel/Carousel.js';
17
+ import CarouselNarrow from '../CarouselNarrow/CarouselNarrow.js';
18
+ import FormBuilder from '../FormBuilder/FormBuilder.js';
19
+ import Heading from '../Heading/Heading.js';
20
+ import Promotion from '../Promotion/Promotion.js';
21
+ import AnimationWrapper from '../AnimationWrapper/AnimationWrapper.js';
22
+ import IconLinks from '../IconLinks/IconLinks.js';
23
+ import ImageCarousel from '../ImageCarousel/ImageCarousel.js';
24
+ import PlaceOfBusinessSearch from '../PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.js';
25
+ import 'react';
26
+ import '../PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.styles.js';
27
+ import 'date-fns';
28
+ import '../PlaceOfBusiness/OpenToday/OpenToday.styles.js';
29
+ import '../PlaceOfBusiness/LogoTitle/LogoTitle.styles.js';
30
+ import '../PlaceOfBusiness/OpeningHours/OpeningHours.styles.js';
31
+ import '../PlaceOfBusiness/ContactInformation/ContactInformation.styles.js';
32
+ import '../SocialMediaLinks/SocialMediaLinks.styles.js';
33
+ import '../utils.js';
34
+ import '../PlaceOfBusiness/Services/Services.styles.js';
35
+ import 'axios';
36
+ import '../PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.styles.js';
37
+ import OverlayCards from '../OverlayCards/OverlayCards.js';
38
+ import '../OverlayCards/OverlayCards.types.js';
39
+
40
+ var BlockContent = function BlockContent(_a) {
41
+ var block = _a.block,
42
+ blockBackgroundColor = _a.blockBackgroundColor,
43
+ databaseId = _a.databaseId;
44
+
45
+ var getBlock = function getBlock(block) {
46
+ switch (block.name) {
47
+ case components.PARAGRAPH:
48
+ return jsx(Paragraph, __assign({}, block.attributes), void 0);
49
+
50
+ case components.HERO:
51
+ return jsx(Hero, __assign({}, block.fields, block.attributes), void 0);
52
+
53
+ case components.SUB_HERO:
54
+ return jsx(SubHero, __assign({}, block.fields, block.attributes), void 0);
55
+
56
+ case components.BUTTON:
57
+ return jsx(Button, __assign({}, block.fields, block.attributes), void 0);
58
+
59
+ case components.SIDE_BY_SIDE:
60
+ return jsx(SideBySide, __assign({}, block.fields, block.attributes), void 0);
61
+
62
+ case components.ACCORDION:
63
+ return jsx(AccordionBlock, __assign({}, block.fields, block.attributes), void 0);
64
+
65
+ case components.CARD:
66
+ return jsx(Card, __assign({}, block.fields, block.attributes), void 0);
67
+
68
+ case components.FULL_BG_HERO:
69
+ return jsx(FullBgHero, __assign({}, block.fields, block.attributes), void 0);
70
+
71
+ case components.EMBED:
72
+ return jsx(Embed, __assign({}, block.fields, block.attributes), void 0);
73
+
74
+ case components.LIST:
75
+ return jsx(List, __assign({}, block.attributes), void 0);
76
+
77
+ case components.TABLE:
78
+ return jsx(Table, {
79
+ block: block
80
+ }, void 0);
81
+
82
+ case components.COLUMNS:
83
+ return jsx(Columns, {
84
+ block: block,
85
+ databaseId: databaseId
86
+ }, void 0);
87
+
88
+ case components.CAROUSEL:
89
+ return jsx(Carousel, __assign({}, block.fields, block.attributes), void 0);
90
+
91
+ case components.CAROUSEL_NARROW:
92
+ return jsx(CarouselNarrow, __assign({}, block.fields, block.attributes), void 0);
93
+
94
+ case components.ICON_LINKS:
95
+ return jsx(IconLinks, __assign({}, block.fields, block.attributes, {
96
+ blockBackgroundColor: blockBackgroundColor
97
+ }), void 0);
98
+
99
+ case components.HEADING:
100
+ return jsx(Heading, __assign({}, block.attributes), void 0);
101
+
102
+ case components.PROMOTION:
103
+ return jsx(Promotion, __assign({}, block.fields, block.attributes), void 0);
104
+
105
+ case components.FORM_BUILDER:
106
+ return jsx(FormBuilder, __assign({}, block.fields, block.attributes), void 0);
107
+
108
+ case components.IMAGE_CAROUSEL:
109
+ return jsx(ImageCarousel, __assign({}, block.fields, block.attributes), void 0);
110
+
111
+ case components.OVERLAY_CARDS:
112
+ return jsx(OverlayCards, __assign({}, block.fields, block.attributes), void 0);
113
+
114
+ case components.PLACE_OF_BUSINESS_SEARCH:
115
+ return jsx(PlaceOfBusinessSearch, __assign({}, block.fields, block.attributes, {
116
+ databaseId: databaseId
117
+ }), void 0);
118
+
119
+ default:
120
+ // Directly render the HTML returned by WordPress core blocks
121
+ // Todo: Possibly remove this and create cases above for all
122
+ // the block we specifically want to support
123
+ return jsx("div", {
124
+ className: block.name,
125
+ dangerouslySetInnerHTML: {
126
+ __html: block.saveContent
127
+ }
128
+ }, void 0);
129
+ }
130
+ };
131
+
132
+ return jsx(AnimationWrapper, __assign({
133
+ blockName: block.name
134
+ }, {
135
+ children: getBlock(block)
136
+ }), void 0);
137
+ };
138
+
139
+ export { BlockContent, BlockContent as default };
@@ -0,0 +1,62 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx, Fragment } from 'react/jsx-runtime';
3
+ import { smallBottomMargin, noBottomMargin, noBottomPadding, ConditionalWrapper } from '../utils.js';
4
+ import { Block } from './BlockGenerator.styles.js';
5
+ import RestrictedWidthContainer from '../RestrictedWidthContainer/RestrictedWidthContainer.js';
6
+ import MarginWrapper from '../MarginWrapper/MarginWrapper.js';
7
+ import BlockContent from './BlockContent.js';
8
+ import { components, hideOverflowComponents, fullWidthComponents } from '../constants.js'; // Databaseid is the id of a WP Post/Page/Custom Post
9
+ // Currently used in PlaceOfBusinessSearch
10
+
11
+ var BlockGenerator = function BlockGenerator(_a) {
12
+ var blocks = _a.blocks,
13
+ databaseId = _a.databaseId;
14
+
15
+ var blockIsColumnsWithBackgroundColor = function blockIsColumnsWithBackgroundColor(currentBlock) {
16
+ var _a, _b;
17
+
18
+ return currentBlock.name === components.COLUMNS && ((_a = currentBlock.attributes) === null || _a === void 0 ? void 0 : _a.backgroundColor) && ((_b = currentBlock.attributes) === null || _b === void 0 ? void 0 : _b.backgroundColor) !== 'primary';
19
+ };
20
+
21
+ var wrapWithRestrictedWidthContainer = function wrapWithRestrictedWidthContainer(currentBlock) {
22
+ var _a, _b, _c;
23
+
24
+ return !fullWidthComponents.includes(currentBlock.name) && !(currentBlock.name === components.COLUMNS && ((_a = currentBlock.innerBlocks) === null || _a === void 0 ? void 0 : _a.length) === 1 && ((_c = (_b = currentBlock.innerBlocks[0]) === null || _b === void 0 ? void 0 : _b.innerBlocks[0]) === null || _c === void 0 ? void 0 : _c.name) === components.IMAGE_CAROUSEL);
25
+ };
26
+
27
+ return jsx(Fragment, {
28
+ children: blocks.map(function (currentBlock, currentIndex) {
29
+ var _a;
30
+
31
+ return jsx(MarginWrapper, __assign({
32
+ smallBottomMargin: currentIndex + 1 < blocks.length && smallBottomMargin(currentBlock, blocks[currentIndex + 1]),
33
+ noBottomMargin: blocks.length && noBottomMargin(currentBlock, blocks[currentIndex + 1])
34
+ }, {
35
+ children: jsx(Block, __assign({
36
+ applyColumnsBackgroundStyles: blockIsColumnsWithBackgroundColor(currentBlock),
37
+ applyHeroBackgroundStyles: currentBlock.name === components.HERO,
38
+ backgroundColor: (_a = currentBlock.attributes) === null || _a === void 0 ? void 0 : _a.backgroundColor,
39
+ noBottomPadding: currentIndex + 1 < blocks.length && noBottomPadding(currentBlock, blocks[currentIndex + 1])
40
+ }, {
41
+ children: jsx(ConditionalWrapper, __assign({
42
+ condition: wrapWithRestrictedWidthContainer(currentBlock),
43
+ wrapper: function wrapper(children) {
44
+ return jsx(RestrictedWidthContainer, __assign({
45
+ hideOverflow: hideOverflowComponents.includes(currentBlock.name)
46
+ }, {
47
+ children: children
48
+ }), void 0);
49
+ }
50
+ }, {
51
+ children: jsx(BlockContent, {
52
+ block: currentBlock,
53
+ databaseId: databaseId
54
+ }, void 0)
55
+ }), void 0)
56
+ }), void 0)
57
+ }), currentIndex);
58
+ })
59
+ }, void 0);
60
+ };
61
+
62
+ export { BlockGenerator, BlockGenerator as default };
@@ -0,0 +1,44 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { css } from 'styled-components';
3
+ import media from '../../styles/media.js';
4
+ var columnsBackgroundStyles = css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
5
+ var backgroundColor = _a.backgroundColor;
6
+ return backgroundColor;
7
+ }, function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.components.blockGenerator.block.mobile.padding.top;
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.components.blockGenerator.block.mobile.padding.bottom;
13
+ }, function (_a) {
14
+ var noBottomPadding = _a.noBottomPadding;
15
+ return noBottomPadding && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-bottom: 0 !important;\n "], ["\n padding-bottom: 0 !important;\n "])));
16
+ }, media.tablet(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n "], ["\n padding-top: ", ";\n padding-bottom: ", ";\n "])), function (_a) {
17
+ var theme = _a.theme;
18
+ return theme.components.blockGenerator.block.tablet.padding.top;
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.components.blockGenerator.block.tablet.padding.bottom;
22
+ }), media.desktop(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n "], ["\n padding-top: ", ";\n padding-bottom: ", ";\n "])), function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.components.blockGenerator.block.desktop.padding.top;
25
+ }, function (_a) {
26
+ var theme = _a.theme;
27
+ return theme.components.blockGenerator.block.desktop.padding.bottom;
28
+ }));
29
+ var heroBackgroundStyles = css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
30
+ var theme = _a.theme;
31
+ return theme.components.blockGenerator.heroBackgroundColor;
32
+ });
33
+ var Block = styled.div.withConfig({
34
+ displayName: "BlockGeneratorstyles__Block",
35
+ componentId: "sc-u777aw-0"
36
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n width: 100%;\n\n ", "\n ", "\n"], ["\n display: flex;\n justify-content: center;\n width: 100%;\n\n ", "\n ", "\n"])), function (_a) {
37
+ var applyColumnsBackgroundStyles = _a.applyColumnsBackgroundStyles;
38
+ return applyColumnsBackgroundStyles && columnsBackgroundStyles;
39
+ }, function (_a) {
40
+ var applyHeroBackgroundStyles = _a.applyHeroBackgroundStyles;
41
+ return applyHeroBackgroundStyles && heroBackgroundStyles;
42
+ });
43
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
44
+ export { Block };
@@ -0,0 +1,49 @@
1
+ import { __rest, __assign } from '../../_virtual/_tslib.js';
2
+ import { jsx, Fragment } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { ButtonContainer, StyledButton } from './Button.styles.js';
5
+ import { ButtonShape, ButtonType } from '@sok/design-system';
6
+ import { parseLink, parseInternalLink, ConditionalWrapper } from '../utils.js';
7
+ import { useTheme } from 'styled-components';
8
+ var Button = forwardRef(function (_a, ref) {
9
+ var buttonText = _a.buttonText,
10
+ fill = _a.fill,
11
+ linkToPage = _a.linkToPage,
12
+ externalLink = _a.externalLink,
13
+ openWithNewTab = _a.openWithNewTab,
14
+ align = _a.align,
15
+ anchor = _a.anchor,
16
+ htmlAnchorTarget = _a.htmlAnchorTarget,
17
+ onClick = _a.onClick,
18
+ rest = __rest(_a, ["buttonText", "fill", "linkToPage", "externalLink", "openWithNewTab", "align", "anchor", "htmlAnchorTarget", "onClick"]);
19
+
20
+ var theme = useTheme();
21
+ var parsedExternalLink = parseLink(externalLink);
22
+ var parsedInternalLink = parseInternalLink(linkToPage === null || linkToPage === void 0 ? void 0 : linkToPage.uri, htmlAnchorTarget);
23
+ var href = parsedInternalLink || parsedExternalLink || undefined;
24
+ return jsx(Fragment, {
25
+ children: buttonText && jsx(ConditionalWrapper, __assign({
26
+ condition: !!align,
27
+ wrapper: function wrapper(children) {
28
+ return jsx(ButtonContainer, __assign({
29
+ align: align,
30
+ ref: ref
31
+ }, rest, {
32
+ children: children
33
+ }), void 0);
34
+ }
35
+ }, {
36
+ children: jsx(StyledButton, {
37
+ id: anchor,
38
+ text: buttonText,
39
+ href: href,
40
+ fillBackground: fill === undefined ? true : fill,
41
+ shape: theme.components.button.rounded ? ButtonShape.ROUND : undefined,
42
+ target: href ? openWithNewTab ? '__blank' : '_self' : undefined,
43
+ type: fill ? ButtonType.PRIMARY : ButtonType.DEFAULT,
44
+ onClick: !href ? onClick : undefined
45
+ }, void 0)
46
+ }), void 0)
47
+ }, void 0);
48
+ });
49
+ export { Button, Button as default };
@@ -0,0 +1,46 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { css } from 'styled-components';
3
+ import { Button } from '@sok/design-system';
4
+ var ButtonContainer = styled.div.withConfig({
5
+ displayName: "Buttonstyles__ButtonContainer",
6
+ componentId: "sc-1otcepy-0"
7
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: '100%';\n display: flex;\n justify-content: ", ";\n"], ["\n width: '100%';\n display: flex;\n justify-content: ", ";\n"])), function (_a) {
8
+ var align = _a.align;
9
+ return align ? align : 'normal';
10
+ });
11
+ var StyledButton = styled(Button).withConfig({
12
+ displayName: "Buttonstyles__StyledButton",
13
+ componentId: "sc-1otcepy-1"
14
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: block;\n max-width: 100%;\n min-height: 2.5rem;\n height: unset !important;\n padding: 0.625rem 1.75rem !important;\n text-align: center !important;\n font-family: ", " !important;\n font-size: ", " !important;\n line-height: ", " !important;\n color: ", " !important;\n border: ", " !important;\n background-color: ", " !important;\n transition: all 1s ease-in-out;\n\n :focus {\n box-shadow: 0px 0px 0px 3px ", " !important;\n }\n\n :hover {\n ", "\n }\n\n ", "\n"], ["\n display: block;\n max-width: 100%;\n min-height: 2.5rem;\n height: unset !important;\n padding: 0.625rem 1.75rem !important;\n text-align: center !important;\n font-family: ", " !important;\n font-size: ", " !important;\n line-height: ", " !important;\n color: ", " !important;\n border: ", " !important;\n background-color: ", " !important;\n transition: all 1s ease-in-out;\n\n :focus {\n box-shadow: 0px 0px 0px 3px ", " !important;\n }\n\n :hover {\n ", "\n }\n\n ", "\n"])), function (_a) {
15
+ var theme = _a.theme;
16
+ return theme.components.button.fontFamily;
17
+ }, function (_a) {
18
+ var theme = _a.theme;
19
+ return theme.components.button.fontSizes.mobile.fontSize;
20
+ }, function (_a) {
21
+ var theme = _a.theme;
22
+ return theme.components.button.fontSizes.mobile.lineHeight;
23
+ }, function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.components.button.textColor;
26
+ }, function (_a) {
27
+ var theme = _a.theme,
28
+ fillBackground = _a.fillBackground;
29
+ return fillBackground ? 'none' : theme.components.button.border;
30
+ }, function (_a) {
31
+ var fillBackground = _a.fillBackground,
32
+ theme = _a.theme;
33
+ return fillBackground ? theme.components.button.backgroundColor : 'color:transparent';
34
+ }, function (_a) {
35
+ var theme = _a.theme;
36
+ return theme.components.button.focusColor;
37
+ }, function (_a) {
38
+ var theme = _a.theme,
39
+ fillBackground = _a.fillBackground;
40
+ return !fillBackground && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", " !important;\n "], ["\n background-color: ", " !important;\n "])), theme.components.button.hoverColor);
41
+ }, function (_a) {
42
+ var theme = _a.theme;
43
+ return theme.components.button.borderRadius && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: ", " !important;\n "], ["\n border-radius: ", " !important;\n "])), theme.components.button.borderRadius);
44
+ });
45
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
46
+ export { ButtonContainer, StyledButton };
@@ -0,0 +1,79 @@
1
+ import { __rest, __assign } from '../../_virtual/_tslib.js';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import { CardContainer, MediaContainer, DynamicImage, StaticImage, SVGImage, TextContainer, CardCategory, CardHeader, CardText } from './Card.styles.js';
5
+ import { parseHtmlContent } from '../utils.js';
6
+ import Button from '../Button/Button.js';
7
+
8
+ var Media = function Media(_a) {
9
+ var _b, _c, _d, _e;
10
+
11
+ var media = _a.media;
12
+ return jsxs(MediaContainer, {
13
+ children: [(media === null || media === void 0 ? void 0 : media.mimeType.includes('image')) && ((_b = media === null || media === void 0 ? void 0 : media.localFile) === null || _b === void 0 ? void 0 : _b.childImageSharp) && jsx(DynamicImage, {
14
+ image: (_d = (_c = media === null || media === void 0 ? void 0 : media.localFile) === null || _c === void 0 ? void 0 : _c.childImageSharp) === null || _d === void 0 ? void 0 : _d.gatsbyImageData,
15
+ alt: ""
16
+ }, void 0), (media === null || media === void 0 ? void 0 : media.mimeType.includes('image')) && !((_e = media === null || media === void 0 ? void 0 : media.localFile) === null || _e === void 0 ? void 0 : _e.childImageSharp) && jsx(StaticImage, {
17
+ src: media.mediaItemUrl,
18
+ alt: ""
19
+ }, void 0), (media === null || media === void 0 ? void 0 : media.mimeType.includes('svg')) && (media === null || media === void 0 ? void 0 : media.localFile) && jsx(SVGImage, {
20
+ src: media.mediaItemUrl,
21
+ alt: ""
22
+ }, void 0)]
23
+ }, void 0);
24
+ };
25
+
26
+ var Text = function Text(_a) {
27
+ var cardCategory = _a.cardCategory,
28
+ cardHeader = _a.cardHeader,
29
+ cardText = _a.cardText,
30
+ button = _a.button;
31
+ return jsxs(TextContainer, {
32
+ children: [cardCategory && jsx(CardCategory, {
33
+ dangerouslySetInnerHTML: {
34
+ __html: parseHtmlContent(cardCategory)
35
+ }
36
+ }, void 0), cardHeader && jsx(CardHeader, {
37
+ dangerouslySetInnerHTML: {
38
+ __html: parseHtmlContent(cardHeader)
39
+ }
40
+ }, void 0), cardText && jsx(CardText, {
41
+ dangerouslySetInnerHTML: {
42
+ __html: parseHtmlContent(cardText)
43
+ }
44
+ }, void 0), jsx(Button, {
45
+ linkToPage: button === null || button === void 0 ? void 0 : button.linkToPage,
46
+ externalLink: button === null || button === void 0 ? void 0 : button.externalLink,
47
+ openWithNewTab: button === null || button === void 0 ? void 0 : button.openWithNewTab,
48
+ buttonText: button === null || button === void 0 ? void 0 : button.buttonText,
49
+ htmlAnchorTarget: button === null || button === void 0 ? void 0 : button.htmlAnchorTarget,
50
+ align: 'left'
51
+ }, void 0)]
52
+ }, void 0);
53
+ };
54
+
55
+ var Card = forwardRef(function (_a, ref) {
56
+ var media = _a.media,
57
+ cardCategory = _a.cardCategory,
58
+ cardHeader = _a.cardHeader,
59
+ cardText = _a.cardText,
60
+ button = _a.button,
61
+ anchor = _a.anchor,
62
+ rest = __rest(_a, ["media", "cardCategory", "cardHeader", "cardText", "button", "anchor"]);
63
+
64
+ return jsxs(CardContainer, __assign({
65
+ id: anchor
66
+ }, rest, {
67
+ ref: ref
68
+ }, {
69
+ children: [jsx(Media, {
70
+ media: media
71
+ }, void 0), jsx(Text, {
72
+ cardCategory: cardCategory,
73
+ cardHeader: cardHeader,
74
+ cardText: cardText,
75
+ button: button
76
+ }, void 0)]
77
+ }), void 0);
78
+ });
79
+ export { Card, Card as default };
@@ -0,0 +1,137 @@
1
+ import { __makeTemplateObject } from '../../_virtual/_tslib.js';
2
+ import styled, { css } from 'styled-components';
3
+ import { GatsbyImage } from 'gatsby-plugin-image';
4
+ import media from '../../styles/media.js';
5
+ import { ButtonContainer } from '../Button/Button.styles.js';
6
+ var ImageCSS = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 0.2s ease-in-out;\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 0.2s ease-in-out;\n"])));
7
+ var DynamicImage = styled(GatsbyImage).withConfig({
8
+ displayName: "Cardstyles__DynamicImage",
9
+ componentId: "sc-1qwd4xh-0"
10
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ImageCSS);
11
+ var StaticImage = styled.img.withConfig({
12
+ displayName: "Cardstyles__StaticImage",
13
+ componentId: "sc-1qwd4xh-1"
14
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ImageCSS);
15
+ var SVGImage = styled.img.withConfig({
16
+ displayName: "Cardstyles__SVGImage",
17
+ componentId: "sc-1qwd4xh-2"
18
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n object-fit: none;\n"], ["\n ", ";\n object-fit: none;\n"])), ImageCSS);
19
+ var CardContainer = styled.div.withConfig({
20
+ displayName: "Cardstyles__CardContainer",
21
+ componentId: "sc-1qwd4xh-3"
22
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);\n text-decoration: none;\n transition: box-shadow 0.3s ease-in-out;\n\n :hover {\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n ", " {\n transform: scale(1.04);\n }\n ", " {\n transform: scale(1.04);\n }\n ", " {\n transform: scale(1.04);\n }\n }\n"], ["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);\n text-decoration: none;\n transition: box-shadow 0.3s ease-in-out;\n\n :hover {\n box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n ", " {\n transform: scale(1.04);\n }\n ", " {\n transform: scale(1.04);\n }\n ", " {\n transform: scale(1.04);\n }\n }\n"])), DynamicImage, StaticImage, SVGImage);
23
+ var TextContainer = styled.div.withConfig({
24
+ displayName: "Cardstyles__TextContainer",
25
+ componentId: "sc-1qwd4xh-4"
26
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin: 0px;\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: ", ";\n background-color: ", ";\n\n ", " {\n margin-top: auto;\n }\n\n ", "\n"], ["\n margin: 0px;\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: ", ";\n background-color: ", ";\n\n ", " {\n margin-top: auto;\n }\n\n ", "\n"])), function (_a) {
27
+ var theme = _a.theme;
28
+ return theme.spacings.spacing32;
29
+ }, function (_a) {
30
+ var theme = _a.theme;
31
+ return theme.components.card.backgroundColor;
32
+ }, ButtonContainer, media.desktop(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding-bottom: ", ";\n "], ["\n padding-bottom: ", ";\n "])), function (_a) {
33
+ var theme = _a.theme;
34
+ return theme.spacings.spacing64;
35
+ }));
36
+ var CardCategory = styled.div.withConfig({
37
+ displayName: "Cardstyles__CardCategory",
38
+ componentId: "sc-1qwd4xh-5"
39
+ })(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n margin-bottom: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n word-wrap: break-word;\n\n ", "\n\n ", "\n"], ["\n margin-bottom: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n word-wrap: break-word;\n\n ", "\n\n ", "\n"])), function (_a) {
40
+ var theme = _a.theme;
41
+ return theme.spacings.spacing12;
42
+ }, function (_a) {
43
+ var theme = _a.theme;
44
+ return theme.components.card.category.fontFamily;
45
+ }, function (_a) {
46
+ var theme = _a.theme;
47
+ return theme.components.card.category.fontSizes.mobile.fontSize;
48
+ }, function (_a) {
49
+ var theme = _a.theme;
50
+ return theme.components.card.category.fontWeight;
51
+ }, function (_a) {
52
+ var theme = _a.theme;
53
+ return theme.components.card.category.fontSizes.mobile.lineHeight;
54
+ }, function (_a) {
55
+ var theme = _a.theme;
56
+ return theme.components.card.category.color;
57
+ }, function (_a) {
58
+ var theme = _a.theme;
59
+ return theme.components.card.category.textTransform;
60
+ }, media.tablet(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
61
+ var theme = _a.theme;
62
+ return theme.components.card.category.fontSizes.tablet.fontSize;
63
+ }, function (_a) {
64
+ var theme = _a.theme;
65
+ return theme.components.card.category.fontSizes.tablet.lineHeight;
66
+ }), media.desktop(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
67
+ var theme = _a.theme;
68
+ return theme.components.card.category.fontSizes.desktop.fontSize;
69
+ }, function (_a) {
70
+ var theme = _a.theme;
71
+ return theme.components.card.category.fontSizes.desktop.lineHeight;
72
+ }));
73
+ var CardHeader = styled.div.withConfig({
74
+ displayName: "Cardstyles__CardHeader",
75
+ componentId: "sc-1qwd4xh-6"
76
+ })(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n padding: 0;\n margin-bottom: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n letter-spacing: ", ";\n word-wrap: break-word;\n\n b {\n color: ", ";\n font-weight: inherit;\n }\n\n ", "\n\n ", "\n"], ["\n padding: 0;\n margin-bottom: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n text-transform: ", ";\n letter-spacing: ", ";\n word-wrap: break-word;\n\n b {\n color: ", ";\n font-weight: inherit;\n }\n\n ", "\n\n ", "\n"])), function (_a) {
77
+ var theme = _a.theme;
78
+ return theme.spacings.spacing16;
79
+ }, function (_a) {
80
+ var theme = _a.theme;
81
+ return theme.components.card.header.fontFamily;
82
+ }, function (_a) {
83
+ var theme = _a.theme;
84
+ return theme.components.card.header.fontSizes.mobile.fontSize;
85
+ }, function (_a) {
86
+ var theme = _a.theme;
87
+ return theme.components.card.header.fontWeight;
88
+ }, function (_a) {
89
+ var theme = _a.theme;
90
+ return theme.components.card.header.fontSizes.mobile.lineHeight;
91
+ }, function (_a) {
92
+ var theme = _a.theme;
93
+ return theme.components.card.header.color;
94
+ }, function (_a) {
95
+ var theme = _a.theme;
96
+ return theme.components.card.header.textTransform;
97
+ }, function (_a) {
98
+ var theme = _a.theme;
99
+ return theme.components.card.header.letterSpacing;
100
+ }, function (_a) {
101
+ var theme = _a.theme;
102
+ return theme.colors.primary900;
103
+ }, media.tablet(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
104
+ var theme = _a.theme;
105
+ return theme.components.card.header.fontSizes.tablet.fontSize;
106
+ }, function (_a) {
107
+ var theme = _a.theme;
108
+ return theme.components.card.header.fontSizes.tablet.lineHeight;
109
+ }), media.desktop(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), function (_a) {
110
+ var theme = _a.theme;
111
+ return theme.components.card.header.fontSizes.desktop.fontSize;
112
+ }, function (_a) {
113
+ var theme = _a.theme;
114
+ return theme.components.card.header.fontSizes.desktop.lineHeight;
115
+ }));
116
+ var CardText = styled.div.withConfig({
117
+ displayName: "Cardstyles__CardText",
118
+ componentId: "sc-1qwd4xh-7"
119
+ })(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n margin-bottom: ", ";\n width: 100%;\n word-wrap: break-word;\n\n p,\n ul,\n ol {\n margin: revert;\n }\n"], ["\n margin-bottom: ", ";\n width: 100%;\n word-wrap: break-word;\n\n p,\n ul,\n ol {\n margin: revert;\n }\n"])), function (_a) {
120
+ var theme = _a.theme;
121
+ return theme.spacings.spacing32;
122
+ });
123
+ var MediaContainer = styled.div.withConfig({
124
+ displayName: "Cardstyles__MediaContainer",
125
+ componentId: "sc-1qwd4xh-8"
126
+ })(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"], ["\n width: 100%;\n height: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"])), function (_a) {
127
+ var theme = _a.theme;
128
+ return theme.components.card.mediaHeight.mobile;
129
+ }, media.tablet(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n height: ", ";\n "], ["\n height: ", ";\n "])), function (_a) {
130
+ var theme = _a.theme;
131
+ return theme.components.card.mediaHeight.tablet;
132
+ }), media.desktop(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n height: ", ";\n "], ["\n height: ", ";\n "])), function (_a) {
133
+ var theme = _a.theme;
134
+ return theme.components.card.mediaHeight.desktop;
135
+ }));
136
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
137
+ export { CardCategory, CardContainer, CardHeader, CardText, DynamicImage, MediaContainer, SVGImage, StaticImage, TextContainer };