elements-kit 0.17.0 → 0.18.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.
Files changed (102) hide show
  1. package/dist/{benchmark.CX_oY03V-CsUg-gW0.mjs → benchmark.CX_oY03V-CSLAXL5f.mjs} +1 -32
  2. package/dist/{element-DGuUvJM4.mjs → element-D6xVuWdX.mjs} +1 -1
  3. package/dist/for.mjs +2 -2
  4. package/dist/integrations/react.mjs +2 -2
  5. package/dist/jsx-runtime/index.d.mts +1 -1
  6. package/dist/jsx-runtime/index.mjs +1 -1
  7. package/dist/{lib-Cg8fI7K5.mjs → lib-Dkc7cV5F.mjs} +31 -0
  8. package/dist/render.mjs +1 -1
  9. package/dist/{scope-De6rSJvq.mjs → scope-CnEvL9Nd.mjs} +1 -1
  10. package/dist/signals/index.mjs +1 -1
  11. package/dist/{test.BmQO5GaM-ZC2MPXQb.mjs → test.BmQO5GaM-Ddz9cDxc.mjs} +100 -1
  12. package/dist/ui/accordion/accordion.css +5 -5
  13. package/dist/ui/badge/badge.css +1 -1
  14. package/dist/ui/button/button.css +14 -14
  15. package/dist/ui/card/card.css +36 -36
  16. package/dist/ui/checkbox/checkbox.css +6 -6
  17. package/dist/ui/code/code.css +1 -1
  18. package/dist/ui/kbd/kbd.css +2 -2
  19. package/dist/ui/marketing/marketing.css +12 -12
  20. package/dist/ui/progress/progress.css +6 -6
  21. package/dist/ui/radio/radio.css +7 -7
  22. package/dist/ui/segmented-control/segmented-control.css +17 -17
  23. package/dist/ui/select/select.css +9 -9
  24. package/dist/ui/slider/slider.css +7 -7
  25. package/dist/ui/styles/accent/neutral.css +30 -0
  26. package/dist/ui/styles/material.css +1 -1
  27. package/dist/ui/styles/neutral/gray.css +30 -0
  28. package/dist/ui/styles/neutral/mauve.css +30 -0
  29. package/dist/ui/styles/neutral/olive.css +30 -0
  30. package/dist/ui/styles/neutral/sage.css +30 -0
  31. package/dist/ui/styles/neutral/sand.css +30 -0
  32. package/dist/ui/styles/neutral/slate.css +30 -0
  33. package/dist/ui/styles/palette/gray.css +127 -0
  34. package/dist/ui/styles/shadow.css +42 -42
  35. package/dist/ui/styles/theme.css +2 -2
  36. package/dist/ui/switch/switch.css +7 -7
  37. package/dist/ui/text-input/text-input.css +17 -17
  38. package/dist/ui/toggle/toggle.css +6 -6
  39. package/dist/utilities/_observe.mjs +1 -1
  40. package/dist/utilities/active-element.mjs +1 -1
  41. package/dist/utilities/active-element.test.mjs +2 -2
  42. package/dist/utilities/async.mjs +1 -1
  43. package/dist/utilities/async.test.mjs +3 -3
  44. package/dist/utilities/context.mjs +1 -1
  45. package/dist/utilities/context.test.mjs +3 -3
  46. package/dist/utilities/debounced.mjs +1 -1
  47. package/dist/utilities/debounced.test.mjs +3 -3
  48. package/dist/utilities/dom-lifecycle.bench.mjs +1 -1
  49. package/dist/utilities/dom-lifecycle.mjs +1 -1
  50. package/dist/utilities/dom-lifecycle.test.mjs +2 -2
  51. package/dist/utilities/element-rect.mjs +1 -1
  52. package/dist/utilities/element-rect.test.mjs +3 -3
  53. package/dist/utilities/element-scroll.test.mjs +3 -3
  54. package/dist/utilities/event-driven.mjs +1 -1
  55. package/dist/utilities/event-listener.mjs +1 -1
  56. package/dist/utilities/event-listener.test.mjs +3 -3
  57. package/dist/utilities/focus-within.mjs +1 -1
  58. package/dist/utilities/focus-within.test.mjs +3 -3
  59. package/dist/utilities/hover.mjs +1 -1
  60. package/dist/utilities/hover.test.mjs +3 -3
  61. package/dist/utilities/intersection-observer.test.mjs +3 -3
  62. package/dist/utilities/interval.mjs +1 -1
  63. package/dist/utilities/interval.test.mjs +3 -3
  64. package/dist/utilities/location.mjs +1 -1
  65. package/dist/utilities/location.test.mjs +2 -2
  66. package/dist/utilities/long-press.test.mjs +3 -3
  67. package/dist/utilities/media-devices.mjs +1 -1
  68. package/dist/utilities/media-devices.test.mjs +3 -3
  69. package/dist/utilities/media-player.test.mjs +3 -3
  70. package/dist/utilities/media-query.mjs +1 -1
  71. package/dist/utilities/mutation-observer.test.mjs +3 -3
  72. package/dist/utilities/network.mjs +1 -1
  73. package/dist/utilities/network.test.mjs +2 -2
  74. package/dist/utilities/on-click-outside.test.mjs +3 -3
  75. package/dist/utilities/orientation.mjs +1 -1
  76. package/dist/utilities/previous.mjs +1 -1
  77. package/dist/utilities/previous.test.mjs +3 -3
  78. package/dist/utilities/promise.mjs +1 -1
  79. package/dist/utilities/promise.test.mjs +3 -3
  80. package/dist/utilities/retry.mjs +1 -1
  81. package/dist/utilities/retry.test.mjs +3 -3
  82. package/dist/utilities/routing.mjs +1 -1
  83. package/dist/utilities/routing.test.mjs +2 -2
  84. package/dist/utilities/search-params.test.mjs +3 -3
  85. package/dist/utilities/ssr.test.mjs +2 -2
  86. package/dist/utilities/storage.test.mjs +3 -3
  87. package/dist/utilities/throttled.mjs +1 -1
  88. package/dist/utilities/throttled.test.mjs +3 -3
  89. package/dist/utilities/timeout.mjs +1 -1
  90. package/dist/utilities/timeout.test.mjs +3 -3
  91. package/dist/utilities/window-focus.mjs +1 -1
  92. package/dist/utilities/window-size.mjs +1 -1
  93. package/dist/utilities/window-size.test.mjs +2 -2
  94. package/package.json +1 -1
  95. package/dist/ui/styles/accent/base.css +0 -30
  96. package/dist/ui/styles/base/mauve.css +0 -30
  97. package/dist/ui/styles/base/neutral.css +0 -30
  98. package/dist/ui/styles/base/olive.css +0 -30
  99. package/dist/ui/styles/base/sage.css +0 -30
  100. package/dist/ui/styles/base/sand.css +0 -30
  101. package/dist/ui/styles/base/slate.css +0 -30
  102. package/dist/ui/styles/palette/neutral.css +0 -127
@@ -4099,14 +4099,6 @@ function afterEach(fn, timeout) {
4099
4099
  };
4100
4100
  return getCurrentSuite().on("afterEach", withTimeout(wrapper, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4101
4101
  }
4102
- createTestHook("onTestFailed", (test, handler, timeout) => {
4103
- test.onFailed ||= [];
4104
- test.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4105
- });
4106
- createTestHook("onTestFinished", (test, handler, timeout) => {
4107
- test.onFinished ||= [];
4108
- test.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
4109
- });
4110
4102
  /**
4111
4103
  * Registers a callback function that wraps around all tests within the current suite.
4112
4104
  * The callback receives a `runSuite` function that must be called to run the suite's tests.
@@ -4206,14 +4198,6 @@ function withSuiteFixtures(suiteHook, fn, context, stackTraceError, contextIndex
4206
4198
  })();
4207
4199
  };
4208
4200
  }
4209
- function createTestHook(name, handler) {
4210
- return (fn, timeout) => {
4211
- assertTypes(fn, `"${name}" callback`, ["function"]);
4212
- const current = getCurrentTest();
4213
- if (!current) throw new Error(`Hook ${name}() can only be called inside a test`);
4214
- return handler(current, fn, timeout);
4215
- };
4216
- }
4217
4201
  function findTestFileStackTrace(testFilePath, error) {
4218
4202
  const lines = error.split("\n").slice(1);
4219
4203
  for (const line of lines) {
@@ -4942,7 +4926,7 @@ function makeTimeoutError(isHook, timeout, stackTraceError) {
4942
4926
  }
4943
4927
  globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
4944
4928
  globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
4945
- const unixNow = Date.now;
4929
+ Date.now;
4946
4930
  const { clearTimeout, setTimeout: setTimeout$1 } = getSafeTimers();
4947
4931
  const packs = /* @__PURE__ */ new Map();
4948
4932
  const eventsPacks = [];
@@ -4969,21 +4953,6 @@ async function finishSendTasksUpdate(runner) {
4969
4953
  sendTasksUpdate(runner);
4970
4954
  await Promise.all(pendingTasksUpdates);
4971
4955
  }
4972
- function throttle(fn, ms) {
4973
- let last = 0;
4974
- let pendingCall;
4975
- return function call(...args) {
4976
- const now = unixNow();
4977
- if (now - last > ms) {
4978
- last = now;
4979
- clearTimeout(pendingCall);
4980
- pendingCall = void 0;
4981
- return fn.apply(this, args);
4982
- }
4983
- pendingCall ??= setTimeout$1(() => call.bind(this)(...args), ms);
4984
- };
4985
- }
4986
- throttle(sendTasksUpdate, 100);
4987
4956
  /**
4988
4957
  * @experimental
4989
4958
  * @advanced
@@ -1,4 +1,4 @@
1
- import { c as effectScope, g as untracked, p as onCleanup, s as effect } from "./lib-Cg8fI7K5.mjs";
1
+ import { c as effectScope, g as untracked, p as onCleanup, s as effect } from "./lib-Dkc7cV5F.mjs";
2
2
  import "./polyfill-CdZVCxdo.mjs";
3
3
  import { isReactive, resolveProps } from "./signals/index.mjs";
4
4
  import { on } from "./utilities/event-listener.mjs";
package/dist/for.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { c as effectScope, g as untracked, h as trigger, m as signal, p as onCleanup, s as effect } from "./lib-Cg8fI7K5.mjs";
1
+ import { c as effectScope, g as untracked, h as trigger, m as signal, p as onCleanup, s as effect } from "./lib-Dkc7cV5F.mjs";
2
2
  import "./signals/index.mjs";
3
- import { n as disposeElement } from "./element-DGuUvJM4.mjs";
3
+ import { n as disposeElement } from "./element-D6xVuWdX.mjs";
4
4
  //#region src/for.ts
5
5
  /**
6
6
  * Keyed list renderer. See {@link ForProps} for prop details.
@@ -1,6 +1,6 @@
1
- import { m as signal, s as effect } from "../lib-Cg8fI7K5.mjs";
1
+ import { m as signal, s as effect } from "../lib-Dkc7cV5F.mjs";
2
2
  import "../signals/index.mjs";
3
- import { t as scope } from "../scope-De6rSJvq.mjs";
3
+ import { t as scope } from "../scope-CnEvL9Nd.mjs";
4
4
  import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
5
5
  //#region src/integrations/react.ts
6
6
  /**
@@ -1,2 +1,2 @@
1
1
  import { U as createElement, _ as SlotProps, a as RawProps, b as MaybeReactive, c as ResolveProps, d as ComponentClass, f as ComponentFn, g as JSX, h as Attrs, i as Props, l as Child, m as PropsTarget, n as ElementProps, o as ReactiveProps, p as ComponentInstance, r as MaybeReactiveProps, s as Require, t as ComponentProps, u as Component, v as Fragment } from "../infer-DGtBn6Nm.mjs";
2
- export { Attrs, Child, Component, ComponentClass, ComponentFn, ComponentInstance, ComponentProps, ElementProps, Fragment, JSX, MaybeReactive, MaybeReactiveProps, Props, PropsTarget, RawProps, ReactiveProps, Require, ResolveProps, SlotProps, createElement as h, createElement as jsx, createElement as jsxDEV, createElement as jsxs };
2
+ export { Attrs, type Child, type Component, type ComponentClass, type ComponentFn, type ComponentInstance, type ComponentProps, type ElementProps, Fragment, JSX, type MaybeReactive, type MaybeReactiveProps, type Props, type PropsTarget, type RawProps, type ReactiveProps, type Require, type ResolveProps, SlotProps, createElement as h, createElement as jsx, createElement as jsxDEV, createElement as jsxs };
@@ -1,4 +1,4 @@
1
- import { r as mountChild, t as createElement } from "../element-DGuUvJM4.mjs";
1
+ import { r as mountChild, t as createElement } from "../element-D6xVuWdX.mjs";
2
2
  //#region src/jsx-runtime/fragment.ts
3
3
  /**
4
4
  * Used by the JSX transform for `<>...</>` fragments.
@@ -295,12 +295,27 @@ const COMPUTED = Symbol("computed");
295
295
  const EFFECT = Symbol("effect");
296
296
  const EFFECT_SCOPE = Symbol("effectScope");
297
297
  const { link, unlink, propagate, checkDirty, shallowPropagate } = createReactiveSystem({
298
+ /**
299
+ * Called by the graph engine when a Mutable+Dirty node needs to recompute.
300
+ * Dispatches by tagged property:
301
+ *
302
+ * - `'getter' in node` → computed: delegate to `updateComputed`.
303
+ * - `'currentValue' in node` → signal: delegate to `updateSignal`.
304
+ * - else → effectScope: mark `Mutable` and report
305
+ * "changed", so any parent effect re-evaluates as if the scope itself
306
+ * propagated.
307
+ */
298
308
  update(node) {
299
309
  if ("getter" in node) return updateComputed(node);
300
310
  if ("currentValue" in node) return updateSignal(node);
301
311
  node.flags = 1;
302
312
  return true;
303
313
  },
314
+ /**
315
+ * Called when an effect node is notified that one of its deps is dirty.
316
+ * Inserts the effect into the flush queue in dependency order (parents
317
+ * before children) so that effects always run in topological order.
318
+ */
304
319
  notify(effect) {
305
320
  let insertIndex = queuedLength;
306
321
  let firstInsertedIndex = insertIndex;
@@ -317,6 +332,22 @@ const { link, unlink, propagate, checkDirty, shallowPropagate } = createReactive
317
332
  queued[insertIndex] = left;
318
333
  }
319
334
  },
335
+ /**
336
+ * Called when a dep node loses its last subscriber.
337
+ *
338
+ * Dispatch by tagged property:
339
+ *
340
+ * - **computed** (`'getter' in node`): if it had deps, reset to Dirty so
341
+ * it recomputes lazily if a new subscriber appears later. Cleanups
342
+ * registered via {@link onCleanup} during the previous run are flushed
343
+ * (outside any tracking context). Child effects/scopes created in the
344
+ * getter are released in LIFO order via {@link disposeAllDepsInReverse}.
345
+ * - **signal** (`'currentValue' in node`): no-op. Signals stay live so a
346
+ * future subscriber can read the latest value.
347
+ * - **effect** (`'fn' in node`): cascade-dispose via `effectOper`
348
+ * (children first, then own cleanup).
349
+ * - **effectScope** (else): cascade-dispose via `effectScopeOper`.
350
+ */
320
351
  unwatched(node) {
321
352
  if ("getter" in node) {
322
353
  const c = node;
package/dist/render.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as scope } from "./scope-De6rSJvq.mjs";
1
+ import { t as scope } from "./scope-CnEvL9Nd.mjs";
2
2
  //#region src/render.ts
3
3
  /**
4
4
  * Mount a node into `target` with a scoped lifetime.
@@ -1,4 +1,4 @@
1
- import { c as effectScope, g as untracked } from "./lib-Cg8fI7K5.mjs";
1
+ import { c as effectScope, g as untracked } from "./lib-Dkc7cV5F.mjs";
2
2
  //#region src/signals/scope.ts
3
3
  /**
4
4
  * Run `setup` inside a fresh `effectScope`. Returns `[result, stop]`.
@@ -1,4 +1,4 @@
1
- import { a as batch, c as effectScope, d as isEffectScope, f as isSignal, g as untracked, h as trigger, i as SIGNAL, l as isComputed, m as signal, n as EFFECT, o as computed, p as onCleanup, r as EFFECT_SCOPE, s as effect, t as COMPUTED, u as isEffect } from "../lib-Cg8fI7K5.mjs";
1
+ import { a as batch, c as effectScope, d as isEffectScope, f as isSignal, g as untracked, h as trigger, i as SIGNAL, l as isComputed, m as signal, n as EFFECT, o as computed, p as onCleanup, r as EFFECT_SCOPE, s as effect, t as COMPUTED, u as isEffect } from "../lib-Dkc7cV5F.mjs";
2
2
  import "../polyfill-CdZVCxdo.mjs";
3
3
  //#region src/signals/index.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as plugins, C as getCallLastIndex, D as ordinal, E as noop, O as stringify, S as createSimpleStackTrace, T as isObject, _ as getSafeTimers, a as waitForImportsToResolve, b as printDiffOrStringify, d as getNames, g as delay, h as parseSingleStack, i as resetModules, j as y, k as format, m as parseErrorStacktrace, n as getWorkerState, r as isChildProcess, u as getCurrentTest, v as processError, w as getType, x as assertTypes, y as diff } from "./benchmark.CX_oY03V-CsUg-gW0.mjs";
1
+ import { A as plugins, C as getCallLastIndex, D as ordinal, E as noop, O as stringify, S as createSimpleStackTrace, T as isObject, _ as getSafeTimers, a as waitForImportsToResolve, b as printDiffOrStringify, d as getNames, g as delay, h as parseSingleStack, i as resetModules, j as y, k as format, m as parseErrorStacktrace, n as getWorkerState, r as isChildProcess, u as getCurrentTest, v as processError, w as getType, x as assertTypes, y as diff } from "./benchmark.CX_oY03V-CSLAXL5f.mjs";
2
2
  //#region node_modules/.pnpm/@vitest+spy@4.1.3/node_modules/@vitest/spy/dist/index.js
3
3
  function isMockFunction(fn) {
4
4
  return typeof fn === "function" && "_isMockFunction" in fn && fn._isMockFunction === true;
@@ -997,16 +997,115 @@ function inspect(value, opts = {}) {
997
997
  }
998
998
  __name(inspect, "inspect");
999
999
  var config = {
1000
+ /**
1001
+ * ### config.includeStack
1002
+ *
1003
+ * User configurable property, influences whether stack trace
1004
+ * is included in Assertion error message. Default of false
1005
+ * suppresses stack trace in the error message.
1006
+ *
1007
+ * chai.config.includeStack = true; // enable stack on error
1008
+ *
1009
+ * @param {boolean}
1010
+ * @public
1011
+ */
1000
1012
  includeStack: false,
1013
+ /**
1014
+ * ### config.showDiff
1015
+ *
1016
+ * User configurable property, influences whether or not
1017
+ * the `showDiff` flag should be included in the thrown
1018
+ * AssertionErrors. `false` will always be `false`; `true`
1019
+ * will be true when the assertion has requested a diff
1020
+ * be shown.
1021
+ *
1022
+ * @param {boolean}
1023
+ * @public
1024
+ */
1001
1025
  showDiff: true,
1026
+ /**
1027
+ * ### config.truncateThreshold
1028
+ *
1029
+ * User configurable property, sets length threshold for actual and
1030
+ * expected values in assertion errors. If this threshold is exceeded, for
1031
+ * example for large data structures, the value is replaced with something
1032
+ * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.
1033
+ *
1034
+ * Set it to zero if you want to disable truncating altogether.
1035
+ *
1036
+ * This is especially userful when doing assertions on arrays: having this
1037
+ * set to a reasonable large value makes the failure messages readily
1038
+ * inspectable.
1039
+ *
1040
+ * chai.config.truncateThreshold = 0; // disable truncating
1041
+ *
1042
+ * @param {number}
1043
+ * @public
1044
+ */
1002
1045
  truncateThreshold: 40,
1046
+ /**
1047
+ * ### config.useProxy
1048
+ *
1049
+ * User configurable property, defines if chai will use a Proxy to throw
1050
+ * an error when a non-existent property is read, which protects users
1051
+ * from typos when using property-based assertions.
1052
+ *
1053
+ * Set it to false if you want to disable this feature.
1054
+ *
1055
+ * chai.config.useProxy = false; // disable use of Proxy
1056
+ *
1057
+ * This feature is automatically disabled regardless of this config value
1058
+ * in environments that don't support proxies.
1059
+ *
1060
+ * @param {boolean}
1061
+ * @public
1062
+ */
1003
1063
  useProxy: true,
1064
+ /**
1065
+ * ### config.proxyExcludedKeys
1066
+ *
1067
+ * User configurable property, defines which properties should be ignored
1068
+ * instead of throwing an error if they do not exist on the assertion.
1069
+ * This is only applied if the environment Chai is running in supports proxies and
1070
+ * if the `useProxy` configuration setting is enabled.
1071
+ * By default, `then` and `inspect` will not throw an error if they do not exist on the
1072
+ * assertion object because the `.inspect` property is read by `util.inspect` (for example, when
1073
+ * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.
1074
+ *
1075
+ * // By default these keys will not throw an error if they do not exist on the assertion object
1076
+ * chai.config.proxyExcludedKeys = ['then', 'inspect'];
1077
+ *
1078
+ * @param {Array}
1079
+ * @public
1080
+ */
1004
1081
  proxyExcludedKeys: [
1005
1082
  "then",
1006
1083
  "catch",
1007
1084
  "inspect",
1008
1085
  "toJSON"
1009
1086
  ],
1087
+ /**
1088
+ * ### config.deepEqual
1089
+ *
1090
+ * User configurable property, defines which a custom function to use for deepEqual
1091
+ * comparisons.
1092
+ * By default, the function used is the one from the `deep-eql` package without custom comparator.
1093
+ *
1094
+ * // use a custom comparator
1095
+ * chai.config.deepEqual = (expected, actual) => {
1096
+ * return chai.util.eql(expected, actual, {
1097
+ * comparator: (expected, actual) => {
1098
+ * // for non number comparison, use the default behavior
1099
+ * if(typeof expected !== 'number') return null;
1100
+ * // allow a difference of 10 between compared numbers
1101
+ * return typeof actual === 'number' && Math.abs(actual - expected) < 10
1102
+ * }
1103
+ * })
1104
+ * };
1105
+ *
1106
+ * @param {Function}
1107
+ * @public
1108
+ */
1010
1109
  deepEqual: null
1011
1110
  };
1012
1111
  function inspect2(obj, showHidden, depth, colors) {
@@ -86,14 +86,14 @@
86
86
  .x-accordion:where(:not([data-variant]), [data-variant="surface"], [data-variant="soft"]) {
87
87
  border-radius: var(--radius-4);
88
88
  --accordion-summary-bg: transparent;
89
- --accordion-summary-hover-bg: var(--base-color-a2);
90
- --accordion-body-bg: var(--base-color-a2);
89
+ --accordion-summary-hover-bg: var(--neutral-a2);
90
+ --accordion-body-bg: var(--neutral-a2);
91
91
  overflow: hidden;
92
92
  }
93
93
 
94
94
  :where(.dark, .dark-theme) .x-accordion:where(:not([data-variant]), [data-variant="surface"], [data-variant="soft"]) {
95
- --accordion-summary-bg: var(--base-color-a2);
96
- --accordion-summary-hover-bg: var(--base-color-a3);
95
+ --accordion-summary-bg: var(--neutral-a2);
96
+ --accordion-summary-hover-bg: var(--neutral-a3);
97
97
  --accordion-body-bg: transparent;
98
98
  }
99
99
 
@@ -113,7 +113,7 @@
113
113
 
114
114
  .x-accordion:where(:not([data-variant]), [data-variant="surface"]) {
115
115
  background-color: var(--color-material, var(--color-surface));
116
- border: 1px solid var(--base-color-a5);
116
+ border: 1px solid var(--neutral-a5);
117
117
  }
118
118
 
119
119
  .x-accordion:where([data-variant="soft"]) {
@@ -83,6 +83,6 @@
83
83
 
84
84
  .x-badge:where([data-variant="outline"]):where([data-high-contrast]) {
85
85
  box-shadow: inset 0 0 0 1px var(--accent-a7),
86
- inset 0 0 0 1px var(--base-color-a11);
86
+ inset 0 0 0 1px var(--neutral-a11);
87
87
  color: var(--accent-12);
88
88
  }
@@ -98,7 +98,7 @@
98
98
 
99
99
  .x-button:where([data-variant="solid"]):where([data-high-contrast]) {
100
100
  background-color: var(--accent-12);
101
- color: var(--base-color-1);
101
+ color: var(--neutral-1);
102
102
  }
103
103
 
104
104
  @media (hover: hover) {
@@ -119,8 +119,8 @@
119
119
  }
120
120
 
121
121
  .x-button:where([data-variant="solid"]):where([data-disabled]) {
122
- color: var(--base-color-a8);
123
- background-color: var(--base-color-a3);
122
+ color: var(--neutral-a8);
123
+ background-color: var(--neutral-a3);
124
124
  filter: none;
125
125
  outline: none;
126
126
  }
@@ -134,8 +134,8 @@
134
134
  }
135
135
 
136
136
  .x-button:where([data-variant="soft"], [data-variant="text"], [data-variant="borderless"]):where([data-disabled]) {
137
- color: var(--base-color-a8);
138
- background-color: var(--base-color-a3);
137
+ color: var(--neutral-a8);
138
+ background-color: var(--neutral-a3);
139
139
  }
140
140
 
141
141
  .x-button:where([data-variant="soft"]) {
@@ -162,8 +162,8 @@
162
162
  }
163
163
 
164
164
  .x-button:where([data-variant="soft"]):where([data-disabled]) {
165
- color: var(--base-color-a8);
166
- background-color: var(--base-color-a3);
165
+ color: var(--neutral-a8);
166
+ background-color: var(--neutral-a3);
167
167
  }
168
168
 
169
169
  @media (hover: hover) {
@@ -186,7 +186,7 @@
186
186
  }
187
187
 
188
188
  .x-button:where([data-variant="text"], [data-variant="borderless"]):where([data-disabled]) {
189
- color: var(--base-color-a8);
189
+ color: var(--neutral-a8);
190
190
  background-color: #0000;
191
191
  }
192
192
 
@@ -216,13 +216,13 @@
216
216
 
217
217
  .x-button:where([data-variant="outline"]):where([data-high-contrast]) {
218
218
  box-shadow: inset 0 0 0 1px var(--accent-a7),
219
- inset 0 0 0 1px var(--base-color-a11);
219
+ inset 0 0 0 1px var(--neutral-a11);
220
220
  color: var(--accent-12);
221
221
  }
222
222
 
223
223
  .x-button:where([data-variant="outline"]):where([data-disabled]) {
224
- color: var(--base-color-a8);
225
- box-shadow: inset 0 0 0 1px var(--base-color-a7);
224
+ color: var(--neutral-a8);
225
+ box-shadow: inset 0 0 0 1px var(--neutral-a7);
226
226
  background-color: #0000;
227
227
  }
228
228
 
@@ -257,9 +257,9 @@
257
257
  }
258
258
 
259
259
  .x-button:where([data-variant="surface"]):where([data-disabled]) {
260
- color: var(--base-color-a8);
261
- box-shadow: inset 0 0 0 1px var(--base-color-a6);
262
- background-color: var(--base-color-a2);
260
+ color: var(--neutral-a8);
261
+ box-shadow: inset 0 0 0 1px var(--neutral-a6);
262
+ background-color: var(--neutral-a2);
263
263
  }
264
264
 
265
265
  .x-button:where(:not([data-variant="text"])) :where(svg) {
@@ -56,58 +56,58 @@
56
56
  --card-border-radius: var(--radius-6);
57
57
  }
58
58
 
59
- :where([data-base-color]) {
60
- --card-surface-box-shadow: 0 0 0 1px var(--base-color-a5);
61
- --card-surface-hover-box-shadow: 0 0 0 1px var(--base-color-a7);
62
- --card-surface-active-box-shadow: 0 0 0 1px var(--base-color-a6);
63
- --card-elevated-box-shadow-inner: 0 0 0 1px var(--base-color-a3), 0 0 0 1px transparent,
64
- 0 0 0 .5px var(--black-a1), 0 1px 1px 0 var(--base-color-a2),
59
+ :where([data-neutral]) {
60
+ --card-surface-box-shadow: 0 0 0 1px var(--neutral-a5);
61
+ --card-surface-hover-box-shadow: 0 0 0 1px var(--neutral-a7);
62
+ --card-surface-active-box-shadow: 0 0 0 1px var(--neutral-a6);
63
+ --card-elevated-box-shadow-inner: 0 0 0 1px var(--neutral-a3), 0 0 0 1px transparent,
64
+ 0 0 0 .5px var(--black-a1), 0 1px 1px 0 var(--neutral-a2),
65
65
  0 2px 1px -1px var(--black-a1), 0 1px 3px 0 var(--black-a1);
66
- --card-elevated-box-shadow-outer: 0 0 0 0 var(--base-color-a3), 0 0 0 0 transparent, 0 0 0 0 var(--black-a1),
67
- 0 1px 1px -1px var(--base-color-a2), 0 2px 1px -2px var(--black-a1),
66
+ --card-elevated-box-shadow-outer: 0 0 0 0 var(--neutral-a3), 0 0 0 0 transparent, 0 0 0 0 var(--black-a1),
67
+ 0 1px 1px -1px var(--neutral-a2), 0 2px 1px -2px var(--black-a1),
68
68
  0 1px 3px -1px var(--black-a1);
69
- --card-elevated-hover-box-shadow-inner: 0 0 0 1px var(--base-color-a4), 0 1px 1px 1px var(--black-a1),
70
- 0 2px 1px -1px var(--base-color-a3), 0 2px 3px -2px var(--black-a1),
71
- 0 3px 12px -4px var(--base-color-a3), 0 4px 16px -8px var(--black-a1);
72
- --card-elevated-hover-box-shadow-outer: 0 0 0 0 var(--base-color-a4), 0 1px 1px 0 var(--black-a1),
73
- 0 2px 1px -2px var(--base-color-a3), 0 2px 3px -3px var(--black-a1),
74
- 0 3px 12px -5px var(--base-color-a3), 0 4px 16px -9px var(--black-a1);
75
- --card-elevated-active-box-shadow-inner: 0 0 0 1px var(--base-color-a3), 0 0 0 1px transparent,
76
- 0 0 0 .5px var(--black-a1), 0 1px 1px 0 var(--base-color-a4),
69
+ --card-elevated-hover-box-shadow-inner: 0 0 0 1px var(--neutral-a4), 0 1px 1px 1px var(--black-a1),
70
+ 0 2px 1px -1px var(--neutral-a3), 0 2px 3px -2px var(--black-a1),
71
+ 0 3px 12px -4px var(--neutral-a3), 0 4px 16px -8px var(--black-a1);
72
+ --card-elevated-hover-box-shadow-outer: 0 0 0 0 var(--neutral-a4), 0 1px 1px 0 var(--black-a1),
73
+ 0 2px 1px -2px var(--neutral-a3), 0 2px 3px -3px var(--black-a1),
74
+ 0 3px 12px -5px var(--neutral-a3), 0 4px 16px -9px var(--black-a1);
75
+ --card-elevated-active-box-shadow-inner: 0 0 0 1px var(--neutral-a3), 0 0 0 1px transparent,
76
+ 0 0 0 .5px var(--black-a1), 0 1px 1px 0 var(--neutral-a4),
77
77
  0 2px 1px -1px var(--black-a1), 0 1px 3px 0 var(--black-a1);
78
- --card-elevated-active-box-shadow-outer: 0 0 0 0 var(--base-color-a3), 0 0 0 0 transparent, 0 0 0 0 var(--black-a1),
79
- 0 1px 1px -1px var(--base-color-a4), 0 2px 1px -2px var(--black-a1),
78
+ --card-elevated-active-box-shadow-outer: 0 0 0 0 var(--neutral-a3), 0 0 0 0 transparent, 0 0 0 0 var(--black-a1),
79
+ 0 1px 1px -1px var(--neutral-a4), 0 2px 1px -2px var(--black-a1),
80
80
  0 1px 3px -1px var(--black-a1);
81
81
  }
82
82
 
83
83
  @supports (color: color-mix(in oklab, white, black)) {
84
- :where([data-base-color]) {
84
+ :where([data-neutral]) {
85
85
  --card-surface-box-shadow: 0 0 0 1px
86
- color-mix(in oklab, var(--base-color-a5), var(--base-color-5) 25%);
86
+ color-mix(in oklab, var(--neutral-a5), var(--neutral-5) 25%);
87
87
  --card-surface-hover-box-shadow: 0 0 0 1px
88
- color-mix(in oklab, var(--base-color-a7), var(--base-color-7) 25%);
88
+ color-mix(in oklab, var(--neutral-a7), var(--neutral-7) 25%);
89
89
  --card-surface-active-box-shadow: 0 0 0 1px
90
- color-mix(in oklab, var(--base-color-a6), var(--base-color-6) 25%);
90
+ color-mix(in oklab, var(--neutral-a6), var(--neutral-6) 25%);
91
91
  }
92
92
  }
93
93
 
94
- :is(.dark, .dark-theme), :is(.dark, .dark-theme) :where([data-base-color]:not(.light, .light-theme)) {
95
- --card-elevated-box-shadow-inner: 0 0 0 1px var(--base-color-a6), 0 0 0 1px transparent,
94
+ :is(.dark, .dark-theme), :is(.dark, .dark-theme) :where([data-neutral]:not(.light, .light-theme)) {
95
+ --card-elevated-box-shadow-inner: 0 0 0 1px var(--neutral-a6), 0 0 0 1px transparent,
96
96
  0 0 0 .5px var(--black-a3), 0 1px 1px 0 var(--black-a6),
97
97
  0 2px 1px -1px var(--black-a6), 0 1px 3px 0 var(--black-a5);
98
- --card-elevated-box-shadow-outer: 0 0 0 0 var(--base-color-a6), 0 0 0 0 transparent, 0 0 0 0 var(--black-a3),
98
+ --card-elevated-box-shadow-outer: 0 0 0 0 var(--neutral-a6), 0 0 0 0 transparent, 0 0 0 0 var(--black-a3),
99
99
  0 1px 1px -1px var(--black-a6), 0 2px 1px -2px var(--black-a6),
100
100
  0 1px 3px -1px var(--black-a5);
101
- --card-elevated-hover-box-shadow-inner: 0 0 0 1px var(--base-color-a6), 0 0 1px 1px var(--base-color-a4),
102
- 0 0 1px -1px var(--base-color-a4), 0 0 3px -2px var(--base-color-a3),
103
- 0 0 12px -2px var(--base-color-a3), 0 0 16px -8px var(--base-color-a7);
104
- --card-elevated-hover-box-shadow-outer: 0 0 0 0 var(--base-color-a6), 0 0 1px 0 var(--base-color-a4),
105
- 0 0 1px -2px var(--base-color-a4), 0 0 3px -3px var(--base-color-a3),
106
- 0 0 12px -3px var(--base-color-a3), 0 0 16px -9px var(--base-color-a7);
107
- --card-elevated-active-box-shadow-inner: 0 0 0 1px var(--base-color-a6), 0 0 0 1px transparent,
101
+ --card-elevated-hover-box-shadow-inner: 0 0 0 1px var(--neutral-a6), 0 0 1px 1px var(--neutral-a4),
102
+ 0 0 1px -1px var(--neutral-a4), 0 0 3px -2px var(--neutral-a3),
103
+ 0 0 12px -2px var(--neutral-a3), 0 0 16px -8px var(--neutral-a7);
104
+ --card-elevated-hover-box-shadow-outer: 0 0 0 0 var(--neutral-a6), 0 0 1px 0 var(--neutral-a4),
105
+ 0 0 1px -2px var(--neutral-a4), 0 0 3px -3px var(--neutral-a3),
106
+ 0 0 12px -3px var(--neutral-a3), 0 0 16px -9px var(--neutral-a7);
107
+ --card-elevated-active-box-shadow-inner: 0 0 0 1px var(--neutral-a6), 0 0 0 1px transparent,
108
108
  0 0 0 .5px var(--black-a3), 0 1px 1px 0 var(--black-a6),
109
109
  0 2px 1px -1px var(--black-a6), 0 1px 3px 0 var(--black-a5);
110
- --card-elevated-active-box-shadow-outer: 0 0 0 0 var(--base-color-a6), 0 0 0 0 transparent, 0 0 0 0 var(--black-a3),
110
+ --card-elevated-active-box-shadow-outer: 0 0 0 0 var(--neutral-a6), 0 0 0 0 transparent, 0 0 0 0 var(--black-a3),
111
111
  0 1px 1px -1px var(--black-a6), 0 2px 1px -2px var(--black-a6),
112
112
  0 1px 3px -1px var(--black-a5);
113
113
  }
@@ -201,16 +201,16 @@
201
201
 
202
202
  @media (hover: hover) {
203
203
  .x-card:where([data-variant="borderless"]):where(:any-link, button, label):where(:hover) {
204
- background-color: var(--base-color-a3);
204
+ background-color: var(--neutral-a3);
205
205
  }
206
206
  }
207
207
 
208
208
  .x-card:where([data-variant="borderless"]):where(:any-link, button, label):where([data-state="open"]) {
209
- background-color: var(--base-color-a3);
209
+ background-color: var(--neutral-a3);
210
210
  }
211
211
 
212
212
  .x-card:where([data-variant="borderless"]):where(:any-link, button, label):where(:active:not([data-state="open"])) {
213
- background-color: var(--base-color-a4);
213
+ background-color: var(--neutral-a4);
214
214
  }
215
215
 
216
216
  .x-card:where(:focus-visible) {
@@ -73,7 +73,7 @@
73
73
 
74
74
  .x-checkbox:where(:not([data-variant="soft"])) {
75
75
  background-color: var(--color-surface);
76
- box-shadow: inset 0 0 0 1px var(--base-color-a7);
76
+ box-shadow: inset 0 0 0 1px var(--neutral-a7);
77
77
  }
78
78
 
79
79
  .x-checkbox:where(:not([data-variant="soft"])):where(:checked, :indeterminate) {
@@ -84,12 +84,12 @@
84
84
 
85
85
  .x-checkbox:where(:not([data-variant="soft"])):where([data-high-contrast]):where(:checked, :indeterminate) {
86
86
  background-color: var(--accent-12);
87
- color: var(--base-color-1);
87
+ color: var(--neutral-1);
88
88
  }
89
89
 
90
90
  .x-checkbox:where(:not([data-variant="soft"])):where([data-disabled], :disabled) {
91
- box-shadow: inset 0 0 0 1px var(--base-color-a6);
92
- color: var(--base-color-a8);
91
+ box-shadow: inset 0 0 0 1px var(--neutral-a6);
92
+ color: var(--neutral-a8);
93
93
  background-color: #0000;
94
94
  }
95
95
 
@@ -103,6 +103,6 @@
103
103
  }
104
104
 
105
105
  .x-checkbox:where([data-variant="soft"]):where([data-disabled], :disabled) {
106
- background-color: var(--base-color-a3);
107
- color: var(--base-color-a8);
106
+ background-color: var(--neutral-a3);
107
+ color: var(--neutral-a8);
108
108
  }
@@ -105,7 +105,7 @@
105
105
 
106
106
  .x-code:where([data-variant="outline"]):where([data-high-contrast]) {
107
107
  box-shadow: inset 0 0 0 max(1px, .033em) var(--accent-a7),
108
- inset 0 0 0 max(1px, .033em) var(--base-color-a11);
108
+ inset 0 0 0 max(1px, .033em) var(--neutral-a11);
109
109
  color: var(--accent-12);
110
110
  }
111
111
 
@@ -10,8 +10,8 @@
10
10
  min-width: 1.75em;
11
11
  letter-spacing: var(--letter-spacing, var(--default-letter-spacing));
12
12
  height: fit-content;
13
- color: var(--base-color-12);
14
- background-color: var(--base-color-a3);
13
+ color: var(--neutral-12);
14
+ background-color: var(--neutral-a3);
15
15
  flex-shrink: 0;
16
16
  justify-content: center;
17
17
  align-items: center;