rk-designsystem 1.3.2 → 1.3.4
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.
- package/dist/assets/logos/RedCrossLogo.js +30 -0
- package/dist/components/Carousel/index.js +11 -10
- package/dist/components/Carousel/styles.module.css.js +24 -24
- package/dist/components/DatePicker/index.js +30 -30
- package/dist/components/DatePicker/styles.module.css.js +20 -18
- package/dist/components/Donor/index.js +35 -24
- package/dist/components/Footer/index.js +180 -185
- package/dist/components/Footer/styles.module.css.js +44 -44
- package/dist/components/Header/index.js +219 -240
- package/dist/components/Header/styles.module.css.js +76 -76
- package/dist/rk-designsystem.css +1 -1
- package/package.json +2 -2
|
@@ -1,173 +1,150 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
2
|
+
import { jsxs as n, jsx as t, Fragment as ne } from "react/jsx-runtime";
|
|
3
|
+
import X from "react";
|
|
4
4
|
import e from "./styles.module.css.js";
|
|
5
5
|
import { Link as c } from "../Link/index.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Input as
|
|
6
|
+
import { Button as ie } from "../Button/index.js";
|
|
7
|
+
import { Input as se } from "../Input/index.js";
|
|
8
8
|
import { GraphicElement as u } from "../GraphicElement/index.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { RedCrossLogo as L } from "../../assets/logos/RedCrossLogo.js";
|
|
10
|
+
import { useLanguageOptional as le } from "../../context/LanguageContext.js";
|
|
11
|
+
const ue = ({
|
|
12
|
+
"data-color": p = "neutral",
|
|
12
13
|
variant: a = "default",
|
|
13
|
-
colorScheme:
|
|
14
|
+
colorScheme: F,
|
|
14
15
|
columns: v,
|
|
15
16
|
showGraphicElements: m = !1,
|
|
16
|
-
newsletterDescription:
|
|
17
|
-
newsletterPlaceholder:
|
|
18
|
-
newsletterButtonText:
|
|
19
|
-
newsletterConsentText:
|
|
20
|
-
onNewsletterSubmit:
|
|
21
|
-
hideNewsletter:
|
|
22
|
-
shortcutsLinks:
|
|
23
|
-
linksLinks:
|
|
24
|
-
shortcutsTitle:
|
|
25
|
-
linksTitle:
|
|
26
|
-
visitingAddress:
|
|
27
|
-
organizationNumber:
|
|
28
|
-
email:
|
|
17
|
+
newsletterDescription: K = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
|
|
18
|
+
newsletterPlaceholder: O = "Input tekst",
|
|
19
|
+
newsletterButtonText: P = "Meld deg på",
|
|
20
|
+
newsletterConsentText: V,
|
|
21
|
+
onNewsletterSubmit: w,
|
|
22
|
+
hideNewsletter: G = !1,
|
|
23
|
+
shortcutsLinks: W,
|
|
24
|
+
linksLinks: Y,
|
|
25
|
+
shortcutsTitle: T,
|
|
26
|
+
linksTitle: R,
|
|
27
|
+
visitingAddress: N = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
|
|
28
|
+
organizationNumber: b = "XXX XXX XXX",
|
|
29
|
+
email: k = "post@redcross.no",
|
|
29
30
|
showPrimaryLogo: z = !0,
|
|
30
31
|
primaryLogoSrc: d,
|
|
31
|
-
primaryLogoAlt:
|
|
32
|
+
primaryLogoAlt: $ = "Røde Kors Logo",
|
|
32
33
|
whiteSectionSlot: f,
|
|
33
|
-
socialLinks:
|
|
34
|
-
contactPersons:
|
|
34
|
+
socialLinks: S = [],
|
|
35
|
+
contactPersons: j = [],
|
|
35
36
|
legalLinks: g = [],
|
|
36
|
-
socialLinksTitle:
|
|
37
|
-
contactPersonsTitle:
|
|
37
|
+
socialLinksTitle: E,
|
|
38
|
+
contactPersonsTitle: M
|
|
38
39
|
} = {}) => {
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const C = (/* @__PURE__ */ new Date()).getFullYear(), { t: A } = le(), y = p === "primary" ? "primary-color-red" : p === "additional" ? "additional-color-ocean" : p, [I, H] = X.useState(""), s = (i, l) => {
|
|
41
|
+
const o = A(i);
|
|
42
|
+
return o === i ? l : o;
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
if (typeof document > "u" || document.getElementById(
|
|
46
|
-
const
|
|
47
|
-
|
|
44
|
+
X.useEffect(() => {
|
|
45
|
+
const i = "rk-footer-inline-styles";
|
|
46
|
+
if (typeof document > "u" || document.getElementById(i)) return;
|
|
47
|
+
const l = oe(e), o = document.createElement("style");
|
|
48
|
+
o.id = i, o.textContent = l, document.head.prepend(o);
|
|
48
49
|
}, []);
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
"
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/* @__PURE__ */ t("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
|
|
65
|
-
/* @__PURE__ */ t("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
|
|
66
|
-
/* @__PURE__ */ t("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
|
|
67
|
-
/* @__PURE__ */ t("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
|
|
68
|
-
/* @__PURE__ */ t("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
|
|
69
|
-
/* @__PURE__ */ t("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
|
|
70
|
-
/* @__PURE__ */ t("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
|
|
71
|
-
/* @__PURE__ */ t("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
72
|
-
/* @__PURE__ */ t("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
), x = [
|
|
76
|
-
{ label: l("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
|
|
77
|
-
{ label: l("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
|
|
78
|
-
{ label: l("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
|
|
79
|
-
{ label: l("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
|
|
80
|
-
{ label: l("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
|
|
81
|
-
{ label: l("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
|
|
82
|
-
], j = [
|
|
83
|
-
{ label: l("footer.legal.privacy", "Personvern"), href: "#" },
|
|
84
|
-
{ label: l("footer.legal.press", "For presse"), href: "#" },
|
|
85
|
-
{ label: l("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
|
|
86
|
-
{ label: l("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
|
|
87
|
-
], q = /* @__PURE__ */ i(ie, { children: [
|
|
50
|
+
const q = (i) => {
|
|
51
|
+
i.preventDefault(), w == null || w(I);
|
|
52
|
+
}, x = [
|
|
53
|
+
{ label: s("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
|
|
54
|
+
{ label: s("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
|
|
55
|
+
{ label: s("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
|
|
56
|
+
{ label: s("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
|
|
57
|
+
{ label: s("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
|
|
58
|
+
{ label: s("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
|
|
59
|
+
], B = [
|
|
60
|
+
{ label: s("footer.legal.privacy", "Personvern"), href: "#" },
|
|
61
|
+
{ label: s("footer.legal.press", "For presse"), href: "#" },
|
|
62
|
+
{ label: s("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
|
|
63
|
+
{ label: s("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
|
|
64
|
+
], J = /* @__PURE__ */ n(ne, { children: [
|
|
88
65
|
'Ved å trykke "',
|
|
89
|
-
|
|
66
|
+
P,
|
|
90
67
|
'" samtykker du til å motta nyhetsbrev.',
|
|
91
68
|
/* @__PURE__ */ t("br", {}),
|
|
92
69
|
"Du kan når som helst ",
|
|
93
70
|
/* @__PURE__ */ t(c, { href: "#", children: "melde deg av" }),
|
|
94
71
|
" nyhetsbrevet uten kostnad."
|
|
95
|
-
] }),
|
|
96
|
-
|
|
97
|
-
/* @__PURE__ */ t("ul", { className: e.socialLinksList, children:
|
|
98
|
-
/* @__PURE__ */ t("span", { className: e.socialLinkIcon, children:
|
|
99
|
-
|
|
100
|
-
] }) },
|
|
101
|
-
] }), _ = ({ person:
|
|
102
|
-
/* @__PURE__ */ t("p", { className: e.contactPersonName, children:
|
|
103
|
-
/* @__PURE__ */ t("p", { className: e.contactPersonRole, children:
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
|
|
72
|
+
] }), Q = W || x, U = Y || B, Z = () => /* @__PURE__ */ n("div", { className: e.socialLinksSection, children: [
|
|
73
|
+
E && /* @__PURE__ */ t("h3", { className: e.socialLinksTitle, children: E }),
|
|
74
|
+
/* @__PURE__ */ t("ul", { className: e.socialLinksList, children: S.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ n(c, { href: i.href, className: e.socialLink, children: [
|
|
75
|
+
/* @__PURE__ */ t("span", { className: e.socialLinkIcon, children: i.icon }),
|
|
76
|
+
i.label
|
|
77
|
+
] }) }, l)) })
|
|
78
|
+
] }), _ = ({ person: i }) => /* @__PURE__ */ n("div", { className: e.contactPersonCard, children: [
|
|
79
|
+
/* @__PURE__ */ t("p", { className: e.contactPersonName, children: i.name }),
|
|
80
|
+
/* @__PURE__ */ t("p", { className: e.contactPersonRole, children: i.role }),
|
|
81
|
+
/* @__PURE__ */ n("div", { className: e.contactPersonDetails, children: [
|
|
82
|
+
/* @__PURE__ */ n("p", { className: e.contactPersonEmail, children: [
|
|
83
|
+
/* @__PURE__ */ n("span", { className: e.contactPersonLabel, children: [
|
|
84
|
+
s("footer.contact.email", "E-post"),
|
|
108
85
|
":"
|
|
109
86
|
] }),
|
|
110
87
|
" ",
|
|
111
|
-
/* @__PURE__ */ t(c, { href: `mailto:${
|
|
88
|
+
/* @__PURE__ */ t(c, { href: `mailto:${i.email}`, children: i.email })
|
|
112
89
|
] }),
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
90
|
+
i.phone && /* @__PURE__ */ n("p", { className: e.contactPersonPhone, children: [
|
|
91
|
+
/* @__PURE__ */ n("span", { className: e.contactPersonLabel, children: [
|
|
92
|
+
s("footer.contact.phone", "Telefon"),
|
|
116
93
|
":"
|
|
117
94
|
] }),
|
|
118
95
|
" ",
|
|
119
|
-
|
|
96
|
+
i.phone
|
|
120
97
|
] }),
|
|
121
|
-
|
|
98
|
+
i.address && /* @__PURE__ */ t("p", { className: e.contactPersonAddress, children: i.address })
|
|
122
99
|
] })
|
|
123
|
-
] }), ee = () => /* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
/* @__PURE__ */ t("div", { className: e.contactPersonsGrid, children:
|
|
126
|
-
] }), te = () => /* @__PURE__ */ t("ul", { className: e.legalLinksRow, children: g.map((
|
|
100
|
+
] }), ee = () => /* @__PURE__ */ n("div", { className: e.contactPersonsSection, children: [
|
|
101
|
+
M && /* @__PURE__ */ t("h3", { className: e.contactPersonsTitle, children: M }),
|
|
102
|
+
/* @__PURE__ */ t("div", { className: e.contactPersonsGrid, children: j.map((i, l) => /* @__PURE__ */ t(_, { person: i }, l)) })
|
|
103
|
+
] }), te = () => /* @__PURE__ */ t("ul", { className: e.legalLinksRow, children: g.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.legalLink, children: i.label }) }, l)) });
|
|
127
104
|
if (a === "columns") {
|
|
128
|
-
const
|
|
105
|
+
const i = [
|
|
129
106
|
{
|
|
130
|
-
title:
|
|
107
|
+
title: s("footer.contact.title", "Kontakt"),
|
|
131
108
|
links: x
|
|
132
109
|
},
|
|
133
110
|
{
|
|
134
|
-
title:
|
|
111
|
+
title: s("footer.bidra", "Bidra"),
|
|
135
112
|
links: x
|
|
136
113
|
},
|
|
137
114
|
{
|
|
138
|
-
title:
|
|
115
|
+
title: s("footer.shortcuts", "Snarveier"),
|
|
139
116
|
links: x
|
|
140
117
|
}
|
|
141
|
-
],
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */ t("div", { className: e.dpMain, children: /* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */ t("div", { className: e.dpColumns, children:
|
|
145
|
-
/* @__PURE__ */ t("h3", { className: e.dpColTitle, children:
|
|
146
|
-
/* @__PURE__ */ t("ul", { className: e.dpList, children:
|
|
147
|
-
] },
|
|
118
|
+
], l = v && v.length > 0 ? v : i, o = g.length > 0 ? g : B;
|
|
119
|
+
return /* @__PURE__ */ n("footer", { className: e.footer, "data-color": y, "data-color-scheme": F, children: [
|
|
120
|
+
/* @__PURE__ */ t("div", { className: e.dpMain, children: /* @__PURE__ */ n("div", { className: e.dpContainer, children: [
|
|
121
|
+
/* @__PURE__ */ t("div", { className: e.dpColumns, children: l.map((r, h) => /* @__PURE__ */ n("nav", { className: e.dpColumn, "aria-label": r.title, children: [
|
|
122
|
+
/* @__PURE__ */ t("h3", { className: e.dpColTitle, children: r.title }),
|
|
123
|
+
/* @__PURE__ */ t("ul", { className: e.dpList, children: r.links.map((D, ae) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: D.href, className: e.dpLink, children: D.label }) }, ae)) })
|
|
124
|
+
] }, h)) }),
|
|
148
125
|
/* @__PURE__ */ t("hr", { className: e.dpDivider }),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children:
|
|
152
|
-
|
|
126
|
+
/* @__PURE__ */ n("div", { className: e.dpMeta, children: [
|
|
127
|
+
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
128
|
+
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.visitingAddress", "Besøksadresse") }),
|
|
129
|
+
N.map((r, h) => /* @__PURE__ */ t("p", { className: e.dpMetaText, children: r }, h))
|
|
153
130
|
] }),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children:
|
|
156
|
-
/* @__PURE__ */ t("p", { className: e.dpMetaText, children: N })
|
|
157
|
-
] }),
|
|
158
|
-
/* @__PURE__ */ i("div", { className: e.dpMetaCol, children: [
|
|
159
|
-
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: l("footer.contact.email", "E-post") }),
|
|
131
|
+
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
132
|
+
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
160
133
|
/* @__PURE__ */ t("p", { className: e.dpMetaText, children: b })
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
136
|
+
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.email", "E-post") }),
|
|
137
|
+
/* @__PURE__ */ t("p", { className: e.dpMetaText, children: k })
|
|
161
138
|
] })
|
|
162
139
|
] }),
|
|
163
140
|
/* @__PURE__ */ t("hr", { className: e.dpDivider }),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ t("ul", { className: e.dpLegal, children:
|
|
166
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ n("div", { className: e.dpBottom, children: [
|
|
142
|
+
/* @__PURE__ */ t("ul", { className: e.dpLegal, children: o.map((r, h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: r.href, className: e.dpLegalLink, children: r.label }) }, h)) }),
|
|
143
|
+
/* @__PURE__ */ n("p", { className: e.dpCopyright, children: [
|
|
167
144
|
"© ",
|
|
168
|
-
|
|
145
|
+
C,
|
|
169
146
|
" ",
|
|
170
|
-
|
|
147
|
+
s("footer.copyright", "Røde Kors")
|
|
171
148
|
] })
|
|
172
149
|
] })
|
|
173
150
|
] }) }),
|
|
@@ -175,131 +152,131 @@ const xe = ({
|
|
|
175
152
|
"img",
|
|
176
153
|
{
|
|
177
154
|
src: d,
|
|
178
|
-
alt:
|
|
155
|
+
alt: $,
|
|
179
156
|
className: e.logo,
|
|
180
157
|
loading: "lazy"
|
|
181
158
|
}
|
|
182
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
159
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(L, { className: e.redCrossLogo }) }) }) }) })
|
|
183
160
|
] });
|
|
184
161
|
}
|
|
185
|
-
return a === "contact" ? /* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */
|
|
162
|
+
return a === "contact" ? /* @__PURE__ */ n("footer", { className: e.footer, "data-color": y, children: [
|
|
163
|
+
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */ n("div", { className: e.mainContainer, children: [
|
|
187
164
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementTopRight, children: /* @__PURE__ */ t(u, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
165
|
+
/* @__PURE__ */ n("div", { className: e.contentRowContact, children: [
|
|
166
|
+
S.length > 0 && /* @__PURE__ */ t(Z, {}),
|
|
167
|
+
j.length > 0 && /* @__PURE__ */ t(ee, {})
|
|
191
168
|
] }),
|
|
192
169
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children:
|
|
196
|
-
/* @__PURE__ */ t("div", { className: e.contactContent, children:
|
|
170
|
+
/* @__PURE__ */ n("div", { className: e.contactSection, children: [
|
|
171
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
172
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.visitingAddress", "Besøks adresse") }),
|
|
173
|
+
/* @__PURE__ */ t("div", { className: e.contactContent, children: N.map((i, l) => /* @__PURE__ */ t("p", { children: i }, l)) })
|
|
197
174
|
] }),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children:
|
|
200
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children: N })
|
|
201
|
-
] }),
|
|
202
|
-
/* @__PURE__ */ i("div", { className: e.contactColumn, children: [
|
|
203
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: l("footer.contact.email", "E-post") }),
|
|
175
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
176
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
204
177
|
/* @__PURE__ */ t("p", { className: e.contactContent, children: b })
|
|
178
|
+
] }),
|
|
179
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
180
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.email", "E-post") }),
|
|
181
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: k })
|
|
205
182
|
] })
|
|
206
183
|
] }),
|
|
207
184
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
208
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ n("div", { className: e.bottomRowContact, children: [
|
|
209
186
|
g.length > 0 && /* @__PURE__ */ t(te, {}),
|
|
210
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ n("p", { className: e.copyrightText, children: [
|
|
211
188
|
"© ",
|
|
212
|
-
|
|
189
|
+
C,
|
|
213
190
|
" ",
|
|
214
|
-
|
|
191
|
+
s("footer.copyright", "Rødekors")
|
|
215
192
|
] })
|
|
216
193
|
] }),
|
|
217
194
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementBottomLeft, children: /* @__PURE__ */ t(u, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
218
195
|
] }) }),
|
|
219
|
-
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */ n("div", { className: e.whiteContent, children: [
|
|
220
197
|
z && (d ? /* @__PURE__ */ t(
|
|
221
198
|
"img",
|
|
222
199
|
{
|
|
223
200
|
src: d,
|
|
224
|
-
alt:
|
|
201
|
+
alt: $,
|
|
225
202
|
className: e.logo,
|
|
226
203
|
loading: "lazy"
|
|
227
204
|
}
|
|
228
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
205
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(L, { className: e.redCrossLogo }) })),
|
|
229
206
|
f && /* @__PURE__ */ t("div", { className: e.slotLarge, children: f })
|
|
230
207
|
] }) }) })
|
|
231
|
-
] }) : /* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */
|
|
208
|
+
] }) : /* @__PURE__ */ n("footer", { className: e.footer, "data-color": y, children: [
|
|
209
|
+
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */ n("div", { className: e.mainContainer, children: [
|
|
233
210
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementTopRight, children: /* @__PURE__ */ t(u, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
!
|
|
236
|
-
/* @__PURE__ */ t("p", { className: e.newsletterDescription, children:
|
|
237
|
-
/* @__PURE__ */ t("form", { className: e.newsletterForm, onSubmit:
|
|
211
|
+
/* @__PURE__ */ n("div", { className: e.contentRow, children: [
|
|
212
|
+
!G && /* @__PURE__ */ n("div", { className: e.newsletterSection, children: [
|
|
213
|
+
/* @__PURE__ */ t("p", { className: e.newsletterDescription, children: K }),
|
|
214
|
+
/* @__PURE__ */ t("form", { className: e.newsletterForm, onSubmit: q, children: /* @__PURE__ */ n("div", { className: e.newsletterInputGroup, children: [
|
|
238
215
|
/* @__PURE__ */ t(
|
|
239
|
-
|
|
216
|
+
se,
|
|
240
217
|
{
|
|
241
218
|
type: "email",
|
|
242
|
-
placeholder:
|
|
243
|
-
value:
|
|
244
|
-
onChange: (
|
|
219
|
+
placeholder: O,
|
|
220
|
+
value: I,
|
|
221
|
+
onChange: (i) => H(i.target.value),
|
|
245
222
|
className: e.newsletterInput
|
|
246
223
|
}
|
|
247
224
|
),
|
|
248
|
-
/* @__PURE__ */ t(
|
|
225
|
+
/* @__PURE__ */ t(ie, { type: "submit", variant: "primary", "data-color": "neutral", children: P })
|
|
249
226
|
] }) }),
|
|
250
|
-
/* @__PURE__ */ t("p", { className: e.consentText, children:
|
|
227
|
+
/* @__PURE__ */ t("p", { className: e.consentText, children: V || J })
|
|
251
228
|
] }),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */ t("h3", { className: e.linksTitle, children:
|
|
255
|
-
/* @__PURE__ */ t("ul", { className: e.linksList, children:
|
|
229
|
+
/* @__PURE__ */ n("div", { className: e.linksSection, children: [
|
|
230
|
+
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label": T || s("footer.shortcuts", "Snarveier"), children: [
|
|
231
|
+
/* @__PURE__ */ t("h3", { className: e.linksTitle, children: T || s("footer.shortcuts", "Snarveier") }),
|
|
232
|
+
/* @__PURE__ */ t("ul", { className: e.linksList, children: Q.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.footerLink, children: i.label }) }, l)) })
|
|
256
233
|
] }),
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
/* @__PURE__ */ t("h3", { className: e.linksTitle, children:
|
|
259
|
-
/* @__PURE__ */ t("ul", { className: e.linksList, children:
|
|
234
|
+
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label": R || s("footer.links", "Lenker"), children: [
|
|
235
|
+
/* @__PURE__ */ t("h3", { className: e.linksTitle, children: R || s("footer.links", "Lenker") }),
|
|
236
|
+
/* @__PURE__ */ t("ul", { className: e.linksList, children: U.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.footerLink, children: i.label }) }, l)) })
|
|
260
237
|
] })
|
|
261
238
|
] })
|
|
262
239
|
] }),
|
|
263
240
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children:
|
|
267
|
-
/* @__PURE__ */ t("div", { className: e.contactContent, children:
|
|
241
|
+
/* @__PURE__ */ n("div", { className: e.contactSection, children: [
|
|
242
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
243
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.visitingAddress", "Besøks adresse") }),
|
|
244
|
+
/* @__PURE__ */ t("div", { className: e.contactContent, children: N.map((i, l) => /* @__PURE__ */ t("p", { children: i }, l)) })
|
|
268
245
|
] }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children:
|
|
271
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children: N })
|
|
272
|
-
] }),
|
|
273
|
-
/* @__PURE__ */ i("div", { className: e.contactColumn, children: [
|
|
274
|
-
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: l("footer.contact.email", "E-post") }),
|
|
246
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
247
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
275
248
|
/* @__PURE__ */ t("p", { className: e.contactContent, children: b })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
251
|
+
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.email", "E-post") }),
|
|
252
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: k })
|
|
276
253
|
] })
|
|
277
254
|
] }),
|
|
278
255
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
279
|
-
/* @__PURE__ */ t("div", { className: e.copyrightSection, children: /* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ t("div", { className: e.copyrightSection, children: /* @__PURE__ */ n("p", { className: e.copyrightText, children: [
|
|
280
257
|
"© ",
|
|
281
|
-
|
|
258
|
+
C,
|
|
282
259
|
" ",
|
|
283
|
-
|
|
260
|
+
s("footer.copyright", "Rødekors")
|
|
284
261
|
] }) }),
|
|
285
262
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementBottomLeft, children: /* @__PURE__ */ t(u, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
286
263
|
] }) }),
|
|
287
|
-
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */ n("div", { className: e.whiteContent, children: [
|
|
288
265
|
z && (d ? /* @__PURE__ */ t(
|
|
289
266
|
"img",
|
|
290
267
|
{
|
|
291
268
|
src: d,
|
|
292
|
-
alt:
|
|
269
|
+
alt: $,
|
|
293
270
|
className: e.logo,
|
|
294
271
|
loading: "lazy"
|
|
295
272
|
}
|
|
296
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
273
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(L, { className: e.redCrossLogo }) })),
|
|
297
274
|
f && /* @__PURE__ */ t("div", { className: e.slotLarge, children: f })
|
|
298
275
|
] }) }) })
|
|
299
276
|
] });
|
|
300
277
|
};
|
|
301
|
-
function
|
|
302
|
-
const a =
|
|
278
|
+
function oe(p) {
|
|
279
|
+
const a = p;
|
|
303
280
|
return `
|
|
304
281
|
.${a.footer} {
|
|
305
282
|
margin-top: auto;
|
|
@@ -493,6 +470,8 @@ function re(h) {
|
|
|
493
470
|
width: 169px;
|
|
494
471
|
height: auto;
|
|
495
472
|
display: block;
|
|
473
|
+
/* Pinned dark: this logo sits in the hardcoded white band. */
|
|
474
|
+
color: #1e1e1e;
|
|
496
475
|
}
|
|
497
476
|
.${a.slotLarge} {
|
|
498
477
|
background-color: var(--ds-color-neutral-surface-default, #ffffff);
|
|
@@ -715,8 +694,24 @@ function re(h) {
|
|
|
715
694
|
gap: var(--ds-size-2, 8px);
|
|
716
695
|
}
|
|
717
696
|
}
|
|
697
|
+
|
|
698
|
+
/* Mobil: fallback-kopien hadde 1024- og 768-blokkene, men ikke denne. En
|
|
699
|
+
konsument uten stilarket fikk derfor skrivebordsverdiene på telefon —
|
|
700
|
+
logoen på 169px, overskriftene på 30px. Speiler @media (max-width: 480px)
|
|
701
|
+
i styles.module.css. */
|
|
702
|
+
@media (max-width: 480px) {
|
|
703
|
+
.${a.mainContainer} { padding: var(--ds-size-10, 40px) var(--ds-size-4, 16px); }
|
|
704
|
+
.${a.whiteContainer} { padding: var(--ds-size-4) var(--ds-size-4); }
|
|
705
|
+
.${a.linksTitle},
|
|
706
|
+
.${a.socialLinksTitle} { font-size: var(--ds-font-size-5, 21px); }
|
|
707
|
+
.${a.linksColumn},
|
|
708
|
+
.${a.contactColumn} { min-width: 0; }
|
|
709
|
+
.${a.logo} img,
|
|
710
|
+
.${a.redCrossLogo} { width: 130px; }
|
|
711
|
+
.${a.newsletterInputGroup} { flex-direction: column; }
|
|
712
|
+
}
|
|
718
713
|
`;
|
|
719
714
|
}
|
|
720
715
|
export {
|
|
721
|
-
|
|
716
|
+
ue as Footer
|
|
722
717
|
};
|