@nonoun/native-ui 0.2.8 → 0.2.10

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 (67) hide show
  1. package/dist/components-lean.css +119 -6
  2. package/dist/components.css +119 -6
  3. package/dist/{ui-icon-element.js → components.js} +1387 -465
  4. package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +1 -1
  5. package/dist/core/trait-runtime.d.ts.map +1 -1
  6. package/dist/{register-all2.js → core.js} +79 -35
  7. package/dist/custom-elements.json +2747 -2747
  8. package/dist/foundation.css +1 -15
  9. package/dist/inspector/build-inspector.d.ts +8 -0
  10. package/dist/inspector/build-inspector.d.ts.map +1 -0
  11. package/dist/inspector/index.d.ts +10 -0
  12. package/dist/inspector/index.d.ts.map +1 -0
  13. package/dist/{nav/inspector/ds-color-swatch-element.d.ts → inspector/native-tokens-color-swatch-element.d.ts} +3 -3
  14. package/dist/inspector/native-tokens-color-swatch-element.d.ts.map +1 -0
  15. package/dist/inspector/native-tokens-color-swatch.d.ts +3 -0
  16. package/dist/inspector/native-tokens-color-swatch.d.ts.map +1 -0
  17. package/dist/{nav/inspector/ds-colors-element.d.ts → inspector/native-tokens-colors-element.d.ts} +4 -4
  18. package/dist/inspector/native-tokens-colors-element.d.ts.map +1 -0
  19. package/dist/inspector/native-tokens-colors.d.ts +4 -0
  20. package/dist/inspector/native-tokens-colors.d.ts.map +1 -0
  21. package/dist/inspector/native-tokens-inspector-element.d.ts +15 -0
  22. package/dist/inspector/native-tokens-inspector-element.d.ts.map +1 -0
  23. package/dist/inspector/native-tokens-inspector.d.ts +3 -0
  24. package/dist/inspector/native-tokens-inspector.d.ts.map +1 -0
  25. package/dist/{nav/inspector/ds-themes-element.d.ts → inspector/native-tokens-themes-element.d.ts} +4 -4
  26. package/dist/inspector/native-tokens-themes-element.d.ts.map +1 -0
  27. package/dist/inspector/native-tokens-themes.d.ts +4 -0
  28. package/dist/inspector/native-tokens-themes.d.ts.map +1 -0
  29. package/dist/{nav/inspector/ds-variable-element.d.ts → inspector/native-tokens-variable-element.d.ts} +4 -4
  30. package/dist/inspector/native-tokens-variable-element.d.ts.map +1 -0
  31. package/dist/inspector/native-tokens-variable.d.ts +4 -0
  32. package/dist/inspector/native-tokens-variable.d.ts.map +1 -0
  33. package/dist/inspector.css +31 -31
  34. package/dist/inspector.d.ts +11 -6
  35. package/dist/inspector.d.ts.map +1 -1
  36. package/dist/inspector.js +123 -105
  37. package/dist/kernel.js +77 -77
  38. package/dist/native-ui-lean.css +120 -21
  39. package/dist/native-ui.css +120 -21
  40. package/dist/native-ui.js +4 -49
  41. package/dist/register-all.js +4 -3
  42. package/dist/traits/adapters/draggable-adapter.d.ts.map +1 -1
  43. package/dist/traits/drag-controller.d.ts +3 -0
  44. package/dist/traits/drag-controller.d.ts.map +1 -1
  45. package/dist/traits.js +3 -6
  46. package/dist/ui-icon.js +56 -0
  47. package/package.json +1 -1
  48. package/dist/define.js +0 -62
  49. package/dist/dialog-controller.js +0 -703
  50. package/dist/nav/inspector/build-inspector.d.ts +0 -8
  51. package/dist/nav/inspector/build-inspector.d.ts.map +0 -1
  52. package/dist/nav/inspector/ds-color-swatch-element.d.ts.map +0 -1
  53. package/dist/nav/inspector/ds-color-swatch.d.ts +0 -3
  54. package/dist/nav/inspector/ds-color-swatch.d.ts.map +0 -1
  55. package/dist/nav/inspector/ds-colors-element.d.ts.map +0 -1
  56. package/dist/nav/inspector/ds-colors.d.ts +0 -4
  57. package/dist/nav/inspector/ds-colors.d.ts.map +0 -1
  58. package/dist/nav/inspector/ds-themes-element.d.ts.map +0 -1
  59. package/dist/nav/inspector/ds-themes.d.ts +0 -4
  60. package/dist/nav/inspector/ds-themes.d.ts.map +0 -1
  61. package/dist/nav/inspector/ds-variable-element.d.ts.map +0 -1
  62. package/dist/nav/inspector/ds-variable.d.ts +0 -4
  63. package/dist/nav/inspector/ds-variable.d.ts.map +0 -1
  64. package/dist/nav/inspector/index.d.ts +0 -9
  65. package/dist/nav/inspector/index.d.ts.map +0 -1
  66. package/dist/ui-element.js +0 -133
  67. package/dist/uid.js +0 -87
@@ -1 +1 @@
1
- {"version":3,"file":"ui-layout-sidebar-element.d.ts","sourceRoot":"","sources":["../../../src/containers/ui-layout-sidebar/ui-layout-sidebar-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIrD;2EAC2E;AAC3E,qBAAa,eAAgB,SAAQ,SAAS;;IAC5C,MAAM,CAAC,kBAAkB,WAAiB;IAS1C,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IASpF,KAAK,IAAI,IAAI;IA+Bb,QAAQ,IAAI,IAAI;CAoGjB"}
1
+ {"version":3,"file":"ui-layout-sidebar-element.d.ts","sourceRoot":"","sources":["../../../src/containers/ui-layout-sidebar/ui-layout-sidebar-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIrD;2EAC2E;AAC3E,qBAAa,eAAgB,SAAQ,SAAS;;IAC5C,MAAM,CAAC,kBAAkB,WAAiB;IAS1C,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IASpF,KAAK,IAAI,IAAI;IAmCb,QAAQ,IAAI,IAAI;CAoGjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"trait-runtime.d.ts","sourceRoot":"","sources":["../../src/core/trait-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,YAAY;;IAmBvB,IAAI,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI;IAO3B,MAAM,CAAC,EAAE,EAAE,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vD,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAazB,UAAU,IAAI,IAAI;CAKnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACvC;AAID,wBAAgB,eAAe,IAAI,YAAY,CAS9C"}
@@ -1,18 +1,16 @@
1
- import { f as e, i as t } from "./uid.js";
2
- import { a as n, c as r, d as i, i as a, n as o, o as s, r as c, s as ee, t as l } from "./dialog-controller.js";
3
- import { s as u } from "./ui-element.js";
4
- function d(n) {
5
- let r = e.get(n);
6
- return r ? r instanceof t ? {
1
+ import { At as e, Ct as t, Ht as n, Jt as r, St as i, Yt as a, _t as o, bt as s, gt as c, vt as ee, xt as te, yt as ne } from "./components.js";
2
+ function l(e) {
3
+ let t = a.get(e);
4
+ return t ? t instanceof r ? {
7
5
  type: "signal",
8
- value: r._value,
9
- subscriberCount: r._subs.size,
6
+ value: t._value,
7
+ subscriberCount: t._subs.size,
10
8
  dependencyCount: 0
11
9
  } : {
12
10
  type: "computed",
13
- value: r._value,
14
- subscriberCount: r._subs.size,
15
- dependencyCount: r._deps.size
11
+ value: t._value,
12
+ subscriberCount: t._subs.size,
13
+ dependencyCount: t._deps.size
16
14
  } : {
17
15
  type: "unknown",
18
16
  value: void 0,
@@ -20,12 +18,57 @@ function d(n) {
20
18
  dependencyCount: 0
21
19
  };
22
20
  }
23
- function te(e) {
21
+ function u(e) {
24
22
  return typeof e == "object" && !!e && Symbol.toStringTag in e && e[Symbol.toStringTag] === "Signal";
25
23
  }
26
- function f(e) {
24
+ function re(e) {
27
25
  return typeof e == "object" && !!e && Symbol.toStringTag in e && e[Symbol.toStringTag] === "Computed";
28
26
  }
27
+ function ie(e, t) {
28
+ customElements.get(e) || customElements.define(e, t);
29
+ }
30
+ var d = class extends Event {
31
+ context;
32
+ callback;
33
+ constructor(e, t) {
34
+ super("context-request", {
35
+ bubbles: !0,
36
+ composed: !0
37
+ }), this.context = e, this.callback = t;
38
+ }
39
+ };
40
+ function ae(e) {
41
+ return class extends e {
42
+ #e = /* @__PURE__ */ new Map();
43
+ provideContext(e, t) {
44
+ this.#e.set(e, t);
45
+ }
46
+ connectedCallback() {
47
+ super.connectedCallback?.(), this.addEventListener("context-request", this.#t);
48
+ }
49
+ disconnectedCallback() {
50
+ super.disconnectedCallback?.(), this.removeEventListener("context-request", this.#t);
51
+ }
52
+ #t = (e) => {
53
+ if (!(e instanceof d)) return;
54
+ let t = this.#e.get(e.context);
55
+ t !== void 0 && (e.stopPropagation(), e.callback(t));
56
+ };
57
+ };
58
+ }
59
+ function f(e) {
60
+ return class extends e {
61
+ #e = /* @__PURE__ */ new Map();
62
+ requestContext(e, t) {
63
+ this.dispatchEvent(new d(e, (n) => {
64
+ this.#e.set(e, n), t?.(n);
65
+ }));
66
+ }
67
+ getContext(e) {
68
+ return this.#e.get(e) ?? null;
69
+ }
70
+ };
71
+ }
29
72
  /** Enables contiguous range selection via drag or click, dispatching `ui-range-change` and `ui-range-select`. */
30
73
  var p = class {
31
74
  host;
@@ -938,21 +981,21 @@ var p = class {
938
981
  constructor(e) {
939
982
  this.host = e;
940
983
  }
941
- toast(e) {
942
- return i().toastManager.toast(this.host, e);
984
+ toast(t) {
985
+ return e().toastManager.toast(this.host, t);
943
986
  }
944
- dismissToast(e) {
945
- i().toastManager.dismiss(e);
987
+ dismissToast(t) {
988
+ e().toastManager.dismiss(t);
946
989
  }
947
990
  dismissAllToasts() {
948
- i().toastManager.dismissAll();
991
+ e().toastManager.dismissAll();
949
992
  }
950
993
  destroy() {}
951
994
  };
952
995
  const A = {
953
996
  name: "pressable",
954
997
  create(e, t) {
955
- return new s(e, { disabled: t.disabled === "true" });
998
+ return new te(e, { disabled: t.disabled === "true" });
956
999
  },
957
1000
  destroy(e) {
958
1001
  e.destroy();
@@ -1084,7 +1127,7 @@ const A = {
1084
1127
  }, z = {
1085
1128
  name: "roving-focusable",
1086
1129
  create(e, t) {
1087
- return new n(e, {
1130
+ return new s(e, {
1088
1131
  selector: t.selector ?? void 0,
1089
1132
  orientation: t.orientation ?? void 0,
1090
1133
  wrap: t.wrap !== "false",
@@ -1100,7 +1143,7 @@ const A = {
1100
1143
  }, B = {
1101
1144
  name: "dismissable",
1102
1145
  create(e) {
1103
- return new a(e);
1146
+ return new ne(e);
1104
1147
  },
1105
1148
  destroy(e) {
1106
1149
  e.destroy();
@@ -1116,7 +1159,7 @@ const A = {
1116
1159
  }, H = {
1117
1160
  name: "popoverable",
1118
1161
  create(e) {
1119
- return new c(e);
1162
+ return new ee(e);
1120
1163
  },
1121
1164
  destroy(e) {
1122
1165
  e.destroy();
@@ -1139,27 +1182,28 @@ const A = {
1139
1182
  }, W = {
1140
1183
  name: "dialogable",
1141
1184
  create(e) {
1142
- return new l(e);
1185
+ return new c(e);
1143
1186
  },
1144
1187
  destroy(e) {
1145
1188
  e.destroy();
1146
1189
  }
1147
1190
  }, G = {
1148
1191
  name: "draggable",
1149
- create(e, t) {
1150
- return new r(e, {
1151
- selector: t.selector ?? "",
1152
- dropZoneSelector: t["drop-zone-selector"] ?? "",
1153
- axis: t.axis ?? "both",
1154
- mode: t.mode ?? "drop",
1155
- disabled: t.disabled === "true"
1192
+ create(e, n) {
1193
+ return new t(e, {
1194
+ selector: n.selector ?? "",
1195
+ dropZoneSelector: n["drop-zone-selector"] ?? "",
1196
+ axis: n.axis ?? "both",
1197
+ mode: n.mode ?? "drop",
1198
+ disabled: n.disabled === "true",
1199
+ animate: n.animate !== "false"
1156
1200
  });
1157
1201
  },
1158
1202
  destroy(e) {
1159
1203
  e.destroy();
1160
1204
  },
1161
1205
  update(e, t) {
1162
- "selector" in t && (e.selector = t.selector), "drop-zone-selector" in t && (e.dropZoneSelector = t["drop-zone-selector"]), "axis" in t && (e.axis = t.axis), "mode" in t && (e.mode = t.mode), "disabled" in t && (e.disabled = t.disabled === "true");
1206
+ "selector" in t && (e.selector = t.selector), "drop-zone-selector" in t && (e.dropZoneSelector = t["drop-zone-selector"]), "axis" in t && (e.axis = t.axis), "mode" in t && (e.mode = t.mode), "disabled" in t && (e.disabled = t.disabled === "true"), "animate" in t && (e.animate = t.animate !== "false");
1163
1207
  }
1164
1208
  }, K = {
1165
1209
  name: "range-selectable",
@@ -1179,7 +1223,7 @@ const A = {
1179
1223
  }, q = {
1180
1224
  name: "resizable",
1181
1225
  create(e, t) {
1182
- return new ee(e, {
1226
+ return new i(e, {
1183
1227
  handleSelector: t["handle-selector"] ?? "",
1184
1228
  axis: t.axis ?? "horizontal",
1185
1229
  min: t.min ? Number(t.min) : void 0,
@@ -1310,7 +1354,7 @@ const A = {
1310
1354
  * Register all built-in trait adapters with the global trait registry.
1311
1355
  * Call once at app startup to enable `traits="..."` attribute on UIElement subclasses.
1312
1356
  */
1313
- function ne() {
1314
- u(A), u(j), u(M), u(N), u(P), u(F), u(I), u(L), u(R), u(z), u(B), u(V), u(H), u(U), u(W), u(G), u(K), u(q), u(J), u(Y), u(X), u(Z), u(Q), u($);
1357
+ function oe() {
1358
+ n(A), n(j), n(M), n(N), n(P), n(F), n(I), n(L), n(R), n(z), n(B), n(V), n(H), n(U), n(W), n(G), n(K), n(q), n(J), n(Y), n(X), n(Z), n(Q), n($);
1315
1359
  }
1316
- export { w as A, m as B, M as C, O as D, k as E, y as F, d as H, v as I, _ as L, S as M, x as N, D as O, b as P, g as R, N as S, A as T, f as U, p as V, te as W, R as _, X as a, F as b, q as c, W as d, U as f, z as g, B as h, Z as i, C as j, T as k, K as l, V as m, $ as n, Y as o, H as p, Q as r, J as s, ne as t, G as u, L as v, j as w, P as x, I as y, h as z };
1360
+ export { w as A, m as B, M as C, O as D, k as E, y as F, ie as G, f as H, v as I, u as J, l as K, _ as L, S as M, x as N, D as O, b as P, g as R, N as S, A as T, ae as U, p as V, d as W, R as _, X as a, F as b, q as c, W as d, U as f, z as g, B as h, Z as i, C as j, T as k, K as l, V as m, $ as n, Y as o, H as p, re as q, Q as r, J as s, oe as t, G as u, L as v, j as w, P as x, I as y, h as z };