@synnaxlabs/pluto 0.35.2 → 0.36.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 (234) hide show
  1. package/dist/{Animated-B3meZ8Go.cjs → Animated-BAoBw9cC.cjs} +1 -1
  2. package/dist/Animated-DkZIfEYP.js +19 -0
  3. package/dist/Item-BjErngVu.cjs +1 -0
  4. package/dist/{Item-C3mh5Jo-.js → Item-C7Q_zqsK.js} +21 -22
  5. package/dist/LinePlot-CQN3l2Pu.cjs +24 -0
  6. package/dist/LinePlot-rWkRDg70.js +5729 -0
  7. package/dist/{Link-C-KaB73i.cjs → Link-DIP4E5h4.cjs} +1 -1
  8. package/dist/{Link-By1w1FIv.js → Link-DkPbZ9Vw.js} +2 -2
  9. package/dist/Pack-ClLR2ywa.cjs +1 -0
  10. package/dist/Pack-D8EcIVa2.js +140 -0
  11. package/dist/Toggle-CZlnDV1Y.js +63934 -0
  12. package/dist/Toggle-Dwz8HiqJ.cjs +163 -0
  13. package/dist/{Video-BGyV37o3.js → Video-CI9sBV9l.js} +2 -2
  14. package/dist/{Video-CGe5Hscl.cjs → Video-xr1Ey5qV.cjs} +1 -1
  15. package/dist/aggregator-D6gAHK4j.js +13699 -0
  16. package/dist/aggregator-q3hNa4qv.cjs +77 -0
  17. package/dist/align.cjs +1 -1
  18. package/dist/align.js +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/color.cjs +1 -1
  22. package/dist/color.js +1 -1
  23. package/dist/css-C3zWKgOb.cjs +1 -0
  24. package/dist/{css-DJCM-h5_.js → css-DnIb4t_E.js} +288 -281
  25. package/dist/css.cjs +1 -1
  26. package/dist/css.js +2 -2
  27. package/dist/dropdown.cjs +1 -1
  28. package/dist/dropdown.js +1 -1
  29. package/dist/ether.cjs +1 -1
  30. package/dist/ether.js +45 -45
  31. package/dist/{external-CDXLxcOI.js → external-6FH5NjXf.js} +2 -2
  32. package/dist/{external-Bwu7ljGW.cjs → external-8w5Eg-ce.cjs} +1 -1
  33. package/dist/external-AQutxNrw.cjs +1 -0
  34. package/dist/external-BDzzt6lF.js +75 -0
  35. package/dist/external-BX17kwZc.cjs +1 -0
  36. package/dist/{external-BeFZRZSq.js → external-BeoanEV1.js} +37 -38
  37. package/dist/{external-CDYYyyoJ.js → external-BpqHq8f8.js} +13 -13
  38. package/dist/{external-BzRCbp_C.js → external-BxiJID8F.js} +2 -2
  39. package/dist/external-C-tizEE4.js +254 -0
  40. package/dist/external-CFaZ_vCi.js +91 -0
  41. package/dist/{external-8wTAbTHd.cjs → external-CIm5lpCQ.cjs} +1 -1
  42. package/dist/{external-BEwtU2Lv.cjs → external-CXQMoMS3.cjs} +1 -1
  43. package/dist/{external-DRBGP7qn.js → external-CetHCRLx.js} +37 -37
  44. package/dist/{external-BRbXi-YB.js → external-Ckaptp3S.js} +78 -79
  45. package/dist/external-Cy8UF9vk.cjs +1 -0
  46. package/dist/{external-k9_z2UE6.cjs → external-Czhk9fZS.cjs} +1 -1
  47. package/dist/{external-DaWss0D_.cjs → external-DAn-_GLc.cjs} +1 -1
  48. package/dist/{external-1M4_dCzb.cjs → external-DlCfhkx8.cjs} +1 -1
  49. package/dist/external-DtsEr2ls.cjs +1 -0
  50. package/dist/{external-Dk1cXh1i.cjs → external-Lmd8cJhx.cjs} +1 -1
  51. package/dist/external-bByVUOOg.cjs +1 -0
  52. package/dist/{external-CTvBPOgF.js → external-feiUnuJI.js} +2 -2
  53. package/dist/{external-xhGCeglf.js → external-wgG3P6Dp.js} +1 -1
  54. package/dist/{external-D08DFJfB.js → external-xPdBJlsz.js} +12 -12
  55. package/dist/header.cjs +1 -1
  56. package/dist/header.js +1 -1
  57. package/dist/index.cjs +7 -7
  58. package/dist/index.js +5191 -5501
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/jsx-runtime-DGh1k5sI.cjs +31 -0
  62. package/dist/jsx-runtime-Dx-03ztt.js +445 -0
  63. package/dist/list.cjs +1 -1
  64. package/dist/list.js +1 -1
  65. package/dist/menu.cjs +1 -1
  66. package/dist/menu.js +1 -1
  67. package/dist/pluto.css +1 -0
  68. package/dist/src/aether/main.d.ts +1 -1
  69. package/dist/src/aether/main.d.ts.map +1 -1
  70. package/dist/src/align/Center.d.ts +1 -1
  71. package/dist/src/align/Center.d.ts.map +1 -1
  72. package/dist/src/align/Pack.d.ts.map +1 -1
  73. package/dist/src/align/Space.d.ts +1 -0
  74. package/dist/src/align/Space.d.ts.map +1 -1
  75. package/dist/src/breadcrumb/Breadcrumb.d.ts +3 -2
  76. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  77. package/dist/src/button/Button.d.ts +5 -4
  78. package/dist/src/button/Button.d.ts.map +1 -1
  79. package/dist/src/button/Toggle.d.ts +2 -2
  80. package/dist/src/channel/LinePlot.d.ts +2 -1
  81. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  82. package/dist/src/css/css.d.ts +1 -1
  83. package/dist/src/css/css.d.ts.map +1 -1
  84. package/dist/src/form/Field.d.ts.map +1 -1
  85. package/dist/src/generic/Generic.d.ts +1 -1
  86. package/dist/src/generic/Generic.d.ts.map +1 -1
  87. package/dist/src/haul/Haul.d.ts +2 -2
  88. package/dist/src/haul/Haul.d.ts.map +1 -1
  89. package/dist/src/hooks/useClickOutside.d.ts +1 -1
  90. package/dist/src/hooks/useClickOutside.d.ts.map +1 -1
  91. package/dist/src/hooks/useCursorDrag/types.d.ts +1 -1
  92. package/dist/src/hooks/useCursorDrag/types.d.ts.map +1 -1
  93. package/dist/src/icon/Icon.d.ts +5 -5
  94. package/dist/src/icon/Icon.d.ts.map +1 -1
  95. package/dist/src/input/DateTime.d.ts +20 -3
  96. package/dist/src/input/DateTime.d.ts.map +1 -1
  97. package/dist/src/input/Item.d.ts.map +1 -1
  98. package/dist/src/input/Switch.d.ts.map +1 -1
  99. package/dist/src/input/Text.d.ts +2 -1
  100. package/dist/src/input/Text.d.ts.map +1 -1
  101. package/dist/src/input/types.d.ts +2 -0
  102. package/dist/src/input/types.d.ts.map +1 -1
  103. package/dist/src/list/Selector.d.ts.map +1 -1
  104. package/dist/src/main.d.ts +1 -0
  105. package/dist/src/main.d.ts.map +1 -0
  106. package/dist/src/mock/MockGLBufferController.d.ts +2 -2
  107. package/dist/src/mock/MockGLBufferController.d.ts.map +1 -1
  108. package/dist/src/note/Note.d.ts +2 -1
  109. package/dist/src/note/Note.d.ts.map +1 -1
  110. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  111. package/dist/src/resize/Multiple.d.ts +1 -1
  112. package/dist/src/resize/Multiple.d.ts.map +1 -1
  113. package/dist/src/select/Alignment.d.ts +2 -1
  114. package/dist/src/select/Alignment.d.ts.map +1 -1
  115. package/dist/src/select/Button.d.ts +4 -1
  116. package/dist/src/select/Button.d.ts.map +1 -1
  117. package/dist/src/select/Direction.d.ts +2 -1
  118. package/dist/src/select/Direction.d.ts.map +1 -1
  119. package/dist/src/select/Single.d.ts +1 -0
  120. package/dist/src/select/Single.d.ts.map +1 -1
  121. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  122. package/dist/src/status/aether/types.d.ts.map +1 -1
  123. package/dist/src/synnax/aether/provider.d.ts +141 -0
  124. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  125. package/dist/src/table/aether/Table.d.ts.map +1 -1
  126. package/dist/src/table/cells/Cells.d.ts.map +1 -1
  127. package/dist/src/tabs/types.d.ts +2 -1
  128. package/dist/src/tabs/types.d.ts.map +1 -1
  129. package/dist/src/tag/Tag.d.ts +2 -1
  130. package/dist/src/tag/Tag.d.ts.map +1 -1
  131. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  132. package/dist/src/telem/aether/static.d.ts +9 -9
  133. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  134. package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
  135. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  136. package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
  137. package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
  138. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  139. package/dist/src/text/DateTime.d.ts +1 -1
  140. package/dist/src/text/DateTime.d.ts.map +1 -1
  141. package/dist/src/text/Editable.d.ts.map +1 -1
  142. package/dist/src/text/Keyboard.d.ts +1 -1
  143. package/dist/src/text/Keyboard.d.ts.map +1 -1
  144. package/dist/src/text/Link.d.ts.map +1 -1
  145. package/dist/src/text/Text.d.ts.map +1 -1
  146. package/dist/src/tooltip/Dialog.d.ts +7 -1
  147. package/dist/src/tooltip/Dialog.d.ts.map +1 -1
  148. package/dist/src/tree/Tree.d.ts.map +1 -1
  149. package/dist/src/tree/core.d.ts +2 -1
  150. package/dist/src/tree/core.d.ts.map +1 -1
  151. package/dist/src/triggers/hooks.d.ts +1 -1
  152. package/dist/src/triggers/hooks.d.ts.map +1 -1
  153. package/dist/src/triggers/useDrag.d.ts +1 -1
  154. package/dist/src/triggers/useDrag.d.ts.map +1 -1
  155. package/dist/src/util/renderProp.d.ts +1 -1
  156. package/dist/src/util/renderProp.d.ts.map +1 -1
  157. package/dist/src/viewport/SelectMode.d.ts.map +1 -1
  158. package/dist/src/viewport/use.d.ts.map +1 -1
  159. package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
  160. package/dist/src/vis/diagram/Diagram.d.ts +2 -1
  161. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  162. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  163. package/dist/src/vis/diagram/aether/types.d.ts +2 -2
  164. package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
  165. package/dist/src/vis/diagram/edge/paths.d.ts +1 -1
  166. package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
  167. package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
  168. package/dist/src/vis/legend/Container.d.ts +1 -1
  169. package/dist/src/vis/legend/Container.d.ts.map +1 -1
  170. package/dist/src/vis/lineplot/LinePlot.d.ts +1 -0
  171. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  172. package/dist/src/vis/lineplot/Viewport.d.ts.map +1 -1
  173. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  174. package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
  175. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  176. package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
  177. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  178. package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
  179. package/dist/src/vis/log/aether/Log.d.ts +6 -6
  180. package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
  181. package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
  182. package/dist/src/vis/rule/Rule.d.ts +3 -1
  183. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  184. package/dist/src/vis/rule/aether/aether.d.ts +1 -0
  185. package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
  186. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  187. package/dist/src/vis/schematic/Grid.d.ts +7 -2
  188. package/dist/src/vis/schematic/Grid.d.ts.map +1 -1
  189. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  190. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  191. package/dist/src/vis/value/use.d.ts.map +1 -1
  192. package/dist/tabs.cjs +1 -1
  193. package/dist/tabs.js +1 -1
  194. package/dist/text.cjs +1 -1
  195. package/dist/text.js +2 -2
  196. package/dist/theming.cjs +1 -1
  197. package/dist/theming.js +2 -2
  198. package/dist/tree.cjs +1 -1
  199. package/dist/tree.js +1 -1
  200. package/dist/triggers.cjs +1 -1
  201. package/dist/triggers.js +1 -1
  202. package/dist/{units-D19WggGS.js → units-CKQQRvyD.js} +1 -1
  203. package/dist/{units-9h1yAbxY.cjs → units-YvMXZR11.cjs} +1 -1
  204. package/dist/video.cjs +1 -1
  205. package/dist/video.js +1 -1
  206. package/package.json +56 -54
  207. package/dist/Animated-BMxljHxY.js +0 -19
  208. package/dist/Item-DsAGorI8.cjs +0 -1
  209. package/dist/Keyboard-D-76mv1a.cjs +0 -1
  210. package/dist/Keyboard-DbyeBAzq.js +0 -25
  211. package/dist/LinePlot-DbXPZbQH.cjs +0 -34
  212. package/dist/LinePlot-DqoSTxNs.js +0 -6534
  213. package/dist/List-CZxRbYfm.cjs +0 -1
  214. package/dist/List-S1wnpuEv.js +0 -22
  215. package/dist/Pack-BzCJQZ58.js +0 -137
  216. package/dist/Pack-Dvf8sQVK.cjs +0 -1
  217. package/dist/Text-Bq9B_1wQ.cjs +0 -1
  218. package/dist/Text-tqSP4klc.js +0 -32
  219. package/dist/Toggle-DcPmH9Uq.js +0 -44517
  220. package/dist/Toggle-DrfPMqBr.cjs +0 -143
  221. package/dist/aggregator-23mu0FOF.js +0 -12640
  222. package/dist/aggregator-y-jNJhKX.cjs +0 -67
  223. package/dist/css-BghghSL0.cjs +0 -1
  224. package/dist/external-BFHPc8Ng.cjs +0 -1
  225. package/dist/external-Brk-4hys.cjs +0 -1
  226. package/dist/external-CY1bjqlD.js +0 -76
  227. package/dist/external-CxBbtPtX.cjs +0 -1
  228. package/dist/external-DOQ51UTh.cjs +0 -1
  229. package/dist/external-DcKg8NOr.js +0 -127
  230. package/dist/external-bMSKTtt-.cjs +0 -1
  231. package/dist/external-fvuMSTBJ.js +0 -248
  232. package/dist/jsx-runtime-B6kdoens.js +0 -634
  233. package/dist/jsx-runtime-Cek9Ww4S.cjs +0 -30
  234. package/dist/style.css +0 -1
@@ -1,11 +1,10 @@
1
- import { a9 as fe, aF as Pe, av as ke, ak as ve, aG as Te, ae as Ce, m as Ne, aj as Fe, aH as $e, aI as je, af as De, aJ as Ke, aK as Ye, aL as We, aM as ze, aN as He, am as Ve, aO as Be, aP as Ue, a8 as Ge, aQ as Je, aR as Qe, aS as Xe } from "./Toggle-DcPmH9Uq.js";
2
- import { j as Ze } from "./jsx-runtime-B6kdoens.js";
3
- import { useCallback as qe } from "react";
4
- import { q as et, p as tt } from "./aggregator-23mu0FOF.js";
5
- import "./css-DJCM-h5_.js";
6
- import "./Pack-BzCJQZ58.js";
7
- import { L as st } from "./List-S1wnpuEv.js";
8
- const de = Symbol(), q = Symbol(), v = "a", F = "w";
1
+ import { a7 as fe, aK as Le, aC as ke, aj as ve, aL as Te, ac as Ce, aM as Ne, ai as $e, aN as Fe, ad as je, aO as De, ae as Ke, aP as Ye, aQ as We, aR as ze, aS as He, aT as Ve, al as Ue, aU as Be, aV as Ge, a6 as Qe, aW as Xe, aX as Je, aY as Ze } from "./Toggle-CZlnDV1Y.js";
2
+ import { j as qe } from "./jsx-runtime-Dx-03ztt.js";
3
+ import { useCallback as et } from "react";
4
+ import { x as tt, v as st } from "./aggregator-D6gAHK4j.js";
5
+ import "./css-DnIb4t_E.js";
6
+ import "./Pack-D8EcIVa2.js";
7
+ const de = Symbol(), q = Symbol(), v = "a", $ = "w";
9
8
  let rt = (t, e) => new Proxy(t, e);
10
9
  const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) => t && (ne.has(t) ? ne.get(t) : H(t) === Object.prototype || H(t) === Array.prototype), ie = (t) => typeof t == "object" && t !== null, ce = /* @__PURE__ */ new WeakMap(), ge = (t) => t[q] || t, pe = (t, e, s) => {
11
10
  if (!ee(t)) return t;
@@ -17,13 +16,13 @@ const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) =>
17
16
  const l = (f, g) => {
18
17
  if (!h) {
19
18
  let p = a[v].get(c);
20
- if (p || (p = {}, a[v].set(c, p)), f === F) p[F] = !0;
19
+ if (p || (p = {}, a[v].set(c, p)), f === $) p[$] = !0;
21
20
  else {
22
21
  let m = p[f];
23
22
  m || (m = /* @__PURE__ */ new Set(), p[f] = m), m.add(g);
24
23
  }
25
24
  }
26
- }, u = { get: (f, g) => g === q ? c : (l("k", g), pe(Reflect.get(f, g), a[v], a.c)), has: (f, g) => g === de ? (h = !0, a[v].delete(c), !0) : (l("h", g), Reflect.has(f, g)), getOwnPropertyDescriptor: (f, g) => (l("o", g), Reflect.getOwnPropertyDescriptor(f, g)), ownKeys: (f) => (l(F), Reflect.ownKeys(f)) };
25
+ }, u = { get: (f, g) => g === q ? c : (l("k", g), pe(Reflect.get(f, g), a[v], a.c)), has: (f, g) => g === de ? (h = !0, a[v].delete(c), !0) : (l("h", g), Reflect.has(f, g)), getOwnPropertyDescriptor: (f, g) => (l("o", g), Reflect.getOwnPropertyDescriptor(f, g)), ownKeys: (f) => (l($), Reflect.ownKeys(f)) };
27
26
  return o && (u.set = u.deleteProperty = () => !1), [u, a];
28
27
  })(r, i), n[1].p = rt(i ? ((c) => {
29
28
  let o = ce.get(c);
@@ -52,7 +51,7 @@ const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) =>
52
51
  let n = null;
53
52
  try {
54
53
  for (const c of i.h || []) if (n = Reflect.has(t, c) !== Reflect.has(e, c), n) return n;
55
- if (i[F] === !0) {
54
+ if (i[$] === !0) {
56
55
  if (n = ((c, o) => {
57
56
  const a = Reflect.ownKeys(c), h = Reflect.ownKeys(o);
58
57
  return a.length !== h.length || a.some((l, u) => l !== h[u]);
@@ -70,7 +69,7 @@ const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) =>
70
69
  const n = ye(i, e);
71
70
  Object.is(n, i) || (t[r] = n);
72
71
  })), t);
73
- }, B = (t, e, s) => {
72
+ }, U = (t, e, s) => {
74
73
  var r, i, n;
75
74
  if (!V(t) || !V(e)) return;
76
75
  const c = s.get(Me(e) || e);
@@ -79,7 +78,7 @@ const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) =>
79
78
  }), c[ct] === !0 && Reflect.ownKeys(t), (i = c[ot]) == null || i.forEach((o) => {
80
79
  Reflect.getOwnPropertyDescriptor(t, o);
81
80
  }), (n = c[at]) == null || n.forEach((o) => {
82
- B(t[o], e[o], s);
81
+ U(t[o], e[o], s);
83
82
  }));
84
83
  }, K = "o", Y = "r", W = "a";
85
84
  function lt(t, e) {
@@ -94,10 +93,10 @@ function lt(t, e) {
94
93
  const m = n[(r + p) % i];
95
94
  if (!m) break;
96
95
  if (!me(m[K], a, m[W], /* @__PURE__ */ new WeakMap()))
97
- return B(a, m[K], m[W]), c == null || c.set(a, m), m[Y];
96
+ return U(a, m[K], m[W]), c == null || c.set(a, m), m[Y];
98
97
  }
99
98
  const l = /* @__PURE__ */ new WeakMap(), u = pe(a, l), f = ye(t(u), /* @__PURE__ */ new Set());
100
- B(a, a, l);
99
+ U(a, a, l);
101
100
  const g = {
102
101
  [K]: a,
103
102
  [Y]: f,
@@ -106,7 +105,7 @@ function lt(t, e) {
106
105
  return r = (r - 1 + i) % i, n[r] = g, c == null || c.set(a, g), f;
107
106
  };
108
107
  }
109
- const ht = (t, e) => et.RUNTIME === "browser" ? lt(t, e) : t;
108
+ const ht = (t, e) => tt.RUNTIME === "browser" ? lt(t, e) : t;
110
109
  function x(t) {
111
110
  return Array.isArray ? Array.isArray(t) : Se(t) === "[object Array]";
112
111
  }
@@ -169,21 +168,21 @@ class St {
169
168
  function xe(t) {
170
169
  let e = null, s = null, r = null, i = 1, n = null;
171
170
  if (_(t) || x(t))
172
- r = t, e = ae(t), s = U(t);
171
+ r = t, e = ae(t), s = B(t);
173
172
  else {
174
173
  if (!oe.call(t, "name"))
175
174
  throw new Error(Et("name"));
176
175
  const c = t.name;
177
176
  if (r = c, oe.call(t, "weight") && (i = t.weight, i <= 0))
178
177
  throw new Error(_t(c));
179
- e = ae(c), s = U(c), n = t.getFn;
178
+ e = ae(c), s = B(c), n = t.getFn;
180
179
  }
181
180
  return { path: e, id: s, weight: i, src: r, getFn: n };
182
181
  }
183
182
  function ae(t) {
184
183
  return x(t) ? t : t.split(".");
185
184
  }
186
- function U(t) {
185
+ function B(t) {
187
186
  return x(t) ? t.join(".") : t;
188
187
  }
189
188
  function xt(t, e) {
@@ -380,7 +379,7 @@ function Re(t, e, { getFn: s = d.getFn, fieldNormWeight: r = d.fieldNormWeight }
380
379
  const i = new te({ getFn: s, fieldNormWeight: r });
381
380
  return i.setKeys(t.map(xe)), i.setSources(e), i.create(), i;
382
381
  }
383
- function Lt(t, { getFn: e = d.getFn, fieldNormWeight: s = d.fieldNormWeight } = {}) {
382
+ function Pt(t, { getFn: e = d.getFn, fieldNormWeight: s = d.fieldNormWeight } = {}) {
384
383
  const { keys: r, records: i } = t, n = new te({ getFn: e, fieldNormWeight: s });
385
384
  return n.setKeys(r), n.setIndexRecords(i), n;
386
385
  }
@@ -397,7 +396,7 @@ function N(t, {
397
396
  const o = Math.abs(r - s);
398
397
  return i ? c + o / i : o ? 1 : c;
399
398
  }
400
- function Pt(t = [], e = d.minMatchCharLength) {
399
+ function Lt(t = [], e = d.minMatchCharLength) {
401
400
  let s = [], r = -1, i = -1, n = 0;
402
401
  for (let c = t.length; n < c; n += 1) {
403
402
  let o = t[n];
@@ -435,8 +434,8 @@ function kt(t, e, s, {
435
434
  }
436
435
  }
437
436
  p = -1;
438
- let L = [], A = 1, T = l + u;
439
- const Le = 1 << l - 1;
437
+ let P = [], A = 1, T = l + u;
438
+ const Pe = 1 << l - 1;
440
439
  for (let y = 0; y < l; y += 1) {
441
440
  let R = 0, O = T;
442
441
  for (; R < O; )
@@ -448,11 +447,11 @@ function kt(t, e, s, {
448
447
  ignoreLocation: h
449
448
  }) <= g ? R = O : T = O, O = Math.floor((T - R) / 2 + R);
450
449
  T = O;
451
- let se = Math.max(1, f - O + 1), D = c ? u : Math.min(f + O, u) + l, P = Array(D + 2);
452
- P[D + 1] = (1 << y) - 1;
450
+ let se = Math.max(1, f - O + 1), D = c ? u : Math.min(f + O, u) + l, L = Array(D + 2);
451
+ L[D + 1] = (1 << y) - 1;
453
452
  for (let E = D; E >= se; E -= 1) {
454
453
  let C = E - 1, re = s[t.charAt(C)];
455
- if (m && (I[C] = +!!re), P[E] = (P[E + 1] << 1 | 1) & re, y && (P[E] |= (L[E + 1] | L[E]) << 1 | 1 | L[E + 1]), P[E] & Le && (A = N(e, {
454
+ if (m && (I[C] = +!!re), L[E] = (L[E + 1] << 1 | 1) & re, y && (L[E] |= (P[E + 1] | P[E]) << 1 | 1 | P[E + 1]), L[E] & Pe && (A = N(e, {
456
455
  errors: y,
457
456
  currentLocation: C,
458
457
  expectedLocation: f,
@@ -472,7 +471,7 @@ function kt(t, e, s, {
472
471
  ignoreLocation: h
473
472
  }) > g)
474
473
  break;
475
- L = P;
474
+ P = L;
476
475
  }
477
476
  const j = {
478
477
  isMatch: p >= 0,
@@ -480,7 +479,7 @@ function kt(t, e, s, {
480
479
  score: Math.max(1e-3, A)
481
480
  };
482
481
  if (m) {
483
- const y = Pt(I, o);
482
+ const y = Lt(I, o);
484
483
  y.length ? a && (j.indices = y) : j.isMatch = !1;
485
484
  }
486
485
  return j;
@@ -553,7 +552,7 @@ class Oe {
553
552
  } = this.options;
554
553
  let l = [], u = 0, f = !1;
555
554
  this.chunks.forEach(({ pattern: p, alphabet: m, startIndex: I }) => {
556
- const { isMatch: S, score: L, indices: A } = kt(e, p, m, {
555
+ const { isMatch: S, score: P, indices: A } = kt(e, p, m, {
557
556
  location: i + I,
558
557
  distance: n,
559
558
  threshold: c,
@@ -562,7 +561,7 @@ class Oe {
562
561
  includeMatches: r,
563
562
  ignoreLocation: h
564
563
  });
565
- S && (f = !0), u += L, S && A && (l = [...l, ...A]);
564
+ S && (f = !0), u += P, S && A && (l = [...l, ...A]);
566
565
  });
567
566
  let g = {
568
567
  isMatch: f,
@@ -654,7 +653,7 @@ class Nt extends w {
654
653
  };
655
654
  }
656
655
  }
657
- class Ft extends w {
656
+ class $t extends w {
658
657
  constructor(e) {
659
658
  super(e);
660
659
  }
@@ -676,7 +675,7 @@ class Ft extends w {
676
675
  };
677
676
  }
678
677
  }
679
- class $t extends w {
678
+ class Ft extends w {
680
679
  constructor(e) {
681
680
  super(e);
682
681
  }
@@ -785,9 +784,9 @@ const G = [
785
784
  Tt,
786
785
  Ie,
787
786
  Nt,
788
- Ft,
789
- jt,
790
787
  $t,
788
+ jt,
789
+ Ft,
791
790
  Ct,
792
791
  we
793
792
  ], he = G.length, Dt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Kt = "|";
@@ -880,26 +879,26 @@ class zt {
880
879
  };
881
880
  }
882
881
  }
883
- const J = [];
882
+ const Q = [];
884
883
  function Ht(...t) {
885
- J.push(...t);
884
+ Q.push(...t);
886
885
  }
887
- function Q(t, e) {
888
- for (let s = 0, r = J.length; s < r; s += 1) {
889
- let i = J[s];
886
+ function X(t, e) {
887
+ for (let s = 0, r = Q.length; s < r; s += 1) {
888
+ let i = Q[s];
890
889
  if (i.condition(t, e))
891
890
  return new i(t, e);
892
891
  }
893
892
  return new Oe(t, e);
894
893
  }
895
- const $ = {
894
+ const F = {
896
895
  AND: "$and",
897
896
  OR: "$or"
898
- }, X = {
897
+ }, J = {
899
898
  PATH: "$path",
900
899
  PATTERN: "$val"
901
- }, Z = (t) => !!(t[$.AND] || t[$.OR]), Vt = (t) => !!t[X.PATH], Bt = (t) => !x(t) && _e(t) && !Z(t), ue = (t) => ({
902
- [$.AND]: Object.keys(t).map((e) => ({
900
+ }, Z = (t) => !!(t[F.AND] || t[F.OR]), Vt = (t) => !!t[J.PATH], Ut = (t) => !x(t) && _e(t) && !Z(t), ue = (t) => ({
901
+ [F.AND]: Object.keys(t).map((e) => ({
903
902
  [e]: t[e]
904
903
  }))
905
904
  });
@@ -909,15 +908,15 @@ function Ae(t, e, { auto: s = !0 } = {}) {
909
908
  const c = Vt(i);
910
909
  if (!c && n.length > 1 && !Z(i))
911
910
  return r(ue(i));
912
- if (Bt(i)) {
913
- const a = c ? i[X.PATH] : n[0], h = c ? i[X.PATTERN] : i[a];
911
+ if (Ut(i)) {
912
+ const a = c ? i[J.PATH] : n[0], h = c ? i[J.PATTERN] : i[a];
914
913
  if (!_(h))
915
914
  throw new Error(Mt(a));
916
915
  const l = {
917
- keyId: U(a),
916
+ keyId: B(a),
918
917
  pattern: h
919
918
  };
920
- return s && (l.searcher = Q(h, e)), l;
919
+ return s && (l.searcher = X(h, e)), l;
921
920
  }
922
921
  let o = {
923
922
  children: [],
@@ -932,7 +931,7 @@ function Ae(t, e, { auto: s = !0 } = {}) {
932
931
  };
933
932
  return Z(t) || (t = ue(t)), r(t);
934
933
  }
935
- function Ut(t, { ignoreFieldNorm: e = d.ignoreFieldNorm }) {
934
+ function Bt(t, { ignoreFieldNorm: e = d.ignoreFieldNorm }) {
936
935
  t.forEach((s) => {
937
936
  let r = 1;
938
937
  s.matches.forEach(({ key: i, norm: n, score: c }) => {
@@ -957,15 +956,15 @@ function Gt(t, e) {
957
956
  r.key && (c.key = r.key.src), r.idx > -1 && (c.refIndex = r.idx), e.matches.push(c);
958
957
  });
959
958
  }
960
- function Jt(t, e) {
959
+ function Qt(t, e) {
961
960
  e.score = t.score;
962
961
  }
963
- function Qt(t, e, {
962
+ function Xt(t, e, {
964
963
  includeMatches: s = d.includeMatches,
965
964
  includeScore: r = d.includeScore
966
965
  } = {}) {
967
966
  const i = [];
968
- return s && i.push(Gt), r && i.push(Jt), t.map((n) => {
967
+ return s && i.push(Gt), r && i.push(Qt), t.map((n) => {
969
968
  const { idx: c } = n, o = {
970
969
  item: e[c],
971
970
  refIndex: c
@@ -1013,13 +1012,13 @@ class k {
1013
1012
  ignoreFieldNorm: o
1014
1013
  } = this.options;
1015
1014
  let a = _(e) ? _(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
1016
- return Ut(a, { ignoreFieldNorm: o }), n && a.sort(c), Ee(s) && s > -1 && (a = a.slice(0, s)), Qt(a, this._docs, {
1015
+ return Bt(a, { ignoreFieldNorm: o }), n && a.sort(c), Ee(s) && s > -1 && (a = a.slice(0, s)), Xt(a, this._docs, {
1017
1016
  includeMatches: r,
1018
1017
  includeScore: i
1019
1018
  });
1020
1019
  }
1021
1020
  _searchStringList(e) {
1022
- const s = Q(e, this.options), { records: r } = this._myIndex, i = [];
1021
+ const s = X(e, this.options), { records: r } = this._myIndex, i = [];
1023
1022
  return r.forEach(({ v: n, i: c, n: o }) => {
1024
1023
  if (!M(n))
1025
1024
  return;
@@ -1052,7 +1051,7 @@ class k {
1052
1051
  const g = o.children[u], p = r(g, a, h);
1053
1052
  if (p.length)
1054
1053
  l.push(...p);
1055
- else if (o.operator === $.AND)
1054
+ else if (o.operator === F.AND)
1056
1055
  return [];
1057
1056
  }
1058
1057
  return l;
@@ -1067,7 +1066,7 @@ class k {
1067
1066
  }), c;
1068
1067
  }
1069
1068
  _searchObjectList(e) {
1070
- const s = Q(e, this.options), { keys: r, records: i } = this._myIndex, n = [];
1069
+ const s = X(e, this.options), { keys: r, records: i } = this._myIndex, n = [];
1071
1070
  return i.forEach(({ $: c, i: o }) => {
1072
1071
  if (!M(c))
1073
1072
  return;
@@ -1114,16 +1113,16 @@ class k {
1114
1113
  }
1115
1114
  k.version = "7.0.0";
1116
1115
  k.createIndex = Re;
1117
- k.parseIndex = Lt;
1116
+ k.parseIndex = Pt;
1118
1117
  k.config = d;
1119
1118
  k.parseQuery = Ae;
1120
1119
  Ht(zt);
1121
- const Xt = {
1120
+ const Jt = {
1122
1121
  threshold: 0.3
1123
1122
  }, Zt = (t) => (e) => {
1124
1123
  const s = new k(e, {
1125
1124
  keys: Object.keys(e[0]),
1126
- ...Xt,
1125
+ ...Jt,
1127
1126
  ...t
1128
1127
  });
1129
1128
  return {
@@ -1141,11 +1140,11 @@ const Xt = {
1141
1140
  onChange: s,
1142
1141
  transformBefore: r
1143
1142
  }) => {
1144
- const [i, n] = tt({
1143
+ const [i, n] = st({
1145
1144
  onChange: s,
1146
1145
  value: e,
1147
1146
  initial: ""
1148
- }), { setTransform: c, deleteTransform: o } = fe(), a = Pe(c, t, []), h = qe(
1147
+ }), { setTransform: c, deleteTransform: o } = fe(), a = Le(c, t, []), h = et(
1149
1148
  (l) => {
1150
1149
  n(l), l.length === 0 ? o("filter") : (r != null && (l = r(l)), a("filter", es({ term: l })));
1151
1150
  },
@@ -1153,39 +1152,39 @@ const Xt = {
1153
1152
  );
1154
1153
  return { value: i, onChange: h };
1155
1154
  }, ts = ({
1156
- children: t = (s) => /* @__PURE__ */ Ze.jsx(ke, { placeholder: "Filter", ...s }),
1155
+ children: t = (s) => /* @__PURE__ */ qe.jsx(ke, { placeholder: "Filter", ...s }),
1157
1156
  ...e
1158
- }) => t(be(e)), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1157
+ }) => t(be(e)), ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1159
1158
  __proto__: null,
1160
1159
  Column: ve,
1161
1160
  ColumnContext: Te,
1162
1161
  Core: Ce,
1163
1162
  DataProvider: Ne,
1164
1163
  Filter: ts,
1165
- Hover: Fe,
1166
- ItemFrame: $e,
1167
- List: st,
1168
- Search: je,
1169
- Selector: De,
1170
- selectValueIsZero: Ke,
1171
- useDataContext: Ye,
1164
+ Hover: $e,
1165
+ ItemFrame: Fe,
1166
+ List: je,
1167
+ Search: De,
1168
+ Selector: Ke,
1169
+ selectValueIsZero: Ye,
1170
+ useDataContext: We,
1172
1171
  useDataUtilContext: fe,
1173
1172
  useFilter: be,
1174
- useGetTransformedData: We,
1175
- useHoverContext: ze,
1176
- useSearch: He,
1177
- useSelect: Ve,
1173
+ useGetTransformedData: ze,
1174
+ useHoverContext: He,
1175
+ useSearch: Ve,
1176
+ useSelect: Ue,
1178
1177
  useSelection: Be,
1179
- useSelectionContext: Ue,
1180
- useSelectionUtils: Ge,
1181
- useSetSourceData: Je,
1182
- useSourceData: Qe,
1183
- useTransformedData: Xe
1178
+ useSelectionContext: Ge,
1179
+ useSelectionUtils: Qe,
1180
+ useSetSourceData: Xe,
1181
+ useSourceData: Je,
1182
+ useTransformedData: Ze
1184
1183
  }, Symbol.toStringTag, { value: "Module" }));
1185
1184
  export {
1186
1185
  ts as F,
1187
1186
  es as c,
1188
- hs as e,
1187
+ ls as e,
1189
1188
  Zt as f,
1190
1189
  ht as p
1191
1190
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./Toggle-Dwz8HiqJ.cjs"),s=require("./jsx-runtime-DGh1k5sI.cjs"),n=require("./css-C3zWKgOb.cjs");require("./aggregator-q3hNa4qv.cjs");require("react");const c=require("./Pack-ClLR2ywa.cjs"),m=({className:r,variant:i="error",...t})=>s.jsxRuntimeExports.jsx(e.Text$1,{className:n.CSS(n.CSS.B("input-help-text"),n.CSS.BM("input-help-text",i),r),level:"small",...t}),j=({className:r,required:i=!1,children:t,...u})=>s.jsxRuntimeExports.jsxs("label",{className:n.CSS(n.CSS.B("input-label"),r),...u,children:[t," ",i&&s.jsxRuntimeExports.jsx("span",{className:n.CSS.B("required-indicator"),children:"*"})]}),h=(r,i="x")=>r??(n.g.construct(i)==="y"?"stretch":"center"),p=({label:r,showLabel:i=!0,helpText:t,direction:u="y",className:d,children:l,required:g,align:R,size:T="small",padHelpText:o=!1,helpTextVariant:x,showHelpText:D=!0,...E})=>{let a;const C=D&&t!=null&&t.length>0,S=i&&r!=null&&r.length>0;return!C&&!S?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:l}):(u==="x"?a=s.jsxRuntimeExports.jsxs(c.Space,{direction:"y",size:"small",children:[l,(o||t!=null&&t.length>0)&&s.jsxRuntimeExports.jsx(m,{variant:x,children:t})]}):a=s.jsxRuntimeExports.jsxs(c.Space,{direction:"y",size:1/3,children:[l,(o||t!=null&&t.length>0)&&s.jsxRuntimeExports.jsx(m,{variant:x,children:t})]}),s.jsxRuntimeExports.jsxs(c.Space,{className:n.CSS(n.CSS.B("input-item"),d),direction:u,size:T,align:h(R,u),...E,children:[S&&s.jsxRuntimeExports.jsx(j,{required:g,children:r}),a]}))},b=Object.freeze(Object.defineProperty({__proto__:null,Calendar:e.Calendar,Date:e.Date,DateTime:e.DateTime$1,DragButton:e.DragButton,HelpText:m,Item:p,Label:j,Numeric:e.Numeric,Switch:e.Switch$1,Text:e.Text$2,TextArea:e.TextArea,Time:e.Time,TimeSelector:e.TimeSelector,combineDateAndTimeValue:e.combineDateAndTimeValue,createTimeList:e.createTimeList,useDate:e.useDate,useTime:e.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=p;exports.external=b;
@@ -1 +1 @@
1
- "use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-y-jNJhKX.cjs"),c=require("react"),S=require("./Pack-Dvf8sQVK.cjs"),a=require("./Toggle-DrfPMqBr.cjs"),o=require("./css-BghghSL0.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(E,{index:t,level:r,divided:e,children:n},t))})},E=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,key:C,...h}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...h},C??s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},R=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},g=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:R,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=g;
1
+ "use strict";const i=require("./jsx-runtime-DGh1k5sI.cjs"),d=require("./aggregator-q3hNa4qv.cjs"),c=require("react"),S=require("./Pack-ClLR2ywa.cjs"),a=require("./Toggle-Dwz8HiqJ.cjs"),o=require("./css-C3zWKgOb.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(E,{index:t,level:r,divided:e,children:n},t))})},E=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,key:C,...h}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...h},C??s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},R=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},g=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:R,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=g;
@@ -1 +1 @@
1
- "use strict";const r=require("./aggregator-y-jNJhKX.cjs"),e=require("./Toggle-DrfPMqBr.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
1
+ "use strict";const r=require("./aggregator-q3hNa4qv.cjs"),e=require("./Toggle-Dwz8HiqJ.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
@@ -1 +1 @@
1
- "use strict";const e=require("./Toggle-DrfPMqBr.cjs"),o=require("./Link-C-KaB73i.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
1
+ "use strict";const e=require("./Toggle-Dwz8HiqJ.cjs"),o=require("./Link-DIP4E5h4.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
@@ -0,0 +1 @@
1
+ "use strict";const I=require("./aggregator-q3hNa4qv.cjs"),R=require("./jsx-runtime-DGh1k5sI.cjs"),o=require("./Toggle-Dwz8HiqJ.cjs"),C=require("react"),re=require("./Link-DIP4E5h4.cjs"),se=require("./Animated-BAoBw9cC.cjs"),p=require("./css-C3zWKgOb.cjs");require("./Pack-ClLR2ywa.cjs");const Y=(e,t)=>t.includes(e.key),H=(e,t)=>{t&&e.sort((n,s)=>I.F.stringsWithNumbers(n.name,s.name));let r=!1;for(let n=0;n<e.length;n++){const s=e[n];s.forcePosition!=null&&n!==s.forcePosition&&(r=!0,e.splice(n,1),e.splice(s.forcePosition,0,s))}return r?H(e,!1):e},K=({nodes:e,expanded:t,depth:r=0,sort:n=!0,path:s=""})=>{r===0&&n&&(e=e.sort((a,i)=>a.name.localeCompare(i.name)));const l=[];return e.forEach((a,i)=>{const c=`${s}${a.key}/`,h=Y(a,t);l.push({...a,depth:r,expanded:h,index:i,path:c}),h&&a.children!=null&&(a.children=H(a.children,n),l.push(...K({nodes:a.children,expanded:t,depth:r+1,sort:n,path:c})))}),l},le=({tree:e,destination:t,keys:r})=>(r=I.A(r),r.forEach(n=>{const s=j({tree:e,key:n});s!=null&&(z({tree:e,keys:n}),V({tree:e,destination:t,additions:s}))}),e),z=({tree:e,keys:t})=>{t=I.A(t);const r=e.map(n=>n.key);return t.forEach(n=>{var l;const s=r.indexOf(n);if(s!==-1)e.splice(s,1);else{const a=A({tree:e,key:n});a!=null&&(a.children=(l=a.children)==null?void 0:l.filter(i=>i.key!==n))}}),e},V=({tree:e,destination:t,additions:r})=>{r=I.A(r);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children??(n.children=[]);const s=r.map(l=>l.key);return n.children=[...r,...n.children.filter(l=>!s.includes(l.key))],e},ae=({tree:e,key:t,updater:r,throwOnMissing:n=!0})=>{var a,i;const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=A({tree:e,key:t});if(l!=null){const c=(a=l.children)==null?void 0:a.findIndex(h=>h.key===t);c!=null&&c!==-1&&((i=l.children)==null||i.splice(c,1,r(s)))}else e.splice(e.findIndex(c=>c.key===t),1,r(s));return e},ce=({tree:e,parent:t,updater:r,throwOnMissing:n=!0})=>{const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return s.children=r(s.children??[]),e},j=({tree:e,key:t,depth:r=0})=>{for(let n=0;n<e.length;n++){const s=e[n];if(s.key===t){const l=s;return l.depth=r,l.position=n,l}if(s.children!=null){const l=j({tree:s.children,key:t,depth:r+1});if(l!=null)return l}}return null},ie=({tree:e,keys:t})=>{const r=[];for(const n of t){const s=j({tree:e,key:n});s!=null&&r.push(s)}return r},A=({tree:e,key:t})=>{for(const r of e)if(r.children!=null){if(r.children.some(s=>s.key===t))return r;const n=A({tree:r.children,key:t});if(n!=null)return n}return null},J=e=>e.map(t=>({...t,children:J(t.children??[])})),Q=(...e)=>{const t=[];return e.forEach(r=>{t.push(r),r.children!=null&&t.push(...Q(...r.children))}),t},M="tree-item",oe=[["Shift"]],de=e=>{const{onExpand:t,nodes:r,initialExpanded:n=[],sort:s=!0,selected:l,onSelectedChange:a}=e??{},[i,c,h]=o.useCombinedStateAndRef(n),[d,N]=I.usePassthrough({initial:[],value:l,onChange:a}),T=C.useMemo(()=>K({nodes:r,expanded:i,sort:s}),[r,i,s]),v=o.useSyncedRef(T),w=o.useHeldRef({triggers:oe}),$=C.useCallback((f,{clicked:u})=>{N(f);const S=v.current.find(b=>b.key===u);if((S==null?void 0:S.hasChildren)===!1||u==null||w.current.held)return;const E=h.current,k=E.some(b=>b===u)?"contract":"expand";let y;k==="contract"?y=E.filter(b=>b!==u):y=[...E,u],c(y),t==null||t({current:y,action:k,clicked:u})},[t,v,c,N]),m=C.useCallback(f=>{c(u=>I.n([...u,f])),t==null||t({current:i,action:"expand",clicked:f})},[c]),L=C.useCallback(f=>{c(u=>u.filter(S=>S!==f)),t==null||t({current:i,action:"contract",clicked:f})},[c]),_=C.useCallback(()=>c([]),[c]);return{onSelect:$,selected:d,expanded:i,contract:L,expand:m,nodes:T,clearExpanded:_}},G=C.memo(({entry:e,selected:t,onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,loading:i=!1,useMargin:c=!0,translate:h})=>{const{key:d,hasChildren:N=!1,allowRename:T=!1,children:v,icon:w,name:$,depth:m,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=o.useSelectionUtils(),{getSourceData:S}=o.useDataUtilContext(),E=N||v!=null&&v.length>0,k=[];E&&k.push(R.jsxRuntimeExports.jsx(se.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"})),w!=null&&k.push(w);const y=[];i&&y.push(R.jsxRuntimeExports.jsx(o.xt.Loading,{className:p.CSS.B("loading-indicator")}));const[b,O]=C.useState(!1),{startDrag:U,...Z}=o.useDragAndDrop({type:"Tree.Item",key:d,canDrop:C.useCallback(({items:x,source:q})=>{const g=x.map(P=>P.key);return O(!1),q.type==="Tree.Item"&&!g.includes(d)},[]),onDrop:C.useCallback(x=>(n==null?void 0:n(d,x))??[],[d,n]),onDragOver:C.useCallback(()=>O(!0),[])}),D=()=>{const x=u(),q=S().filter(g=>x.includes(g.key));if(x.includes(d)){const g=q.map(({key:P,haulItems:B,depth:W})=>[{type:M,key:P,data:{depth:W}},...(B==null?void 0:B.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(g,P=>l==null?void 0:l(d,P))}U([{type:M,key:d,data:{depth:m}},...f.map(g=>({...g,data:{...g.data,depth:m}}))],g=>l==null?void 0:l(d,g))},ee=c?"marginLeft":"paddingLeft";let F=m*2+1;E&&c&&(F-=1);const te={id:d,variant:"text",draggable:f.length>0,className:p.CSS(p.CSS.BE("list","item"),o.CONTEXT_TARGET,b&&p.CSS.M("dragging-over"),t&&o.CONTEXT_SELECTED,p.CSS.selected(t),E&&p.CSS.M("has-children"),p.CSS.BM("depth",m.toString())),onDragLeave:()=>O(!1),onDragStart:D,onClick:()=>r==null?void 0:r(d),style:{border:"none",position:h!=null?"absolute":"relative",transform:`translateY(${h}px)`,[ee]:`${F}rem`,"--pluto-tree-indicator-offset":`${m*1.5+(m===0?0:.5)}rem`},startIcon:k,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:x=>a==null?void 0:a(d,x),href:_,...Z},ne=_!=null?re.Link:o.Button;return R.jsxRuntimeExports.jsx(ne,{className:p.CSS.BE("list","item"),...te,children:R.jsxRuntimeExports.jsx(o.MaybeEditable,{id:`text-${d}`,level:"p",allowDoubleClick:!1,value:$,disabled:!T,onChange:x=>s==null?void 0:s(d,x)})})});G.displayName="Tree.Item";const ue=o.componentRenderProp(G),fe=({nodes:e,selected:t=[],onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,className:i,children:c=ue,itemHeight:h=27,useMargin:d=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:w,contract:$,emptyContent:m,loading:L,..._})=>{const f=T?o.Core.Virtual:o.Core;return R.jsxRuntimeExports.jsx(o.List,{data:e,emptyContent:m,children:R.jsxRuntimeExports.jsx(o.Selector,{value:t,onChange:r,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:h,className:p.CSS(i,p.CSS.B("tree"),N&&p.CSS.M("rules")),..._,children:({key:u,...S})=>c({...S,key:u,loading:L===u,useMargin:d,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a})})})})},he=(e,t)=>o.edit(`text-${e}`,t),pe=e=>o.asyncEdit(`text-${e}`),me=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:M,Tree:fe,asyncRename:pe,deepCopy:J,findNode:j,findNodeParent:A,findNodes:ie,flatten:K,getDescendants:Q,moveNode:le,removeNode:z,setNode:V,shouldExpand:Y,sortAndSplice:H,startRenaming:he,updateNode:ae,updateNodeChildren:ce,use:de},Symbol.toStringTag,{value:"Module"}));exports.external=me;
@@ -1 +1 @@
1
- "use strict";const e=require("./Pack-Dvf8sQVK.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
1
+ "use strict";const e=require("./Pack-ClLR2ywa.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./aggregator-q3hNa4qv.cjs"),e=require("./Toggle-Dwz8HiqJ.cjs"),l=require("./jsx-runtime-DGh1k5sI.cjs"),L=require("react"),g=require("./Pack-ClLR2ywa.cjs"),M=require("./Animated-BAoBw9cC.cjs"),f=require("./css-C3zWKgOb.cjs"),q=[],B=({data:t,emptyContent:n,value:i,onChange:c,allowMultiple:a,allowNone:m,hideColumnHeader:s=!1,columns:h=q,visible:j,itemHeight:x=e.Column.itemHeight,listItem:y=e.componentRenderProp(e.Column.Item),replaceOnSingle:E,omit:p,autoSelectOnNone:S,trigger:k,extraDialogContent:C,variant:r="connected",...o})=>{let b=l.jsxRuntimeExports.jsxs(e.Hover,{disabled:!j,children:[C,l.jsxRuntimeExports.jsx(e.Column.Header,{hide:s||y!=null,columns:h,children:l.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:x,children:y})})]});return r!=="connected"&&(b=l.jsxRuntimeExports.jsx(g.Pack,{direction:"y",borderShade:4,className:f.CSS.B("select-dialog-content"),children:b})),l.jsxRuntimeExports.jsx(e.List,{data:t,emptyContent:n,omit:p,children:l.jsxRuntimeExports.jsx(e.Selector,{value:i,onChange:c,allowMultiple:a,allowNone:m,replaceOnSingle:E,autoSelectOnNone:S,children:l.jsxRuntimeExports.jsxs(e.Dialog,{visible:j,className:f.CSS.B("select"),keepMounted:!1,variant:r,...o,children:[k,b]})})})},R=({children:t=P,value:n,onChange:i,entryRenderKey:c="key",allowNone:a=!1,allowMultiple:m=!1,data:s,replaceOnSingle:h,className:j,size:x="small",actions:y,pack:E=!0,variant:p,...S})=>{const{onSelect:k}=e.useSelect({allowMultiple:m,allowNone:a,replaceOnSingle:h,data:s,value:n,onChange:i}),C=o=>{p!=="preview"&&k(o)},r=s==null?void 0:s.map(o=>t({key:o.key,onClick:()=>C(o.key),size:x,selected:o.key===n,entry:o,title:o[c]}));return E?l.jsxRuntimeExports.jsxs(g.Pack,{borderShade:4,className:f.CSS(f.CSS.B("select-button"),j),size:x,...S,children:[r,y]}):l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:r})},P=({key:t,onClick:n,selected:i,title:c})=>l.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:i?"filled":"outlined",size:"small",children:c},t),v=({selected:t,renderKey:n,toggle:i,visible:c,children:a,...m})=>l.jsxRuntimeExports.jsx(e.Button,{className:f.CSS.B("select-dropdown-button"),onClick:i,variant:"outlined",endIcon:l.jsxRuntimeExports.jsx(M.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:c}),...m,children:a??(t==null?void 0:t[n])}),T=e.componentRenderProp(v),N=({data:t,value:n,columns:i=[],children:c=T,entryRenderKey:a="key",allowNone:m=!1,onChange:s,disabled:h,hideColumnHeader:j=!0,variant:x,dropdownVariant:y,...E})=>{const{close:p,visible:S,toggle:k}=e.use$2(),[C,r]=L.useState((t==null?void 0:t.find(d=>d.key===n))??null);L.useEffect(()=>{r((t==null?void 0:t.find(d=>d.key===n))??null)},[t,n]);const o=L.useCallback((d,A)=>{if(!(Array.isArray(d)||d===null)){if(p(),d==null)return r(null),s(n);r(A.entries[0]),s(d)}},[s,n,p,r]),b={selected:C,renderKey:a,toggle:k,visible:S,disabled:h};return x!=null&&(b.variant=x),l.jsxRuntimeExports.jsx(B,{close:p,data:t,visible:S,value:n,onChange:o,allowMultiple:!1,allowNone:m,columns:i,hideColumnHeader:j,variant:y,trigger:l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:c(b)}),...E})},Z=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"h5",label:"S"},{key:"small",label:"XS"}],D=({children:t,...n})=>l.jsxRuntimeExports.jsx(R,{...n,data:Z,entryRenderKey:"label",children:t}),_=[{key:600,label:"Bold"},{key:500,label:"Medium"},{key:400,label:"Normal"},{key:250,label:"Light"}],w=({children:t,...n})=>l.jsxRuntimeExports.jsx(R,{...n,data:_,entryRenderKey:"label",children:t}),z=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:u.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:e.Keyboard,LEVELS:u.LEVELS,LevelComponentSizes:u.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:D,SelectWeight:w,Symbols:e.Symbols,Text:e.Text$1,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:u.dimensions,downLevel:u.downLevel,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:u.levelZ,specZ:u.specZ,upLevel:u.upLevel,weightZ:u.weightZ},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=v;exports.Button=R;exports.Core=B;exports.DropdownButton=N;exports.SelectLevel=D;exports.SelectWeight=w;exports.defaultButton=T;exports.external=z;
@@ -1,5 +1,5 @@
1
- import { B as o, I as e, T as t, g as r } from "./Toggle-DcPmH9Uq.js";
2
- import { L as a } from "./Link-By1w1FIv.js";
1
+ import { B as o, I as e, T as t, g as r } from "./Toggle-CZlnDV1Y.js";
2
+ import { L as a } from "./Link-DkPbZ9Vw.js";
3
3
  const g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  Button: o,
@@ -1,4 +1,4 @@
1
- import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-BzCJQZ58.js";
1
+ import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-D8EcIVa2.js";
2
2
  const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null,
4
4
  ALIGNMENTS: e,
@@ -1,6 +1,6 @@
1
- import { a as e, Z as a, c as s, b as t, f as r, d as o, g as n, p as u, s as c, t as l } from "./css-DJCM-h5_.js";
2
- import { G as i, n as Z, o as d, p, Z as f, q as m, r as S, s as x, v as P, w as _, x as g, y as q, z as O, A as T } from "./Toggle-DcPmH9Uq.js";
3
- const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ import { a as e, Z as a, c as s, b as t, f as r, d as o, g as n, p as l, s as u, t as c } from "./css-DnIb4t_E.js";
2
+ import { G as i, h as Z, i as d, j as p, Z as f, k as m, l as S, r as P, m as _, n as g, o as q, p as x, q as O, s as T } from "./Toggle-CZlnDV1Y.js";
3
+ const j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  Color: e,
6
6
  GradientPicker: i,
@@ -16,17 +16,17 @@ const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16
16
  fromGradient: r,
17
17
  fromHSLA: o,
18
18
  gradientZ: n,
19
- paletteZ: u,
20
- recalculate: x,
21
- relevancyZ: P,
22
- stopZ: c,
23
- toHex: l,
24
- useContext: _,
25
- useFrequent: g,
26
- useFrequentUpdater: q,
19
+ paletteZ: l,
20
+ recalculate: P,
21
+ relevancyZ: _,
22
+ stopZ: u,
23
+ toHex: c,
24
+ useContext: g,
25
+ useFrequent: q,
26
+ useFrequentUpdater: x,
27
27
  usePalette: O,
28
28
  useRequiredPalette: T
29
29
  }, Symbol.toStringTag, { value: "Module" }));
30
30
  export {
31
- y as e
31
+ j as e
32
32
  };
package/dist/header.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-k9_z2UE6.cjs");exports.Header=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Czhk9fZS.cjs");exports.Header=e.external;
package/dist/header.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as a } from "./external-CDYYyyoJ.js";
1
+ import { e as a } from "./external-BpqHq8f8.js";
2
2
  export {
3
3
  a as Header
4
4
  };