@nonoun/native-ui 0.2.2 → 0.2.3

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 (36) hide show
  1. package/dist/custom-elements.json +4463 -4463
  2. package/dist/define.js +62 -0
  3. package/dist/dialog-controller.js +30 -154
  4. package/dist/inspector.css +231 -0
  5. package/dist/inspector.d.ts +7 -0
  6. package/dist/inspector.d.ts.map +1 -0
  7. package/dist/inspector.js +591 -0
  8. package/dist/kernel.js +182 -181
  9. package/dist/native-ui.js +7 -5
  10. package/dist/nav/inspector/build-inspector.d.ts +8 -0
  11. package/dist/nav/inspector/build-inspector.d.ts.map +1 -0
  12. package/dist/nav/inspector/ds-color-swatch-element.d.ts +15 -0
  13. package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +1 -0
  14. package/dist/nav/inspector/ds-color-swatch.d.ts +3 -0
  15. package/dist/nav/inspector/ds-color-swatch.d.ts.map +1 -0
  16. package/dist/nav/inspector/ds-colors-element.d.ts +14 -0
  17. package/dist/nav/inspector/ds-colors-element.d.ts.map +1 -0
  18. package/dist/nav/inspector/ds-colors.d.ts +4 -0
  19. package/dist/nav/inspector/ds-colors.d.ts.map +1 -0
  20. package/dist/nav/inspector/ds-themes-element.d.ts +13 -0
  21. package/dist/nav/inspector/ds-themes-element.d.ts.map +1 -0
  22. package/dist/nav/inspector/ds-themes.d.ts +4 -0
  23. package/dist/nav/inspector/ds-themes.d.ts.map +1 -0
  24. package/dist/nav/inspector/ds-variable-element.d.ts +19 -0
  25. package/dist/nav/inspector/ds-variable-element.d.ts.map +1 -0
  26. package/dist/nav/inspector/ds-variable.d.ts +4 -0
  27. package/dist/nav/inspector/ds-variable.d.ts.map +1 -0
  28. package/dist/nav/inspector/index.d.ts +9 -0
  29. package/dist/nav/inspector/index.d.ts.map +1 -0
  30. package/dist/register-all.js +1 -1
  31. package/dist/register-all2.js +25 -24
  32. package/dist/traits.js +5 -3
  33. package/dist/ui-element.js +128 -0
  34. package/dist/ui-icon-element.js +158 -156
  35. package/dist/uid.js +3 -63
  36. package/package.json +9 -3
package/dist/uid.js CHANGED
@@ -75,73 +75,13 @@ function _() {
75
75
  for (let e of t) g(e);
76
76
  }
77
77
  }
78
- var v = class {
79
- [Symbol.toStringTag] = "Signal";
80
- #e;
81
- constructor(e) {
82
- this.#e = e;
83
- }
84
- get value() {
85
- return p(this.#e), this.#e._value;
86
- }
87
- set value(e) {
88
- Object.is(this.#e._value, e) || (this.#e._value = e, h(this.#e));
89
- }
90
- peek() {
91
- return this.#e._value;
92
- }
93
- };
94
- function y(e) {
95
- let t = new u(e), n = new v(t);
96
- return r.set(n, t), n;
97
- }
98
- var b = class {
99
- [Symbol.toStringTag] = "Computed";
100
- #e;
101
- constructor(e) {
102
- this.#e = e;
103
- }
104
- get value() {
105
- return p(this.#e), this.#e._dirty && this.#t(), this.#e._value;
106
- }
107
- peek() {
108
- return this.#e._dirty && this.#t(), this.#e._value;
109
- }
110
- #t() {
111
- let e = this.#e;
112
- if (i.has(e)) throw Error("Circular computed dependency detected.");
113
- m(e), i.add(e);
114
- let t = a();
115
- o(e);
116
- try {
117
- e._value = e._fn();
118
- } finally {
119
- o(t), i.delete(e), e._dirty = !1;
120
- }
121
- }
122
- };
123
- function x(e) {
124
- let t = new d(e), n = new b(t);
125
- return r.set(n, t), n;
126
- }
127
- function S(e) {
78
+ function v(e) {
128
79
  let t = new f(e);
129
80
  return g(t), () => {
130
81
  t._disposed || (t._disposed = !0, m(t));
131
82
  };
132
83
  }
133
- function C(e) {
134
- c();
135
- try {
136
- e();
137
- } finally {
138
- l(), s() === 0 && _();
139
- }
140
- }
141
- function w(e, t) {
142
- customElements.get(e) || customElements.define(e, t);
143
- }
144
- function T(e = "ui") {
84
+ function y(e = "ui") {
145
85
  return `${e}-${crypto.randomUUID().slice(0, 8)}`;
146
86
  }
147
- export { x as a, a as c, S as i, r as l, w as n, y as o, C as r, u as s, T as t, o as u };
87
+ export { m as a, _ as c, c as d, r as f, p as h, u as i, a as l, o as m, v as n, i as o, h as p, d as r, l as s, y as t, s as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nonoun/native-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Zero-dependency web component library with an OKLCH CSS design system, signal-based reactivity, and composable trait controllers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,17 +24,23 @@
24
24
  "types": "./dist/register-all.d.ts",
25
25
  "default": "./dist/register-all.js"
26
26
  },
27
+ "./inspector": {
28
+ "types": "./dist/inspector.d.ts",
29
+ "default": "./dist/inspector.js"
30
+ },
27
31
  "./css": "./dist/native-ui.css",
28
32
  "./css/foundation": "./dist/foundation.css",
29
33
  "./css/components": "./dist/components.css",
30
34
  "./css/components-lean": "./dist/components-lean.css",
31
- "./css/lean": "./dist/native-ui-lean.css"
35
+ "./css/lean": "./dist/native-ui-lean.css",
36
+ "./css/inspector": "./dist/inspector.css"
32
37
  },
33
38
  "files": [
34
39
  "dist"
35
40
  ],
36
41
  "sideEffects": [
37
- "./dist/register-all.js"
42
+ "./dist/register-all.js",
43
+ "./dist/inspector.js"
38
44
  ],
39
45
  "keywords": [
40
46
  "web-components",