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