@synnaxlabs/pluto 0.32.0 → 0.32.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-NyYe8Svx.js → Animated-m1d-q2MY.js} +1 -1
- package/dist/{Animated-C_WGrQwR.cjs → Animated-vgeFXXXh.cjs} +1 -1
- package/dist/{Item-CcXMlZIY.js → Item-AKMko1DZ.js} +3 -3
- package/dist/{Item-DGKnKb6c.cjs → Item-CzgByHQ2.cjs} +1 -1
- package/dist/{Keyboard-i5fqTDMP.js → Keyboard-DWCElMA3.js} +1 -1
- package/dist/{Keyboard-87LPq07J.cjs → Keyboard-Dy7Q9I4w.cjs} +1 -1
- package/dist/Link-BLs4o2WZ.js +11 -0
- package/dist/Link-DAjbmQEI.cjs +1 -0
- package/dist/{List-B3WCj8GQ.cjs → List-C8Cd_qEK.cjs} +1 -1
- package/dist/{List-BjRQA8wb.js → List-CVxaH1Gv.js} +1 -1
- package/dist/{Text-XcCNQVZj.cjs → Text-DwK7WZwz.cjs} +1 -1
- package/dist/{Text-MNWCdS6X.js → Text-ZWBNDAJX.js} +2 -2
- package/dist/{Toggle-C1k6Tnpo.js → Toggle-BQtgHKds.js} +3120 -3116
- package/dist/{Toggle-CIXrEiVA.cjs → Toggle-Cu_t9VPe.cjs} +23 -23
- 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/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{external-DfIxCAg2.js → external-0qSQW-rW.js} +1 -1
- package/dist/{external-CDChKvhl.cjs → external-1AgJfGUo.cjs} +1 -1
- package/dist/{external-BUjAebk2.cjs → external-2HiPz4gN.cjs} +1 -1
- package/dist/{external-DmJZ_zIB.js → external-B22Cd5L_.js} +2 -2
- package/dist/{external-C2Ri5xWS.cjs → external-BAqZitjw.cjs} +1 -1
- package/dist/{external-FeE2ijEU.js → external-BGO9o6o7.js} +5 -5
- package/dist/{external-BryXmBqR.js → external-BIcOl3QR.js} +1 -1
- package/dist/{external-kSaQF2Vi.js → external-BSbQ1fB2.js} +2 -2
- package/dist/{external-CSyZPKK4.cjs → external-BVWCSwPk.cjs} +1 -1
- package/dist/{external-DAQPXD3z.cjs → external-Bcj4ayXg.cjs} +1 -1
- package/dist/{external-CDGv7k3p.js → external-BiVAfJDo.js} +9 -9
- package/dist/{external-CIvyZ-Hc.js → external-BswSNc0P.js} +2 -2
- package/dist/{external-CmbBTupJ.js → external-BxSZ_pLZ.js} +1 -1
- package/dist/{external-DLa89w3J.cjs → external-CCY3TmGe.cjs} +1 -1
- package/dist/{external-cIvhYaqB.cjs → external-COZBfuIe.cjs} +1 -1
- package/dist/{external-i13duWIn.cjs → external-CR7eRU7I.cjs} +1 -1
- package/dist/{external-CN-OhewX.cjs → external-CV8q9dy8.cjs} +1 -1
- package/dist/{external-CbjdO9a0.js → external-CWLnWzN8.js} +32 -32
- package/dist/{external-BI9DOL9G.js → external-Co3i1qex.js} +24 -24
- package/dist/{external-DE4i3A2z.cjs → external-Cqh9AY74.cjs} +1 -1
- package/dist/{external-CNrnZ1L5.js → external-CyqJB_UP.js} +13 -13
- package/dist/{external-DjE3je-g.cjs → external-DNl6ut74.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +187 -187
- 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/src/button/Link.d.ts +2 -1
- package/dist/src/button/Link.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/package.json +5 -5
- package/dist/Link-B83uKMKM.cjs +0 -1
- package/dist/Link-DlC5z0Wm.js +0 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { F as re, A as k, e as ae, n as se } from "./aggregator-f5OfPmNc.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { a0 as le, a1 as oe,
|
|
3
|
+
import { a0 as le, a1 as oe, U as ie, _ as ce, d as de, C as fe, a2 as ue, a3 as he, a4 as pe, V as me, B as ge, a5 as X, a6 as xe, a7 as ye, a8 as Ce, a9 as Ee } from "./Toggle-BQtgHKds.js";
|
|
4
4
|
import { memo as Ne, useState as be, useCallback as b, useMemo as Te } from "react";
|
|
5
|
-
import { L as _e } from "./Link-
|
|
6
|
-
import { A as ve } from "./Animated-
|
|
5
|
+
import { L as _e } from "./Link-BLs4o2WZ.js";
|
|
6
|
+
import { A as ve } from "./Animated-m1d-q2MY.js";
|
|
7
7
|
import { C as u } from "./css-B8RwzK24.js";
|
|
8
8
|
import "./Pack-BrxYNh7B.js";
|
|
9
|
-
import { L as Ie } from "./List-
|
|
10
|
-
const
|
|
9
|
+
import { L as Ie } from "./List-CVxaH1Gv.js";
|
|
10
|
+
const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
11
11
|
t && e.sort((n, a) => re.stringsWithNumbers(n.name, a.name));
|
|
12
12
|
let r = !1;
|
|
13
13
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -15,7 +15,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
15
15
|
a.forcePosition != null && n !== a.forcePosition && (r = !0, e.splice(n, 1), e.splice(a.forcePosition, 0, a));
|
|
16
16
|
}
|
|
17
17
|
return r ? H(e, !1) : e;
|
|
18
|
-
},
|
|
18
|
+
}, U = ({
|
|
19
19
|
nodes: e,
|
|
20
20
|
expanded: t,
|
|
21
21
|
depth: r = 0,
|
|
@@ -24,14 +24,14 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
24
24
|
r === 0 && n && (e = e.sort((s, o) => s.name.localeCompare(o.name)));
|
|
25
25
|
const a = [];
|
|
26
26
|
return e.forEach((s, o) => {
|
|
27
|
-
const i =
|
|
27
|
+
const i = Y(s, t);
|
|
28
28
|
a.push({ ...s, depth: r, expanded: i, index: o }), i && s.children != null && (s.children = H(s.children, n), a.push(
|
|
29
|
-
...
|
|
29
|
+
...U({ nodes: s.children, expanded: t, depth: r + 1, sort: n })
|
|
30
30
|
));
|
|
31
31
|
}), a;
|
|
32
32
|
}, Se = ({ tree: e, destination: t, keys: r }) => (r = k(r), r.forEach((n) => {
|
|
33
33
|
const a = T({ tree: e, key: n });
|
|
34
|
-
a != null && (z({ tree: e, keys: n }),
|
|
34
|
+
a != null && (z({ tree: e, keys: n }), q({ tree: e, destination: t, additions: a }));
|
|
35
35
|
}), e), z = ({ tree: e, keys: t }) => {
|
|
36
36
|
t = k(t);
|
|
37
37
|
const r = e.map((n) => n.key);
|
|
@@ -44,7 +44,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
44
44
|
o != null && (o.children = (s = o.children) == null ? void 0 : s.filter((i) => i.key !== n));
|
|
45
45
|
}
|
|
46
46
|
}), e;
|
|
47
|
-
},
|
|
47
|
+
}, q = ({ tree: e, destination: t, additions: r }) => {
|
|
48
48
|
r = k(r);
|
|
49
49
|
const n = T({ tree: e, key: t });
|
|
50
50
|
if (n == null) throw new Error(`Could not find node with key ${t}`);
|
|
@@ -121,10 +121,10 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
121
121
|
if (n != null) return n;
|
|
122
122
|
}
|
|
123
123
|
return null;
|
|
124
|
-
},
|
|
124
|
+
}, J = (e) => e.map((t) => ({ ...t, children: J(t.children ?? []) })), Q = (...e) => {
|
|
125
125
|
const t = [];
|
|
126
126
|
return e.forEach((r) => {
|
|
127
|
-
t.push(r), r.children != null && t.push(...
|
|
127
|
+
t.push(r), r.children != null && t.push(...Q(...r.children));
|
|
128
128
|
}), t;
|
|
129
129
|
}, M = "tree-item", Pe = [["Shift"]], Re = (e) => {
|
|
130
130
|
const {
|
|
@@ -138,7 +138,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
138
138
|
initial: [],
|
|
139
139
|
value: s,
|
|
140
140
|
onChange: o
|
|
141
|
-
}), v = Te(() =>
|
|
141
|
+
}), v = Te(() => U({ nodes: r, expanded: i, sort: a }), [r, i, a]), I = pe(v), L = me({ triggers: Pe }), R = b(
|
|
142
142
|
(f, { clicked: d }) => {
|
|
143
143
|
_(f);
|
|
144
144
|
const g = I.current.find((E) => E.key === d);
|
|
@@ -168,7 +168,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
168
168
|
nodes: v,
|
|
169
169
|
clearExpanded: S
|
|
170
170
|
};
|
|
171
|
-
},
|
|
171
|
+
}, K = Ne(
|
|
172
172
|
({
|
|
173
173
|
entry: e,
|
|
174
174
|
selected: t,
|
|
@@ -198,7 +198,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
198
198
|
), L != null && w.push(L);
|
|
199
199
|
const C = [];
|
|
200
200
|
i && C.push(/* @__PURE__ */ N.jsx(ie.Loading, { className: u.B("loading-indicator") }));
|
|
201
|
-
const [E, O] = be(!1), { startDrag: G, ...
|
|
201
|
+
const [E, O] = be(!1), { startDrag: G, ...Z } = ce({
|
|
202
202
|
type: "Tree.Item",
|
|
203
203
|
key: c,
|
|
204
204
|
canDrop: b(({ items: p, source: A }) => {
|
|
@@ -212,11 +212,11 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
212
212
|
(m) => p.includes(m.key)
|
|
213
213
|
);
|
|
214
214
|
if (p.includes(c)) {
|
|
215
|
-
const m = A.map(({ key: P, haulItems: B, depth:
|
|
216
|
-
{ type: M, key: P, data: { depth:
|
|
217
|
-
...(B == null ? void 0 : B.map((
|
|
218
|
-
...
|
|
219
|
-
data: { ...
|
|
215
|
+
const m = A.map(({ key: P, haulItems: B, depth: V }) => [
|
|
216
|
+
{ type: M, key: P, data: { depth: V } },
|
|
217
|
+
...(B == null ? void 0 : B.map((W) => ({
|
|
218
|
+
...W,
|
|
219
|
+
data: { ...W.data, depth: V }
|
|
220
220
|
}))) ?? []
|
|
221
221
|
]).flat();
|
|
222
222
|
return G(m, (P) => s == null ? void 0 : s(c, P));
|
|
@@ -261,7 +261,7 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
261
261
|
endIcon: C,
|
|
262
262
|
onDoubleClick: (p) => o == null ? void 0 : o(c, p),
|
|
263
263
|
href: S,
|
|
264
|
-
...
|
|
264
|
+
...Z
|
|
265
265
|
}, ne = S != null ? _e : ge;
|
|
266
266
|
return /* @__PURE__ */ N.jsx(ne, { className: u.BE("list", "item"), ...te, children: /* @__PURE__ */ N.jsx(
|
|
267
267
|
ue,
|
|
@@ -276,8 +276,8 @@ const Z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
276
276
|
) });
|
|
277
277
|
}
|
|
278
278
|
);
|
|
279
|
-
|
|
280
|
-
const $e = Ee(
|
|
279
|
+
K.displayName = "Tree.Item";
|
|
280
|
+
const $e = Ee(K), Oe = ({
|
|
281
281
|
nodes: e,
|
|
282
282
|
selected: t = [],
|
|
283
283
|
onSelect: r,
|
|
@@ -298,7 +298,7 @@ const $e = Ee(U), Oe = ({
|
|
|
298
298
|
loading: j,
|
|
299
299
|
...S
|
|
300
300
|
}) => {
|
|
301
|
-
const f = v ?
|
|
301
|
+
const f = v ? X.Virtual : X;
|
|
302
302
|
return /* @__PURE__ */ N.jsx(Ie, { data: e, emptyContent: h, children: /* @__PURE__ */ N.jsx(
|
|
303
303
|
xe,
|
|
304
304
|
{
|
|
@@ -326,22 +326,22 @@ const $e = Ee(U), Oe = ({
|
|
|
326
326
|
)
|
|
327
327
|
}
|
|
328
328
|
) });
|
|
329
|
-
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`),
|
|
329
|
+
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
330
330
|
__proto__: null,
|
|
331
|
-
DefaultItem:
|
|
331
|
+
DefaultItem: K,
|
|
332
332
|
HAUL_TYPE: M,
|
|
333
333
|
Tree: Oe,
|
|
334
334
|
asyncRename: Be,
|
|
335
|
-
deepCopy:
|
|
335
|
+
deepCopy: J,
|
|
336
336
|
findNode: T,
|
|
337
337
|
findNodeParent: $,
|
|
338
338
|
findNodes: je,
|
|
339
|
-
flatten:
|
|
340
|
-
getDescendants:
|
|
339
|
+
flatten: U,
|
|
340
|
+
getDescendants: Q,
|
|
341
341
|
moveNode: Se,
|
|
342
342
|
removeNode: z,
|
|
343
|
-
setNode:
|
|
344
|
-
shouldExpand:
|
|
343
|
+
setNode: q,
|
|
344
|
+
shouldExpand: Y,
|
|
345
345
|
sortAndSplice: H,
|
|
346
346
|
startRenaming: Ae,
|
|
347
347
|
updateNode: we,
|
|
@@ -349,5 +349,5 @@ const $e = Ee(U), Oe = ({
|
|
|
349
349
|
use: Re
|
|
350
350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
351
351
|
export {
|
|
352
|
-
|
|
352
|
+
Xe as e
|
|
353
353
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import {
|
|
3
|
-
import { cloneElement as w, createContext as
|
|
4
|
-
import { S as P, P as
|
|
5
|
-
import { C as o, g as
|
|
2
|
+
import { U as T, a4 as V, f as U, I as O, e as W, d as X, C as Z, i as G, af as q } from "./Toggle-BQtgHKds.js";
|
|
3
|
+
import { cloneElement as w, createContext as F, useCallback as N, useContext as H } from "react";
|
|
4
|
+
import { S as P, P as J } from "./Pack-BrxYNh7B.js";
|
|
5
|
+
import { C as o, g as Q } from "./css-B8RwzK24.js";
|
|
6
6
|
import { _ as Y, j as D, C as k } from "./aggregator-f5OfPmNc.js";
|
|
7
|
-
import "./Item-
|
|
7
|
+
import "./Item-AKMko1DZ.js";
|
|
8
8
|
import { z as p } from "zod";
|
|
9
9
|
const y = (n, s) => w(n, {
|
|
10
10
|
className: o(n.props.className, o.B("sub"), o.M(s))
|
|
@@ -58,7 +58,7 @@ const y = (n, s) => w(n, {
|
|
|
58
58
|
initial: e ?? ((u = n[0]) == null ? void 0 : u.tabKey) ?? "",
|
|
59
59
|
value: e,
|
|
60
60
|
onChange: l
|
|
61
|
-
}), c =
|
|
61
|
+
}), c = V(e ?? t), i = N(
|
|
62
62
|
(d) => {
|
|
63
63
|
a(d), c.current == null && (l == null || l(d));
|
|
64
64
|
},
|
|
@@ -70,7 +70,7 @@ const y = (n, s) => w(n, {
|
|
|
70
70
|
content: s,
|
|
71
71
|
onSelect: i
|
|
72
72
|
};
|
|
73
|
-
}, I =
|
|
73
|
+
}, I = F({ tabs: [] }), $ = I.Provider, M = () => H(I), le = ({
|
|
74
74
|
id: n,
|
|
75
75
|
content: s,
|
|
76
76
|
children: e,
|
|
@@ -103,7 +103,7 @@ const y = (n, s) => w(n, {
|
|
|
103
103
|
direction: _,
|
|
104
104
|
...j,
|
|
105
105
|
children: /* @__PURE__ */ r.jsxs(
|
|
106
|
-
|
|
106
|
+
$,
|
|
107
107
|
{
|
|
108
108
|
value: {
|
|
109
109
|
tabs: i,
|
|
@@ -121,25 +121,25 @@ const y = (n, s) => w(n, {
|
|
|
121
121
|
},
|
|
122
122
|
children: [
|
|
123
123
|
/* @__PURE__ */ r.jsx(
|
|
124
|
-
|
|
124
|
+
A,
|
|
125
125
|
{
|
|
126
126
|
size: h,
|
|
127
|
-
direction:
|
|
127
|
+
direction: Q.swap(_),
|
|
128
128
|
altColor: a,
|
|
129
129
|
contextMenu: x
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
|
-
/* @__PURE__ */ r.jsx(
|
|
132
|
+
/* @__PURE__ */ r.jsx(z, {})
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
}
|
|
137
|
-
),
|
|
137
|
+
), z = () => {
|
|
138
138
|
const { tabs: n, selected: s, content: e, emptyContent: l, onSelect: t } = M();
|
|
139
139
|
let a = null;
|
|
140
140
|
const c = n.find((i) => i.tabKey === s);
|
|
141
141
|
return s == null || c == null ? l ?? null : (e != null ? typeof e == "function" ? a = e(c) : a = e : c.content != null && (a = c.content), /* @__PURE__ */ r.jsx("div", { className: o.B("tabs-content"), onClick: () => t == null ? void 0 : t(s), children: a }));
|
|
142
|
-
}, f = "tabs-selector",
|
|
142
|
+
}, f = "tabs-selector", A = ({
|
|
143
143
|
className: n,
|
|
144
144
|
altColor: s = !1,
|
|
145
145
|
size: e = "medium",
|
|
@@ -158,7 +158,7 @@ const y = (n, s) => w(n, {
|
|
|
158
158
|
onDrop: B,
|
|
159
159
|
onRename: E,
|
|
160
160
|
onCreate: C
|
|
161
|
-
} = M(), g =
|
|
161
|
+
} = M(), g = U(), x = /* @__PURE__ */ r.jsxs(
|
|
162
162
|
P,
|
|
163
163
|
{
|
|
164
164
|
className: o(o.B(f), o.size(e), n),
|
|
@@ -226,7 +226,7 @@ const y = (n, s) => w(n, {
|
|
|
226
226
|
[l, t]
|
|
227
227
|
), g = N(() => e == null ? void 0 : e(t), [e, t]), x = n === t, h = b != null, _ = k[m];
|
|
228
228
|
return /* @__PURE__ */ r.jsxs(
|
|
229
|
-
|
|
229
|
+
J,
|
|
230
230
|
{
|
|
231
231
|
size: m,
|
|
232
232
|
id: t,
|
|
@@ -234,7 +234,7 @@ const y = (n, s) => w(n, {
|
|
|
234
234
|
o.BE(f, "btn"),
|
|
235
235
|
X,
|
|
236
236
|
u == null && o.BEM(f, "btn", "uneditable"),
|
|
237
|
-
x &&
|
|
237
|
+
x && Z,
|
|
238
238
|
o.selected(x),
|
|
239
239
|
o.altColor(s),
|
|
240
240
|
d && l != null && o.BEM(f, "btn", "closable"),
|
|
@@ -278,8 +278,8 @@ const y = (n, s) => w(n, {
|
|
|
278
278
|
tabKey: e,
|
|
279
279
|
editable: l = !0,
|
|
280
280
|
...t
|
|
281
|
-
}) => n == null || !l ? /* @__PURE__ */ r.jsx(
|
|
282
|
-
|
|
281
|
+
}) => n == null || !l ? /* @__PURE__ */ r.jsx(G, { noWrap: !0, ...t, children: s }) : /* @__PURE__ */ r.jsx(
|
|
282
|
+
q,
|
|
283
283
|
{
|
|
284
284
|
id: o.B(`tab-${e}`),
|
|
285
285
|
onChange: (a) => n(e, a),
|
|
@@ -287,25 +287,25 @@ const y = (n, s) => w(n, {
|
|
|
287
287
|
noWrap: !0,
|
|
288
288
|
...t
|
|
289
289
|
}
|
|
290
|
-
),
|
|
290
|
+
), L = p.object({
|
|
291
291
|
tabKey: p.string(),
|
|
292
292
|
name: p.string(),
|
|
293
293
|
closable: p.boolean().optional(),
|
|
294
294
|
icon: p.unknown().optional(),
|
|
295
295
|
editable: p.boolean().optional(),
|
|
296
296
|
visible: p.boolean().optional()
|
|
297
|
-
}), ae =
|
|
297
|
+
}), ae = L.extend({
|
|
298
298
|
content: p.unknown().optional()
|
|
299
299
|
}), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
300
300
|
__proto__: null,
|
|
301
|
-
Content:
|
|
301
|
+
Content: z,
|
|
302
302
|
Context: I,
|
|
303
|
-
Provider:
|
|
304
|
-
Selector:
|
|
303
|
+
Provider: $,
|
|
304
|
+
Selector: A,
|
|
305
305
|
Tabs: le,
|
|
306
306
|
rename: ne,
|
|
307
307
|
resetSelection: te,
|
|
308
|
-
specZ:
|
|
308
|
+
specZ: L,
|
|
309
309
|
tabZ: ae,
|
|
310
310
|
useContext: M,
|
|
311
311
|
useStatic: se
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-Cu_t9VPe.cjs"),e=require("./Item-CzgByHQ2.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:t.CONTEXT_SELECTED,CONTEXT_TARGET:t.CONTEXT_TARGET,ContextMenu:t.ContextMenu,CoreItem:e.CoreItem,Divider:e.Divider,Item:e.Item,ItemIcon:e.ItemIcon,ItemLink:e.ItemLink,Menu:e.Menu,MenuContext:e.MenuContext,useContextMenu:t.useContextMenu,useMenuContext:e.useMenuContext},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as E, L as A, g as M, h as T, i as N, s as P } from "./aggregator-f5OfPmNc.js";
|
|
2
|
-
import { aa as _, ab as C, a5 as v, a6 as O, $ as w, a9 as B, ac as z, B as L,
|
|
3
|
-
import { K as J } from "./Keyboard-
|
|
2
|
+
import { aa as _, ab as C, a5 as v, a6 as O, $ as w, a9 as B, ac as z, B as L, X as H, ad as K, ae as X, af as $, ag as F, a2 as I, h as R, i as U, ah as V, a8 as Z, a7 as W, ai as q, aj as G } from "./Toggle-BQtgHKds.js";
|
|
3
|
+
import { K as J } from "./Keyboard-DWCElMA3.js";
|
|
4
4
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
5
5
|
import { useState as Q, useEffect as Y, useCallback as ee } from "react";
|
|
6
6
|
import { P as g } from "./Pack-BrxYNh7B.js";
|
|
7
|
-
import { A as se } from "./Animated-
|
|
7
|
+
import { A as se } from "./Animated-m1d-q2MY.js";
|
|
8
8
|
import { C as p } from "./css-B8RwzK24.js";
|
|
9
|
-
import { L as te } from "./List-
|
|
9
|
+
import { L as te } from "./List-CVxaH1Gv.js";
|
|
10
10
|
const le = [], ne = ({
|
|
11
11
|
data: e,
|
|
12
12
|
emptyContent: s,
|
|
@@ -229,20 +229,20 @@ const le = [], ne = ({
|
|
|
229
229
|
__proto__: null,
|
|
230
230
|
ComponentSizeLevels: E,
|
|
231
231
|
CoreDateTime: K,
|
|
232
|
-
DateTime:
|
|
233
|
-
Editable:
|
|
232
|
+
DateTime: X,
|
|
233
|
+
Editable: $,
|
|
234
234
|
Keyboard: J,
|
|
235
235
|
LEVELS: A,
|
|
236
236
|
LevelComponentSizes: M,
|
|
237
|
-
Link:
|
|
238
|
-
MaybeEditable:
|
|
237
|
+
Link: F,
|
|
238
|
+
MaybeEditable: I,
|
|
239
239
|
SelectLevel: me,
|
|
240
|
-
Symbols:
|
|
241
|
-
Text:
|
|
242
|
-
WithIcon:
|
|
243
|
-
asyncEdit:
|
|
240
|
+
Symbols: R,
|
|
241
|
+
Text: U,
|
|
242
|
+
WithIcon: V,
|
|
243
|
+
asyncEdit: Z,
|
|
244
244
|
dimensions: T,
|
|
245
|
-
edit:
|
|
245
|
+
edit: W,
|
|
246
246
|
evalColor: q,
|
|
247
247
|
formatChildren: G,
|
|
248
248
|
levelZ: N,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./css-LxkguM_s.cjs"),l=require("./jsx-runtime-Cek9Ww4S.cjs"),r=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./css-LxkguM_s.cjs"),l=require("./jsx-runtime-Cek9Ww4S.cjs"),r=require("./Toggle-Cu_t9VPe.cjs"),b=require("react");require("./aggregator-q0CY7-QS.cjs");require("./Pack-C_SrDA3a.cjs");const d=({value:o,onChange:t,...u})=>{const i=s=>{s.hex==="transparent"&&t(e.ZERO),t(new e.Color(s.hex,s.rgb.a))};return l.jsxRuntimeExports.jsx(r.SketchPicker,{className:e.CSS.B("color-picker"),color:new e.Color(o).hex,onChange:i,presetColors:[],...u})},x="color",g=({value:o,onChange:t,className:u,size:i="medium",onVisibleChange:s,initialVisible:m,draggable:h=!0,...j})=>{const{visible:k,open:y,close:C}=r.use$2({onVisibleChange:s,initialVisible:m}),f=r.use().colors.gray.l0,c=new e.Color(o),w=r.useDraggingState(),S=b.useCallback(({items:a})=>{const[n]=r.filterByType(x,a);return n!=null&&n.key!==c.hex},[c.hex]),{startDrag:R,...E}=r.useDragAndDrop({type:"Color.Swatch",onDrop:({items:a})=>{const n=r.filterByType(x,a);return a.length>0&&(t==null||t(new e.Color(n[0].key))),n},canDrop:S}),p=l.jsxRuntimeExports.jsx(r.Button,{className:e.CSS(e.CSS.B("color-swatch"),e.CSS.size(i),c.contrast(f)>1.5&&c.a>.5&&e.CSS.M("no-border"),e.CSS.dropRegion(S(w)),u),draggable:h,onDragStart:()=>R([{type:x,key:c.hex}]),style:{backgroundColor:e.cssString(o)},variant:"text",onClick:y,size:i,tooltip:t!=null?l.jsxRuntimeExports.jsx(r.Text,{level:"small",children:"Click to change color"}):void 0,...E,...j});return t==null?p:l.jsxRuntimeExports.jsxs(r.Dialog,{close:C,visible:k,className:e.CSS.BE("color-swatch","dropdown"),keepMounted:!1,variant:"floating",zIndex:100,children:[p,l.jsxRuntimeExports.jsx(d,{value:o,onChange:t})]})},D=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:d,Swatch:g,ZERO:e.ZERO,crudeZ:e.crudeZ,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.Swatch=g;exports.external=D;
|
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-CV8q9dy8.cjs");exports.Header=e.external;
|
package/dist/header.js
CHANGED