gridsmith-ui 0.27.0 → 0.28.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/CHANGELOG.md +42 -1
- package/dist/charts.js +2 -2
- package/dist/charts.js.map +1 -1
- package/dist/chat.js +5 -5
- package/dist/chat.js.map +1 -1
- package/dist/{chunk-64TXZ4L7.js → chunk-2ROVDVLZ.js} +3 -3
- package/dist/{chunk-64TXZ4L7.js.map → chunk-2ROVDVLZ.js.map} +1 -1
- package/dist/chunk-66JJCQU3.js +46 -0
- package/dist/chunk-66JJCQU3.js.map +1 -0
- package/dist/chunk-7RKC5C7G.js +35 -0
- package/dist/chunk-7RKC5C7G.js.map +1 -0
- package/dist/{chunk-OTCEJN64.js → chunk-BRAXJEEP.js} +7 -6
- package/dist/chunk-BRAXJEEP.js.map +1 -0
- package/dist/{chunk-IXR4UEF4.js → chunk-DQCHCLEJ.js} +9 -8
- package/dist/chunk-DQCHCLEJ.js.map +1 -0
- package/dist/{chunk-5TUVX4B2.js → chunk-EIWXVICU.js} +3 -3
- package/dist/{chunk-5TUVX4B2.js.map → chunk-EIWXVICU.js.map} +1 -1
- package/dist/{chunk-SFY2KMHG.js → chunk-FD4YED7O.js} +5 -4
- package/dist/chunk-FD4YED7O.js.map +1 -0
- package/dist/{chunk-MD2EFMES.js → chunk-GXMTS3YD.js} +3 -3
- package/dist/{chunk-MD2EFMES.js.map → chunk-GXMTS3YD.js.map} +1 -1
- package/dist/chunk-HTXP5BMM.js +38 -0
- package/dist/chunk-HTXP5BMM.js.map +1 -0
- package/dist/{chunk-R5NFCEZ3.js → chunk-OPFJEL3Z.js} +52 -24
- package/dist/chunk-OPFJEL3Z.js.map +1 -0
- package/dist/{chunk-EKBWWA6P.js → chunk-R4GXKH4U.js} +7 -7
- package/dist/chunk-R4GXKH4U.js.map +1 -0
- package/dist/{chunk-PO65I3MQ.js → chunk-TRDXWHD2.js} +6 -6
- package/dist/chunk-TRDXWHD2.js.map +1 -0
- package/dist/{chunk-2CKSSWYG.js → chunk-YUTF2X6B.js} +39 -20
- package/dist/chunk-YUTF2X6B.js.map +1 -0
- package/dist/data-grid.js +18 -11
- package/dist/data-grid.js.map +1 -1
- package/dist/editor-mentions.js +2 -2
- package/dist/editor.js +44 -24
- package/dist/editor.js.map +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/index.js +397 -279
- package/dist/index.js.map +1 -1
- package/dist/kanban.js +18 -11
- package/dist/kanban.js.map +1 -1
- package/dist/resizable.js +20 -15
- package/dist/resizable.js.map +1 -1
- package/dist/roots.css +91 -15
- package/dist/tokens.css +111 -26
- package/dist/utils.d.ts +47 -5
- package/dist/utils.js +15 -5
- package/dist/utils.js.map +1 -1
- package/dist/virtualized.js +17 -11
- package/dist/virtualized.js.map +1 -1
- package/dist-static/tokens.css +111 -26
- package/package.json +1 -1
- package/dist/chunk-2CKSSWYG.js.map +0 -1
- package/dist/chunk-EKBWWA6P.js.map +0 -1
- package/dist/chunk-IXR4UEF4.js.map +0 -1
- package/dist/chunk-M2QRNBDQ.js +0 -42
- package/dist/chunk-M2QRNBDQ.js.map +0 -1
- package/dist/chunk-OTCEJN64.js.map +0 -1
- package/dist/chunk-PO65I3MQ.js.map +0 -1
- package/dist/chunk-R5NFCEZ3.js.map +0 -1
- package/dist/chunk-SFY2KMHG.js.map +0 -1
package/dist/tokens.css
CHANGED
|
@@ -65,10 +65,7 @@
|
|
|
65
65
|
--ds-accent-primary: var(--ds-primary-700);
|
|
66
66
|
--ds-accent-primary-hover: var(--ds-primary-800);
|
|
67
67
|
--ds-accent-primary-active: var(--ds-primary-900);
|
|
68
|
-
--ds-border-focus: var(--ds-primary-700);
|
|
69
68
|
--ds-ring-active: var(--ds-accent-soft);
|
|
70
|
-
--ds-input-focus-ring: var(--ds-ring-active);
|
|
71
|
-
--ds-shadow-focus: 0 0 0 2px var(--ds-primary-700);
|
|
72
69
|
--ds-tint-strength: 0.15;
|
|
73
70
|
--ds-gradient: linear-gradient(135deg, oklch(0.4 0.1320 250), oklch(0.550 0.1100 210));
|
|
74
71
|
--ds-gradient-start: oklch(0.4 0.1320 250);
|
|
@@ -80,7 +77,7 @@
|
|
|
80
77
|
--ds-accent-subtle: color-mix(in srgb, var(--ds-accent-primary) 10%, transparent);
|
|
81
78
|
--ds-accent-muted: color-mix(in srgb, var(--ds-accent-primary) 20%, transparent);
|
|
82
79
|
--ds-accent-soft: color-mix(in srgb, var(--ds-accent-primary) 30%, transparent);
|
|
83
|
-
--ds-accent-subtle-text: var(--ds-accent-primary);
|
|
80
|
+
--ds-accent-subtle-text: var(--ds-accent-text, var(--ds-accent-primary));
|
|
84
81
|
--ds-accent-bg: oklch(0.92 0.0300 250);
|
|
85
82
|
--ds-accent-text: oklch(0.35 0.1000 250);
|
|
86
83
|
--ds-status-success: oklch(0.55 0.12 150);
|
|
@@ -155,7 +152,7 @@
|
|
|
155
152
|
--ds-nav-h-track-gap: 0px;
|
|
156
153
|
--ds-nav-h-badge-bg: var(--ds-accent-primary);
|
|
157
154
|
--ds-nav-v-active-bg: var(--ds-tab-active-bg);
|
|
158
|
-
--ds-nav-v-active-text: var(--ds-accent-
|
|
155
|
+
--ds-nav-v-active-text: var(--ds-accent-ink);
|
|
159
156
|
--ds-nav-v-active-rail: var(--ds-border-width-thick);
|
|
160
157
|
--ds-nav-v-item-radius: var(--ds-radius-sm);
|
|
161
158
|
--ds-nav-v-track-border: 0px;
|
|
@@ -163,12 +160,12 @@
|
|
|
163
160
|
--ds-nav-v-active-muted: var(--ds-text-secondary);
|
|
164
161
|
--ds-nav-v-badge-bg: var(--ds-accent-primary);
|
|
165
162
|
--ds-tree-active-bg: var(--ds-tab-active-bg);
|
|
166
|
-
--ds-tree-active-text: var(--ds-accent-
|
|
163
|
+
--ds-tree-active-text: var(--ds-accent-ink);
|
|
167
164
|
--ds-tree-active-muted: var(--ds-text-muted);
|
|
168
165
|
--ds-tree-active-rail: var(--ds-border-width-thick);
|
|
169
166
|
--ds-sidebar-active-bg: var(--ds-sidebar-accent-subtle);
|
|
170
|
-
--ds-sidebar-active-text: var(--ds-sidebar-accent);
|
|
171
|
-
--ds-sidebar-active-accent: var(--ds-sidebar-accent);
|
|
167
|
+
--ds-sidebar-active-text: var(--ds-sidebar-accent-ink);
|
|
168
|
+
--ds-sidebar-active-accent: var(--ds-sidebar-accent-ink);
|
|
172
169
|
--ds-sidebar-active-rail: var(--ds-border-width-thick);
|
|
173
170
|
--ds-sidebar-active-image: none;
|
|
174
171
|
--ds-switch-off-fill: transparent;
|
|
@@ -188,7 +185,7 @@
|
|
|
188
185
|
--ds-nav-h-track-gap: 0px;
|
|
189
186
|
--ds-nav-h-badge-bg: var(--ds-accent-primary);
|
|
190
187
|
--ds-nav-v-active-bg: var(--ds-tab-active-bg);
|
|
191
|
-
--ds-nav-v-active-text: var(--ds-accent-
|
|
188
|
+
--ds-nav-v-active-text: var(--ds-accent-ink);
|
|
192
189
|
--ds-nav-v-active-rail: var(--ds-border-width-thick);
|
|
193
190
|
--ds-nav-v-item-radius: var(--ds-radius-sm);
|
|
194
191
|
--ds-nav-v-track-border: 0px;
|
|
@@ -196,12 +193,12 @@
|
|
|
196
193
|
--ds-nav-v-active-muted: var(--ds-text-secondary);
|
|
197
194
|
--ds-nav-v-badge-bg: var(--ds-accent-primary);
|
|
198
195
|
--ds-tree-active-bg: var(--ds-tab-active-bg);
|
|
199
|
-
--ds-tree-active-text: var(--ds-accent-
|
|
196
|
+
--ds-tree-active-text: var(--ds-accent-ink);
|
|
200
197
|
--ds-tree-active-muted: var(--ds-text-muted);
|
|
201
198
|
--ds-tree-active-rail: var(--ds-border-width-thick);
|
|
202
199
|
--ds-sidebar-active-bg: var(--ds-sidebar-accent-subtle);
|
|
203
|
-
--ds-sidebar-active-text: var(--ds-sidebar-accent);
|
|
204
|
-
--ds-sidebar-active-accent: var(--ds-sidebar-accent);
|
|
200
|
+
--ds-sidebar-active-text: var(--ds-sidebar-accent-ink);
|
|
201
|
+
--ds-sidebar-active-accent: var(--ds-sidebar-accent-ink);
|
|
205
202
|
--ds-sidebar-active-rail: var(--ds-border-width-thick);
|
|
206
203
|
--ds-sidebar-active-image: none;
|
|
207
204
|
--ds-switch-off-fill: transparent;
|
|
@@ -229,6 +226,23 @@
|
|
|
229
226
|
--ds-sidebar-item-active: var(--ds-neutral-200);
|
|
230
227
|
}
|
|
231
228
|
|
|
229
|
+
/* Readable colours — light mode: derived to reach their minimum contrast on this theme's grounds */
|
|
230
|
+
:root:not([data-mode="dark"]), [data-mode="light"] {
|
|
231
|
+
--ds-focus: var(--ds-accent-primary);
|
|
232
|
+
--ds-accent-ink: var(--ds-accent-primary);
|
|
233
|
+
--ds-text-muted: oklch(0.52 calc(0.0067 * var(--ds-sat-neutral)) var(--ds-hue-neutral));
|
|
234
|
+
--ds-text-secondary: var(--ds-neutral-600);
|
|
235
|
+
--ds-status-success-text: oklch(0.35 0.1000 150);
|
|
236
|
+
--ds-status-warning-text: oklch(0.35 0.1000 55);
|
|
237
|
+
--ds-status-error-text: oklch(0.35 0.1000 20);
|
|
238
|
+
--ds-status-info-text: oklch(0.35 0.1000 200);
|
|
239
|
+
--ds-text-on-primary-muted: var(--ds-text-on-primary);
|
|
240
|
+
--ds-sidebar-text-muted: var(--ds-text-muted);
|
|
241
|
+
--ds-sidebar-text-secondary: var(--ds-text-secondary);
|
|
242
|
+
--ds-sidebar-focus: var(--ds-focus);
|
|
243
|
+
--ds-sidebar-accent-ink: var(--ds-sidebar-accent);
|
|
244
|
+
}
|
|
245
|
+
|
|
232
246
|
/* Dark palette overrides — dark mode */
|
|
233
247
|
/* This theme defaults to light. To offer a mode switch, set data-mode="dark" on <html>. No attribute renders the default. */
|
|
234
248
|
[data-mode="dark"] {
|
|
@@ -240,10 +254,7 @@
|
|
|
240
254
|
--ds-accent-primary: var(--ds-primary-500);
|
|
241
255
|
--ds-accent-primary-hover: var(--ds-primary-400);
|
|
242
256
|
--ds-accent-primary-active: var(--ds-primary-300);
|
|
243
|
-
--ds-border-focus: var(--ds-primary-500);
|
|
244
257
|
--ds-ring-active: var(--ds-accent-soft);
|
|
245
|
-
--ds-input-focus-ring: var(--ds-ring-active);
|
|
246
|
-
--ds-shadow-focus: 0 0 0 2px var(--ds-primary-500);
|
|
247
258
|
--ds-tint-strength: 0.15;
|
|
248
259
|
--ds-gradient: linear-gradient(135deg, oklch(0.55 0.1300 223), oklch(0.330 0.0945 240));
|
|
249
260
|
--ds-gradient-start: oklch(0.55 0.1300 223);
|
|
@@ -310,7 +321,7 @@
|
|
|
310
321
|
--ds-status-success-bg: oklch(0.22 0.02 150);
|
|
311
322
|
--ds-status-warning: oklch(0.75 0.12 55);
|
|
312
323
|
--ds-status-warning-bg: oklch(0.22 0.025 55);
|
|
313
|
-
--ds-status-warning-text: oklch(0.
|
|
324
|
+
--ds-status-warning-text: oklch(0.92 0.0300 55);
|
|
314
325
|
--ds-status-error: oklch(0.65 0.15 20);
|
|
315
326
|
--ds-status-error-bg: oklch(0.22 0.02 20);
|
|
316
327
|
--ds-status-info: oklch(0.65 0.10 200);
|
|
@@ -319,6 +330,77 @@
|
|
|
319
330
|
--ds-text-on-warning: oklch(0.350 0.1000 55);
|
|
320
331
|
--ds-text-on-error: oklch(0.220 0.1000 20);
|
|
321
332
|
--ds-text-on-info: oklch(0.230 0.1000 200);
|
|
333
|
+
--ds-focus: oklch(0.67 calc(0.1773 * var(--ds-sat-primary)) var(--ds-hue-primary));
|
|
334
|
+
--ds-accent-ink: oklch(0.78 calc(0.145 * var(--ds-sat-primary)) var(--ds-hue-primary));
|
|
335
|
+
--ds-text-muted: oklch(0.74 calc(0.0092 * var(--ds-sat-neutral)) var(--ds-hue-neutral));
|
|
336
|
+
--ds-text-secondary: var(--ds-neutral-300);
|
|
337
|
+
--ds-status-success-text: oklch(0.92 0.0300 150);
|
|
338
|
+
--ds-status-error-text: oklch(0.92 0.0300 20);
|
|
339
|
+
--ds-status-info-text: oklch(0.92 0.0300 200);
|
|
340
|
+
--ds-text-on-primary-muted: var(--ds-text-on-primary);
|
|
341
|
+
--ds-sidebar-text-muted: var(--ds-text-muted);
|
|
342
|
+
--ds-sidebar-text-secondary: var(--ds-text-secondary);
|
|
343
|
+
--ds-sidebar-focus: var(--ds-focus);
|
|
344
|
+
--ds-sidebar-accent-ink: oklch(0.66 calc(0.18 * var(--ds-sat-primary)) var(--ds-hue-primary));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* A wrapper in the light mode inside the page switched to dark (a component given its own mode) takes its own values back */
|
|
348
|
+
[data-mode="light"] {
|
|
349
|
+
--ds-hue-primary: 250;
|
|
350
|
+
--ds-sat-primary: 0.8;
|
|
351
|
+
--ds-accent-primary: var(--ds-primary-700);
|
|
352
|
+
--ds-accent-primary-hover: var(--ds-primary-800);
|
|
353
|
+
--ds-accent-primary-active: var(--ds-primary-900);
|
|
354
|
+
--ds-gradient: linear-gradient(135deg, oklch(0.4 0.1320 250), oklch(0.550 0.1100 210));
|
|
355
|
+
--ds-gradient-start: oklch(0.4 0.1320 250);
|
|
356
|
+
--ds-gradient-end: oklch(0.550 0.1100 210);
|
|
357
|
+
--ds-text-muted-on-tint: var(--ds-neutral-600);
|
|
358
|
+
--ds-accent-bg: oklch(0.92 0.0300 250);
|
|
359
|
+
--ds-accent-text: oklch(0.35 0.1000 250);
|
|
360
|
+
--ds-check-bg: var(--ds-accent-primary);
|
|
361
|
+
--ds-check-fg: var(--ds-text-on-primary);
|
|
362
|
+
--ds-check-border: var(--ds-accent-primary);
|
|
363
|
+
--ds-palette-1-bold: oklch(0.55 0.1200 110);
|
|
364
|
+
--ds-palette-1-subtle: oklch(0.92 0.0300 110);
|
|
365
|
+
--ds-palette-1-dark: oklch(0.35 0.1000 110);
|
|
366
|
+
--ds-palette-1-bg: var(--ds-palette-1-subtle);
|
|
367
|
+
--ds-palette-1-text: var(--ds-palette-1-dark);
|
|
368
|
+
--ds-palette-1-chart: var(--ds-palette-1-bold);
|
|
369
|
+
--ds-palette-2-bold: oklch(0.54 0.1200 207.50800000000004);
|
|
370
|
+
--ds-palette-2-subtle: oklch(0.92 0.0300 207.50800000000004);
|
|
371
|
+
--ds-palette-2-dark: oklch(0.35 0.1000 207.50800000000004);
|
|
372
|
+
--ds-palette-2-bg: var(--ds-palette-2-subtle);
|
|
373
|
+
--ds-palette-2-text: var(--ds-palette-2-dark);
|
|
374
|
+
--ds-palette-2-chart: var(--ds-palette-2-bold);
|
|
375
|
+
--ds-palette-3-bold: oklch(0.55 0.1200 345.0160000000001);
|
|
376
|
+
--ds-palette-3-subtle: oklch(0.92 0.0300 345.0160000000001);
|
|
377
|
+
--ds-palette-3-dark: oklch(0.35 0.1000 345.0160000000001);
|
|
378
|
+
--ds-palette-3-bg: var(--ds-palette-3-subtle);
|
|
379
|
+
--ds-palette-3-text: var(--ds-palette-3-dark);
|
|
380
|
+
--ds-palette-3-chart: var(--ds-palette-3-bold);
|
|
381
|
+
--ds-palette-4-bold: oklch(0.55 0.1200 162.524);
|
|
382
|
+
--ds-palette-4-subtle: oklch(0.92 0.0300 162.524);
|
|
383
|
+
--ds-palette-4-dark: oklch(0.35 0.1000 162.524);
|
|
384
|
+
--ds-palette-4-bg: var(--ds-palette-4-subtle);
|
|
385
|
+
--ds-palette-4-text: var(--ds-palette-4-dark);
|
|
386
|
+
--ds-palette-4-chart: var(--ds-palette-4-bold);
|
|
387
|
+
--ds-palette-5-bold: oklch(0.55 0.1200 275.03200000000004);
|
|
388
|
+
--ds-palette-5-subtle: oklch(0.92 0.0300 275.03200000000004);
|
|
389
|
+
--ds-palette-5-dark: oklch(0.35 0.1000 275.03200000000004);
|
|
390
|
+
--ds-palette-5-bg: var(--ds-palette-5-subtle);
|
|
391
|
+
--ds-palette-5-text: var(--ds-palette-5-dark);
|
|
392
|
+
--ds-palette-5-chart: var(--ds-palette-5-bold);
|
|
393
|
+
--ds-chart-1: var(--ds-accent-primary);
|
|
394
|
+
--ds-chart-1-soft: color-mix(in oklch, var(--ds-accent-primary) 30%, transparent);
|
|
395
|
+
--ds-status-success: oklch(0.55 0.12 150);
|
|
396
|
+
--ds-status-success-bg: oklch(0.92 0.03 150);
|
|
397
|
+
--ds-status-warning: oklch(0.70 0.12 55);
|
|
398
|
+
--ds-status-warning-bg: oklch(0.92 0.035 55);
|
|
399
|
+
--ds-status-error: oklch(0.55 0.15 20);
|
|
400
|
+
--ds-status-error-bg: oklch(0.92 0.03 20);
|
|
401
|
+
--ds-status-info: oklch(0.55 0.10 200);
|
|
402
|
+
--ds-status-info-bg: oklch(0.92 0.025 200);
|
|
403
|
+
--ds-text-on-warning: oklch(0.300 0.1000 55);
|
|
322
404
|
}
|
|
323
405
|
|
|
324
406
|
/* Dark portals on a light page (a dark sidebar's tooltips and menus carry data-ds-overlay="dark") */
|
|
@@ -331,7 +413,7 @@
|
|
|
331
413
|
--ds-bg-emphasis: var(--ds-neutral-600);
|
|
332
414
|
--ds-text-primary: var(--ds-neutral-50);
|
|
333
415
|
--ds-text-secondary: var(--ds-neutral-300);
|
|
334
|
-
--ds-text-muted: var(--ds-neutral-
|
|
416
|
+
--ds-text-muted: oklch(0.74 calc(0.0092 * var(--ds-sat-neutral)) var(--ds-hue-neutral));
|
|
335
417
|
--ds-text-on-success: oklch(0.240 0.1000 150);
|
|
336
418
|
--ds-text-on-warning: oklch(0.350 0.1000 55);
|
|
337
419
|
--ds-text-on-error: oklch(0.220 0.1000 20);
|
|
@@ -339,12 +421,11 @@
|
|
|
339
421
|
--ds-border-default: var(--ds-neutral-600);
|
|
340
422
|
--ds-border-subtle: var(--ds-neutral-700);
|
|
341
423
|
--ds-border-strong: var(--ds-neutral-400);
|
|
342
|
-
--ds-border-focus: var(--ds-primary-500);
|
|
343
424
|
--ds-status-success: oklch(0.65 0.12 150);
|
|
344
425
|
--ds-status-success-bg: oklch(0.22 0.02 150);
|
|
345
426
|
--ds-status-warning: oklch(0.75 0.12 55);
|
|
346
427
|
--ds-status-warning-bg: oklch(0.22 0.025 55);
|
|
347
|
-
--ds-status-warning-text: oklch(0.
|
|
428
|
+
--ds-status-warning-text: oklch(0.92 0.0300 55);
|
|
348
429
|
--ds-status-error: oklch(0.65 0.15 20);
|
|
349
430
|
--ds-status-error-bg: oklch(0.22 0.02 20);
|
|
350
431
|
--ds-status-info: oklch(0.65 0.10 200);
|
|
@@ -358,8 +439,6 @@
|
|
|
358
439
|
--ds-input-border: var(--ds-neutral-600);
|
|
359
440
|
--ds-input-border-hover: var(--ds-neutral-500);
|
|
360
441
|
--ds-control-edge-strong: oklch(0.645 calc(0.008 * var(--ds-sat-neutral)) var(--ds-hue-neutral));
|
|
361
|
-
--ds-input-focus-ring: var(--ds-ring-active);
|
|
362
|
-
--ds-shadow-focus: 0 0 0 2px var(--ds-primary-500);
|
|
363
442
|
--ds-accent-primary: var(--ds-primary-500);
|
|
364
443
|
--ds-accent-primary-hover: var(--ds-primary-400);
|
|
365
444
|
--ds-accent-primary-active: var(--ds-primary-300);
|
|
@@ -375,7 +454,7 @@
|
|
|
375
454
|
--ds-accent-subtle: color-mix(in srgb, var(--ds-accent-primary) 10%, transparent);
|
|
376
455
|
--ds-accent-muted: color-mix(in srgb, var(--ds-accent-primary) 20%, transparent);
|
|
377
456
|
--ds-accent-soft: color-mix(in srgb, var(--ds-accent-primary) 30%, transparent);
|
|
378
|
-
--ds-accent-subtle-text: var(--ds-accent-primary);
|
|
457
|
+
--ds-accent-subtle-text: var(--ds-accent-text, var(--ds-accent-primary));
|
|
379
458
|
--ds-accent-bg: oklch(0.35 0.1000 223);
|
|
380
459
|
--ds-accent-text: oklch(0.92 0.0300 223);
|
|
381
460
|
--ds-check-bg: var(--ds-primary-400);
|
|
@@ -391,7 +470,7 @@
|
|
|
391
470
|
--ds-nav-h-track-gap: 0px;
|
|
392
471
|
--ds-nav-h-badge-bg: var(--ds-accent-primary);
|
|
393
472
|
--ds-nav-v-active-bg: var(--ds-tab-active-bg);
|
|
394
|
-
--ds-nav-v-active-text: var(--ds-accent-
|
|
473
|
+
--ds-nav-v-active-text: var(--ds-accent-ink);
|
|
395
474
|
--ds-nav-v-active-rail: var(--ds-border-width-thick);
|
|
396
475
|
--ds-nav-v-item-radius: var(--ds-radius-sm);
|
|
397
476
|
--ds-nav-v-track-border: 0px;
|
|
@@ -399,16 +478,22 @@
|
|
|
399
478
|
--ds-nav-v-active-muted: var(--ds-text-secondary);
|
|
400
479
|
--ds-nav-v-badge-bg: var(--ds-accent-primary);
|
|
401
480
|
--ds-tree-active-bg: var(--ds-tab-active-bg);
|
|
402
|
-
--ds-tree-active-text: var(--ds-accent-
|
|
481
|
+
--ds-tree-active-text: var(--ds-accent-ink);
|
|
403
482
|
--ds-tree-active-muted: var(--ds-text-muted);
|
|
404
483
|
--ds-tree-active-rail: var(--ds-border-width-thick);
|
|
405
484
|
--ds-sidebar-active-bg: var(--ds-sidebar-accent-subtle);
|
|
406
|
-
--ds-sidebar-active-text: var(--ds-sidebar-accent);
|
|
407
|
-
--ds-sidebar-active-accent: var(--ds-sidebar-accent);
|
|
485
|
+
--ds-sidebar-active-text: var(--ds-sidebar-accent-ink);
|
|
486
|
+
--ds-sidebar-active-accent: var(--ds-sidebar-accent-ink);
|
|
408
487
|
--ds-sidebar-active-rail: var(--ds-border-width-thick);
|
|
409
488
|
--ds-sidebar-active-image: none;
|
|
410
489
|
--ds-switch-off-fill: transparent;
|
|
411
490
|
--ds-switch-off-edge: var(--ds-control-edge-strong);
|
|
412
491
|
--ds-switch-off-knob: color-mix(in oklab, var(--ds-control-edge-strong) var(--ds-switch-knob-share, 100%), var(--ds-bg-surface));
|
|
413
492
|
--ds-check-gradient: none;
|
|
493
|
+
--ds-focus: oklch(0.67 calc(0.1773 * var(--ds-sat-primary)) var(--ds-hue-primary));
|
|
494
|
+
--ds-accent-ink: oklch(0.78 calc(0.145 * var(--ds-sat-primary)) var(--ds-hue-primary));
|
|
495
|
+
--ds-status-success-text: oklch(0.92 0.0300 150);
|
|
496
|
+
--ds-status-error-text: oklch(0.92 0.0300 20);
|
|
497
|
+
--ds-status-info-text: oklch(0.92 0.0300 200);
|
|
498
|
+
--ds-text-on-primary-muted: var(--ds-text-on-primary);
|
|
414
499
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -5,10 +5,52 @@ declare const GLASS_BACKDROP = "[backdrop-filter:var(--ds-glass-filter)] [-webki
|
|
|
5
5
|
declare const GLASS_SURFACE = "[backdrop-filter:var(--ds-glass-filter)] [-webkit-backdrop-filter:var(--ds-glass-filter)] shadow-[var(--ds-shadow-card),var(--ds-glass-inset)]";
|
|
6
6
|
declare const GLASS_OVERLAY = "[backdrop-filter:var(--ds-glass-filter)] [-webkit-backdrop-filter:var(--ds-glass-filter)] shadow-[var(--ds-shadow-modal),var(--ds-glass-inset)]";
|
|
7
7
|
declare const GLASS_DROPDOWN = "[backdrop-filter:var(--ds-glass-filter)] [-webkit-backdrop-filter:var(--ds-glass-filter)] shadow-[var(--ds-shadow-dropdown),var(--ds-glass-inset)]";
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
declare const FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:shadow-none";
|
|
9
|
+
/**
|
|
10
|
+
* On a wrapper that shows focus for a control inside it: HAS_FOCUS_RING, from the keyboard only (`:has(:focus-visible)`).
|
|
11
|
+
* FOCUS_WITHIN_RING shows it on any focus inside, a click's too, since `:focus-within` has no keyboard-only form: kept
|
|
12
|
+
* for code that uses it, and a new wrapper takes HAS_FOCUS_RING (D6: keyboard focus shows only from the keyboard).
|
|
13
|
+
*/
|
|
14
|
+
declare const FOCUS_WITHIN_RING = "focus-within:outline-2 focus-within:outline-solid focus-within:outline-offset-2 focus-within:outline-[var(--ds-focus)] focus-within:shadow-none";
|
|
15
|
+
declare const HAS_FOCUS_RING = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--ds-focus)] has-[:focus-visible]:shadow-none";
|
|
16
|
+
/**
|
|
17
|
+
* The outline on a drawn child, where the element that takes focus is hidden or wraps it: a checkbox's box beside its
|
|
18
|
+
* input (`peer`), a radio's circle inside its button, a separator's grip, a Gantt milestone's diamond (`group`). The
|
|
19
|
+
* same outline, gap and shadow rule.
|
|
20
|
+
*/
|
|
21
|
+
declare const PEER_FOCUS_RING = "peer-focus-visible:outline-2 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[var(--ds-focus)] peer-focus-visible:shadow-none";
|
|
22
|
+
declare const GROUP_FOCUS_RING = "group-focus-visible:outline-2 group-focus-visible:outline-solid group-focus-visible:outline-offset-2 group-focus-visible:outline-[var(--ds-focus)] group-focus-visible:shadow-none";
|
|
23
|
+
/**
|
|
24
|
+
* The same outline drawn inside the element's edge, for edge-to-edge rows, cells and scroll regions only (the plan's
|
|
25
|
+
* P3): elements that are never filled solid, since inside the edge there is no gap to keep one colour readable on a fill.
|
|
26
|
+
* It sits `--ds-focus-inset` in: 5 px, deeper where the theme's corners are rounder, so it clears a table's rounded
|
|
27
|
+
* corners (D8, the owner's decision A); what such an element holds keeps 1 px more clear of its edge. Anywhere else the
|
|
28
|
+
* outline stays outside, with room made for it. Moved here from use-keyboard-scroll.ts (Sprint 30) so the server-safe
|
|
29
|
+
* `gridsmith-ui/utils` can export it.
|
|
30
|
+
*/
|
|
31
|
+
declare const FOCUS_INSET = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-[var(--ds-focus-inset)] focus-visible:outline-[var(--ds-focus)]";
|
|
32
|
+
/**
|
|
33
|
+
* A field (D6, P4, P13). Reached with Tab: the keyboard's outline, and its border in the focus colour, as GOV.UK turns a
|
|
34
|
+
* focused input's border: it is where you type. Clicked into: the active look instead, the accent border and its soft
|
|
35
|
+
* halo (`ring-2` in --ds-ring-active, laid over the field's own shadow), and no outline. A browser matches :focus-visible
|
|
36
|
+
* on a text field either way, so lib/input-modality.ts notes on <html> whether a pointer moved focus last; with no note
|
|
37
|
+
* yet, the outline. The field keeps its own (inset) shadow in both: no shadow-none here.
|
|
38
|
+
*
|
|
39
|
+
* The wrapper forms (_WITHIN_ and _HAS_, for a box round the part you type in) show it while that part has focus, and
|
|
40
|
+
* not while a control of the field's own does: a button, a select, a link, a checkbox, a radio or a switch inside it (a
|
|
41
|
+
* tag's remove, a picker's chevron, a composer's Send, an editor's toolbar or a task's checkbox), or anything in a popup
|
|
42
|
+
* inside the box (a dialog of its own; a field that is itself in a dialog still shows it). That control shows its own outline, so there is one focus point, never
|
|
43
|
+
* two (P11). _WITHIN_ reads :focus, as a click on a date's segment isn't :focus-visible; _HAS_ reads :focus-visible.
|
|
44
|
+
* Either outranks the field's hover border, so hovering keeps the look.
|
|
45
|
+
*/
|
|
46
|
+
declare const FIELD_FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:focus-visible:outline-none [[data-input-modality=pointer]_&]:focus-visible:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:focus-visible:ring-2 [[data-input-modality=pointer]_&]:focus-visible:ring-[var(--ds-ring-active)]";
|
|
47
|
+
declare const FIELD_FOCUS_WITHIN_RING = "has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-solid has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-offset-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-[var(--ds-focus)] has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-[var(--ds-ring-active)]";
|
|
48
|
+
declare const FIELD_HAS_FOCUS_RING = "has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-solid has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-offset-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-[var(--ds-focus)] has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-[var(--ds-ring-active)]";
|
|
49
|
+
declare const ERROR_FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:focus-visible:outline-none [[data-input-modality=pointer]_&]:focus-visible:ring-2 [[data-input-modality=pointer]_&]:focus-visible:ring-[var(--ds-ring-error)]";
|
|
50
|
+
declare const ERROR_FOCUS_WITHIN_RING = "has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-solid has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-offset-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-[var(--ds-focus)] has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-[var(--ds-ring-error)]";
|
|
51
|
+
declare const ERROR_HAS_FOCUS_RING = "has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-solid has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-offset-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-[var(--ds-focus)] has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-[var(--ds-ring-error)]";
|
|
52
|
+
declare const ACTIVE_RING = "border-[var(--ds-accent-ink)] ring-2 ring-[var(--ds-ring-active)]";
|
|
53
|
+
declare const ERROR_ACTIVE_RING = "border-[var(--ds-status-error)] ring-2 ring-[var(--ds-ring-error)]";
|
|
12
54
|
|
|
13
55
|
/**
|
|
14
56
|
* The locale LocaleProvider writes in on the server for a page language and a request's Accept-Language header (Sprint
|
|
@@ -284,4 +326,4 @@ type CategoryKind = "names" | "scale";
|
|
|
284
326
|
*/
|
|
285
327
|
declare function categoryKind(labels: ReadonlyArray<unknown>, locale?: string): CategoryKind;
|
|
286
328
|
|
|
287
|
-
export { ACTIVE_RING, type CategoryKind, type DateInput, type DateRangeWords, FOCUS_RING, FOCUS_WITHIN_RING, GLASS_BACKDROP, GLASS_DROPDOWN, GLASS_OVERLAY, GLASS_SURFACE, HAS_FOCUS_RING, type Occurrence, type Recurrence, type RecurrenceFrequency, type RecurrencePreset, type RecurrenceScope, type RepeatChange, type RepeatingEvent, TIME_ZOOMS, type TimeZoom, type WeekOfMonth, type Weekday, canonicalTimeZone, categoryKind, cn, countEdited, dateOfDay, dayOf, deleteOccurrence, describeRecurrence, endDayOf, formatDateRange, nthOf, occurrenceOn, occurrences, parseRRule, readRecurrence, recurrencePresets, requestLocale, sameRecurrence, saveOccurrence, timeExtent, timeZoneOffset, toRRule };
|
|
329
|
+
export { ACTIVE_RING, type CategoryKind, type DateInput, type DateRangeWords, ERROR_ACTIVE_RING, ERROR_FOCUS_RING, ERROR_FOCUS_WITHIN_RING, ERROR_HAS_FOCUS_RING, FIELD_FOCUS_RING, FIELD_FOCUS_WITHIN_RING, FIELD_HAS_FOCUS_RING, FOCUS_INSET, FOCUS_RING, FOCUS_WITHIN_RING, GLASS_BACKDROP, GLASS_DROPDOWN, GLASS_OVERLAY, GLASS_SURFACE, GROUP_FOCUS_RING, HAS_FOCUS_RING, type Occurrence, PEER_FOCUS_RING, type Recurrence, type RecurrenceFrequency, type RecurrencePreset, type RecurrenceScope, type RepeatChange, type RepeatingEvent, TIME_ZOOMS, type TimeZoom, type WeekOfMonth, type Weekday, canonicalTimeZone, categoryKind, cn, countEdited, dateOfDay, dayOf, deleteOccurrence, describeRecurrence, endDayOf, formatDateRange, nthOf, occurrenceOn, occurrences, parseRRule, readRecurrence, recurrencePresets, requestLocale, sameRecurrence, saveOccurrence, timeExtent, timeZoneOffset, toRRule };
|
package/dist/utils.js
CHANGED
|
@@ -9,10 +9,20 @@ var GLASS_BACKDROP = "[backdrop-filter:var(--ds-glass-filter)] [-webkit-backdrop
|
|
|
9
9
|
var GLASS_SURFACE = `${GLASS_BACKDROP} shadow-[var(--ds-shadow-card),var(--ds-glass-inset)]`;
|
|
10
10
|
var GLASS_OVERLAY = `${GLASS_BACKDROP} shadow-[var(--ds-shadow-modal),var(--ds-glass-inset)]`;
|
|
11
11
|
var GLASS_DROPDOWN = `${GLASS_BACKDROP} shadow-[var(--ds-shadow-dropdown),var(--ds-glass-inset)]`;
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
var FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:shadow-none";
|
|
13
|
+
var FOCUS_WITHIN_RING = "focus-within:outline-2 focus-within:outline-solid focus-within:outline-offset-2 focus-within:outline-[var(--ds-focus)] focus-within:shadow-none";
|
|
14
|
+
var HAS_FOCUS_RING = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--ds-focus)] has-[:focus-visible]:shadow-none";
|
|
15
|
+
var PEER_FOCUS_RING = "peer-focus-visible:outline-2 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[var(--ds-focus)] peer-focus-visible:shadow-none";
|
|
16
|
+
var GROUP_FOCUS_RING = "group-focus-visible:outline-2 group-focus-visible:outline-solid group-focus-visible:outline-offset-2 group-focus-visible:outline-[var(--ds-focus)] group-focus-visible:shadow-none";
|
|
17
|
+
var FOCUS_INSET = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:-outline-offset-[var(--ds-focus-inset)] focus-visible:outline-[var(--ds-focus)]";
|
|
18
|
+
var FIELD_FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:focus-visible:outline-none [[data-input-modality=pointer]_&]:focus-visible:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:focus-visible:ring-2 [[data-input-modality=pointer]_&]:focus-visible:ring-[var(--ds-ring-active)]";
|
|
19
|
+
var FIELD_FOCUS_WITHIN_RING = "has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-solid has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-offset-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-[var(--ds-focus)] has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-[var(--ds-ring-active)]";
|
|
20
|
+
var FIELD_HAS_FOCUS_RING = "has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-solid has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-offset-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-[var(--ds-focus)] has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-focus)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-accent-ink)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-[var(--ds-ring-active)]";
|
|
21
|
+
var ERROR_FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2 focus-visible:outline-[var(--ds-focus)] focus-visible:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:focus-visible:outline-none [[data-input-modality=pointer]_&]:focus-visible:ring-2 [[data-input-modality=pointer]_&]:focus-visible:ring-[var(--ds-ring-error)]";
|
|
22
|
+
var ERROR_FOCUS_WITHIN_RING = "has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-solid has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-offset-2 has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-[var(--ds-focus)] has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus))]:ring-[var(--ds-ring-error)]";
|
|
23
|
+
var ERROR_HAS_FOCUS_RING = "has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-solid has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-offset-2 has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-[var(--ds-focus)] has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:border-[var(--ds-status-error)] [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:outline-none [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-2 [[data-input-modality=pointer]_&]:has-[:focus-visible:not(button,select,a,[role=button],input[type=checkbox],input[type=radio],[role=checkbox],[role=radio],[role=switch])]:[&:not(:has([role=dialog]_:focus-visible))]:ring-[var(--ds-ring-error)]";
|
|
24
|
+
var ACTIVE_RING = "border-[var(--ds-accent-ink)] ring-2 ring-[var(--ds-ring-active)]";
|
|
25
|
+
var ERROR_ACTIVE_RING = "border-[var(--ds-status-error)] ring-2 ring-[var(--ds-ring-error)]";
|
|
16
26
|
|
|
17
27
|
// ../../showcase/src/lib/format-locale.ts
|
|
18
28
|
var last = null;
|
|
@@ -872,6 +882,6 @@ function categoryKind(labels, locale) {
|
|
|
872
882
|
return "scale";
|
|
873
883
|
}
|
|
874
884
|
|
|
875
|
-
export { ACTIVE_RING, FOCUS_RING, FOCUS_WITHIN_RING, GLASS_BACKDROP, GLASS_DROPDOWN, GLASS_OVERLAY, GLASS_SURFACE, HAS_FOCUS_RING, TIME_ZOOMS, canonicalTimeZone, categoryKind, cn, countEdited, dateOfDay, dayOf, deleteOccurrence, describeRecurrence, endDayOf, formatDateRange, nthOf, occurrenceOn, occurrences, parseRRule, readRecurrence, recurrencePresets, requestLocale, sameRecurrence, saveOccurrence, timeExtent, timeZoneOffset, toRRule };
|
|
885
|
+
export { ACTIVE_RING, ERROR_ACTIVE_RING, ERROR_FOCUS_RING, ERROR_FOCUS_WITHIN_RING, ERROR_HAS_FOCUS_RING, FIELD_FOCUS_RING, FIELD_FOCUS_WITHIN_RING, FIELD_HAS_FOCUS_RING, FOCUS_INSET, FOCUS_RING, FOCUS_WITHIN_RING, GLASS_BACKDROP, GLASS_DROPDOWN, GLASS_OVERLAY, GLASS_SURFACE, GROUP_FOCUS_RING, HAS_FOCUS_RING, PEER_FOCUS_RING, TIME_ZOOMS, canonicalTimeZone, categoryKind, cn, countEdited, dateOfDay, dayOf, deleteOccurrence, describeRecurrence, endDayOf, formatDateRange, nthOf, occurrenceOn, occurrences, parseRRule, readRecurrence, recurrencePresets, requestLocale, sameRecurrence, saveOccurrence, timeExtent, timeZoneOffset, toRRule };
|
|
876
886
|
//# sourceMappingURL=utils.js.map
|
|
877
887
|
//# sourceMappingURL=utils.js.map
|