@synnaxlabs/pluto 0.44.3 → 0.44.6

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 (159) hide show
  1. package/dist/Animated-BDoJWl9g.cjs +1 -0
  2. package/dist/{Animated-BHxq6Pmm.js → Animated-fI-NFaha.js} +2 -2
  3. package/dist/{symbols-aLnytgtc.js → Editable-C1g_CFYk.js} +5898 -5888
  4. package/dist/{symbols-DWZqHjhU.cjs → Editable-DUtJOqJ5.cjs} +41 -41
  5. package/dist/LinePlot-DRbAPdEU.cjs +53 -0
  6. package/dist/{LinePlot-VIcFjuPQ.js → LinePlot-YMJgGruk.js} +912 -929
  7. package/dist/{Toggle-C--I90ch.js → Toggle-DEJ8Uvun.js} +1 -1
  8. package/dist/Toggle-DUKDeqpe.cjs +1 -0
  9. package/dist/{Video-DdsVXhnt.js → Video-B6tujjr8.js} +1 -1
  10. package/dist/{Video-BbRLzkdH.cjs → Video-BjRd9sFv.cjs} +1 -1
  11. package/dist/button.cjs +1 -1
  12. package/dist/button.js +1 -1
  13. package/dist/color.cjs +1 -1
  14. package/dist/color.js +1 -1
  15. package/dist/css-DI0uCCGq.cjs +8 -0
  16. package/dist/{css-BKrX40Df.js → css-DvIPI3Qm.js} +1383 -1252
  17. package/dist/css.cjs +1 -1
  18. package/dist/css.js +2 -2
  19. package/dist/dialog.cjs +1 -1
  20. package/dist/dialog.js +1 -1
  21. package/dist/eraser-B03ej59l.cjs +63 -0
  22. package/dist/{eraser-DtXU7kOS.js → eraser-CnRJY__h.js} +4999 -4687
  23. package/dist/ether.cjs +1 -1
  24. package/dist/ether.js +6 -6
  25. package/dist/{external-BT0nByPv.js → external-B3dPSZUg.js} +7 -8
  26. package/dist/external-BEd3F7zY.cjs +1 -0
  27. package/dist/external-BS9S-b49.cjs +1 -0
  28. package/dist/external-BVDQNHbo.cjs +1 -0
  29. package/dist/external-BenP6Hcm.cjs +1 -0
  30. package/dist/external-Blrrgnzw.cjs +1 -0
  31. package/dist/{external-tHxdTvxn.js → external-BzV_PGNe.js} +2 -2
  32. package/dist/{external-ONwuyKzG.js → external-C2iqWGd2.js} +22 -22
  33. package/dist/external-CAAPXpVr.cjs +1 -0
  34. package/dist/{external-n4gJTJfw.js → external-CKhbbig_.js} +15 -15
  35. package/dist/external-CNF5TNBY.cjs +1 -0
  36. package/dist/{external-Bt-WjDvD.js → external-D16M7vHB.js} +9 -9
  37. package/dist/{external-dkXc0y5z.js → external-D6hAP7eJ.js} +7 -7
  38. package/dist/external-D98a3YQJ.cjs +1 -0
  39. package/dist/external-DKh0JhWO.cjs +1 -0
  40. package/dist/external-DNO3FJLl.cjs +1 -0
  41. package/dist/{external-yddEc8os.cjs → external-DOEaBrpz.cjs} +2 -2
  42. package/dist/external-DRuZ24L7.js +78 -0
  43. package/dist/{external-CEMgElRx.js → external-Daage1AI.js} +10 -10
  44. package/dist/{external-BApQK7XP.js → external-Db9iKa8k.js} +3 -3
  45. package/dist/{external-BmfZaFKB.js → external-Dfr7xymv.js} +3 -3
  46. package/dist/external-DwRvB5ZT.cjs +1 -0
  47. package/dist/{external-NUi5IwGn.js → external-GR-20z_c.js} +14 -14
  48. package/dist/external-I_-aclFy.cjs +1 -0
  49. package/dist/{external-Dgui980d.js → external-R9a28aP6.js} +24 -24
  50. package/dist/{external-Dwfn2jsF.js → external-dew29Q0v.js} +9 -9
  51. package/dist/flex.cjs +1 -1
  52. package/dist/flex.js +1 -1
  53. package/dist/{fontString-D2-HUuI_.js → fontString-CW0wLG5g.js} +2 -2
  54. package/dist/{fontString-BWGnZU-8.cjs → fontString-aK--tYMM.cjs} +1 -1
  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 +6112 -5987
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/list.cjs +1 -1
  62. package/dist/list.js +1 -1
  63. package/dist/menu.cjs +1 -1
  64. package/dist/menu.js +1 -1
  65. package/dist/pluto.css +1 -1
  66. package/dist/src/channel/queries.d.ts.map +1 -1
  67. package/dist/src/flux/form.d.ts +39 -10
  68. package/dist/src/flux/form.d.ts.map +1 -1
  69. package/dist/src/flux/retrieve.d.ts +4 -2
  70. package/dist/src/flux/retrieve.d.ts.map +1 -1
  71. package/dist/src/flux/update.d.ts +13 -0
  72. package/dist/src/flux/update.d.ts.map +1 -1
  73. package/dist/src/form/Context.d.ts +6 -2
  74. package/dist/src/form/Context.d.ts.map +1 -1
  75. package/dist/src/form/state.d.ts +1 -0
  76. package/dist/src/form/state.d.ts.map +1 -1
  77. package/dist/src/form/use.d.ts.map +1 -1
  78. package/dist/src/hardware/device/queries.d.ts.map +1 -1
  79. package/dist/src/hardware/rack/queries.d.ts.map +1 -1
  80. package/dist/src/hardware/task/queries.d.ts +22 -1
  81. package/dist/src/hardware/task/queries.d.ts.map +1 -1
  82. package/dist/src/icon/registry.d.ts +1 -0
  83. package/dist/src/icon/registry.d.ts.map +1 -1
  84. package/dist/src/label/queries.d.ts.map +1 -1
  85. package/dist/src/mosaic/Mosaic.d.ts +1 -1
  86. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  87. package/dist/src/ontology/queries.d.ts.map +1 -1
  88. package/dist/src/ranger/queries.d.ts +3 -3
  89. package/dist/src/ranger/queries.d.ts.map +1 -1
  90. package/dist/src/select/Button.d.ts +3 -2
  91. package/dist/src/select/Button.d.ts.map +1 -1
  92. package/dist/src/select/use.d.ts +7 -4
  93. package/dist/src/select/use.d.ts.map +1 -1
  94. package/dist/src/showcase/TextShowcase.d.ts.map +1 -1
  95. package/dist/src/status/Summary.d.ts.map +1 -1
  96. package/dist/src/synnax/Provider.d.ts.map +1 -1
  97. package/dist/src/synnax/aether/provider.d.ts +6 -6
  98. package/dist/src/telem/aether/remote.d.ts +4 -4
  99. package/dist/src/telem/aether/transformers.d.ts +0 -2
  100. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  101. package/dist/src/telem/aether/transformers.spec.d.ts +2 -0
  102. package/dist/src/telem/aether/transformers.spec.d.ts.map +1 -0
  103. package/dist/src/text/external.d.ts +0 -1
  104. package/dist/src/text/external.d.ts.map +1 -1
  105. package/dist/src/triggers/Text.d.ts.map +1 -1
  106. package/dist/src/triggers/triggers.d.ts +3 -0
  107. package/dist/src/triggers/triggers.d.ts.map +1 -1
  108. package/dist/src/viewport/SelectMode.d.ts +10 -2
  109. package/dist/src/viewport/SelectMode.d.ts.map +1 -1
  110. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  111. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  112. package/dist/src/vis/light/aether/light.d.ts +4 -5
  113. package/dist/src/vis/light/aether/light.d.ts.map +1 -1
  114. package/dist/src/vis/light/use.d.ts +2 -2
  115. package/dist/src/vis/light/use.d.ts.map +1 -1
  116. package/dist/src/vis/line/aether/line.d.ts +0 -1
  117. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  118. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  119. package/dist/src/vis/lineplot/aether/XAxis.d.ts +2 -2
  120. package/dist/src/vis/lineplot/aether/YAxis.d.ts +2 -2
  121. package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
  122. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  123. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  124. package/dist/tabs.cjs +1 -1
  125. package/dist/tabs.js +1 -1
  126. package/dist/text.cjs +1 -1
  127. package/dist/text.js +2 -2
  128. package/dist/theming.cjs +1 -1
  129. package/dist/theming.js +2 -2
  130. package/dist/tree.cjs +1 -1
  131. package/dist/tree.js +1 -1
  132. package/dist/triggers.cjs +1 -1
  133. package/dist/triggers.js +1 -1
  134. package/dist/{units-ny6lkoIv.js → units-Dh7MflIZ.js} +3 -3
  135. package/dist/units-WWUmv-rf.cjs +1 -0
  136. package/dist/video.cjs +1 -1
  137. package/dist/video.js +1 -1
  138. package/package.json +6 -6
  139. package/dist/Animated-DEXELMDa.cjs +0 -1
  140. package/dist/LinePlot-BJ10hKs7.cjs +0 -53
  141. package/dist/Toggle-CCsw0kkq.cjs +0 -1
  142. package/dist/css-TyQvZIXQ.cjs +0 -8
  143. package/dist/eraser-Bxknv-HS.cjs +0 -63
  144. package/dist/external-BBXhtVjD.cjs +0 -1
  145. package/dist/external-BOmNpcyI.js +0 -75
  146. package/dist/external-BPF50O_x.cjs +0 -1
  147. package/dist/external-BUAnicLg.cjs +0 -1
  148. package/dist/external-BaRBYE0N.cjs +0 -1
  149. package/dist/external-BsyCwXWB.cjs +0 -1
  150. package/dist/external-COBt6FnN.cjs +0 -1
  151. package/dist/external-CZSk2V5E.cjs +0 -1
  152. package/dist/external-Cw5iYImi.cjs +0 -1
  153. package/dist/external-EMhi5ISu.cjs +0 -1
  154. package/dist/external-Jee63xkv.cjs +0 -1
  155. package/dist/external-TAYJZFme.cjs +0 -1
  156. package/dist/external-bvOijYCw.cjs +0 -1
  157. package/dist/src/text/symbols.d.ts +0 -3
  158. package/dist/src/text/symbols.d.ts.map +0 -1
  159. package/dist/units-XE06scfL.cjs +0 -1
@@ -0,0 +1,78 @@
1
+ import { I as E, T as _, K as d, L as R, N as S, O as p, Q as x, R as b, U as K, V as y, W as T, X as U, Y as L, Z as O, _ as C, $ as H, a0 as h, a1 as j, a2 as v, a3 as N, a4 as Z, a5 as k, a6 as A, a7 as I, a8 as Y, a9 as w, aa as P, ab as B, ac as F, ad as $, ae as z, af as G } from "./Editable-C1g_CFYk.js";
2
+ import { j as Q } from "./jsx-runtime-C5mzlN2N.js";
3
+ import { useState as V, useEffect as W, useRef as m, useCallback as f } from "react";
4
+ import { K as i, H as l } from "./css-DvIPI3Qm.js";
5
+ import "./eraser-CnRJY__h.js";
6
+ const X = (e) => {
7
+ const { listen: o } = E(), [c, n] = V([]);
8
+ return W(
9
+ () => o(({ next: [s] }) => n(s ?? [])),
10
+ [o, n]
11
+ ), /* @__PURE__ */ Q.jsx(_, { ...e, children: c.join(" ") });
12
+ }, q = ({
13
+ onDrag: e,
14
+ triggers: o = [["MouseLeft"], ["MouseRight"]],
15
+ bound: c,
16
+ loose: n = !1
17
+ }) => {
18
+ const s = m(null), u = m(i.ZERO), g = f(
19
+ (t) => {
20
+ const r = i.construct(t);
21
+ if (s.current === null) return;
22
+ const { triggers: a } = s.current;
23
+ e({
24
+ box: l.construct(u.current, r),
25
+ cursor: r,
26
+ triggers: a,
27
+ stage: "during"
28
+ });
29
+ },
30
+ [e]
31
+ ), M = f(
32
+ (t) => {
33
+ const { stage: r, cursor: a } = t;
34
+ r === "start" ? (e({ box: l.construct(a), ...t }), window.addEventListener("mousemove", g), s.current = t, u.current = a) : r === "end" && s.current != null && (e({ box: l.construct(u.current, a), ...t }), window.removeEventListener("mousemove", g), s.current = null, u.current = i.ZERO);
35
+ },
36
+ [e]
37
+ );
38
+ d({ triggers: o, callback: M, region: c, loose: n });
39
+ }, re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
+ __proto__: null,
41
+ ALPHANUMERIC_KEYS: R,
42
+ ALPHANUMERIC_KEYS_SET: S,
43
+ KEYS: p,
44
+ MOUSE_KEYS: x,
45
+ MOUSE_LEFT_NUMBER: b,
46
+ MOUSE_MIDDLE_NUMBER: K,
47
+ MOUSE_RIGHT_NUMBER: y,
48
+ Provider: T,
49
+ Status: X,
50
+ Text: U,
51
+ compareModeConfigs: L,
52
+ determineMode: O,
53
+ diff: C,
54
+ eventKey: H,
55
+ filter: h,
56
+ flattenConfig: j,
57
+ isAlphanumericKey: v,
58
+ keyZ: N,
59
+ keyboardKey: Z,
60
+ match: k,
61
+ matchCallback: A,
62
+ mouseKey: I,
63
+ mouseKeyZ: Y,
64
+ purge: w,
65
+ purgeMouse: P,
66
+ toSymbols: B,
67
+ triggerZ: F,
68
+ use: d,
69
+ useContext: E,
70
+ useDrag: q,
71
+ useFlattenedMemoConfig: $,
72
+ useHeld: z,
73
+ useHeldRef: G
74
+ }, Symbol.toStringTag, { value: "Module" }));
75
+ export {
76
+ re as e,
77
+ q as u
78
+ };
@@ -1,12 +1,12 @@
1
- import { s as u, v as c, w as p, x as j, A as m, y as i, J as d, z as S, G as f, H as g, I as h } from "./symbols-aLnytgtc.js";
1
+ import { r as u, s as c, v as p, w as j, A as m, x as i, J as d, y as S, z as f, G as g, H as h } from "./Editable-C1g_CFYk.js";
2
2
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
3
- import "./css-BKrX40Df.js";
4
- import { T as y } from "./Toggle-C--I90ch.js";
3
+ import "./css-DvIPI3Qm.js";
4
+ import { T as y } from "./Toggle-DEJ8Uvun.js";
5
5
  import "react";
6
6
  import { u as T } from "./useKeysData-B1kiZOOw.js";
7
- import "./eraser-DtXU7kOS.js";
7
+ import "./eraser-CnRJY__h.js";
8
8
  import "react-dom";
9
- const I = ({
9
+ const v = ({
10
10
  keys: t,
11
11
  value: s,
12
12
  onChange: o,
@@ -43,10 +43,10 @@ const I = ({
43
43
  }
44
44
  }
45
45
  );
46
- }, v = ({
46
+ }, A = ({
47
47
  value: t,
48
48
  ...s
49
- }) => /* @__PURE__ */ e.jsxs(I, { ...s, value: t, keys: m, children: [
49
+ }) => /* @__PURE__ */ e.jsxs(v, { ...s, value: t, keys: m, children: [
50
50
  /* @__PURE__ */ e.jsx(l, { itemKey: "start", children: /* @__PURE__ */ e.jsx(i.Left, {}) }),
51
51
  /* @__PURE__ */ e.jsx(l, { itemKey: "center", children: /* @__PURE__ */ e.jsx(i.Center, {}) }),
52
52
  /* @__PURE__ */ e.jsx(l, { itemKey: "end", children: /* @__PURE__ */ e.jsx(i.Right, {}) })
@@ -55,15 +55,15 @@ const I = ({
55
55
  ALIGNMENTS: m,
56
56
  Box: c,
57
57
  JUSTIFICATIONS: d,
58
- SelectAlignment: v,
58
+ SelectAlignment: A,
59
59
  alignmentZ: S,
60
60
  justificationZ: f,
61
61
  parseDirection: g,
62
62
  shouldReverse: h
63
63
  }, Symbol.toStringTag, { value: "Module" }));
64
64
  export {
65
- I as B,
66
- v as S,
65
+ v as B,
66
+ A as S,
67
67
  l as a,
68
68
  M as e
69
69
  };
@@ -1,8 +1,8 @@
1
1
  import { j as X } from "./jsx-runtime-C5mzlN2N.js";
2
- import { K as xt, H as Fe, i as te, C as J, e as Dc, a as th, $ as nh, R as ah } from "./css-BKrX40Df.js";
2
+ import { K as xt, H as Fe, c as te, C as J, r as Dc, b as th, k as nh, R as ah } from "./css-DvIPI3Qm.js";
3
3
  import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, createContext as oh, use as sh, useMemo as Bc, useRef as Mo } from "react";
4
- import { a5 as uh, c as lh, d1 as ch, cZ as Io, c$ as fh, B as $c, dB as Ur, dr as nt, ar as Lc, v as qr, T as Hc, b8 as hh, F as ph, p as dh, aq as gh, L as vh, E as bh } from "./symbols-aLnytgtc.js";
5
- import { I as yh, x as mh } from "./eraser-DtXU7kOS.js";
4
+ import { a7 as uh, b as lh, d4 as ch, d0 as Io, d2 as fh, B as $c, dE as Ur, du as nt, at as Lc, s as qr, T as Hc, bb as hh, F as ph, o as dh, as as gh, K as vh, E as bh } from "./Editable-C1g_CFYk.js";
5
+ import { I as yh, x as mh } from "./eraser-CnRJY__h.js";
6
6
  import { z as de } from "zod";
7
7
  import "react-dom";
8
8
  const xh = (r, e, t) => Se(yh(r, e), [e, ...t]), _h = ({
@@ -1,6 +1,6 @@
1
- import { S as r, e as a, f as i, t as n } from "./eraser-DtXU7kOS.js";
2
- import { u as o, P as S, b as p, t as u, c as m, d as b } from "./symbols-aLnytgtc.js";
3
- import { f as c } from "./fontString-D2-HUuI_.js";
1
+ import { S as r, e as a, f as i, t as n } from "./eraser-CnRJY__h.js";
2
+ import { u as o, P as S, S as p, t as u, b as m, c as b } from "./Editable-C1g_CFYk.js";
3
+ import { f as c } from "./fontString-CW0wLG5g.js";
4
4
  const f = (t) => {
5
5
  const { theme: e } = o(), s = e.typography[t];
6
6
  return {
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./eraser-B03ej59l.cjs"),e=require("./Editable-DUtJOqJ5.cjs"),n=require("./fontString-aK--tYMM.cjs"),i=o=>{const{theme:t}=e.useContext(),s=t.typography[o];return{...s,toString:()=>n.fontString(t,{level:o}),baseSize:t.sizes.base,lineHeightPx:s.lineHeight*t.sizes.base,sizePx:s.size*t.sizes.base}},S=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,themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:i},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useTypography=i;
@@ -1,8 +1,8 @@
1
- import { c as T, C as i } from "./css-BKrX40Df.js";
2
- import { g as A, x as F } from "./eraser-DtXU7kOS.js";
1
+ import { a as T, C as i } from "./css-DvIPI3Qm.js";
2
+ import { g as A, x as F } from "./eraser-CnRJY__h.js";
3
3
  import { j as p } from "./jsx-runtime-C5mzlN2N.js";
4
- import { A as G } from "./Animated-BHxq6Pmm.js";
5
- import { ao as z, ap as K, aq as U, ar as L, ad as Y, s as J, ai as Q } from "./symbols-aLnytgtc.js";
4
+ import { A as G } from "./Animated-fI-NFaha.js";
5
+ import { aq as z, ar as K, as as U, at as L, af as Y, r as J, ak as Q } from "./Editable-C1g_CFYk.js";
6
6
  import { useMemo as V, useCallback as _ } from "react";
7
7
  import "react-dom";
8
8
  const D = (e, n) => n.includes(e.key), v = ({
@@ -218,9 +218,9 @@ const D = (e, n) => n.includes(e.key), v = ({
218
218
  }), S = V(
219
219
  () => v({ nodes: n, expanded: l, sort: o }),
220
220
  [n, l, o]
221
- ), C = L(n), I = L(S), w = Y({ triggers: oe }), b = _(
221
+ ), C = L(n), I = L(S), k = Y({ triggers: oe }), w = _(
222
222
  (u, { clicked: d }) => {
223
- if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || w.current.held) return;
223
+ if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || k.current.held) return;
224
224
  const y = B(I.current, d);
225
225
  if (y == null || !y.hasChildren) return;
226
226
  const j = f.current, M = j.some((h) => h === d) ? "contract" : "expand";
@@ -228,7 +228,7 @@ const D = (e, n) => n.includes(e.key), v = ({
228
228
  M === "contract" ? g = j.filter((h) => h !== d) : g = [...j, d], c(g), e?.({ current: g, action: M, clicked: d });
229
229
  },
230
230
  [e, C, c, N]
231
- ), k = _(
231
+ ), b = _(
232
232
  (u) => {
233
233
  c((d) => T.unique([...d, u])), e?.({ current: l, action: "expand", clicked: u });
234
234
  },
@@ -245,10 +245,10 @@ const D = (e, n) => n.includes(e.key), v = ({
245
245
  selected: m,
246
246
  expanded: l,
247
247
  contract: x,
248
- expand: k,
248
+ expand: b,
249
249
  clearExpanded: R,
250
250
  shape: S,
251
- onSelect: b
251
+ onSelect: w
252
252
  };
253
253
  }, ce = ({
254
254
  shape: e,
@@ -265,16 +265,16 @@ const D = (e, n) => n.includes(e.key), v = ({
265
265
  clearExpanded: S,
266
266
  showRules: C = !1,
267
267
  virtual: I = !1,
268
- ...w
268
+ ...k
269
269
  }) => {
270
- const { keys: b, nodes: k } = e;
270
+ const { keys: w, nodes: b } = e;
271
271
  return /* @__PURE__ */ p.jsx(
272
272
  J,
273
273
  {
274
274
  multiple: !0,
275
275
  value: t,
276
276
  replaceOnSingle: !0,
277
- data: b,
277
+ data: w,
278
278
  onChange: s,
279
279
  getItem: r,
280
280
  subscribe: o,
@@ -284,9 +284,9 @@ const D = (e, n) => n.includes(e.key), v = ({
284
284
  Q,
285
285
  {
286
286
  className: i(i.B("tree"), l, C && i.M("show-rules")),
287
- ...w,
287
+ ...k,
288
288
  displayItems: 1 / 0,
289
- children: ({ index: x, ...R }) => n({ index: x, ...k[x], ...R })
289
+ children: ({ index: x, ...R }) => n({ index: x, ...b[x], ...R })
290
290
  }
291
291
  )
292
292
  }
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./Editable-DUtJOqJ5.cjs"),i=require("./jsx-runtime-CITbqOLs.cjs"),b=require("./Animated-BDoJWl9g.cjs"),r=require("./css-DI0uCCGq.cjs"),s=({onClick:l,className:a,hideCaret:t=!1,children:u,variant:n,...c})=>{const{toggle:x,visible:g,variant:d}=e.useContext$2();let o;return n==="preview"&&(t=!0),d!=="modal"&&!t&&(o=i.jsxRuntimeExports.jsx(b.Animated,{enabled:g,enabledLoc:"bottom",disabledLoc:"left"})),i.jsxRuntimeExports.jsxs(e.Button,{className:r.CSS(r.CSS.BE("dialog","trigger"),a),onClick:m=>{l?.(m),x()},full:"x",variant:n,...c,children:[u,o]})},f=Object.freeze(Object.defineProperty({__proto__:null,Dialog:e.Dialog,Frame:e.Frame,Trigger:s,positionDialog:e.positionDialog,useContext:e.useContext$2,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=f;
@@ -1,8 +1,8 @@
1
1
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
- import { C as r, H as k, K as X, a as G, g as $ } from "./css-BKrX40Df.js";
2
+ import { C as r, H as w, K as X, b as G, g as $ } from "./css-DvIPI3Qm.js";
3
3
  import { createContext as q, use as z, useState as I, useCallback as C } from "react";
4
- import { n as J, k as Q, v as T, B as w, as as U, j as W, h as Y, at as K, T as ee, E as te, au as ne, av as se, ap as oe, ar as le } from "./symbols-aLnytgtc.js";
5
- import { C as M, y as re } from "./eraser-DtXU7kOS.js";
4
+ import { m as J, j as Q, s as T, B as k, au as U, h as W, g as Y, av as K, T as ee, E as te, aw as ne, ax as se, ar as oe, at as le } from "./Editable-C1g_CFYk.js";
5
+ import { C as M, y as re } from "./eraser-CnRJY__h.js";
6
6
  import "react-dom";
7
7
  import { z as g } from "zod";
8
8
  const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
@@ -23,8 +23,8 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
23
23
  onDragEnd: S,
24
24
  onDragStart: N,
25
25
  onDrop: E,
26
- onRename: v,
27
- onCreate: m
26
+ onRename: m,
27
+ onCreate: v
28
28
  } = L(), j = J(), [O, f] = I(!1);
29
29
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
30
30
  n != null && /* @__PURE__ */ s.jsx(
@@ -63,7 +63,7 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
63
63
  onClose: D,
64
64
  onDragStart: N,
65
65
  onDragEnd: S,
66
- onRename: v,
66
+ onRename: m,
67
67
  closable: d.closable ?? h,
68
68
  size: e,
69
69
  ...d
@@ -81,12 +81,12 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
81
81
  }
82
82
  )
83
83
  ] }),
84
- m != null && /* @__PURE__ */ s.jsx(T, { className: r.BE(_, "actions"), children: /* @__PURE__ */ s.jsx(
85
- w,
84
+ v != null && /* @__PURE__ */ s.jsx(T, { className: r.BE(_, "actions"), children: /* @__PURE__ */ s.jsx(
85
+ k,
86
86
  {
87
87
  size: e,
88
88
  sharp: !0,
89
- onClick: m,
89
+ onClick: v,
90
90
  tooltip: a,
91
91
  variant: "text",
92
92
  children: /* @__PURE__ */ s.jsx(U, {})
@@ -103,10 +103,10 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
103
103
  e
104
104
  ] }) : e;
105
105
  }, ce = (o) => {
106
- const t = k.construct(
106
+ const t = w.construct(
107
107
  o.target.closest(".pluto-tabs-selector__btn")
108
108
  ), e = X.construct(o);
109
- return G.Scale.scale(k.left(t), k.right(t)).scale(0, 1).pos(e.x) < 0.5 ? "left" : "right";
109
+ return G.Scale.scale(w.left(t), w.right(t)).scale(0, 1).pos(e.x) < 0.5 ? "left" : "right";
110
110
  }, ie = ({ loading: o, icon: t, level: e = "p" }) => (o && (t = /* @__PURE__ */ s.jsx(oe, {})), K(t, {
111
111
  className: r.BE(_, "icon"),
112
112
  style: {
@@ -130,9 +130,9 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
130
130
  editable: S = !0,
131
131
  unsavedChanges: N = !1,
132
132
  loading: E = !1,
133
- onDrop: v
133
+ onDrop: m
134
134
  }) => {
135
- const m = C(
135
+ const v = C(
136
136
  (i) => c?.(i, { tabKey: n, name: a }),
137
137
  [c, n, a]
138
138
  ), j = C(
@@ -147,15 +147,15 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
147
147
  (i) => {
148
148
  x(ce(i));
149
149
  },
150
- [x, v]
150
+ [x, m]
151
151
  ), P = C(
152
152
  (i) => {
153
- v?.(i), x(null);
153
+ m?.(i), x(null);
154
154
  },
155
- [v, x]
155
+ [m, x]
156
156
  ), y = o === n, H = M[h];
157
157
  return /* @__PURE__ */ s.jsxs(
158
- w,
158
+ k,
159
159
  {
160
160
  el: "div",
161
161
  size: h,
@@ -182,7 +182,7 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
182
182
  onDragOver: B,
183
183
  onDrop: P,
184
184
  onDragLeave: () => x(null),
185
- onDragStart: m,
185
+ onDragStart: v,
186
186
  onDragEnd: (i) => {
187
187
  x(null), j(i);
188
188
  },
@@ -201,7 +201,7 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
201
201
  }
202
202
  ),
203
203
  b && l != null && /* @__PURE__ */ s.jsx(
204
- w,
204
+ k,
205
205
  {
206
206
  "aria-label": "pluto-tabs__close",
207
207
  onClick: O,
@@ -274,8 +274,8 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
274
274
  onRename: S,
275
275
  emptyContent: N,
276
276
  className: E,
277
- onDragOver: v,
278
- onDrop: m,
277
+ onDragOver: m,
278
+ onDrop: v,
279
279
  contextMenu: j,
280
280
  addTooltip: O,
281
281
  size: f = "medium",
@@ -292,8 +292,8 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
292
292
  direction: d,
293
293
  x,
294
294
  y: B,
295
- onDragOver: v,
296
- onDrop: m,
295
+ onDragOver: m,
296
+ onDrop: v,
297
297
  ...P,
298
298
  children: /* @__PURE__ */ s.jsxs(
299
299
  R,
@@ -310,7 +310,7 @@ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
310
310
  onDragEnd: D,
311
311
  onRename: S,
312
312
  onCreate: h,
313
- onDrop: m
313
+ onDrop: v
314
314
  },
315
315
  children: [
316
316
  /* @__PURE__ */ s.jsx(
@@ -1,15 +1,15 @@
1
- import { f as o, B as T, g as E, h as _, j as d, k as f, l as S, m as j, n as k } from "./symbols-aLnytgtc.js";
1
+ import { d as o, B as T, f as d, g as E, h as _, j as f, k as S, l as j, m as k } from "./Editable-C1g_CFYk.js";
2
2
  import { j as O } from "./jsx-runtime-C5mzlN2N.js";
3
- import { C as e } from "./css-BKrX40Df.js";
3
+ import { C as e } from "./css-DvIPI3Qm.js";
4
4
  const g = ({
5
5
  itemKey: t,
6
- className: n,
7
- onClick: s,
6
+ className: s,
7
+ onClick: n,
8
8
  size: a,
9
9
  ...r
10
10
  }) => {
11
11
  const { onClick: l, selected: c, level: C = "p", gap: i, background: u } = o(), m = (x) => {
12
- l(t), s?.(x);
12
+ l(t), n?.(x);
13
13
  }, p = c === t;
14
14
  return /* @__PURE__ */ O.jsx(
15
15
  T,
@@ -19,7 +19,7 @@ const g = ({
19
19
  overflow: "nowrap",
20
20
  onClick: m,
21
21
  variant: "text",
22
- className: e(e.B("menu-item"), e.selected(p), n),
22
+ className: e(e.B("menu-item"), e.selected(p), s),
23
23
  size: a,
24
24
  gap: i,
25
25
  ...r
@@ -27,9 +27,9 @@ const g = ({
27
27
  );
28
28
  }, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
29
  __proto__: null,
30
- CONTEXT_MENU_CLASS: E,
31
- CONTEXT_SELECTED: _,
32
- CONTEXT_TARGET: d,
30
+ CONTEXT_MENU_CLASS: d,
31
+ CONTEXT_SELECTED: E,
32
+ CONTEXT_TARGET: _,
33
33
  ContextMenu: f,
34
34
  Divider: S,
35
35
  Item: g,
package/dist/flex.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BUAnicLg.cjs");exports.Flex=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DNO3FJLl.cjs");exports.Flex=e.external;
package/dist/flex.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as r } from "./external-CEMgElRx.js";
1
+ import { e as r } from "./external-Daage1AI.js";
2
2
  export {
3
3
  r as Flex
4
4
  };
@@ -1,5 +1,5 @@
1
- import { i as g, C as y } from "./eraser-DtXU7kOS.js";
2
- import "./css-BKrX40Df.js";
1
+ import { i as g, C as y } from "./eraser-CnRJY__h.js";
2
+ import "./css-DvIPI3Qm.js";
3
3
  const r = [
4
4
  { weight: 200, style: "light", value: "Inter 200, sans-serif" },
5
5
  { weight: 300, value: "Inter Threee, sans-serif" },
@@ -1 +1 @@
1
- "use strict";const u=require("./eraser-Bxknv-HS.cjs");require("./css-TyQvZIXQ.cjs");const i=[{weight:200,style:"light",value:"Inter 200, sans-serif"},{weight:300,value:"Inter Threee, sans-serif"},{weight:400,value:"Inter Four, sans-serif"},{weight:500,value:"Inter Five, sans-serif"},{weight:600,value:"Inter Six, sans-serif"},{weight:700,value:"Inter Seven, sans-serif"},{weight:800,value:"Inter Eight, sans-serif"},{weight:900,style:"bold",value:"Inter Nine, sans-serif"}],y=s=>i.find((t,e)=>e===i.length-1?!0:typeof s=="number"?s>=t.weight&&s<i[e+1].weight:t.style===s),I=(s,{level:t,weight:e,code:l})=>{const{typography:n,sizes:{base:o}}=s;let r=n.family;if(l)r=n.codeFamily;else if(e!=null){const f=y(e);f!=null?r=f.value:r="Inter Light, sans-serif"}const h=n[u.isSize(t)?u.COMPONENT_SIZE_LEVELS[t]:t].size,a=(o*h).toFixed(1),[c,g]=r.split(", ");return e!=null?` ${e} ${a}px ${c}, ${g}`:` ${a}px ${r}`};exports.fontString=I;
1
+ "use strict";const u=require("./eraser-B03ej59l.cjs");require("./css-DI0uCCGq.cjs");const i=[{weight:200,style:"light",value:"Inter 200, sans-serif"},{weight:300,value:"Inter Threee, sans-serif"},{weight:400,value:"Inter Four, sans-serif"},{weight:500,value:"Inter Five, sans-serif"},{weight:600,value:"Inter Six, sans-serif"},{weight:700,value:"Inter Seven, sans-serif"},{weight:800,value:"Inter Eight, sans-serif"},{weight:900,style:"bold",value:"Inter Nine, sans-serif"}],y=s=>i.find((t,e)=>e===i.length-1?!0:typeof s=="number"?s>=t.weight&&s<i[e+1].weight:t.style===s),I=(s,{level:t,weight:e,code:l})=>{const{typography:n,sizes:{base:o}}=s;let r=n.family;if(l)r=n.codeFamily;else if(e!=null){const f=y(e);f!=null?r=f.value:r="Inter Light, sans-serif"}const h=n[u.isSize(t)?u.COMPONENT_SIZE_LEVELS[t]:t].size,a=(o*h).toFixed(1),[c,g]=r.split(", ");return e!=null?` ${e} ${a}px ${c}, ${g}`:` ${a}px ${r}`};exports.fontString=I;
package/dist/header.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BaRBYE0N.cjs");exports.Header=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DKh0JhWO.cjs");exports.Header=e.external;
package/dist/header.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as a } from "./external-dkXc0y5z.js";
1
+ import { e as a } from "./external-D6hAP7eJ.js";
2
2
  export {
3
3
  a as Header
4
4
  };