@synnaxlabs/pluto 0.44.2 → 0.44.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Animated-BDoJWl9g.cjs +1 -0
- package/dist/{Animated-D5cL3URg.js → Animated-fI-NFaha.js} +2 -2
- package/dist/{symbols-Lz5vQQDw.js → Editable-C1g_CFYk.js} +7836 -7781
- package/dist/{symbols-B15FeAg9.cjs → Editable-DUtJOqJ5.cjs} +45 -45
- package/dist/LinePlot-6cl8_hmn.cjs +53 -0
- package/dist/{provider-Bp-CLkh2.js → LinePlot-Ck0rhtFk.js} +4563 -4484
- package/dist/{Toggle-Dol9oHzM.js → Toggle-DEJ8Uvun.js} +1 -1
- package/dist/Toggle-DUKDeqpe.cjs +1 -0
- package/dist/{Video-Cm8ZBqid.js → Video-B6tujjr8.js} +1 -1
- package/dist/{Video-BidrtYj_.cjs → Video-BjRd9sFv.cjs} +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-DI0uCCGq.cjs +8 -0
- package/dist/{css-Dl9aM7Jz.js → css-DvIPI3Qm.js} +1407 -1248
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/eraser-B03ej59l.cjs +63 -0
- package/dist/{eraser-CZknVTjw.js → eraser-CnRJY__h.js} +6002 -5625
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +66 -63
- package/dist/{external-DOd9BcLC.js → external-B3dPSZUg.js} +7 -8
- package/dist/external-BEd3F7zY.cjs +1 -0
- package/dist/external-BS9S-b49.cjs +1 -0
- package/dist/external-BVDQNHbo.cjs +1 -0
- package/dist/external-BenP6Hcm.cjs +1 -0
- package/dist/external-Blrrgnzw.cjs +1 -0
- package/dist/{external-b2X_jilF.js → external-BzV_PGNe.js} +2 -2
- package/dist/{external-DnnHYQqD.js → external-C2iqWGd2.js} +32 -32
- package/dist/external-CAAPXpVr.cjs +1 -0
- package/dist/{external-BYJw6DJV.js → external-CKhbbig_.js} +25 -25
- package/dist/external-CNF5TNBY.cjs +1 -0
- package/dist/{external-B5RyMtMy.js → external-D16M7vHB.js} +9 -9
- package/dist/{external-pm79tCDD.js → external-D6hAP7eJ.js} +16 -16
- package/dist/external-D98a3YQJ.cjs +1 -0
- package/dist/external-DKh0JhWO.cjs +1 -0
- package/dist/external-DNO3FJLl.cjs +1 -0
- package/dist/{external-BJ91nMtQ.cjs → external-DOEaBrpz.cjs} +2 -2
- package/dist/external-DRuZ24L7.js +78 -0
- package/dist/{external-B_NFroo8.js → external-Daage1AI.js} +4 -4
- package/dist/{external-CU_XHLqP.js → external-Db9iKa8k.js} +3 -3
- package/dist/{external-B8qSW3N8.js → external-Dfr7xymv.js} +3 -3
- package/dist/external-DwRvB5ZT.cjs +1 -0
- package/dist/{external-CJZTgfAH.js → external-GR-20z_c.js} +10 -10
- package/dist/external-I_-aclFy.cjs +1 -0
- package/dist/{external-Ylv9Wts9.js → external-R9a28aP6.js} +55 -56
- package/dist/external-dew29Q0v.js +42 -0
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-Bm52S4Lo.js → fontString-CW0wLG5g.js} +2 -2
- package/dist/{fontString-BptzSQcY.cjs → fontString-aK--tYMM.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +10255 -10189
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/pluto.css +1 -1
- package/dist/src/channel/AliasInput.d.ts +3 -1
- package/dist/src/channel/AliasInput.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts.map +1 -1
- package/dist/src/channel/external.d.ts +0 -2
- package/dist/src/channel/external.d.ts.map +1 -1
- package/dist/src/channel/queries.d.ts +84 -6
- package/dist/src/channel/queries.d.ts.map +1 -1
- package/dist/src/dialog/Frame.d.ts.map +1 -1
- package/dist/src/flux/Provider.d.ts +9 -7
- package/dist/src/flux/Provider.d.ts.map +1 -1
- package/dist/src/flux/aether/external.d.ts +4 -3
- package/dist/src/flux/aether/external.d.ts.map +1 -1
- package/dist/src/flux/aether/provider.d.ts +31 -25
- package/dist/src/flux/aether/provider.d.ts.map +1 -1
- package/dist/src/flux/core/client.d.ts +21 -0
- package/dist/src/flux/core/client.d.ts.map +1 -0
- package/dist/src/flux/core/external.d.ts +4 -0
- package/dist/src/flux/core/external.d.ts.map +1 -0
- package/dist/src/flux/core/index.d.ts +2 -0
- package/dist/src/flux/core/index.d.ts.map +1 -0
- package/dist/src/flux/core/params.d.ts.map +1 -0
- package/dist/src/flux/core/store.d.ts +128 -0
- package/dist/src/flux/core/store.d.ts.map +1 -0
- package/dist/src/flux/core/store.spec.d.ts +2 -0
- package/dist/src/flux/core/store.spec.d.ts.map +1 -0
- package/dist/src/flux/core/streamer.d.ts +31 -0
- package/dist/src/flux/core/streamer.d.ts.map +1 -0
- package/dist/src/flux/core/streamer.spec.d.ts.map +1 -0
- package/dist/src/flux/external.d.ts +3 -5
- package/dist/src/flux/external.d.ts.map +1 -1
- package/dist/src/flux/form.d.ts +43 -11
- package/dist/src/flux/form.d.ts.map +1 -1
- package/dist/src/flux/list.d.ts +13 -13
- package/dist/src/flux/list.d.ts.map +1 -1
- package/dist/src/flux/result.d.ts +10 -9
- package/dist/src/flux/result.d.ts.map +1 -1
- package/dist/src/flux/retrieve.d.ts +22 -41
- package/dist/src/flux/retrieve.d.ts.map +1 -1
- package/dist/src/flux/update.d.ts +25 -7
- package/dist/src/flux/update.d.ts.map +1 -1
- package/dist/src/form/Context.d.ts +6 -2
- package/dist/src/form/Context.d.ts.map +1 -1
- package/dist/src/form/state.d.ts +4 -1
- package/dist/src/form/state.d.ts.map +1 -1
- package/dist/src/form/use.d.ts +1 -0
- package/dist/src/form/use.d.ts.map +1 -1
- package/dist/src/hardware/device/queries.d.ts +12 -4
- package/dist/src/hardware/device/queries.d.ts.map +1 -1
- package/dist/src/hardware/rack/external.d.ts +0 -3
- package/dist/src/hardware/rack/external.d.ts.map +1 -1
- package/dist/src/hardware/rack/queries.d.ts +13 -0
- package/dist/src/hardware/rack/queries.d.ts.map +1 -1
- package/dist/src/hardware/task/queries.d.ts +34 -6
- package/dist/src/hardware/task/queries.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.d.ts +7 -0
- package/dist/src/hooks/useDestructors.d.ts.map +1 -0
- package/dist/src/icon/registry.d.ts +1 -0
- package/dist/src/icon/registry.d.ts.map +1 -1
- package/dist/src/label/queries.d.ts +21 -19
- package/dist/src/label/queries.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +1 -0
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +1 -1
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/ontology/queries.d.ts +19 -4
- package/dist/src/ontology/queries.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +23 -2
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/ranger/aether/index.d.ts +2 -0
- package/dist/src/ranger/aether/index.d.ts.map +1 -0
- package/dist/src/ranger/aether/queries.d.ts +11 -0
- package/dist/src/ranger/aether/queries.d.ts.map +1 -0
- package/dist/src/ranger/queries.d.ts +31 -25
- package/dist/src/ranger/queries.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts +3 -2
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/use.d.ts +7 -4
- package/dist/src/select/use.d.ts.map +1 -1
- package/dist/src/showcase/TextShowcase.d.ts.map +1 -1
- package/dist/src/state/state.d.ts +1 -1
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/status/Aggregator.d.ts +3 -0
- package/dist/src/status/Aggregator.d.ts.map +1 -1
- package/dist/src/status/Summary.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -12
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/errorHandler.d.ts +15 -0
- package/dist/src/status/aether/errorHandler.d.ts.map +1 -0
- package/dist/src/status/aether/errorHandler.spec.d.ts +2 -0
- package/dist/src/status/aether/errorHandler.spec.d.ts.map +1 -0
- package/dist/src/status/aether/external.d.ts +3 -0
- package/dist/src/status/aether/external.d.ts.map +1 -0
- package/dist/src/status/aether/index.d.ts +1 -1
- package/dist/src/status/aether/index.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +6 -6
- package/dist/src/telem/aether/remote.d.ts +4 -4
- package/dist/src/telem/aether/transformers.d.ts +0 -2
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.spec.d.ts +2 -0
- package/dist/src/telem/aether/transformers.spec.d.ts.map +1 -0
- package/dist/src/testutil/Synnax.d.ts +6 -1
- package/dist/src/testutil/Synnax.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/external.d.ts +0 -1
- package/dist/src/text/external.d.ts.map +1 -1
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +3 -0
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/viewport/SelectMode.d.ts +10 -2
- package/dist/src/viewport/SelectMode.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +0 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +6 -18
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/value/TelemForm.d.ts.map +1 -1
- package/dist/src/workspace/queries.d.ts +8 -0
- package/dist/src/workspace/queries.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-HcS_zslH.js → units-Dh7MflIZ.js} +3 -3
- package/dist/units-WWUmv-rf.cjs +1 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +6 -6
- package/dist/Animated-DnsZ5vvU.cjs +0 -1
- package/dist/Menu-C-MABQ1r.js +0 -61
- package/dist/Menu-vR5-lqo4.cjs +0 -1
- package/dist/Toggle-Ckdi4fKV.cjs +0 -1
- package/dist/css-9yccD6t_.cjs +0 -8
- package/dist/eraser-CLWNvWDn.cjs +0 -63
- package/dist/external-BGCkpetp.cjs +0 -1
- package/dist/external-CS6l_QN4.cjs +0 -1
- package/dist/external-CVNscTLA.js +0 -42
- package/dist/external-CY2bvy20.cjs +0 -1
- package/dist/external-CkvXTCCL.cjs +0 -1
- package/dist/external-ClD4VLgc.cjs +0 -1
- package/dist/external-CtooTI5M.cjs +0 -1
- package/dist/external-DFsKdN71.cjs +0 -1
- package/dist/external-DNHOS3w0.cjs +0 -1
- package/dist/external-DPqPAgoV.cjs +0 -1
- package/dist/external-DXY1bIut.cjs +0 -1
- package/dist/external-DZqxSCvz.cjs +0 -1
- package/dist/external-_eEnQPcq.cjs +0 -1
- package/dist/external-xfHaehZH.js +0 -75
- package/dist/provider-DBSsDoFS.cjs +0 -53
- package/dist/src/channel/AliasContext.d.ts +0 -19
- package/dist/src/channel/AliasContext.d.ts.map +0 -1
- package/dist/src/channel/AliasProvider.d.ts +0 -6
- package/dist/src/channel/AliasProvider.d.ts.map +0 -1
- package/dist/src/flux/Context.d.ts +0 -4
- package/dist/src/flux/Context.d.ts.map +0 -1
- package/dist/src/flux/aether/listeners.d.ts +0 -16
- package/dist/src/flux/aether/listeners.d.ts.map +0 -1
- package/dist/src/flux/aether/params.d.ts.map +0 -1
- package/dist/src/flux/aether/streamer.d.ts +0 -22
- package/dist/src/flux/aether/streamer.d.ts.map +0 -1
- package/dist/src/flux/aether/streamer.spec.d.ts.map +0 -1
- package/dist/src/flux/aether/types.d.ts +0 -13
- package/dist/src/flux/aether/types.d.ts.map +0 -1
- package/dist/src/flux/listeners.d.ts +0 -4
- package/dist/src/flux/listeners.d.ts.map +0 -1
- package/dist/src/flux/listeners.spec.d.ts +0 -2
- package/dist/src/flux/listeners.spec.d.ts.map +0 -1
- package/dist/src/flux/useMountListeners.d.ts +0 -7
- package/dist/src/flux/useMountListeners.d.ts.map +0 -1
- package/dist/src/hardware/rack/synchronizers.d.ts +0 -3
- package/dist/src/hardware/rack/synchronizers.d.ts.map +0 -1
- package/dist/src/hardware/rack/use.d.ts +0 -3
- package/dist/src/hardware/rack/use.d.ts.map +0 -1
- package/dist/src/hardware/rack/useStatus.d.ts +0 -3
- package/dist/src/hardware/rack/useStatus.d.ts.map +0 -1
- package/dist/src/text/symbols.d.ts +0 -3
- package/dist/src/text/symbols.d.ts.map +0 -1
- package/dist/units-BGkvnLO-.cjs +0 -1
- /package/dist/src/flux/{aether → core}/params.d.ts +0 -0
- /package/dist/src/flux/{aether → core}/streamer.spec.d.ts +0 -0
|
@@ -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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
4
|
-
import { T as y } from "./Toggle-
|
|
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-
|
|
7
|
+
import "./eraser-CnRJY__h.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
const v = ({
|
|
10
10
|
keys: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as X } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { K as xt, H as Fe,
|
|
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 {
|
|
5
|
-
import {
|
|
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-
|
|
2
|
-
import { u as o, P as S,
|
|
3
|
-
import { f as c } from "./fontString-
|
|
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 {
|
|
2
|
-
import { g as A, x as F } from "./eraser-
|
|
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-
|
|
5
|
-
import {
|
|
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 = ({
|
|
@@ -139,10 +139,10 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
139
139
|
}, $ = (e) => e.map((n) => ({
|
|
140
140
|
...n,
|
|
141
141
|
children: n.children != null ? $(n.children) : void 0
|
|
142
|
-
})),
|
|
142
|
+
})), q = (...e) => {
|
|
143
143
|
const n = [];
|
|
144
144
|
return e.forEach((t) => {
|
|
145
|
-
n.push(t), t.children != null && n.push(...
|
|
145
|
+
n.push(t), t.children != null && n.push(...q(...t.children));
|
|
146
146
|
}), n;
|
|
147
147
|
}, ee = (e, n) => {
|
|
148
148
|
const t = { keys: [], nodes: [] };
|
|
@@ -155,7 +155,7 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
155
155
|
}, te = (e, n) => {
|
|
156
156
|
const t = n.keys.findIndex((s) => s === e);
|
|
157
157
|
return n.nodes[t].depth;
|
|
158
|
-
},
|
|
158
|
+
}, B = (e, n) => {
|
|
159
159
|
const t = e.keys.findIndex((s) => s === n);
|
|
160
160
|
return e.nodes[t];
|
|
161
161
|
}, re = ({
|
|
@@ -221,7 +221,7 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
221
221
|
), C = L(n), I = L(S), k = Y({ triggers: oe }), w = _(
|
|
222
222
|
(u, { clicked: d }) => {
|
|
223
223
|
if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || k.current.held) return;
|
|
224
|
-
const y =
|
|
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";
|
|
227
227
|
let g;
|
|
@@ -304,8 +304,8 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
304
304
|
flatten: v,
|
|
305
305
|
getAllNodesOfMinDepth: ne,
|
|
306
306
|
getDepth: te,
|
|
307
|
-
getDescendants:
|
|
308
|
-
getNodeShape:
|
|
307
|
+
getDescendants: q,
|
|
308
|
+
getNodeShape: B,
|
|
309
309
|
moveNode: W,
|
|
310
310
|
removeNode: H,
|
|
311
311
|
setNode: O,
|
|
@@ -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,13 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { C as r, H as w, K as X,
|
|
3
|
-
import { createContext as
|
|
4
|
-
import {
|
|
5
|
-
import { C as M, y as re } from "./eraser-
|
|
1
|
+
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { C as r, H as w, K as X, b as G, g as $ } from "./css-DvIPI3Qm.js";
|
|
3
|
+
import { createContext as q, use as z, useState as I, useCallback as C } from "react";
|
|
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
|
-
import "./Menu-C-MABQ1r.js";
|
|
8
7
|
import { z as g } from "zod";
|
|
9
|
-
const V =
|
|
10
|
-
className:
|
|
8
|
+
const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
9
|
+
className: o,
|
|
11
10
|
altColor: t = !1,
|
|
12
11
|
size: e = "medium",
|
|
13
12
|
direction: l = "x",
|
|
@@ -27,8 +26,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
27
26
|
onRename: m,
|
|
28
27
|
onCreate: v
|
|
29
28
|
} = L(), j = J(), [O, f] = I(!1);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
n != null && /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
30
|
+
n != null && /* @__PURE__ */ s.jsx(
|
|
32
31
|
Q,
|
|
33
32
|
{
|
|
34
33
|
style: { height: "fit-content" },
|
|
@@ -36,12 +35,12 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
36
35
|
menu: n
|
|
37
36
|
}
|
|
38
37
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ s.jsxs(
|
|
40
39
|
T,
|
|
41
40
|
{
|
|
42
41
|
className: r(
|
|
43
42
|
r.B(_),
|
|
44
|
-
|
|
43
|
+
o,
|
|
45
44
|
j.className,
|
|
46
45
|
O && r.M("drag-over")
|
|
47
46
|
),
|
|
@@ -54,8 +53,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
54
53
|
onDrop: E,
|
|
55
54
|
...c,
|
|
56
55
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
u.map((d) => /* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ s.jsxs(T, { direction: l, className: r.BE(_, "tabs"), empty: !0, children: [
|
|
57
|
+
u.map((d) => /* @__PURE__ */ s.jsx(
|
|
59
58
|
ue,
|
|
60
59
|
{
|
|
61
60
|
selected: p,
|
|
@@ -71,7 +70,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
71
70
|
},
|
|
72
71
|
d.tabKey
|
|
73
72
|
)),
|
|
74
|
-
E != null && /* @__PURE__ */
|
|
73
|
+
E != null && /* @__PURE__ */ s.jsx(
|
|
75
74
|
T,
|
|
76
75
|
{
|
|
77
76
|
onDragOver: () => f(!0),
|
|
@@ -82,7 +81,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
82
81
|
}
|
|
83
82
|
)
|
|
84
83
|
] }),
|
|
85
|
-
v != null && /* @__PURE__ */
|
|
84
|
+
v != null && /* @__PURE__ */ s.jsx(T, { className: r.BE(_, "actions"), children: /* @__PURE__ */ s.jsx(
|
|
86
85
|
k,
|
|
87
86
|
{
|
|
88
87
|
size: e,
|
|
@@ -90,25 +89,25 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
90
89
|
onClick: v,
|
|
91
90
|
tooltip: a,
|
|
92
91
|
variant: "text",
|
|
93
|
-
children: /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ s.jsx(U, {})
|
|
94
93
|
}
|
|
95
94
|
) })
|
|
96
95
|
]
|
|
97
96
|
}
|
|
98
97
|
)
|
|
99
98
|
] });
|
|
100
|
-
}, ae = ({ unsavedChanges:
|
|
101
|
-
const e = /* @__PURE__ */
|
|
102
|
-
return
|
|
103
|
-
/* @__PURE__ */
|
|
99
|
+
}, ae = ({ unsavedChanges: o, ...t }) => {
|
|
100
|
+
const e = /* @__PURE__ */ s.jsx(ne, { ...t });
|
|
101
|
+
return o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
102
|
+
/* @__PURE__ */ s.jsx(se, {}),
|
|
104
103
|
e
|
|
105
104
|
] }) : e;
|
|
106
|
-
}, ce = (
|
|
105
|
+
}, ce = (o) => {
|
|
107
106
|
const t = w.construct(
|
|
108
|
-
|
|
109
|
-
), e = X.construct(
|
|
110
|
-
return
|
|
111
|
-
}, ie = ({ loading:
|
|
107
|
+
o.target.closest(".pluto-tabs-selector__btn")
|
|
108
|
+
), e = X.construct(o);
|
|
109
|
+
return G.Scale.scale(w.left(t), w.right(t)).scale(0, 1).pos(e.x) < 0.5 ? "left" : "right";
|
|
110
|
+
}, ie = ({ loading: o, icon: t, level: e = "p" }) => (o && (t = /* @__PURE__ */ s.jsx(oe, {})), K(t, {
|
|
112
111
|
className: r.BE(_, "icon"),
|
|
113
112
|
style: {
|
|
114
113
|
color: r.colorVar(9),
|
|
@@ -116,7 +115,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
116
115
|
width: r.levelSizeVar(e)
|
|
117
116
|
}
|
|
118
117
|
})), ue = ({
|
|
119
|
-
selected:
|
|
118
|
+
selected: o,
|
|
120
119
|
altColor: t = !1,
|
|
121
120
|
onSelect: e,
|
|
122
121
|
onClose: l,
|
|
@@ -154,8 +153,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
154
153
|
m?.(i), x(null);
|
|
155
154
|
},
|
|
156
155
|
[m, x]
|
|
157
|
-
), y =
|
|
158
|
-
return /* @__PURE__ */
|
|
156
|
+
), y = o === n, H = M[h];
|
|
157
|
+
return /* @__PURE__ */ s.jsxs(
|
|
159
158
|
k,
|
|
160
159
|
{
|
|
161
160
|
el: "div",
|
|
@@ -190,8 +189,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
190
189
|
bordered: !1,
|
|
191
190
|
rounded: !1,
|
|
192
191
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ s.jsx(ie, { loading: E, icon: D, level: H }),
|
|
193
|
+
/* @__PURE__ */ s.jsx(
|
|
195
194
|
de,
|
|
196
195
|
{
|
|
197
196
|
name: a,
|
|
@@ -201,7 +200,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
201
200
|
level: M[h]
|
|
202
201
|
}
|
|
203
202
|
),
|
|
204
|
-
b && l != null && /* @__PURE__ */
|
|
203
|
+
b && l != null && /* @__PURE__ */ s.jsx(
|
|
205
204
|
k,
|
|
206
205
|
{
|
|
207
206
|
"aria-label": "pluto-tabs__close",
|
|
@@ -209,42 +208,42 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
209
208
|
className: r.E("close"),
|
|
210
209
|
variant: "text",
|
|
211
210
|
sharp: !0,
|
|
212
|
-
children: /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ s.jsx(ae, { unsavedChanges: N })
|
|
213
212
|
}
|
|
214
213
|
)
|
|
215
214
|
]
|
|
216
215
|
}
|
|
217
216
|
);
|
|
218
217
|
}, de = ({
|
|
219
|
-
onRename:
|
|
218
|
+
onRename: o,
|
|
220
219
|
name: t,
|
|
221
220
|
tabKey: e,
|
|
222
221
|
editable: l = !0,
|
|
223
222
|
level: n
|
|
224
|
-
}) =>
|
|
223
|
+
}) => o == null || !l ? /* @__PURE__ */ s.jsx(ee, { overflow: "ellipsis", level: n, children: t }) : /* @__PURE__ */ s.jsx(
|
|
225
224
|
te,
|
|
226
225
|
{
|
|
227
226
|
level: n,
|
|
228
227
|
id: r.B(`tab-${e}`),
|
|
229
|
-
onChange: (a) =>
|
|
228
|
+
onChange: (a) => o?.(e, a),
|
|
230
229
|
value: t,
|
|
231
230
|
overflow: "ellipsis"
|
|
232
231
|
}
|
|
233
|
-
), ge = (
|
|
232
|
+
), ge = (o = "", t = []) => {
|
|
234
233
|
if (t.length !== 0)
|
|
235
|
-
return t.find((e) => e.tabKey ===
|
|
236
|
-
}, pe = (
|
|
234
|
+
return t.find((e) => e.tabKey === o) != null ? o : t[t.length - 1]?.tabKey;
|
|
235
|
+
}, pe = (o, t, e) => {
|
|
237
236
|
if (t = t.trim(), t.length === 0) return e;
|
|
238
|
-
const l = e.find((n) => n.tabKey ===
|
|
239
|
-
return l == null || l.name === t ? e : e.map((n) => n.tabKey ===
|
|
237
|
+
const l = e.find((n) => n.tabKey === o);
|
|
238
|
+
return l == null || l.name === t ? e : e.map((n) => n.tabKey === o ? { ...n, name: t } : n);
|
|
240
239
|
}, fe = ({
|
|
241
|
-
tabs:
|
|
240
|
+
tabs: o,
|
|
242
241
|
content: t,
|
|
243
242
|
selected: e,
|
|
244
243
|
onSelect: l
|
|
245
244
|
}) => {
|
|
246
245
|
const [n, a] = re({
|
|
247
|
-
initial: e ??
|
|
246
|
+
initial: e ?? o[0]?.tabKey ?? "",
|
|
248
247
|
value: e,
|
|
249
248
|
onChange: l
|
|
250
249
|
}), c = le(e ?? n), u = C(
|
|
@@ -254,13 +253,13 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
254
253
|
[n, l]
|
|
255
254
|
);
|
|
256
255
|
return {
|
|
257
|
-
tabs:
|
|
256
|
+
tabs: o,
|
|
258
257
|
selected: n,
|
|
259
258
|
content: t,
|
|
260
259
|
onSelect: u
|
|
261
260
|
};
|
|
262
261
|
}, xe = ({
|
|
263
|
-
id:
|
|
262
|
+
id: o,
|
|
264
263
|
content: t,
|
|
265
264
|
children: e,
|
|
266
265
|
onSelect: l,
|
|
@@ -284,10 +283,10 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
284
283
|
x,
|
|
285
284
|
y: B,
|
|
286
285
|
...P
|
|
287
|
-
}) => /* @__PURE__ */
|
|
286
|
+
}) => /* @__PURE__ */ s.jsx(
|
|
288
287
|
T,
|
|
289
288
|
{
|
|
290
|
-
id:
|
|
289
|
+
id: o,
|
|
291
290
|
empty: !0,
|
|
292
291
|
className: r(r.B("tabs"), E),
|
|
293
292
|
direction: d,
|
|
@@ -296,7 +295,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
296
295
|
onDragOver: m,
|
|
297
296
|
onDrop: v,
|
|
298
297
|
...P,
|
|
299
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
300
299
|
R,
|
|
301
300
|
{
|
|
302
301
|
value: {
|
|
@@ -314,26 +313,26 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
314
313
|
onDrop: v
|
|
315
314
|
},
|
|
316
315
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ s.jsx(
|
|
318
317
|
Z,
|
|
319
318
|
{
|
|
320
319
|
size: f,
|
|
321
|
-
direction:
|
|
320
|
+
direction: $.swap(d),
|
|
322
321
|
altColor: a,
|
|
323
322
|
contextMenu: j,
|
|
324
323
|
addTooltip: O
|
|
325
324
|
}
|
|
326
325
|
),
|
|
327
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ s.jsx(A, {})
|
|
328
327
|
]
|
|
329
328
|
}
|
|
330
329
|
)
|
|
331
330
|
}
|
|
332
331
|
), A = () => {
|
|
333
|
-
const { tabs:
|
|
332
|
+
const { tabs: o, selected: t, content: e, emptyContent: l, onSelect: n } = L();
|
|
334
333
|
let a = null;
|
|
335
|
-
const c =
|
|
336
|
-
return t == null || c == null ? a = l ?? null : e != null ? typeof e == "function" ? a = e(c) : a = e : c.content != null && (a = c.content), /* @__PURE__ */
|
|
334
|
+
const c = o.find((u) => u.tabKey === t);
|
|
335
|
+
return t == null || c == null ? a = l ?? null : e != null ? typeof e == "function" ? a = e(c) : a = e : c.content != null && (a = c.content), /* @__PURE__ */ s.jsx(
|
|
337
336
|
"div",
|
|
338
337
|
{
|
|
339
338
|
className: r.B("tabs-content"),
|
|
@@ -352,7 +351,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
352
351
|
loading: g.boolean().optional()
|
|
353
352
|
}), he = F.extend({
|
|
354
353
|
content: g.unknown().optional()
|
|
355
|
-
}),
|
|
354
|
+
}), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
356
355
|
__proto__: null,
|
|
357
356
|
Content: A,
|
|
358
357
|
Provider: R,
|
|
@@ -368,7 +367,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
368
367
|
export {
|
|
369
368
|
xe as T,
|
|
370
369
|
pe as a,
|
|
371
|
-
|
|
370
|
+
De as e,
|
|
372
371
|
ge as r,
|
|
373
372
|
he as t,
|
|
374
373
|
fe as u
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
import { j as O } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
+
import { C as e } from "./css-DvIPI3Qm.js";
|
|
4
|
+
const g = ({
|
|
5
|
+
itemKey: t,
|
|
6
|
+
className: s,
|
|
7
|
+
onClick: n,
|
|
8
|
+
size: a,
|
|
9
|
+
...r
|
|
10
|
+
}) => {
|
|
11
|
+
const { onClick: l, selected: c, level: C = "p", gap: i, background: u } = o(), m = (x) => {
|
|
12
|
+
l(t), n?.(x);
|
|
13
|
+
}, p = c === t;
|
|
14
|
+
return /* @__PURE__ */ O.jsx(
|
|
15
|
+
T,
|
|
16
|
+
{
|
|
17
|
+
contrast: u,
|
|
18
|
+
level: C,
|
|
19
|
+
overflow: "nowrap",
|
|
20
|
+
onClick: m,
|
|
21
|
+
variant: "text",
|
|
22
|
+
className: e(e.B("menu-item"), e.selected(p), s),
|
|
23
|
+
size: a,
|
|
24
|
+
gap: i,
|
|
25
|
+
...r
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
CONTEXT_MENU_CLASS: d,
|
|
31
|
+
CONTEXT_SELECTED: E,
|
|
32
|
+
CONTEXT_TARGET: _,
|
|
33
|
+
ContextMenu: f,
|
|
34
|
+
Divider: S,
|
|
35
|
+
Item: g,
|
|
36
|
+
Menu: j,
|
|
37
|
+
useContext: o,
|
|
38
|
+
useContextMenu: k
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
40
|
+
export {
|
|
41
|
+
b as e
|
|
42
|
+
};
|
package/dist/flex.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./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,5 +1,5 @@
|
|
|
1
|
-
import { i as g, C as y } from "./eraser-
|
|
2
|
-
import "./css-
|
|
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-
|
|
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-
|
|
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