@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,65 @@
1
+ import { __read } from '../_virtual/_tslib.js';
2
+ import { useRef, useState, useLayoutEffect, useEffect } from 'react';
3
+ import { useWindowSize } from './windowsize.js';
4
+
5
+ var useElementHeight = function useElementHeight() {
6
+ var elementRef = useRef(null);
7
+
8
+ var _a = __read(useState(0), 2),
9
+ elementHeight = _a[0],
10
+ setElementHeight = _a[1];
11
+
12
+ useLayoutEffect(function () {
13
+ var _a;
14
+
15
+ setElementHeight((_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height);
16
+ }, []);
17
+ return {
18
+ elementRef: elementRef,
19
+ elementHeight: elementHeight
20
+ };
21
+ };
22
+
23
+ var useElementLeft = function useElementLeft() {
24
+ var windowSize = useWindowSize();
25
+ var elementRef = useRef(null);
26
+
27
+ var _a = __read(useState(0), 2),
28
+ elementLeft = _a[0],
29
+ setElementLeft = _a[1];
30
+
31
+ useLayoutEffect(function () {
32
+ var _a;
33
+
34
+ setElementLeft((_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.offsetLeft);
35
+ }, []);
36
+ useEffect(function () {
37
+ var _a;
38
+
39
+ setElementLeft((_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.offsetLeft);
40
+ }, [windowSize]);
41
+ return {
42
+ elementRef: elementRef,
43
+ elementLeft: elementLeft
44
+ };
45
+ };
46
+
47
+ var useElementBottomPosition = function useElementBottomPosition() {
48
+ var elementRef = useRef(null);
49
+
50
+ var _a = __read(useState(0), 2),
51
+ elementBottom = _a[0],
52
+ setElementBottom = _a[1];
53
+
54
+ useLayoutEffect(function () {
55
+ var _a;
56
+
57
+ setElementBottom((_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().bottom);
58
+ }, []);
59
+ return {
60
+ elementRef: elementRef,
61
+ elementBottom: elementBottom
62
+ };
63
+ };
64
+
65
+ export { useElementBottomPosition, useElementHeight, useElementLeft };
@@ -0,0 +1,31 @@
1
+ import { __read } from '../_virtual/_tslib.js';
2
+ import { useState, useEffect } from 'react';
3
+
4
+ var useWindowSize = function useWindowSize() {
5
+ var isBrowser = typeof window !== 'undefined';
6
+
7
+ var _a = __read(useState({
8
+ width: isBrowser ? window.innerWidth : 0,
9
+ height: isBrowser ? window.innerHeight : 0
10
+ }), 2),
11
+ windowSize = _a[0],
12
+ setWindowSize = _a[1];
13
+
14
+ useEffect(function () {
15
+ var handleResize = function handleResize() {
16
+ setWindowSize({
17
+ width: window.innerWidth,
18
+ height: window.innerHeight
19
+ });
20
+ };
21
+
22
+ window.addEventListener('resize', handleResize);
23
+ handleResize();
24
+ return function () {
25
+ return window.removeEventListener('resize', handleResize);
26
+ };
27
+ }, []);
28
+ return windowSize;
29
+ };
30
+
31
+ export { useWindowSize };
@@ -0,0 +1,6 @@
1
+ var locales = {
2
+ FI: 'FI',
3
+ SV: 'SV',
4
+ EN: 'EN'
5
+ };
6
+ export { locales };
@@ -0,0 +1,153 @@
1
+ var common = {
2
+ dayAbbreviations: {
3
+ monday: {
4
+ FI: "ma",
5
+ SV: "mån",
6
+ EN: "Mon"
7
+ },
8
+ tuesday: {
9
+ FI: "ti",
10
+ SV: "tis",
11
+ EN: "Tue"
12
+ },
13
+ wednesday: {
14
+ FI: "ke",
15
+ SV: "ons",
16
+ EN: "Wed"
17
+ },
18
+ thursday: {
19
+ FI: "to",
20
+ SV: "tors",
21
+ EN: "Thu"
22
+ },
23
+ friday: {
24
+ FI: "pe",
25
+ SV: "fre",
26
+ EN: "Fri"
27
+ },
28
+ saturday: {
29
+ FI: "la",
30
+ SV: "lör",
31
+ EN: "Sat"
32
+ },
33
+ sunday: {
34
+ FI: "su",
35
+ SV: "sön",
36
+ EN: "Sun"
37
+ }
38
+ },
39
+ week: {
40
+ FI: "Viikko",
41
+ SV: "Vecka",
42
+ EN: "Week"
43
+ }
44
+ };
45
+ var fullBgHero = {
46
+ readMore: {
47
+ FI: "Lue lisää",
48
+ EN: "Read more",
49
+ SV: "Läs mer"
50
+ }
51
+ };
52
+ var placeOfBusiness = {
53
+ getRoute: {
54
+ FI: "Hae reitti",
55
+ EN: "Get route",
56
+ SV: "Sök rutten"
57
+ },
58
+ error: {
59
+ FI: "Tapahtui odottamaton virhe.",
60
+ EN: "An unexpected error occurred.",
61
+ SV: "Ett oväntat fel uppstod."
62
+ },
63
+ openToday: {
64
+ FI: "Avoinna tänään",
65
+ EN: "Open today",
66
+ SV: "Öppet idag"
67
+ },
68
+ allOpeningTimes: {
69
+ FI: "Kaikki aukioloajat",
70
+ EN: "All opening times",
71
+ SV: "Alla öppettider"
72
+ },
73
+ byAppointment: {
74
+ FI: "Ajanvarauksella",
75
+ EN: "By appointment",
76
+ SV: "Enligt överenskommelse"
77
+ },
78
+ open: {
79
+ FI: "Avoinna",
80
+ EN: "Open",
81
+ SV: "Öppet"
82
+ },
83
+ noOpeningHours: {
84
+ FI: "Ei aukioloaikaa",
85
+ EN: "No opening times",
86
+ SV: "Inga öppettider"
87
+ },
88
+ closed: {
89
+ FI: "Suljettu",
90
+ EN: "Closed",
91
+ SV: "Stängd"
92
+ },
93
+ phone: {
94
+ FI: "Puhelin",
95
+ EN: "Phone",
96
+ SV: "Telefon"
97
+ },
98
+ placeOfBusinessSearch: {
99
+ search: {
100
+ FI: "Hae katuosoitteen tai myymälän nimen mukaan",
101
+ EN: "Search by address or business name",
102
+ SV: "Sök med gatuadress eller butikens namn"
103
+ },
104
+ showMore: {
105
+ FI: "Näytä lisää",
106
+ EN: "Show more",
107
+ SV: "Visa mer"
108
+ },
109
+ noResults: {
110
+ FI: "Valitettavasti hakusi ei tuottanut tuloksia. Hae uudelleen esim. S-ryhmän ketjun nimellä ja paikkakunnalla.",
111
+ EN: "Unfortunately your search yielded no results. Search again with for example the name of a chain of S-group and city.",
112
+ SV: "Tyvärr gav din sökning inga resultat. Sök igen t.ex. med namnet av S-gruppens kedja och orten."
113
+ },
114
+ detailsAndServices: {
115
+ FI: "Lisätiedot ja palvelut",
116
+ EN: "Services and more",
117
+ SV: "Tjänster och mer"
118
+ },
119
+ address: {
120
+ FI: "Osoite",
121
+ EN: "Address",
122
+ SV: "Adress"
123
+ }
124
+ },
125
+ placeOfBusinessInfo: {
126
+ contactInfo: {
127
+ FI: "Yhteystiedot",
128
+ EN: "Contact information",
129
+ SV: "Kontaktinformation"
130
+ },
131
+ ownWebsite: {
132
+ FI: "Toimipaikan omat sivut",
133
+ EN: "Location's own site",
134
+ SV: "Verksamhetsställes egen webbplats"
135
+ },
136
+ reclamationsAndInvoicing: {
137
+ FI: "Reklamaatiot ja laskutustiedot",
138
+ EN: "Reclamations and invoicing",
139
+ SV: "Återkrav och faktureringsförfrågningar"
140
+ },
141
+ services: {
142
+ FI: "Muut toimipaikat ja lisäpalvelut",
143
+ EN: "Other places of business and services",
144
+ SV: "Andra verksamhetsställen och tjänster"
145
+ }
146
+ }
147
+ };
148
+ var translationJSON = {
149
+ common: common,
150
+ fullBgHero: fullBgHero,
151
+ placeOfBusiness: placeOfBusiness
152
+ };
153
+ export { common, translationJSON as default, fullBgHero, placeOfBusiness };
@@ -0,0 +1,40 @@
1
+ import { css } from 'styled-components';
2
+ import { getTheme, getCurrentThemeName } from '../components/utils.js';
3
+ /*
4
+ Example usage:
5
+
6
+ const StyledComponent = styled.div`
7
+
8
+ // Mobile as starting point
9
+ font-size: 10px;
10
+
11
+ ${media.tablet`
12
+ font-size: 20px;
13
+ `}
14
+
15
+ ${media.desktop`
16
+ font-size: 30px;
17
+ `}
18
+
19
+ `
20
+ */
21
+
22
+ var theme = getTheme(getCurrentThemeName());
23
+ var media = {
24
+ mobileLarge: function mobileLarge() {
25
+ return css(["@media screen and (min-width:480px){", "}"], css.apply(void 0, arguments));
26
+ },
27
+ tablet: function tablet() {
28
+ return css(["@media screen and (min-width:", "){", "}"], theme.breakpoints.mobile, css.apply(void 0, arguments));
29
+ },
30
+ desktop: function desktop() {
31
+ return css(["@media screen and (min-width:", "){", "}"], theme.breakpoints.tablet, css.apply(void 0, arguments));
32
+ },
33
+ desktopLarge: function desktopLarge() {
34
+ return css(["@media screen and (min-width:", "){", "}"], theme.breakpoints.desktop, css.apply(void 0, arguments));
35
+ },
36
+ widerThanRestrictedWidthContainer: function widerThanRestrictedWidthContainer() {
37
+ return css(["@media screen and (min-width:", "){", "}"], theme.components.restrictedWidthContainer.maxWidth, css.apply(void 0, arguments));
38
+ }
39
+ };
40
+ export { media as default, media };
@@ -0,0 +1,11 @@
1
+ import { neutral } from '@sok/design-system';
2
+ /**
3
+ * Mobile: <=768px
4
+ * Tablet: >768 & <=1024px
5
+ * Desktop: >1024px & <=1440px
6
+ * Large Desktop: >1440px
7
+ */
8
+
9
+ var breakpoints = neutral.breakpoints,
10
+ breakpointsArray = neutral.breakpointsArray;
11
+ export { breakpoints, breakpointsArray };
@@ -0,0 +1,3 @@
1
+ import { neutral } from '@sok/design-system';
2
+ var colors = neutral.colors;
3
+ export { colors };