@zazz-ui/core 0.12.0 → 0.12.2

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.
@@ -57,13 +57,13 @@
57
57
  /* base */
58
58
  --color-background: light-dark(var(--color-white), var(--color-neutral-900));
59
59
  --color-foreground: light-dark(var(--color-neutral-900), var(--color-white));
60
- --color-border: light-dark(var(--color-neutral-100), var(--color-neutral-800));
60
+ --color-border: light-dark(var(--color-shade-50), var(--color-tint-200));
61
61
  --color-border-foreground: light-dark(var(--color-tint-950), var(--color-shade-500));
62
62
  --color-card: light-dark(var(--color-white), var(--color-neutral-950));
63
63
  --color-card-foreground: light-dark(var(--color-neutral-900), var(--color-white));
64
64
  --color-popover: light-dark(var(--color-white), var(--color-neutral-950));
65
65
  --color-popover-foreground: light-dark(var(--color-neutral-900), var(--color-white));
66
- --color-input: light-dark(var(--color-neutral-50), var(--color-tint-100));
66
+ --color-input: light-dark(var(--color-neutral-50), var(--color-neutral-950));
67
67
  --color-input-foreground: light-dark(var(--color-neutral-900), var(--color-white));
68
68
 
69
69
  /* selection */
@@ -175,7 +175,7 @@
175
175
  numbers; browsers composite in gamma-encoded sRGB, where even alpha steps
176
176
  look uneven. */
177
177
  --color-shade-none: oklch(from var(--color-neutral-950) l c h / 0);
178
- --color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.055);
178
+ --color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.065);
179
179
  --color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.115);
180
180
  --color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.225);
181
181
  --color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.335);
@@ -188,22 +188,23 @@
188
188
  --color-shade-950: oklch(from var(--color-neutral-950) l c h / 0.96);
189
189
  --color-shade-full: oklch(from var(--color-neutral-950) l c h / 1);
190
190
 
191
- /* tint — faded overlays (derived from white). Solved the same way over the dark
192
- background; the curve differs from shade's because lightening runs the other
193
- way up the same lightness response. */
194
- --color-tint-none: oklch(from var(--color-white) l c h / 0);
195
- --color-tint-50: oklch(from var(--color-white) l c h / 0.04);
196
- --color-tint-100: oklch(from var(--color-white) l c h / 0.085);
197
- --color-tint-200: oklch(from var(--color-white) l c h / 0.17);
198
- --color-tint-300: oklch(from var(--color-white) l c h / 0.265);
199
- --color-tint-400: oklch(from var(--color-white) l c h / 0.36);
200
- --color-tint-500: oklch(from var(--color-white) l c h / 0.46);
201
- --color-tint-600: oklch(from var(--color-white) l c h / 0.56);
202
- --color-tint-700: oklch(from var(--color-white) l c h / 0.67);
203
- --color-tint-800: oklch(from var(--color-white) l c h / 0.775);
204
- --color-tint-900: oklch(from var(--color-white) l c h / 0.885);
205
- --color-tint-950: oklch(from var(--color-white) l c h / 0.945);
206
- --color-tint-full: oklch(from var(--color-white) l c h / 1);
191
+ /* tint — faded overlays (derived from neutral-50, so a tinted neutral reaches
192
+ dark-mode muted, faded, and input the way it reaches light mode through the
193
+ shades). Solved the same way over the dark background; the curve differs from
194
+ shade's because lightening runs the other way up the same lightness response. */
195
+ --color-tint-none: oklch(from var(--color-neutral-50) l c h / 0);
196
+ --color-tint-50: oklch(from var(--color-neutral-50) l c h / 0.04);
197
+ --color-tint-100: oklch(from var(--color-neutral-50) l c h / 0.085);
198
+ --color-tint-200: oklch(from var(--color-neutral-50) l c h / 0.17);
199
+ --color-tint-300: oklch(from var(--color-neutral-50) l c h / 0.265);
200
+ --color-tint-400: oklch(from var(--color-neutral-50) l c h / 0.36);
201
+ --color-tint-500: oklch(from var(--color-neutral-50) l c h / 0.46);
202
+ --color-tint-600: oklch(from var(--color-neutral-50) l c h / 0.56);
203
+ --color-tint-700: oklch(from var(--color-neutral-50) l c h / 0.67);
204
+ --color-tint-800: oklch(from var(--color-neutral-50) l c h / 0.775);
205
+ --color-tint-900: oklch(from var(--color-neutral-50) l c h / 0.885);
206
+ --color-tint-950: oklch(from var(--color-neutral-50) l c h / 0.945);
207
+ --color-tint-full: oklch(from var(--color-neutral-50) l c h / 1);
207
208
 
208
209
  /* ==========================================================================
209
210
  * Typography — typefaces, sizes, weights, tracking, leading
@@ -1 +1 @@
1
- {"version":3,"file":"kit-styling.d.ts","sourceRoot":"","sources":["kit-styling.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAqR1C,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAyDlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAmLnE,CAAC"}
1
+ {"version":3,"file":"kit-styling.d.ts","sourceRoot":"","sources":["kit-styling.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAqR1C,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA0DlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAmLnE,CAAC"}
@@ -285,6 +285,7 @@ export const TIER_READS = {
285
285
  5, 18, 33, 37, 46, 135, 141, 144, 147, 149, 152, 157, 158, 175, 177, 190, 211, 224, 225, 227,
286
286
  234, 236, 245, 246, 249, 250, 251, 267, 268, 270,
287
287
  ],
288
+ "bg-clip": [37, 144, 149],
288
289
  "border-color": [
289
290
  18, 37, 46, 141, 144, 147, 149, 152, 157, 175, 177, 211, 225, 227, 245, 246, 249, 250, 251, 254,
290
291
  267, 268,
@@ -406,7 +407,7 @@ export const TIER_BLOCKS = {
406
407
  112, 120, 121, 125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161,
407
408
  162, 163, 164, 175, 177, 178, 180, 181, 184, 186, 187, 188, 189, 191, 192, 193, 194, 199, 207,
408
409
  211, 212, 214, 215, 218, 220, 221, 222, 223, 227, 230, 237, 238, 241, 245, 246, 248, 252, 253,
409
- 254, 257, 260, 270, 273, 274, 275,
410
+ 254, 257, 260, 269, 270, 273, 274, 275,
410
411
  ],
411
412
  pb: [
412
413
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -418,7 +419,7 @@ export const TIER_BLOCKS = {
418
419
  5, 6, 8, 9, 26, 29, 37, 46, 48, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 91, 108, 120, 121,
419
420
  125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175,
420
421
  177, 178, 184, 186, 187, 188, 191, 192, 193, 194, 199, 207, 211, 212, 218, 220, 221, 222, 227,
421
- 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 270, 273, 274, 275,
422
+ 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 269, 270, 273, 274, 275,
422
423
  ],
423
424
  "place-content": [
424
425
  0, 23, 25, 37, 59, 70, 77, 78, 84, 91, 94, 121, 123, 144, 145, 149, 150, 157, 159, 161, 162,
@@ -440,7 +441,7 @@ export const TIER_BLOCKS = {
440
441
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 108, 120, 121, 125, 130, 131,
441
442
  141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175, 177, 178, 184,
442
443
  186, 187, 189, 191, 193, 194, 199, 207, 211, 212, 218, 220, 221, 223, 227, 230, 237, 238, 245,
443
- 246, 248, 252, 253, 254, 260, 270,
444
+ 246, 248, 252, 253, 254, 260, 269, 270,
444
445
  ],
445
446
  pt: [
446
447
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -452,7 +453,7 @@ export const TIER_BLOCKS = {
452
453
  5, 6, 8, 9, 26, 29, 37, 46, 48, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 91, 108, 120, 121,
453
454
  125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175,
454
455
  177, 178, 184, 186, 187, 188, 189, 191, 192, 193, 194, 199, 207, 211, 212, 218, 220, 221, 222,
455
- 223, 227, 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 270, 273, 274, 275,
456
+ 223, 227, 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 269, 270, 273, 274, 275,
456
457
  ],
457
458
  py: [
458
459
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -287,6 +287,7 @@ export const TIER_READS: Readonly<Record<string, readonly number[]>> = {
287
287
  5, 18, 33, 37, 46, 135, 141, 144, 147, 149, 152, 157, 158, 175, 177, 190, 211, 224, 225, 227,
288
288
  234, 236, 245, 246, 249, 250, 251, 267, 268, 270,
289
289
  ],
290
+ "bg-clip": [37, 144, 149],
290
291
  "border-color": [
291
292
  18, 37, 46, 141, 144, 147, 149, 152, 157, 175, 177, 211, 225, 227, 245, 246, 249, 250, 251, 254,
292
293
  267, 268,
@@ -409,7 +410,7 @@ export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
409
410
  112, 120, 121, 125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161,
410
411
  162, 163, 164, 175, 177, 178, 180, 181, 184, 186, 187, 188, 189, 191, 192, 193, 194, 199, 207,
411
412
  211, 212, 214, 215, 218, 220, 221, 222, 223, 227, 230, 237, 238, 241, 245, 246, 248, 252, 253,
412
- 254, 257, 260, 270, 273, 274, 275,
413
+ 254, 257, 260, 269, 270, 273, 274, 275,
413
414
  ],
414
415
  pb: [
415
416
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -421,7 +422,7 @@ export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
421
422
  5, 6, 8, 9, 26, 29, 37, 46, 48, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 91, 108, 120, 121,
422
423
  125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175,
423
424
  177, 178, 184, 186, 187, 188, 191, 192, 193, 194, 199, 207, 211, 212, 218, 220, 221, 222, 227,
424
- 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 270, 273, 274, 275,
425
+ 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 269, 270, 273, 274, 275,
425
426
  ],
426
427
  "place-content": [
427
428
  0, 23, 25, 37, 59, 70, 77, 78, 84, 91, 94, 121, 123, 144, 145, 149, 150, 157, 159, 161, 162,
@@ -443,7 +444,7 @@ export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
443
444
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 108, 120, 121, 125, 130, 131,
444
445
  141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175, 177, 178, 184,
445
446
  186, 187, 189, 191, 193, 194, 199, 207, 211, 212, 218, 220, 221, 223, 227, 230, 237, 238, 245,
446
- 246, 248, 252, 253, 254, 260, 270,
447
+ 246, 248, 252, 253, 254, 260, 269, 270,
447
448
  ],
448
449
  pt: [
449
450
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -455,7 +456,7 @@ export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
455
456
  5, 6, 8, 9, 26, 29, 37, 46, 48, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 91, 108, 120, 121,
456
457
  125, 130, 131, 141, 144, 145, 148, 149, 150, 151, 153, 154, 156, 157, 159, 161, 163, 164, 175,
457
458
  177, 178, 184, 186, 187, 188, 189, 191, 192, 193, 194, 199, 207, 211, 212, 218, 220, 221, 222,
458
- 223, 227, 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 270, 273, 274, 275,
459
+ 223, 227, 230, 237, 238, 245, 246, 248, 252, 253, 254, 257, 260, 269, 270, 273, 274, 275,
459
460
  ],
460
461
  py: [
461
462
  5, 6, 26, 29, 37, 46, 49, 52, 58, 59, 61, 62, 64, 65, 67, 68, 78, 83, 84, 108, 112, 120, 121,
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":"AAsFA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAgDhD;AAqJD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":"AAsFA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAgDhD;AAyJD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -211,10 +211,14 @@ if ("navigation" in window) {
211
211
  bypassUrl = null;
212
212
  return;
213
213
  }
214
- // A reload re-renders the whole document; it is never a swap.
214
+ // A reload re-renders the whole document; it is never a swap. A same-document
215
+ // push or replace is history.pushState() / replaceState(): the page is
216
+ // updating its own URL (a filter, a share code), not leaving. Back and
217
+ // Forward stay swaps: after one, every entry shares this document.
215
218
  if (!optedIn(document) ||
216
219
  !e.canIntercept ||
217
220
  e.navigationType === "reload" ||
221
+ (e.destination.sameDocument && e.navigationType !== "traverse") ||
218
222
  e.hashChange ||
219
223
  e.downloadRequest !== null ||
220
224
  e.formData !== null ||
@@ -216,11 +216,15 @@ if ("navigation" in window) {
216
216
  return;
217
217
  }
218
218
 
219
- // A reload re-renders the whole document; it is never a swap.
219
+ // A reload re-renders the whole document; it is never a swap. A same-document
220
+ // push or replace is history.pushState() / replaceState(): the page is
221
+ // updating its own URL (a filter, a share code), not leaving. Back and
222
+ // Forward stay swaps: after one, every entry shares this document.
220
223
  if (
221
224
  !optedIn(document) ||
222
225
  !e.canIntercept ||
223
226
  e.navigationType === "reload" ||
227
+ (e.destination.sameDocument && e.navigationType !== "traverse") ||
224
228
  e.hashChange ||
225
229
  e.downloadRequest !== null ||
226
230
  e.formData !== null ||
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["utilities.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,qDAAqD;AACrD,eAAO,MAAM,WAAW,YAAI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAMrD,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,MAAM,YACjB,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,cAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,MAAM,EACN,OAAO,CACC,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,KAAK,EACL;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAA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AAqF;AACrF,eAAO,MAAM,SAAS,EAAE,SAAS,OAAO,EA+xBvC,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,WAAW,EAAE,SAAS,OAAO,EAEzC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAI,QAAQ,EAAE,OAAO,CAAU,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,6DAA6D;AAC7D,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CAM3D;AAED,qDAAqD;AACrD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,CAAC;CACd;AAID,sGAAsG;AACtG,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAyBzD"}
@@ -726,6 +726,15 @@ export const UTILITIES = [
726
726
  tiers: "none",
727
727
  })),
728
728
  { name: "bg-stops", properties: [], mode: "raw", family: "color", emit: "none", tiers: "none" },
729
+ // background-clip, base only: `text` paints the background (a gradient) through the
730
+ // glyphs, with `--text: transparent`; border-box / padding-box / content-box too.
731
+ {
732
+ name: "bg-clip",
733
+ properties: ["background-clip"],
734
+ mode: "keyword",
735
+ family: "color",
736
+ tiers: "none",
737
+ },
729
738
  // the mask twin of the bg gradients: --mask-linear carries the prelude, --mask-stops
730
739
  // the stops (opaque shows, transparent hides); they compose into mask-image. No
731
740
  // tiers, like the bg gradients.
@@ -864,6 +864,15 @@ export const UTILITIES: readonly Utility[] = [
864
864
  tiers: "none",
865
865
  })),
866
866
  { name: "bg-stops", properties: [], mode: "raw", family: "color", emit: "none", tiers: "none" },
867
+ // background-clip, base only: `text` paints the background (a gradient) through the
868
+ // glyphs, with `--text: transparent`; border-box / padding-box / content-box too.
869
+ {
870
+ name: "bg-clip",
871
+ properties: ["background-clip"],
872
+ mode: "keyword",
873
+ family: "color",
874
+ tiers: "none",
875
+ },
867
876
  // the mask twin of the bg gradients: --mask-linear carries the prelude, --mask-stops
868
877
  // the stops (opaque shows, transparent hides); they compose into mask-image. No
869
878
  // tiers, like the bg gradients.
@@ -246,7 +246,7 @@
246
246
  color: var(--_text-resolved, var(--_badge-text, var(--ui-badge-text)));
247
247
  background-color: var(--_bg-resolved, var(--_badge-bg, var(--ui-badge-bg)));
248
248
  background-clip: var(
249
- --_background-clip-resolved,
249
+ --_bg-clip-resolved,
250
250
  var(--_badge-background-clip, var(--ui-badge-background-clip))
251
251
  );
252
252
  white-space-collapse: collapse;
@@ -266,7 +266,7 @@
266
266
  color: var(--_text-resolved, var(--_button-text, var(--ui-button-text)));
267
267
  background-color: var(--_bg-resolved, var(--_button-bg, var(--ui-button-bg)));
268
268
  background-clip: var(
269
- --_background-clip-resolved,
269
+ --_bg-clip-resolved,
270
270
  var(--_button-background-clip, var(--ui-button-background-clip))
271
271
  );
272
272
  white-space-collapse: collapse;
@@ -135,6 +135,7 @@
135
135
  );
136
136
  corner-shape: var(--_corner-shape-resolved, var(--ui-card-corner-shape));
137
137
  box-shadow: var(--_shadow-resolved, var(--_card-shadow, var(--ui-card-shadow)));
138
+ background-clip: var(--_bg-clip-resolved, border-box);
138
139
  overflow: clip;
139
140
  transition: var(--default-transition);
140
141
  }
@@ -40,7 +40,7 @@
40
40
  --ui-field-border-color--hover: color-mix(
41
41
  in oklch,
42
42
  var(--color-border) 90%,
43
- var(--color-primary) 10%
43
+ var(--color-foreground) 10%
44
44
  );
45
45
  --ui-field-border-color--focus-within: var(--color-primary);
46
46
 
@@ -11,12 +11,23 @@
11
11
  * stops a border's width short of each track end.
12
12
  * @uses sign(): switches the ring inset once the thumb has a hit border
13
13
  * @uses corner-shape — round by default, so circles stay circles; a hook takes any shape
14
+ * @uses the track fill: ::-moz-range-progress in Firefox. Chromium and Safari have no
15
+ * progress part, so a view timeline on the thumb (view-timeline + timeline-scope)
16
+ * animates --_slider-progress on the track, which paints the fill as a gradient.
17
+ * The timeline needs the input to be a scroll container, so there it clips its
18
+ * overflow and pads its inline ends to keep the thumb's ring in view, so a
19
+ * padding utility on the input moves the fill off the thumb there.
20
+ * @supports-gated: an engine without view timelines shows no fill. Nor does
21
+ * a right-to-left slider there: Chromium measures an inline view timeline from
22
+ * the left in RTL and Safari from the right, and CSS can't tell which it got.
23
+ * @uses @container style(--ui-slider-fill-side: end) — the fill runs from the thumb
24
+ * to the end; Firefox 151+ (style queries), older engines fill from the start.
14
25
  * @tokens --ui-slider-* (@layer variables, on :root so subtree hooks work); the thumb
15
26
  * and track sizes floor at --spacing-control-min
16
27
  *
17
- * Note: The active region is NOT filled (parity across engines); add a paint
18
- * via JS if a filled track is needed. The thumb is centered on the track with a
19
- * calc'd negative margin so retuning either size keeps it aligned.
28
+ * Note: The thumb is centered on the track with a calc'd negative margin so retuning
29
+ * either size keeps it aligned. The gradient fill runs left to right; a vertical writing
30
+ * mode isn't handled.
20
31
  */
21
32
 
22
33
  @layer variables {
@@ -24,13 +35,18 @@
24
35
  --ui-slider-ring-color: var(--color-ring);
25
36
 
26
37
  --ui-slider-track-h: max(calc(var(--spacing) * 1.5), calc(var(--spacing-control-min) * 0.375));
27
- --ui-slider-track-bg: var(--color-muted);
28
- --ui-slider-track-border-width: 1px;
29
- --ui-slider-track-border-color: var(--color-muted);
38
+ --ui-slider-track-bg: var(--ui-field-bg);
39
+ --ui-slider-track-border-width: var(--ui-field-border-width);
40
+ --ui-slider-track-border-color: var(--ui-field-border-color);
30
41
  --ui-slider-track-radius: var(--radius-full);
31
42
  --ui-slider-track-corner-shape: round;
43
+ /* the part of the track between its start and the thumb; `end` fills from the thumb
44
+ to the end of the track instead */
45
+ --ui-slider-fill-bg: var(--color-primary);
46
+ --ui-slider-fill-side: start;
47
+
32
48
  --ui-slider-thumb-size: max(calc(var(--spacing) * 4), var(--spacing-control-min));
33
- --ui-slider-thumb-bg: var(--color-background);
49
+ --ui-slider-thumb-bg: var(--color-card);
34
50
 
35
51
  /* composes into the thumb's box-shadow list with its border and ring: use a
36
52
  transparent shadow, never `none` */
@@ -55,6 +71,39 @@
55
71
  syntax: "*";
56
72
  inherits: true;
57
73
  }
74
+ @property --_slider-thumb-box {
75
+ syntax: "*";
76
+ inherits: true;
77
+ }
78
+ @property --_slider-bleed {
79
+ syntax: "*";
80
+ inherits: true;
81
+ }
82
+ @property --_slider-fill-before {
83
+ syntax: "*";
84
+ inherits: true;
85
+ }
86
+ @property --_slider-fill-after {
87
+ syntax: "*";
88
+ inherits: true;
89
+ }
90
+ /* 0 with the thumb at the start, 1 at the end; registered so the timeline can animate it */
91
+ @property --_slider-progress {
92
+ syntax: "<number>";
93
+ inherits: true;
94
+ initial-value: 0;
95
+ }
96
+
97
+ /* A view timeline counts up as its subject moves toward the start of the scroller, so
98
+ the keyframes run backward. */
99
+ @keyframes ui-slider-progress {
100
+ from {
101
+ --_slider-progress: 1;
102
+ }
103
+ to {
104
+ --_slider-progress: 0;
105
+ }
106
+ }
58
107
 
59
108
  @layer reset {
60
109
  :where(input[type="range"]) {
@@ -62,7 +111,16 @@
62
111
  --_slider-thumb-hit: max(0px, (var(--_touch-min) - var(--ui-slider-thumb-size)) / 2);
63
112
  /* 1 once the thumb has a hit border: the ring then draws inside the visible thumb */
64
113
  --_slider-thumb-in: sign(var(--_slider-thumb-hit));
114
+ /* the thumb's whole box, hit border included: what travels along the track */
115
+ --_slider-thumb-box: calc(var(--ui-slider-thumb-size) + 2 * var(--_slider-thumb-hit));
65
116
  --_slider-thumb-drop: var(--ui-slider-thumb-shadow);
117
+ /* how far the ring reaches past the thumb, which the scroll container must keep in view */
118
+ --_slider-bleed: calc(
119
+ (var(--ring-offset-width) + var(--ring-width)) * (1 - var(--_slider-thumb-in))
120
+ );
121
+ /* the fill: from the start to the thumb, or from the thumb to the end */
122
+ --_slider-fill-before: var(--ui-slider-fill-bg);
123
+ --_slider-fill-after: transparent;
66
124
  /* derived on the element so a subtree hook keeps the thumb centered on the track */
67
125
  --ui-slider-thumb-offset: calc(
68
126
  (var(--ui-slider-track-h) - var(--ui-slider-thumb-size)) / 2 - var(--_slider-thumb-hit) -
@@ -89,6 +147,54 @@
89
147
  outline-offset: var(--outline-offset);
90
148
  }
91
149
 
150
+ /* The view timeline needs the input as its scroller: it clips, so the inline padding
151
+ and the block size leave room for the thumb's ring and shadow, and the timeline's
152
+ inset takes the padding back out so the thumb's ends of travel are 0 and 1. */
153
+ @supports (animation-timeline: view()) {
154
+ :where(input[type="range"]) {
155
+ overflow: hidden;
156
+ padding-inline: var(--_slider-bleed);
157
+ min-block-size: max(
158
+ var(--_touch-min),
159
+ var(--ui-slider-thumb-size) + 2 * var(--_slider-bleed) + 2 * var(--spacing)
160
+ );
161
+ timeline-scope: --ui-slider-thumb;
162
+ }
163
+
164
+ :where(input[type="range"])::-webkit-slider-thumb {
165
+ view-timeline: --ui-slider-thumb inline;
166
+ view-timeline-inset: var(--_slider-bleed);
167
+ }
168
+
169
+ /* On the track, not the input: Safari's timeline doesn't reach the input itself. */
170
+ :where(input[type="range"])::-webkit-slider-runnable-track {
171
+ animation: ui-slider-progress 1ms linear both;
172
+ animation-timeline: --ui-slider-thumb;
173
+ animation-range: contain;
174
+ }
175
+ }
176
+
177
+ @container style(--ui-slider-fill-side: end) {
178
+ :where(input[type="range"])::-webkit-slider-runnable-track {
179
+ --_slider-fill-before: transparent;
180
+ --_slider-fill-after: var(--ui-slider-fill-bg);
181
+ }
182
+
183
+ :where(input[type="range"])::-moz-range-track {
184
+ background: var(--ui-slider-fill-bg);
185
+ }
186
+
187
+ :where(input[type="range"])::-moz-range-progress {
188
+ background: var(--ui-slider-track-bg);
189
+ }
190
+ }
191
+
192
+ /* No gradient fill right to left (see the header); after the side query, so it wins */
193
+ :where(input[type="range"]:dir(rtl))::-webkit-slider-runnable-track {
194
+ --_slider-fill-before: transparent;
195
+ --_slider-fill-after: transparent;
196
+ }
197
+
92
198
  /* An outer shadow would paint at the edge of the grown thumb box, not the visible thumb */
93
199
  @media (not (hover: hover)) {
94
200
  :where(input[type="range"]) {
@@ -98,12 +204,32 @@
98
204
  :where(input[type="range"])::-webkit-slider-runnable-track {
99
205
  block-size: var(--ui-slider-track-h);
100
206
  inline-size: 100%;
101
- background: var(--ui-slider-track-bg);
207
+ /* the fill's edge sits at the thumb's center, which travels half a thumb in from
208
+ each end of the track's content box */
209
+ background:
210
+ linear-gradient(
211
+ to right,
212
+ var(--_slider-fill-before)
213
+ calc(
214
+ var(--_slider-thumb-box) / 2 + var(--_slider-progress) *
215
+ (100% - var(--_slider-thumb-box))
216
+ ),
217
+ var(--_slider-fill-after) 0
218
+ )
219
+ content-box no-repeat,
220
+ var(--ui-slider-track-bg);
102
221
  border: var(--ui-slider-track-border-width) solid var(--ui-slider-track-border-color);
103
222
  border-radius: var(--ui-slider-track-radius);
104
223
  corner-shape: var(--ui-slider-track-corner-shape);
105
224
  }
106
225
 
226
+ /* Without a view timeline the progress never moves off 0, so the track stays plain */
227
+ @supports not (animation-timeline: view()) {
228
+ :where(input[type="range"])::-webkit-slider-runnable-track {
229
+ background: var(--ui-slider-track-bg);
230
+ }
231
+ }
232
+
107
233
  :where(input[type="range"])::-moz-range-track {
108
234
  block-size: var(--ui-slider-track-h);
109
235
  inline-size: 100%;
@@ -143,6 +269,14 @@
143
269
  transition: var(--default-transition);
144
270
  }
145
271
 
272
+ :where(input[type="range"])::-moz-range-progress {
273
+ /* inside the track's border, as the gradient fill is in the other engines */
274
+ block-size: var(--ui-slider-track-h);
275
+ background: var(--ui-slider-fill-bg);
276
+ border-radius: var(--ui-slider-track-radius);
277
+ corner-shape: var(--ui-slider-track-corner-shape);
278
+ }
279
+
146
280
  :where(input[type="range"])::-moz-range-thumb {
147
281
  appearance: none;
148
282
  box-sizing: content-box;
@@ -19,20 +19,20 @@
19
19
  :root {
20
20
  /* metrics default to the shared --ui-field-* family so the track matches
21
21
  adjacent fields and buttons; --ui-tabs-label-min-h is deliberately shorter */
22
- --ui-tabs-gap: var(--space-xs);
23
- --ui-tabs-track-p: calc(var(--spacing) * 0.5);
22
+ --ui-tabs-gap: 0;
23
+ --ui-tabs-track-p: calc(var(--spacing) * 0.35);
24
24
  --ui-tabs-track-radius: var(--ui-field-radius);
25
25
  --ui-tabs-track-corner-shape: var(--ui-field-corner-shape);
26
- --ui-tabs-track-gap: calc(var(--spacing) * 0.5);
27
- --ui-tabs-track-bg: var(--color-muted);
26
+ --ui-tabs-track-gap: calc(var(--spacing) * 0.35);
27
+ --ui-tabs-track-bg: var(--ui-field-bg);
28
28
  --ui-tabs-track-border-width: 1px;
29
29
  --ui-tabs-track-border-style: solid;
30
30
  --ui-tabs-track-border-color: var(--color-border);
31
31
 
32
- --ui-tabs-indicator-bg: var(--color-card);
32
+ --ui-tabs-indicator-bg: var(--color-muted);
33
33
  --ui-tabs-indicator-radius: var(--ui-field-inset-child-radius);
34
34
  --ui-tabs-indicator-corner-shape: var(--ui-field-corner-shape);
35
- --ui-tabs-indicator-shadow: var(--shadow-xs);
35
+ --ui-tabs-indicator-shadow: none;
36
36
  --ui-tabs-indicator-inset: var(--ui-tabs-track-p);
37
37
  --ui-tabs-indicator-border-width: 1px;
38
38
  --ui-tabs-indicator-border-style: solid;
@@ -6,7 +6,13 @@
6
6
  * @uses interestfor: Interest Invokers API (Chromium 142+; polyfill via invokers)
7
7
  * @uses data-tooltip-slot="content": hint popover (light dismiss, auto-hides sibling hints)
8
8
  * @uses anchor-name, position-anchor, position-area, position-try-fallbacks:
9
- * explicit anchors for polyfill; data-popover-side maps to --ui-popover-position-*
9
+ * explicit anchors for polyfill; data-popover-side maps to --ui-popover-position-*.
10
+ * Chromium (151) draws one of a newly opened anchored element's first two frames
11
+ * without its scroll compensation, so in a scrolled container or page the
12
+ * tooltip flashes far from its trigger. Opening, the fade starts 34ms (two
13
+ * 60Hz frames) late, so that frame paints transparent; a later one would be
14
+ * nearly so. A custom --ui-tooltip-transition keeps
15
+ * the delay on its first entry.
10
16
  * @uses corner-shape — superellipse corners; unsupported browsers keep plain
11
17
  * rounded corners
12
18
  * @uses :dir(rtl): inline-side origins and slide-in mirror; the arrow uses logical insets
@@ -110,6 +116,11 @@
110
116
  display: flex;
111
117
  opacity: var(--ui-tooltip-opacity--end);
112
118
  transform: scale(var(--ui-tooltip-scale--end)) translate3d(var(--ui-tooltip-translate--end));
119
+ /* opening, the fade waits out the frames Chromium may misplace (see the header);
120
+ one delay per --ui-tooltip-transition entry: opacity, transform, overlay, display */
121
+ transition-delay:
122
+ calc(var(--ui-tooltip-transition-delay) + 34ms), var(--ui-tooltip-transition-delay),
123
+ var(--ui-tooltip-transition-delay), var(--ui-tooltip-transition-delay);
113
124
 
114
125
  @starting-style {
115
126
  opacity: var(--ui-tooltip-opacity--start);