@nonoun/native-ui 0.2.2 → 0.2.4
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.
- package/dist/components-lean.css +53 -0
- package/dist/components.css +53 -0
- package/dist/custom-elements.json +5013 -5013
- package/dist/define.js +62 -0
- package/dist/dialog-controller.js +30 -154
- package/dist/inspector.css +231 -0
- package/dist/inspector.d.ts +7 -0
- package/dist/inspector.d.ts.map +1 -0
- package/dist/inspector.js +591 -0
- package/dist/kernel.js +182 -181
- package/dist/native-ui-lean.css +53 -0
- package/dist/native-ui.css +53 -0
- package/dist/native-ui.js +7 -5
- package/dist/nav/inspector/build-inspector.d.ts +8 -0
- package/dist/nav/inspector/build-inspector.d.ts.map +1 -0
- package/dist/nav/inspector/ds-color-swatch-element.d.ts +15 -0
- package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-color-swatch.d.ts +3 -0
- package/dist/nav/inspector/ds-color-swatch.d.ts.map +1 -0
- package/dist/nav/inspector/ds-colors-element.d.ts +14 -0
- package/dist/nav/inspector/ds-colors-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-colors.d.ts +4 -0
- package/dist/nav/inspector/ds-colors.d.ts.map +1 -0
- package/dist/nav/inspector/ds-themes-element.d.ts +13 -0
- package/dist/nav/inspector/ds-themes-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-themes.d.ts +4 -0
- package/dist/nav/inspector/ds-themes.d.ts.map +1 -0
- package/dist/nav/inspector/ds-variable-element.d.ts +19 -0
- package/dist/nav/inspector/ds-variable-element.d.ts.map +1 -0
- package/dist/nav/inspector/ds-variable.d.ts +4 -0
- package/dist/nav/inspector/ds-variable.d.ts.map +1 -0
- package/dist/nav/inspector/index.d.ts +9 -0
- package/dist/nav/inspector/index.d.ts.map +1 -0
- package/dist/register-all.js +1 -1
- package/dist/register-all2.js +25 -24
- package/dist/traits.js +5 -3
- package/dist/ui-element.js +128 -0
- package/dist/ui-icon-element.js +158 -156
- package/dist/uid.js +3 -63
- 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
|
-
|
|
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
|
|
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 {
|
|
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.
|
|
3
|
+
"version": "0.2.4",
|
|
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",
|