@nonoun/native-ui 0.2.8 → 0.2.9

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 (62) hide show
  1. package/dist/components-lean.css +119 -6
  2. package/dist/components.css +119 -6
  3. package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +1 -1
  4. package/dist/core/trait-runtime.d.ts.map +1 -1
  5. package/dist/custom-elements.json +1602 -1602
  6. package/dist/dialog-controller.js +38 -350
  7. package/dist/foundation.css +1 -15
  8. package/dist/{nav/inspector → inspector}/build-inspector.d.ts +2 -2
  9. package/dist/inspector/build-inspector.d.ts.map +1 -0
  10. package/dist/{nav/inspector → inspector}/ds-color-swatch-element.d.ts +1 -1
  11. package/dist/inspector/ds-color-swatch-element.d.ts.map +1 -0
  12. package/dist/inspector/ds-color-swatch.d.ts.map +1 -0
  13. package/dist/{nav/inspector → inspector}/ds-colors-element.d.ts +1 -1
  14. package/dist/inspector/ds-colors-element.d.ts.map +1 -0
  15. package/dist/inspector/ds-colors.d.ts.map +1 -0
  16. package/dist/inspector/ds-inspector-element.d.ts +15 -0
  17. package/dist/inspector/ds-inspector-element.d.ts.map +1 -0
  18. package/dist/inspector/ds-inspector.d.ts +3 -0
  19. package/dist/inspector/ds-inspector.d.ts.map +1 -0
  20. package/dist/{nav/inspector → inspector}/ds-themes-element.d.ts +1 -1
  21. package/dist/inspector/ds-themes-element.d.ts.map +1 -0
  22. package/dist/inspector/ds-themes.d.ts.map +1 -0
  23. package/dist/{nav/inspector → inspector}/ds-variable-element.d.ts +1 -1
  24. package/dist/inspector/ds-variable-element.d.ts.map +1 -0
  25. package/dist/inspector/ds-variable.d.ts.map +1 -0
  26. package/dist/{nav/inspector → inspector}/index.d.ts +1 -0
  27. package/dist/inspector/index.d.ts.map +1 -0
  28. package/dist/inspector.css +1 -1
  29. package/dist/inspector.d.ts +10 -6
  30. package/dist/inspector.d.ts.map +1 -1
  31. package/dist/inspector.js +94 -75
  32. package/dist/kernel.js +185 -186
  33. package/dist/list-navigate-controller.js +457 -0
  34. package/dist/native-ui-lean.css +120 -21
  35. package/dist/native-ui.css +120 -21
  36. package/dist/native-ui.js +7 -7
  37. package/dist/register-all.js +4 -3
  38. package/dist/register-all2.js +20 -19
  39. package/dist/traits/adapters/draggable-adapter.d.ts.map +1 -1
  40. package/dist/traits/drag-controller.d.ts +3 -0
  41. package/dist/traits/drag-controller.d.ts.map +1 -1
  42. package/dist/traits.js +5 -6
  43. package/dist/ui-icon-element.js +391 -4153
  44. package/dist/ui-layout-inspector-element.js +3777 -0
  45. package/dist/uid.js +63 -3
  46. package/package.json +1 -1
  47. package/dist/define.js +0 -62
  48. package/dist/nav/inspector/build-inspector.d.ts.map +0 -1
  49. package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +0 -1
  50. package/dist/nav/inspector/ds-color-swatch.d.ts.map +0 -1
  51. package/dist/nav/inspector/ds-colors-element.d.ts.map +0 -1
  52. package/dist/nav/inspector/ds-colors.d.ts.map +0 -1
  53. package/dist/nav/inspector/ds-themes-element.d.ts.map +0 -1
  54. package/dist/nav/inspector/ds-themes.d.ts.map +0 -1
  55. package/dist/nav/inspector/ds-variable-element.d.ts.map +0 -1
  56. package/dist/nav/inspector/ds-variable.d.ts.map +0 -1
  57. package/dist/nav/inspector/index.d.ts.map +0 -1
  58. package/dist/ui-element.js +0 -133
  59. /package/dist/{nav/inspector → inspector}/ds-color-swatch.d.ts +0 -0
  60. /package/dist/{nav/inspector → inspector}/ds-colors.d.ts +0 -0
  61. /package/dist/{nav/inspector → inspector}/ds-themes.d.ts +0 -0
  62. /package/dist/{nav/inspector → inspector}/ds-variable.d.ts +0 -0
@@ -1,7 +1,11 @@
1
- import './nav/inspector/ds-variable.ts';
2
- import './nav/inspector/ds-colors.ts';
3
- import './nav/inspector/ds-color-swatch.ts';
4
- import './nav/inspector/ds-themes.ts';
5
- export { DSColorSwatch, DSColors, DSVariable, DSThemes, buildInspector, } from './nav/inspector/index.ts';
6
- export type { DSColorEntry, DSVariableData, DSThemeEntry } from './nav/inspector/index.ts';
1
+ import { DSVariable } from './inspector/ds-variable-element.ts';
2
+ import { DSColors } from './inspector/ds-colors-element.ts';
3
+ import { DSColorSwatch } from './inspector/ds-color-swatch-element.ts';
4
+ import { DSThemes } from './inspector/ds-themes-element.ts';
5
+ import { DSInspector } from './inspector/ds-inspector-element.ts';
6
+ import { buildInspector } from './inspector/build-inspector.ts';
7
+ export { DSVariable, DSColors, DSColorSwatch, DSThemes, DSInspector, buildInspector, };
8
+ export type { DSVariableData } from './inspector/ds-variable-element.ts';
9
+ export type { DSColorEntry } from './inspector/ds-colors-element.ts';
10
+ export type { DSThemeEntry } from './inspector/ds-themes-element.ts';
7
11
  //# sourceMappingURL=inspector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAC;AACxC,OAAO,8BAA8B,CAAC;AACtC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,cAAc,GACf,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAYlE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAoBhE,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,WAAW,EACX,cAAc,GACf,CAAC;AACF,YAAY,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC"}
package/dist/inspector.js CHANGED
@@ -1,6 +1,7 @@
1
- import { t as e } from "./uid.js";
2
- import { t } from "./ui-element.js";
3
- var n = class extends t {
1
+ import { n as e, t } from "./uid.js";
2
+ import { u as n } from "./list-navigate-controller.js";
3
+ import { a as r, c as i, l as a, o, t as s, u as c } from "./ui-icon-element.js";
4
+ var l = class extends n {
4
5
  static observedAttributes = ["data"];
5
6
  #e = null;
6
7
  #t = null;
@@ -63,7 +64,7 @@ var n = class extends t {
63
64
  }));
64
65
  })), this.#t = r, this.#n = s, t.append(n, r, s), this.appendChild(t);
65
66
  }
66
- }, r = class extends t {
67
+ }, u = class extends n {
67
68
  static observedAttributes = ["data"];
68
69
  #e = [];
69
70
  attributeChangedCallback(e, t, n) {
@@ -106,7 +107,7 @@ var n = class extends t {
106
107
  }
107
108
  };
108
109
  /** Parse a computed `rgb(...)` / `rgba(...)` string into [r, g, b, a] (0–255, 0–1). */
109
- function i(e) {
110
+ function d(e) {
110
111
  let t = e.match(/[\d.]+/g);
111
112
  return !t || t.length < 3 ? [
112
113
  0,
@@ -121,7 +122,7 @@ function i(e) {
121
122
  ];
122
123
  }
123
124
  /** Relative luminance (ITU-R BT.709). Returns true if light. */
124
- function a(e, t, n) {
125
+ function f(e, t, n) {
125
126
  let r = [
126
127
  e,
127
128
  t,
@@ -130,25 +131,25 @@ function a(e, t, n) {
130
131
  return .2126 * r[0] + .7152 * r[1] + .0722 * r[2] > .4;
131
132
  }
132
133
  /** Convert 0–255 component to 2-digit hex. */
133
- function o(e) {
134
+ function p(e) {
134
135
  return Math.round(e).toString(16).padStart(2, "0");
135
136
  }
136
137
  /** sRGB → linear. */
137
- function s(e) {
138
+ function m(e) {
138
139
  return e /= 255, e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
139
140
  }
140
141
  /** linear → sRGB (0–1 range). */
141
142
  /** sRGB (0–255) → OKLCH via OKLab. Returns [L (0–1), C, H (degrees)]. */
142
- function c(e, t, n) {
143
- let r = s(e), i = s(t), a = s(n), o = .4122214708 * r + .5363325363 * i + .0514459929 * a, c = .2119034982 * r + .6806995451 * i + .1073969566 * a, l = .0883024619 * r + .2817188376 * i + .6299787005 * a, u = Math.cbrt(o), d = Math.cbrt(c), f = Math.cbrt(l), p = .2104542553 * u + .793617785 * d - .0040720468 * f, m = 1.9779984951 * u - 2.428592205 * d + .4505937099 * f, h = .0259040371 * u + .7827717662 * d - .808675766 * f, g = Math.sqrt(m * m + h * h), _ = Math.atan2(h, m) * (180 / Math.PI);
143
+ function h(e, t, n) {
144
+ let r = m(e), i = m(t), a = m(n), o = .4122214708 * r + .5363325363 * i + .0514459929 * a, s = .2119034982 * r + .6806995451 * i + .1073969566 * a, c = .0883024619 * r + .2817188376 * i + .6299787005 * a, l = Math.cbrt(o), u = Math.cbrt(s), d = Math.cbrt(c), f = .2104542553 * l + .793617785 * u - .0040720468 * d, p = 1.9779984951 * l - 2.428592205 * u + .4505937099 * d, h = .0259040371 * l + .7827717662 * u - .808675766 * d, g = Math.sqrt(p * p + h * h), _ = Math.atan2(h, p) * (180 / Math.PI);
144
145
  return _ < 0 && (_ += 360), [
145
- p,
146
+ f,
146
147
  g,
147
148
  _
148
149
  ];
149
150
  }
150
151
  /** sRGB (0–255) → HSL. Returns [H (0–360), S (0–100), L (0–100)]. */
151
- function l(e, t, n) {
152
+ function g(e, t, n) {
152
153
  e /= 255, t /= 255, n /= 255;
153
154
  let r = Math.max(e, t, n), i = Math.min(e, t, n), a = r - i, o = (r + i) / 2;
154
155
  if (a === 0) return [
@@ -164,7 +165,7 @@ function l(e, t, n) {
164
165
  ];
165
166
  }
166
167
  /** sRGB (0–255) → HSB/HSV. Returns [H (0–360), S (0–100), B (0–100)]. */
167
- function u(e, t, n) {
168
+ function _(e, t, n) {
168
169
  e /= 255, t /= 255, n /= 255;
169
170
  let r = Math.max(e, t, n), i = r - Math.min(e, t, n), a = r * 100;
170
171
  if (r === 0) return [
@@ -179,47 +180,47 @@ function u(e, t, n) {
179
180
  a
180
181
  ];
181
182
  }
182
- function d(e, t, n, r) {
183
- let [i, a, o] = c(e, t, n), s = `oklch(${(i * 100).toFixed(1)}% ${a.toFixed(4)} ${o.toFixed(1)})`;
183
+ function v(e, t, n, r) {
184
+ let [i, a, o] = h(e, t, n), s = `oklch(${(i * 100).toFixed(1)}% ${a.toFixed(4)} ${o.toFixed(1)})`;
184
185
  return r < 1 ? `oklch(${(i * 100).toFixed(1)}% ${a.toFixed(4)} ${o.toFixed(1)} / ${r.toFixed(2)})` : s;
185
186
  }
186
- function f(e, t, n, r) {
187
- let i = `#${o(e)}${o(t)}${o(n)}`;
188
- return r < 1 ? `${i}${o(Math.round(r * 255))}` : i;
187
+ function y(e, t, n, r) {
188
+ let i = `#${p(e)}${p(t)}${p(n)}`;
189
+ return r < 1 ? `${i}${p(Math.round(r * 255))}` : i;
189
190
  }
190
- function p(e, t, n, r) {
191
+ function b(e, t, n, r) {
191
192
  return r < 1 ? `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${r.toFixed(2)})` : `rgb(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)})`;
192
193
  }
193
- function m(e, t, n, r) {
194
- let [i, a, o] = l(e, t, n);
194
+ function x(e, t, n, r) {
195
+ let [i, a, o] = g(e, t, n);
195
196
  return r < 1 ? `hsla(${i.toFixed(0)}, ${a.toFixed(1)}%, ${o.toFixed(1)}%, ${r.toFixed(2)})` : `hsl(${i.toFixed(0)}, ${a.toFixed(1)}%, ${o.toFixed(1)}%)`;
196
197
  }
197
- function h(e, t, n, r) {
198
- let [i, a, o] = u(e, t, n);
198
+ function S(e, t, n, r) {
199
+ let [i, a, o] = _(e, t, n);
199
200
  return `hsb(${i.toFixed(0)}, ${a.toFixed(1)}%, ${o.toFixed(1)}%)`;
200
201
  }
201
- var g = [
202
+ var C = [
202
203
  {
203
204
  label: "OKLCH",
204
- fn: d
205
+ fn: v
205
206
  },
206
207
  {
207
208
  label: "HEX",
208
- fn: f
209
+ fn: y
209
210
  },
210
211
  {
211
212
  label: "RGB",
212
- fn: p
213
+ fn: b
213
214
  },
214
215
  {
215
216
  label: "HSL",
216
- fn: m
217
+ fn: x
217
218
  },
218
219
  {
219
220
  label: "HSB",
220
- fn: h
221
+ fn: S
221
222
  }
222
- ], _ = class extends t {
223
+ ], w = class extends n {
223
224
  static observedAttributes = ["token", "name"];
224
225
  #e = null;
225
226
  #t = null;
@@ -241,8 +242,8 @@ var g = [
241
242
  }
242
243
  setup() {
243
244
  super.setup(), this.token && (this.style.background = `var(${this.token})`, this.title = `${this.name}\n${this.token}`);
244
- let t = document.createElement("span");
245
- t.className = "ds-swatch-label", t.textContent = this.name, this.#t = t, this.appendChild(t), this.#n = e("swatch"), this.style.setProperty("anchor-name", `--${this.#n}`);
245
+ let e = document.createElement("span");
246
+ e.className = "ds-swatch-label", e.textContent = this.name, this.#t = e, this.appendChild(e), this.#n = t("swatch"), this.style.setProperty("anchor-name", `--${this.#n}`);
246
247
  let n = document.createElement("div");
247
248
  n.className = "ds-swatch-popover", n.setAttribute("popover", "auto"), n.style.setProperty("position-anchor", `--${this.#n}`), this.#e = n, this.appendChild(n), this.addEventListener("click", this.#i), this.addEventListener("ds-change", this.#r), this.addEventListener("ds-theme-change", this.#r), requestAnimationFrame(() => this.#a());
248
249
  }
@@ -265,30 +266,30 @@ var g = [
265
266
  }
266
267
  };
267
268
  #a() {
268
- let e = getComputedStyle(this).backgroundColor, [t, n, r] = i(e);
269
- this.#t && (this.#t.style.color = a(t, n, r) ? "rgba(0,0,0,0.55)" : "rgba(255,255,255,0.7)");
269
+ let e = getComputedStyle(this).backgroundColor, [t, n, r] = d(e);
270
+ this.#t && (this.#t.style.color = f(t, n, r) ? "rgba(0,0,0,0.55)" : "rgba(255,255,255,0.7)");
270
271
  }
271
272
  #o() {
272
273
  if (!this.#e) return;
273
274
  this.#e.innerHTML = "";
274
- let e = getComputedStyle(this).backgroundColor, [t, n, r, a] = i(e), o = document.createElement("div");
275
- o.className = "ds-swatch-popover-header", o.textContent = this.token, this.#e.appendChild(o);
276
- for (let e of g) {
277
- let i = e.fn(t, n, r, a), o = document.createElement("button");
275
+ let e = getComputedStyle(this).backgroundColor, [t, n, r, i] = d(e), a = document.createElement("div");
276
+ a.className = "ds-swatch-popover-header", a.textContent = this.token, this.#e.appendChild(a);
277
+ for (let e of C) {
278
+ let a = e.fn(t, n, r, i), o = document.createElement("button");
278
279
  o.className = "ds-swatch-popover-row", o.type = "button";
279
280
  let s = document.createElement("span");
280
281
  s.className = "ds-swatch-popover-label", s.textContent = e.label;
281
282
  let c = document.createElement("span");
282
- c.className = "ds-swatch-popover-value", c.textContent = i, o.append(s, c), o.addEventListener("click", (e) => {
283
- e.stopPropagation(), navigator.clipboard.writeText(i).then(() => {
283
+ c.className = "ds-swatch-popover-value", c.textContent = a, o.append(s, c), o.addEventListener("click", (e) => {
284
+ e.stopPropagation(), navigator.clipboard.writeText(a).then(() => {
284
285
  c.textContent = "Copied!", setTimeout(() => {
285
- c.textContent = i;
286
+ c.textContent = a;
286
287
  }, 1200);
287
288
  });
288
289
  }), this.#e.appendChild(o);
289
290
  }
290
291
  }
291
- }, v = /* @__PURE__ */ "color-env-lightness-min.color-env-lightness-max.color-env-lightness-delta.color-env-chroma.color-env-chroma-k-muted.color-env-chroma-k-vivid.color-env-chroma-k-edge.color-env-alpha.color-env-alpha-delta.color-env-hue-neutral.color-env-chroma-neutral.color-env-lightness-neutral.color-env-hue-accent.color-env-chroma-accent.color-env-lightness-accent.color-env-hue-info.color-env-chroma-info.color-env-lightness-info.color-env-hue-success.color-env-chroma-success.color-env-lightness-success.color-env-hue-warning.color-env-chroma-warning.color-env-lightness-warning.color-env-hue-danger.color-env-chroma-danger.color-env-lightness-danger".split("."), y = class extends t {
292
+ }, T = /* @__PURE__ */ "color-env-lightness-min.color-env-lightness-max.color-env-lightness-delta.color-env-chroma.color-env-chroma-k-muted.color-env-chroma-k-vivid.color-env-chroma-k-edge.color-env-alpha.color-env-alpha-delta.color-env-hue-neutral.color-env-chroma-neutral.color-env-lightness-neutral.color-env-hue-accent.color-env-chroma-accent.color-env-lightness-accent.color-env-hue-info.color-env-chroma-info.color-env-lightness-info.color-env-hue-success.color-env-chroma-success.color-env-lightness-success.color-env-hue-warning.color-env-chroma-warning.color-env-lightness-warning.color-env-hue-danger.color-env-chroma-danger.color-env-lightness-danger".split("."), E = class extends n {
292
293
  static observedAttributes = ["data"];
293
294
  #e = [];
294
295
  attributeChangedCallback(e, t, n) {
@@ -312,7 +313,7 @@ var g = [
312
313
  }
313
314
  #t() {
314
315
  this.innerHTML = "";
315
- let e = document.documentElement.getAttribute("theme") ?? "", t = document.createElement("ui-combobox");
316
+ let e = document.documentElement.getAttribute("theme") ?? "", t = document.createElement("ui-select");
316
317
  t.setAttribute("size", "xs"), t.setAttribute("placeholder", "Theme..."), t.setAttribute("options", JSON.stringify(this.#e.map((e) => ({
317
318
  value: e.value,
318
319
  label: e.name
@@ -322,13 +323,13 @@ var g = [
322
323
  }
323
324
  #n(e) {
324
325
  let t = document.documentElement;
325
- for (let e of v) t.style.removeProperty("--" + e);
326
+ for (let e of T) t.style.removeProperty("--" + e);
326
327
  e ? t.setAttribute("theme", e) : t.removeAttribute("theme"), this.dispatchEvent(new CustomEvent("ds-theme-change", {
327
328
  bubbles: !0,
328
329
  detail: { theme: e }
329
330
  }));
330
331
  }
331
- }, b = [
332
+ }, D = [
332
333
  {
333
334
  name: "Default",
334
335
  value: ""
@@ -345,7 +346,7 @@ var g = [
345
346
  name: "Zinc",
346
347
  value: "zinc"
347
348
  }
348
- ], x = [
349
+ ], O = [
349
350
  {
350
351
  name: "L min",
351
352
  token: "--color-env-lightness-min",
@@ -427,14 +428,14 @@ var g = [
427
428
  max: .15,
428
429
  group: "Alpha"
429
430
  }
430
- ], S = [
431
+ ], k = [
431
432
  "neutral",
432
433
  "accent",
433
434
  "info",
434
435
  "success",
435
436
  "warning",
436
437
  "danger"
437
- ], C = [
438
+ ], A = [
438
439
  "lowest",
439
440
  "lower",
440
441
  "low",
@@ -442,7 +443,7 @@ var g = [
442
443
  "high",
443
444
  "higher",
444
445
  "highest"
445
- ], w = [
446
+ ], j = [
446
447
  "brightest",
447
448
  "brighter",
448
449
  "bright",
@@ -450,7 +451,7 @@ var g = [
450
451
  "dim",
451
452
  "dimmer",
452
453
  "dimmest"
453
- ], T = [
454
+ ], M = [
454
455
  "1",
455
456
  "2",
456
457
  "3",
@@ -462,7 +463,7 @@ var g = [
462
463
  "9",
463
464
  "10",
464
465
  "11"
465
- ], E = [
466
+ ], N = [
466
467
  "050",
467
468
  "100",
468
469
  "200",
@@ -474,7 +475,7 @@ var g = [
474
475
  "800",
475
476
  "900",
476
477
  "950"
477
- ], D = [
478
+ ], P = [
478
479
  "strongest",
479
480
  "stronger",
480
481
  "strong",
@@ -483,21 +484,21 @@ var g = [
483
484
  "weaker",
484
485
  "weakest"
485
486
  ];
486
- function O(e, t) {
487
+ function F(e, t) {
487
488
  let n = document.createElement("div");
488
489
  n.className = "ds-inspector-section", t && (n.dataset.family = t);
489
490
  let r = document.createElement("h3");
490
491
  return r.className = "ds-inspector-heading", r.textContent = e, n.appendChild(r), n;
491
492
  }
492
- function k(e) {
493
+ function I(e) {
493
494
  let t = document.createElement("h4");
494
495
  return t.className = "ds-inspector-subheading", t.textContent = e, t;
495
496
  }
496
- function A(e) {
497
+ function L(e) {
497
498
  let t = document.createElement("ds-colors");
498
499
  return t.setAttribute("data", JSON.stringify(e)), t;
499
500
  }
500
- function j(e) {
501
+ function R(e) {
501
502
  let t = document.createElement("ds-variable");
502
503
  return t.setAttribute("data", JSON.stringify({
503
504
  name: e.name,
@@ -509,66 +510,66 @@ function j(e) {
509
510
  max: e.max
510
511
  })), t;
511
512
  }
512
- function M(e) {
513
+ function z(e) {
513
514
  let t = document.createElement("div");
514
515
  t.className = "ds-inspector-toolbar";
515
516
  let n = document.createElement("ds-themes");
516
- n.setAttribute("data", JSON.stringify(b)), t.appendChild(n);
517
+ n.setAttribute("data", JSON.stringify(D)), t.appendChild(n);
517
518
  let r = [{
518
519
  value: "all",
519
520
  label: "All Families"
520
- }, ...S.map((e) => ({
521
+ }, ...k.map((e) => ({
521
522
  value: e,
522
523
  label: e.charAt(0).toUpperCase() + e.slice(1)
523
- }))], i = document.createElement("ui-combobox");
524
+ }))], i = document.createElement("ui-select");
524
525
  i.setAttribute("size", "xs"), i.setAttribute("placeholder", "Family..."), i.setAttribute("options", JSON.stringify(r)), i.setAttribute("value", "all"), t.appendChild(i), e.appendChild(t);
525
526
  let a = "", o = null;
526
- for (let t of x) t.group !== a && (a = t.group, o = O(t.group, "env"), e.appendChild(o)), o.appendChild(j(t));
527
- for (let t of S) {
528
- let n = O(t.charAt(0).toUpperCase() + t.slice(1), t);
529
- n.appendChild(j({
527
+ for (let t of O) t.group !== a && (a = t.group, o = F(t.group, "env"), e.appendChild(o)), o.appendChild(R(t));
528
+ for (let t of k) {
529
+ let n = F(t.charAt(0).toUpperCase() + t.slice(1), t);
530
+ n.appendChild(R({
530
531
  name: "Hue",
531
532
  token: `--color-env-hue-${t}`,
532
533
  value: 230,
533
534
  step: 1,
534
535
  min: 0,
535
536
  max: 360
536
- })), n.appendChild(j({
537
+ })), n.appendChild(R({
537
538
  name: "Chroma",
538
539
  token: `--color-env-chroma-${t}`,
539
540
  value: .5,
540
541
  step: .01,
541
542
  min: 0,
542
543
  max: 1
543
- })), n.appendChild(j({
544
+ })), n.appendChild(R({
544
545
  name: "Lightness",
545
546
  token: `--color-env-lightness-${t}`,
546
547
  value: .5,
547
548
  step: .01,
548
549
  min: 0,
549
550
  max: 1
550
- })), n.appendChild(k("Elevation")), n.appendChild(A(C.map((e) => ({
551
+ })), n.appendChild(I("Elevation")), n.appendChild(L(A.map((e) => ({
551
552
  name: e,
552
553
  token: `--${t}-${e}`
553
- })))), n.appendChild(k("Brightness")), n.appendChild(A(w.map((e) => ({
554
+ })))), n.appendChild(I("Brightness")), n.appendChild(L(j.map((e) => ({
554
555
  name: e,
555
556
  token: `--${t}-${e}`
556
- })))), n.appendChild(k("Solid")), n.appendChild(A(T.map((e) => ({
557
+ })))), n.appendChild(I("Solid")), n.appendChild(L(M.map((e) => ({
557
558
  name: e,
558
559
  token: `--${t}-${e}`
559
- })))), n.appendChild(k("Scrim")), n.appendChild(A(T.map((e) => ({
560
+ })))), n.appendChild(I("Scrim")), n.appendChild(L(M.map((e) => ({
560
561
  name: e,
561
562
  token: `--${t}-${e}-scrim`
562
- })))), n.appendChild(k("Semantic")), n.appendChild(A(E.map((e) => ({
563
+ })))), n.appendChild(I("Semantic")), n.appendChild(L(N.map((e) => ({
563
564
  name: e,
564
565
  token: `--${t}-${e}`
565
- })))), n.appendChild(k("Semantic Scrim")), n.appendChild(A(E.map((e) => ({
566
+ })))), n.appendChild(I("Semantic Scrim")), n.appendChild(L(N.map((e) => ({
566
567
  name: e,
567
568
  token: `--${t}-${e}-scrim`
568
- })))), n.appendChild(k("Tint")), n.appendChild(A(D.map((e) => ({
569
+ })))), n.appendChild(I("Tint")), n.appendChild(L(P.map((e) => ({
569
570
  name: e,
570
571
  token: `--${t}-scrim-tint-${e}`
571
- })))), n.appendChild(k("Shade")), n.appendChild(A(D.map((e) => ({
572
+ })))), n.appendChild(I("Shade")), n.appendChild(L(P.map((e) => ({
572
573
  name: e,
573
574
  token: `--${t}-scrim-shade-${e}`
574
575
  })))), e.appendChild(n);
@@ -588,4 +589,22 @@ function M(e) {
588
589
  });
589
590
  });
590
591
  }
591
- export { _ as DSColorSwatch, r as DSColors, y as DSThemes, n as DSVariable, M as buildInspector };
592
+ /**
593
+ * Self-contained design system inspector.
594
+ *
595
+ * Stamps the full color/variable inspector UI on connection.
596
+ * Consumer usage: `<ds-inspector></ds-inspector>`.
597
+ *
598
+ * All `ds-*` sub-elements are registered by the `@nonoun/native-ui/inspector`
599
+ * entry point as a side effect of import.
600
+ */
601
+ var B = class extends n {
602
+ setup() {
603
+ super.setup(), z(this);
604
+ }
605
+ teardown() {
606
+ this.innerHTML = "", super.teardown();
607
+ }
608
+ };
609
+ e("ds-variable", l), e("ds-colors", u), e("ds-color-swatch", w), e("ds-themes", E), e("ds-inspector", B), e("ui-range", r), e("ui-select", o), e("ui-button", c), e("ui-icon", s), e("ui-listbox", a), e("ui-option", i);
610
+ export { w as DSColorSwatch, u as DSColors, B as DSInspector, E as DSThemes, l as DSVariable, z as buildInspector };