@synnaxlabs/pluto 0.44.0 → 0.44.1
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-CCN9ByY6.cjs → Animated-3QNTHym1.cjs} +1 -1
- package/dist/{Animated-Owbkpo6B.js → Animated-KCUNFDvN.js} +2 -2
- package/dist/{Menu-DZ-gh1ky.js → Menu-BFD8DPDp.js} +3 -3
- package/dist/{Menu-BSLsdSQe.cjs → Menu-BPH8apK8.cjs} +1 -1
- package/dist/{Toggle-BUJcWkDS.js → Toggle-1E6vrl6G.js} +1 -1
- package/dist/{Toggle-BWcSF1BX.cjs → Toggle-BHiPL61M.cjs} +1 -1
- package/dist/{Video-BcSAFYkH.cjs → Video-BidrtYj_.cjs} +1 -1
- package/dist/{Video-DqCXiObt.js → Video-Cm8ZBqid.js} +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-9yccD6t_.cjs +8 -0
- package/dist/{css-Cg4qHNg7.js → css-Dl9aM7Jz.js} +694 -686
- 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-DeKDbhe4.cjs → eraser-CLWNvWDn.cjs} +20 -20
- package/dist/{eraser-BPrMJQSi.js → eraser-CZknVTjw.js} +11 -11
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +6 -6
- package/dist/{external-Dr1KTRgM.js → external-5PfK-PF3.js} +27 -27
- package/dist/{external-CO49SSMt.js → external-B16icDUE.js} +3 -3
- package/dist/{external-BZs08bQT.js → external-B1mnn7_J.js} +3 -3
- package/dist/{external-CmXsU6yu.cjs → external-BDFD5v83.cjs} +1 -1
- package/dist/{external-CwWs_qf4.js → external-BgZRkFq4.js} +2 -2
- package/dist/{external-ZbSTG-v-.js → external-BmaCxlPM.js} +3 -3
- package/dist/{external-CcIlyM7a.cjs → external-Bmv3JTk3.cjs} +1 -1
- package/dist/{external-BXXtl81l.js → external-Bx2Al5fy.js} +3 -3
- package/dist/{external-Be6wSMuJ.cjs → external-Bx2weRCW.cjs} +1 -1
- package/dist/{external-DCftrpz2.js → external-BzGhOwHW.js} +4 -4
- package/dist/{external-D9Mbu0wy.cjs → external-CKvxjJs5.cjs} +1 -1
- package/dist/{external-DVV0t11f.cjs → external-CtwEvFYE.cjs} +1 -1
- package/dist/{external-E3bYM0JI.cjs → external-DF7sP0pe.cjs} +1 -1
- package/dist/{external-fKroctog.js → external-DIE22vag.js} +15 -15
- package/dist/{external-C4JmDQou.cjs → external-DIRuVzOZ.cjs} +1 -1
- package/dist/{external-O7GBl914.cjs → external-DJ4pzZBh.cjs} +1 -1
- package/dist/external-DMB49R_H.cjs +1 -0
- package/dist/{external-BhHJuw2t.js → external-DPN-ziJs.js} +2 -2
- package/dist/{external-D2eCxMkQ.cjs → external-DRcsXa_0.cjs} +6 -6
- package/dist/{external-JZqEUnPB.js → external-DTzGaj9d.js} +4 -4
- package/dist/{external-SZ8meWoz.js → external-DWSWz3Rk.js} +3 -3
- package/dist/{external-D7fvHJwL.cjs → external-Dr5azzr8.cjs} +1 -1
- package/dist/{external-Dd9YnYGw.js → external-R1cRWCTB.js} +3 -3
- package/dist/{external-BHiMn0_8.cjs → external-T7fQRFNS.cjs} +1 -1
- package/dist/{external-bO6dVXFd.js → external-k23HUvy8.js} +12 -4
- package/dist/{external-Cdszmp1I.cjs → external-lMAel8Te.cjs} +1 -1
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-BCV37JOn.js → fontString-Bm52S4Lo.js} +2 -2
- package/dist/{fontString-DUff-KJe.cjs → fontString-BptzSQcY.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 +153 -153
- 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/{provider-Y8rmJd2z.js → provider-BhLG7kqF.js} +3 -3
- package/dist/provider-DVZt686Q.cjs +53 -0
- package/dist/src/dialog/Dialog.d.ts.map +1 -1
- package/dist/src/dialog/Frame.d.ts.map +1 -1
- package/dist/src/list/useStaticData.d.ts.map +1 -1
- package/dist/src/select/MultipleTrigger.d.ts.map +1 -1
- package/dist/src/select/Static.d.ts +1 -1
- package/dist/src/select/Static.d.ts.map +1 -1
- package/dist/{symbols-DT8-7-NW.js → symbols-5jPiWw_d.js} +5249 -5247
- package/dist/{symbols-BtW1eE35.cjs → symbols-DzAWrATO.cjs} +40 -40
- 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-DR4EJndw.cjs → units-BGkvnLO-.cjs} +1 -1
- package/dist/{units-ts2tUMPH.js → units-HcS_zslH.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/css-BR-Ih764.cjs +0 -8
- package/dist/external-BKWucUPD.cjs +0 -1
- package/dist/provider-Dx_qX7Wi.cjs +0 -53
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import b, { z as s } from "zod";
|
|
2
|
-
import { S as nl, i as E, b as sl, _ as xe,
|
|
2
|
+
import { S as nl, i as E, b as sl, _ as xe, H as j, a as Ne, K as rt, d as Ea, c as al, C as il } from "./css-Dl9aM7Jz.js";
|
|
3
3
|
import { useState as $n } from "react";
|
|
4
4
|
const ol = (r) => {
|
|
5
5
|
const t = r.replace(/_[a-z]/g, (e) => e[1].toUpperCase());
|
|
@@ -13255,22 +13255,22 @@ export {
|
|
|
13255
13255
|
X as H,
|
|
13256
13256
|
$t as I,
|
|
13257
13257
|
N as J,
|
|
13258
|
-
|
|
13258
|
+
Ew as K,
|
|
13259
13259
|
gr as L,
|
|
13260
|
-
|
|
13260
|
+
xv as M,
|
|
13261
13261
|
Zt as N,
|
|
13262
13262
|
qe as O,
|
|
13263
13263
|
ma as P,
|
|
13264
|
-
|
|
13264
|
+
Gb as Q,
|
|
13265
13265
|
_v as R,
|
|
13266
13266
|
tb as S,
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13267
|
+
bs as T,
|
|
13268
|
+
bv as U,
|
|
13269
|
+
Xo as V,
|
|
13270
|
+
k as W,
|
|
13271
|
+
kv as X,
|
|
13272
|
+
pv as Y,
|
|
13273
|
+
wv as Z,
|
|
13274
13274
|
Le as _,
|
|
13275
13275
|
Bv as a,
|
|
13276
13276
|
da as a0,
|
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./eraser-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./eraser-CLWNvWDn.cjs");require("./css-9yccD6t_.cjs");const e=require("./provider-DVZt686Q.cjs"),S=require("./fontString-BptzSQcY.cjs"),i=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:S.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,Context:t.Context,GLProgram:t.GLProgram,Loop:t.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"})),u=()=>{const r=new t.d((n,R)=>postMessage(n,R));onmessage=r.handle.bind(r);const o={...t.REGISTRY$3,...e.REGISTRY$18,...e.REGISTRY$17,...e.REGISTRY$16,...e.REGISTRY$15,...t.REGISTRY$2,...e.REGISTRY$14,...e.REGISTRY$13,...e.REGISTRY,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY$10,...e.REGISTRY$9,...t.REGISTRY$1,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY,...e.REGISTRY$6,...e.REGISTRY$5,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1};t.render({comms:r.route("vis"),registry:o,instrumentation:new t.O({logger:new t._({filters:[t.be("info")]})})})},a=Object.freeze(Object.defineProperty({__proto__:null,render:u},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=a;exports.render=l;exports.theming=i;
|
package/dist/ether.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as R, R as a, S as n, e as S, f as l, h as i, t as T, u, j as G, G as Y, k as E, m, n as I, o as $, p, r as c, O as d, _ as f, q as g } from "./eraser-
|
|
2
|
-
import { v as ue } from "./eraser-
|
|
3
|
-
import "./css-
|
|
4
|
-
import { c as _, r as b, u as x, a as y, B as j, L as v, R as s, X as O, Y as P, b as A, l as h, x as L, y as M, d as N, e as Z, f as q, g as w, h as z, i as X, j as k, k as H, m as B, n as C, o as D, p as Q, q as F, s as K, t as J, v as U, w as V, z as W } from "./provider-
|
|
5
|
-
import { D as Ye, E as Ee, G as me, H as Ie, A as $e, C as pe, F as ce, I as de } from "./provider-
|
|
6
|
-
import { f as ee } from "./fontString-
|
|
1
|
+
import { P as R, R as a, S as n, e as S, f as l, h as i, t as T, u, j as G, G as Y, k as E, m, n as I, o as $, p, r as c, O as d, _ as f, q as g } from "./eraser-CZknVTjw.js";
|
|
2
|
+
import { v as ue } from "./eraser-CZknVTjw.js";
|
|
3
|
+
import "./css-Dl9aM7Jz.js";
|
|
4
|
+
import { c as _, r as b, u as x, a as y, B as j, L as v, R as s, X as O, Y as P, b as A, l as h, x as L, y as M, d as N, e as Z, f as q, g as w, h as z, i as X, j as k, k as H, m as B, n as C, o as D, p as Q, q as F, s as K, t as J, v as U, w as V, z as W } from "./provider-BhLG7kqF.js";
|
|
5
|
+
import { D as Ye, E as Ee, G as me, H as Ie, A as $e, C as pe, F as ce, I as de } from "./provider-BhLG7kqF.js";
|
|
6
|
+
import { f as ee } from "./fontString-Bm52S4Lo.js";
|
|
7
7
|
const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
Provider: R,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { z as d, T as x, G as E, H as b, I as
|
|
1
|
+
import { z as d, T as x, G as E, H as b, I as K, K as M, L as S, N as y, O as R, Q as _, R as C, U as T, V as H, W as L, X as h, Y as j, Z as v, _ as O, $ as Z, a0 as k, a1 as A, a2 as Y, a3 as w, a4 as P, a5 as U, a6 as I, a7 as N, a8 as z, a9 as $ } from "./symbols-5jPiWw_d.js";
|
|
2
2
|
import { j as F } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import { useState as G, useEffect as
|
|
4
|
-
import {
|
|
5
|
-
import "./eraser-
|
|
6
|
-
const
|
|
3
|
+
import { useState as G, useEffect as Q, useRef as m, useCallback as f } from "react";
|
|
4
|
+
import { K as i, H as l } from "./css-Dl9aM7Jz.js";
|
|
5
|
+
import "./eraser-CZknVTjw.js";
|
|
6
|
+
const V = (e) => {
|
|
7
7
|
const { listen: o } = d(), [c, n] = G([]);
|
|
8
|
-
return
|
|
8
|
+
return Q(
|
|
9
9
|
() => o(({ next: [s] }) => n(s ?? [])),
|
|
10
10
|
[o, n]
|
|
11
11
|
), /* @__PURE__ */ F.jsx(x, { ...e, children: c.join(" ") });
|
|
12
|
-
},
|
|
12
|
+
}, W = ({
|
|
13
13
|
onDrag: e,
|
|
14
14
|
triggers: o = [["MouseLeft"], ["MouseRight"]],
|
|
15
15
|
bound: c,
|
|
@@ -39,37 +39,37 @@ const Q = (e) => {
|
|
|
39
39
|
}, ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40
40
|
__proto__: null,
|
|
41
41
|
ALPHANUMERIC_KEYS: b,
|
|
42
|
-
ALPHANUMERIC_KEYS_SET:
|
|
43
|
-
KEYS:
|
|
44
|
-
MOUSE_KEYS:
|
|
45
|
-
Provider:
|
|
46
|
-
Status:
|
|
42
|
+
ALPHANUMERIC_KEYS_SET: K,
|
|
43
|
+
KEYS: M,
|
|
44
|
+
MOUSE_KEYS: S,
|
|
45
|
+
Provider: y,
|
|
46
|
+
Status: V,
|
|
47
47
|
Text: R,
|
|
48
48
|
compareModeConfigs: _,
|
|
49
49
|
determineMode: C,
|
|
50
50
|
diff: T,
|
|
51
|
-
eventKey:
|
|
52
|
-
filter:
|
|
53
|
-
flattenConfig:
|
|
54
|
-
isAlphanumericKey:
|
|
55
|
-
keyZ:
|
|
56
|
-
keyboardKey:
|
|
57
|
-
match:
|
|
58
|
-
matchCallback:
|
|
59
|
-
mouseKey:
|
|
51
|
+
eventKey: H,
|
|
52
|
+
filter: L,
|
|
53
|
+
flattenConfig: h,
|
|
54
|
+
isAlphanumericKey: j,
|
|
55
|
+
keyZ: v,
|
|
56
|
+
keyboardKey: O,
|
|
57
|
+
match: Z,
|
|
58
|
+
matchCallback: k,
|
|
59
|
+
mouseKey: A,
|
|
60
60
|
mouseKeyZ: Y,
|
|
61
61
|
purge: w,
|
|
62
62
|
purgeMouse: P,
|
|
63
63
|
toSymbols: U,
|
|
64
|
-
triggerZ:
|
|
64
|
+
triggerZ: I,
|
|
65
65
|
use: E,
|
|
66
66
|
useContext: d,
|
|
67
|
-
useDrag:
|
|
68
|
-
useFlattenedMemoConfig:
|
|
69
|
-
useHeld:
|
|
70
|
-
useHeldRef:
|
|
67
|
+
useDrag: W,
|
|
68
|
+
useFlattenedMemoConfig: N,
|
|
69
|
+
useHeld: z,
|
|
70
|
+
useHeldRef: $
|
|
71
71
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72
72
|
export {
|
|
73
73
|
ee as e,
|
|
74
|
-
|
|
74
|
+
W as u
|
|
75
75
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { aa as i, ab as y, ac as I, ad as b, ae as M, af as A, ag as E, ah as _, ai as g, aj as j } from "./symbols-
|
|
1
|
+
import { aa as i, ab as y, ac as I, ad as b, ae as M, af as A, ag as E, ah as _, ai as g, aj as j } from "./symbols-5jPiWw_d.js";
|
|
2
2
|
import { useCallback as s } from "react";
|
|
3
3
|
import { u as w } from "./useKeysData-B1kiZOOw.js";
|
|
4
|
-
import "./css-
|
|
5
|
-
import { g as d } from "./eraser-
|
|
4
|
+
import "./css-Dl9aM7Jz.js";
|
|
5
|
+
import { g as d } from "./eraser-CZknVTjw.js";
|
|
6
6
|
const x = ({ retrieve: a, pageSize: r = 10 }) => {
|
|
7
7
|
const n = s(() => {
|
|
8
8
|
a(
|
|
@@ -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, b as p, t as u, c as m, d as b } from "./symbols-
|
|
3
|
-
import { f as c } from "./fontString-
|
|
1
|
+
import { S as r, e as a, f as i, t as n } from "./eraser-CZknVTjw.js";
|
|
2
|
+
import { u as o, P as S, b as p, t as u, c as m, d as b } from "./symbols-5jPiWw_d.js";
|
|
3
|
+
import { f as c } from "./fontString-Bm52S4Lo.js";
|
|
4
4
|
const f = (t) => {
|
|
5
5
|
const { theme: e } = o(), s = e.typography[t];
|
|
6
6
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./eraser-
|
|
1
|
+
"use strict";const e=require("./eraser-CLWNvWDn.cjs"),i=require("./symbols-DzAWrATO.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,COMPONENT_SIZE_LEVELS:e.COMPONENT_SIZE_LEVELS,DateTime:i.DateTime,Editable:i.Editable,LEVELS:e.LEVELS,LEVEL_COMPONENT_SIZES:e.LEVEL_COMPONENT_SIZES,MaybeEditable:i.MaybeEditable,Symbols:i.Symbols,Text:i.Text,asyncEdit:i.asyncEdit,dimensions:e.dimensions,dimensionsFromMetrics:e.dimensionsFromMetrics,downLevel:e.downLevel,edit:i.edit,isSquare:i.isSquare,levelZ:e.levelZ,specZ:e.specZ,weightZ:e.weightZ},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e } from "./symbols-
|
|
2
|
-
import { T as o } from "./Toggle-
|
|
1
|
+
import { B as e } from "./symbols-5jPiWw_d.js";
|
|
2
|
+
import { T as o } from "./Toggle-1E6vrl6G.js";
|
|
3
3
|
const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as r, B as u, l as g, F as x, p as b, m as j } from "./symbols-
|
|
1
|
+
import { k as r, B as u, l as g, F as x, p as b, m as j } from "./symbols-5jPiWw_d.js";
|
|
2
2
|
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import { A as v } from "./Animated-
|
|
4
|
-
import { C as s } from "./css-
|
|
3
|
+
import { A as v } from "./Animated-KCUNFDvN.js";
|
|
4
|
+
import { C as s } from "./css-Dl9aM7Jz.js";
|
|
5
5
|
const C = ({
|
|
6
6
|
onClick: l,
|
|
7
7
|
className: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./symbols-
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./symbols-DzAWrATO.cjs"),n=require("./css-9yccD6t_.cjs");require("./eraser-CLWNvWDn.cjs");require("react");require("react-dom");const b=t=>r.jsxRuntimeExports.jsx(e.Boolean,{inputType:"checkbox",...t}),g=({className:t,variant:i="error",...s})=>r.jsxRuntimeExports.jsx(e.Text,{className:n.CSS(n.CSS.B("input-help-text"),n.CSS.BM("input-help-text",i),t),level:"small",...s}),R=({className:t,required:i=!1,children:s,...l})=>r.jsxRuntimeExports.jsxs("label",{className:n.CSS(n.CSS.B("input-label"),t),...l,children:[s," ",i&&r.jsxRuntimeExports.jsx("span",{className:n.CSS.B("required-indicator"),children:"*"})]}),y=(t,i="y")=>t??(n.g.construct(i)==="y"?"stretch":"center"),B=({label:t,showLabel:i=!0,helpText:s,direction:l,x:c,y:x,className:m,children:u,required:S,align:d,gap:C="small",padHelpText:o=!1,status:a,showHelpText:h=!0,...f})=>{const j=e.parseDirection(l,c,x,!1);let p;const D=h&&s!=null&&s.length>0,E=i&&t!=null&&t.length>0;return!D&&!E?r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:u}):(j==="x"?p=r.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:"small",children:[u,h&&(o||s!=null&&s.length>0)&&r.jsxRuntimeExports.jsx(g,{variant:a,children:s})]}):p=r.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:1/3,align:"stretch",children:[u,(o||s!=null&&s.length>0)&&r.jsxRuntimeExports.jsx(g,{variant:a,children:s})]}),r.jsxRuntimeExports.jsxs(e.Box,{className:n.CSS(n.CSS.BE("input","item"),m),direction:j,gap:C,align:y(d,j),...f,children:[E&&r.jsxRuntimeExports.jsx(R,{required:S,children:t}),p]}))},T=({ref:t,value:i,style:s,onChange:l,className:c,onFocus:x,selectOnFocus:m=!1,variant:u="outlined",sharp:S=!1,children:d,wrap:C,...o})=>r.jsxRuntimeExports.jsx("textarea",{style:s,className:n.CSS(n.CSS.B("textarea"),n.CSS.BM("textarea",u),n.CSS.sharp(S),c),ref:t,value:i,onChange:a=>l(a.target.value.replace(/\n/g,"")),onFocus:a=>{m&&a.target.select(),x?.(a)},...o}),q=Object.freeze(Object.defineProperty({__proto__:null,Calendar:e.Calendar,Checkbox:b,Date:e.Date,DateTime:e.DateTime$1,DragButton:e.DragButton,HelpText:g,Item:B,Label:R,Numeric:e.Numeric,Switch:e.Switch$1,Text:e.Text$2,TextArea:T,Time:e.Time,TimeSelector:e.TimeSelector,combineDateAndTimeValue:e.combineDateAndTimeValue,createTimeList:e.createTimeList,useDate:e.useDate,useTime:e.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=B;exports.external=q;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { C as e } from "./css-
|
|
3
|
-
import { o as i, B as m, T as x } from "./symbols-
|
|
2
|
+
import { C as e } from "./css-Dl9aM7Jz.js";
|
|
3
|
+
import { o as i, B as m, T as x } from "./symbols-5jPiWw_d.js";
|
|
4
4
|
import { createContext as u, use as d } from "react";
|
|
5
|
-
import { a as p } from "./eraser-
|
|
5
|
+
import { a as p } from "./eraser-CZknVTjw.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const f = ({ children: t = [], ...r }) => /* @__PURE__ */ a.jsx(
|
|
8
8
|
i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-CITbqOLs.cjs"),o=require("./css-
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-CITbqOLs.cjs"),o=require("./css-9yccD6t_.cjs"),x=require("react"),a=require("./symbols-DzAWrATO.cjs"),P=require("./eraser-CLWNvWDn.cjs");require("react-dom");require("./Menu-BPH8apK8.cjs");const d=require("zod"),w=x.createContext({tabs:[]}),z=w,y=()=>x.use(w),O="tabs-selector",L=({className:r,altColor:t=!1,size:e="medium",direction:l="x",contextMenu:n,addTooltip:c,...u})=>{const{tabs:S,selected:j,onSelect:b,onClose:B,closable:g,onDragEnd:v,onDragStart:D,onDrop:R,onRename:E,onCreate:f}=y(),h=a.useContextMenu(),[N,C]=x.useState(!1);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[n!=null&&s.jsxRuntimeExports.jsx(a.ContextMenu,{style:{height:"fit-content"},...h,menu:n}),s.jsxRuntimeExports.jsxs(a.Box,{className:o.CSS(o.CSS.B(O),r,h.className,N&&o.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:l,onContextMenu:h.open,onDrop:R,...u,children:[s.jsxRuntimeExports.jsxs(a.Box,{direction:l,className:o.CSS.BE(O,"tabs"),empty:!0,children:[S.map(p=>s.jsxRuntimeExports.jsx(J,{selected:j,altColor:t,onSelect:b,onClose:B,onDragStart:D,onDragEnd:v,onRename:E,closable:p.closable??g,size:e,...p},p.tabKey)),R!=null&&s.jsxRuntimeExports.jsx(a.Box,{onDragOver:()=>C(!0),onDragLeave:()=>C(!1),onDragEnd:()=>C(!1),onDrop:()=>C(!1),grow:!0})]}),f!=null&&s.jsxRuntimeExports.jsx(a.Box,{className:o.CSS.BE(O,"actions"),children:s.jsxRuntimeExports.jsx(a.Button,{size:e,sharp:!0,onClick:f,tooltip:c,variant:"text",children:s.jsxRuntimeExports.jsx(a.Add,{})})})]})]})},X=({unsavedChanges:r,...t})=>{const e=s.jsxRuntimeExports.jsx(a.Close,{...t});return r?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(a.Circle,{}),e]}):e},G=r=>{const t=o.Ho.construct(r.target.closest(".pluto-tabs-selector__btn")),e=o.K.construct(r);return o.C.Scale.scale(o.Ho.left(t),o.Ho.right(t)).scale(0,1).pos(e.x)<.5?"left":"right"},$=({loading:r,icon:t,level:e="p"})=>(r&&(t=s.jsxRuntimeExports.jsx(a.Loading,{})),a.resolve(t,{className:o.CSS.BE(O,"icon"),style:{color:o.CSS.colorVar(9),height:o.CSS.levelSizeVar(e),width:o.CSS.levelSizeVar(e)}})),J=({selected:r,altColor:t=!1,onSelect:e,onClose:l,tabKey:n,name:c,onDragStart:u,onDragEnd:S,onRename:j,closable:b=!0,icon:B,size:g,editable:v=!0,unsavedChanges:D=!1,loading:R=!1,onDrop:E})=>{const f=x.useCallback(i=>u?.(i,{tabKey:n,name:c}),[u,n,c]),h=x.useCallback(i=>S?.(i,{tabKey:n,name:c}),[S,n,c]),N=x.useCallback(i=>{i.preventDefault(),i.stopPropagation(),l?.(n)},[l,n]),C=x.useCallback(()=>e?.(n),[e,n]),[p,m]=x.useState(null),T=x.useCallback(i=>{m(G(i))},[m,E]),_=x.useCallback(i=>{E?.(i),m(null)},[E,m]),k=r===n,F=P.COMPONENT_SIZE_LEVELS[g];return s.jsxRuntimeExports.jsxs(a.Button,{el:"div",size:g,id:n,variant:"text",sharp:!0,className:o.CSS(a.CONTEXT_TARGET,k&&a.CONTEXT_SELECTED,o.CSS.selected(k),o.CSS.altColor(t),b&&l!=null&&o.CSS.M("closable"),o.CSS.editable(v&&j!=null),p!=null&&o.CSS.M("drag-over"),p!=null&&o.CSS.loc(p)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:k,onClick:C,onDragOver:T,onDrop:_,onDragLeave:()=>m(null),onDragStart:f,onDragEnd:i=>{m(null),h(i)},bordered:!1,rounded:!1,children:[s.jsxRuntimeExports.jsx($,{loading:R,icon:B,level:F}),s.jsxRuntimeExports.jsx(Q,{name:c,tabKey:n,onRename:j,editable:v,level:P.COMPONENT_SIZE_LEVELS[g]}),b&&l!=null&&s.jsxRuntimeExports.jsx(a.Button,{"aria-label":"pluto-tabs__close",onClick:N,className:o.CSS.E("close"),variant:"text",sharp:!0,children:s.jsxRuntimeExports.jsx(X,{unsavedChanges:D})})]})},Q=({onRename:r,name:t,tabKey:e,editable:l=!0,level:n})=>r==null||!l?s.jsxRuntimeExports.jsx(a.Text,{overflow:"ellipsis",level:n,children:t}):s.jsxRuntimeExports.jsx(a.Editable,{level:n,id:o.CSS.B(`tab-${e}`),onChange:c=>r?.(e,c),value:t,overflow:"ellipsis"}),q=(r="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===r)!=null?r:t[t.length-1]?.tabKey},M=(r,t,e)=>{if(t=t.trim(),t.length===0)return e;const l=e.find(n=>n.tabKey===r);return l==null||l.name===t?e:e.map(n=>n.tabKey===r?{...n,name:t}:n)},I=({tabs:r,content:t,selected:e,onSelect:l})=>{const[n,c]=P.usePurePassthrough({initial:e??r[0]?.tabKey??"",value:e,onChange:l}),u=a.useSyncedRef(e??n),S=x.useCallback(j=>{c(j),u.current==null&&l?.(j)},[n,l]);return{tabs:r,selected:n,content:t,onSelect:S}},V=({id:r,content:t,children:e,onSelect:l,selected:n,selectedAltColor:c,closable:u,tabs:S,onClose:j,onDragStart:b,onDragEnd:B,onCreate:g,onRename:v,emptyContent:D,className:R,onDragOver:E,onDrop:f,contextMenu:h,addTooltip:N,size:C="medium",direction:p="y",x:m,y:T,..._})=>s.jsxRuntimeExports.jsx(a.Box,{id:r,empty:!0,className:o.CSS(o.CSS.B("tabs"),R),direction:p,x:m,y:T,onDragOver:E,onDrop:f,..._,children:s.jsxRuntimeExports.jsxs(z,{value:{tabs:S,emptyContent:D,selected:n,closable:u,content:e??t,onSelect:l,onClose:j,onDragStart:b,onDragEnd:B,onRename:v,onCreate:g,onDrop:f},children:[s.jsxRuntimeExports.jsx(L,{size:C,direction:o.g.swap(p),altColor:c,contextMenu:h,addTooltip:N}),s.jsxRuntimeExports.jsx(Z,{})]})}),Z=()=>{const{tabs:r,selected:t,content:e,emptyContent:l,onSelect:n}=y();let c=null;const u=r.find(S=>S.tabKey===t);return t==null||u==null?c=l??null:e!=null?typeof e=="function"?c=e(u):c=e:u.content!=null&&(c=u.content),s.jsxRuntimeExports.jsx("div",{className:o.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:c})},H=d.z.object({tabKey:d.z.string(),name:d.z.string(),closable:d.z.boolean().optional(),icon:d.z.unknown().optional(),editable:d.z.boolean().optional(),visible:d.z.boolean().optional(),unsavedChanges:d.z.boolean().optional(),loading:d.z.boolean().optional()}),A=H.extend({content:d.z.unknown().optional()}),U=Object.freeze(Object.defineProperty({__proto__:null,Content:Z,Provider:z,Selector:L,Tabs:V,rename:M,resetSelection:q,specZ:H,tabZ:A,useContext:y,useStatic:I},Symbol.toStringTag,{value:"Module"}));exports.Tabs=V;exports.external=U;exports.rename=M;exports.resetSelection=q;exports.tabZ=A;exports.useStatic=I;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as T, C as i } from "./css-
|
|
2
|
-
import { g as A, x as F } from "./eraser-
|
|
1
|
+
import { c as T, C as i } from "./css-Dl9aM7Jz.js";
|
|
2
|
+
import { g as A, x as F } from "./eraser-CZknVTjw.js";
|
|
3
3
|
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
4
|
-
import { A as G } from "./Animated-
|
|
5
|
-
import { ak as z, al as K, am as U, an as L, a9 as Y, n as J, ae as Q } from "./symbols-
|
|
4
|
+
import { A as G } from "./Animated-KCUNFDvN.js";
|
|
5
|
+
import { ak as z, al as K, am as U, an as L, a9 as Y, n as J, ae as Q } from "./symbols-5jPiWw_d.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 = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./symbols-
|
|
1
|
+
"use strict";const e=require("./symbols-DzAWrATO.cjs"),t=require("./jsx-runtime-CITbqOLs.cjs");require("./css-9yccD6t_.cjs");const a=require("./Toggle-BHiPL61M.cjs");require("react");const m=require("./useKeysData-G9Mk3mA6.cjs");require("./eraser-CLWNvWDn.cjs");require("react-dom");const l=({keys:s,value:n,onChange:o,allowNone:i,multiple:u,...x})=>{const j=m.useKeysData(s);return t.jsxRuntimeExports.jsx(e.Frame$1,{closeDialogOnSelect:!1,...j,allowNone:i,multiple:u,value:n,onChange:o,children:t.jsxRuntimeExports.jsx(e.Box,{pack:!0,...x})})},r=({itemKey:s,...n})=>{const{setSelected:o}=e.useContext$2(),{selected:i,onSelect:u}=e.useItemState(s);return t.jsxRuntimeExports.jsx(a.Toggle,{...n,onChange:u,value:i,onContextMenu:x=>{o([s]),x.preventDefault()}})},c=({value:s,...n})=>t.jsxRuntimeExports.jsxs(l,{...n,value:s,keys:e.ALIGNMENTS,children:[t.jsxRuntimeExports.jsx(r,{itemKey:"start",children:t.jsxRuntimeExports.jsx(e.TextAlign.Left,{})}),t.jsxRuntimeExports.jsx(r,{itemKey:"center",children:t.jsxRuntimeExports.jsx(e.TextAlign.Center,{})}),t.jsxRuntimeExports.jsx(r,{itemKey:"end",children:t.jsxRuntimeExports.jsx(e.TextAlign.Right,{})})]}),p=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Box:e.Box,JUSTIFICATIONS:e.JUSTIFICATIONS,SelectAlignment:c,alignmentZ:e.alignmentZ,justificationZ:e.justificationZ,parseDirection:e.parseDirection,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.Button=r;exports.Buttons=l;exports.SelectAlignment=c;exports.external=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./symbols-
|
|
1
|
+
"use strict";const e=require("./symbols-DzAWrATO.cjs"),E=require("./jsx-runtime-CITbqOLs.cjs"),u=require("react"),o=require("./css-9yccD6t_.cjs");require("./eraser-CLWNvWDn.cjs");const K=t=>{const{listen:i}=e.useContext$3(),[g,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),E.jsxRuntimeExports.jsx(e.Text,{...t,children:g.join(" ")})},f=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:g,loose:l=!1})=>{const r=u.useRef(null),a=u.useRef(o.K.ZERO),d=u.useCallback(s=>{const n=o.K.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.Ho.construct(a.current,n),cursor:n,triggers:c,stage:"during"})},[t]),m=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.Ho.construct(c),...s}),window.addEventListener("mousemove",d),r.current=s,a.current=c):n==="end"&&r.current!=null&&(t({box:o.Ho.construct(a.current,c),...s}),window.removeEventListener("mousemove",d),r.current=null,a.current=o.K.ZERO)},[t]);e.use$1({triggers:i,callback:m,region:g,loose:l})},y=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,Provider:e.Provider$1,Status:K,Text:e.Text$1,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,isAlphanumericKey:e.isAlphanumericKey,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:e.toSymbols,triggerZ:e.triggerZ,use:e.use$1,useContext:e.useContext$3,useDrag:f,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:e.useHeld,useHeldRef:e.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=y;exports.useDrag=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./symbols-
|
|
1
|
+
"use strict";const e=require("./symbols-DzAWrATO.cjs"),d=require("./jsx-runtime-CITbqOLs.cjs"),t=require("./Menu-BPH8apK8.cjs"),n=require("./css-9yccD6t_.cjs"),_=({itemKey:o,className:s,onClick:r,size:u,...c})=>{const{onClick:l,selected:C,level:i="p",gap:x,background:T}=t.useContext(),a=S=>{l(o),r?.(S)},E=C===o;return d.jsxRuntimeExports.jsx(e.Button,{contrast:T,level:i,overflow:"nowrap",onClick:a,variant:"text",className:n.CSS(n.CSS.B("menu-item"),n.CSS.selected(E),s),size:u,gap:x,...c})},M=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:e.CONTEXT_SELECTED,CONTEXT_TARGET:e.CONTEXT_TARGET,ContextMenu:e.ContextMenu,Divider:t.Divider,Item:_,Menu:t.Menu,useContext:t.useContext,useContextMenu:e.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.external=M;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { C as r,
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { j as
|
|
5
|
-
import { C as M, y as re } from "./eraser-
|
|
2
|
+
import { C as r, H as w, K as X, a as q, g as G } from "./css-Dl9aM7Jz.js";
|
|
3
|
+
import { createContext as $, use as z, useState as I, useCallback as C } from "react";
|
|
4
|
+
import { j as J, h as Q, o as T, B as k, ao as U, g as W, f as Y, ap as K, T as ee, E as te, aq as ne, ar as oe, al as se, an as le } from "./symbols-5jPiWw_d.js";
|
|
5
|
+
import { C as M, y as re } from "./eraser-CZknVTjw.js";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
import "./Menu-
|
|
7
|
+
import "./Menu-BFD8DPDp.js";
|
|
8
8
|
import { z as g } from "zod";
|
|
9
|
-
const V =
|
|
9
|
+
const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
10
10
|
className: s,
|
|
11
11
|
altColor: t = !1,
|
|
12
12
|
size: e = "medium",
|
|
@@ -26,7 +26,7 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
26
26
|
onDrop: E,
|
|
27
27
|
onRename: m,
|
|
28
28
|
onCreate: v
|
|
29
|
-
} = L(), j =
|
|
29
|
+
} = L(), j = J(), [O, f] = I(!1);
|
|
30
30
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
31
31
|
n != null && /* @__PURE__ */ o.jsx(
|
|
32
32
|
Q,
|
|
@@ -154,7 +154,7 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
154
154
|
m?.(i), x(null);
|
|
155
155
|
},
|
|
156
156
|
[m, x]
|
|
157
|
-
), y = s === n,
|
|
157
|
+
), y = s === n, H = M[h];
|
|
158
158
|
return /* @__PURE__ */ o.jsxs(
|
|
159
159
|
k,
|
|
160
160
|
{
|
|
@@ -190,7 +190,7 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
190
190
|
bordered: !1,
|
|
191
191
|
rounded: !1,
|
|
192
192
|
children: [
|
|
193
|
-
/* @__PURE__ */ o.jsx(ie, { loading: E, icon: D, level:
|
|
193
|
+
/* @__PURE__ */ o.jsx(ie, { loading: E, icon: D, level: H }),
|
|
194
194
|
/* @__PURE__ */ o.jsx(
|
|
195
195
|
de,
|
|
196
196
|
{
|
|
@@ -324,12 +324,12 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
324
324
|
addTooltip: O
|
|
325
325
|
}
|
|
326
326
|
),
|
|
327
|
-
/* @__PURE__ */ o.jsx(
|
|
327
|
+
/* @__PURE__ */ o.jsx(A, {})
|
|
328
328
|
]
|
|
329
329
|
}
|
|
330
330
|
)
|
|
331
331
|
}
|
|
332
|
-
),
|
|
332
|
+
), A = () => {
|
|
333
333
|
const { tabs: s, selected: t, content: e, emptyContent: l, onSelect: n } = L();
|
|
334
334
|
let a = null;
|
|
335
335
|
const c = s.find((u) => u.tabKey === t);
|
|
@@ -341,7 +341,7 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
341
341
|
children: a
|
|
342
342
|
}
|
|
343
343
|
);
|
|
344
|
-
},
|
|
344
|
+
}, F = g.object({
|
|
345
345
|
tabKey: g.string(),
|
|
346
346
|
name: g.string(),
|
|
347
347
|
closable: g.boolean().optional(),
|
|
@@ -350,17 +350,17 @@ const V = J({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
|
|
|
350
350
|
visible: g.boolean().optional(),
|
|
351
351
|
unsavedChanges: g.boolean().optional(),
|
|
352
352
|
loading: g.boolean().optional()
|
|
353
|
-
}), he =
|
|
353
|
+
}), he = F.extend({
|
|
354
354
|
content: g.unknown().optional()
|
|
355
355
|
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
356
356
|
__proto__: null,
|
|
357
|
-
Content:
|
|
357
|
+
Content: A,
|
|
358
358
|
Provider: R,
|
|
359
359
|
Selector: Z,
|
|
360
360
|
Tabs: xe,
|
|
361
361
|
rename: pe,
|
|
362
362
|
resetSelection: ge,
|
|
363
|
-
specZ:
|
|
363
|
+
specZ: F,
|
|
364
364
|
tabZ: he,
|
|
365
365
|
useContext: L,
|
|
366
366
|
useStatic: fe
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./symbols-
|
|
1
|
+
"use strict";const s=require("./symbols-DzAWrATO.cjs"),a=require("react"),d=require("./useKeysData-G9Mk3mA6.cjs");require("./css-9yccD6t_.cjs");const b=require("./eraser-CLWNvWDn.cjs"),y=({retrieve:n,pageSize:r=10})=>{const u=a.useCallback(()=>{n(({offset:o=-r,searchTerm:l="",...i})=>({...i,offset:o+r,limit:r,searchTerm:l}),{mode:"append"})},[n,r]),f=a.useCallback(o=>n(l=>({...l,searchTerm:o,offset:0,limit:r})),[n,r]);return{fetchMore:u,search:f}},h=({initialData:n}={})=>{const r=s.useInitializerRef(()=>{const e=new Map;return n==null||n.forEach(t=>e.set(t.key,t)),e}),u=s.useInitializerRef(()=>new Map),f=a.useCallback(e=>{const t=new Set(e);u.current.forEach((m,c)=>{t.has(m)&&c()})},[]),o=a.useCallback(e=>{const t=b.t.toArray(e),m=t.map(c=>c.key);t.forEach(c=>r.current.set(c.key,c)),f(m)},[]),l=a.useCallback(e=>{const t=b.t.toArray(e);t.forEach(m=>r.current.delete(m)),f(t)},[]),i=a.useCallback((e,t)=>t==null?()=>{}:(u.current.set(e,t),()=>{u.current.delete(e)}),[u]),C=a.useCallback(e=>{if(e!=null)return Array.isArray(e)?e.map(t=>r.current.get(t)).filter(t=>t!=null):r.current.get(e)},[]),I=a.useCallback(e=>r.current.has(e),[]);return{setItem:o,deleteItem:l,subscribe:i,getItem:C,hasItem:I}},k=Object.freeze(Object.defineProperty({__proto__:null,CoreFrame:s.CoreFrame,Frame:s.Frame$2,Item:s.Item,Items:s.Items,useData:s.useData,useItem:s.useItem,useKeysData:d.useKeysData,useMapData:h,usePager:y,useScroller:s.useScroller,useStaticData:s.useStaticData,useUtilContext:s.useUtilContext},Symbol.toStringTag,{value:"Module"}));exports.external=k;exports.usePager=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./css-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./css-9yccD6t_.cjs"),a=require("./symbols-DzAWrATO.cjs"),u=require("react"),x=require("./eraser-CLWNvWDn.cjs");require("react-dom");const S=({children:t=[],...s})=>o.jsxRuntimeExports.jsx(a.Box,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...s,children:t}),i=u.createContext({divided:!1,level:"h1"}),c=()=>u.use(i),d=({className:t,level:s="p",divided:r=!1,bordered:n=!0,...l})=>o.jsxRuntimeExports.jsx(i,{value:{level:s,divided:r},children:o.jsxRuntimeExports.jsx(a.Box,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),r&&e.CSS.BM("header","divided"),t),...l})}),j=({children:t="",className:s,onClick:r,...n})=>{const{level:l}=c();return o.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:x.LEVEL_COMPONENT_SIZES[l],onClick:r,className:e.CSS(e.CSS.B("header-button-title"),s),sharp:!0,...n,children:t})},m=({className:t,level:s,...r})=>{const{level:n}=c();return o.jsxRuntimeExports.jsx(a.Text,{className:e.CSS(e.CSS.BE("header","text"),t),level:s??n,gap:1.5,...r})},C=Object.freeze(Object.defineProperty({__proto__:null,Actions:S,ButtonTitle:j,Header:d,Title:m,useContext:c},Symbol.toStringTag,{value:"Module"}));exports.external=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./symbols-DzAWrATO.cjs"),t=require("./Toggle-BHiPL61M.cjs"),o=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Toggle:t.Toggle},Symbol.toStringTag,{value:"Module"}));exports.external=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, L as a, a as s, d as t, b as i, c as o, l as r, s as E, w as l } from "./eraser-
|
|
2
|
-
import { D as n, E as d, M as m, S, T as b, a as L, e as _, i as c } from "./symbols-
|
|
1
|
+
import { C as e, L as a, a as s, d as t, b as i, c as o, l as r, s as E, w as l } from "./eraser-CZknVTjw.js";
|
|
2
|
+
import { D as n, E as d, M as m, S, T as b, a as L, e as _, i as c } from "./symbols-5jPiWw_d.js";
|
|
3
3
|
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
COMPONENT_SIZE_LEVELS: e,
|