yukit-web 0.11.5 → 1.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/fesm2022/yukit-web.mjs +314 -39
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/components/layout.css +3 -0
- package/src/lib/theme/components/sidebar.css +20 -0
- package/src/lib/theme/theme.css +2 -0
- package/src/lib/theme/tokens/color.css +154 -107
- package/types/yukit-web.d.ts +85 -11
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--yuw-sidebar-item-text: var(--sidebar-rail-text);
|
|
3
|
+
--yuw-sidebar-item-icon: var(--sidebar-rail-icon);
|
|
4
|
+
--yuw-sidebar-item-hover: var(--sidebar-rail-hover);
|
|
5
|
+
--yuw-sidebar-item-active: var(--sidebar-rail-active);
|
|
6
|
+
--yuw-sidebar-item-active-text: var(--sidebar-rail-icon-active);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.yuw-sidebar-panel {
|
|
10
|
+
--yuw-sidebar-item-text: var(--sidebar-panel-text);
|
|
11
|
+
--yuw-sidebar-item-icon: var(--sidebar-panel-icon);
|
|
12
|
+
--yuw-sidebar-item-hover: var(--sidebar-item-hover);
|
|
13
|
+
--yuw-sidebar-item-active: var(--sidebar-item-active);
|
|
14
|
+
--yuw-sidebar-item-active-text: var(--sidebar-item-active-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-slot='sidebar'][data-mobile='true'] {
|
|
18
|
+
border-start-end-radius: var(--radius-4xl, 2rem);
|
|
19
|
+
border-end-end-radius: var(--radius-4xl, 2rem);
|
|
20
|
+
}
|
package/src/lib/theme/theme.css
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
@import './components/label.css';
|
|
15
15
|
@import './components/reveal-on-hover.css';
|
|
16
16
|
@import './components/overflow-list-cell.css';
|
|
17
|
+
@import './components/sidebar.css';
|
|
18
|
+
@import './components/layout.css';
|
|
17
19
|
@import './spartan-overwrites/accordion.css';
|
|
18
20
|
@import './spartan-overwrites/sheet.css';
|
|
19
21
|
@import './spartan-overwrites/sonner.css';
|
|
@@ -7,31 +7,30 @@
|
|
|
7
7
|
--primary-3: #ffbcb7;
|
|
8
8
|
--primary-4: #ff8a86;
|
|
9
9
|
--primary-5: #f95a5c;
|
|
10
|
-
--primary-6: #
|
|
11
|
-
--primary-7: #
|
|
12
|
-
--primary-8: #
|
|
13
|
-
--primary-9: #
|
|
14
|
-
--primary-
|
|
15
|
-
--primary-text: var(--primary-
|
|
16
|
-
--primary-text
|
|
17
|
-
--primary-text-
|
|
18
|
-
--primary-
|
|
19
|
-
--primary-fill-
|
|
10
|
+
--primary-6: #e64249;
|
|
11
|
+
--primary-7: #cd333b;
|
|
12
|
+
--primary-8: #a1252c;
|
|
13
|
+
--primary-9: #771c20;
|
|
14
|
+
--primary-10: #4f1315;
|
|
15
|
+
--primary-text-strong: var(--primary-9);
|
|
16
|
+
--primary-text: var(--primary-8);
|
|
17
|
+
--primary-text-active: var(--primary-9);
|
|
18
|
+
--primary-text-cta: var(--primary-8);
|
|
19
|
+
--primary-fill-pressed: var(--primary-8);
|
|
20
|
+
--primary-fill-hover: var(--primary-7);
|
|
20
21
|
--primary-fill-cta: var(--primary-5);
|
|
21
|
-
--primary-border-selected: var(--primary-
|
|
22
|
+
--primary-border-selected: var(--primary-7);
|
|
22
23
|
--primary-border: var(--primary-4);
|
|
23
24
|
--primary-subtle: var(--primary-1);
|
|
24
25
|
--primary-subtle-hover: var(--primary-2);
|
|
25
|
-
--primary-on-subtle-overlay: var(--primary-
|
|
26
|
-
--primary-on-subtle: var(--primary-
|
|
27
|
-
--primary-fill-hover-layer: var(--neutrals-none);
|
|
28
|
-
--primary-fill-pressed-layer: var(--neutrals-none);
|
|
26
|
+
--primary-on-subtle-overlay: var(--primary-8);
|
|
27
|
+
--primary-on-subtle: var(--primary-8);
|
|
29
28
|
--primary-on-fill: var(--neutrals-on-fill);
|
|
30
29
|
--primary-tonal: var(--primary-2);
|
|
31
30
|
--primary-tonal-hover: var(--primary-3);
|
|
32
31
|
--primary-tonal-pressed: var(--primary-4);
|
|
33
|
-
--primary-border-hover: var(--primary-
|
|
34
|
-
--primary-border-pressed: var(--primary-
|
|
32
|
+
--primary-border-hover: var(--primary-8);
|
|
33
|
+
--primary-border-pressed: var(--primary-9);
|
|
35
34
|
|
|
36
35
|
/** || secondary || */
|
|
37
36
|
--secondary-1: #eef1fe;
|
|
@@ -40,44 +39,45 @@
|
|
|
40
39
|
--secondary-4: #b2bef2;
|
|
41
40
|
--secondary-5: #93a0e0;
|
|
42
41
|
--secondary-6: #5f6ab4;
|
|
43
|
-
--secondary-7: #
|
|
44
|
-
--secondary-8: #
|
|
45
|
-
--secondary-9: #
|
|
46
|
-
--secondary-
|
|
47
|
-
--secondary-text: var(--secondary-
|
|
48
|
-
--secondary-
|
|
49
|
-
--secondary-fill: var(--secondary-
|
|
50
|
-
--secondary-fill-hover: var(--secondary-
|
|
42
|
+
--secondary-7: #444d94;
|
|
43
|
+
--secondary-8: #353d72;
|
|
44
|
+
--secondary-9: #161a3d;
|
|
45
|
+
--secondary-10: #080b20;
|
|
46
|
+
--secondary-text-strong: var(--secondary-10);
|
|
47
|
+
--secondary-text: var(--secondary-9);
|
|
48
|
+
--secondary-fill-pressed: var(--secondary-10);
|
|
49
|
+
--secondary-fill-hover: var(--secondary-9);
|
|
50
|
+
--secondary-fill: var(--secondary-8);
|
|
51
51
|
--secondary-subtle: var(--secondary-1);
|
|
52
52
|
--secondary-subtle-hover: var(--secondary-2);
|
|
53
|
-
--secondary-on-subtle: var(--secondary-
|
|
53
|
+
--secondary-on-subtle: var(--secondary-9);
|
|
54
54
|
--secondary-on-fill: var(--neutrals-on-fill);
|
|
55
55
|
--secondary-tonal: var(--secondary-2);
|
|
56
56
|
--secondary-tonal-hover: var(--secondary-3);
|
|
57
57
|
--secondary-tonal-pressed: var(--secondary-4);
|
|
58
58
|
--secondary-border: var(--secondary-5);
|
|
59
59
|
--secondary-subtle-pressed: var(--secondary-3);
|
|
60
|
-
--secondary-border-hover: var(--secondary-
|
|
61
|
-
--secondary-border-pressed: var(--secondary-
|
|
62
|
-
--secondary-text-cta: var(--secondary-
|
|
60
|
+
--secondary-border-hover: var(--secondary-9);
|
|
61
|
+
--secondary-border-pressed: var(--secondary-9);
|
|
62
|
+
--secondary-text-cta: var(--secondary-8);
|
|
63
63
|
|
|
64
64
|
/** || neutrals || */
|
|
65
65
|
--neutrals-white: #fdfdfe;
|
|
66
|
-
--gray-1: #
|
|
67
|
-
--gray-2: #
|
|
68
|
-
--gray-3: #
|
|
69
|
-
--gray-4: #
|
|
70
|
-
--gray-5: #
|
|
71
|
-
--gray-6: #
|
|
72
|
-
--gray-7: #
|
|
73
|
-
--gray-8: #
|
|
74
|
-
--gray-9: #
|
|
75
|
-
--gray-10: #
|
|
76
|
-
--gray-11: #
|
|
77
|
-
--gray-12: #
|
|
78
|
-
--neutrals-dark: #
|
|
66
|
+
--gray-1: #f9f9fa;
|
|
67
|
+
--gray-2: #f6f6f7;
|
|
68
|
+
--gray-3: #f2f2f4;
|
|
69
|
+
--gray-4: #ededef;
|
|
70
|
+
--gray-5: #e7e7ea;
|
|
71
|
+
--gray-6: #d7d7db;
|
|
72
|
+
--gray-7: #b5b5ba;
|
|
73
|
+
--gray-8: #93939a;
|
|
74
|
+
--gray-9: #717178;
|
|
75
|
+
--gray-10: #56565d;
|
|
76
|
+
--gray-11: #37373d;
|
|
77
|
+
--gray-12: #1a1a20;
|
|
78
|
+
--neutrals-dark: #131319;
|
|
79
79
|
--neutrals-on-fill: #ffffff;
|
|
80
|
-
--neutrals-on-fill-dark: #
|
|
80
|
+
--neutrals-on-fill-dark: #131319;
|
|
81
81
|
--neutrals-background: var(--gray-1);
|
|
82
82
|
--neutrals-sidebar: var(--neutrals-white);
|
|
83
83
|
--neutrals-surface: var(--neutrals-white);
|
|
@@ -102,19 +102,19 @@
|
|
|
102
102
|
--neutrals-subtle-pressed: var(--neutrals-black-18);
|
|
103
103
|
--neutrals-subtle-selected: var(--neutrals-black-12);
|
|
104
104
|
--neutrals-scrim: var(--neutrals-black-32);
|
|
105
|
-
--neutrals-black-4: rgb(
|
|
106
|
-
--neutrals-black-8: rgb(
|
|
107
|
-
--neutrals-black-12: rgb(
|
|
108
|
-
--neutrals-black-16: rgb(
|
|
109
|
-
--neutrals-black-24: rgb(
|
|
110
|
-
--neutrals-black-32: rgb(
|
|
105
|
+
--neutrals-black-4: rgb(22 21 36 / 0.04);
|
|
106
|
+
--neutrals-black-8: rgb(22 21 36 / 0.08);
|
|
107
|
+
--neutrals-black-12: rgb(22 21 36 / 0.12);
|
|
108
|
+
--neutrals-black-16: rgb(22 21 36 / 0.16);
|
|
109
|
+
--neutrals-black-24: rgb(22 21 36 / 0.24);
|
|
110
|
+
--neutrals-black-32: rgb(22 21 36 / 0.32);
|
|
111
111
|
--neutrals-white-4: rgb(253 253 254 / 0.04);
|
|
112
112
|
--neutrals-white-8: rgb(253 253 254 / 0.08);
|
|
113
113
|
--neutrals-white-12: rgb(253 253 254 / 0.12);
|
|
114
114
|
--neutrals-white-16: rgb(253 253 254 / 0.16);
|
|
115
115
|
--neutrals-none: rgb(253 253 254 / 0);
|
|
116
|
-
--neutrals-black-6: rgb(
|
|
117
|
-
--neutrals-black-18: rgb(
|
|
116
|
+
--neutrals-black-6: rgb(22 21 36 / 0.06);
|
|
117
|
+
--neutrals-black-18: rgb(22 21 36 / 0.18);
|
|
118
118
|
|
|
119
119
|
/** || red || */
|
|
120
120
|
--red-1: #fff2f0;
|
|
@@ -271,12 +271,33 @@
|
|
|
271
271
|
--ring-neutral: var(--gray-9);
|
|
272
272
|
--ring-secondary: var(--secondary-6);
|
|
273
273
|
--ring-destructive: var(--red-6);
|
|
274
|
-
--ring-primary: var(--primary-
|
|
275
|
-
--ring-neutral-halo: rgb(
|
|
274
|
+
--ring-primary: var(--primary-7);
|
|
275
|
+
--ring-neutral-halo: rgb(113 113 120 / 0.5);
|
|
276
276
|
--ring-primary-halo: rgb(205 51 59 / 0.5);
|
|
277
277
|
--ring-secondary-halo: rgb(95 106 180 / 0.5);
|
|
278
278
|
--ring-destructive-halo: rgb(187 2 34 / 0.5);
|
|
279
279
|
|
|
280
|
+
/** || sidebar || */
|
|
281
|
+
--sidebar-item-active: var(--neutrals-white);
|
|
282
|
+
--sidebar-item-hover: var(--secondary-2);
|
|
283
|
+
--sidebar-rail: var(--secondary-9);
|
|
284
|
+
--sidebar-rail-hover: var(--secondary-8);
|
|
285
|
+
--sidebar-rail-active: var(--secondary-7);
|
|
286
|
+
--sidebar-rail-icon: var(--secondary-4);
|
|
287
|
+
--sidebar-rail-icon-active: var(--neutrals-white);
|
|
288
|
+
--sidebar-logo: var(--neutrals-white);
|
|
289
|
+
--sidebar-panel: var(--secondary-1);
|
|
290
|
+
--sidebar-panel-border: var(--secondary-3);
|
|
291
|
+
--sidebar-panel-title: var(--secondary-9);
|
|
292
|
+
--sidebar-panel-text: var(--secondary-8);
|
|
293
|
+
--sidebar-panel-label: var(--secondary-8);
|
|
294
|
+
--sidebar-panel-icon: var(--secondary-6);
|
|
295
|
+
--sidebar-item-active-text: var(--secondary-9);
|
|
296
|
+
--sidebar-badge: var(--secondary-2);
|
|
297
|
+
--sidebar-on-badge: var(--secondary-9);
|
|
298
|
+
--sidebar-rail-separator: var(--secondary-8);
|
|
299
|
+
--sidebar-rail-text: var(--secondary-2);
|
|
300
|
+
|
|
280
301
|
/** || On-fill of the colors the tokens leave undefined || */
|
|
281
302
|
--green-on-fill: var(--neutrals-on-fill);
|
|
282
303
|
--yellow-on-fill: var(--neutrals-on-fill-dark);
|
|
@@ -326,13 +347,13 @@
|
|
|
326
347
|
--ring: var(--ring-neutral);
|
|
327
348
|
|
|
328
349
|
/** || Sidebar || */
|
|
329
|
-
--sidebar: var(--
|
|
330
|
-
--sidebar-foreground: var(--
|
|
350
|
+
--sidebar: var(--sidebar-rail);
|
|
351
|
+
--sidebar-foreground: var(--sidebar-rail-text);
|
|
331
352
|
--sidebar-primary: var(--primary-fill-cta);
|
|
332
353
|
--sidebar-primary-foreground: var(--primary-on-fill);
|
|
333
|
-
--sidebar-accent: var(--
|
|
334
|
-
--sidebar-accent-foreground: var(--
|
|
335
|
-
--sidebar-border: var(--
|
|
354
|
+
--sidebar-accent: var(--sidebar-rail-active);
|
|
355
|
+
--sidebar-accent-foreground: var(--sidebar-rail-icon-active);
|
|
356
|
+
--sidebar-border: var(--sidebar-rail-separator);
|
|
336
357
|
--sidebar-ring: var(--ring-primary);
|
|
337
358
|
|
|
338
359
|
/** || Feedback || */
|
|
@@ -346,7 +367,7 @@
|
|
|
346
367
|
--additional-foreground: var(--violet-on-fill);
|
|
347
368
|
|
|
348
369
|
/** || Chart series: 3:1 against the page and surface backgrounds in both modes || */
|
|
349
|
-
--chart-1: var(--primary-
|
|
370
|
+
--chart-1: var(--primary-7);
|
|
350
371
|
--chart-2: var(--blue-fill);
|
|
351
372
|
--chart-3: var(--cyan-fill);
|
|
352
373
|
--chart-4: var(--orange-fill);
|
|
@@ -363,47 +384,54 @@
|
|
|
363
384
|
--toast-foreground: var(--neutrals-dark);
|
|
364
385
|
|
|
365
386
|
/** || primary || */
|
|
366
|
-
--primary-1:
|
|
367
|
-
--primary-2:
|
|
368
|
-
--primary-3:
|
|
369
|
-
--primary-4:
|
|
370
|
-
--primary-
|
|
371
|
-
--primary-
|
|
372
|
-
--primary-
|
|
373
|
-
--primary-
|
|
374
|
-
--primary-
|
|
375
|
-
--primary-
|
|
376
|
-
--primary-fill-
|
|
377
|
-
--primary-
|
|
387
|
+
--primary-1: #311b1a;
|
|
388
|
+
--primary-2: #462221;
|
|
389
|
+
--primary-3: #5c2928;
|
|
390
|
+
--primary-4: #7b3433;
|
|
391
|
+
--primary-5: #cd333b;
|
|
392
|
+
--primary-6: #f95a5c;
|
|
393
|
+
--primary-7: #ff7a77;
|
|
394
|
+
--primary-8: #ff9b96;
|
|
395
|
+
--primary-9: #ffbcb7;
|
|
396
|
+
--primary-10: #ffedea;
|
|
397
|
+
--primary-fill-cta: var(--primary-6);
|
|
398
|
+
--primary-border: var(--primary-5);
|
|
378
399
|
--primary-on-fill: var(--neutrals-on-fill-dark);
|
|
379
400
|
|
|
380
401
|
/** || secondary || */
|
|
381
|
-
--secondary-1:
|
|
382
|
-
--secondary-2:
|
|
383
|
-
--secondary-3:
|
|
384
|
-
--secondary-4:
|
|
385
|
-
--secondary-5: #
|
|
386
|
-
--secondary-6: #
|
|
387
|
-
--secondary-7: #
|
|
388
|
-
--secondary-8: #
|
|
389
|
-
--secondary-9: #
|
|
402
|
+
--secondary-1: #080b20;
|
|
403
|
+
--secondary-2: #161a3d;
|
|
404
|
+
--secondary-3: #1f2336;
|
|
405
|
+
--secondary-4: #272c45;
|
|
406
|
+
--secondary-5: #2f3555;
|
|
407
|
+
--secondary-6: #353d72;
|
|
408
|
+
--secondary-7: #6e7bc3;
|
|
409
|
+
--secondary-8: #a2ade4;
|
|
410
|
+
--secondary-9: #d3daf6;
|
|
411
|
+
--secondary-10: #eef1fe;
|
|
412
|
+
--secondary-subtle: var(--secondary-3);
|
|
413
|
+
--secondary-subtle-hover: var(--secondary-4);
|
|
390
414
|
--secondary-on-fill: var(--neutrals-on-fill-dark);
|
|
391
|
-
--secondary-
|
|
415
|
+
--secondary-tonal: var(--secondary-4);
|
|
416
|
+
--secondary-tonal-hover: var(--secondary-5);
|
|
417
|
+
--secondary-tonal-pressed: var(--secondary-6);
|
|
418
|
+
--secondary-border: var(--secondary-8);
|
|
419
|
+
--secondary-subtle-pressed: var(--secondary-5);
|
|
392
420
|
|
|
393
421
|
/** || neutrals || */
|
|
394
|
-
--gray-1: #
|
|
395
|
-
--gray-2: #
|
|
396
|
-
--gray-3: #
|
|
397
|
-
--gray-4: #
|
|
398
|
-
--gray-5: #
|
|
399
|
-
--gray-6: #
|
|
400
|
-
--gray-7: #
|
|
401
|
-
--gray-8: #
|
|
402
|
-
--gray-9: #
|
|
403
|
-
--gray-10: #
|
|
404
|
-
--gray-11: #
|
|
405
|
-
--gray-12: #
|
|
406
|
-
--neutrals-dark: #
|
|
422
|
+
--gray-1: #111114;
|
|
423
|
+
--gray-2: #161619;
|
|
424
|
+
--gray-3: #1a1a1d;
|
|
425
|
+
--gray-4: #1f1f23;
|
|
426
|
+
--gray-5: #232327;
|
|
427
|
+
--gray-6: #2f2f34;
|
|
428
|
+
--gray-7: #404046;
|
|
429
|
+
--gray-8: #606067;
|
|
430
|
+
--gray-9: #7f7f86;
|
|
431
|
+
--gray-10: #a1a1a7;
|
|
432
|
+
--gray-11: #c9c9ce;
|
|
433
|
+
--gray-12: #eeeef1;
|
|
434
|
+
--neutrals-dark: #0c0c10;
|
|
407
435
|
--neutrals-sidebar: var(--gray-2);
|
|
408
436
|
--neutrals-surface: var(--gray-2);
|
|
409
437
|
--neutrals-surface-footer: var(--gray-1);
|
|
@@ -416,18 +444,18 @@
|
|
|
416
444
|
--neutrals-subtle-hover: var(--neutrals-white-4);
|
|
417
445
|
--neutrals-subtle-pressed: var(--neutrals-white-12);
|
|
418
446
|
--neutrals-subtle-selected: var(--neutrals-white-8);
|
|
419
|
-
--neutrals-black-4: rgb(
|
|
420
|
-
--neutrals-black-8: rgb(
|
|
421
|
-
--neutrals-black-12: rgb(
|
|
422
|
-
--neutrals-black-16: rgb(
|
|
423
|
-
--neutrals-black-24: rgb(
|
|
424
|
-
--neutrals-black-32: rgb(
|
|
425
|
-
--neutrals-white-4: rgb(
|
|
426
|
-
--neutrals-white-8: rgb(
|
|
427
|
-
--neutrals-white-12: rgb(
|
|
428
|
-
--neutrals-white-16: rgb(
|
|
429
|
-
--neutrals-black-6: rgb(
|
|
430
|
-
--neutrals-black-18: rgb(
|
|
447
|
+
--neutrals-black-4: rgb(4 4 6 / 0.04);
|
|
448
|
+
--neutrals-black-8: rgb(4 4 6 / 0.08);
|
|
449
|
+
--neutrals-black-12: rgb(4 4 6 / 0.12);
|
|
450
|
+
--neutrals-black-16: rgb(4 4 6 / 0.16);
|
|
451
|
+
--neutrals-black-24: rgb(4 4 6 / 0.24);
|
|
452
|
+
--neutrals-black-32: rgb(4 4 6 / 0.32);
|
|
453
|
+
--neutrals-white-4: rgb(239 239 246 / 0.04);
|
|
454
|
+
--neutrals-white-8: rgb(239 239 246 / 0.08);
|
|
455
|
+
--neutrals-white-12: rgb(239 239 246 / 0.12);
|
|
456
|
+
--neutrals-white-16: rgb(239 239 246 / 0.16);
|
|
457
|
+
--neutrals-black-6: rgb(4 4 6 / 0.06);
|
|
458
|
+
--neutrals-black-18: rgb(4 4 6 / 0.18);
|
|
431
459
|
|
|
432
460
|
/** || red || */
|
|
433
461
|
--red-1: rgb(222 11 34 / 0.08);
|
|
@@ -510,16 +538,35 @@
|
|
|
510
538
|
--emerald-7: #a9e3c9;
|
|
511
539
|
|
|
512
540
|
/** || focus || */
|
|
513
|
-
--ring-
|
|
541
|
+
--ring-secondary: var(--secondary-7);
|
|
542
|
+
--ring-neutral-halo: rgb(127 127 134 / 0.5);
|
|
514
543
|
--ring-primary-halo: rgb(255 122 119 / 0.5);
|
|
515
544
|
--ring-secondary-halo: rgb(110 123 195 / 0.5);
|
|
516
545
|
--ring-destructive-halo: rgb(253 115 106 / 0.5);
|
|
517
546
|
|
|
547
|
+
/** || sidebar || */
|
|
548
|
+
--sidebar-item-active: var(--secondary-4);
|
|
549
|
+
--sidebar-item-hover: var(--secondary-3);
|
|
550
|
+
--sidebar-rail: var(--secondary-2);
|
|
551
|
+
--sidebar-rail-hover: var(--secondary-3);
|
|
552
|
+
--sidebar-rail-active: var(--secondary-4);
|
|
553
|
+
--sidebar-rail-icon: var(--secondary-8);
|
|
554
|
+
--sidebar-rail-icon-active: var(--secondary-10);
|
|
555
|
+
--sidebar-panel-border: var(--secondary-4);
|
|
556
|
+
--sidebar-panel-title: var(--secondary-10);
|
|
557
|
+
--sidebar-panel-text: var(--secondary-9);
|
|
558
|
+
--sidebar-panel-icon: var(--secondary-8);
|
|
559
|
+
--sidebar-item-active-text: var(--secondary-10);
|
|
560
|
+
--sidebar-badge: var(--secondary-4);
|
|
561
|
+
--sidebar-rail-separator: var(--secondary-4);
|
|
562
|
+
--sidebar-rail-text: var(--secondary-9);
|
|
563
|
+
|
|
518
564
|
/** || On-fill of the colors the tokens leave undefined || */
|
|
519
565
|
--orange-on-fill: var(--neutrals-on-fill-dark);
|
|
520
566
|
--pink-on-fill: var(--neutrals-on-fill-dark);
|
|
521
567
|
--cyan-on-fill: var(--neutrals-on-fill-dark);
|
|
522
568
|
--emerald-on-fill: var(--neutrals-on-fill-dark);
|
|
569
|
+
--chart-7: var(--secondary-7);
|
|
523
570
|
}
|
|
524
571
|
|
|
525
572
|
@theme inline {
|
package/types/yukit-web.d.ts
CHANGED
|
@@ -4328,6 +4328,7 @@ export declare class YuwSheetHeaderDirective {
|
|
|
4328
4328
|
}
|
|
4329
4329
|
export type YuwSheetSideDto = 'top' | 'bottom' | 'left' | 'right';
|
|
4330
4330
|
export type YuwSheetScrollStrategyDto = null | 'close' | 'reposition';
|
|
4331
|
+
export type YuwSheetLayoutInsetDto = 'left' | 'right';
|
|
4331
4332
|
/**
|
|
4332
4333
|
* Slide-in sheet overlay panel component for side drawers, dialogs, and detail views.
|
|
4333
4334
|
*
|
|
@@ -4335,11 +4336,18 @@ export type YuwSheetScrollStrategyDto = null | 'close' | 'reposition';
|
|
|
4335
4336
|
* is announced as an anonymous dialog by screen readers.
|
|
4336
4337
|
*
|
|
4337
4338
|
* Inputs / Models:
|
|
4339
|
+
* - `layoutInset`: Fits the panel to the frame `yuw-layout` draws (`YuwSheetLayoutInsetDto`).
|
|
4340
|
+
* `'left'` leaves the layout's gap above and below (4px, 8px from `lg`), for a panel docked to the
|
|
4341
|
+
* sidebar side; `'right'` also leaves it to the right and rounds the panel like the body, so it reads
|
|
4342
|
+
* as coming out of it. Either clips the backdrop to the body box `yuw-layout` publishes, so the gap
|
|
4343
|
+
* is not dimmed. Absent, the sheet covers the viewport. Classes in `panelClass` and `overlayClass`
|
|
4344
|
+
* win over it.
|
|
4338
4345
|
* - `open`: Two-way open/closed state (`boolean`). Drive directly via `[(open)]` to open/close programmatically.
|
|
4339
4346
|
* - `showTrigger`: Whether to render the trigger button. Set `false` when opening only via `[(open)]`.
|
|
4340
4347
|
* - `side`: Edge of the screen the panel slides in from (`'top'`, `'bottom'`, `'left'`, `'right'`). Default is `'right'`.
|
|
4341
4348
|
* - `title`: Optional header title text. User-facing text the consuming app is responsible for translating.
|
|
4342
4349
|
* - `description`: Optional header description text. User-facing text the consuming app is responsible for translating.
|
|
4350
|
+
* - `note`: Optional second muted line under `description`. User-facing text the consuming app is responsible for translating.
|
|
4343
4351
|
* - `ariaLabel`: Accessible name for the sheet when no visible `title` is rendered. User-facing
|
|
4344
4352
|
* text the consuming app is responsible for translating.
|
|
4345
4353
|
* - `closeLabel`: Accessible label of the corner close (×) button. When set, the close button
|
|
@@ -4397,6 +4405,8 @@ export declare class YuwSheetComponent {
|
|
|
4397
4405
|
readonly closeOnOutsidePointerEvents: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4398
4406
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
4399
4407
|
readonly disableClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4408
|
+
readonly layoutInset: import("@angular/core").InputSignal<YuwSheetLayoutInsetDto | undefined>;
|
|
4409
|
+
readonly note: import("@angular/core").InputSignal<string | undefined>;
|
|
4400
4410
|
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
4401
4411
|
readonly overlayClass: import("@angular/core").InputSignal<string | undefined>;
|
|
4402
4412
|
readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -4407,6 +4417,8 @@ export declare class YuwSheetComponent {
|
|
|
4407
4417
|
readonly triggerSize: import("@angular/core").InputSignal<"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined>;
|
|
4408
4418
|
readonly triggerVariant: import("@angular/core").InputSignal<"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined>;
|
|
4409
4419
|
protected readonly _bodyClass: import("@angular/core").Signal<string>;
|
|
4420
|
+
protected readonly _overlayClass: import("@angular/core").Signal<string | undefined>;
|
|
4421
|
+
protected readonly _panelClass: import("@angular/core").Signal<string>;
|
|
4410
4422
|
protected readonly _sheetState: import("@angular/core").Signal<"open" | "closed">;
|
|
4411
4423
|
constructor();
|
|
4412
4424
|
protected onStateChanged(state: 'open' | 'closed'): void;
|
|
@@ -4447,6 +4459,16 @@ export declare class YuwSheetComponent {
|
|
|
4447
4459
|
"required": false;
|
|
4448
4460
|
"isSignal": true;
|
|
4449
4461
|
};
|
|
4462
|
+
"layoutInset": {
|
|
4463
|
+
"alias": "layoutInset";
|
|
4464
|
+
"required": false;
|
|
4465
|
+
"isSignal": true;
|
|
4466
|
+
};
|
|
4467
|
+
"note": {
|
|
4468
|
+
"alias": "note";
|
|
4469
|
+
"required": false;
|
|
4470
|
+
"isSignal": true;
|
|
4471
|
+
};
|
|
4450
4472
|
"open": {
|
|
4451
4473
|
"alias": "open";
|
|
4452
4474
|
"required": false;
|
|
@@ -6310,12 +6332,9 @@ export declare class YuwSidebarFooterExtraDirective {
|
|
|
6310
6332
|
/**
|
|
6311
6333
|
* A single entry of a sidebar menu. Apply to an `<li>`.
|
|
6312
6334
|
*
|
|
6313
|
-
*
|
|
6314
|
-
*
|
|
6315
|
-
*
|
|
6316
|
-
* adjacent items contribute 22px each, so the gap between two of them and the gap to the panel edge
|
|
6317
|
-
* stay in the same proportion no matter how the list is grouped. The rail renders as one flat list of
|
|
6318
|
-
* items; its groups have no visible boundary of their own to hang spacing off.
|
|
6335
|
+
* On the settled rail the item centres its 44px button across the rail's width, and the spacing
|
|
6336
|
+
* between buttons is the menu's and the content's 4px gap rather than the item's padding, so it is
|
|
6337
|
+
* the same inside a group and across two of them.
|
|
6319
6338
|
*/
|
|
6320
6339
|
export declare class YuwSidebarMenuItemDirective {
|
|
6321
6340
|
constructor();
|
|
@@ -6346,6 +6365,8 @@ export declare class YuwSidebarMenuItemDirective {
|
|
|
6346
6365
|
* nothing.
|
|
6347
6366
|
*
|
|
6348
6367
|
* Carries `yuwSidebarMenuButtonClass`, our hover/expanded colouring and collapsed-to-icon geometry.
|
|
6368
|
+
* Icons are coloured through `--ng-icon__color`, never a `text-*` on the `ng-icon`: its own `color`
|
|
6369
|
+
* sits in `@layer ng-icon`, which is declared after Tailwind's layers and so outranks `utilities`.
|
|
6349
6370
|
* The `classes()` registration below runs after the composed `HlmSidebarMenuButton`'s own, and
|
|
6350
6371
|
* `classes()` merges its sources in registration order through `twMerge`, so each of our classes
|
|
6351
6372
|
* displaces the helm class of the same Tailwind group and modifier stack without `!important`.
|
|
@@ -6372,8 +6393,10 @@ export declare class YuwSidebarMenuItemDirective {
|
|
|
6372
6393
|
* - The icon grows through `scale-125` rather than a font-size bump, so it can be transitioned: only
|
|
6373
6394
|
* `transform`-family properties animate on the compositor, and a `font-size` change would relayout
|
|
6374
6395
|
* the row on every frame. The factor is what turns the `--spacing(4)` base into the rail's
|
|
6375
|
-
* `YUW_SIDEBAR_RAIL_ICON_SIZE`,
|
|
6376
|
-
*
|
|
6396
|
+
* `YUW_SIDEBAR_RAIL_ICON_SIZE`, centred in the 44px square.
|
|
6397
|
+
* - The settled rail's `size-11!` and `p-0!` stack both attributes, `collapsible=icon` and
|
|
6398
|
+
* `yuw-rail=on`, so their specificity outranks the single-attribute `w-full!`, `h-auto!` and
|
|
6399
|
+
* `py-[20px]!` that hold the row's shape through the width animation.
|
|
6377
6400
|
*
|
|
6378
6401
|
* Which state each class hangs off is load-bearing, because the two attributes fire at different
|
|
6379
6402
|
* times. `data-collapsible` flips the instant the toggle is pressed; `data-yuw-rail` waits for the
|
|
@@ -6527,9 +6550,43 @@ export declare class YuwSidebarInsetDirective {
|
|
|
6527
6550
|
outputs: {};
|
|
6528
6551
|
}]>;
|
|
6529
6552
|
}
|
|
6530
|
-
export declare const YUW_SIDEBAR_RAIL_PADDING = "22px";
|
|
6531
6553
|
export declare const YUW_SIDEBAR_RAIL_ICON_SIZE = "20px";
|
|
6532
6554
|
export declare const YUW_SIDEBAR_RAIL_WIDTH = "78px";
|
|
6555
|
+
/**
|
|
6556
|
+
* Application frame: the sidebar is the back layer and the body is a rounded card laid over it.
|
|
6557
|
+
*
|
|
6558
|
+
* The host is the sidebar wrapper, so it owns the collapsible state and the sidebar width variables
|
|
6559
|
+
* for everything projected into it. The sidebar goes in the `[yuwLayoutSidebar]` slot; everything
|
|
6560
|
+
* else is projected into the body, which is the page's scroll container: the frame itself is
|
|
6561
|
+
* viewport-high and never scrolls, so the gap around the body stays put.
|
|
6562
|
+
*
|
|
6563
|
+
* The body leaves a gap of sidebar visible above, below and to its right: 8px from `lg`, 4px below
|
|
6564
|
+
* it. On mobile the sidebar is an off-canvas sheet, so the gap closes the left side too. Its padding
|
|
6565
|
+
* is the page gutter minus that gap, written per breakpoint.
|
|
6566
|
+
*
|
|
6567
|
+
* While mounted it adds `yuw-layout-page` to `<body>`, which `theme.css` paints with the sidebar
|
|
6568
|
+
* colour so a resize never flashes the page background through the gap. The body's box is published
|
|
6569
|
+
* for overlays by `YuwLayoutBodyDirective`.
|
|
6570
|
+
*
|
|
6571
|
+
* Usage:
|
|
6572
|
+
* ```html
|
|
6573
|
+
* <yuw-layout>
|
|
6574
|
+
* <yuw-sidebar yuwLayoutSidebar collapsible="icon" [content]="nav" />
|
|
6575
|
+
* <router-outlet />
|
|
6576
|
+
* </yuw-layout>
|
|
6577
|
+
* ```
|
|
6578
|
+
*/
|
|
6579
|
+
export declare class YuwLayoutComponent {
|
|
6580
|
+
private readonly page;
|
|
6581
|
+
protected readonly bodyClass = "\n min-w-0\n overflow-y-auto\n no-scrollbar\n rounded-4xl\n bg-background\n my-1\n ms-1\n me-1\n md:ms-0\n lg:my-2\n lg:me-2\n px-3\n pb-3\n md:ps-8\n md:pe-7\n md:pb-7\n lg:ps-10\n lg:pe-8\n lg:pb-8\n xl:ps-12\n xl:pe-10\n xl:pb-10\n";
|
|
6582
|
+
constructor();
|
|
6583
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuwLayoutComponent, never>;
|
|
6584
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YuwLayoutComponent, "yuw-layout", never, {}, {}, never, ["[yuwLayoutSidebar]", "*"], true, [{
|
|
6585
|
+
directive: typeof YuwSidebarWrapperDirective;
|
|
6586
|
+
inputs: {};
|
|
6587
|
+
outputs: {};
|
|
6588
|
+
}]>;
|
|
6589
|
+
}
|
|
6533
6590
|
/**
|
|
6534
6591
|
* A single runnable entry of `<yuw-command>`.
|
|
6535
6592
|
*
|
|
@@ -7125,11 +7182,13 @@ export declare class YuwsLinkCellComponent {
|
|
|
7125
7182
|
}
|
|
7126
7183
|
/**
|
|
7127
7184
|
* An entry of a row's menu: `href` opens a link in a new tab, otherwise `run` does it. `separated` starts a group and
|
|
7128
|
-
* `destructive` marks an irreversible one. `label` is already translated.
|
|
7185
|
+
* `destructive` marks an irreversible one. `label` is already translated. `icon` is an ng-icon name shown before the
|
|
7186
|
+
* label, registered by the consumer with `provideIcons`.
|
|
7129
7187
|
*/
|
|
7130
7188
|
export interface YuwsMenuAction {
|
|
7131
7189
|
readonly key: string;
|
|
7132
7190
|
readonly label: string;
|
|
7191
|
+
readonly icon?: string;
|
|
7133
7192
|
readonly href?: string;
|
|
7134
7193
|
readonly run?: () => void;
|
|
7135
7194
|
readonly separated?: boolean;
|
|
@@ -7142,7 +7201,7 @@ export interface YuwsMenuAction {
|
|
|
7142
7201
|
* open too.
|
|
7143
7202
|
*
|
|
7144
7203
|
* Inputs:
|
|
7145
|
-
* - `actions` (required): Entries of the menu, in order.
|
|
7204
|
+
* - `actions` (required): Entries of the menu, in order, each with an optional icon before its label.
|
|
7146
7205
|
* - `label` (required): Accessible name of the button. The consuming app translates it.
|
|
7147
7206
|
*/
|
|
7148
7207
|
export declare class YuwsMenuActionsCellComponent {
|
|
@@ -7557,6 +7616,7 @@ export interface YuwsFormSheetLabels {
|
|
|
7557
7616
|
* - `errorMessage`: Rejection shown above the footer, so the draft stays on screen to be fixed. Default is `undefined`.
|
|
7558
7617
|
* - `hideFooter`: Hides the footer. Default is `false`.
|
|
7559
7618
|
* - `labels` (required): Cancel, close and save texts.
|
|
7619
|
+
* - `note`: Second muted line under `description`. Default is `undefined`.
|
|
7560
7620
|
* - `panelClass`: Class of the sheet panel. Default is `'w-full sm:max-w-md'`.
|
|
7561
7621
|
* - `readonly`: Drops the save button. Default is `false`.
|
|
7562
7622
|
* - `removeDisabled`: Disables the delete button. Default is `false`.
|
|
@@ -7564,6 +7624,8 @@ export interface YuwsFormSheetLabels {
|
|
|
7564
7624
|
* - `restoreLabel`: Renders the restore button with this text. Default is `undefined`.
|
|
7565
7625
|
* - `saveColor`: Color of the save button (any `YuwColorDto` value). Default is `'primary'`.
|
|
7566
7626
|
* - `saveDisabled`: Disables the save button. Default is `false`.
|
|
7627
|
+
* - `saveIcon`: ng-icon name of the save button's icon, registered by the consumer with `provideIcons` unless it is the
|
|
7628
|
+
* default. Default is `'lucideSave'`.
|
|
7567
7629
|
* - `saving`: Disables the footer actions while the host's write is in flight. Default is `false`.
|
|
7568
7630
|
* - `title` (required): Panel title.
|
|
7569
7631
|
* - `open` (model): Whether the panel is open.
|
|
@@ -7577,6 +7639,7 @@ export declare class YuwsFormSheetComponent {
|
|
|
7577
7639
|
readonly guarded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7578
7640
|
readonly hideFooter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7579
7641
|
readonly labels: import("@angular/core").InputSignal<YuwsFormSheetLabels>;
|
|
7642
|
+
readonly note: import("@angular/core").InputSignal<string | undefined>;
|
|
7580
7643
|
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
7581
7644
|
readonly panelClass: import("@angular/core").InputSignal<string>;
|
|
7582
7645
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -7585,6 +7648,7 @@ export declare class YuwsFormSheetComponent {
|
|
|
7585
7648
|
readonly restoreLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7586
7649
|
readonly saveColor: import("@angular/core").InputSignal<YuwColorDto>;
|
|
7587
7650
|
readonly saveDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7651
|
+
readonly saveIcon: import("@angular/core").InputSignal<string>;
|
|
7588
7652
|
readonly saving: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7589
7653
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
7590
7654
|
readonly back: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -7626,6 +7690,11 @@ export declare class YuwsFormSheetComponent {
|
|
|
7626
7690
|
"required": true;
|
|
7627
7691
|
"isSignal": true;
|
|
7628
7692
|
};
|
|
7693
|
+
"note": {
|
|
7694
|
+
"alias": "note";
|
|
7695
|
+
"required": false;
|
|
7696
|
+
"isSignal": true;
|
|
7697
|
+
};
|
|
7629
7698
|
"open": {
|
|
7630
7699
|
"alias": "open";
|
|
7631
7700
|
"required": true;
|
|
@@ -7666,6 +7735,11 @@ export declare class YuwsFormSheetComponent {
|
|
|
7666
7735
|
"required": false;
|
|
7667
7736
|
"isSignal": true;
|
|
7668
7737
|
};
|
|
7738
|
+
"saveIcon": {
|
|
7739
|
+
"alias": "saveIcon";
|
|
7740
|
+
"required": false;
|
|
7741
|
+
"isSignal": true;
|
|
7742
|
+
};
|
|
7669
7743
|
"saving": {
|
|
7670
7744
|
"alias": "saving";
|
|
7671
7745
|
"required": false;
|