@ngrok/mantle 0.82.1 → 0.83.1

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.
Files changed (138) hide show
  1. package/dist/accordion.d.ts +7 -7
  2. package/dist/agent.json +3 -1
  3. package/dist/{alert-BWwNPOMI.d.ts → alert-B1HXfkYn.d.ts} +9 -7
  4. package/dist/{alert-vwFd7qdp.js → alert-BuG2qS5l.js} +1 -1
  5. package/dist/alert-center.d.ts +3 -3
  6. package/dist/alert-center.js +1 -1
  7. package/dist/alert-dialog.d.ts +18 -18
  8. package/dist/alert.d.ts +1 -1
  9. package/dist/alert.js +1 -1
  10. package/dist/anchor.d.ts +2 -2
  11. package/dist/app-layout.js +1 -1
  12. package/dist/area-chart.d.ts +67 -19
  13. package/dist/area-chart.js +1 -1
  14. package/dist/avatar.d.ts +319 -0
  15. package/dist/avatar.js +1 -0
  16. package/dist/bar-chart.d.ts +73 -20
  17. package/dist/bar-chart.js +1 -1
  18. package/dist/breadcrumb.d.ts +50 -17
  19. package/dist/breadcrumb.js +1 -1
  20. package/dist/browser-only.d.ts +3 -3
  21. package/dist/{button-C-gMbPso.d.ts → button-BIf69CSV.d.ts} +2 -2
  22. package/dist/button-BLDjW1u9.js +1 -0
  23. package/dist/{button-IlxHhjPK.js → button-CCkGqE1t.js} +1 -1
  24. package/dist/{button-C7vAl6lS.d.ts → button-DJ7AAgII.d.ts} +4 -6
  25. package/dist/{button-DARFK2KJ.d.ts → button-PoIujPMX.d.ts} +2 -2
  26. package/dist/button.d.ts +3 -3
  27. package/dist/button.js +1 -1
  28. package/dist/calendar.d.ts +1 -1
  29. package/dist/calendar.js +1 -1
  30. package/dist/card.d.ts +15 -15
  31. package/dist/{chart-1cVjAcj8.d.ts → chart-0zcFJh4n.d.ts} +75 -22
  32. package/dist/chart-DBxT9BNl.js +2 -0
  33. package/dist/{choice-BNRQXszu.d.ts → choice-CVdQrs-m.d.ts} +118 -6
  34. package/dist/choice.d.ts +1 -1
  35. package/dist/{code-block-C9uaM9-V.js → code-block-CIE0F2fu.js} +1 -1
  36. package/dist/{code-block-B6OlZrSI.d.ts → code-block-CZWPrV4k.d.ts} +3 -3
  37. package/dist/code-block.d.ts +10 -7
  38. package/dist/code-block.js +2 -2
  39. package/dist/code-block_highlight-utils.d.ts +1 -1
  40. package/dist/code-block_highlight-utils.js +1 -1
  41. package/dist/combobox.d.ts +8 -9
  42. package/dist/command.d.ts +668 -106
  43. package/dist/command.js +1 -1
  44. package/dist/data-table.d.ts +6 -6
  45. package/dist/data-table.js +1 -1
  46. package/dist/dialog-32Hq6w6P.js +1 -0
  47. package/dist/dialog-B6h1BCDL.d.ts +895 -0
  48. package/dist/dialog.d.ts +2 -805
  49. package/dist/dialog.js +1 -1
  50. package/dist/dropdown-menu-BcALUQMp.d.ts +1 -0
  51. package/dist/{dropdown-menu-D6pMAY7I.d.ts → dropdown-menu-DZOfj6HB.d.ts} +1 -1
  52. package/dist/dropdown-menu.d.ts +2 -2
  53. package/dist/field.d.ts +5 -5
  54. package/dist/field.js +1 -1
  55. package/dist/flag.js +1 -1
  56. package/dist/hooks.d.ts +16 -17
  57. package/dist/hooks.js +1 -1
  58. package/dist/icons-DEVx1oP9.js +1 -0
  59. package/dist/icons.d.ts +7 -6
  60. package/dist/icons.js +1 -1
  61. package/dist/{in-view-DDEGUKDR.d.ts → in-view-gxyc9Q1_.d.ts} +1 -1
  62. package/dist/{input-BuYDU6CF.d.ts → input-DpnC3Xgj.d.ts} +2 -2
  63. package/dist/input.d.ts +1 -1
  64. package/dist/kbd.d.ts +1 -1
  65. package/dist/line-chart.d.ts +60 -13
  66. package/dist/line-chart.js +1 -1
  67. package/dist/list-CwL23L_B.js +1 -0
  68. package/dist/list.d.ts +2 -2
  69. package/dist/list.js +1 -1
  70. package/dist/llms.txt +3 -1
  71. package/dist/mantle-dark-high-contrast.css +30 -17
  72. package/dist/mantle-dark.css +48 -13
  73. package/dist/mantle-light-high-contrast.css +33 -15
  74. package/dist/mantle.css +436 -26
  75. package/dist/media-object.d.ts +5 -1
  76. package/dist/multi-select.d.ts +7 -7
  77. package/dist/multi-select.js +1 -1
  78. package/dist/otp-input.d.ts +4 -4
  79. package/dist/otp-input.js +1 -1
  80. package/dist/pagination.d.ts +2 -2
  81. package/dist/pagination.js +1 -1
  82. package/dist/progress.d.ts +4 -4
  83. package/dist/qr-code.d.ts +2 -2
  84. package/dist/sandbar.d.ts +471 -0
  85. package/dist/sandbar.js +1 -0
  86. package/dist/sandboxed-on-click.d.ts +4 -6
  87. package/dist/scatter-plot.d.ts +69 -24
  88. package/dist/scatter-plot.js +1 -1
  89. package/dist/{select-0z7HVS6r.d.ts → select-DVHmgih8.d.ts} +13 -7
  90. package/dist/select-LK9NX-vV.js +1 -0
  91. package/dist/select.d.ts +1 -1
  92. package/dist/select.js +1 -1
  93. package/dist/selectable-list.d.ts +4 -4
  94. package/dist/selectable-list.js +1 -1
  95. package/dist/{separator-B5UmkVRL.d.ts → separator-CNDs98Dv.d.ts} +2 -2
  96. package/dist/separator.d.ts +1 -1
  97. package/dist/{sheet-BxvTfPLM.js → sheet-BOSknSN9.js} +1 -1
  98. package/dist/sheet.d.ts +1 -1
  99. package/dist/sheet.js +1 -1
  100. package/dist/sidebar.d.ts +347 -366
  101. package/dist/sidebar.js +1 -1
  102. package/dist/slider.d.ts +1 -1
  103. package/dist/split-button.d.ts +12 -12
  104. package/dist/split-button.js +1 -1
  105. package/dist/switch.d.ts +2 -1
  106. package/dist/{table-CGxJwtbL.js → table-C_Nm_RSV.js} +1 -1
  107. package/dist/{table-CZBYEmyK.d.ts → table-D51ZtV4U.d.ts} +18 -8
  108. package/dist/table.d.ts +1 -1
  109. package/dist/table.js +1 -1
  110. package/dist/tabs.d.ts +8 -13
  111. package/dist/tabs.js +1 -1
  112. package/dist/{theme-FbfjYiD3.d.ts → theme-6OxNhf6l.d.ts} +6 -6
  113. package/dist/theme-CVfq037P.js +1 -0
  114. package/dist/theme-switcher.d.ts +3 -3
  115. package/dist/theme-switcher.js +1 -1
  116. package/dist/theme.d.ts +86 -23
  117. package/dist/theme.js +1 -1
  118. package/dist/toast.d.ts +9 -9
  119. package/dist/toast.js +1 -1
  120. package/dist/{tooltip-mrpLz4DZ.d.ts → tooltip-DuXGxIse.d.ts} +6 -4
  121. package/dist/tooltip.d.ts +1 -1
  122. package/dist/use-breakpoint-Dqu12Szq.js +1 -0
  123. package/dist/use-callback-ref-IYti9y7x.js +1 -0
  124. package/dist/use-is-apple-platform-Cxwrb86L.js +1 -0
  125. package/dist/use-matches-media-query-Bd_GhhVd.js +1 -0
  126. package/dist/utils.d.ts +1 -1
  127. package/package.json +5 -3
  128. package/dist/button-DvHMWAPl.js +0 -1
  129. package/dist/chart-B3pAvmkk.js +0 -2
  130. package/dist/dialog-DozL6n-F.js +0 -1
  131. package/dist/dropdown-menu-BbbQuae2.d.ts +0 -1
  132. package/dist/icons-Bb_zF2OV.js +0 -1
  133. package/dist/list-CJABVHwi.js +0 -1
  134. package/dist/platform-BVD3gpKD.js +0 -1
  135. package/dist/select-BReznXaw.js +0 -1
  136. package/dist/theme-BorfgnNh.js +0 -1
  137. package/dist/use-breakpoint-Wd7_5-Mu.js +0 -1
  138. package/dist/use-matches-media-query-CMSxHR9n.js +0 -1
@@ -1,9 +1,26 @@
1
1
  /**
2
2
  MARK: DARK DEFS
3
+
4
+ The last selector applies this entire block to `.invert-theme` subtrees on
5
+ light pages (any page with no other theme active): an inverted island is the
6
+ opposite theme's own definitions re-declared on the island element. See
7
+ MARK: INVERT THEME in mantle.css for the full strategy.
3
8
  */
4
9
  :root.dark,
5
- :root[data-theme="dark"],
6
- :root[data-applied-theme="dark"] {
10
+ :root[data-theme="dark"]:not([data-applied-theme]),
11
+ :root[data-applied-theme="dark"],
12
+ :root:not(
13
+ .dark,
14
+ [data-theme="dark"]:not([data-applied-theme]),
15
+ [data-applied-theme="dark"],
16
+ .light-high-contrast,
17
+ [data-theme="light-high-contrast"]:not([data-applied-theme]),
18
+ [data-applied-theme="light-high-contrast"],
19
+ .dark-high-contrast,
20
+ [data-theme="dark-high-contrast"]:not([data-applied-theme]),
21
+ [data-applied-theme="dark-high-contrast"]
22
+ )
23
+ .invert-theme {
7
24
  color-scheme: dark;
8
25
 
9
26
  /* Semantic colors: white becomes black and black becomes white in dark mode */
@@ -313,17 +330,22 @@ MARK: DARK DEFS
313
330
  --color-card-border-muted: var(--color-neutral-200);
314
331
  --color-separator: --alpha(var(--color-gray-600) / 0.2);
315
332
 
316
- /* Chart series tokens — dark picks validated against the dark card surface
317
- (neutral-100). Dark ramps mirror light (step N = light step 1000−N), so each
318
- slot resolves to the same color as its light twin while staying on-token. */
319
- --color-chart-1: var(--color-blue-500);
320
- --color-chart-2: var(--color-green-300);
321
- --color-chart-3: var(--color-pink-500);
322
- --color-chart-4: var(--color-red-400);
323
- --color-chart-5: var(--color-teal-400);
324
- --color-chart-6: var(--color-orange-400);
325
- --color-chart-7: var(--color-violet-500);
326
- --color-chart-8: var(--color-yellow-300);
333
+ /* Chart series tokens — dark's eight marks, in slot order: blue, green, pink,
334
+ red-orange, teal, magenta, violet, amber. A slot keeps its family across the
335
+ themes. Nothing else carries over: this theme re-tunes lightness, chroma, and
336
+ hue together against the dark card surface (neutral-100), so every slot is its
337
+ own literal. Chroma moves the most — chart-6 gains 25% over light's — and
338
+ chart-4's hue drifts 9.4 degrees. Measured on that surface: worst pair ΔE
339
+ 15.07 for full-color vision, 9.55 under simulated protanopia or deuteranopia,
340
+ 3.65:1 lowest contrast. */
341
+ --color-chart-1: oklch(0.668 0.168 260.3); /* #5492fa */
342
+ --color-chart-2: oklch(0.537 0.121 160.1); /* #018355 */
343
+ --color-chart-3: oklch(0.627 0.242 6.7); /* #f41a70 */
344
+ --color-chart-4: oklch(0.565 0.169 41.2); /* #c3490a */
345
+ --color-chart-5: oklch(0.668 0.112 198.8); /* #0da9ae */
346
+ --color-chart-6: oklch(0.584 0.261 332.9); /* #cc04bb */
347
+ --color-chart-7: oklch(0.573 0.244 285.4); /* #744ffe */
348
+ --color-chart-8: oklch(0.668 0.137 83.5); /* #bd8c01 */
327
349
  --color-chart-other: var(--color-neutral-500);
328
350
 
329
351
  --text-color-strong: #fff;
@@ -345,6 +367,19 @@ MARK: DARK DEFS
345
367
  --background-color-filled-warning-hover: var(--color-warning-700);
346
368
  --background-color-filled-success-hover: var(--color-success-700);
347
369
 
370
+ /* Focus tokens — same expressions as the light base (the mid-ramp stops they
371
+ reference are theme-symmetric), declared here so `.invert-theme` islands
372
+ re-resolve them against this block's ramps. */
373
+ --ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
374
+ --ring-color-focus-accent: --alpha(var(--color-accent-500) / 0.3);
375
+ --ring-color-focus-danger: --alpha(var(--color-danger-500) / 0.3);
376
+ --ring-color-focus-warning: --alpha(var(--color-warning-500) / 0.3);
377
+ --ring-color-focus-success: --alpha(var(--color-success-500) / 0.3);
378
+
379
+ --color-active-menu-item: --alpha(var(--color-neutral-500) / 0.05);
380
+ --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
381
+ --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
382
+
348
383
  --shadow-color: #000;
349
384
  --shadow-first-opacity: 15%;
350
385
  --shadow-second-opacity: 30%;
@@ -1,9 +1,20 @@
1
1
  /**
2
2
  MARK: LIGHT HICON DEFS
3
+
4
+ The last selector applies this entire block to `.invert-theme` subtrees on
5
+ dark-high-contrast pages: an inverted island is the opposite theme's own
6
+ definitions re-declared on the island element. See MARK: INVERT THEME in
7
+ mantle.css for the full strategy.
3
8
  */
4
9
  :root.light-high-contrast,
5
- :root[data-theme="light-high-contrast"],
6
- :root[data-applied-theme="light-high-contrast"] {
10
+ :root[data-theme="light-high-contrast"]:not([data-applied-theme]),
11
+ :root[data-applied-theme="light-high-contrast"],
12
+ :root:is(
13
+ .dark-high-contrast,
14
+ [data-theme="dark-high-contrast"]:not([data-applied-theme]),
15
+ [data-applied-theme="dark-high-contrast"]
16
+ )
17
+ .invert-theme {
7
18
  color-scheme: light;
8
19
 
9
20
  --color-white: oklch(100% 0 0);
@@ -283,19 +294,20 @@ MARK: LIGHT HICON DEFS
283
294
  --color-selected-menu-item: var(--color-accent-50);
284
295
  --color-active-selected-menu-item: var(--color-accent-100);
285
296
 
286
- /* Chart series tokens — light-high-contrast picks validated against the white
287
- card surface: all gates pass (worst adjacent CVD ΔE 11.6, normal-vision
288
- floor 18.3, all slots 3.65:1). Pink and teal use the 300 step here (the
289
- only steps clearing the chroma floor and adjacency gates in this theme's
290
- compressed ramps); every other slot matches the base light picks. */
291
- --color-chart-1: var(--color-blue-500);
292
- --color-chart-2: var(--color-green-700);
293
- --color-chart-3: var(--color-pink-300);
294
- --color-chart-4: var(--color-red-600);
295
- --color-chart-5: var(--color-teal-300);
296
- --color-chart-6: var(--color-orange-600);
297
- --color-chart-7: var(--color-violet-500);
298
- --color-chart-8: var(--color-yellow-700);
297
+ /* Chart series tokens — light-high-contrast's eight marks, in slot order: blue,
298
+ green, pink, red-orange, teal, magenta, violet, amber. The hue families match
299
+ light, and every literal differs: this theme re-tunes lightness, chroma, and
300
+ hue together to hold a higher contrast floor. Measured on the white card
301
+ surface: worst pair ΔE 15.15 for full-color vision, 9.62 under simulated
302
+ protanopia or deuteranopia, 3.70:1 lowest contrast. */
303
+ --color-chart-1: oklch(0.464 0.174 259.5); /* #0c52b8 */
304
+ --color-chart-2: oklch(0.468 0.102 160.5); /* #096b46 */
305
+ --color-chart-3: oklch(0.649 0.252 1.6); /* #fd1c84 */
306
+ --color-chart-4: oklch(0.512 0.196 31.5); /* #bd1c01 */
307
+ --color-chart-5: oklch(0.598 0.101 203.3); /* #06919b */
308
+ --color-chart-6: oklch(0.468 0.208 333.4); /* #97038a */
309
+ --color-chart-7: oklch(0.633 0.193 288.5); /* #896ff5 */
310
+ --color-chart-8: oklch(0.621 0.128 78); /* #b07b06 */
299
311
  --color-chart-other: var(--color-neutral-500);
300
312
 
301
313
  --text-color-strong: var(--color-black);
@@ -328,4 +340,10 @@ MARK: LIGHT HICON DEFS
328
340
  --shadow-first-opacity: 15%;
329
341
  --shadow-second-opacity: 20%;
330
342
  --navigation-shadow: --alpha(var(--shadow-color) / 30%);
343
+
344
+ /* Same white glyphs as the light base (filled controls stay dark enough
345
+ here), declared explicitly so `.invert-theme` islands on
346
+ dark-high-contrast pages don't inherit that theme's black glyphs. */
347
+ --bg-checked-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z'/%3e%3c/svg%3e");
348
+ --bg-indeterminate-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z'/%3e%3c/svg%3e");
331
349
  }