@synnaxlabs/pluto 0.50.1 → 0.52.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Animated-C4xrEVd-.js → Animated-6qL1fRZx.js} +61 -60
- package/dist/Animated-Bn4jMc7c.js +29 -0
- package/dist/Animated-vGAs0qOH.cjs +1 -0
- package/dist/Animated-xK__WUQp.cjs +1 -0
- package/dist/{Box-DLO7l9hM.js → Box-Bi280MYh.js} +28 -27
- package/dist/Box-CNUz5BsV.cjs +1 -0
- package/dist/Copy-CzkBKGca.js +337 -0
- package/dist/Copy-DuC8dTK7.cjs +1 -0
- package/dist/Dialog-DNrgykEv.cjs +1 -0
- package/dist/{Dialog-BspO7uo8.js → Dialog-Dos5l3K2.js} +13 -12
- package/dist/{Editable-DjQORuR1.js → Editable-4ZwvICC4.js} +46 -45
- package/dist/Editable-HUPqTaui.cjs +1 -0
- package/dist/{Haul-DBy-2ds_.js → Haul-CxbMtSY4.js} +18 -18
- package/dist/Haul-V5NQI3MY.cjs +1 -0
- package/dist/{Items-CX11yLMf.js → Items-CNPUoiob.js} +22 -21
- package/dist/Items-DYYNNIjr.cjs +4 -0
- package/dist/Menu-C0scum-k.cjs +1 -0
- package/dist/{Menu-GBo3ayoP.js → Menu-CTuOX5DR.js} +42 -41
- package/dist/Provider-DSMJjyuY.cjs +1 -0
- package/dist/{Provider-BkxUzTWS.js → Provider-ZIy-UlnE.js} +95 -93
- package/dist/Tags-6OV0_eBz.cjs +1 -0
- package/dist/{Tags-V7sNuGZv.js → Tags-BUDnOqms.js} +223 -222
- package/dist/{Text-XeD58Fq8.js → Text-BSTMZRuo.js} +717 -675
- package/dist/Text-C2_VsLzw.cjs +1 -0
- package/dist/Video-Bew5_j16.js +10 -0
- package/dist/Video-BryrVNlH.cjs +1 -0
- 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-CloSmhZB.cjs +1 -0
- package/dist/css-D90kZTM8.js +63 -0
- 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/dimensions-CdFEW3oU.cjs +1 -0
- package/dist/{dimensions-qj2CkPTy.js → dimensions-DbMN4145.js} +8 -8
- package/dist/{eraser-DuAfpO0P.js → eraser-BShvqlBE.js} +52 -49
- package/dist/eraser-rFMFKqsg.cjs +11 -0
- package/dist/eslint.config.d.ts +2 -2
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +65 -62
- package/dist/external--liXQuyF.cjs +1 -0
- package/dist/external-B3ipr7m2.cjs +1 -0
- package/dist/{external-Ct1k30Nd.js → external-B7UnU0MW.js} +27 -26
- package/dist/{external-PXU0gc_j.cjs → external-BRxBwBtj.cjs} +44 -44
- package/dist/{external-MvcifV4O.js → external-Ba2qQp_c.js} +3 -3
- package/dist/{external-g_vt4Lku.js → external-Bjd-DyWx.js} +22 -30
- package/dist/{external-B3o5P8Yw.cjs → external-BwbypKCk.cjs} +1 -1
- package/dist/external-C0rrTDhu.cjs +1 -0
- package/dist/{external-Dp5OkGYV.js → external-CG70NZqY.js} +97 -96
- package/dist/external-Ci1Iy9ku.js +32 -0
- package/dist/external-CmYpRWry.cjs +1 -0
- package/dist/{external-B-JsNciM.js → external-CoCI_tg5.js} +9 -8
- package/dist/{external-CLQdSLv0.js → external-Ctnukdzx.js} +10 -9
- package/dist/{external-DXWEyk9d.js → external-CvYxFUrc.js} +17 -17
- package/dist/{external-DNbIzfVy.js → external-Czkrdv2A.js} +55 -54
- package/dist/external-Czv2P05t.cjs +1 -0
- package/dist/{external-DxmgAHkn.js → external-DAotNquC.js} +3 -3
- package/dist/external-DFvPOUIQ.cjs +1 -0
- package/dist/{external-DojNoICL.cjs → external-DWEpl5aM.cjs} +1 -1
- package/dist/{external-xfkS0zGI.js → external-JwicH0Yv.js} +18 -17
- package/dist/external-N5bKB8Zx.cjs +1 -0
- package/dist/external-ZtJmVgiY.cjs +1 -0
- package/dist/external-ieDANY3X.cjs +28 -0
- package/dist/{external-sYHm9OG8.js → external-s6DOSL29.js} +16 -15
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-CSWLcJcC.js → fontString-76R2eWDd.js} +3 -3
- package/dist/fontString-BNnhiwug.cjs +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hooks-C4ji1BSZ.cjs +1 -0
- package/dist/{hooks-BeSuo_di.js → hooks-CWEfATTF.js} +16 -16
- package/dist/index.cjs +35 -18
- package/dist/index.js +15379 -14087
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/{jsx-runtime-BbD0H88J.js → jsx-runtime-tc70JA_2.js} +2 -2
- 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/provider-Bt-E2O6g.js +810 -0
- package/dist/provider-DQkVj3tA.cjs +10 -0
- package/dist/src/access/policy/queries.d.ts +6 -6
- package/dist/src/button/Copy.d.ts +28 -0
- package/dist/src/button/Copy.d.ts.map +1 -0
- package/dist/src/button/Copy.spec.d.ts +2 -0
- package/dist/src/button/Copy.spec.d.ts.map +1 -0
- package/dist/src/button/external.d.ts +1 -0
- package/dist/src/button/external.d.ts.map +1 -1
- package/dist/src/channel/queries.d.ts +1 -1
- package/dist/src/channel/queries.d.ts.map +1 -1
- package/dist/src/color/Provider.d.ts +11 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/device/queries.d.ts +122 -72
- package/dist/src/device/queries.d.ts.map +1 -1
- package/dist/src/errors/Fallback.d.ts.map +1 -1
- package/dist/src/flux/base/store.d.ts +2 -2
- package/dist/src/flux/base/store.d.ts.map +1 -1
- package/dist/src/flux/retrieve.d.ts +1 -1
- package/dist/src/flux/retrieve.d.ts.map +1 -1
- package/dist/src/icon/EtherCAT.d.ts +2 -0
- package/dist/src/icon/EtherCAT.d.ts.map +1 -0
- package/dist/src/icon/registry.d.ts +3 -0
- package/dist/src/icon/registry.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/json/SelectType.d.ts +8 -0
- package/dist/src/json/SelectType.d.ts.map +1 -0
- package/dist/src/json/external.d.ts +3 -0
- package/dist/src/json/external.d.ts.map +1 -0
- package/dist/src/json/index.d.ts +2 -0
- package/dist/src/json/index.d.ts.map +1 -0
- package/dist/src/json/primitive.d.ts +7 -0
- package/dist/src/json/primitive.d.ts.map +1 -0
- package/dist/src/json/primitive.spec.d.ts +2 -0
- package/dist/src/json/primitive.spec.d.ts.map +1 -0
- package/dist/src/label/queries.d.ts +30 -2
- package/dist/src/label/queries.d.ts.map +1 -1
- package/dist/src/lineplot/aether/XAxis.d.ts +40 -0
- package/dist/src/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/lineplot/aether/YAxis.d.ts +40 -0
- package/dist/src/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/lineplot/aether/axis.d.ts +20 -0
- package/dist/src/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/lineplot/range/aether/provider.d.ts +90 -6
- package/dist/src/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/lineplot/tooltip/aether/tooltip.d.ts +80 -0
- package/dist/src/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/log/aether/Log.d.ts +30 -0
- package/dist/src/log/aether/Log.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/ranger/queries.d.ts +33 -5
- package/dist/src/ranger/queries.d.ts.map +1 -1
- package/dist/src/schematic/symbol/Forms.d.ts +2 -0
- package/dist/src/schematic/symbol/Forms.d.ts.map +1 -1
- package/dist/src/schematic/symbol/Primitives.d.ts +23 -0
- package/dist/src/schematic/symbol/Primitives.d.ts.map +1 -1
- package/dist/src/schematic/symbol/Symbols.d.ts +14 -0
- package/dist/src/schematic/symbol/Symbols.d.ts.map +1 -1
- package/dist/src/schematic/symbol/queries.d.ts +6 -6
- package/dist/src/schematic/symbol/registry.d.ts +2 -0
- package/dist/src/schematic/symbol/registry.d.ts.map +1 -1
- package/dist/src/status/aether/errorHandler.d.ts.map +1 -1
- package/dist/src/status/queries.d.ts +3 -2
- package/dist/src/status/queries.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts +20 -0
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +10 -0
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +15 -0
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts +1 -0
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/Legend.d.ts +4 -2
- package/dist/src/telem/control/Legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +10 -0
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +50 -0
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +22 -0
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +13 -0
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +1413 -3
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/base/theme.d.ts +941 -1
- package/dist/src/theming/base/theme.d.ts.map +1 -1
- package/dist/src/user/queries.d.ts +1 -1
- package/dist/src/vis/axis/axis.d.ts +20 -0
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/gauge/aether/gauge.d.ts +30 -0
- package/dist/src/vis/gauge/aether/gauge.d.ts.map +1 -1
- package/dist/src/vis/gauge/use.d.ts +10 -0
- package/dist/src/vis/gauge/use.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +10 -0
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +80 -0
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +20 -0
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/stateIndicator/aether/index.d.ts +2 -0
- package/dist/src/vis/stateIndicator/aether/index.d.ts.map +1 -0
- package/dist/src/vis/stateIndicator/aether/stateIndicator.d.ts +48 -0
- package/dist/src/vis/stateIndicator/aether/stateIndicator.d.ts.map +1 -0
- package/dist/src/vis/stateIndicator/index.d.ts +2 -0
- package/dist/src/vis/stateIndicator/index.d.ts.map +1 -0
- package/dist/src/vis/stateIndicator/use.d.ts +9 -0
- package/dist/src/vis/stateIndicator/use.d.ts.map +1 -0
- package/dist/src/vis/value/aether/value.d.ts +60 -0
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/redline.d.ts +5 -0
- package/dist/src/vis/value/redline.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +20 -0
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/src/workspace/queries.d.ts +1 -1
- package/dist/stylelint.config.d.ts +3 -0
- package/dist/stylelint.config.d.ts.map +1 -0
- 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/theme-dark.css +815 -0
- package/dist/theme-light.css +815 -0
- package/dist/theme.css +680 -680
- 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/{types-B5-Tni3G.js → types-CGRCBVD4.js} +2 -2
- package/dist/{types-C0tUDfsz.cjs → types-DI2vtOGs.cjs} +1 -1
- package/dist/units-Bu36uC6z.cjs +1 -0
- package/dist/units-DMip-eZH.js +14 -0
- package/dist/value-Bfn0uQuG.cjs +53 -0
- package/dist/{value-BmuhX6zs.js → value-DimszMFu.js} +2108 -2057
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +25 -21
- package/dist/Animated-BbeJdao0.js +0 -28
- package/dist/Animated-Dvm2k_z_.cjs +0 -1
- package/dist/Animated-umWjgTzy.cjs +0 -1
- package/dist/Box-D27bV7QJ.cjs +0 -1
- package/dist/Button-BSek5HG5.cjs +0 -1
- package/dist/Button-DLtxKGH5.js +0 -308
- package/dist/Dialog-BpjxXSmw.cjs +0 -1
- package/dist/Editable-C-z-stcD.cjs +0 -1
- package/dist/Haul-WgPKptr9.cjs +0 -1
- package/dist/Items-07R286kW.cjs +0 -4
- package/dist/Menu-58O-OOPJ.cjs +0 -1
- package/dist/Provider-BA3zQVbv.cjs +0 -1
- package/dist/Tags-DWsEZD9t.cjs +0 -1
- package/dist/Text-DW5FpCk9.cjs +0 -1
- package/dist/Video-C56z7qvH.js +0 -9
- package/dist/Video-CBPTBLTB.cjs +0 -1
- package/dist/css-BkBrZtKZ.js +0 -5328
- package/dist/css-D3NdC2sx.cjs +0 -8
- package/dist/dimensions-C7b02rFi.cjs +0 -1
- package/dist/eraser-Bocga8Eb.cjs +0 -11
- package/dist/external-5_uHky7w.cjs +0 -28
- package/dist/external-B9omdiDK.cjs +0 -1
- package/dist/external-BIbdeWQE.cjs +0 -1
- package/dist/external-BRA_zA83.cjs +0 -1
- package/dist/external-Bjh6lsVm.cjs +0 -1
- package/dist/external-BwRkgEyo.cjs +0 -1
- package/dist/external-CdHyPhLI.js +0 -31
- package/dist/external-Ct2A_YCT.cjs +0 -1
- package/dist/external-DT82RBon.cjs +0 -1
- package/dist/external-DyTk_hS7.cjs +0 -1
- package/dist/fontString-TocVNWmy.cjs +0 -1
- package/dist/hooks-Eb94kuDd.cjs +0 -1
- package/dist/provider-D0K9E52u.js +0 -16236
- package/dist/provider-DksyuJua.cjs +0 -78
- package/dist/units-Bd_mf9Ye.cjs +0 -1
- package/dist/units-CEfK1L7C.js +0 -14
- package/dist/value-CZfzRi_x.cjs +0 -53
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { j as s } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import "@synnaxlabs/x";
|
|
3
|
+
import { C as e } from "./css-D90kZTM8.js";
|
|
4
|
+
import { a as m } from "./Box-Bi280MYh.js";
|
|
5
|
+
import { B as u } from "./Copy-CzkBKGca.js";
|
|
5
6
|
import { useMemo as d } from "react";
|
|
6
|
-
import { c as p } from "./Text-
|
|
7
|
-
import { T as x } from "./Editable-
|
|
8
|
-
import { a as f } from "./types-
|
|
7
|
+
import { c as p } from "./Text-BSTMZRuo.js";
|
|
8
|
+
import { T as x } from "./Editable-4ZwvICC4.js";
|
|
9
|
+
import { a as f } from "./types-CGRCBVD4.js";
|
|
9
10
|
const h = ({ children: r = [], ...t }) => /* @__PURE__ */ s.jsx(
|
|
10
11
|
m,
|
|
11
12
|
{
|
|
@@ -79,7 +80,7 @@ const h = ({ children: r = [], ...t }) => /* @__PURE__ */ s.jsx(
|
|
|
79
80
|
...a
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
|
-
},
|
|
83
|
+
}, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
84
|
__proto__: null,
|
|
84
85
|
Actions: h,
|
|
85
86
|
ButtonTitle: b,
|
|
@@ -88,5 +89,5 @@ const h = ({ children: r = [], ...t }) => /* @__PURE__ */ s.jsx(
|
|
|
88
89
|
useContext: n
|
|
89
90
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
O as e
|
|
92
93
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as E, a as p, b as x } from "./hooks-
|
|
2
|
-
import { u as d, A as
|
|
3
|
-
import { j as G } from "./jsx-runtime-
|
|
1
|
+
import { u as E, a as p, b as x } from "./hooks-CWEfATTF.js";
|
|
2
|
+
import { u as d, A as b, b as S, K as _, M as R, e as y, g as T, h as K, P as U, T as C, i as L, j as O, d as h, k as j, f as v, l as k, m as A, n as w, o as H, q as N, r as P, s as Z, t as I, p as Y, v as B, w as F, x as q, y as z } from "./Text-BSTMZRuo.js";
|
|
3
|
+
import { j as G } from "./jsx-runtime-tc70JA_2.js";
|
|
4
4
|
import { useState as $, useEffect as J, useRef as f, useCallback as g } from "react";
|
|
5
|
-
import { T as Q } from "./Editable-
|
|
6
|
-
import {
|
|
7
|
-
import "./types-
|
|
5
|
+
import { T as Q } from "./Editable-4ZwvICC4.js";
|
|
6
|
+
import { xy as i, box as l } from "@synnaxlabs/x";
|
|
7
|
+
import "./types-CGRCBVD4.js";
|
|
8
8
|
const V = (e) => {
|
|
9
9
|
const { listen: a } = d(), [c, n] = $([]);
|
|
10
10
|
return J(
|
|
@@ -40,23 +40,23 @@ const V = (e) => {
|
|
|
40
40
|
E({ triggers: a, callback: M, region: c, loose: n });
|
|
41
41
|
}, ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
ALPHANUMERIC_KEYS:
|
|
44
|
-
ALPHANUMERIC_KEYS_SET:
|
|
45
|
-
KEYS:
|
|
43
|
+
ALPHANUMERIC_KEYS: b,
|
|
44
|
+
ALPHANUMERIC_KEYS_SET: S,
|
|
45
|
+
KEYS: _,
|
|
46
46
|
MOUSE_KEYS: R,
|
|
47
47
|
MOUSE_LEFT_NUMBER: y,
|
|
48
48
|
MOUSE_MIDDLE_NUMBER: T,
|
|
49
49
|
MOUSE_RIGHT_NUMBER: K,
|
|
50
50
|
Provider: U,
|
|
51
51
|
Status: V,
|
|
52
|
-
Text:
|
|
53
|
-
compareModeConfigs:
|
|
54
|
-
determineMode:
|
|
55
|
-
diff:
|
|
56
|
-
eventKey:
|
|
57
|
-
filter:
|
|
58
|
-
flattenConfig:
|
|
59
|
-
isAlphanumericKey:
|
|
52
|
+
Text: C,
|
|
53
|
+
compareModeConfigs: L,
|
|
54
|
+
determineMode: O,
|
|
55
|
+
diff: h,
|
|
56
|
+
eventKey: j,
|
|
57
|
+
filter: v,
|
|
58
|
+
flattenConfig: k,
|
|
59
|
+
isAlphanumericKey: A,
|
|
60
60
|
keyZ: w,
|
|
61
61
|
keyboardKey: H,
|
|
62
62
|
match: N,
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as G, L as z } from "./Text-
|
|
3
|
-
import { j as p } from "./jsx-runtime-
|
|
4
|
-
import { A as K } from "./Animated-
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
1
|
+
import { array as w, unique as A } from "@synnaxlabs/x";
|
|
2
|
+
import { c as G, L as z } from "./Text-BSTMZRuo.js";
|
|
3
|
+
import { j as p } from "./jsx-runtime-tc70JA_2.js";
|
|
4
|
+
import { A as K } from "./Animated-Bn4jMc7c.js";
|
|
5
|
+
import { C as c } from "./css-D90kZTM8.js";
|
|
6
|
+
import { L as U, F as Y } from "./Tags-BUDnOqms.js";
|
|
7
|
+
import "./Copy-CzkBKGca.js";
|
|
8
|
+
import "./Box-Bi280MYh.js";
|
|
9
|
+
import { a as J } from "./Items-CNPUoiob.js";
|
|
10
|
+
import "./Animated-6qL1fRZx.js";
|
|
10
11
|
import { useMemo as Q, useCallback as g } from "react";
|
|
11
|
-
import { d as V, c as R } from "./Editable-
|
|
12
|
-
import { b as W } from "./types-
|
|
13
|
-
import "./Provider-
|
|
12
|
+
import { d as V, c as R } from "./Editable-4ZwvICC4.js";
|
|
13
|
+
import { b as W } from "./types-CGRCBVD4.js";
|
|
14
|
+
import "./Provider-ZIy-UlnE.js";
|
|
14
15
|
import "react-dom";
|
|
15
|
-
import "./Haul-
|
|
16
|
-
import "./provider-
|
|
17
|
-
import { b as X } from "./hooks-
|
|
16
|
+
import "./Haul-CxbMtSY4.js";
|
|
17
|
+
import "./provider-Bt-E2O6g.js";
|
|
18
|
+
import { b as X } from "./hooks-CWEfATTF.js";
|
|
18
19
|
const T = (e, n) => n.includes(e.key), I = ({
|
|
19
20
|
nodes: e,
|
|
20
21
|
expanded: n,
|
|
@@ -29,13 +30,13 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
29
30
|
expanded: l,
|
|
30
31
|
hasChildren: s.children != null
|
|
31
32
|
}), l && s.children != null) {
|
|
32
|
-
const { keys:
|
|
33
|
+
const { keys: i, nodes: f } = I({
|
|
33
34
|
nodes: s.children,
|
|
34
35
|
expanded: n,
|
|
35
36
|
sort: t,
|
|
36
37
|
depth: o + 1
|
|
37
38
|
});
|
|
38
|
-
r.keys.push(...
|
|
39
|
+
r.keys.push(...i), r.nodes.push(...f);
|
|
39
40
|
}
|
|
40
41
|
}), r;
|
|
41
42
|
}, Z = ({
|
|
@@ -72,11 +73,11 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
72
73
|
throwOnMissing: o = !0
|
|
73
74
|
}) => {
|
|
74
75
|
t = w.toArray(t);
|
|
75
|
-
const r = A.by(t, (
|
|
76
|
+
const r = A.by(t, (i) => i.key, !1), s = r.map((i) => i.key);
|
|
76
77
|
if (n == null)
|
|
77
78
|
return [
|
|
78
79
|
...r,
|
|
79
|
-
...e.filter((
|
|
80
|
+
...e.filter((i) => !s.includes(i.key))
|
|
80
81
|
];
|
|
81
82
|
const l = a({ tree: e, key: n });
|
|
82
83
|
if (l == null) {
|
|
@@ -85,7 +86,7 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
85
86
|
}
|
|
86
87
|
return l.children ??= [], l.children = [
|
|
87
88
|
...r,
|
|
88
|
-
...l.children.filter((
|
|
89
|
+
...l.children.filter((i) => !s.includes(i.key))
|
|
89
90
|
], e;
|
|
90
91
|
}, ee = ({
|
|
91
92
|
tree: e,
|
|
@@ -100,7 +101,7 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
100
101
|
}
|
|
101
102
|
const s = C({ tree: e, key: n });
|
|
102
103
|
if (s != null) {
|
|
103
|
-
const l = s.children?.findIndex((
|
|
104
|
+
const l = s.children?.findIndex((i) => i.key === n);
|
|
104
105
|
l != null && l !== -1 && s.children?.splice(l, 1, t(r));
|
|
105
106
|
} else
|
|
106
107
|
e.splice(
|
|
@@ -190,18 +191,18 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
190
191
|
offsetMultiplier: s = 2.5,
|
|
191
192
|
...l
|
|
192
193
|
}) => {
|
|
193
|
-
const { index:
|
|
194
|
+
const { index: i } = l, { expanded: f, depth: m, hasChildren: x } = $("Tree.Item")[i];
|
|
194
195
|
return /* @__PURE__ */ p.jsxs(
|
|
195
196
|
U,
|
|
196
197
|
{
|
|
197
|
-
className:
|
|
198
|
-
|
|
199
|
-
m !== 0 &&
|
|
200
|
-
r &&
|
|
198
|
+
className: c(
|
|
199
|
+
c.BE("tree", "item"),
|
|
200
|
+
m !== 0 && c.M("show-rules"),
|
|
201
|
+
r && c.M("margin"),
|
|
201
202
|
t
|
|
202
203
|
),
|
|
203
204
|
style: {
|
|
204
|
-
[
|
|
205
|
+
[c.var("tree-item-offset")]: `${m * s + 1.5}rem`,
|
|
205
206
|
...n
|
|
206
207
|
},
|
|
207
208
|
gap: "small",
|
|
@@ -211,7 +212,7 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
211
212
|
x && /* @__PURE__ */ p.jsx(
|
|
212
213
|
K,
|
|
213
214
|
{
|
|
214
|
-
className:
|
|
215
|
+
className: c.BE("tree", "expansion-indicator"),
|
|
215
216
|
enabled: f,
|
|
216
217
|
enabledLoc: "bottom",
|
|
217
218
|
disabledLoc: "right"
|
|
@@ -223,7 +224,7 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
223
224
|
]
|
|
224
225
|
}
|
|
225
226
|
);
|
|
226
|
-
},
|
|
227
|
+
}, ie = "tree-item", de = [["Shift"]], ce = ({
|
|
227
228
|
onExpand: e,
|
|
228
229
|
nodes: n,
|
|
229
230
|
initialExpanded: t = [],
|
|
@@ -231,42 +232,42 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
231
232
|
onSelectedChange: r,
|
|
232
233
|
sort: s
|
|
233
234
|
}) => {
|
|
234
|
-
const [l,
|
|
235
|
+
const [l, i, f] = V(t), [m, x] = W({
|
|
235
236
|
initial: [],
|
|
236
237
|
value: o,
|
|
237
238
|
onChange: r
|
|
238
239
|
}), E = Q(
|
|
239
240
|
() => I({ nodes: n, expanded: l, sort: s }),
|
|
240
241
|
[n, l, s]
|
|
241
|
-
), N = R(n), S = R(E), b = X({ triggers:
|
|
242
|
-
(u, { clicked:
|
|
243
|
-
if (x((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u),
|
|
244
|
-
const y = O(S.current,
|
|
242
|
+
), N = R(n), S = R(E), b = X({ triggers: de }), k = g(
|
|
243
|
+
(u, { clicked: d }) => {
|
|
244
|
+
if (x((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || b.current.held) return;
|
|
245
|
+
const y = O(S.current, d);
|
|
245
246
|
if (y == null || !y.hasChildren) return;
|
|
246
|
-
const v = f.current, j = v.some((h) => h ===
|
|
247
|
+
const v = f.current, j = v.some((h) => h === d) ? "contract" : "expand";
|
|
247
248
|
let _;
|
|
248
|
-
j === "contract" ? _ = v.filter((h) => h !==
|
|
249
|
+
j === "contract" ? _ = v.filter((h) => h !== d) : _ = [...v, d], i(_), e?.({ current: _, action: j, clicked: d });
|
|
249
250
|
},
|
|
250
|
-
[e, N,
|
|
251
|
-
),
|
|
251
|
+
[e, N, i, x]
|
|
252
|
+
), q = g(
|
|
252
253
|
(u) => {
|
|
253
|
-
|
|
254
|
+
i((d) => A.unique([...d, u])), e?.({ current: l, action: "expand", clicked: u });
|
|
254
255
|
},
|
|
255
|
-
[
|
|
256
|
-
),
|
|
256
|
+
[i]
|
|
257
|
+
), B = g(
|
|
257
258
|
(...u) => {
|
|
258
|
-
|
|
259
|
-
e?.({ current: l, action: "contract", clicked:
|
|
259
|
+
i((d) => d.filter((y) => !u.includes(y))), u.forEach((d) => {
|
|
260
|
+
e?.({ current: l, action: "contract", clicked: d });
|
|
260
261
|
});
|
|
261
262
|
},
|
|
262
|
-
[
|
|
263
|
-
),
|
|
263
|
+
[i]
|
|
264
|
+
), F = g(() => i([]), [i]);
|
|
264
265
|
return {
|
|
265
266
|
selected: m,
|
|
266
267
|
expanded: l,
|
|
267
|
-
contract:
|
|
268
|
-
expand:
|
|
269
|
-
clearExpanded:
|
|
268
|
+
contract: B,
|
|
269
|
+
expand: q,
|
|
270
|
+
clearExpanded: F,
|
|
270
271
|
shape: E,
|
|
271
272
|
onSelect: k
|
|
272
273
|
};
|
|
@@ -278,7 +279,7 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
278
279
|
getItem: r,
|
|
279
280
|
subscribe: s,
|
|
280
281
|
className: l,
|
|
281
|
-
contract:
|
|
282
|
+
contract: i,
|
|
282
283
|
expand: f,
|
|
283
284
|
expanded: m,
|
|
284
285
|
className: x,
|
|
@@ -304,16 +305,16 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
304
305
|
J,
|
|
305
306
|
{
|
|
306
307
|
full: "y",
|
|
307
|
-
className:
|
|
308
|
+
className: c(c.B("tree"), l, N && c.M("show-rules")),
|
|
308
309
|
...b,
|
|
309
310
|
children: n
|
|
310
311
|
}
|
|
311
312
|
)
|
|
312
313
|
}
|
|
313
314
|
) });
|
|
314
|
-
},
|
|
315
|
+
}, je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
315
316
|
__proto__: null,
|
|
316
|
-
HAUL_TYPE:
|
|
317
|
+
HAUL_TYPE: ie,
|
|
317
318
|
Item: le,
|
|
318
319
|
Tree: ue,
|
|
319
320
|
deepCopy: D,
|
|
@@ -332,9 +333,9 @@ const T = (e, n) => n.includes(e.key), I = ({
|
|
|
332
333
|
shouldExpand: T,
|
|
333
334
|
updateNode: ee,
|
|
334
335
|
updateNodeChildren: ne,
|
|
335
|
-
use:
|
|
336
|
+
use: ce,
|
|
336
337
|
useContext: $
|
|
337
338
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
338
339
|
export {
|
|
339
|
-
|
|
340
|
+
je as e
|
|
340
341
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs"),u=require("./Box-CNUz5BsV.cjs"),x=require("./Copy-DuC8dTK7.cjs"),S=require("react"),d=require("./Text-C2_VsLzw.cjs"),m=require("./Editable-HUPqTaui.cjs"),p=require("./types-DI2vtOGs.cjs"),C=({children:r=[],...t})=>o.jsxRuntimeExports.jsx(u.Box$1,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...t,children:r}),[j,l]=d.create({defaultValue:{divided:!1,level:"h1"},displayName:"Header.Context"}),E=({className:r,level:t="p",divided:s=!1,bordered:n=!0,padded:a=!1,...c})=>{const i=S.useMemo(()=>({level:t,divided:s}),[t,s]);return o.jsxRuntimeExports.jsx(j,{value:i,children:o.jsxRuntimeExports.jsx(u.Box$1,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),s&&e.CSS.BM("header","divided"),a&&e.CSS.BM("header","padded"),r),...c})})},B=({children:r="",className:t,onClick:s,...n})=>{const{level:a}=l();return o.jsxRuntimeExports.jsx(x.Button,{variant:"text",size:p.LEVEL_COMPONENT_SIZES[a],onClick:s,className:e.CSS(e.CSS.B("header-button-title"),t),sharp:!0,...n,children:r})},h=({className:r,level:t,...s})=>{const{level:n}=l();return o.jsxRuntimeExports.jsx(m.Text,{className:e.CSS(e.CSS.BE("header","text"),r),level:t??n,gap:1.5,...s})},q=Object.freeze(Object.defineProperty({__proto__:null,Actions:C,ButtonTitle:B,Header:E,Title:h,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.external=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as a, a as r, b as i, t as n } from "./provider-
|
|
2
|
-
import { u as o, P as S, t as p, a as u, b } from "./Provider-
|
|
3
|
-
import { f as m } from "./fontString-
|
|
1
|
+
import { S as a, a as r, b as i, t as n } from "./provider-Bt-E2O6g.js";
|
|
2
|
+
import { u as o, P as S, t as p, a as u, b } from "./Provider-ZIy-UlnE.js";
|
|
3
|
+
import { f as m } from "./fontString-76R2eWDd.js";
|
|
4
4
|
const g = (t) => {
|
|
5
5
|
const { theme: e } = o(), s = e.typography[t];
|
|
6
6
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./Copy-DuC8dTK7.cjs"),a=require("./jsx-runtime-nZSsnGb7.cjs"),u=({value:e,onClick:s,onChange:n,checkedVariant:i="filled",uncheckedVariant:l,rightClickToggle:r=!1,...p})=>a.jsxRuntimeExports.jsx(o.Button,{onClick:t=>{s?.(t),!r&&n(!e)},onContextMenu:t=>{r&&(t.preventDefault(),t.stopPropagation(),n(!e))},variant:e?i:l,...p}),c=Object.freeze(Object.defineProperty({__proto__:null,Button:o.Button,Copy:o.Copy,Toggle:u},Symbol.toStringTag,{value:"Module"}));exports.Toggle=u;exports.external=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./provider-
|
|
1
|
+
"use strict";const r=require("./provider-DQkVj3tA.cjs"),e=require("./Provider-DSMJjyuY.cjs"),n=require("./fontString-BNnhiwug.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,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,19 +1,20 @@
|
|
|
1
|
-
import { j as X } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as X } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { xy as xt, box as Fe, debounce as rh, color as te, TimeStamp as Dc, scale as th, id as nh, clamp as ah } from "@synnaxlabs/x";
|
|
3
3
|
import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, useMemo as Bc, useRef as Mo } from "react";
|
|
4
|
-
import { B as $c } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
4
|
+
import { B as $c } from "./Copy-CzkBKGca.js";
|
|
5
|
+
import { C as J } from "./css-D90kZTM8.js";
|
|
6
|
+
import { u as oh, f as Io, a as sh } from "./Haul-CxbMtSY4.js";
|
|
7
|
+
import { a as uh } from "./Provider-ZIy-UlnE.js";
|
|
8
|
+
import "./provider-Bt-E2O6g.js";
|
|
9
|
+
import { b as lh } from "./types-CGRCBVD4.js";
|
|
9
10
|
import { c as zr, g as nt, s as ch } from "./event-nNH_pXSr.js";
|
|
10
11
|
import { z as de } from "zod";
|
|
11
|
-
import { s as fh, c as hh,
|
|
12
|
-
import { c as Lc, T as Hc, d as dh, E as gh } from "./Editable-
|
|
13
|
-
import { a as qr } from "./Box-
|
|
14
|
-
import { D as vh } from "./Dialog-
|
|
15
|
-
import { F as bh } from "./Animated-
|
|
16
|
-
import { u as yh } from "./hooks-
|
|
12
|
+
import { s as fh, c as hh, J as ph } from "./Text-BSTMZRuo.js";
|
|
13
|
+
import { c as Lc, T as Hc, d as dh, E as gh } from "./Editable-4ZwvICC4.js";
|
|
14
|
+
import { a as qr } from "./Box-Bi280MYh.js";
|
|
15
|
+
import { D as vh } from "./Dialog-Dos5l3K2.js";
|
|
16
|
+
import { F as bh } from "./Animated-6qL1fRZx.js";
|
|
17
|
+
import { u as yh } from "./hooks-CWEfATTF.js";
|
|
17
18
|
const mh = ({
|
|
18
19
|
onMove: r,
|
|
19
20
|
onStart: e,
|
|
@@ -2857,7 +2858,7 @@ var $l;
|
|
|
2857
2858
|
function Nd() {
|
|
2858
2859
|
if ($l) return G;
|
|
2859
2860
|
$l = 1;
|
|
2860
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, o = r ? Symbol.for("react.provider") : 60109, s = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, c = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, b = r ? Symbol.for("react.fundamental") : 60117, x = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
2861
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, d = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
2861
2862
|
function O(y) {
|
|
2862
2863
|
if (typeof y == "object" && y !== null) {
|
|
2863
2864
|
var T = y.$$typeof;
|
|
@@ -2923,7 +2924,7 @@ var z = {};
|
|
|
2923
2924
|
var Ll;
|
|
2924
2925
|
function Gd() {
|
|
2925
2926
|
return Ll || (Ll = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2926
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, o = r ? Symbol.for("react.provider") : 60109, s = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, c = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, b = r ? Symbol.for("react.fundamental") : 60117, x = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
2927
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, d = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
2927
2928
|
function O(S) {
|
|
2928
2929
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2929
2930
|
S === n || S === l || S === i || S === a || S === h || S === p || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === d || S.$$typeof === o || S.$$typeof === s || S.$$typeof === c || S.$$typeof === b || S.$$typeof === x || S.$$typeof === E || S.$$typeof === g);
|
|
@@ -8941,7 +8942,7 @@ const To = de.object({
|
|
|
8941
8942
|
]
|
|
8942
8943
|
}
|
|
8943
8944
|
);
|
|
8944
|
-
},
|
|
8945
|
+
}, ix = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8945
8946
|
__proto__: null,
|
|
8946
8947
|
GradientPicker: $m,
|
|
8947
8948
|
Picker: Xf,
|
|
@@ -8963,6 +8964,6 @@ export {
|
|
|
8963
8964
|
jm as P,
|
|
8964
8965
|
Zf as S,
|
|
8965
8966
|
xh as a,
|
|
8966
|
-
|
|
8967
|
+
ix as e,
|
|
8967
8968
|
mh as u
|
|
8968
8969
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./Items-DYYNNIjr.cjs"),n=require("react"),h=require("@synnaxlabs/x"),y=require("./Editable-HUPqTaui.cjs");require("./Text-C2_VsLzw.cjs");require("./jsx-runtime-nZSsnGb7.cjs");require("./types-DI2vtOGs.cjs");require("./css-CloSmhZB.cjs");require("./Box-CNUz5BsV.cjs");require("./Provider-DSMJjyuY.cjs");const M=require("./useStaticData-BTwIe0Il.cjs"),C=10,d=({offset:e,searchTerm:t="",...s},c=C)=>({...s,offset:(e??-c)+c,limit:c,searchTerm:t}),g=(e,t,s=C)=>({...e,searchTerm:t,offset:0,limit:s}),q=({retrieve:e,pageSize:t=C})=>{const s=n.useCallback(()=>{e(o=>d(o,t),{mode:"append"})},[e,t]),c=n.useCallback(o=>e(a=>g(a,o,t)),[e,t]);return n.useMemo(()=>({fetchMore:s,search:c}),[s,c])},D=({first:e,second:t})=>{const s=n.useMemo(()=>[...e.data,...t.data],[e.data,t.data]),c=n.useCallback(a=>{if(Array.isArray(a)){const m=e.getItem?.(a)??[],i=t.getItem?.(a)??[];return[...m,...i]}return e.getItem?.(a)??t.getItem?.(a)},[e.getItem,t.getItem]),o=n.useCallback((a,m)=>{const i=e.subscribe?.(a,m),f=t.subscribe?.(a,m);return()=>{i?.(),f?.()}},[e.subscribe,t.subscribe]);return n.useMemo(()=>({data:s,getItem:c,subscribe:o}),[s,c,o])},A=e=>{const t=n.useCallback((s=>{if(Array.isArray(s)){const o=new Set(s);return e.filter(a=>o.has(a)).map(a=>({key:a}))}const c=e.find(o=>o===s);return c?{key:c}:void 0}),[e]);return n.useMemo(()=>({data:e,getItem:t}),[e,t])},E=({initialData:e}={})=>{const t=y.useInitializerRef(()=>{const r=new Map;return e==null||e.forEach(u=>r.set(u.key,u)),r}),s=y.useInitializerRef(()=>new Map),c=n.useCallback(r=>{const u=new Set(r);s.current.forEach((I,b)=>{u.has(I)&&b()})},[]),o=n.useCallback(r=>{const u=h.array.toArray(r),I=u.map(b=>b.key);u.forEach(b=>t.current.set(b.key,b)),c(I)},[]),a=n.useCallback(r=>{const u=h.array.toArray(r);u.forEach(I=>t.current.delete(I)),c(u)},[]),m=n.useCallback((r,u)=>u==null?()=>{}:(s.current.set(r,u),()=>{s.current.delete(r)}),[s]),i=n.useCallback((r=>{if(r!=null)return Array.isArray(r)?r.map(u=>t.current.get(u)).filter(u=>u!=null):t.current.get(r)}),[]),f=n.useCallback(r=>t.current.has(r),[]);return n.useMemo(()=>({setItem:o,deleteItem:a,subscribe:m,getItem:i,hasItem:f}),[o,a,m,i,f])},k=Object.freeze(Object.defineProperty({__proto__:null,BaseFrame:l.BaseFrame,Frame:l.Frame,Item:l.Item,Items:l.Items,createGetItem:l.createGetItem,page:d,search:g,useCombinedData:D,useData:l.useData,useItem:l.useItem,useKeysData:A,useMapData:E,usePager:q,useScroller:l.useScroller,useStaticData:M.useStaticData,useUtilContext:l.useUtilContext},Symbol.toStringTag,{value:"Module"}));exports.external=k;exports.useKeysData=A;exports.usePager=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./Menu-C0scum-k.cjs"),u=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs");;/* empty css */const v=require("./Box-CNUz5BsV.cjs"),m=require("./Copy-DuC8dTK7.cjs"),i=require("./Animated-xK__WUQp.cjs"),c=({className:n,padded:t=!1,color:o,...s})=>(t===!0&&(t="center"),u.jsxRuntimeExports.jsx(v.Box$1,{className:e.CSS(e.CSS.B("divider"),t!==!1&&e.CSS.BM("divider","padded"),typeof t=="string"&&e.CSS.loc(t),n),borderColor:o,color:o,...s})),p=Object.freeze(Object.defineProperty({__proto__:null,Divider:c},Symbol.toStringTag,{value:"Module"})),M=()=>u.jsxRuntimeExports.jsx(c,{className:e.CSS.BE("menu","divider"),x:!0,padded:!0}),j=({itemKey:n,className:t,onClick:o,size:s,...C})=>{const{onClick:l,selected:S,level:x="p",gap:a,background:E}=r.useContext(),T=_=>{l(n),o?.(_)},d=S===n;return u.jsxRuntimeExports.jsx(m.Button,{contrast:E,level:x,overflow:"nowrap",onClick:T,variant:"text",className:e.CSS(e.CSS.B("menu-item"),e.CSS.selected(d),t),size:s,gap:a,propagateClick:!0,...C})},N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:i.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:i.CONTEXT_SELECTED,CONTEXT_TARGET:i.CONTEXT_TARGET,ContextMenu:r.ContextMenu,Divider:M,Item:j,Menu:r.Menu,useContext:r.useContext,useContextMenu:r.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.Divider=c;exports.Divider$1=p;exports.external=N;
|