@purpur/library 9.0.2 → 9.0.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/CHANGELOG.json +27 -0
- package/CHANGELOG.md +16 -1
- package/dist/ThemeProvider-CrjMv3M8.mjs +337 -0
- package/dist/{ThemeProvider-mOHIAi2k.mjs.map → ThemeProvider-CrjMv3M8.mjs.map} +1 -1
- package/dist/ThemeProvider-ipAIFRUi.js +2 -0
- package/dist/{ThemeProvider-djmNDpmy.js.map → ThemeProvider-ipAIFRUi.js.map} +1 -1
- package/dist/{footer-DY0s_C6e.mjs → footer-DcWsihxS.mjs} +3 -4
- package/dist/{footer-DY0s_C6e.mjs.map → footer-DcWsihxS.mjs.map} +1 -1
- package/dist/footer-DrjAwjuL.js +2 -0
- package/dist/{footer-Btsh40pg.js.map → footer-DrjAwjuL.js.map} +1 -1
- package/dist/footer.cjs.js +1 -1
- package/dist/footer.es.js +1 -1
- package/dist/{hero-banner-Cl5YFaKh.mjs → hero-banner-B8fRHxXc.mjs} +4 -5
- package/dist/{hero-banner-Cl5YFaKh.mjs.map → hero-banner-B8fRHxXc.mjs.map} +1 -1
- package/dist/hero-banner-D3peC1NR.js +2 -0
- package/dist/{hero-banner-4JZr2Tzb.js.map → hero-banner-D3peC1NR.js.map} +1 -1
- package/dist/hero-banner.cjs.js +1 -1
- package/dist/hero-banner.es.js +1 -1
- package/dist/libraries/library/src/library.d.ts +1 -1
- package/dist/libraries/library/src/tokens.d.ts +1 -1
- package/dist/libraries/theme/src/useApplyTheme.d.ts.map +1 -1
- package/dist/libraries/tokens/dist/border/variables.d.ts +9 -0
- package/dist/libraries/tokens/dist/border/variables.dark.d.ts +9 -0
- package/dist/libraries/tokens/dist/breakpoint/variables.d.ts +8 -0
- package/dist/libraries/tokens/dist/breakpoint/variables.dark.d.ts +8 -0
- package/dist/libraries/tokens/dist/color/variables.d.ts +252 -0
- package/dist/libraries/tokens/dist/color/variables.dark.d.ts +251 -0
- package/dist/libraries/tokens/dist/dark.d.ts +9 -0
- package/dist/libraries/tokens/dist/filter/variables.d.ts +1 -0
- package/dist/libraries/tokens/dist/filter/variables.dark.d.ts +1 -0
- package/dist/libraries/tokens/dist/gradient/variables.d.ts +9 -0
- package/dist/libraries/tokens/dist/gradient/variables.dark.d.ts +9 -0
- package/dist/libraries/tokens/dist/index.d.ts +9 -0
- package/dist/libraries/tokens/dist/motion/variables.d.ts +11 -0
- package/dist/libraries/tokens/dist/motion/variables.dark.d.ts +11 -0
- package/dist/libraries/tokens/dist/shadow/variables.d.ts +4 -0
- package/dist/libraries/tokens/dist/shadow/variables.dark.d.ts +4 -0
- package/dist/libraries/tokens/dist/spacing/variables.d.ts +23 -0
- package/dist/libraries/tokens/dist/spacing/variables.dark.d.ts +15 -0
- package/dist/libraries/tokens/dist/typography/variables.d.ts +26 -0
- package/dist/libraries/tokens/dist/typography/variables.dark.d.ts +26 -0
- package/dist/library.cjs.js +1 -1
- package/dist/library.es.js +6 -6
- package/dist/promotion-card-C7B5ZJaB.js +2 -0
- package/dist/{promotion-card-DMCtLQwW.js.map → promotion-card-C7B5ZJaB.js.map} +1 -1
- package/dist/{promotion-card-D2F-EWgn.mjs → promotion-card-wGGt75eI.mjs} +4 -5
- package/dist/{promotion-card-D2F-EWgn.mjs.map → promotion-card-wGGt75eI.mjs.map} +1 -1
- package/dist/promotion-card.cjs.js +1 -1
- package/dist/promotion-card.es.js +1 -1
- package/dist/text-area-9ggiIWtJ.js +2 -0
- package/dist/{text-area-C4mcG5c0.js.map → text-area-9ggiIWtJ.js.map} +1 -1
- package/dist/{text-area-CJD8ksqm.mjs → text-area-Cb9Hm2Z9.mjs} +3 -4
- package/dist/{text-area-CJD8ksqm.mjs.map → text-area-Cb9Hm2Z9.mjs.map} +1 -1
- package/dist/text-area.cjs.js +1 -1
- package/dist/text-area.es.js +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.es.js +2 -2
- package/dist/tokens/dark.css +9 -0
- package/dist/tokens/dark.d.ts +9 -0
- package/dist/tokens/dark.js +9 -0
- package/dist/tokens/index.css +18 -0
- package/dist/tokens/index.d.ts +9 -0
- package/dist/tokens/index.js +9 -0
- package/dist/useColorScheme-DNNu9bz0.js +2 -0
- package/dist/{useColorScheme-DwlZAnlk.js.map → useColorScheme-DNNu9bz0.js.map} +1 -1
- package/dist/{useColorScheme-CgjazeGp.mjs → useColorScheme-DRQcbSog.mjs} +2 -2
- package/dist/{useColorScheme-CgjazeGp.mjs.map → useColorScheme-DRQcbSog.mjs.map} +1 -1
- package/package.json +17 -20
- package/scripts/generate.mts +1 -0
- package/src/aliases.ts +1 -0
- package/tokens/dark.css +9 -0
- package/tokens/dark.d.ts +9 -0
- package/tokens/dark.js +9 -0
- package/tokens/index.css +18 -0
- package/tokens/index.d.ts +9 -0
- package/tokens/index.js +9 -0
- package/dist/ThemeProvider-djmNDpmy.js +0 -2
- package/dist/ThemeProvider-mOHIAi2k.mjs +0 -338
- package/dist/footer-Btsh40pg.js +0 -2
- package/dist/hero-banner-4JZr2Tzb.js +0 -2
- package/dist/promotion-card-DMCtLQwW.js +0 -2
- package/dist/text-area-C4mcG5c0.js +0 -2
- package/dist/useColorScheme-DwlZAnlk.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpur/library",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -86,9 +86,6 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"source": "src/library.ts",
|
|
89
|
-
"dependencies": {
|
|
90
|
-
"change-case": "~5.4.4"
|
|
91
|
-
},
|
|
92
89
|
"devDependencies": {
|
|
93
90
|
"@microsoft/api-extractor": "^7.52.8",
|
|
94
91
|
"@microsoft/rush-lib": "5.166.0",
|
|
@@ -110,56 +107,56 @@
|
|
|
110
107
|
"vite": "^7.2.2",
|
|
111
108
|
"shx": "~0.4.0",
|
|
112
109
|
"@purpur/accordion": "8.21.0",
|
|
113
|
-
"@purpur/alert-badge": "8.21.0",
|
|
114
110
|
"@purpur/action": "8.21.0",
|
|
111
|
+
"@purpur/alert-badge": "8.21.0",
|
|
115
112
|
"@purpur/autocomplete": "8.21.0",
|
|
116
113
|
"@purpur/badge": "8.21.0",
|
|
117
114
|
"@purpur/breadcrumbs": "8.21.0",
|
|
118
|
-
"@purpur/button": "8.21.0",
|
|
119
115
|
"@purpur/calendar": "8.21.0",
|
|
116
|
+
"@purpur/button": "8.21.0",
|
|
120
117
|
"@purpur/card": "8.21.0",
|
|
121
118
|
"@purpur/checkbox": "8.21.0",
|
|
122
119
|
"@purpur/chip-group": "8.21.0",
|
|
123
120
|
"@purpur/color-dot": "8.21.0",
|
|
124
121
|
"@purpur/component-rig": "1.0.0",
|
|
125
122
|
"@purpur/common-types": "8.21.0",
|
|
126
|
-
"@purpur/content-block": "8.21.0",
|
|
127
123
|
"@purpur/container": "8.21.0",
|
|
128
124
|
"@purpur/countdown": "8.21.0",
|
|
125
|
+
"@purpur/content-block": "8.21.0",
|
|
129
126
|
"@purpur/counter-badge": "8.21.0",
|
|
130
127
|
"@purpur/cta-link": "8.21.0",
|
|
131
128
|
"@purpur/date-field": "8.21.0",
|
|
132
|
-
"@purpur/date-picker": "8.21.0",
|
|
133
129
|
"@purpur/dismissable-chip-group": "8.21.0",
|
|
130
|
+
"@purpur/date-picker": "8.21.0",
|
|
134
131
|
"@purpur/drawer": "8.21.0",
|
|
135
132
|
"@purpur/field-error-text": "8.21.0",
|
|
136
|
-
"@purpur/field-helper-text": "8.21.0",
|
|
137
|
-
"@purpur/heading": "8.21.0",
|
|
138
133
|
"@purpur/footer": "8.21.0",
|
|
134
|
+
"@purpur/field-helper-text": "8.21.0",
|
|
139
135
|
"@purpur/grid": "8.21.0",
|
|
136
|
+
"@purpur/heading": "8.21.0",
|
|
140
137
|
"@purpur/hero-banner": "8.21.0",
|
|
141
|
-
"@purpur/illustrative-icon": "8.21.0",
|
|
142
138
|
"@purpur/icon": "8.21.0",
|
|
139
|
+
"@purpur/label": "8.21.0",
|
|
140
|
+
"@purpur/illustrative-icon": "8.21.0",
|
|
143
141
|
"@purpur/link": "8.21.0",
|
|
144
142
|
"@purpur/listbox": "8.21.0",
|
|
145
|
-
"@purpur/label": "8.21.0",
|
|
146
143
|
"@purpur/logo": "8.21.0",
|
|
147
|
-
"@purpur/notification": "8.21.0",
|
|
148
144
|
"@purpur/modal": "8.21.0",
|
|
149
145
|
"@purpur/notification-banner": "8.21.0",
|
|
146
|
+
"@purpur/notification": "8.21.0",
|
|
147
|
+
"@purpur/pagination": "8.21.0",
|
|
150
148
|
"@purpur/paragraph": "8.21.0",
|
|
151
149
|
"@purpur/password-field": "8.21.0",
|
|
152
|
-
"@purpur/pagination": "8.21.0",
|
|
153
|
-
"@purpur/radio-button-group": "8.21.0",
|
|
154
150
|
"@purpur/popover": "8.21.0",
|
|
155
151
|
"@purpur/product-card": "8.21.0",
|
|
156
|
-
"@purpur/radio-card-group": "8.21.0",
|
|
157
|
-
"@purpur/quantity-selector": "8.21.0",
|
|
158
152
|
"@purpur/promotion-card": "8.21.0",
|
|
153
|
+
"@purpur/quantity-selector": "8.21.0",
|
|
154
|
+
"@purpur/radio-button-group": "8.21.0",
|
|
155
|
+
"@purpur/radio-card-group": "8.21.0",
|
|
159
156
|
"@purpur/rich-text": "8.21.0",
|
|
157
|
+
"@purpur/search-field": "8.21.0",
|
|
160
158
|
"@purpur/select": "8.21.0",
|
|
161
159
|
"@purpur/skeleton": "8.21.0",
|
|
162
|
-
"@purpur/search-field": "8.21.0",
|
|
163
160
|
"@purpur/slider": "8.21.0",
|
|
164
161
|
"@purpur/spacer": "8.21.0",
|
|
165
162
|
"@purpur/spinner": "8.21.0",
|
|
@@ -168,11 +165,11 @@
|
|
|
168
165
|
"@purpur/tabs": "8.21.0",
|
|
169
166
|
"@purpur/text-area": "8.21.0",
|
|
170
167
|
"@purpur/text-field": "8.21.0",
|
|
171
|
-
"@purpur/text-spacing": "8.21.0",
|
|
172
|
-
"@purpur/theme": "8.21.0",
|
|
173
168
|
"@purpur/toggle": "8.21.0",
|
|
174
169
|
"@purpur/tokens": "8.21.0",
|
|
170
|
+
"@purpur/text-spacing": "8.21.0",
|
|
175
171
|
"@purpur/tooltip": "8.21.0",
|
|
172
|
+
"@purpur/theme": "8.21.0",
|
|
176
173
|
"@purpur/visually-hidden": "8.21.0"
|
|
177
174
|
},
|
|
178
175
|
"peerDependencies": {
|
package/scripts/generate.mts
CHANGED
|
@@ -144,6 +144,7 @@ const internalLibs = [
|
|
|
144
144
|
},
|
|
145
145
|
{ name: "@purpur/theme", folder: "libraries/theme", source: "src/theme.ts" },
|
|
146
146
|
{ name: "@purpur/action", folder: "libraries/action", source: "src/action.tsx" },
|
|
147
|
+
{ name: "@purpur/tokens", folder: "libraries/tokens", source: "dist/index.js" },
|
|
147
148
|
];
|
|
148
149
|
|
|
149
150
|
for (const lib of internalLibs) {
|
package/src/aliases.ts
CHANGED
|
@@ -260,4 +260,5 @@ export const aliases = [
|
|
|
260
260
|
},
|
|
261
261
|
{ find: /^@purpur\/theme$/, replacement: resolve(__dirname, "../../theme/src/theme.ts") },
|
|
262
262
|
{ find: /^@purpur\/action$/, replacement: resolve(__dirname, "../../action/src/action.tsx") },
|
|
263
|
+
{ find: /^@purpur\/tokens$/, replacement: resolve(__dirname, "../../tokens/dist/index.js") },
|
|
263
264
|
];
|
package/tokens/dark.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import "./border/variables.dark.css";
|
|
2
|
+
@import "./breakpoint/variables.dark.css";
|
|
3
|
+
@import "./color/variables.dark.css";
|
|
4
|
+
@import "./filter/variables.dark.css";
|
|
5
|
+
@import "./gradient/variables.dark.css";
|
|
6
|
+
@import "./motion/variables.dark.css";
|
|
7
|
+
@import "./shadow/variables.dark.css";
|
|
8
|
+
@import "./spacing/variables.dark.css";
|
|
9
|
+
@import "./typography/variables.dark.css";
|
package/tokens/dark.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./border/variables.dark";
|
|
2
|
+
export * from "./breakpoint/variables.dark";
|
|
3
|
+
export * from "./color/variables.dark";
|
|
4
|
+
export * from "./filter/variables.dark";
|
|
5
|
+
export * from "./gradient/variables.dark";
|
|
6
|
+
export * from "./motion/variables.dark";
|
|
7
|
+
export * from "./shadow/variables.dark";
|
|
8
|
+
export * from "./spacing/variables.dark";
|
|
9
|
+
export * from "./typography/variables.dark";
|
package/tokens/dark.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./border/variables.dark";
|
|
2
|
+
export * from "./breakpoint/variables.dark";
|
|
3
|
+
export * from "./color/variables.dark";
|
|
4
|
+
export * from "./filter/variables.dark";
|
|
5
|
+
export * from "./gradient/variables.dark";
|
|
6
|
+
export * from "./motion/variables.dark";
|
|
7
|
+
export * from "./shadow/variables.dark";
|
|
8
|
+
export * from "./spacing/variables.dark";
|
|
9
|
+
export * from "./typography/variables.dark";
|
package/tokens/index.css
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "./border/variables.css";
|
|
2
|
+
@import "./breakpoint/variables.css";
|
|
3
|
+
@import "./color/variables.css";
|
|
4
|
+
@import "./filter/variables.css";
|
|
5
|
+
@import "./gradient/variables.css";
|
|
6
|
+
@import "./motion/variables.css";
|
|
7
|
+
@import "./shadow/variables.css";
|
|
8
|
+
@import "./spacing/variables.css";
|
|
9
|
+
@import "./typography/variables.css";
|
|
10
|
+
@import "./border/variables.dark.css";
|
|
11
|
+
@import "./breakpoint/variables.dark.css";
|
|
12
|
+
@import "./color/variables.dark.css";
|
|
13
|
+
@import "./filter/variables.dark.css";
|
|
14
|
+
@import "./gradient/variables.dark.css";
|
|
15
|
+
@import "./motion/variables.dark.css";
|
|
16
|
+
@import "./shadow/variables.dark.css";
|
|
17
|
+
@import "./spacing/variables.dark.css";
|
|
18
|
+
@import "./typography/variables.dark.css";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./border/variables";
|
|
2
|
+
export * from "./breakpoint/variables";
|
|
3
|
+
export * from "./color/variables";
|
|
4
|
+
export * from "./filter/variables";
|
|
5
|
+
export * from "./gradient/variables";
|
|
6
|
+
export * from "./motion/variables";
|
|
7
|
+
export * from "./shadow/variables";
|
|
8
|
+
export * from "./spacing/variables";
|
|
9
|
+
export * from "./typography/variables";
|
package/tokens/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./border/variables";
|
|
2
|
+
export * from "./breakpoint/variables";
|
|
3
|
+
export * from "./color/variables";
|
|
4
|
+
export * from "./filter/variables";
|
|
5
|
+
export * from "./gradient/variables";
|
|
6
|
+
export * from "./motion/variables";
|
|
7
|
+
export * from "./shadow/variables";
|
|
8
|
+
export * from "./spacing/variables";
|
|
9
|
+
export * from "./typography/variables";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const B=require("react/jsx-runtime"),t=require("react"),k=require("change-case"),r=require("./variables-CMzMXeor.js"),x="#f4e0ff",m="#c461f7",f="#29003e",N="#ede1d8",y="#4f4741",P="#3b332d",E="#ffffff",O="#202022",b="rgba(255, 255, 255, 0.95)",A="rgba(255, 255, 255, 0.66)",H="rgba(255, 255, 255, 0.37)",M="rgba(0, 0, 0, 0.8)",W="rgba(0, 0, 0, 0.54)",D="rgba(0, 0, 0, 0.44)",h="#e4b6fb",F="#f4e0ff",L="#faf0ff",R="#4e0174",q="#ffffff",w="#8c07d0",Q="#6d02a3",j="#4e0174",$="#ffffff",z="#ffffff",G="#29003e",J="#ffffff",K="#29003e",U="#ffffff",X="#ffffff",Y="#d58df9",Z="#d58df9",_="#ffafc9",V="#980233",rr="#fb4885",er="#e4175c",or="#79d9a7",tr="#02562b",ar="#1fa15e",ur="#f9bb5b",cr="#f39200",nr="#a86602",ir="#91cdf4",lr="#3694d3",pr="#ffffff",vr="#ffffff",sr="#4e0174",gr="#202022",dr="#29003e",Br="#f4e0ff",Sr="#ffffff",Cr="#121212",Tr="#ffffff",Ir="#202022",kr="#f5f5fa",xr="rgba(0, 0, 0, 0.71)",mr="rgba(255, 255, 255, 0.84)",fr="#03385b",Nr="#f4e0ff",yr="#e4b6fb",Pr="#d58df9",Er="#4e0174",Or="#6d02a3",br="#8c07d0",Ar="#990ae3",Hr="#c461f7",Mr="#d58df9",Wr="#990ae3",Dr="#6d02a3",hr="#4e0174",Fr="rgba(255, 255, 255, 0.11)",Lr="rgba(0, 0, 0, 0.1)",Rr="#4e0174",qr="#e4b6fb",wr="#6d02a3",Qr="#d58df9",jr="rgba(255, 255, 255, 0.16)",$r="rgba(0, 0, 0, 0.05)",zr="rgba(255, 255, 255, 0.07)",Gr="rgba(0, 0, 0, 0.05)",Jr="#e4175c",Kr="#c00543",Ur="#980233",Xr="#03385b",Yr="#62b2e7",Zr="#003e1e",_r="#3dbf7c",Vr="#1fa15e",re="#700025",ee="#ff80ab",oe="#fb4885",te="#4c2f03",ae="#f39200",ue="#f39200",ce="#353537",ne="#6d02a3",ie="#f4e0ff",le="#ffffff",pe="#f4e0ff",ve="#29003e",se="#4f4741",ge="#2d2824",de="rgba(255, 255, 255, 0.29)",Be="rgba(0, 0, 0, 0.33)",Se="rgba(255, 255, 255, 0.46)",Ce="rgba(0, 0, 0, 0.54)",Te="rgba(255, 255, 255, 0.16)",Ie="rgba(0, 0, 0, 0.16)",ke="#c461f7",xe="#e4b6fb",me="#8c07d0",fe="#f4e0ff",Ne="#faf0ff",ye="#6d02a3",Pe="#4e0174",Ee="#990ae3",Oe="#d58df9",be="rgba(255, 255, 255, 0.37)",Ae="rgba(0, 0, 0, 0.44)",He="#e4b6fb",Me="#6d02a3",We="#fb4885",De="#e4175c",he="#f39200",Fe="#3694d3",Le="#1fa15e",Re="#018842",qe={colorBrandDeepPurple:x,colorBrandCorePurple:m,colorBrandLightPurple:f,colorBrandDeepBeige:N,colorBrandBeige:y,colorBrandLightBeige:P,colorBrandOffBlack:E,colorBrandWhite:O,colorTextDefault:b,colorTextMedium:A,colorTextWeak:H,colorTextDefaultNegative:M,colorTextMediumNegative:W,colorTextWeakNegative:D,colorTextInteractivePrimary:h,colorTextInteractivePrimaryHover:F,colorTextInteractivePrimaryActive:L,colorTextInteractiveOnPrimary:R,colorTextInteractiveOnExpressive:$,colorTextInteractiveOnExpressiveHover:G,colorTextInteractiveOnExpressiveActive:K,colorTextInteractiveOnDestructive:X,colorTextInteractiveSelected:Y,colorTextInteractivePrimaryNegative:w,colorTextInteractivePrimaryHoverNegative:Q,colorTextInteractivePrimaryActiveNegative:j,colorTextInteractiveOnPrimaryNegative:q,colorTextInteractiveOnExpressiveNegative:z,colorTextInteractiveOnExpressiveHoverNegative:J,colorTextInteractiveOnExpressiveActiveNegative:U,colorTextStatusInfoMedium:lr,colorTextStatusInfoStrong:ir,colorTextStatusSuccessMedium:ar,colorTextStatusSuccessStrong:or,colorTextStatusWarningMedium:cr,colorTextStatusWarningStrong:ur,colorTextStatusErrorMedium:rr,colorTextStatusErrorStrong:_,colorTextStatusNeutral:pr,colorTextStatusSpecial:vr,colorTextStatusAttention:sr,colorTextStatusDiscount:Z,colorTextStatusBlackFriday:gr,colorTextStatusSuccessStrongNegative:tr,colorTextStatusErrorMediumNegative:er,colorTextStatusErrorStrongNegative:V,colorTextStatusWarningMediumNegative:nr,colorTextToneOnTonePrimary:dr,colorTextToneOnToneSecondary:Br,colorTextToneOnToneTertiary:Sr,colorBackgroundPrimary:Cr,colorBackgroundSecondary:Ir,colorBackgroundOnImage:xr,colorBackgroundPrimaryNegative:Tr,colorBackgroundSecondaryNegative:kr,colorBackgroundOnImageNegative:mr,colorBackgroundInteractivePrimary:Nr,colorBackgroundInteractivePrimaryHover:yr,colorBackgroundInteractivePrimaryActive:Pr,colorBackgroundInteractiveExpressive:Ar,colorBackgroundInteractiveExpressiveHover:Hr,colorBackgroundInteractiveExpressiveActive:Mr,colorBackgroundInteractiveTransparentHover:Rr,colorBackgroundInteractiveTransparentActive:wr,colorBackgroundInteractiveDisabled:Fr,colorBackgroundInteractiveReadOnly:zr,colorBackgroundInteractiveInactive:jr,colorBackgroundInteractiveDestructive:Jr,colorBackgroundInteractiveDestructiveHover:Kr,colorBackgroundInteractiveDestructiveActive:Ur,colorBackgroundInteractiveAutoFill:fr,colorBackgroundInteractivePrimaryNegative:Er,colorBackgroundInteractivePrimaryHoverNegative:Or,colorBackgroundInteractivePrimaryActiveNegative:br,colorBackgroundInteractiveExpressiveNegative:Wr,colorBackgroundInteractiveExpressiveHoverNegative:Dr,colorBackgroundInteractiveExpressiveActiveNegative:hr,colorBackgroundInteractiveTransparentHoverNegative:qr,colorBackgroundInteractiveTransparentActiveNegative:Qr,colorBackgroundInteractiveDisabledNegative:Lr,colorBackgroundInteractiveInactiveNegative:$r,colorBackgroundInteractiveReadOnlyNegative:Gr,colorBackgroundStatusInfoMedium:Xr,colorBackgroundStatusInfoStrong:Yr,colorBackgroundStatusSuccessMedium:Zr,colorBackgroundStatusSuccessStrong:_r,colorBackgroundStatusWarningMedium:te,colorBackgroundStatusWarningStrong:ae,colorBackgroundStatusErrorMedium:re,colorBackgroundStatusErrorStrong:ee,colorBackgroundStatusNeutral:ce,colorBackgroundStatusSpecial:ne,colorBackgroundStatusAttention:ie,colorBackgroundStatusBlackFriday:le,colorBackgroundStatusSuccessStrongNegative:Vr,colorBackgroundStatusWarningStrongNegative:ue,colorBackgroundStatusErrorStrongNegative:oe,colorBackgroundToneOnTonePrimary:pe,colorBackgroundToneOnToneSecondary:ve,colorBackgroundToneOnToneTertiary:se,colorBackgroundToneOnToneQuaternary:ge,colorBorderWeak:Te,colorBorderMedium:de,colorBorderStrong:Se,colorBorderWeakNegative:Ie,colorBorderMediumNegative:Be,colorBorderStrongNegative:Ce,colorBorderInteractivePrimary:xe,colorBorderInteractivePrimaryHover:fe,colorBorderInteractivePrimaryActive:Ne,colorBorderInteractiveFocus:ke,colorBorderInteractiveExpressive:Ee,colorBorderInteractiveSubtle:be,colorBorderInteractiveSubtleHover:He,colorBorderInteractiveSelected:Oe,colorBorderInteractivePrimaryNegative:me,colorBorderInteractivePrimaryHoverNegative:ye,colorBorderInteractivePrimaryActiveNegative:Pe,colorBorderInteractiveSubtleNegative:Ae,colorBorderInteractiveSubtleHoverNegative:Me,colorBorderStatusError:We,colorBorderStatusWarning:he,colorBorderStatusInfo:Fe,colorBorderStatusSuccess:Le,colorBorderStatusErrorNegative:De,colorBorderStatusSuccessNegative:Re},we={colorBrandDeepPurple:r.purpurColorBrandDeepPurple,colorBrandCorePurple:r.purpurColorBrandCorePurple,colorBrandLightPurple:r.purpurColorBrandLightPurple,colorBrandDeepBeige:r.purpurColorBrandDeepBeige,colorBrandBeige:r.purpurColorBrandBeige,colorBrandLightBeige:r.purpurColorBrandLightBeige,colorBrandOffBlack:r.purpurColorBrandOffBlack,colorBrandWhite:r.purpurColorBrandWhite,colorTextDefault:r.purpurColorTextDefault,colorTextMedium:r.purpurColorTextMedium,colorTextWeak:r.purpurColorTextWeak,colorTextDefaultNegative:r.purpurColorTextDefaultNegative,colorTextMediumNegative:r.purpurColorTextMediumNegative,colorTextWeakNegative:r.purpurColorTextWeakNegative,colorTextInteractivePrimary:r.purpurColorTextInteractivePrimary,colorTextInteractivePrimaryHover:r.purpurColorTextInteractivePrimaryHover,colorTextInteractivePrimaryActive:r.purpurColorTextInteractivePrimaryActive,colorTextInteractiveOnPrimary:r.purpurColorTextInteractiveOnPrimary,colorTextInteractiveOnExpressive:r.purpurColorTextInteractiveOnExpressive,colorTextInteractiveOnExpressiveHover:r.purpurColorTextInteractiveOnExpressiveHover,colorTextInteractiveOnExpressiveActive:r.purpurColorTextInteractiveOnExpressiveActive,colorTextInteractiveOnDestructive:r.purpurColorTextInteractiveOnDestructive,colorTextInteractiveSelected:r.purpurColorTextInteractiveSelected,colorTextInteractivePrimaryNegative:r.purpurColorTextInteractivePrimaryNegative,colorTextInteractivePrimaryHoverNegative:r.purpurColorTextInteractivePrimaryHoverNegative,colorTextInteractivePrimaryActiveNegative:r.purpurColorTextInteractivePrimaryActiveNegative,colorTextInteractiveOnPrimaryNegative:r.purpurColorTextInteractiveOnPrimaryNegative,colorTextInteractiveOnExpressiveNegative:r.purpurColorTextInteractiveOnExpressiveNegative,colorTextInteractiveOnExpressiveHoverNegative:r.purpurColorTextInteractiveOnExpressiveHoverNegative,colorTextInteractiveOnExpressiveActiveNegative:r.purpurColorTextInteractiveOnExpressiveActiveNegative,colorTextStatusInfoMedium:r.purpurColorTextStatusInfoMedium,colorTextStatusInfoStrong:r.purpurColorTextStatusInfoStrong,colorTextStatusSuccessMedium:r.purpurColorTextStatusSuccessMedium,colorTextStatusSuccessStrong:r.purpurColorTextStatusSuccessStrong,colorTextStatusWarningMedium:r.purpurColorTextStatusWarningMedium,colorTextStatusWarningStrong:r.purpurColorTextStatusWarningStrong,colorTextStatusErrorMedium:r.purpurColorTextStatusErrorMedium,colorTextStatusErrorStrong:r.purpurColorTextStatusErrorStrong,colorTextStatusNeutral:r.purpurColorTextStatusNeutral,colorTextStatusSpecial:r.purpurColorTextStatusSpecial,colorTextStatusAttention:r.purpurColorTextStatusAttention,colorTextStatusDiscount:r.purpurColorTextStatusDiscount,colorTextStatusBlackFriday:r.purpurColorTextStatusBlackFriday,colorTextStatusSuccessStrongNegative:r.purpurColorTextStatusSuccessStrongNegative,colorTextStatusErrorMediumNegative:r.purpurColorTextStatusErrorMediumNegative,colorTextStatusErrorStrongNegative:r.purpurColorTextStatusErrorStrongNegative,colorTextStatusWarningMediumNegative:r.purpurColorTextStatusWarningMediumNegative,colorTextToneOnTonePrimary:r.purpurColorTextToneOnTonePrimary,colorTextToneOnToneSecondary:r.purpurColorTextToneOnToneSecondary,colorTextToneOnToneTertiary:r.purpurColorTextToneOnToneTertiary,colorBackgroundPrimary:r.purpurColorBackgroundPrimary,colorBackgroundSecondary:r.purpurColorBackgroundSecondary,colorBackgroundOnImage:r.purpurColorBackgroundOnImage,colorBackgroundPrimaryNegative:r.purpurColorBackgroundPrimaryNegative,colorBackgroundSecondaryNegative:r.purpurColorBackgroundSecondaryNegative,colorBackgroundOnImageNegative:r.purpurColorBackgroundOnImageNegative,colorBackgroundInteractivePrimary:r.purpurColorBackgroundInteractivePrimary,colorBackgroundInteractivePrimaryHover:r.purpurColorBackgroundInteractivePrimaryHover,colorBackgroundInteractivePrimaryActive:r.purpurColorBackgroundInteractivePrimaryActive,colorBackgroundInteractiveExpressive:r.purpurColorBackgroundInteractiveExpressive,colorBackgroundInteractiveExpressiveHover:r.purpurColorBackgroundInteractiveExpressiveHover,colorBackgroundInteractiveExpressiveActive:r.purpurColorBackgroundInteractiveExpressiveActive,colorBackgroundInteractiveTransparentHover:r.purpurColorBackgroundInteractiveTransparentHover,colorBackgroundInteractiveTransparentActive:r.purpurColorBackgroundInteractiveTransparentActive,colorBackgroundInteractiveDisabled:r.purpurColorBackgroundInteractiveDisabled,colorBackgroundInteractiveReadOnly:r.purpurColorBackgroundInteractiveReadOnly,colorBackgroundInteractiveInactive:r.purpurColorBackgroundInteractiveInactive,colorBackgroundInteractiveDestructive:r.purpurColorBackgroundInteractiveDestructive,colorBackgroundInteractiveDestructiveHover:r.purpurColorBackgroundInteractiveDestructiveHover,colorBackgroundInteractiveDestructiveActive:r.purpurColorBackgroundInteractiveDestructiveActive,colorBackgroundInteractiveAutoFill:r.purpurColorBackgroundInteractiveAutoFill,colorBackgroundInteractivePrimaryNegative:r.purpurColorBackgroundInteractivePrimaryNegative,colorBackgroundInteractivePrimaryHoverNegative:r.purpurColorBackgroundInteractivePrimaryHoverNegative,colorBackgroundInteractivePrimaryActiveNegative:r.purpurColorBackgroundInteractivePrimaryActiveNegative,colorBackgroundInteractiveExpressiveNegative:r.purpurColorBackgroundInteractiveExpressiveNegative,colorBackgroundInteractiveExpressiveHoverNegative:r.purpurColorBackgroundInteractiveExpressiveHoverNegative,colorBackgroundInteractiveExpressiveActiveNegative:r.purpurColorBackgroundInteractiveExpressiveActiveNegative,colorBackgroundInteractiveTransparentHoverNegative:r.purpurColorBackgroundInteractiveTransparentHoverNegative,colorBackgroundInteractiveTransparentActiveNegative:r.purpurColorBackgroundInteractiveTransparentActiveNegative,colorBackgroundInteractiveDisabledNegative:r.purpurColorBackgroundInteractiveDisabledNegative,colorBackgroundInteractiveInactiveNegative:r.purpurColorBackgroundInteractiveInactiveNegative,colorBackgroundInteractiveReadOnlyNegative:r.purpurColorBackgroundInteractiveReadOnlyNegative,colorBackgroundStatusInfoMedium:r.purpurColorBackgroundStatusInfoMedium,colorBackgroundStatusInfoStrong:r.purpurColorBackgroundStatusInfoStrong,colorBackgroundStatusSuccessMedium:r.purpurColorBackgroundStatusSuccessMedium,colorBackgroundStatusSuccessStrong:r.purpurColorBackgroundStatusSuccessStrong,colorBackgroundStatusWarningMedium:r.purpurColorBackgroundStatusWarningMedium,colorBackgroundStatusWarningStrong:r.purpurColorBackgroundStatusWarningStrong,colorBackgroundStatusErrorMedium:r.purpurColorBackgroundStatusErrorMedium,colorBackgroundStatusErrorStrong:r.purpurColorBackgroundStatusErrorStrong,colorBackgroundStatusNeutral:r.purpurColorBackgroundStatusNeutral,colorBackgroundStatusSpecial:r.purpurColorBackgroundStatusSpecial,colorBackgroundStatusAttention:r.purpurColorBackgroundStatusAttention,colorBackgroundStatusBlackFriday:r.purpurColorBackgroundStatusBlackFriday,colorBackgroundStatusSuccessStrongNegative:r.purpurColorBackgroundStatusSuccessStrongNegative,colorBackgroundStatusWarningStrongNegative:r.purpurColorBackgroundStatusWarningStrongNegative,colorBackgroundStatusErrorStrongNegative:r.purpurColorBackgroundStatusErrorStrongNegative,colorBackgroundToneOnTonePrimary:r.purpurColorBackgroundToneOnTonePrimary,colorBackgroundToneOnToneSecondary:r.purpurColorBackgroundToneOnToneSecondary,colorBackgroundToneOnToneTertiary:r.purpurColorBackgroundToneOnToneTertiary,colorBackgroundToneOnToneQuaternary:r.purpurColorBackgroundToneOnToneQuaternary,colorBorderWeak:r.purpurColorBorderWeak,colorBorderMedium:r.purpurColorBorderMedium,colorBorderStrong:r.purpurColorBorderStrong,colorBorderWeakNegative:r.purpurColorBorderWeakNegative,colorBorderMediumNegative:r.purpurColorBorderMediumNegative,colorBorderStrongNegative:r.purpurColorBorderStrongNegative,colorBorderInteractivePrimary:r.purpurColorBorderInteractivePrimary,colorBorderInteractivePrimaryHover:r.purpurColorBorderInteractivePrimaryHover,colorBorderInteractivePrimaryActive:r.purpurColorBorderInteractivePrimaryActive,colorBorderInteractiveFocus:r.purpurColorBorderInteractiveFocus,colorBorderInteractiveExpressive:r.purpurColorBorderInteractiveExpressive,colorBorderInteractiveSubtle:r.purpurColorBorderInteractiveSubtle,colorBorderInteractiveSubtleHover:r.purpurColorBorderInteractiveSubtleHover,colorBorderInteractiveSelected:r.purpurColorBorderInteractiveSelected,colorBorderInteractivePrimaryNegative:r.purpurColorBorderInteractivePrimaryNegative,colorBorderInteractivePrimaryHoverNegative:r.purpurColorBorderInteractivePrimaryHoverNegative,colorBorderInteractivePrimaryActiveNegative:r.purpurColorBorderInteractivePrimaryActiveNegative,colorBorderInteractiveSubtleNegative:r.purpurColorBorderInteractiveSubtleNegative,colorBorderInteractiveSubtleHoverNegative:r.purpurColorBorderInteractiveSubtleHoverNegative,colorBorderStatusError:r.purpurColorBorderStatusError,colorBorderStatusWarning:r.purpurColorBorderStatusWarning,colorBorderStatusInfo:r.purpurColorBorderStatusInfo,colorBorderStatusSuccess:r.purpurColorBorderStatusSuccess,colorBorderStatusErrorNegative:r.purpurColorBorderStatusErrorNegative,colorBorderStatusSuccessNegative:r.purpurColorBorderStatusSuccessNegative},s={light:we,dark:qe},S=({theme:a=s,cssVariablesSelector:e,currentColorScheme:u})=>{t.useEffect(()=>{u&&Object.entries(a?.[u]??s[u]).forEach(([i,l])=>{((e?document.querySelector(e):null)??document.documentElement).style.setProperty(`--purpur-${k.kebabCase(i)}`,l)})},[a,e,u])},C=t.createContext({colorScheme:"light",currentColorScheme:"light",setColorScheme:()=>{},options:{}}),Qe=({cssVariablesSelector:a,forceColorScheme:e,theme:u,children:i,options:l={},...g})=>{const[c,p]=t.useState(e??"auto"),[n,v]=t.useState(e??"light");t.useEffect(()=>{if(e)p(e);else{const o=localStorage.getItem("colorScheme");o&&p(o)}},[e]),t.useEffect(()=>{const o=window.matchMedia("(prefers-color-scheme: dark)");v(c==="auto"?o.matches?"dark":"light":c);const d=I=>{!e&&c==="auto"&&v(I.matches?"dark":"light")};return o.addEventListener("change",d),()=>{o.removeEventListener("change",d)}},[c,e]),S({theme:u,cssVariablesSelector:a,currentColorScheme:u!==void 0?n:void 0});const T=t.useMemo(()=>({colorScheme:c,currentColorScheme:n,setColorScheme:o=>{e||(p(o),localStorage.setItem("colorScheme",o))}}),[c,n,e]);return B.jsx(C.Provider,{value:{...T,options:l},children:B.jsx("div",{"data-color-scheme":n,className:n,...g,children:i})})},je=()=>{const a=t.useContext(C);if(!a)throw new Error("useTheme must be used within a ThemeProvider");return a};exports.ThemeProvider=Qe;exports.teliaTheme=s;exports.useApplyTheme=S;exports.useTheme=je;
|
|
2
|
-
//# sourceMappingURL=ThemeProvider-djmNDpmy.js.map
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as l, createContext as T, useContext as k, useState as d, useMemo as x } from "react";
|
|
3
|
-
import { kebabCase as m } from "change-case";
|
|
4
|
-
import { d0 as f, cY as N, c$ as y, c_ as b, cZ as $, cX as P, cW as E, cU as O, cQ as A, cP as H, cM as M, cS as W, cV as D, cT as h, cR as F, cK as L, cO as R, cN as w, cL as Q, cH as j, cF as q, cJ as z, cG as G, cE as J, cI as K, cD as U, cC as X, cB as Y, cA as Z, cs as _, cv as V, cp as rr, cz as er, cy as or, cx as tr, cw as ar, cr, cq as ur, cu as nr, ct as ir, co as sr, cn as lr, cm as pr, cl as vr, ch as gr, cf as dr, c9 as Br, cd as Sr, cb as Cr, c7 as Ir, c6 as Tr, c5 as kr, c1 as xr, c0 as mr, b$ as fr, bX as Nr, ck as yr, cj as br, ci as $r, ce as Pr, cg as Er, c8 as Or, cc as Ar, ca as Hr, c4 as Mr, c3 as Wr, c2 as Dr, b_ as hr, bZ as Fr, bY as Lr, bW as Rr, bU as wr, bS as Qr, bV as jr, bT as qr, bR as zr, bQ as Gr, bP as Jr, bO as Kr, bH as Ur, by as Xr, bA as Yr, bC as Zr, bN as _r, bw as Vr, bM as re, bL as ee, bK as oe, bx as te, bz as ae, bF as ce, bG as ue, bB as ne, bD as ie, bI as se, bJ as le, bt as pe, br as ve, bp as ge, bk as de, bn as Be, bm as Se, bl as Ce, bv as Ie, bu as Te, bs as ke, bq as xe, bo as me, bj as fe, bi as Ne, bh as ye, bg as be, bf as $e, be as Pe, bd as Ee, bc as Oe, bb as Ae, ba as He, b9 as Me, b8 as We, b7 as De, b6 as he, b5 as Fe, b4 as Le, b3 as Re, b2 as we } from "./variables-91UvS2rU.mjs";
|
|
5
|
-
const Qe = "#f4e0ff", je = "#c461f7", qe = "#29003e", ze = "#ede1d8", Ge = "#4f4741", Je = "#3b332d", Ke = "#ffffff", Ue = "#202022", Xe = "rgba(255, 255, 255, 0.95)", Ye = "rgba(255, 255, 255, 0.66)", Ze = "rgba(255, 255, 255, 0.37)", _e = "rgba(0, 0, 0, 0.8)", Ve = "rgba(0, 0, 0, 0.54)", ro = "rgba(0, 0, 0, 0.44)", eo = "#e4b6fb", oo = "#f4e0ff", to = "#faf0ff", ao = "#4e0174", co = "#ffffff", uo = "#8c07d0", no = "#6d02a3", io = "#4e0174", so = "#ffffff", lo = "#ffffff", po = "#29003e", vo = "#ffffff", go = "#29003e", Bo = "#ffffff", So = "#ffffff", Co = "#d58df9", Io = "#d58df9", To = "#ffafc9", ko = "#980233", xo = "#fb4885", mo = "#e4175c", fo = "#79d9a7", No = "#02562b", yo = "#1fa15e", bo = "#f9bb5b", $o = "#f39200", Po = "#a86602", Eo = "#91cdf4", Oo = "#3694d3", Ao = "#ffffff", Ho = "#ffffff", Mo = "#4e0174", Wo = "#202022", Do = "#29003e", ho = "#f4e0ff", Fo = "#ffffff", Lo = "#121212", Ro = "#ffffff", wo = "#202022", Qo = "#f5f5fa", jo = "rgba(0, 0, 0, 0.71)", qo = "rgba(255, 255, 255, 0.84)", zo = "#03385b", Go = "#f4e0ff", Jo = "#e4b6fb", Ko = "#d58df9", Uo = "#4e0174", Xo = "#6d02a3", Yo = "#8c07d0", Zo = "#990ae3", _o = "#c461f7", Vo = "#d58df9", rt = "#990ae3", et = "#6d02a3", ot = "#4e0174", tt = "rgba(255, 255, 255, 0.11)", at = "rgba(0, 0, 0, 0.1)", ct = "#4e0174", ut = "#e4b6fb", nt = "#6d02a3", it = "#d58df9", st = "rgba(255, 255, 255, 0.16)", lt = "rgba(0, 0, 0, 0.05)", pt = "rgba(255, 255, 255, 0.07)", vt = "rgba(0, 0, 0, 0.05)", gt = "#e4175c", dt = "#c00543", Bt = "#980233", St = "#03385b", Ct = "#62b2e7", It = "#003e1e", Tt = "#3dbf7c", kt = "#1fa15e", xt = "#700025", mt = "#ff80ab", ft = "#fb4885", Nt = "#4c2f03", yt = "#f39200", bt = "#f39200", $t = "#353537", Pt = "#6d02a3", Et = "#f4e0ff", Ot = "#ffffff", At = "#f4e0ff", Ht = "#29003e", Mt = "#4f4741", Wt = "#2d2824", Dt = "rgba(255, 255, 255, 0.29)", ht = "rgba(0, 0, 0, 0.33)", Ft = "rgba(255, 255, 255, 0.46)", Lt = "rgba(0, 0, 0, 0.54)", Rt = "rgba(255, 255, 255, 0.16)", wt = "rgba(0, 0, 0, 0.16)", Qt = "#c461f7", jt = "#e4b6fb", qt = "#8c07d0", zt = "#f4e0ff", Gt = "#faf0ff", Jt = "#6d02a3", Kt = "#4e0174", Ut = "#990ae3", Xt = "#d58df9", Yt = "rgba(255, 255, 255, 0.37)", Zt = "rgba(0, 0, 0, 0.44)", _t = "#e4b6fb", Vt = "#6d02a3", ra = "#fb4885", ea = "#e4175c", oa = "#f39200", ta = "#3694d3", aa = "#1fa15e", ca = "#018842", ua = {
|
|
6
|
-
colorBrandDeepPurple: Qe,
|
|
7
|
-
colorBrandCorePurple: je,
|
|
8
|
-
colorBrandLightPurple: qe,
|
|
9
|
-
colorBrandDeepBeige: ze,
|
|
10
|
-
colorBrandBeige: Ge,
|
|
11
|
-
colorBrandLightBeige: Je,
|
|
12
|
-
colorBrandOffBlack: Ke,
|
|
13
|
-
colorBrandWhite: Ue,
|
|
14
|
-
colorTextDefault: Xe,
|
|
15
|
-
colorTextMedium: Ye,
|
|
16
|
-
colorTextWeak: Ze,
|
|
17
|
-
colorTextDefaultNegative: _e,
|
|
18
|
-
colorTextMediumNegative: Ve,
|
|
19
|
-
colorTextWeakNegative: ro,
|
|
20
|
-
colorTextInteractivePrimary: eo,
|
|
21
|
-
colorTextInteractivePrimaryHover: oo,
|
|
22
|
-
colorTextInteractivePrimaryActive: to,
|
|
23
|
-
colorTextInteractiveOnPrimary: ao,
|
|
24
|
-
colorTextInteractiveOnExpressive: so,
|
|
25
|
-
colorTextInteractiveOnExpressiveHover: po,
|
|
26
|
-
colorTextInteractiveOnExpressiveActive: go,
|
|
27
|
-
colorTextInteractiveOnDestructive: So,
|
|
28
|
-
colorTextInteractiveSelected: Co,
|
|
29
|
-
colorTextInteractivePrimaryNegative: uo,
|
|
30
|
-
colorTextInteractivePrimaryHoverNegative: no,
|
|
31
|
-
colorTextInteractivePrimaryActiveNegative: io,
|
|
32
|
-
colorTextInteractiveOnPrimaryNegative: co,
|
|
33
|
-
colorTextInteractiveOnExpressiveNegative: lo,
|
|
34
|
-
colorTextInteractiveOnExpressiveHoverNegative: vo,
|
|
35
|
-
colorTextInteractiveOnExpressiveActiveNegative: Bo,
|
|
36
|
-
colorTextStatusInfoMedium: Oo,
|
|
37
|
-
colorTextStatusInfoStrong: Eo,
|
|
38
|
-
colorTextStatusSuccessMedium: yo,
|
|
39
|
-
colorTextStatusSuccessStrong: fo,
|
|
40
|
-
colorTextStatusWarningMedium: $o,
|
|
41
|
-
colorTextStatusWarningStrong: bo,
|
|
42
|
-
colorTextStatusErrorMedium: xo,
|
|
43
|
-
colorTextStatusErrorStrong: To,
|
|
44
|
-
colorTextStatusNeutral: Ao,
|
|
45
|
-
colorTextStatusSpecial: Ho,
|
|
46
|
-
colorTextStatusAttention: Mo,
|
|
47
|
-
colorTextStatusDiscount: Io,
|
|
48
|
-
colorTextStatusBlackFriday: Wo,
|
|
49
|
-
colorTextStatusSuccessStrongNegative: No,
|
|
50
|
-
colorTextStatusErrorMediumNegative: mo,
|
|
51
|
-
colorTextStatusErrorStrongNegative: ko,
|
|
52
|
-
colorTextStatusWarningMediumNegative: Po,
|
|
53
|
-
colorTextToneOnTonePrimary: Do,
|
|
54
|
-
colorTextToneOnToneSecondary: ho,
|
|
55
|
-
colorTextToneOnToneTertiary: Fo,
|
|
56
|
-
colorBackgroundPrimary: Lo,
|
|
57
|
-
colorBackgroundSecondary: wo,
|
|
58
|
-
colorBackgroundOnImage: jo,
|
|
59
|
-
colorBackgroundPrimaryNegative: Ro,
|
|
60
|
-
colorBackgroundSecondaryNegative: Qo,
|
|
61
|
-
colorBackgroundOnImageNegative: qo,
|
|
62
|
-
colorBackgroundInteractivePrimary: Go,
|
|
63
|
-
colorBackgroundInteractivePrimaryHover: Jo,
|
|
64
|
-
colorBackgroundInteractivePrimaryActive: Ko,
|
|
65
|
-
colorBackgroundInteractiveExpressive: Zo,
|
|
66
|
-
colorBackgroundInteractiveExpressiveHover: _o,
|
|
67
|
-
colorBackgroundInteractiveExpressiveActive: Vo,
|
|
68
|
-
colorBackgroundInteractiveTransparentHover: ct,
|
|
69
|
-
colorBackgroundInteractiveTransparentActive: nt,
|
|
70
|
-
colorBackgroundInteractiveDisabled: tt,
|
|
71
|
-
colorBackgroundInteractiveReadOnly: pt,
|
|
72
|
-
colorBackgroundInteractiveInactive: st,
|
|
73
|
-
colorBackgroundInteractiveDestructive: gt,
|
|
74
|
-
colorBackgroundInteractiveDestructiveHover: dt,
|
|
75
|
-
colorBackgroundInteractiveDestructiveActive: Bt,
|
|
76
|
-
colorBackgroundInteractiveAutoFill: zo,
|
|
77
|
-
colorBackgroundInteractivePrimaryNegative: Uo,
|
|
78
|
-
colorBackgroundInteractivePrimaryHoverNegative: Xo,
|
|
79
|
-
colorBackgroundInteractivePrimaryActiveNegative: Yo,
|
|
80
|
-
colorBackgroundInteractiveExpressiveNegative: rt,
|
|
81
|
-
colorBackgroundInteractiveExpressiveHoverNegative: et,
|
|
82
|
-
colorBackgroundInteractiveExpressiveActiveNegative: ot,
|
|
83
|
-
colorBackgroundInteractiveTransparentHoverNegative: ut,
|
|
84
|
-
colorBackgroundInteractiveTransparentActiveNegative: it,
|
|
85
|
-
colorBackgroundInteractiveDisabledNegative: at,
|
|
86
|
-
colorBackgroundInteractiveInactiveNegative: lt,
|
|
87
|
-
colorBackgroundInteractiveReadOnlyNegative: vt,
|
|
88
|
-
colorBackgroundStatusInfoMedium: St,
|
|
89
|
-
colorBackgroundStatusInfoStrong: Ct,
|
|
90
|
-
colorBackgroundStatusSuccessMedium: It,
|
|
91
|
-
colorBackgroundStatusSuccessStrong: Tt,
|
|
92
|
-
colorBackgroundStatusWarningMedium: Nt,
|
|
93
|
-
colorBackgroundStatusWarningStrong: yt,
|
|
94
|
-
colorBackgroundStatusErrorMedium: xt,
|
|
95
|
-
colorBackgroundStatusErrorStrong: mt,
|
|
96
|
-
colorBackgroundStatusNeutral: $t,
|
|
97
|
-
colorBackgroundStatusSpecial: Pt,
|
|
98
|
-
colorBackgroundStatusAttention: Et,
|
|
99
|
-
colorBackgroundStatusBlackFriday: Ot,
|
|
100
|
-
colorBackgroundStatusSuccessStrongNegative: kt,
|
|
101
|
-
colorBackgroundStatusWarningStrongNegative: bt,
|
|
102
|
-
colorBackgroundStatusErrorStrongNegative: ft,
|
|
103
|
-
colorBackgroundToneOnTonePrimary: At,
|
|
104
|
-
colorBackgroundToneOnToneSecondary: Ht,
|
|
105
|
-
colorBackgroundToneOnToneTertiary: Mt,
|
|
106
|
-
colorBackgroundToneOnToneQuaternary: Wt,
|
|
107
|
-
colorBorderWeak: Rt,
|
|
108
|
-
colorBorderMedium: Dt,
|
|
109
|
-
colorBorderStrong: Ft,
|
|
110
|
-
colorBorderWeakNegative: wt,
|
|
111
|
-
colorBorderMediumNegative: ht,
|
|
112
|
-
colorBorderStrongNegative: Lt,
|
|
113
|
-
colorBorderInteractivePrimary: jt,
|
|
114
|
-
colorBorderInteractivePrimaryHover: zt,
|
|
115
|
-
colorBorderInteractivePrimaryActive: Gt,
|
|
116
|
-
colorBorderInteractiveFocus: Qt,
|
|
117
|
-
colorBorderInteractiveExpressive: Ut,
|
|
118
|
-
colorBorderInteractiveSubtle: Yt,
|
|
119
|
-
colorBorderInteractiveSubtleHover: _t,
|
|
120
|
-
colorBorderInteractiveSelected: Xt,
|
|
121
|
-
colorBorderInteractivePrimaryNegative: qt,
|
|
122
|
-
colorBorderInteractivePrimaryHoverNegative: Jt,
|
|
123
|
-
colorBorderInteractivePrimaryActiveNegative: Kt,
|
|
124
|
-
colorBorderInteractiveSubtleNegative: Zt,
|
|
125
|
-
colorBorderInteractiveSubtleHoverNegative: Vt,
|
|
126
|
-
colorBorderStatusError: ra,
|
|
127
|
-
colorBorderStatusWarning: oa,
|
|
128
|
-
colorBorderStatusInfo: ta,
|
|
129
|
-
colorBorderStatusSuccess: aa,
|
|
130
|
-
colorBorderStatusErrorNegative: ea,
|
|
131
|
-
colorBorderStatusSuccessNegative: ca
|
|
132
|
-
}, na = {
|
|
133
|
-
colorBrandDeepPurple: we,
|
|
134
|
-
colorBrandCorePurple: Re,
|
|
135
|
-
colorBrandLightPurple: Le,
|
|
136
|
-
colorBrandDeepBeige: Fe,
|
|
137
|
-
colorBrandBeige: he,
|
|
138
|
-
colorBrandLightBeige: De,
|
|
139
|
-
colorBrandOffBlack: We,
|
|
140
|
-
colorBrandWhite: Me,
|
|
141
|
-
colorTextDefault: He,
|
|
142
|
-
colorTextMedium: Ae,
|
|
143
|
-
colorTextWeak: Oe,
|
|
144
|
-
colorTextDefaultNegative: Ee,
|
|
145
|
-
colorTextMediumNegative: Pe,
|
|
146
|
-
colorTextWeakNegative: $e,
|
|
147
|
-
colorTextInteractivePrimary: be,
|
|
148
|
-
colorTextInteractivePrimaryHover: ye,
|
|
149
|
-
colorTextInteractivePrimaryActive: Ne,
|
|
150
|
-
colorTextInteractiveOnPrimary: fe,
|
|
151
|
-
colorTextInteractiveOnExpressive: me,
|
|
152
|
-
colorTextInteractiveOnExpressiveHover: xe,
|
|
153
|
-
colorTextInteractiveOnExpressiveActive: ke,
|
|
154
|
-
colorTextInteractiveOnDestructive: Te,
|
|
155
|
-
colorTextInteractiveSelected: Ie,
|
|
156
|
-
colorTextInteractivePrimaryNegative: Ce,
|
|
157
|
-
colorTextInteractivePrimaryHoverNegative: Se,
|
|
158
|
-
colorTextInteractivePrimaryActiveNegative: Be,
|
|
159
|
-
colorTextInteractiveOnPrimaryNegative: de,
|
|
160
|
-
colorTextInteractiveOnExpressiveNegative: ge,
|
|
161
|
-
colorTextInteractiveOnExpressiveHoverNegative: ve,
|
|
162
|
-
colorTextInteractiveOnExpressiveActiveNegative: pe,
|
|
163
|
-
colorTextStatusInfoMedium: le,
|
|
164
|
-
colorTextStatusInfoStrong: se,
|
|
165
|
-
colorTextStatusSuccessMedium: ie,
|
|
166
|
-
colorTextStatusSuccessStrong: ne,
|
|
167
|
-
colorTextStatusWarningMedium: ue,
|
|
168
|
-
colorTextStatusWarningStrong: ce,
|
|
169
|
-
colorTextStatusErrorMedium: ae,
|
|
170
|
-
colorTextStatusErrorStrong: te,
|
|
171
|
-
colorTextStatusNeutral: oe,
|
|
172
|
-
colorTextStatusSpecial: ee,
|
|
173
|
-
colorTextStatusAttention: re,
|
|
174
|
-
colorTextStatusDiscount: Vr,
|
|
175
|
-
colorTextStatusBlackFriday: _r,
|
|
176
|
-
colorTextStatusSuccessStrongNegative: Zr,
|
|
177
|
-
colorTextStatusErrorMediumNegative: Yr,
|
|
178
|
-
colorTextStatusErrorStrongNegative: Xr,
|
|
179
|
-
colorTextStatusWarningMediumNegative: Ur,
|
|
180
|
-
colorTextToneOnTonePrimary: Kr,
|
|
181
|
-
colorTextToneOnToneSecondary: Jr,
|
|
182
|
-
colorTextToneOnToneTertiary: Gr,
|
|
183
|
-
colorBackgroundPrimary: zr,
|
|
184
|
-
colorBackgroundSecondary: qr,
|
|
185
|
-
colorBackgroundOnImage: jr,
|
|
186
|
-
colorBackgroundPrimaryNegative: Qr,
|
|
187
|
-
colorBackgroundSecondaryNegative: wr,
|
|
188
|
-
colorBackgroundOnImageNegative: Rr,
|
|
189
|
-
colorBackgroundInteractivePrimary: Lr,
|
|
190
|
-
colorBackgroundInteractivePrimaryHover: Fr,
|
|
191
|
-
colorBackgroundInteractivePrimaryActive: hr,
|
|
192
|
-
colorBackgroundInteractiveExpressive: Dr,
|
|
193
|
-
colorBackgroundInteractiveExpressiveHover: Wr,
|
|
194
|
-
colorBackgroundInteractiveExpressiveActive: Mr,
|
|
195
|
-
colorBackgroundInteractiveTransparentHover: Hr,
|
|
196
|
-
colorBackgroundInteractiveTransparentActive: Ar,
|
|
197
|
-
colorBackgroundInteractiveDisabled: Or,
|
|
198
|
-
colorBackgroundInteractiveReadOnly: Er,
|
|
199
|
-
colorBackgroundInteractiveInactive: Pr,
|
|
200
|
-
colorBackgroundInteractiveDestructive: $r,
|
|
201
|
-
colorBackgroundInteractiveDestructiveHover: br,
|
|
202
|
-
colorBackgroundInteractiveDestructiveActive: yr,
|
|
203
|
-
colorBackgroundInteractiveAutoFill: Nr,
|
|
204
|
-
colorBackgroundInteractivePrimaryNegative: fr,
|
|
205
|
-
colorBackgroundInteractivePrimaryHoverNegative: mr,
|
|
206
|
-
colorBackgroundInteractivePrimaryActiveNegative: xr,
|
|
207
|
-
colorBackgroundInteractiveExpressiveNegative: kr,
|
|
208
|
-
colorBackgroundInteractiveExpressiveHoverNegative: Tr,
|
|
209
|
-
colorBackgroundInteractiveExpressiveActiveNegative: Ir,
|
|
210
|
-
colorBackgroundInteractiveTransparentHoverNegative: Cr,
|
|
211
|
-
colorBackgroundInteractiveTransparentActiveNegative: Sr,
|
|
212
|
-
colorBackgroundInteractiveDisabledNegative: Br,
|
|
213
|
-
colorBackgroundInteractiveInactiveNegative: dr,
|
|
214
|
-
colorBackgroundInteractiveReadOnlyNegative: gr,
|
|
215
|
-
colorBackgroundStatusInfoMedium: vr,
|
|
216
|
-
colorBackgroundStatusInfoStrong: pr,
|
|
217
|
-
colorBackgroundStatusSuccessMedium: lr,
|
|
218
|
-
colorBackgroundStatusSuccessStrong: sr,
|
|
219
|
-
colorBackgroundStatusWarningMedium: ir,
|
|
220
|
-
colorBackgroundStatusWarningStrong: nr,
|
|
221
|
-
colorBackgroundStatusErrorMedium: ur,
|
|
222
|
-
colorBackgroundStatusErrorStrong: cr,
|
|
223
|
-
colorBackgroundStatusNeutral: ar,
|
|
224
|
-
colorBackgroundStatusSpecial: tr,
|
|
225
|
-
colorBackgroundStatusAttention: or,
|
|
226
|
-
colorBackgroundStatusBlackFriday: er,
|
|
227
|
-
colorBackgroundStatusSuccessStrongNegative: rr,
|
|
228
|
-
colorBackgroundStatusWarningStrongNegative: V,
|
|
229
|
-
colorBackgroundStatusErrorStrongNegative: _,
|
|
230
|
-
colorBackgroundToneOnTonePrimary: Z,
|
|
231
|
-
colorBackgroundToneOnToneSecondary: Y,
|
|
232
|
-
colorBackgroundToneOnToneTertiary: X,
|
|
233
|
-
colorBackgroundToneOnToneQuaternary: U,
|
|
234
|
-
colorBorderWeak: K,
|
|
235
|
-
colorBorderMedium: J,
|
|
236
|
-
colorBorderStrong: G,
|
|
237
|
-
colorBorderWeakNegative: z,
|
|
238
|
-
colorBorderMediumNegative: q,
|
|
239
|
-
colorBorderStrongNegative: j,
|
|
240
|
-
colorBorderInteractivePrimary: Q,
|
|
241
|
-
colorBorderInteractivePrimaryHover: w,
|
|
242
|
-
colorBorderInteractivePrimaryActive: R,
|
|
243
|
-
colorBorderInteractiveFocus: L,
|
|
244
|
-
colorBorderInteractiveExpressive: F,
|
|
245
|
-
colorBorderInteractiveSubtle: h,
|
|
246
|
-
colorBorderInteractiveSubtleHover: D,
|
|
247
|
-
colorBorderInteractiveSelected: W,
|
|
248
|
-
colorBorderInteractivePrimaryNegative: M,
|
|
249
|
-
colorBorderInteractivePrimaryHoverNegative: H,
|
|
250
|
-
colorBorderInteractivePrimaryActiveNegative: A,
|
|
251
|
-
colorBorderInteractiveSubtleNegative: O,
|
|
252
|
-
colorBorderInteractiveSubtleHoverNegative: E,
|
|
253
|
-
colorBorderStatusError: P,
|
|
254
|
-
colorBorderStatusWarning: $,
|
|
255
|
-
colorBorderStatusInfo: b,
|
|
256
|
-
colorBorderStatusSuccess: y,
|
|
257
|
-
colorBorderStatusErrorNegative: N,
|
|
258
|
-
colorBorderStatusSuccessNegative: f
|
|
259
|
-
}, B = {
|
|
260
|
-
light: na,
|
|
261
|
-
dark: ua
|
|
262
|
-
}, ia = ({
|
|
263
|
-
theme: o = B,
|
|
264
|
-
cssVariablesSelector: r,
|
|
265
|
-
currentColorScheme: t
|
|
266
|
-
}) => {
|
|
267
|
-
l(() => {
|
|
268
|
-
t && Object.entries(o?.[t] ?? B[t]).forEach(
|
|
269
|
-
([u, n]) => {
|
|
270
|
-
((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(
|
|
271
|
-
`--purpur-${m(u)}`,
|
|
272
|
-
n
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
);
|
|
276
|
-
}, [o, r, t]);
|
|
277
|
-
}, S = T({
|
|
278
|
-
colorScheme: "light",
|
|
279
|
-
currentColorScheme: "light",
|
|
280
|
-
setColorScheme: () => {
|
|
281
|
-
},
|
|
282
|
-
options: {}
|
|
283
|
-
}), da = ({
|
|
284
|
-
cssVariablesSelector: o,
|
|
285
|
-
forceColorScheme: r,
|
|
286
|
-
theme: t,
|
|
287
|
-
children: u,
|
|
288
|
-
options: n = {},
|
|
289
|
-
...p
|
|
290
|
-
}) => {
|
|
291
|
-
const [a, i] = d(r ?? "auto"), [c, s] = d(
|
|
292
|
-
r ?? "light"
|
|
293
|
-
);
|
|
294
|
-
l(() => {
|
|
295
|
-
if (r)
|
|
296
|
-
i(r);
|
|
297
|
-
else {
|
|
298
|
-
const e = localStorage.getItem("colorScheme");
|
|
299
|
-
e && i(e);
|
|
300
|
-
}
|
|
301
|
-
}, [r]), l(() => {
|
|
302
|
-
const e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
303
|
-
s(a === "auto" ? e.matches ? "dark" : "light" : a);
|
|
304
|
-
const v = (I) => {
|
|
305
|
-
!r && a === "auto" && s(I.matches ? "dark" : "light");
|
|
306
|
-
};
|
|
307
|
-
return e.addEventListener("change", v), () => {
|
|
308
|
-
e.removeEventListener("change", v);
|
|
309
|
-
};
|
|
310
|
-
}, [a, r]), ia({
|
|
311
|
-
theme: t,
|
|
312
|
-
cssVariablesSelector: o,
|
|
313
|
-
currentColorScheme: t !== void 0 ? c : void 0
|
|
314
|
-
});
|
|
315
|
-
const C = x(
|
|
316
|
-
() => ({
|
|
317
|
-
colorScheme: a,
|
|
318
|
-
currentColorScheme: c,
|
|
319
|
-
setColorScheme: (e) => {
|
|
320
|
-
r || (i(e), localStorage.setItem("colorScheme", e));
|
|
321
|
-
}
|
|
322
|
-
}),
|
|
323
|
-
[a, c, r]
|
|
324
|
-
);
|
|
325
|
-
return /* @__PURE__ */ g(S.Provider, { value: { ...C, options: n }, children: /* @__PURE__ */ g("div", { "data-color-scheme": c, className: c, ...p, children: u }) });
|
|
326
|
-
}, Ba = () => {
|
|
327
|
-
const o = k(S);
|
|
328
|
-
if (!o)
|
|
329
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
330
|
-
return o;
|
|
331
|
-
};
|
|
332
|
-
export {
|
|
333
|
-
da as T,
|
|
334
|
-
ia as a,
|
|
335
|
-
B as t,
|
|
336
|
-
Ba as u
|
|
337
|
-
};
|
|
338
|
-
//# sourceMappingURL=ThemeProvider-mOHIAi2k.mjs.map
|
package/dist/footer-Btsh40pg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),m=require("react"),Z=require("./container-DRwKIAjh.js"),y=require("./link-DhWVrkTz.js"),H=require("./select-DOqTJgTj.js"),L=require("./ThemeProvider-djmNDpmy.js");require("change-case");const w=require("./useColorScheme-DwlZAnlk.js"),g=require("./bind-DeUYJ6m9.js"),x=require("./accordion-CF2fj2uq.js"),F=require("./icon.es-j3eRib6d.js"),r="purpur-footer",C={"purpur-footer":"_purpur-footer_yqb4h_1","purpur-footer__container":"_purpur-footer__container_yqb4h_8","purpur-footer__logo":"_purpur-footer__logo_yqb4h_30","purpur-footer__logo--telia":"_purpur-footer__logo--telia_yqb4h_34","purpur-footer__social":"_purpur-footer__social_yqb4h_54","purpur-footer__social--md":"_purpur-footer__social--md_yqb4h_70","purpur-footer__social--sm":"_purpur-footer__social--sm_yqb4h_78","purpur-footer__social-link":"_purpur-footer__social-link_yqb4h_87","purpur-footer__navigation":"_purpur-footer__navigation_yqb4h_107","purpur-footer__navigation-section":"_purpur-footer__navigation-section_yqb4h_116","purpur-footer__navigation-section-heading":"_purpur-footer__navigation-section-heading_yqb4h_119","purpur-footer__navigation--lg":"_purpur-footer__navigation--lg_yqb4h_142","purpur-footer__navigation--sm":"_purpur-footer__navigation--sm_yqb4h_156","purpur-footer__custom-link-navigation":"_purpur-footer__custom-link-navigation_yqb4h_180","purpur-footer__payments":"_purpur-footer__payments_yqb4h_202","purpur-footer__payments-image":"_purpur-footer__payments-image_yqb4h_219","purpur-footer__contacts":"_purpur-footer__contacts_yqb4h_223","purpur-footer__contacts-copyright":"_purpur-footer__contacts-copyright_yqb4h_238","purpur-footer__contacts-address":"_purpur-footer__contacts-address_yqb4h_243","purpur-footer__theme-select":"_purpur-footer__theme-select_yqb4h_247","purpur-footer__additional":"_purpur-footer__additional_yqb4h_263","purpur-footer__additional-links":"_purpur-footer__additional-links_yqb4h_280","purpur-footer__custom-content":"_purpur-footer__custom-content_yqb4h_292"},p=g.c.bind(C),j=({links:c,customLink:t})=>e.jsx("ul",{children:c.map(({href:s,text:o,..._},l)=>e.jsx("li",{children:t?e.jsx(t,{..._,href:s,className:p(`${r}__custom-link-navigation`),children:o}):e.jsx(y.Link,{..._,variant:"navigation",negative:!0,href:s,disableVisited:!0,children:o})},l))}),S=({navigationLinks:c,sectionProps:t,customLink:s})=>e.jsxs(e.Fragment,{children:[e.jsx("section",{...t,className:p(`${r}__navigation`,`${r}__navigation--lg`,t?.className),children:c.map((o,_)=>e.jsxs("div",{className:p(`${r}__navigation-section`),children:[e.jsx("h3",{className:p(`${r}__navigation-section-heading`),children:o.heading}),e.jsx(j,{links:o.links,customLink:s})]},_))}),e.jsx("section",{...t,className:p(`${r}__navigation`,`${r}__navigation--sm`,t?.className),children:e.jsx(x.Accordion,{negative:!0,children:c.map((o,_)=>e.jsx(x.Accordion.Item,{title:o.heading,titleTag:"h2",className:p(`${r}__navigation-section`),children:e.jsx(j,{links:o.links,customLink:s})},_))})})]}),T=g.c.bind(C),v=({icon:c,href:t,...s})=>e.jsx("a",{...s,href:t,className:T(`${r}__social-link`),rel:"noreferrer",target:"_blank",children:e.jsx(F.b,{svg:c})}),E=()=>e.jsxs("svg",{width:"81",height:"32",viewBox:"0 0 81 32",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[e.jsxs("g",{clipPath:"url(#clip0_5309_7721)",children:[e.jsx("path",{d:"M81.28 16.8043V25.2064H78.5458V23.8293C77.6183 25.04 76.1438 25.4912 74.9076 25.4912C72.3401 25.4912 70.8186 23.8773 70.8186 21.8592C70.8186 19.5573 73.4107 17.6821 76.5723 17.6821C77.1909 17.6821 77.8566 17.7301 78.4507 17.92V17.1371C78.4507 15.9499 77.7615 15.3333 76.3586 15.3333C75.0989 15.3333 73.9812 15.9744 73.2921 16.8053L71.2235 15.2864C72.3882 13.9339 74.3862 12.9845 76.4067 12.9845C79.5683 12.9824 81.28 14.3595 81.28 16.8043ZM78.4507 20.6251V20.1024C77.9752 19.936 77.4762 19.8891 76.8576 19.8891C74.7174 19.8891 73.6244 20.7435 73.6244 21.7877C73.6244 22.6421 74.3616 23.1883 75.4792 23.1883C76.9527 23.1883 78.4507 22.3104 78.4507 20.6251Z",fill:"currentColor"}),e.jsx("path",{d:"M65.8021 9.968C65.8021 9.04214 66.6109 8.28267 67.5373 8.28267C68.4412 8.28267 69.249 9.04214 69.249 9.968C69.249 10.8939 68.4401 11.6533 67.5373 11.6533C66.6109 11.6533 65.8021 10.8939 65.8021 9.968ZM66.0638 25.2064V13.3387H68.9883V25.2064H66.0638Z",fill:"currentColor"}),e.jsx("path",{d:"M64.2806 25.2533C63.8286 25.3483 63.3531 25.3717 62.9257 25.3717C60.8337 25.3717 59.9062 24.3744 59.9062 22.3573V8.59093H62.8306V21.9541C62.8306 22.9749 63.4493 23.1168 64.2806 23.0219V25.2533Z",fill:"currentColor"}),e.jsx("path",{d:"M58.0513 20.1035H49.2781C49.5869 21.8603 50.8477 23.0229 52.4643 23.0229C53.677 23.0229 54.6514 22.4768 55.2466 21.5755L57.5769 22.976C56.3877 24.5664 54.4388 25.5157 52.4653 25.5157C49.2086 25.5157 46.3793 22.9291 46.3793 19.2256C46.3793 15.5221 49.1851 12.96 52.3232 12.96C56.4347 12.9589 58.4552 16.2347 58.0513 20.1035ZM49.3732 17.8955H55.222C54.8651 16.3531 53.8672 15.3792 52.3211 15.3792C50.8712 15.3803 49.7771 16.3765 49.3732 17.8955Z",fill:"currentColor"}),e.jsx("path",{d:"M48.6359 11.2971H43.69V25.2064H40.5518V11.2971H35.5589V8.59093H48.6359V11.2971Z",fill:"currentColor"}),e.jsx("path",{d:"M16.9321 27.4656C11.5983 29.6245 8.54567 28.9365 6.85855 27.5904L6.83397 27.5712C9.44532 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z",fill:"currentColor"}),e.jsx("path",{d:"M20.9806 22.4843C25.137 20.0779 28.8809 15.9968 30.0616 13.0869C30.3971 10.6784 30.4654 10.3744 30.506 7.7248C30.5114 7.35787 30.4889 7.00587 30.4548 6.6688C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43738 23.5435 1.74589 20.6027C2.6808 22.4459 3.29411 23.3408 4.34549 24.7083C7.45048 27.4539 13.9853 26.5355 20.9806 22.4843Z",fill:"currentColor"}),e.jsx("path",{d:"M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z",fill:"currentColor"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_5309_7721",children:e.jsx("rect",{width:"81",height:"32",fill:"currentColor"})})})]}),i=g.c.bind(C),q=({className:c,navigation:t,social:s,contacts:o,additional:_,custom:l,payments:u,logo:f,themeSelect:h,forceColorScheme:N,...b})=>{const $=i(c,r),{options:k}=L.useTheme(),[P,V]=w.useColorScheme(),M=N??k?.footerColorScheme;return e.jsx("footer",{"data-color-scheme":M,className:$,...b,children:e.jsx(Z.Container,{children:e.jsxs("div",{className:i(`${r}__container`),children:[e.jsx("div",{className:i(`${r}__logo`,{[`${r}__logo--telia`]:!f}),children:f??e.jsx(E,{})}),s&&e.jsx("section",{...s.sectionProps,className:i(`${r}__social`,`${r}__social--md`,s.sectionProps?.className),children:s.links.map(({icon:n,href:a,...d})=>m.createElement(v,{...d,icon:n,href:a,key:a}))}),t&&e.jsx(S,{customLink:t.customLink,navigationLinks:t.links,sectionProps:t.sectionProps}),u&&e.jsxs("section",{...u.sectionProps,className:i(`${r}__payments`,u.sectionProps?.className),children:[u.content,u.images?.map(({alt:n,src:a})=>e.jsx("img",{className:i(`${r}__payments-image`),src:a,alt:n},a))]}),h&&e.jsx("section",{className:i(`${r}__theme-select`),children:e.jsx(H.Select,{value:P,label:h.label,options:h.options,negative:!0,onChange:n=>{V(n.target.value)}})}),o&&e.jsxs("section",{...o.sectionProps,className:i(`${r}__contacts`,o.sectionProps?.className),children:[o.copyright&&e.jsx("div",{className:i(`${r}__contacts-copyright`),children:o.copyright}),o.address&&e.jsx("address",{...o.address.addressProps,className:i(`${r}__contacts-address`,o.address.addressProps?.className),children:o.address.content})]}),(l||_)&&e.jsxs("div",{className:i(`${r}__additional`),children:[l&&e.jsx("section",{...l.sectionProps,className:i(`${r}__custom-content`,l.sectionProps?.className),children:l.content}),_&&e.jsx("section",{..._.sectionProps,className:i(`${r}__additional-links`,_.sectionProps?.className),children:_?.links?.map(({href:n,text:a,...d})=>m.createElement(y.Link,{...d,variant:"standalone",negative:!0,href:n,key:n,disableVisited:!0},a))})]}),s&&e.jsx("section",{...s.sectionProps,className:i(`${r}__social`,`${r}__social--sm`,s.sectionProps?.className),children:s.links.map(({icon:n,href:a,...d})=>m.createElement(v,{...d,icon:n,href:a,key:a}))})]})})})};q.displayName="Footer";exports.Footer=q;
|
|
2
|
-
//# sourceMappingURL=footer-Btsh40pg.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),w=require("./grid-uGMD2euo.js"),B=require("./heading-DLCdW6gx.js"),m=require("./paragraph-BsI53OR0.js"),f=require("./ThemeProvider-djmNDpmy.js");require("react");require("change-case");const v=require("./bind-DeUYJ6m9.js"),H=require("./button-ChYUPi2k.js"),V=require("./icon.es-j3eRib6d.js"),i={"purpur-hero-banner":"_purpur-hero-banner_ue1q7_1","purpur-hero-banner__grid-container":"_purpur-hero-banner__grid-container_ue1q7_5","purpur-hero-banner__container":"_purpur-hero-banner__container_ue1q7_8","purpur-hero-banner__container--with-media":"_purpur-hero-banner__container--with-media_ue1q7_17","purpur-hero-banner__container--no-media":"_purpur-hero-banner__container--no-media_ue1q7_28","purpur-hero-banner__breadcrumbs":"_purpur-hero-banner__breadcrumbs_ue1q7_39","purpur-hero-banner__content":"_purpur-hero-banner__content_ue1q7_57","purpur-hero-banner__content--no-media":"_purpur-hero-banner__content--no-media_ue1q7_75","purpur-hero-banner__content--no-breadcrumbs":"_purpur-hero-banner__content--no-breadcrumbs_ue1q7_79","purpur-hero-banner__content--no-additional-text":"_purpur-hero-banner__content--no-additional-text_ue1q7_83","purpur-hero-banner__main-content":"_purpur-hero-banner__main-content_ue1q7_91","purpur-hero-banner__main-content--no-media":"_purpur-hero-banner__main-content--no-media_ue1q7_99","purpur-hero-banner__title":"_purpur-hero-banner__title_ue1q7_102","purpur-hero-banner__title--hyphens-default":"_purpur-hero-banner__title--hyphens-default_ue1q7_109","purpur-hero-banner__title--hyphens-enabled":"_purpur-hero-banner__title--hyphens-enabled_ue1q7_117","purpur-hero-banner__title--hyphens-disabled":"_purpur-hero-banner__title--hyphens-disabled_ue1q7_120","purpur-hero-banner__preamble":"_purpur-hero-banner__preamble_ue1q7_123","purpur-hero-banner__custom-content":"_purpur-hero-banner__custom-content_ue1q7_128","purpur-hero-banner__actions":"_purpur-hero-banner__actions_ue1q7_132","purpur-hero-banner__additional-text":"_purpur-hero-banner__additional-text_ue1q7_148","purpur-hero-banner__media":"_purpur-hero-banner__media_ue1q7_152","purpur-hero-banner__media--sm":"_purpur-hero-banner__media--sm_ue1q7_156","purpur-hero-banner__media--lg":"_purpur-hero-banner__media--lg_ue1q7_164","purpur-hero-banner__video-button":"_purpur-hero-banner__video-button_ue1q7_203"},C="purpur-hero-banner",Z=v.c.bind(i),M=({children:_,className:o,...a})=>r.jsx("div",{...a,className:Z(`${C}__actions`,o),children:_}),k={name:"play-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 12 5.5 19.794V4.206L19 12Z"/><path fill-rule="evenodd" d="M19.875 12a.875.875 0 0 1-.438.758l-13.5 7.794a.875.875 0 0 1-1.312-.758V4.206a.875.875 0 0 1 1.313-.758l13.5 7.794c.27.156.437.445.437.758Zm-13.5-6.279V18.28L17.25 12 6.375 5.721Z" clip-rule="evenodd"/></svg>',keywords:["play-filled"],category:"action"},A={name:"tv-pause",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 20h-3V4h3v16ZM8 20H5V4h3v16Z"/><path fill-rule="evenodd" d="M4.1 4a.9.9 0 0 1 .9-.9h3a.9.9 0 0 1 .9.9v16a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V4Zm1.8.9v14.2h1.2V4.9H5.9Zm9.2-.9a.9.9 0 0 1 .9-.9h3a.9.9 0 0 1 .9.9v16a.9.9 0 0 1-.9.9h-3a.9.9 0 0 1-.9-.9V4Zm1.8.9v14.2h1.2V4.9h-1.2Z" clip-rule="evenodd"/></svg>',keywords:["tv-pause"],category:"action"},T="purpur-hero-banner",G=({children:_,isPlaying:o,togglePausePlay:a,videoPauseAriaLabel:p,videoPlayAriaLabel:c,className:t,...d})=>_&&r.jsxs("div",{className:t,...d,children:[_,!!a&&r.jsx(H.Button,{variant:"primary",negative:!0,iconOnly:!0,onClick:()=>{a()},className:i[`${T}__video-button`],"aria-label":o?p:c,children:r.jsx(V.b,{size:"xs",svg:o?A:k})})]}),n=v.c.bind(i),L={default:"default",enabled:"enabled",disabled:"disabled"},e="purpur-hero-banner",s=({children:_,className:o,breadcrumbs:a,forceColorScheme:p,beforeTitle:c,title:t,titleTag:d="h1",titleHyphens:q="default",preamble:b,additionalText:h,media:l,...x})=>{const{options:g}=f.useTheme(),$=n([e,o]),u=!!l,y=!!a,N=!!h,j=p??g?.heroBannerColorScheme;return r.jsx("section",{"data-color-scheme":j,className:$,...x,children:r.jsxs(w.Grid,{noGap:!0,className:n([`${e}__container`,{[`${e}__container--with-media`]:u,[`${e}__container--no-media`]:!u}]),containerClassName:n(`${e}__grid-container`),children:[a&&r.jsx("div",{className:n(`${e}__breadcrumbs`),children:a}),r.jsx("div",{className:n([`${e}__media`,`${e}__media--sm`]),children:l}),r.jsxs("div",{className:n([`${e}__content`,{[`${e}__content--no-media`]:!u,[`${e}__content--no-breadcrumbs`]:!y,[`${e}__content--no-additional-text`]:!N}]),children:[r.jsxs("div",{className:n([`${e}__main-content`,{[`${e}__main-content--no-media`]:!u}]),children:[c,t&&r.jsx(B.Heading,{negative:!0,tag:d,variant:"display-50",className:n([`${e}__title`,`${e}__title--hyphens-${q}`]),children:t}),b&&r.jsx(m.Paragraph,{negative:!0,variant:"preamble-100",className:n(`${e}__preamble`),children:b}),_&&r.jsx("div",{className:n(`${e}__custom-content`),children:_})]}),h&&r.jsx(m.Paragraph,{negative:!0,variant:"additional-100",className:i[`${e}__additional-text`],children:h})]}),r.jsx("div",{className:n([`${e}__media`,`${e}__media--lg`]),children:l})]})})};s.displayName="HeroBanner";s.Media=G;s.Actions=M;exports.HeroBanner=s;exports.TitleHyphenVariant=L;
|
|
2
|
-
//# sourceMappingURL=hero-banner-4JZr2Tzb.js.map
|