@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.
- package/LICENSE +21 -0
- package/README.md +31 -3
- package/dist/_virtual/_tslib.js +234 -0
- package/dist/assets/icons/Icons.js +118 -0
- package/dist/assets/logos/logos.js +19 -0
- package/dist/components/Accordion/Accordion.js +36 -0
- package/dist/components/Accordion/Accordion.styles.js +75 -0
- package/dist/components/AnimationWrapper/AnimationWrapper.js +35 -0
- package/dist/components/AnimationWrapper/AnimationWrapper.styles.js +26 -0
- package/dist/components/BlockGenerator/BlockContent.js +139 -0
- package/dist/components/BlockGenerator/BlockGenerator.js +62 -0
- package/dist/components/BlockGenerator/BlockGenerator.styles.js +44 -0
- package/dist/components/Button/Button.js +49 -0
- package/dist/components/Button/Button.styles.js +46 -0
- package/dist/components/Card/Card.js +79 -0
- package/dist/components/Card/Card.styles.js +137 -0
- package/dist/components/Carousel/Carousel.js +153 -0
- package/dist/components/Carousel/Carousel.styles.js +261 -0
- package/dist/components/CarouselNarrow/CarouselNarrow.js +120 -0
- package/dist/components/CarouselNarrow/CarouselNarrow.styles.js +281 -0
- package/dist/components/Column/Column.js +31 -0
- package/dist/components/Column/Column.styles.js +34 -0
- package/dist/components/Columns/Columns.js +38 -0
- package/dist/components/Columns/Columns.styles.js +21 -0
- package/dist/components/Embed/Embed.js +54 -0
- package/dist/components/Embed/Embed.styles.js +12 -0
- package/dist/components/Footer/Footer.js +63 -0
- package/dist/components/Footer/Footer.styles.js +67 -0
- package/dist/components/FormBuilder/FormBuilder.js +364 -0
- package/dist/components/FormBuilder/FormBuilder.styles.js +224 -0
- package/dist/components/FormBuilder/FormBuilderCheckboxes.js +39 -0
- package/dist/components/FormBuilder/FormBuilderInput.js +29 -0
- package/dist/components/FormBuilder/FormBuilderParagraph.js +15 -0
- package/dist/components/FormBuilder/FormBuilderSelect.js +39 -0
- package/dist/components/FormBuilder/FormBuilderTextAreaInput.js +29 -0
- package/dist/components/FormBuilder/utiles.js +13 -0
- package/dist/components/FullBgHero/FullBgHero.js +93 -0
- package/dist/components/FullBgHero/FullBgHero.styles.js +180 -0
- package/dist/components/GlobalStyle/GlobalStyle.js +285 -0
- package/dist/components/Header/Header.js +290 -0
- package/dist/components/Header/Header.styles.js +314 -0
- package/dist/components/Heading/Heading.js +29 -0
- package/dist/components/Heading/Heading.styles.js +21 -0
- package/dist/components/Hero/Hero.js +76 -0
- package/dist/components/Hero/Hero.styles.js +128 -0
- package/dist/components/IconLinks/IconLinks.js +118 -0
- package/dist/components/IconLinks/IconLinks.styles.js +259 -0
- package/dist/components/ImageCarousel/ImageCarousel.js +102 -0
- package/dist/components/ImageCarousel/ImageCarousel.styles.js +96 -0
- package/dist/components/LanguageSelector/LanguageSelector.js +72 -0
- package/dist/components/LanguageSelector/LanguageSelector.styles.js +72 -0
- package/dist/components/Layout/Layout.js +15 -0
- package/dist/components/Layout/Layout.styles.js +8 -0
- package/dist/components/List/List.js +25 -0
- package/dist/components/List/List.styles.js +11 -0
- package/dist/components/MarginWrapper/MarginWrapper.js +17 -0
- package/dist/components/MarginWrapper/MarginWrapper.styles.js +38 -0
- package/dist/components/OverlayCards/OverlayCard/OverlayCard.js +132 -0
- package/dist/components/OverlayCards/OverlayCard/OverlayCard.styles.js +133 -0
- package/dist/components/OverlayCards/OverlayCards.js +46 -0
- package/dist/components/OverlayCards/OverlayCards.styles.js +14 -0
- package/dist/components/OverlayCards/OverlayCards.types.js +9 -0
- package/dist/components/Paragraph/Paragraph.js +29 -0
- package/dist/components/Paragraph/Paragraph.styles.js +14 -0
- package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.js +45 -0
- package/dist/components/PlaceOfBusiness/ContactInformation/ContactInformation.styles.js +37 -0
- package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.js +16 -0
- package/dist/components/PlaceOfBusiness/LogoTitle/LogoTitle.styles.js +44 -0
- package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.js +43 -0
- package/dist/components/PlaceOfBusiness/OpenToday/OpenToday.styles.js +63 -0
- package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.js +77 -0
- package/dist/components/PlaceOfBusiness/OpeningHours/OpeningHours.styles.js +68 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.js +125 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessInfo/PlaceOfBusinessInfo.styles.js +32 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.js +85 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessListItem/PlaceOfBusinessListItem.styles.js +134 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.js +142 -0
- package/dist/components/PlaceOfBusiness/PlaceOfBusinessSearch/PlaceOfBusinessSearch.styles.js +43 -0
- package/dist/components/PlaceOfBusiness/Services/Services.js +30 -0
- package/dist/components/PlaceOfBusiness/Services/Services.styles.js +61 -0
- package/dist/components/PlaceOfBusiness/utils.js +177 -0
- package/dist/components/Promotion/Promotion.js +66 -0
- package/dist/components/Promotion/Promotion.styles.js +124 -0
- package/dist/components/RestrictedWidthContainer/RestrictedWidthContainer.js +63 -0
- package/dist/components/Seo/Seo.js +58 -0
- package/dist/components/SideBySide/SideBySide.js +81 -0
- package/dist/components/SideBySide/SideBySide.styles.js +179 -0
- package/dist/components/SocialMediaLinks/SocialMediaLinks.js +28 -0
- package/dist/components/SocialMediaLinks/SocialMediaLinks.styles.js +22 -0
- package/dist/components/SubHero/SubHero.js +22 -0
- package/dist/components/SubHero/SubHero.styles.js +52 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/Table.styles.js +121 -0
- package/dist/components/Table/WpTable.styles.js +5 -0
- package/dist/components/constants.js +34 -0
- package/dist/components/utils.js +160 -0
- package/dist/fonts/Agrandir/Agrandir-Bold.woff.js +2 -0
- package/dist/fonts/Agrandir/Agrandir-Bold.woff2.js +2 -0
- package/dist/fonts/Agrandir/Agrandir-Light.woff.js +2 -0
- package/dist/fonts/Agrandir/Agrandir-Light.woff2.js +2 -0
- package/dist/fonts/Agrandir/index.js +16 -0
- package/dist/fonts/Brule/Brule-Bold.woff.js +2 -0
- package/dist/fonts/Brule/Brule-Bold.woff2.js +2 -0
- package/dist/fonts/Brule/Brule-Medium.woff.js +2 -0
- package/dist/fonts/Brule/Brule-Medium.woff2.js +2 -0
- package/dist/fonts/Brule/Brule-Regular.woff.js +2 -0
- package/dist/fonts/Brule/Brule-Regular.woff2.js +2 -0
- package/dist/fonts/Brule/index.js +18 -0
- package/dist/fonts/Domaine/Domaine-Text-Medium.woff.js +2 -0
- package/dist/fonts/Domaine/Domaine-Text-Medium.woff2.js +2 -0
- package/dist/fonts/Domaine/index.js +14 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff.js +2 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-Bk.woff2.js +2 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff.js +2 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-DmCn.woff2.js +2 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff.js +2 -0
- package/dist/fonts/FranklinGothic/FranklinGothic-LT-Com-MdCn.woff2.js +2 -0
- package/dist/fonts/FranklinGothic/index.js +18 -0
- package/dist/fonts/MinionPro/MinionPro-Regular.woff.js +2 -0
- package/dist/fonts/MinionPro/MinionPro-Regular.woff2.js +2 -0
- package/dist/fonts/MinionPro/index.js +14 -0
- package/dist/fonts/Montserrat/Montserrat-Bold.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Bold.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-BoldItalic.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBold.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Italic.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Italic.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Light.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Light.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-LightItalic.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-LightItalic.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Medium.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Medium.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-MediumItalic.woff2.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Regular.woff.js +2 -0
- package/dist/fonts/Montserrat/Montserrat-Regular.woff2.js +2 -0
- package/dist/fonts/Montserrat/index.js +90 -0
- package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-BoldItalic.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-ExtraboldItalic.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-LightItalic.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-LightItalic.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-MediumItalic.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUX-RegularItalic.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Bold.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Extrabold.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Light.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Light.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Medium.woff2.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff.js +2 -0
- package/dist/fonts/SBonus/SBonusUXWEB-Regular.woff2.js +2 -0
- package/dist/fonts/SBonus/index.js +95 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Bold.woff2.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Light.woff2.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Medium.woff2.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-Regular.woff2.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff.js +2 -0
- package/dist/fonts/SBonusDisplay/SBonusDisplay-SemiBold.woff2.js +2 -0
- package/dist/fonts/SBonusDisplay/index.js +22 -0
- package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff.js +2 -0
- package/dist/fonts/SuomiGrumpy/SuomiGrumpy-Black.woff2.js +2 -0
- package/dist/fonts/SuomiGrumpy/index.js +14 -0
- package/dist/fonts/utils.js +5 -0
- package/dist/hooks/useElementRect.js +65 -0
- package/dist/hooks/windowsize.js +31 -0
- package/dist/locales/constants.js +6 -0
- package/dist/locales/translations.json.js +153 -0
- package/dist/styles/media.js +40 -0
- package/dist/themes/neutral/breakpoints.js +11 -0
- package/dist/themes/neutral/colors.js +3 -0
- package/dist/themes/neutral/components.js +940 -0
- package/dist/themes/neutral/fonts.js +7 -0
- package/dist/themes/neutral/index.js +10 -0
- package/dist/themes/neutral/spacings.js +21 -0
- package/dist/themes/ravintolakonseptit/breakpoints.js +11 -0
- package/dist/themes/ravintolakonseptit/colors.js +17 -0
- package/dist/themes/ravintolakonseptit/components.js +936 -0
- package/dist/themes/ravintolakonseptit/fonts.js +5 -0
- package/dist/themes/ravintolakonseptit/index.js +10 -0
- package/dist/themes/ravintolakonseptit/spacings.js +21 -0
- package/dist/themes/sokos/breakpoints.js +11 -0
- package/dist/themes/sokos/colors.js +3 -0
- package/dist/themes/sokos/components.js +936 -0
- package/dist/themes/sokos/index.js +10 -0
- package/dist/themes/sokospalvelut/breakpoints.js +11 -0
- package/dist/themes/sokospalvelut/colors.js +3 -0
- package/dist/themes/sokospalvelut/components.js +936 -0
- package/dist/themes/sokospalvelut/fonts.js +11 -0
- package/dist/themes/sokospalvelut/index.js +10 -0
- package/dist/themes/theme.types.js +12 -0
- package/dist/themes/tykkimakiresort/colors.js +35 -0
- package/dist/themes/tykkimakiresort/components.js +936 -0
- package/dist/themes/tykkimakiresort/fonts.js +7 -0
- package/dist/themes/tykkimakiresort/index.js +10 -0
- package/package.json +33 -3
- 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,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 };
|