@uni-design-system/uni-core 2.0.2 → 2.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/README.md +32 -0
- package/dist/cjs/index.cjs +870 -494
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +867 -494
- package/dist/esm/index.js.map +1 -1
- package/dist/types/concepts/animation/index.d.ts +2 -0
- package/dist/types/concepts/animation/index.d.ts.map +1 -0
- package/dist/types/concepts/animation/keyframes.constants.d.ts +26 -0
- package/dist/types/concepts/animation/keyframes.constants.d.ts.map +1 -0
- package/dist/types/concepts/component/component.types.d.ts +1 -2
- package/dist/types/concepts/component/component.types.d.ts.map +1 -1
- package/dist/types/concepts/index.d.ts +7 -4
- package/dist/types/concepts/index.d.ts.map +1 -1
- package/dist/types/concepts/layout/layout.model.d.ts +1 -1
- package/dist/types/concepts/layout/layout.model.d.ts.map +1 -1
- package/dist/types/concepts/layout/layout.types.d.ts +3 -0
- package/dist/types/concepts/layout/layout.types.d.ts.map +1 -1
- package/dist/types/concepts/style/index.d.ts +2 -0
- package/dist/types/concepts/style/index.d.ts.map +1 -0
- package/dist/types/concepts/style/style.types.d.ts +3 -0
- package/dist/types/concepts/style/style.types.d.ts.map +1 -0
- package/dist/types/concepts/theme/palettes/theme.palette.d.ts +23 -0
- package/dist/types/concepts/theme/palettes/theme.palette.d.ts.map +1 -0
- package/dist/types/concepts/theme/themes/base.theme.d.ts +0 -16
- package/dist/types/concepts/theme/themes/base.theme.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,459 +1,55 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region src/concepts/
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tertiary: "#ff9f00",
|
|
7
|
-
quaternary: "#4d4d4d",
|
|
8
|
-
warn: "#ff3300",
|
|
9
|
-
success: "#00b034",
|
|
10
|
-
light: "#b3b3b3",
|
|
11
|
-
onLight: "#4d4d4d",
|
|
12
|
-
onLightVariant: "rgba(0,0,0,0.4)",
|
|
13
|
-
dark: "#4d4d4d",
|
|
14
|
-
onDark: "rgba(255,255,255,0.8)",
|
|
15
|
-
background: "#fff",
|
|
16
|
-
disabled: "rgba(0,0,0,0.12)",
|
|
17
|
-
onDisabled: "rgba(0,0,0,0.5)"
|
|
2
|
+
//#region src/concepts/animation/keyframes.constants.ts
|
|
3
|
+
var fadeIn = {
|
|
4
|
+
"0%": { opacity: 0 },
|
|
5
|
+
"100%": { opacity: 1 }
|
|
18
6
|
};
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
md: 12,
|
|
28
|
-
lg: 16,
|
|
29
|
-
xl: 20,
|
|
30
|
-
xxl: 24
|
|
7
|
+
var fadeOut = {
|
|
8
|
+
"0%": { opacity: 1 },
|
|
9
|
+
"100%": { opacity: 0 }
|
|
10
|
+
};
|
|
11
|
+
var expandFadeIn = {
|
|
12
|
+
"0%": {
|
|
13
|
+
gridTemplateRows: "0fr",
|
|
14
|
+
opacity: 0
|
|
31
15
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
sm: 12,
|
|
36
|
-
md: 18,
|
|
37
|
-
lg: 24,
|
|
38
|
-
xl: 30,
|
|
39
|
-
xxl: 36
|
|
16
|
+
"100%": {
|
|
17
|
+
gridTemplateRows: "1fr",
|
|
18
|
+
opacity: 1
|
|
40
19
|
}
|
|
41
20
|
};
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
xxs: 4,
|
|
47
|
-
xs: 8,
|
|
48
|
-
sm: 12,
|
|
49
|
-
md: 16,
|
|
50
|
-
lg: 20,
|
|
51
|
-
xl: 24,
|
|
52
|
-
xxl: 28
|
|
53
|
-
},
|
|
54
|
-
horizontalPadding: {
|
|
55
|
-
xxs: 6,
|
|
56
|
-
xs: 12,
|
|
57
|
-
sm: 18,
|
|
58
|
-
md: 24,
|
|
59
|
-
lg: 30,
|
|
60
|
-
xl: 36,
|
|
61
|
-
xxl: 42
|
|
21
|
+
var collapseFadeOut = {
|
|
22
|
+
"0%": {
|
|
23
|
+
gridTemplateRows: "1fr",
|
|
24
|
+
opacity: 1
|
|
62
25
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
sm: 12,
|
|
67
|
-
md: 16,
|
|
68
|
-
lg: 20,
|
|
69
|
-
xl: 24,
|
|
70
|
-
xxl: 28
|
|
26
|
+
"100%": {
|
|
27
|
+
gridTemplateRows: "0fr",
|
|
28
|
+
opacity: 0
|
|
71
29
|
}
|
|
72
30
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"primary-container": "#EADDFF",
|
|
80
|
-
"on-primary-container": "#21005E",
|
|
81
|
-
secondary: "#625B71",
|
|
82
|
-
"on-secondary": "#FFFFFF",
|
|
83
|
-
"secondary-container": "#E8DEF8",
|
|
84
|
-
"on-secondary-container": "#1E192B",
|
|
85
|
-
tertiary: "#7D5260",
|
|
86
|
-
"on-tertiary": "#FFFFFF",
|
|
87
|
-
"tertiary-container": "#FFD8E4",
|
|
88
|
-
"on-tertiary-container": "#370B1E",
|
|
89
|
-
error: "#B3261E",
|
|
90
|
-
"on-error": "#FFFFFF",
|
|
91
|
-
"error-container": "#F9DEDC",
|
|
92
|
-
"on-error-container": "#370B1E",
|
|
93
|
-
background: "#FFFBFE",
|
|
94
|
-
"on-background": "#1C1B1F",
|
|
95
|
-
surface: "#FFFBFE",
|
|
96
|
-
"on-surface": "#1C1B1F",
|
|
97
|
-
"surface-variant": "#E7E0EC",
|
|
98
|
-
"on-surface-variant": "#49454E",
|
|
99
|
-
outline: "#79747E",
|
|
100
|
-
shadow: "#000000",
|
|
101
|
-
"surface-tint": "#6750A4",
|
|
102
|
-
"inverse-surface": "#313033",
|
|
103
|
-
"on-inverse-surface": "#F4EFF4",
|
|
104
|
-
"on-inverse-surface-primary": "#D0BCFF",
|
|
105
|
-
scrim: "#000000",
|
|
106
|
-
transparent: "rgba(0,0,0,0)"
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/concepts/color/color.records.ts
|
|
33
|
+
var CategorySaturation = {
|
|
34
|
+
jewel: {
|
|
35
|
+
low: 73,
|
|
36
|
+
high: 83
|
|
107
37
|
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
fontSize: 57,
|
|
112
|
-
lineHeight: 64,
|
|
113
|
-
fontWeight: "normal",
|
|
114
|
-
letterSpacing: -.25
|
|
115
|
-
},
|
|
116
|
-
"display-medium": {
|
|
117
|
-
fontFamily: "Red Hat Display",
|
|
118
|
-
fontSize: 45,
|
|
119
|
-
lineHeight: 52,
|
|
120
|
-
fontWeight: "normal"
|
|
121
|
-
},
|
|
122
|
-
"display-small": {
|
|
123
|
-
fontFamily: "Red Hat Display",
|
|
124
|
-
fontSize: 36,
|
|
125
|
-
lineHeight: 44,
|
|
126
|
-
fontWeight: "normal"
|
|
127
|
-
},
|
|
128
|
-
"headline-large": {
|
|
129
|
-
fontFamily: "Red Hat Display",
|
|
130
|
-
fontSize: 32,
|
|
131
|
-
lineHeight: 40,
|
|
132
|
-
fontWeight: "normal"
|
|
133
|
-
},
|
|
134
|
-
"headline-medium": {
|
|
135
|
-
fontFamily: "Red Hat Display",
|
|
136
|
-
fontSize: 28,
|
|
137
|
-
lineHeight: 36,
|
|
138
|
-
fontWeight: "normal"
|
|
139
|
-
},
|
|
140
|
-
"headline-small": {
|
|
141
|
-
fontFamily: "Red Hat Display",
|
|
142
|
-
fontSize: 24,
|
|
143
|
-
lineHeight: 32,
|
|
144
|
-
fontWeight: "normal"
|
|
145
|
-
},
|
|
146
|
-
"title-large": {
|
|
147
|
-
fontFamily: "Red Hat Display",
|
|
148
|
-
fontSize: 22,
|
|
149
|
-
lineHeight: 28,
|
|
150
|
-
fontWeight: "normal"
|
|
151
|
-
},
|
|
152
|
-
"title-medium": {
|
|
153
|
-
fontFamily: "Red Hat Display",
|
|
154
|
-
fontSize: 16,
|
|
155
|
-
lineHeight: 24,
|
|
156
|
-
fontWeight: "medium",
|
|
157
|
-
letterSpacing: .15
|
|
158
|
-
},
|
|
159
|
-
"title-small": {
|
|
160
|
-
fontFamily: "Red Hat Display",
|
|
161
|
-
fontWeight: "medium",
|
|
162
|
-
fontSize: 14,
|
|
163
|
-
lineHeight: 20,
|
|
164
|
-
letterSpacing: .1
|
|
165
|
-
},
|
|
166
|
-
"body-1-long": {
|
|
167
|
-
fontFamily: "Roboto",
|
|
168
|
-
fontSize: 16,
|
|
169
|
-
lineHeight: 22
|
|
170
|
-
},
|
|
171
|
-
"body-1-short": {
|
|
172
|
-
fontFamily: "Roboto",
|
|
173
|
-
fontSize: 16,
|
|
174
|
-
lineHeight: 24
|
|
175
|
-
},
|
|
176
|
-
"body-2-long": {
|
|
177
|
-
fontFamily: "Roboto",
|
|
178
|
-
fontSize: 14,
|
|
179
|
-
lineHeight: 18
|
|
180
|
-
},
|
|
181
|
-
"body-2-short": {
|
|
182
|
-
fontFamily: "Roboto",
|
|
183
|
-
fontSize: 14,
|
|
184
|
-
lineHeight: 20
|
|
185
|
-
},
|
|
186
|
-
"subtitle-1": {
|
|
187
|
-
fontFamily: "Red Hat Display",
|
|
188
|
-
fontSize: 16,
|
|
189
|
-
lineHeight: 24,
|
|
190
|
-
letterSpacing: .15
|
|
191
|
-
},
|
|
192
|
-
"subtitle-2": {
|
|
193
|
-
fontFamily: "Red Hat Display",
|
|
194
|
-
fontSize: 14,
|
|
195
|
-
lineHeight: 20,
|
|
196
|
-
fontWeight: "medium",
|
|
197
|
-
letterSpacing: .1
|
|
198
|
-
},
|
|
199
|
-
label: {
|
|
200
|
-
fontFamily: "Roboto",
|
|
201
|
-
fontSize: 14,
|
|
202
|
-
lineHeight: 20
|
|
203
|
-
},
|
|
204
|
-
button: {
|
|
205
|
-
fontFamily: "Red Hat Display",
|
|
206
|
-
fontSize: 14,
|
|
207
|
-
lineHeight: 20,
|
|
208
|
-
fontWeight: "medium",
|
|
209
|
-
textTransform: "capitalize"
|
|
210
|
-
},
|
|
211
|
-
caption: {
|
|
212
|
-
fontFamily: "Roboto",
|
|
213
|
-
fontSize: 12,
|
|
214
|
-
lineHeight: 18,
|
|
215
|
-
letterSpacing: .4
|
|
216
|
-
},
|
|
217
|
-
overline: {
|
|
218
|
-
fontFamily: "Red Hat Display",
|
|
219
|
-
fontSize: 10,
|
|
220
|
-
lineHeight: 18,
|
|
221
|
-
letterSpacing: 1.5,
|
|
222
|
-
textTransform: "uppercase"
|
|
223
|
-
},
|
|
224
|
-
paragraph: {
|
|
225
|
-
fontFamily: "Roboto",
|
|
226
|
-
fontSize: 16,
|
|
227
|
-
lineHeight: 24
|
|
228
|
-
},
|
|
229
|
-
quote: {
|
|
230
|
-
fontFamily: "Roboto",
|
|
231
|
-
fontSize: 16,
|
|
232
|
-
lineHeight: 24
|
|
233
|
-
},
|
|
234
|
-
note: {
|
|
235
|
-
fontFamily: "Roboto",
|
|
236
|
-
fontSize: 14,
|
|
237
|
-
lineHeight: 22,
|
|
238
|
-
fontStyle: "italic"
|
|
239
|
-
}
|
|
38
|
+
pastel: {
|
|
39
|
+
low: 14,
|
|
40
|
+
high: 21
|
|
240
41
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
tertiary: `1px solid ${palette.tertiary}`,
|
|
245
|
-
quaternary: `1px solid ${palette.quaternary}`,
|
|
246
|
-
warn: `1px solid ${palette.warn}`,
|
|
247
|
-
success: `1px solid ${palette.secondary}`,
|
|
248
|
-
light: `1px solid ${palette.light}`,
|
|
249
|
-
dark: `1px solid ${palette.dark}`,
|
|
250
|
-
dotted: `1px dotted ${palette.dark}`
|
|
251
|
-
},
|
|
252
|
-
components: {},
|
|
253
|
-
shadows: {
|
|
254
|
-
raised: "rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px",
|
|
255
|
-
menu: "rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;",
|
|
256
|
-
dialog: "rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px",
|
|
257
|
-
warn: "0 0 5px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3)"
|
|
42
|
+
earth: {
|
|
43
|
+
low: 36,
|
|
44
|
+
high: 41
|
|
258
45
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
xs: "4px",
|
|
263
|
-
sm: "8px",
|
|
264
|
-
md: "16px",
|
|
265
|
-
lg: "32px",
|
|
266
|
-
xl: "64px"
|
|
46
|
+
neutral: {
|
|
47
|
+
low: 1,
|
|
48
|
+
high: 10
|
|
267
49
|
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
thick: 4
|
|
272
|
-
},
|
|
273
|
-
radii: {
|
|
274
|
-
none: "none",
|
|
275
|
-
xxs: "4px",
|
|
276
|
-
xs: "8px",
|
|
277
|
-
sm: "16px",
|
|
278
|
-
md: "24px",
|
|
279
|
-
lg: "32px",
|
|
280
|
-
max: "999px"
|
|
281
|
-
},
|
|
282
|
-
buttons: {
|
|
283
|
-
elevated: {
|
|
284
|
-
...BaseButton,
|
|
285
|
-
color: "surface",
|
|
286
|
-
contentColor: "on-surface",
|
|
287
|
-
shadowElevation: "raised"
|
|
288
|
-
},
|
|
289
|
-
filled: {
|
|
290
|
-
...BaseButton,
|
|
291
|
-
color: "primary"
|
|
292
|
-
},
|
|
293
|
-
"filled-secondary": {
|
|
294
|
-
...BaseButton,
|
|
295
|
-
color: "secondary",
|
|
296
|
-
contentColor: "on-secondary"
|
|
297
|
-
},
|
|
298
|
-
outlined: {
|
|
299
|
-
...BaseButton,
|
|
300
|
-
color: "transparent",
|
|
301
|
-
borderColor: "primary",
|
|
302
|
-
contentColor: "on-primary",
|
|
303
|
-
borderWidth: 1
|
|
304
|
-
},
|
|
305
|
-
text: {
|
|
306
|
-
...BaseButton,
|
|
307
|
-
color: "transparent",
|
|
308
|
-
contentColor: "on-surface"
|
|
309
|
-
},
|
|
310
|
-
icon: {
|
|
311
|
-
...BaseButton,
|
|
312
|
-
color: "transparent",
|
|
313
|
-
contentColor: "on-surface",
|
|
314
|
-
horizontalPadding: BaseButton.verticalPadding
|
|
315
|
-
},
|
|
316
|
-
"floating-action": {
|
|
317
|
-
...BaseButton,
|
|
318
|
-
color: "secondary",
|
|
319
|
-
contentColor: "on-secondary",
|
|
320
|
-
borderRadii: {
|
|
321
|
-
xxs: 3,
|
|
322
|
-
xs: 5,
|
|
323
|
-
sm: 8,
|
|
324
|
-
md: 12,
|
|
325
|
-
lg: 16,
|
|
326
|
-
xl: 12,
|
|
327
|
-
xxl: 20
|
|
328
|
-
},
|
|
329
|
-
shadowElevation: "navigation",
|
|
330
|
-
verticalPadding: {
|
|
331
|
-
xxs: 4,
|
|
332
|
-
xs: 8,
|
|
333
|
-
sm: 12,
|
|
334
|
-
md: 18,
|
|
335
|
-
lg: 24,
|
|
336
|
-
xl: 30,
|
|
337
|
-
xxl: 36
|
|
338
|
-
},
|
|
339
|
-
horizontalPadding: {
|
|
340
|
-
xxs: 4,
|
|
341
|
-
xs: 8,
|
|
342
|
-
sm: 12,
|
|
343
|
-
md: 18,
|
|
344
|
-
lg: 24,
|
|
345
|
-
xl: 30,
|
|
346
|
-
xxl: 36
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
containers: {
|
|
351
|
-
card: {
|
|
352
|
-
...BaseContainer,
|
|
353
|
-
color: "surface",
|
|
354
|
-
contentColor: "on-surface",
|
|
355
|
-
shadowMode: "interactive"
|
|
356
|
-
},
|
|
357
|
-
screen: {
|
|
358
|
-
...BaseContainer,
|
|
359
|
-
color: "background",
|
|
360
|
-
contentColor: "on-background"
|
|
361
|
-
},
|
|
362
|
-
modal: {
|
|
363
|
-
...BaseContainer,
|
|
364
|
-
borderRadii: {
|
|
365
|
-
xxs: 8,
|
|
366
|
-
xs: 16,
|
|
367
|
-
sm: 22,
|
|
368
|
-
md: 28,
|
|
369
|
-
lg: 32,
|
|
370
|
-
xl: 38,
|
|
371
|
-
xxl: 44
|
|
372
|
-
},
|
|
373
|
-
color: "surface",
|
|
374
|
-
contentColor: "on-surface",
|
|
375
|
-
shadowMode: "static",
|
|
376
|
-
shadowElevation: "modal",
|
|
377
|
-
maxWidth: 560
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
typefaces: {},
|
|
381
|
-
icons: {}
|
|
382
|
-
};
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/concepts/theme/themes/dark.theme.ts
|
|
385
|
-
var DarkTheme = {
|
|
386
|
-
...BaseTheme,
|
|
387
|
-
id: "DarkTheme",
|
|
388
|
-
name: "Dark Theme",
|
|
389
|
-
colors: {
|
|
390
|
-
primary: "#D0BCFF",
|
|
391
|
-
"on-primary": "#371E73",
|
|
392
|
-
"primary-container": "#4F378B",
|
|
393
|
-
"on-primary-container": "#EADDFF",
|
|
394
|
-
secondary: "#CCC2DC",
|
|
395
|
-
"on-secondary": "#332D41",
|
|
396
|
-
"secondary-container": "#4A4458",
|
|
397
|
-
"on-secondary-container": "#E8DEF8",
|
|
398
|
-
tertiary: "#EFB8C8",
|
|
399
|
-
"on-tertiary": "#492532",
|
|
400
|
-
"tertiary-container": "#633B48",
|
|
401
|
-
"on-tertiary-container": "#FFD8E4",
|
|
402
|
-
error: "#F2B8B5",
|
|
403
|
-
"on-error": "#601410",
|
|
404
|
-
"error-container": "#8C1D18",
|
|
405
|
-
"on-error-container": "#F9DEDC",
|
|
406
|
-
background: "#1C1B1F",
|
|
407
|
-
"on-background": "#E6E1E5",
|
|
408
|
-
surface: "#1C1B1F",
|
|
409
|
-
"on-surface": "#E6E1E5",
|
|
410
|
-
"surface-variant": "#49454F",
|
|
411
|
-
"on-surface-variant": "#CAC4D0",
|
|
412
|
-
outline: "#938F99",
|
|
413
|
-
shadow: "#000000",
|
|
414
|
-
"surface-tint": "#D0BCFF",
|
|
415
|
-
"inverse-surface": "#E6E1E5",
|
|
416
|
-
"inverse-on-surface": "#313033",
|
|
417
|
-
"inverse-on-surface-primary": "#6750A4",
|
|
418
|
-
transparent: "rgba(0,0,0,0)"
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
//#endregion
|
|
422
|
-
//#region src/concepts/theme/themes/light.theme.ts
|
|
423
|
-
var LightTheme = {
|
|
424
|
-
...BaseTheme,
|
|
425
|
-
id: "LightTheme",
|
|
426
|
-
name: "Light Theme"
|
|
427
|
-
};
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region src/concepts/theme/theme.records.ts
|
|
430
|
-
var UniThemes = {
|
|
431
|
-
LightTheme,
|
|
432
|
-
DarkTheme
|
|
433
|
-
};
|
|
434
|
-
var DefaultThemeId = Object.keys(UniThemes)[0];
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region src/concepts/color/color.records.ts
|
|
437
|
-
var CategorySaturation = {
|
|
438
|
-
jewel: {
|
|
439
|
-
low: 73,
|
|
440
|
-
high: 83
|
|
441
|
-
},
|
|
442
|
-
pastel: {
|
|
443
|
-
low: 14,
|
|
444
|
-
high: 21
|
|
445
|
-
},
|
|
446
|
-
earth: {
|
|
447
|
-
low: 36,
|
|
448
|
-
high: 41
|
|
449
|
-
},
|
|
450
|
-
neutral: {
|
|
451
|
-
low: 1,
|
|
452
|
-
high: 10
|
|
453
|
-
},
|
|
454
|
-
florescent: {
|
|
455
|
-
low: 63,
|
|
456
|
-
high: 100
|
|
50
|
+
florescent: {
|
|
51
|
+
low: 63,
|
|
52
|
+
high: 100
|
|
457
53
|
},
|
|
458
54
|
shades: {
|
|
459
55
|
low: 0,
|
|
@@ -627,68 +223,845 @@ var ShadowMap = {
|
|
|
627
223
|
blur: 2,
|
|
628
224
|
opacity: 24
|
|
629
225
|
},
|
|
630
|
-
penumbra: {
|
|
631
|
-
offset: 1,
|
|
632
|
-
blur: 3,
|
|
633
|
-
opacity: 12
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
raised: {
|
|
637
|
-
umbra: {
|
|
638
|
-
offset: 3,
|
|
639
|
-
blur: 6,
|
|
640
|
-
opacity: 23
|
|
226
|
+
penumbra: {
|
|
227
|
+
offset: 1,
|
|
228
|
+
blur: 3,
|
|
229
|
+
opacity: 12
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
raised: {
|
|
233
|
+
umbra: {
|
|
234
|
+
offset: 3,
|
|
235
|
+
blur: 6,
|
|
236
|
+
opacity: 23
|
|
237
|
+
},
|
|
238
|
+
penumbra: {
|
|
239
|
+
offset: 3,
|
|
240
|
+
blur: 6,
|
|
241
|
+
opacity: 16
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
focussed: {
|
|
245
|
+
umbra: {
|
|
246
|
+
offset: 6,
|
|
247
|
+
blur: 6,
|
|
248
|
+
opacity: 23
|
|
249
|
+
},
|
|
250
|
+
penumbra: {
|
|
251
|
+
offset: 10,
|
|
252
|
+
blur: 20,
|
|
253
|
+
opacity: 19
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
navigation: {
|
|
257
|
+
umbra: {
|
|
258
|
+
offset: 10,
|
|
259
|
+
blur: 10,
|
|
260
|
+
opacity: 22
|
|
261
|
+
},
|
|
262
|
+
penumbra: {
|
|
263
|
+
offset: 14,
|
|
264
|
+
blur: 28,
|
|
265
|
+
opacity: 25
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
modal: {
|
|
269
|
+
umbra: {
|
|
270
|
+
offset: 15,
|
|
271
|
+
blur: 12,
|
|
272
|
+
opacity: 22
|
|
273
|
+
},
|
|
274
|
+
penumbra: {
|
|
275
|
+
offset: 19,
|
|
276
|
+
blur: 38,
|
|
277
|
+
opacity: 30
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
var ShadowCssMap = {
|
|
282
|
+
pressed: GetBoxShadows(ShadowMap["pressed"]),
|
|
283
|
+
raised: GetBoxShadows(ShadowMap["raised"]),
|
|
284
|
+
focussed: GetBoxShadows(ShadowMap["focussed"]),
|
|
285
|
+
navigation: GetBoxShadows(ShadowMap["navigation"]),
|
|
286
|
+
modal: GetBoxShadows(ShadowMap["modal"])
|
|
287
|
+
};
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/concepts/theme/palettes/theme.palette.ts
|
|
290
|
+
var genericLightTheme = {
|
|
291
|
+
primary: "#0066B2",
|
|
292
|
+
secondary: "#008528",
|
|
293
|
+
tertiary: "#D97706",
|
|
294
|
+
quaternary: "#52525B",
|
|
295
|
+
warn: "#DC2626",
|
|
296
|
+
success: "#008528",
|
|
297
|
+
light: "#F4F4F5",
|
|
298
|
+
onLight: "#18181B",
|
|
299
|
+
onLightVariant: "rgba(24, 24, 27, 0.6)",
|
|
300
|
+
dark: "#18181B",
|
|
301
|
+
onDark: "rgba(255, 255, 255, 0.85)",
|
|
302
|
+
background: "#FFFFFF",
|
|
303
|
+
disabled: "rgba(24, 24, 27, 0.08)",
|
|
304
|
+
onDisabled: "rgba(24, 24, 27, 0.4)"
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/concepts/theme/themes/base.theme.ts
|
|
308
|
+
var BaseButton = {
|
|
309
|
+
borderRadius: 100,
|
|
310
|
+
color: "primary-container",
|
|
311
|
+
contentColor: "on-primary-container",
|
|
312
|
+
verticalPadding: {
|
|
313
|
+
xxs: 2,
|
|
314
|
+
xs: 5,
|
|
315
|
+
sm: 8,
|
|
316
|
+
md: 12,
|
|
317
|
+
lg: 16,
|
|
318
|
+
xl: 20,
|
|
319
|
+
xxl: 24
|
|
320
|
+
},
|
|
321
|
+
horizontalPadding: {
|
|
322
|
+
xxs: 4,
|
|
323
|
+
xs: 8,
|
|
324
|
+
sm: 12,
|
|
325
|
+
md: 18,
|
|
326
|
+
lg: 24,
|
|
327
|
+
xl: 30,
|
|
328
|
+
xxl: 36
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
var BaseContainer = {
|
|
332
|
+
color: "primary-container",
|
|
333
|
+
contentColor: "on-primary-container",
|
|
334
|
+
borderRadii: {
|
|
335
|
+
xxs: 4,
|
|
336
|
+
xs: 8,
|
|
337
|
+
sm: 12,
|
|
338
|
+
md: 16,
|
|
339
|
+
lg: 20,
|
|
340
|
+
xl: 24,
|
|
341
|
+
xxl: 28
|
|
342
|
+
},
|
|
343
|
+
horizontalPadding: {
|
|
344
|
+
xxs: 6,
|
|
345
|
+
xs: 12,
|
|
346
|
+
sm: 18,
|
|
347
|
+
md: 24,
|
|
348
|
+
lg: 30,
|
|
349
|
+
xl: 36,
|
|
350
|
+
xxl: 42
|
|
351
|
+
},
|
|
352
|
+
contentSpacing: {
|
|
353
|
+
xxs: 4,
|
|
354
|
+
xs: 8,
|
|
355
|
+
sm: 12,
|
|
356
|
+
md: 16,
|
|
357
|
+
lg: 20,
|
|
358
|
+
xl: 24,
|
|
359
|
+
xxl: 28
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
var BaseTheme = {
|
|
363
|
+
id: "BaseTheme",
|
|
364
|
+
name: "Base Theme",
|
|
365
|
+
colors: {
|
|
366
|
+
primary: "#6750A4",
|
|
367
|
+
"on-primary": "#FFFFFF",
|
|
368
|
+
"primary-container": "#EADDFF",
|
|
369
|
+
"on-primary-container": "#21005E",
|
|
370
|
+
secondary: "#625B71",
|
|
371
|
+
"on-secondary": "#FFFFFF",
|
|
372
|
+
"secondary-container": "#E8DEF8",
|
|
373
|
+
"on-secondary-container": "#1E192B",
|
|
374
|
+
tertiary: "#7D5260",
|
|
375
|
+
"on-tertiary": "#FFFFFF",
|
|
376
|
+
"tertiary-container": "#FFD8E4",
|
|
377
|
+
"on-tertiary-container": "#370B1E",
|
|
378
|
+
error: "#B3261E",
|
|
379
|
+
"on-error": "#FFFFFF",
|
|
380
|
+
"error-container": "#F9DEDC",
|
|
381
|
+
"on-error-container": "#370B1E",
|
|
382
|
+
background: "#FFFBFE",
|
|
383
|
+
"on-background": "#1C1B1F",
|
|
384
|
+
surface: "#FFFBFE",
|
|
385
|
+
"on-surface": "#1C1B1F",
|
|
386
|
+
"surface-variant": "#E7E0EC",
|
|
387
|
+
"on-surface-variant": "#49454E",
|
|
388
|
+
outline: "#79747E",
|
|
389
|
+
shadow: "#000000",
|
|
390
|
+
"surface-tint": "#6750A4",
|
|
391
|
+
"inverse-surface": "#313033",
|
|
392
|
+
"on-inverse-surface": "#F4EFF4",
|
|
393
|
+
"on-inverse-surface-primary": "#D0BCFF",
|
|
394
|
+
scrim: "#000000",
|
|
395
|
+
transparent: "rgba(0,0,0,0)",
|
|
396
|
+
"primary-surface": genericLightTheme.background,
|
|
397
|
+
"on-primary-surface": genericLightTheme.onLight,
|
|
398
|
+
"on-primary-surface-variant": genericLightTheme.primary
|
|
399
|
+
},
|
|
400
|
+
typography: {
|
|
401
|
+
"display-large": {
|
|
402
|
+
fontFamily: "Red Hat Display",
|
|
403
|
+
fontSize: 57,
|
|
404
|
+
lineHeight: 64,
|
|
405
|
+
fontWeight: "normal",
|
|
406
|
+
letterSpacing: -.25
|
|
407
|
+
},
|
|
408
|
+
"display-medium": {
|
|
409
|
+
fontFamily: "Red Hat Display",
|
|
410
|
+
fontSize: 45,
|
|
411
|
+
lineHeight: 52,
|
|
412
|
+
fontWeight: "normal"
|
|
413
|
+
},
|
|
414
|
+
"display-small": {
|
|
415
|
+
fontFamily: "Red Hat Display",
|
|
416
|
+
fontSize: 36,
|
|
417
|
+
lineHeight: 44,
|
|
418
|
+
fontWeight: "normal"
|
|
419
|
+
},
|
|
420
|
+
"headline-large": {
|
|
421
|
+
fontFamily: "Red Hat Display",
|
|
422
|
+
fontSize: 32,
|
|
423
|
+
lineHeight: 40,
|
|
424
|
+
fontWeight: "normal"
|
|
425
|
+
},
|
|
426
|
+
"headline-medium": {
|
|
427
|
+
fontFamily: "Red Hat Display",
|
|
428
|
+
fontSize: 28,
|
|
429
|
+
lineHeight: 36,
|
|
430
|
+
fontWeight: "normal"
|
|
431
|
+
},
|
|
432
|
+
"headline-small": {
|
|
433
|
+
fontFamily: "Red Hat Display",
|
|
434
|
+
fontSize: 24,
|
|
435
|
+
lineHeight: 32,
|
|
436
|
+
fontWeight: "normal"
|
|
437
|
+
},
|
|
438
|
+
"title-large": {
|
|
439
|
+
fontFamily: "Red Hat Display",
|
|
440
|
+
fontSize: 22,
|
|
441
|
+
lineHeight: 28,
|
|
442
|
+
fontWeight: "normal"
|
|
443
|
+
},
|
|
444
|
+
"title-medium": {
|
|
445
|
+
fontFamily: "Red Hat Display",
|
|
446
|
+
fontSize: 16,
|
|
447
|
+
lineHeight: 24,
|
|
448
|
+
fontWeight: "medium",
|
|
449
|
+
letterSpacing: .15
|
|
450
|
+
},
|
|
451
|
+
"title-small": {
|
|
452
|
+
fontFamily: "Red Hat Display",
|
|
453
|
+
fontWeight: "medium",
|
|
454
|
+
fontSize: 14,
|
|
455
|
+
lineHeight: 20,
|
|
456
|
+
letterSpacing: .1
|
|
457
|
+
},
|
|
458
|
+
"body-1-long": {
|
|
459
|
+
fontFamily: "Roboto",
|
|
460
|
+
fontSize: 16,
|
|
461
|
+
lineHeight: 22
|
|
462
|
+
},
|
|
463
|
+
"body-1-short": {
|
|
464
|
+
fontFamily: "Roboto",
|
|
465
|
+
fontSize: 16,
|
|
466
|
+
lineHeight: 24
|
|
467
|
+
},
|
|
468
|
+
"body-2-long": {
|
|
469
|
+
fontFamily: "Roboto",
|
|
470
|
+
fontSize: 14,
|
|
471
|
+
lineHeight: 18
|
|
472
|
+
},
|
|
473
|
+
"body-2-short": {
|
|
474
|
+
fontFamily: "Roboto",
|
|
475
|
+
fontSize: 14,
|
|
476
|
+
lineHeight: 20
|
|
477
|
+
},
|
|
478
|
+
"subtitle-1": {
|
|
479
|
+
fontFamily: "Red Hat Display",
|
|
480
|
+
fontSize: 16,
|
|
481
|
+
lineHeight: 24,
|
|
482
|
+
letterSpacing: .15
|
|
483
|
+
},
|
|
484
|
+
"subtitle-2": {
|
|
485
|
+
fontFamily: "Red Hat Display",
|
|
486
|
+
fontSize: 14,
|
|
487
|
+
lineHeight: 20,
|
|
488
|
+
fontWeight: "medium",
|
|
489
|
+
letterSpacing: .1
|
|
490
|
+
},
|
|
491
|
+
label: {
|
|
492
|
+
fontFamily: "Roboto",
|
|
493
|
+
fontSize: 14,
|
|
494
|
+
lineHeight: 20
|
|
495
|
+
},
|
|
496
|
+
button: {
|
|
497
|
+
fontFamily: "Red Hat Display",
|
|
498
|
+
fontSize: 14,
|
|
499
|
+
lineHeight: 20,
|
|
500
|
+
fontWeight: "medium",
|
|
501
|
+
textTransform: "capitalize"
|
|
502
|
+
},
|
|
503
|
+
caption: {
|
|
504
|
+
fontFamily: "Roboto",
|
|
505
|
+
fontSize: 12,
|
|
506
|
+
lineHeight: 18,
|
|
507
|
+
letterSpacing: .4
|
|
508
|
+
},
|
|
509
|
+
overline: {
|
|
510
|
+
fontFamily: "Red Hat Display",
|
|
511
|
+
fontSize: 10,
|
|
512
|
+
lineHeight: 18,
|
|
513
|
+
letterSpacing: 1.5,
|
|
514
|
+
textTransform: "uppercase"
|
|
515
|
+
},
|
|
516
|
+
paragraph: {
|
|
517
|
+
fontFamily: "Roboto",
|
|
518
|
+
fontSize: 16,
|
|
519
|
+
lineHeight: 24
|
|
641
520
|
},
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
521
|
+
quote: {
|
|
522
|
+
fontFamily: "Roboto",
|
|
523
|
+
fontSize: 16,
|
|
524
|
+
lineHeight: 24
|
|
525
|
+
},
|
|
526
|
+
note: {
|
|
527
|
+
fontFamily: "Roboto",
|
|
528
|
+
fontSize: 14,
|
|
529
|
+
lineHeight: 22,
|
|
530
|
+
fontStyle: "italic"
|
|
646
531
|
}
|
|
647
532
|
},
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
533
|
+
borders: {
|
|
534
|
+
primary: `1px solid ${genericLightTheme.primary}`,
|
|
535
|
+
secondary: `1px solid ${genericLightTheme.secondary}`,
|
|
536
|
+
tertiary: `1px solid ${genericLightTheme.tertiary}`,
|
|
537
|
+
quaternary: `1px solid ${genericLightTheme.quaternary}`,
|
|
538
|
+
warn: `1px solid ${genericLightTheme.warn}`,
|
|
539
|
+
success: `1px solid ${genericLightTheme.secondary}`,
|
|
540
|
+
light: `1px solid ${genericLightTheme.light}`,
|
|
541
|
+
dark: `1px solid ${genericLightTheme.dark}`,
|
|
542
|
+
dotted: `1px dotted ${genericLightTheme.dark}`
|
|
543
|
+
},
|
|
544
|
+
shadows: {
|
|
545
|
+
raised: "rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px",
|
|
546
|
+
menu: "rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;",
|
|
547
|
+
dialog: "rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px",
|
|
548
|
+
warn: "0 0 5px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3)"
|
|
549
|
+
},
|
|
550
|
+
spacing: {
|
|
551
|
+
none: "none",
|
|
552
|
+
xxs: "2px",
|
|
553
|
+
xs: "4px",
|
|
554
|
+
sm: "8px",
|
|
555
|
+
md: "16px",
|
|
556
|
+
lg: "32px",
|
|
557
|
+
xl: "64px"
|
|
558
|
+
},
|
|
559
|
+
thicknesses: {
|
|
560
|
+
thin: 1,
|
|
561
|
+
standard: 2,
|
|
562
|
+
thick: 4
|
|
563
|
+
},
|
|
564
|
+
radii: {
|
|
565
|
+
none: "none",
|
|
566
|
+
xxs: "4px",
|
|
567
|
+
xs: "8px",
|
|
568
|
+
sm: "16px",
|
|
569
|
+
md: "24px",
|
|
570
|
+
lg: "32px",
|
|
571
|
+
max: "999px"
|
|
572
|
+
},
|
|
573
|
+
buttons: {
|
|
574
|
+
elevated: {
|
|
575
|
+
...BaseButton,
|
|
576
|
+
color: "surface",
|
|
577
|
+
contentColor: "on-surface",
|
|
578
|
+
shadowElevation: "raised"
|
|
653
579
|
},
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
580
|
+
filled: {
|
|
581
|
+
...BaseButton,
|
|
582
|
+
color: "primary"
|
|
583
|
+
},
|
|
584
|
+
"filled-secondary": {
|
|
585
|
+
...BaseButton,
|
|
586
|
+
color: "secondary",
|
|
587
|
+
contentColor: "on-secondary"
|
|
588
|
+
},
|
|
589
|
+
outlined: {
|
|
590
|
+
...BaseButton,
|
|
591
|
+
color: "transparent",
|
|
592
|
+
borderColor: "primary",
|
|
593
|
+
contentColor: "on-primary",
|
|
594
|
+
borderWidth: 1
|
|
595
|
+
},
|
|
596
|
+
text: {
|
|
597
|
+
...BaseButton,
|
|
598
|
+
color: "transparent",
|
|
599
|
+
contentColor: "on-surface"
|
|
600
|
+
},
|
|
601
|
+
icon: {
|
|
602
|
+
...BaseButton,
|
|
603
|
+
color: "transparent",
|
|
604
|
+
contentColor: "on-surface",
|
|
605
|
+
horizontalPadding: BaseButton.verticalPadding
|
|
606
|
+
},
|
|
607
|
+
"floating-action": {
|
|
608
|
+
...BaseButton,
|
|
609
|
+
color: "secondary",
|
|
610
|
+
contentColor: "on-secondary",
|
|
611
|
+
borderRadii: {
|
|
612
|
+
xxs: 3,
|
|
613
|
+
xs: 5,
|
|
614
|
+
sm: 8,
|
|
615
|
+
md: 12,
|
|
616
|
+
lg: 16,
|
|
617
|
+
xl: 12,
|
|
618
|
+
xxl: 20
|
|
619
|
+
},
|
|
620
|
+
shadowElevation: "navigation",
|
|
621
|
+
verticalPadding: {
|
|
622
|
+
xxs: 4,
|
|
623
|
+
xs: 8,
|
|
624
|
+
sm: 12,
|
|
625
|
+
md: 18,
|
|
626
|
+
lg: 24,
|
|
627
|
+
xl: 30,
|
|
628
|
+
xxl: 36
|
|
629
|
+
},
|
|
630
|
+
horizontalPadding: {
|
|
631
|
+
xxs: 4,
|
|
632
|
+
xs: 8,
|
|
633
|
+
sm: 12,
|
|
634
|
+
md: 18,
|
|
635
|
+
lg: 24,
|
|
636
|
+
xl: 30,
|
|
637
|
+
xxl: 36
|
|
638
|
+
}
|
|
658
639
|
}
|
|
659
640
|
},
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
641
|
+
containers: {
|
|
642
|
+
card: {
|
|
643
|
+
...BaseContainer,
|
|
644
|
+
color: "surface",
|
|
645
|
+
contentColor: "on-surface",
|
|
646
|
+
shadowMode: "interactive"
|
|
665
647
|
},
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
648
|
+
screen: {
|
|
649
|
+
...BaseContainer,
|
|
650
|
+
color: "background",
|
|
651
|
+
contentColor: "on-background"
|
|
652
|
+
},
|
|
653
|
+
modal: {
|
|
654
|
+
...BaseContainer,
|
|
655
|
+
borderRadii: {
|
|
656
|
+
xxs: 8,
|
|
657
|
+
xs: 16,
|
|
658
|
+
sm: 22,
|
|
659
|
+
md: 28,
|
|
660
|
+
lg: 32,
|
|
661
|
+
xl: 38,
|
|
662
|
+
xxl: 44
|
|
663
|
+
},
|
|
664
|
+
color: "surface",
|
|
665
|
+
contentColor: "on-surface",
|
|
666
|
+
shadowMode: "static",
|
|
667
|
+
shadowElevation: "modal",
|
|
668
|
+
maxWidth: 560
|
|
670
669
|
}
|
|
671
670
|
},
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
671
|
+
typefaces: {},
|
|
672
|
+
icons: {},
|
|
673
|
+
components: {
|
|
674
|
+
alert: { options: {
|
|
675
|
+
topPosition: 40,
|
|
676
|
+
borderRadius: "sm",
|
|
677
|
+
transitionSpeed: .35,
|
|
678
|
+
elevation: "md"
|
|
679
|
+
} },
|
|
680
|
+
checkbox: { options: { size: 20 } },
|
|
681
|
+
dialog: { options: {
|
|
682
|
+
borderRadius: "lg",
|
|
683
|
+
color: "primary-surface",
|
|
684
|
+
border: "quaternary",
|
|
685
|
+
padding: "sm",
|
|
686
|
+
elevation: "dialog",
|
|
687
|
+
backdrop: {
|
|
688
|
+
background: "rgba(255, 255, 255, 0.6)",
|
|
689
|
+
backdropFilter: "blur(2px)"
|
|
690
|
+
}
|
|
691
|
+
} },
|
|
692
|
+
dialogHeader: { options: {
|
|
693
|
+
borderRadius: "max",
|
|
694
|
+
color: "primary",
|
|
695
|
+
height: 48,
|
|
696
|
+
textRole: "title-large",
|
|
697
|
+
textAlign: "center",
|
|
698
|
+
closeButtonIcon: "close",
|
|
699
|
+
closeButtonSize: "md"
|
|
700
|
+
} },
|
|
701
|
+
dropdown: { options: {
|
|
702
|
+
border: "none",
|
|
703
|
+
borderRadius: "xxs",
|
|
704
|
+
color: "primary-surface",
|
|
705
|
+
shadow: "menu"
|
|
706
|
+
} },
|
|
707
|
+
footer: { options: {
|
|
708
|
+
height: 52,
|
|
709
|
+
color: "primary",
|
|
710
|
+
logoHeight: 18.6,
|
|
711
|
+
logoPadding: "md"
|
|
712
|
+
} },
|
|
713
|
+
input: { options: {
|
|
714
|
+
typeFace: "input",
|
|
715
|
+
color: "primary-surface",
|
|
716
|
+
textColor: "on-primary-surface",
|
|
717
|
+
disabledColor: "disabled-surface",
|
|
718
|
+
disabledTextColor: "on-disabled-surface",
|
|
719
|
+
border: "light",
|
|
720
|
+
borderRadius: "xs",
|
|
721
|
+
errorShadow: "warn",
|
|
722
|
+
errorBorder: "warn",
|
|
723
|
+
height: 32,
|
|
724
|
+
paddingLeft: "sm",
|
|
725
|
+
focusOutline: `2px solid ${genericLightTheme.primary}`,
|
|
726
|
+
focusOutlineOffset: 2
|
|
727
|
+
} },
|
|
728
|
+
multiSelectDropdown: { options: {
|
|
729
|
+
textRole: "input",
|
|
730
|
+
textColor: "on-primary-surface",
|
|
731
|
+
dividerBorder: "light",
|
|
732
|
+
searchInputBorder: "light",
|
|
733
|
+
searchInputBorderRadius: "xxs",
|
|
734
|
+
focusOutline: `2px solid ${genericLightTheme.primary}`,
|
|
735
|
+
focusOutlineOffset: 2
|
|
736
|
+
} },
|
|
737
|
+
badge: { options: { borderRadius: "xxs" } },
|
|
738
|
+
button: {
|
|
739
|
+
fixed: {
|
|
740
|
+
position: "relative",
|
|
741
|
+
overflow: "hidden",
|
|
742
|
+
outline: "0",
|
|
743
|
+
border: "0",
|
|
744
|
+
cursor: "pointer",
|
|
745
|
+
fontFamily: "Euphemia, sans-serif",
|
|
746
|
+
transition: "all 0.28s ease"
|
|
747
|
+
},
|
|
748
|
+
colors: {
|
|
749
|
+
ghost: {
|
|
750
|
+
backgroundColor: "transparent",
|
|
751
|
+
color: "currentcolor"
|
|
752
|
+
},
|
|
753
|
+
primary: {
|
|
754
|
+
backgroundColor: genericLightTheme.primary,
|
|
755
|
+
color: genericLightTheme.onDark
|
|
756
|
+
},
|
|
757
|
+
secondary: {
|
|
758
|
+
backgroundColor: genericLightTheme.secondary,
|
|
759
|
+
color: genericLightTheme.onDark
|
|
760
|
+
},
|
|
761
|
+
tertiary: {
|
|
762
|
+
backgroundColor: genericLightTheme.tertiary,
|
|
763
|
+
color: genericLightTheme.onDark
|
|
764
|
+
},
|
|
765
|
+
warn: {
|
|
766
|
+
backgroundColor: genericLightTheme.warn,
|
|
767
|
+
color: genericLightTheme.onDark
|
|
768
|
+
},
|
|
769
|
+
disabled: {
|
|
770
|
+
backgroundColor: `${genericLightTheme.disabled} !important`,
|
|
771
|
+
color: "#fff !important"
|
|
772
|
+
},
|
|
773
|
+
success: {
|
|
774
|
+
backgroundColor: genericLightTheme.success,
|
|
775
|
+
color: genericLightTheme.onDark
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
sizes: {
|
|
779
|
+
sm: {
|
|
780
|
+
height: 22,
|
|
781
|
+
borderRadius: 11,
|
|
782
|
+
fontSize: 12,
|
|
783
|
+
padding: "0 12px",
|
|
784
|
+
fontFamily: "Euphemia Bold, sans-serif",
|
|
785
|
+
fontWeight: 600
|
|
786
|
+
},
|
|
787
|
+
md: {
|
|
788
|
+
height: 26,
|
|
789
|
+
borderRadius: 13,
|
|
790
|
+
fontSize: 16,
|
|
791
|
+
padding: "0 16px"
|
|
792
|
+
},
|
|
793
|
+
lg: {
|
|
794
|
+
height: 36,
|
|
795
|
+
borderRadius: 18,
|
|
796
|
+
fontSize: 18,
|
|
797
|
+
padding: "0 18px"
|
|
798
|
+
},
|
|
799
|
+
xl: {
|
|
800
|
+
height: 48,
|
|
801
|
+
borderRadius: 24,
|
|
802
|
+
fontSize: 24,
|
|
803
|
+
padding: "0 22px"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
677
806
|
},
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
807
|
+
iconButton: {
|
|
808
|
+
colors: {
|
|
809
|
+
ghost: {
|
|
810
|
+
backgroundColor: "transparent",
|
|
811
|
+
color: "currentcolor"
|
|
812
|
+
},
|
|
813
|
+
primary: {
|
|
814
|
+
backgroundColor: genericLightTheme.primary,
|
|
815
|
+
color: genericLightTheme.onDark
|
|
816
|
+
},
|
|
817
|
+
secondary: {
|
|
818
|
+
backgroundColor: genericLightTheme.secondary,
|
|
819
|
+
color: genericLightTheme.onDark
|
|
820
|
+
},
|
|
821
|
+
tertiary: {
|
|
822
|
+
backgroundColor: genericLightTheme.tertiary,
|
|
823
|
+
color: genericLightTheme.onDark
|
|
824
|
+
},
|
|
825
|
+
warn: {
|
|
826
|
+
backgroundColor: genericLightTheme.warn,
|
|
827
|
+
color: genericLightTheme.onDark
|
|
828
|
+
},
|
|
829
|
+
success: {
|
|
830
|
+
backgroundColor: genericLightTheme.success,
|
|
831
|
+
color: genericLightTheme.onDark
|
|
832
|
+
},
|
|
833
|
+
disabled: {
|
|
834
|
+
backgroundColor: "transparent !important",
|
|
835
|
+
color: "rgba(0,0,0,0.25) !important"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
sizes: {
|
|
839
|
+
sm: {
|
|
840
|
+
height: 22,
|
|
841
|
+
minHeight: 22,
|
|
842
|
+
width: 22,
|
|
843
|
+
minWidth: 22,
|
|
844
|
+
fontSize: 18
|
|
845
|
+
},
|
|
846
|
+
md: {
|
|
847
|
+
height: 26,
|
|
848
|
+
minHeight: 26,
|
|
849
|
+
width: 26,
|
|
850
|
+
minWidth: 26,
|
|
851
|
+
fontSize: 22
|
|
852
|
+
},
|
|
853
|
+
lg: {
|
|
854
|
+
height: 36,
|
|
855
|
+
minHeight: 36,
|
|
856
|
+
width: 36,
|
|
857
|
+
minWidth: 36,
|
|
858
|
+
fontSize: 30
|
|
859
|
+
},
|
|
860
|
+
xl: {
|
|
861
|
+
height: 40,
|
|
862
|
+
minHeight: 40,
|
|
863
|
+
width: 40,
|
|
864
|
+
minWidth: 40,
|
|
865
|
+
fontSize: 34
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
progressGauge: {
|
|
870
|
+
fixed: { textFill: genericLightTheme.onLight },
|
|
871
|
+
colors: {
|
|
872
|
+
primary: {
|
|
873
|
+
backgroundColor: "#b3d4ea",
|
|
874
|
+
color: genericLightTheme.primary
|
|
875
|
+
},
|
|
876
|
+
secondary: {
|
|
877
|
+
backgroundColor: "#b3e7c2",
|
|
878
|
+
color: genericLightTheme.secondary
|
|
879
|
+
},
|
|
880
|
+
tertiary: {
|
|
881
|
+
backgroundColor: "#ffe2b3",
|
|
882
|
+
color: genericLightTheme.tertiary
|
|
883
|
+
},
|
|
884
|
+
warn: {
|
|
885
|
+
backgroundColor: "#ffc2b3",
|
|
886
|
+
color: genericLightTheme.warn
|
|
887
|
+
},
|
|
888
|
+
success: {
|
|
889
|
+
backgroundColor: "#b3e7c2",
|
|
890
|
+
color: genericLightTheme.success
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
sizes: {
|
|
894
|
+
sm: { height: "54px" },
|
|
895
|
+
md: { height: "68px" },
|
|
896
|
+
lg: { height: "82px" },
|
|
897
|
+
xl: { height: "104px" }
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
card: {
|
|
901
|
+
fixed: {
|
|
902
|
+
borderStyle: "solid",
|
|
903
|
+
borderWidth: "1px",
|
|
904
|
+
borderRadius: "8px",
|
|
905
|
+
overflow: "hidden"
|
|
906
|
+
},
|
|
907
|
+
colors: {
|
|
908
|
+
primary: {
|
|
909
|
+
borderColor: genericLightTheme.primary,
|
|
910
|
+
backgroundColor: genericLightTheme.background
|
|
911
|
+
},
|
|
912
|
+
secondary: {
|
|
913
|
+
borderColor: genericLightTheme.secondary,
|
|
914
|
+
backgroundColor: genericLightTheme.background
|
|
915
|
+
},
|
|
916
|
+
tertiary: {
|
|
917
|
+
borderColor: genericLightTheme.tertiary,
|
|
918
|
+
backgroundColor: genericLightTheme.background
|
|
919
|
+
},
|
|
920
|
+
warn: {
|
|
921
|
+
borderColor: genericLightTheme.warn,
|
|
922
|
+
backgroundColor: genericLightTheme.background
|
|
923
|
+
},
|
|
924
|
+
success: {
|
|
925
|
+
borderColor: genericLightTheme.success,
|
|
926
|
+
backgroundColor: genericLightTheme.background
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
cardHeader: {
|
|
931
|
+
fixed: { padding: "12px 24px" },
|
|
932
|
+
colors: {
|
|
933
|
+
primary: {
|
|
934
|
+
backgroundColor: genericLightTheme.primary,
|
|
935
|
+
color: genericLightTheme.onDark
|
|
936
|
+
},
|
|
937
|
+
secondary: {
|
|
938
|
+
backgroundColor: genericLightTheme.secondary,
|
|
939
|
+
color: genericLightTheme.onDark
|
|
940
|
+
},
|
|
941
|
+
tertiary: {
|
|
942
|
+
backgroundColor: genericLightTheme.tertiary,
|
|
943
|
+
color: genericLightTheme.onDark
|
|
944
|
+
},
|
|
945
|
+
warn: {
|
|
946
|
+
backgroundColor: genericLightTheme.warn,
|
|
947
|
+
color: genericLightTheme.onDark
|
|
948
|
+
},
|
|
949
|
+
success: {
|
|
950
|
+
backgroundColor: genericLightTheme.success,
|
|
951
|
+
color: genericLightTheme.onDark
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
cardContent: { fixed: { padding: "12px 24px" } },
|
|
956
|
+
dataSearch: { options: {
|
|
957
|
+
border: "light",
|
|
958
|
+
borderRadius: "xs",
|
|
959
|
+
color: "primary-surface",
|
|
960
|
+
placeholderColor: "disabled"
|
|
961
|
+
} },
|
|
962
|
+
dataTable: { options: {
|
|
963
|
+
color: "primary-surface",
|
|
964
|
+
border: "light",
|
|
965
|
+
borderRadius: "sm",
|
|
966
|
+
elevation: void 0,
|
|
967
|
+
headerPadding: "sm",
|
|
968
|
+
footerPadding: "sm",
|
|
969
|
+
thTextRole: "headline-small",
|
|
970
|
+
thColor: "primary-container",
|
|
971
|
+
thVerticalBorder: "dotted",
|
|
972
|
+
thHorizontalBorder: "light",
|
|
973
|
+
thPadding: "sm",
|
|
974
|
+
tdTextRole: "title-small",
|
|
975
|
+
tdColor: "primary-surface",
|
|
976
|
+
tdStickyColor: "primary-container",
|
|
977
|
+
tdPadding: "sm",
|
|
978
|
+
tdVerticalBorder: "dotted",
|
|
979
|
+
tdHorizontalBorder: "light",
|
|
980
|
+
rowHoverColor: "primary-container",
|
|
981
|
+
loadingOverlayColor: "scrim",
|
|
982
|
+
loadingSpinnerColor: "primary",
|
|
983
|
+
loadingSpinnerSize: 40
|
|
984
|
+
} },
|
|
985
|
+
notificationBadge: { options: {
|
|
986
|
+
borderRadius: "sm",
|
|
987
|
+
offset: -10
|
|
988
|
+
} },
|
|
989
|
+
paginator: { options: {
|
|
990
|
+
gap: "xs",
|
|
991
|
+
textRole: "label",
|
|
992
|
+
inputBorder: "light",
|
|
993
|
+
inputBorderRadius: "xs",
|
|
994
|
+
pageBorderRadius: "xs",
|
|
995
|
+
currentPageBorder: "light",
|
|
996
|
+
currentPageBorderRadius: "xs"
|
|
997
|
+
} },
|
|
998
|
+
snackbar: { options: {
|
|
999
|
+
bottomPosition: 40,
|
|
1000
|
+
transitionDelay: "0.35s",
|
|
1001
|
+
autoCloseDelay: 35e3
|
|
1002
|
+
} },
|
|
1003
|
+
toggle: { options: { size: 20 } },
|
|
1004
|
+
tooltip: { options: {
|
|
1005
|
+
border: void 0,
|
|
1006
|
+
borderRadius: "xs",
|
|
1007
|
+
shadow: "raised",
|
|
1008
|
+
color: "inverse-surface",
|
|
1009
|
+
typeface: "label"
|
|
1010
|
+
} }
|
|
683
1011
|
}
|
|
684
1012
|
};
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region src/concepts/theme/themes/dark.theme.ts
|
|
1015
|
+
var DarkTheme = {
|
|
1016
|
+
...BaseTheme,
|
|
1017
|
+
id: "DarkTheme",
|
|
1018
|
+
name: "Dark Theme",
|
|
1019
|
+
colors: {
|
|
1020
|
+
primary: "#D0BCFF",
|
|
1021
|
+
"on-primary": "#371E73",
|
|
1022
|
+
"primary-container": "#4F378B",
|
|
1023
|
+
"on-primary-container": "#EADDFF",
|
|
1024
|
+
secondary: "#CCC2DC",
|
|
1025
|
+
"on-secondary": "#332D41",
|
|
1026
|
+
"secondary-container": "#4A4458",
|
|
1027
|
+
"on-secondary-container": "#E8DEF8",
|
|
1028
|
+
tertiary: "#EFB8C8",
|
|
1029
|
+
"on-tertiary": "#492532",
|
|
1030
|
+
"tertiary-container": "#633B48",
|
|
1031
|
+
"on-tertiary-container": "#FFD8E4",
|
|
1032
|
+
error: "#F2B8B5",
|
|
1033
|
+
"on-error": "#601410",
|
|
1034
|
+
"error-container": "#8C1D18",
|
|
1035
|
+
"on-error-container": "#F9DEDC",
|
|
1036
|
+
background: "#1C1B1F",
|
|
1037
|
+
"on-background": "#E6E1E5",
|
|
1038
|
+
surface: "#1C1B1F",
|
|
1039
|
+
"on-surface": "#E6E1E5",
|
|
1040
|
+
"surface-variant": "#49454F",
|
|
1041
|
+
"on-surface-variant": "#CAC4D0",
|
|
1042
|
+
outline: "#938F99",
|
|
1043
|
+
shadow: "#000000",
|
|
1044
|
+
"surface-tint": "#D0BCFF",
|
|
1045
|
+
"inverse-surface": "#E6E1E5",
|
|
1046
|
+
"inverse-on-surface": "#313033",
|
|
1047
|
+
"inverse-on-surface-primary": "#6750A4",
|
|
1048
|
+
transparent: "rgba(0,0,0,0)"
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
//#endregion
|
|
1052
|
+
//#region src/concepts/theme/themes/light.theme.ts
|
|
1053
|
+
var LightTheme = {
|
|
1054
|
+
...BaseTheme,
|
|
1055
|
+
id: "LightTheme",
|
|
1056
|
+
name: "Light Theme"
|
|
1057
|
+
};
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region src/concepts/theme/theme.records.ts
|
|
1060
|
+
var UniThemes = {
|
|
1061
|
+
LightTheme,
|
|
1062
|
+
DarkTheme
|
|
691
1063
|
};
|
|
1064
|
+
var DefaultThemeId = Object.keys(UniThemes)[0];
|
|
692
1065
|
//#endregion
|
|
693
1066
|
//#region src/concepts/typography/typography.records.ts
|
|
694
1067
|
var FontWeightMap = {
|
|
@@ -736,8 +1109,12 @@ exports.ShadowCssMap = ShadowCssMap;
|
|
|
736
1109
|
exports.ShadowMap = ShadowMap;
|
|
737
1110
|
exports.UniThemes = UniThemes;
|
|
738
1111
|
exports.Z_INDEX = Z_INDEX;
|
|
1112
|
+
exports.collapseFadeOut = collapseFadeOut;
|
|
739
1113
|
exports.cycle = cycle;
|
|
740
1114
|
exports.debounce = debounce;
|
|
1115
|
+
exports.expandFadeIn = expandFadeIn;
|
|
1116
|
+
exports.fadeIn = fadeIn;
|
|
1117
|
+
exports.fadeOut = fadeOut;
|
|
741
1118
|
exports.getAnalogousHues = getAnalogousHues;
|
|
742
1119
|
exports.getComplimentaryHue = getComplimentaryHue;
|
|
743
1120
|
exports.getDeviceOrientation = getDeviceOrientation;
|
|
@@ -746,7 +1123,6 @@ exports.getSplitComplimentaryHues = getSplitComplimentaryHues;
|
|
|
746
1123
|
exports.getTriadicHues = getTriadicHues;
|
|
747
1124
|
exports.getValue = getValue;
|
|
748
1125
|
exports.gradient = gradient;
|
|
749
|
-
exports.palette = palette;
|
|
750
1126
|
exports.randomRangeValue = randomRangeValue;
|
|
751
1127
|
exports.uniColor = uniColor;
|
|
752
1128
|
|