@purpurds/theme 7.14.0 → 8.0.0
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/.rush/temp/ci_build/@purpurds/theme/{c57802c8cf92c28803a6efc14a068565981032a8.untar.log → 0646f8ac54319d2ce21f09e9f3209badb3907451.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +12 -6
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +12 -6
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +1 -1
- package/dist/LICENSE.txt +8 -8
- package/dist/ThemeProvider.d.ts +7 -5
- package/dist/ThemeProvider.d.ts.map +1 -1
- package/dist/telia-dark.d.ts +129 -0
- package/dist/telia-dark.d.ts.map +1 -0
- package/dist/telia-light.d.ts +129 -0
- package/dist/telia-light.d.ts.map +1 -0
- package/dist/telia-theme.d.ts +223 -20
- package/dist/telia-theme.d.ts.map +1 -1
- package/dist/theme-props.d.ts +32 -17
- package/dist/theme-props.d.ts.map +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.cjs.js.map +1 -1
- package/dist/theme.d.ts +4 -2
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.es.js +346 -133
- package/dist/theme.es.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/useApplyTheme.d.ts +10 -0
- package/dist/useApplyTheme.d.ts.map +1 -0
- package/dist/useColorScheme.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/ThemeProvider.tsx +18 -27
- package/src/telia-dark.ts +141 -0
- package/src/telia-light.ts +278 -0
- package/src/telia-theme.ts +6 -88
- package/src/theme-props.ts +32 -17
- package/src/theme.ts +4 -2
- package/src/types.ts +1 -0
- package/src/useApplyTheme.ts +34 -0
- package/types.d.ts +0 -365
- /package/src/{useColorScheme.tsx → useColorScheme.ts} +0 -0
package/dist/telia-theme.d.ts
CHANGED
|
@@ -1,56 +1,259 @@
|
|
|
1
1
|
export declare const teliaTheme: {
|
|
2
2
|
light: {
|
|
3
|
+
colorBrandDeepPurple: string;
|
|
4
|
+
colorBrandCorePurple: string;
|
|
5
|
+
colorBrandLightPurple: string;
|
|
6
|
+
colorBrandDeepBeige: string;
|
|
7
|
+
colorBrandBeige: string;
|
|
8
|
+
colorBrandLightBeige: string;
|
|
9
|
+
colorBrandOffBlack: string;
|
|
10
|
+
colorBrandWhite: string;
|
|
11
|
+
colorTextDefault: string;
|
|
12
|
+
colorTextMedium: string;
|
|
13
|
+
colorTextWeak: string;
|
|
14
|
+
colorTextDefaultNegative: string;
|
|
15
|
+
colorTextMediumNegative: string;
|
|
16
|
+
colorTextWeakNegative: string;
|
|
17
|
+
colorTextInteractivePrimary: string;
|
|
18
|
+
colorTextInteractivePrimaryHover: string;
|
|
19
|
+
colorTextInteractivePrimaryActive: string;
|
|
20
|
+
colorTextInteractiveOnPrimary: string;
|
|
21
|
+
colorTextInteractiveOnExpressive: string;
|
|
22
|
+
colorTextInteractiveOnExpressiveHover: string;
|
|
23
|
+
colorTextInteractiveOnExpressiveActive: string;
|
|
24
|
+
colorTextInteractiveOnDestructive: string;
|
|
25
|
+
colorTextInteractiveSelected: string;
|
|
26
|
+
colorTextInteractivePrimaryNegative: string;
|
|
27
|
+
colorTextInteractivePrimaryHoverNegative: string;
|
|
28
|
+
colorTextInteractivePrimaryActiveNegative: string;
|
|
29
|
+
colorTextInteractiveOnPrimaryNegative: string;
|
|
30
|
+
colorTextInteractiveOnExpressiveNegative: string;
|
|
31
|
+
colorTextInteractiveOnExpressiveHoverNegative: string;
|
|
32
|
+
colorTextInteractiveOnExpressiveActiveNegative: string;
|
|
33
|
+
colorTextStatusInfoMedium: string;
|
|
34
|
+
colorTextStatusInfoStrong: string;
|
|
35
|
+
colorTextStatusSuccessMedium: string;
|
|
36
|
+
colorTextStatusSuccessStrong: string;
|
|
37
|
+
colorTextStatusWarningMedium: string;
|
|
38
|
+
colorTextStatusWarningStrong: string;
|
|
39
|
+
colorTextStatusErrorMedium: string;
|
|
40
|
+
colorTextStatusErrorStrong: string;
|
|
41
|
+
colorTextStatusNeutral: string;
|
|
42
|
+
colorTextStatusSpecial: string;
|
|
43
|
+
colorTextStatusAttention: string;
|
|
44
|
+
colorTextStatusDiscount: string;
|
|
45
|
+
colorTextStatusBlackFriday: string;
|
|
46
|
+
colorTextStatusSuccessStrongNegative: string;
|
|
47
|
+
colorTextStatusErrorMediumNegative: string;
|
|
48
|
+
colorTextStatusErrorStrongNegative: string;
|
|
49
|
+
colorTextStatusWarningMediumNegative: string;
|
|
50
|
+
colorTextToneOnTonePrimary: string;
|
|
51
|
+
colorTextToneOnToneSecondary: string;
|
|
52
|
+
colorTextToneOnToneTertiary: string;
|
|
3
53
|
colorBackgroundPrimary: string;
|
|
4
54
|
colorBackgroundSecondary: string;
|
|
55
|
+
colorBackgroundOnImage: string;
|
|
56
|
+
colorBackgroundPrimaryNegative: string;
|
|
57
|
+
colorBackgroundSecondaryNegative: string;
|
|
58
|
+
colorBackgroundOnImageNegative: string;
|
|
5
59
|
colorBackgroundInteractivePrimary: string;
|
|
6
60
|
colorBackgroundInteractivePrimaryHover: string;
|
|
7
61
|
colorBackgroundInteractivePrimaryActive: string;
|
|
62
|
+
colorBackgroundInteractiveExpressive: string;
|
|
63
|
+
colorBackgroundInteractiveExpressiveHover: string;
|
|
64
|
+
colorBackgroundInteractiveExpressiveActive: string;
|
|
8
65
|
colorBackgroundInteractiveTransparentHover: string;
|
|
9
66
|
colorBackgroundInteractiveTransparentActive: string;
|
|
10
67
|
colorBackgroundInteractiveDisabled: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
68
|
+
colorBackgroundInteractiveReadOnly: string;
|
|
69
|
+
colorBackgroundInteractiveInactive: string;
|
|
70
|
+
colorBackgroundInteractiveDestructive: string;
|
|
71
|
+
colorBackgroundInteractiveDestructiveHover: string;
|
|
72
|
+
colorBackgroundInteractiveDestructiveActive: string;
|
|
73
|
+
colorBackgroundInteractiveAutoFill: string;
|
|
74
|
+
colorBackgroundInteractivePrimaryNegative: string;
|
|
75
|
+
colorBackgroundInteractivePrimaryHoverNegative: string;
|
|
76
|
+
colorBackgroundInteractivePrimaryActiveNegative: string;
|
|
77
|
+
colorBackgroundInteractiveExpressiveNegative: string;
|
|
78
|
+
colorBackgroundInteractiveExpressiveHoverNegative: string;
|
|
79
|
+
colorBackgroundInteractiveExpressiveActiveNegative: string;
|
|
80
|
+
colorBackgroundInteractiveTransparentHoverNegative: string;
|
|
81
|
+
colorBackgroundInteractiveTransparentActiveNegative: string;
|
|
82
|
+
colorBackgroundInteractiveDisabledNegative: string;
|
|
83
|
+
colorBackgroundInteractiveInactiveNegative: string;
|
|
84
|
+
colorBackgroundInteractiveReadOnlyNegative: string;
|
|
85
|
+
colorBackgroundStatusInfoMedium: string;
|
|
86
|
+
colorBackgroundStatusInfoStrong: string;
|
|
87
|
+
colorBackgroundStatusSuccessMedium: string;
|
|
88
|
+
colorBackgroundStatusSuccessStrong: string;
|
|
89
|
+
colorBackgroundStatusWarningMedium: string;
|
|
90
|
+
colorBackgroundStatusWarningStrong: string;
|
|
91
|
+
colorBackgroundStatusErrorMedium: string;
|
|
92
|
+
colorBackgroundStatusErrorStrong: string;
|
|
93
|
+
colorBackgroundStatusNeutral: string;
|
|
94
|
+
colorBackgroundStatusSpecial: string;
|
|
95
|
+
colorBackgroundStatusAttention: string;
|
|
96
|
+
colorBackgroundStatusBlackFriday: string;
|
|
97
|
+
colorBackgroundStatusSuccessStrongNegative: string;
|
|
98
|
+
colorBackgroundStatusWarningStrongNegative: string;
|
|
99
|
+
colorBackgroundStatusErrorStrongNegative: string;
|
|
100
|
+
colorBackgroundToneOnTonePrimary: string;
|
|
101
|
+
colorBackgroundToneOnToneSecondary: string;
|
|
102
|
+
colorBackgroundToneOnToneTertiary: string;
|
|
103
|
+
colorBackgroundToneOnToneQuaternary: string;
|
|
21
104
|
colorBorderWeak: string;
|
|
22
105
|
colorBorderMedium: string;
|
|
106
|
+
colorBorderStrong: string;
|
|
107
|
+
colorBorderWeakNegative: string;
|
|
108
|
+
colorBorderMediumNegative: string;
|
|
109
|
+
colorBorderStrongNegative: string;
|
|
23
110
|
colorBorderInteractivePrimary: string;
|
|
24
111
|
colorBorderInteractivePrimaryHover: string;
|
|
112
|
+
colorBorderInteractivePrimaryActive: string;
|
|
25
113
|
colorBorderInteractiveFocus: string;
|
|
114
|
+
colorBorderInteractiveExpressive: string;
|
|
26
115
|
colorBorderInteractiveSubtle: string;
|
|
116
|
+
colorBorderInteractiveSubtleHover: string;
|
|
117
|
+
colorBorderInteractiveSelected: string;
|
|
118
|
+
colorBorderInteractivePrimaryNegative: string;
|
|
119
|
+
colorBorderInteractivePrimaryHoverNegative: string;
|
|
120
|
+
colorBorderInteractivePrimaryActiveNegative: string;
|
|
121
|
+
colorBorderInteractiveSubtleNegative: string;
|
|
122
|
+
colorBorderInteractiveSubtleHoverNegative: string;
|
|
123
|
+
colorBorderStatusError: string;
|
|
124
|
+
colorBorderStatusWarning: string;
|
|
125
|
+
colorBorderStatusInfo: string;
|
|
126
|
+
colorBorderStatusSuccess: string;
|
|
127
|
+
colorBorderStatusErrorNegative: string;
|
|
128
|
+
colorBorderStatusSuccessNegative: string;
|
|
27
129
|
};
|
|
28
130
|
dark: {
|
|
131
|
+
colorBrandDeepPurple: string;
|
|
132
|
+
colorBrandCorePurple: string;
|
|
133
|
+
colorBrandLightPurple: string;
|
|
134
|
+
colorBrandDeepBeige: string;
|
|
135
|
+
colorBrandBeige: string;
|
|
136
|
+
colorBrandLightBeige: string;
|
|
137
|
+
colorBrandOffBlack: string;
|
|
138
|
+
colorBrandWhite: string;
|
|
139
|
+
colorTextDefault: string;
|
|
140
|
+
colorTextMedium: string;
|
|
141
|
+
colorTextWeak: string;
|
|
142
|
+
colorTextDefaultNegative: string;
|
|
143
|
+
colorTextMediumNegative: string;
|
|
144
|
+
colorTextWeakNegative: string;
|
|
145
|
+
colorTextInteractivePrimary: string;
|
|
146
|
+
colorTextInteractivePrimaryHover: string;
|
|
147
|
+
colorTextInteractivePrimaryActive: string;
|
|
148
|
+
colorTextInteractiveOnPrimary: string;
|
|
149
|
+
colorTextInteractiveOnExpressive: string;
|
|
150
|
+
colorTextInteractiveOnExpressiveHover: string;
|
|
151
|
+
colorTextInteractiveOnExpressiveActive: string;
|
|
152
|
+
colorTextInteractiveOnDestructive: string;
|
|
153
|
+
colorTextInteractiveSelected: string;
|
|
154
|
+
colorTextInteractivePrimaryNegative: string;
|
|
155
|
+
colorTextInteractivePrimaryHoverNegative: string;
|
|
156
|
+
colorTextInteractivePrimaryActiveNegative: string;
|
|
157
|
+
colorTextInteractiveOnPrimaryNegative: string;
|
|
158
|
+
colorTextInteractiveOnExpressiveNegative: string;
|
|
159
|
+
colorTextInteractiveOnExpressiveHoverNegative: string;
|
|
160
|
+
colorTextInteractiveOnExpressiveActiveNegative: string;
|
|
161
|
+
colorTextStatusInfoMedium: string;
|
|
162
|
+
colorTextStatusInfoStrong: string;
|
|
163
|
+
colorTextStatusSuccessMedium: string;
|
|
164
|
+
colorTextStatusSuccessStrong: string;
|
|
165
|
+
colorTextStatusWarningMedium: string;
|
|
166
|
+
colorTextStatusWarningStrong: string;
|
|
167
|
+
colorTextStatusErrorMedium: string;
|
|
168
|
+
colorTextStatusErrorStrong: string;
|
|
169
|
+
colorTextStatusNeutral: string;
|
|
170
|
+
colorTextStatusSpecial: string;
|
|
171
|
+
colorTextStatusAttention: string;
|
|
172
|
+
colorTextStatusDiscount: string;
|
|
173
|
+
colorTextStatusBlackFriday: string;
|
|
174
|
+
colorTextStatusSuccessStrongNegative: string;
|
|
175
|
+
colorTextStatusErrorMediumNegative: string;
|
|
176
|
+
colorTextStatusErrorStrongNegative: string;
|
|
177
|
+
colorTextStatusWarningMediumNegative: string;
|
|
178
|
+
colorTextToneOnTonePrimary: string;
|
|
179
|
+
colorTextToneOnToneSecondary: string;
|
|
180
|
+
colorTextToneOnToneTertiary: string;
|
|
29
181
|
colorBackgroundPrimary: string;
|
|
30
182
|
colorBackgroundSecondary: string;
|
|
183
|
+
colorBackgroundOnImage: string;
|
|
184
|
+
colorBackgroundPrimaryNegative: string;
|
|
185
|
+
colorBackgroundSecondaryNegative: string;
|
|
186
|
+
colorBackgroundOnImageNegative: string;
|
|
31
187
|
colorBackgroundInteractivePrimary: string;
|
|
32
188
|
colorBackgroundInteractivePrimaryHover: string;
|
|
33
189
|
colorBackgroundInteractivePrimaryActive: string;
|
|
190
|
+
colorBackgroundInteractiveExpressive: string;
|
|
191
|
+
colorBackgroundInteractiveExpressiveHover: string;
|
|
192
|
+
colorBackgroundInteractiveExpressiveActive: string;
|
|
34
193
|
colorBackgroundInteractiveTransparentHover: string;
|
|
35
194
|
colorBackgroundInteractiveTransparentActive: string;
|
|
36
195
|
colorBackgroundInteractiveDisabled: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
196
|
+
colorBackgroundInteractiveReadOnly: string;
|
|
197
|
+
colorBackgroundInteractiveInactive: string;
|
|
198
|
+
colorBackgroundInteractiveDestructive: string;
|
|
199
|
+
colorBackgroundInteractiveDestructiveHover: string;
|
|
200
|
+
colorBackgroundInteractiveDestructiveActive: string;
|
|
201
|
+
colorBackgroundInteractiveAutoFill: string;
|
|
202
|
+
colorBackgroundInteractivePrimaryNegative: string;
|
|
203
|
+
colorBackgroundInteractivePrimaryHoverNegative: string;
|
|
204
|
+
colorBackgroundInteractivePrimaryActiveNegative: string;
|
|
205
|
+
colorBackgroundInteractiveExpressiveNegative: string;
|
|
206
|
+
colorBackgroundInteractiveExpressiveHoverNegative: string;
|
|
207
|
+
colorBackgroundInteractiveExpressiveActiveNegative: string;
|
|
208
|
+
colorBackgroundInteractiveTransparentHoverNegative: string;
|
|
209
|
+
colorBackgroundInteractiveTransparentActiveNegative: string;
|
|
210
|
+
colorBackgroundInteractiveDisabledNegative: string;
|
|
211
|
+
colorBackgroundInteractiveInactiveNegative: string;
|
|
212
|
+
colorBackgroundInteractiveReadOnlyNegative: string;
|
|
213
|
+
colorBackgroundStatusInfoMedium: string;
|
|
214
|
+
colorBackgroundStatusInfoStrong: string;
|
|
215
|
+
colorBackgroundStatusSuccessMedium: string;
|
|
216
|
+
colorBackgroundStatusSuccessStrong: string;
|
|
217
|
+
colorBackgroundStatusWarningMedium: string;
|
|
218
|
+
colorBackgroundStatusWarningStrong: string;
|
|
219
|
+
colorBackgroundStatusErrorMedium: string;
|
|
220
|
+
colorBackgroundStatusErrorStrong: string;
|
|
221
|
+
colorBackgroundStatusNeutral: string;
|
|
222
|
+
colorBackgroundStatusSpecial: string;
|
|
223
|
+
colorBackgroundStatusAttention: string;
|
|
224
|
+
colorBackgroundStatusBlackFriday: string;
|
|
225
|
+
colorBackgroundStatusSuccessStrongNegative: string;
|
|
226
|
+
colorBackgroundStatusWarningStrongNegative: string;
|
|
227
|
+
colorBackgroundStatusErrorStrongNegative: string;
|
|
228
|
+
colorBackgroundToneOnTonePrimary: string;
|
|
229
|
+
colorBackgroundToneOnToneSecondary: string;
|
|
230
|
+
colorBackgroundToneOnToneTertiary: string;
|
|
231
|
+
colorBackgroundToneOnToneQuaternary: string;
|
|
47
232
|
colorBorderWeak: string;
|
|
48
233
|
colorBorderMedium: string;
|
|
49
234
|
colorBorderStrong: string;
|
|
235
|
+
colorBorderWeakNegative: string;
|
|
236
|
+
colorBorderMediumNegative: string;
|
|
237
|
+
colorBorderStrongNegative: string;
|
|
50
238
|
colorBorderInteractivePrimary: string;
|
|
51
239
|
colorBorderInteractivePrimaryHover: string;
|
|
240
|
+
colorBorderInteractivePrimaryActive: string;
|
|
52
241
|
colorBorderInteractiveFocus: string;
|
|
242
|
+
colorBorderInteractiveExpressive: string;
|
|
53
243
|
colorBorderInteractiveSubtle: string;
|
|
244
|
+
colorBorderInteractiveSubtleHover: string;
|
|
245
|
+
colorBorderInteractiveSelected: string;
|
|
246
|
+
colorBorderInteractivePrimaryNegative: string;
|
|
247
|
+
colorBorderInteractivePrimaryHoverNegative: string;
|
|
248
|
+
colorBorderInteractivePrimaryActiveNegative: string;
|
|
249
|
+
colorBorderInteractiveSubtleNegative: string;
|
|
250
|
+
colorBorderInteractiveSubtleHoverNegative: string;
|
|
251
|
+
colorBorderStatusError: string;
|
|
252
|
+
colorBorderStatusWarning: string;
|
|
253
|
+
colorBorderStatusInfo: string;
|
|
254
|
+
colorBorderStatusSuccess: string;
|
|
255
|
+
colorBorderStatusErrorNegative: string;
|
|
256
|
+
colorBorderStatusSuccessNegative: string;
|
|
54
257
|
};
|
|
55
258
|
};
|
|
56
259
|
//# sourceMappingURL=telia-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telia-theme.d.ts","sourceRoot":"","sources":["../src/telia-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telia-theme.d.ts","sourceRoot":"","sources":["../src/telia-theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG4B,CAAC"}
|
package/dist/theme-props.d.ts
CHANGED
|
@@ -23,21 +23,27 @@ export type ThemeProps = {
|
|
|
23
23
|
colorTextInteractiveOnPrimary?: string;
|
|
24
24
|
colorTextInteractiveOnPrimaryNegative?: string;
|
|
25
25
|
colorTextInteractivePrimaryNegative?: string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
colorTextInteractivePrimaryHoverNegative?: string;
|
|
27
|
+
colorTextInteractivePrimaryActiveNegative?: string;
|
|
28
28
|
colorTextInteractiveOnExpressive?: string;
|
|
29
29
|
colorTextInteractiveOnExpressiveNegative?: string;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
colorTextInteractiveOnExpressiveHover?: string;
|
|
31
|
+
colorTextInteractiveOnExpressiveHoverNegative?: string;
|
|
32
|
+
colorTextInteractiveOnExpressiveActive?: string;
|
|
33
|
+
colorTextInteractiveOnExpressiveActiveNegative?: string;
|
|
32
34
|
colorTextInteractiveOnDestructive?: string;
|
|
33
35
|
colorTextInteractiveSelected?: string;
|
|
34
36
|
colorTextStatusDiscount?: string;
|
|
35
37
|
colorTextStatusErrorStrong?: string;
|
|
38
|
+
colorTextStatusErrorStrongNegative?: string;
|
|
36
39
|
colorTextStatusErrorMedium?: string;
|
|
40
|
+
colorTextStatusErrorMediumNegative?: string;
|
|
37
41
|
colorTextStatusSuccessStrong?: string;
|
|
42
|
+
colorTextStatusSuccessStrongNegative?: string;
|
|
38
43
|
colorTextStatusSuccessMedium?: string;
|
|
39
44
|
colorTextStatusWarningStrong?: string;
|
|
40
45
|
colorTextStatusWarningMedium?: string;
|
|
46
|
+
colorTextStatusWarningMediumNegative?: string;
|
|
41
47
|
colorTextStatusInfoStrong?: string;
|
|
42
48
|
colorTextStatusInfoMedium?: string;
|
|
43
49
|
colorTextStatusNeutral?: string;
|
|
@@ -58,35 +64,38 @@ export type ThemeProps = {
|
|
|
58
64
|
colorBackgroundInteractivePrimaryHover?: string;
|
|
59
65
|
colorBackgroundInteractivePrimaryActive?: string;
|
|
60
66
|
colorBackgroundInteractivePrimaryNegative?: string;
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
colorBackgroundInteractivePrimaryHoverNegative?: string;
|
|
68
|
+
colorBackgroundInteractivePrimaryActiveNegative?: string;
|
|
63
69
|
colorBackgroundInteractiveExpressive?: string;
|
|
64
70
|
colorBackgroundInteractiveExpressiveHover?: string;
|
|
65
71
|
colorBackgroundInteractiveExpressiveActive?: string;
|
|
66
72
|
colorBackgroundInteractiveExpressiveNegative?: string;
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
colorBackgroundInteractiveExpressiveHoverNegative?: string;
|
|
74
|
+
colorBackgroundInteractiveExpressiveActiveNegative?: string;
|
|
69
75
|
colorBackgroundInteractiveDisabled?: string;
|
|
70
76
|
colorBackgroundInteractiveDisabledNegative?: string;
|
|
71
|
-
colorBackgroundInteractiveTransparent?: string;
|
|
72
77
|
colorBackgroundInteractiveTransparentHover?: string;
|
|
73
|
-
|
|
78
|
+
colorBackgroundInteractiveTransparentHoverNegative?: string;
|
|
74
79
|
colorBackgroundInteractiveTransparentActive?: string;
|
|
75
|
-
|
|
80
|
+
colorBackgroundInteractiveTransparentActiveNegative?: string;
|
|
76
81
|
colorBackgroundInteractiveInactive?: string;
|
|
77
82
|
colorBackgroundInteractiveInactiveNegative?: string;
|
|
78
83
|
colorBackgroundInteractiveReadOnly?: string;
|
|
84
|
+
colorBackgroundInteractiveReadOnlyNegative?: string;
|
|
79
85
|
colorBackgroundInteractiveDestructive?: string;
|
|
80
86
|
colorBackgroundInteractiveDestructiveHover?: string;
|
|
81
87
|
colorBackgroundInteractiveDestructiveActive?: string;
|
|
82
|
-
|
|
88
|
+
colorBackgroundStatusInfoMedium?: string;
|
|
83
89
|
colorBackgroundStatusInfoStrong?: string;
|
|
84
|
-
|
|
90
|
+
colorBackgroundStatusSuccessMedium?: string;
|
|
85
91
|
colorBackgroundStatusSuccessStrong?: string;
|
|
86
|
-
|
|
92
|
+
colorBackgroundStatusSuccessStrongNegative?: string;
|
|
93
|
+
colorBackgroundStatusErrorMedium?: string;
|
|
87
94
|
colorBackgroundStatusErrorStrong?: string;
|
|
88
|
-
|
|
95
|
+
colorBackgroundStatusErrorStrongNegative?: string;
|
|
96
|
+
colorBackgroundStatusWarningMedium?: string;
|
|
89
97
|
colorBackgroundStatusWarningStrong?: string;
|
|
98
|
+
colorBackgroundStatusWarningStrongNegative?: string;
|
|
90
99
|
colorBackgroundStatusNeutral?: string;
|
|
91
100
|
colorBackgroundStatusSpecial?: string;
|
|
92
101
|
colorBackgroundStatusAttention?: string;
|
|
@@ -106,15 +115,20 @@ export type ThemeProps = {
|
|
|
106
115
|
colorBorderInteractivePrimaryNegative?: string;
|
|
107
116
|
colorBorderInteractivePrimaryHover?: string;
|
|
108
117
|
colorBorderInteractivePrimaryActive?: string;
|
|
109
|
-
|
|
110
|
-
|
|
118
|
+
colorBorderInteractivePrimaryHoverNegative?: string;
|
|
119
|
+
colorBorderInteractivePrimaryActiveNegative?: string;
|
|
120
|
+
colorBorderInteractiveExpressive?: string;
|
|
111
121
|
colorBorderInteractiveSelected?: string;
|
|
112
122
|
colorBorderInteractiveSubtle?: string;
|
|
123
|
+
colorBorderInteractiveSubtleNegative?: string;
|
|
113
124
|
colorBorderInteractiveSubtleHover?: string;
|
|
125
|
+
colorBorderInteractiveSubtleHoverNegative?: string;
|
|
114
126
|
colorBorderStatusError?: string;
|
|
127
|
+
colorBorderStatusErrorNegative?: string;
|
|
115
128
|
colorBorderStatusWarning?: string;
|
|
116
129
|
colorBorderStatusInfo?: string;
|
|
117
130
|
colorBorderStatusSuccess?: string;
|
|
131
|
+
colorBorderStatusSuccessNegative?: string;
|
|
118
132
|
colorOverlayDefault?: string;
|
|
119
133
|
spacingGutterSm?: string;
|
|
120
134
|
spacingGutterMd?: string;
|
|
@@ -130,6 +144,7 @@ export type ThemeProps = {
|
|
|
130
144
|
typographyWeightMedium?: string;
|
|
131
145
|
typographyWeightBold?: string;
|
|
132
146
|
typographyLineHeightTight?: string;
|
|
147
|
+
typographyLineHeightSnug?: string;
|
|
133
148
|
typographyLineHeightDefault?: string;
|
|
134
149
|
typographyLineHeightLoose?: string;
|
|
135
150
|
typographyLineHeightLooser?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-props.d.ts","sourceRoot":"","sources":["../src/theme-props.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAC7C,wCAAwC,CAAC,EAAE,MAAM,CAAC;IAClD,yCAAyC,CAAC,EAAE,MAAM,CAAC;IACnD,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,wCAAwC,CAAC,EAAE,MAAM,CAAC;IAClD,6CAA6C,CAAC,EAAE,MAAM,CAAC;IACvD,8CAA8C,CAAC,EAAE,MAAM,CAAC;IACxD,iCAAiC,CAAC,EAAE,MAAM,CAAC;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AC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
package/dist/theme.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),p=require("react"),I=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),h=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),C=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),T=/[^\p{L}\d]+/giu,m="$1\0$2",f="";function P(e){let r=e.trim();r=r.replace(I,m).replace(h,m),r=r.replace(T,"\0");let o=0,c=r.length;for(;r.charAt(o)==="\0";)o++;if(o===c)return[];for(;r.charAt(c-1)==="\0";)c--;return r.slice(o,c).split(/\0/g)}function x(e){const r=P(e);for(let o=0;o<r.length;o++){const c=r[o],u=C.exec(c);if(u){const t=u.index+(u[1]??u[2]).length;r.splice(o,1,c.slice(0,t),c.slice(t))}}return r}function y(e,r){const[o,c,u]=S(e,r);return o+c.map(E(r==null?void 0:r.locale)).join((r==null?void 0:r.delimiter)??" ")+u}function k(e,r){return y(e,{delimiter:"-",...r})}function E(e){return e===!1?r=>r.toLowerCase():r=>r.toLocaleLowerCase(e)}function S(e,r={}){const o=r.split??(r.separateNumbers?x:P),c=r.prefixCharacters??f,u=r.suffixCharacters??f;let t=0,n=e.length;for(;t<e.length;){const l=e.charAt(t);if(!c.includes(l))break;t++}for(;n>t;){const l=n-1,i=e.charAt(l);if(!u.includes(i))break;n=l}return[e.slice(0,t),o(e.slice(t,n)),e.slice(n)]}const b="#29003e",w="#990ae3",L="#1e1e20",A="rgba(0, 0, 0, 0.84)",R="rgba(0, 0, 0, 0.62)",_="rgba(0, 0, 0, 0.44)",H="#6d02a3",D="#4e0174",F="#29003e",M="#ffffff",O="#ffffff",U="#f5f5fa",W="#4e0174",j="#6d02a3",N="#8c07d0",q="rgba(0, 0, 0, 0.1)",X="#e4b6fb",$="#d58df9",G="rgba(0, 0, 0, 0.33)",Q="rgba(0, 0, 0, 0.16)",z="#b12df4",J="#6d02a3",K="#4e0174",Y="rgba(0, 0, 0, 0.44)",Z={light:{colorBackgroundPrimary:O,colorBackgroundSecondary:U,colorBackgroundInteractivePrimary:W,colorBackgroundInteractivePrimaryHover:j,colorBackgroundInteractivePrimaryActive:N,colorBackgroundInteractiveTransparentHover:X,colorBackgroundInteractiveTransparentActive:$,colorBackgroundInteractiveDisabled:q,colorTextDefault:A,colorTextMedium:R,colorTextWeak:_,colorTextInteractivePrimary:H,colorTextInteractivePrimaryActive:F,colorTextInteractivePrimaryHover:D,colorTextInteractiveOnPrimary:M,colorBrandDeepPurple:b,colorBrandCorePurple:w,colorBrandOffBlack:L,colorBorderWeak:Q,colorBorderMedium:G,colorBorderInteractivePrimary:J,colorBorderInteractivePrimaryHover:K,colorBorderInteractiveFocus:z,colorBorderInteractiveSubtle:Y},dark:{colorBackgroundPrimary:"var(--purpur-color-gray-900)",colorBackgroundSecondary:"var(--purpur-color-gray-850)",colorBackgroundInteractivePrimary:"var(--purpur-color-purple-100)",colorBackgroundInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorBackgroundInteractivePrimaryActive:"var(--purpur-color-purple-300)",colorBackgroundInteractiveTransparentHover:"var(color-purple-800)",colorBackgroundInteractiveTransparentActive:"var(--purpur-color-purple-700)",colorBackgroundInteractiveDisabled:"var(--purpur-color-gray-700)",colorTextDefault:"var(--purpur-color-transparent-white-950)",colorTextMedium:"var(--purpur-color-transparent-white-850)",colorTextWeak:"var(--purpur-color-transparent-white-700)",colorTextInteractivePrimary:"var(--purpur-color-purple-100)",colorTextInteractivePrimaryActive:"var(--purpur-color-purple-200)",colorTextInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorTextInteractiveOnPrimary:"var(--purpur-color-purple-800)",colorBrandDeepPurple:"var(--purpur-color-purple-200)",colorBrandCorePurple:"var(--purpur-color-purple-400)",colorBrandOffBlack:"var(--purpur-color-transparent-white-950)",colorBorderWeak:"var(--purpur-color-transparent-white-150)",colorBorderMedium:"var(--purpur-color-transparent-white-300)",colorBorderStrong:"var(--purpur-color-transparent-white-500)",colorBorderInteractivePrimary:"var(--purpur-color-purple-100)",colorBorderInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorBorderInteractiveFocus:"var(--purpur-color-purple-300)",colorBorderInteractiveSubtle:"var(--purpur-color-transparent-white-800)"}},g=p.createContext(void 0),V=({cssVariablesSelector:e,forceColorScheme:r,theme:o,children:c,...u})=>{const[t,n]=p.useState(r??"auto"),[l,i]=p.useState(r??"light");p.useEffect(()=>{if(r)n(r);else{const a=localStorage.getItem("colorScheme");a&&n(a)}},[r]),p.useEffect(()=>{const a=window.matchMedia("(prefers-color-scheme: dark)");i(t==="auto"?a.matches?"dark":"light":t);const s=d=>{!r&&t==="auto"&&i(d.matches?"dark":"light")};return a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}},[t,r]),p.useEffect(()=>{Object.entries((o==null?void 0:o[l])??Z[l]).forEach(([a,s])=>{((e?document.querySelector(e):null)??document.documentElement).style.setProperty(`--purpur-${k(a)}`,s)})},[o,e,r,l]);const B=a=>{r||(n(a),localStorage.setItem("colorScheme",a))};return v.jsx(g.Provider,{value:{colorScheme:t,setColorScheme:B},children:v.jsx("div",{className:t,...u,children:c})})},rr=()=>{const e=p.useContext(g);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},er=()=>{const{colorScheme:e,setColorScheme:r}=rr();return[e,r]};exports.ThemeProvider=V;exports.useColorScheme=er;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),p=require("react"),C={colorBrandDeepPurple:"var(--purpur-color-purple-100)",colorBrandCorePurple:"var(--purpur-color-purple-400)",colorBrandLightPurple:"var(--purpur-color-purple-900)",colorBrandDeepBeige:"var(--purpur-color-beige-100)",colorBrandBeige:"var(--purpur-color-beige-700)",colorBrandLightBeige:"var(--purpur-color-beige-800)",colorBrandOffBlack:"var(--purpur-color-functional-white)",colorBrandWhite:"var(--purpur-color-gray-900)",colorTextDefault:"var(--purpur-color-transparent-white-950)",colorTextMedium:"var(--purpur-color-transparent-white-700)",colorTextWeak:"var(--purpur-color-transparent-white-400)",colorTextDefaultNegative:"var(--purpur-color-transparent-black-800)",colorTextMediumNegative:"var(--purpur-color-transparent-black-500)",colorTextWeakNegative:"var(--purpur-color-transparent-black-400)",colorTextInteractivePrimary:"var(--purpur-color-purple-100)",colorTextInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorTextInteractivePrimaryActive:"var(--purpur-color-purple-300)",colorTextInteractiveOnPrimary:"var(--purpur-color-purple-800)",colorTextInteractiveOnExpressive:"var(--purpur-color-functional-white)",colorTextInteractiveOnExpressiveHover:"var(--purpur-color-purple-900)",colorTextInteractiveOnExpressiveActive:"var(--purpur-color-purple-900)",colorTextInteractiveOnDestructive:"var(--purpur-color-functional-white)",colorTextInteractiveSelected:"var(--purpur-color-purple-300)",colorTextInteractivePrimaryNegative:"var(--purpur-color-purple-700)",colorTextInteractivePrimaryHoverNegative:"var(--purpur-color-purple-800)",colorTextInteractivePrimaryActiveNegative:"var(--purpur-color-purple-900)",colorTextInteractiveOnPrimaryNegative:"var(--purpur-color-functional-white)",colorTextInteractiveOnExpressiveNegative:"var(--purpur-color-functional-white)",colorTextInteractiveOnExpressiveHoverNegative:"var(--purpur-color-functional-white)",colorTextInteractiveOnExpressiveActiveNegative:"var(--purpur-color-functional-white)",colorTextStatusInfoMedium:"var(--purpur-color-blue-400)",colorTextStatusInfoStrong:"var(--purpur-color-blue-200)",colorTextStatusSuccessMedium:"var(--purpur-color-green-400)",colorTextStatusSuccessStrong:"var(--purpur-color-green-200)",colorTextStatusWarningMedium:"var(--purpur-color-orange-300)",colorTextStatusWarningStrong:"var(--purpur-color-orange-200)",colorTextStatusErrorMedium:"var(--purpur-color-red-400)",colorTextStatusErrorStrong:"var(--purpur-color-red-200)",colorTextStatusNeutral:"var(--purpur-color-functional-white)",colorTextStatusSpecial:"var(--purpur-color-functional-white)",colorTextStatusAttention:"var(--purpur-color-purple-800)",colorTextStatusDiscount:"var(--purpur-color-purple-300)",colorTextStatusBlackFriday:"var(--purpur-color-gray-900)",colorTextStatusSuccessStrongNegative:"var(--purpur-color-green-700)",colorTextStatusErrorMediumNegative:"var(--purpur-color-red-500)",colorTextStatusErrorStrongNegative:"var(--purpur-color-red-700)",colorTextStatusWarningMediumNegative:"var(--purpur-color-orange-500)",colorTextToneOnTonePrimary:"var(--purpur-color-purple-900)",colorTextToneOnToneSecondary:"var(--purpur-color-purple-100)",colorTextToneOnToneTertiary:"var(--purpur-color-functional-white)",colorBackgroundPrimary:"var(--purpur-color-gray-950)",colorBackgroundSecondary:"var(--purpur-color-gray-900)",colorBackgroundOnImage:"var(--purpur-color-transparent-black-700)",colorBackgroundPrimaryNegative:"var(--purpur-color-functional-white)",colorBackgroundSecondaryNegative:"var(--purpur-color-gray-50)",colorBackgroundOnImageNegative:"var(--purpur-color-transparent-white-850)",colorBackgroundInteractivePrimary:"var(--purpur-color-purple-100)",colorBackgroundInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorBackgroundInteractivePrimaryActive:"var(--purpur-color-purple-300)",colorBackgroundInteractiveExpressive:"var(--purpur-color-purple-550)",colorBackgroundInteractiveExpressiveHover:"var(--purpur-color-purple-400)",colorBackgroundInteractiveExpressiveActive:"var(--purpur-color-purple-300)",colorBackgroundInteractiveTransparentHover:"var(--purpur-color-purple-800)",colorBackgroundInteractiveTransparentActive:"var(--purpur-color-purple-700)",colorBackgroundInteractiveDisabled:"var(--purpur-color-transparent-white-100)",colorBackgroundInteractiveReadOnly:"var(--purpur-color-transparent-white-50)",colorBackgroundInteractiveInactive:"var(--purpur-color-transparent-white-150)",colorBackgroundInteractiveDestructive:"var(--purpur-color-red-500)",colorBackgroundInteractiveDestructiveHover:"var(--purpur-color-red-600)",colorBackgroundInteractiveDestructiveActive:"var(--purpur-color-red-700)",colorBackgroundInteractiveAutoFill:"var(--purpur-color-blue-800)",colorBackgroundInteractivePrimaryNegative:"var(--purpur-color-purple-800)",colorBackgroundInteractivePrimaryHoverNegative:"var(--purpur-color-purple-700)",colorBackgroundInteractivePrimaryActiveNegative:"var(--purpur-color-purple-600)",colorBackgroundInteractiveExpressiveNegative:"var(--purpur-color-purple-550)",colorBackgroundInteractiveExpressiveHoverNegative:"var(--purpur-color-purple-700)",colorBackgroundInteractiveExpressiveActiveNegative:"var(--purpur-color-purple-800)",colorBackgroundInteractiveTransparentHoverNegative:"var(--purpur-color-purple-200)",colorBackgroundInteractiveTransparentActiveNegative:"var(--purpur-color-purple-300)",colorBackgroundInteractiveDisabledNegative:"var(--purpur-color-transparent-black-100)",colorBackgroundInteractiveInactiveNegative:"var(--purpur-color-transparent-black-50)",colorBackgroundInteractiveReadOnlyNegative:"var(--purpur-color-transparent-black-50)",colorBackgroundStatusInfoMedium:"var(--purpur-color-blue-800)",colorBackgroundStatusInfoStrong:"var(--purpur-color-blue-300)",colorBackgroundStatusSuccessMedium:"var(--purpur-color-green-800)",colorBackgroundStatusSuccessStrong:"var(--purpur-color-green-300)",colorBackgroundStatusWarningMedium:"var(--purpur-color-orange-800)",colorBackgroundStatusWarningStrong:"var(--purpur-color-orange-300)",colorBackgroundStatusErrorMedium:"var(--purpur-color-red-800)",colorBackgroundStatusErrorStrong:"var(--purpur-color-red-300)",colorBackgroundStatusNeutral:"var(--purpur-color-gray-800)",colorBackgroundStatusSpecial:"var(--purpur-color-purple-700)",colorBackgroundStatusAttention:"var(--purpur-color-purple-100)",colorBackgroundStatusBlackFriday:"var(--purpur-color-functional-white)",colorBackgroundStatusSuccessStrongNegative:"var(--purpur-color-green-400)",colorBackgroundStatusWarningStrongNegative:"var(--purpur-color-orange-300)",colorBackgroundStatusErrorStrongNegative:"var(--purpur-color-red-400)",colorBackgroundToneOnTonePrimary:"var(--purpur-color-purple-100)",colorBackgroundToneOnToneSecondary:"var(--purpur-color-purple-900)",colorBackgroundToneOnToneTertiary:"var(--purpur-color-beige-700)",colorBackgroundToneOnToneQuaternary:"var(--purpur-color-beige-800)",colorBorderWeak:"var(--purpur-color-transparent-white-150)",colorBorderMedium:"var(--purpur-color-transparent-white-300)",colorBorderStrong:"var(--purpur-color-transparent-white-500)",colorBorderWeakNegative:"var(--purpur-color-transparent-black-150)",colorBorderMediumNegative:"var(--purpur-color-transparent-black-300)",colorBorderStrongNegative:"var(--purpur-color-transparent-black-500)",colorBorderInteractivePrimary:"var(--purpur-color-purple-100)",colorBorderInteractivePrimaryHover:"var(--purpur-color-purple-200)",colorBorderInteractivePrimaryActive:"var(--purpur-color-purple-200)",colorBorderInteractiveFocus:"var(--purpur-color-purple-400)",colorBorderInteractiveExpressive:"var(--purpur-color-purple-550)",colorBorderInteractiveSubtle:"var(--purpur-color-transparent-white-400)",colorBorderInteractiveSubtleHover:"var(--purpur-color-purple-200)",colorBorderInteractiveSelected:"var(--purpur-color-purple-300)",colorBorderInteractivePrimaryNegative:"var(--purpur-color-purple-700)",colorBorderInteractivePrimaryHoverNegative:"var(--purpur-color-purple-800)",colorBorderInteractivePrimaryActiveNegative:"var(--purpur-color-purple-900)",colorBorderInteractiveSubtleNegative:"var(--purpur-color-transparent-black-400)",colorBorderInteractiveSubtleHoverNegative:"var(--purpur-color-purple-700)",colorBorderStatusError:"var(--purpur-color-red-400)",colorBorderStatusWarning:"var(--purpur-color-orange-300)",colorBorderStatusInfo:"var(--purpur-color-blue-400)",colorBorderStatusSuccess:"var(--purpur-color-green-400)",colorBorderStatusErrorNegative:"var(--purpur-color-red-500)",colorBorderStatusSuccessNegative:"var(--purpur-color-green-500)"},N="#29003e",y="#990ae3",P="#f4e0ff",b="#4f4741",E="#ede1d8",h="#f9f1ec",O="#1e1e20",A="#ffffff",H="rgba(0, 0, 0, 0.84)",M="rgba(0, 0, 0, 0.62)",w="rgba(0, 0, 0, 0.44)",W="rgba(255, 255, 255, 0.95)",D="rgba(255, 255, 255, 0.66)",L="rgba(255, 255, 255, 0.37)",R="#6d02a3",F="#4e0174",_="#29003e",U="#ffffff",j="#4e0174",Q="#f4e0ff",q="#e4b6fb",X="#e4b6fb",$="#ffffff",G="#ffffff",z="#ffffff",J="#29003e",K="#ffffff",Y="#29003e",Z="#ffffff",V="#990ae3",rr="#990ae3",or="#980233",er="#ff80ab",tr="#e4175c",ar="#fb4885",cr="#02562b",ur="#3dbf7c",nr="#018842",lr="#6a4102",pr="#a86602",ir="#f39200",vr="#014d80",sr="#0078cb",gr="rgba(0, 0, 0, 0.71)",dr="#4e0174",Br="#ffffff",Sr="#ffffff",Tr="#f4e0ff",fr="#29003e",Ir="#4f4741",kr="#ffffff",xr="#1f002e",mr="#f5f5fa",Cr="#29003e",Nr="rgba(255, 255, 255, 0.84)",yr="rgba(0, 0, 0, 0.71)",Pr="#e8f6ff",br="#4e0174",Er="#6d02a3",hr="#8c07d0",Or="#f4e0ff",Ar="#e4b6fb",Hr="#d58df9",Mr="#990ae3",wr="#6d02a3",Wr="#4e0174",Dr="#990ae3",Lr="#c461f7",Rr="#d58df9",Fr="rgba(0, 0, 0, 0.1)",_r="rgba(255, 255, 255, 0.11)",Ur="#f4e0ff",jr="#4e0174",Qr="#e4b6fb",qr="#6d02a3",Xr="rgba(0, 0, 0, 0.05)",$r="rgba(255, 255, 255, 0.16)",Gr="rgba(0, 0, 0, 0.05)",zr="rgba(255, 255, 255, 0.11)",Jr="#e4175c",Kr="#c00543",Yr="#980233",Zr="#caeaff",Vr="#3694d3",ro="#c5efd9",oo="#1fa15e",eo="#3dbf7c",to="#ffdde8",ao="#fb4885",co="#ff80ab",uo="#ffe1b3",no="#cc7a00",lo="#f39200",po="#d6d6dd",io="#f4e0ff",vo="#6d02a3",so="#1e1e20",go="#29003e",Bo="#f4e0ff",So="#ede1d8",To="#f9f1ec",fo="rgba(0, 0, 0, 0.33)",Io="rgba(255, 255, 255, 0.29)",ko="rgba(0, 0, 0, 0.54)",xo="rgba(255, 255, 255, 0.46)",mo="rgba(0, 0, 0, 0.16)",Co="rgba(255, 255, 255, 0.16)",No="#b12df4",yo="#6d02a3",Po="#f4e0ff",bo="#4e0174",Eo="#29003e",ho="#e4b6fb",Oo="#e4b6fb",Ao="#990ae3",Ho="#990ae3",Mo="rgba(0, 0, 0, 0.44)",wo="rgba(255, 255, 255, 0.46)",Wo="#6d02a3",Do="#c461f7",Lo="#e4175c",Ro="#fb4885",Fo="#cc7a00",_o="#0078cb",Uo="#018842",jo="#1fa15e",Qo={colorBrandDeepPurple:N,colorBrandCorePurple:y,colorBrandLightPurple:P,colorBrandDeepBeige:b,colorBrandBeige:E,colorBrandLightBeige:h,colorBrandOffBlack:O,colorBrandWhite:A,colorTextDefault:H,colorTextMedium:M,colorTextWeak:w,colorTextDefaultNegative:W,colorTextMediumNegative:D,colorTextWeakNegative:L,colorTextInteractivePrimary:R,colorTextInteractivePrimaryHover:F,colorTextInteractivePrimaryActive:_,colorTextInteractiveOnPrimary:U,colorTextInteractiveOnExpressive:$,colorTextInteractiveOnExpressiveHover:z,colorTextInteractiveOnExpressiveActive:K,colorTextInteractiveOnDestructive:Z,colorTextInteractiveSelected:V,colorTextInteractivePrimaryNegative:Q,colorTextInteractivePrimaryHoverNegative:q,colorTextInteractivePrimaryActiveNegative:X,colorTextInteractiveOnPrimaryNegative:j,colorTextInteractiveOnExpressiveNegative:G,colorTextInteractiveOnExpressiveHoverNegative:J,colorTextInteractiveOnExpressiveActiveNegative:Y,colorTextStatusInfoMedium:sr,colorTextStatusInfoStrong:vr,colorTextStatusSuccessMedium:nr,colorTextStatusSuccessStrong:cr,colorTextStatusWarningMedium:pr,colorTextStatusWarningStrong:lr,colorTextStatusErrorMedium:tr,colorTextStatusErrorStrong:or,colorTextStatusNeutral:gr,colorTextStatusSpecial:dr,colorTextStatusAttention:Br,colorTextStatusDiscount:rr,colorTextStatusBlackFriday:Sr,colorTextStatusSuccessStrongNegative:ur,colorTextStatusErrorMediumNegative:ar,colorTextStatusErrorStrongNegative:er,colorTextStatusWarningMediumNegative:ir,colorTextToneOnTonePrimary:Tr,colorTextToneOnToneSecondary:fr,colorTextToneOnToneTertiary:Ir,colorBackgroundPrimary:kr,colorBackgroundSecondary:mr,colorBackgroundOnImage:Nr,colorBackgroundPrimaryNegative:xr,colorBackgroundSecondaryNegative:Cr,colorBackgroundOnImageNegative:yr,colorBackgroundInteractivePrimary:br,colorBackgroundInteractivePrimaryHover:Er,colorBackgroundInteractivePrimaryActive:hr,colorBackgroundInteractiveExpressive:Mr,colorBackgroundInteractiveExpressiveHover:wr,colorBackgroundInteractiveExpressiveActive:Wr,colorBackgroundInteractiveTransparentHover:Ur,colorBackgroundInteractiveTransparentActive:Qr,colorBackgroundInteractiveDisabled:Fr,colorBackgroundInteractiveReadOnly:Gr,colorBackgroundInteractiveInactive:Xr,colorBackgroundInteractiveDestructive:Jr,colorBackgroundInteractiveDestructiveHover:Kr,colorBackgroundInteractiveDestructiveActive:Yr,colorBackgroundInteractiveAutoFill:Pr,colorBackgroundInteractivePrimaryNegative:Or,colorBackgroundInteractivePrimaryHoverNegative:Ar,colorBackgroundInteractivePrimaryActiveNegative:Hr,colorBackgroundInteractiveExpressiveNegative:Dr,colorBackgroundInteractiveExpressiveHoverNegative:Lr,colorBackgroundInteractiveExpressiveActiveNegative:Rr,colorBackgroundInteractiveTransparentHoverNegative:jr,colorBackgroundInteractiveTransparentActiveNegative:qr,colorBackgroundInteractiveDisabledNegative:_r,colorBackgroundInteractiveInactiveNegative:$r,colorBackgroundInteractiveReadOnlyNegative:zr,colorBackgroundStatusInfoMedium:Zr,colorBackgroundStatusInfoStrong:Vr,colorBackgroundStatusSuccessMedium:ro,colorBackgroundStatusSuccessStrong:oo,colorBackgroundStatusWarningMedium:uo,colorBackgroundStatusWarningStrong:no,colorBackgroundStatusErrorMedium:to,colorBackgroundStatusErrorStrong:ao,colorBackgroundStatusNeutral:po,colorBackgroundStatusSpecial:io,colorBackgroundStatusAttention:vo,colorBackgroundStatusBlackFriday:so,colorBackgroundStatusSuccessStrongNegative:eo,colorBackgroundStatusWarningStrongNegative:lo,colorBackgroundStatusErrorStrongNegative:co,colorBackgroundToneOnTonePrimary:go,colorBackgroundToneOnToneSecondary:Bo,colorBackgroundToneOnToneTertiary:So,colorBackgroundToneOnToneQuaternary:To,colorBorderWeak:mo,colorBorderMedium:fo,colorBorderStrong:ko,colorBorderWeakNegative:Co,colorBorderMediumNegative:Io,colorBorderStrongNegative:xo,colorBorderInteractivePrimary:yo,colorBorderInteractivePrimaryHover:bo,colorBorderInteractivePrimaryActive:Eo,colorBorderInteractiveFocus:No,colorBorderInteractiveExpressive:Ao,colorBorderInteractiveSubtle:Mo,colorBorderInteractiveSubtleHover:Wo,colorBorderInteractiveSelected:Ho,colorBorderInteractivePrimaryNegative:Po,colorBorderInteractivePrimaryHoverNegative:ho,colorBorderInteractivePrimaryActiveNegative:Oo,colorBorderInteractiveSubtleNegative:wo,colorBorderInteractiveSubtleHoverNegative:Do,colorBorderStatusError:Lo,colorBorderStatusWarning:Fo,colorBorderStatusInfo:_o,colorBorderStatusSuccess:Uo,colorBorderStatusErrorNegative:Ro,colorBorderStatusSuccessNegative:jo},s={light:Qo,dark:C},qo=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Xo=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),$o=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Go=/[^\p{L}\d]+/giu,B="$1\0$2",S="";function T(o){let r=o.trim();r=r.replace(qo,B).replace(Xo,B),r=r.replace(Go,"\0");let e=0,t=r.length;for(;r.charAt(e)==="\0";)e++;if(e===t)return[];for(;r.charAt(t-1)==="\0";)t--;return r.slice(e,t).split(/\0/g)}function zo(o){const r=T(o);for(let e=0;e<r.length;e++){const t=r[e],a=$o.exec(t);if(a){const c=a.index+(a[1]??a[2]).length;r.splice(e,1,t.slice(0,c),t.slice(c))}}return r}function Jo(o,r){const[e,t,a]=Zo(o,r);return e+t.map(Yo(r==null?void 0:r.locale)).join((r==null?void 0:r.delimiter)??" ")+a}function Ko(o,r){return Jo(o,{delimiter:"-",...r})}function Yo(o){return o===!1?r=>r.toLowerCase():r=>r.toLocaleLowerCase(o)}function Zo(o,r={}){const e=r.split??(r.separateNumbers?zo:T),t=r.prefixCharacters??S,a=r.suffixCharacters??S;let c=0,u=o.length;for(;c<o.length;){const l=o.charAt(c);if(!t.includes(l))break;c++}for(;u>c;){const l=u-1,i=o.charAt(l);if(!a.includes(i))break;u=l}return[o.slice(0,c),e(o.slice(c,u)),o.slice(u)]}const f=({theme:o=s,cssVariablesSelector:r,currentColorScheme:e})=>{p.useEffect(()=>{e&&Object.entries((o==null?void 0:o[e])??s[e]).forEach(([t,a])=>{((r?document.querySelector(r):null)??document.documentElement).style.setProperty(`--purpur-${Ko(t)}`,a)})},[o,r,e])},I=p.createContext(void 0),Vo=({cssVariablesSelector:o,forceColorScheme:r,theme:e,children:t,options:a={},...c})=>{const[u,l]=p.useState(r??"auto"),[i,v]=p.useState(r??"light");p.useEffect(()=>{if(r)l(r);else{const n=localStorage.getItem("colorScheme");n&&l(n)}},[r]),p.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");v(u==="auto"?n.matches?"dark":"light":u);const g=m=>{!r&&u==="auto"&&v(m.matches?"dark":"light")};return n.addEventListener("change",g),()=>{n.removeEventListener("change",g)}},[u,r]),f({theme:e,cssVariablesSelector:o,currentColorScheme:i});const x=n=>{r||(l(n),localStorage.setItem("colorScheme",n))};return d.jsx(I.Provider,{value:{colorScheme:u,setColorScheme:x,options:a},children:d.jsx("div",{className:u,...c,children:t})})},k=()=>{const o=p.useContext(I);if(!o)throw new Error("useTheme must be used within a ThemeProvider");return o},re=()=>{const{colorScheme:o,setColorScheme:r}=k();return[o,r]};exports.ThemeProvider=Vo;exports.teliaTheme=s;exports.useApplyTheme=f;exports.useColorScheme=re;exports.useTheme=k;
|
|
2
2
|
//# sourceMappingURL=theme.cjs.js.map
|