@pstdio/ui 0.20.0 → 0.21.0
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/{MermaidComponent-AmAjWLPm.js → MermaidComponent-BVMyKttu.js} +2 -2
- package/dist/{MermaidComponent-AmAjWLPm.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
- package/dist/chat-ui.js +2 -6
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/data-table/build-columns.d.ts +1 -0
- package/dist/components/data-table/types.d.ts +1 -0
- package/dist/components/diff-viewer/code-editor.d.ts +2 -0
- package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
- package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
- package/dist/components/diff-viewer/index.d.ts +2 -0
- package/dist/components/param-editor/param-editor.types.d.ts +2 -0
- package/dist/components/tag-editor/tag-editor-row.d.ts +1 -0
- package/dist/components/tag-editor/tag-editor.types.d.ts +1 -0
- package/dist/components/tag-editor/tag-settings-panel.d.ts +1 -1
- package/dist/components/tree-list/tree-list-background.d.ts +8 -0
- package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
- package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
- package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
- package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
- package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
- package/dist/components/tree-list/tree-list.d.ts +2 -0
- package/dist/components/tree-list/tree-list.types.d.ts +13 -0
- package/dist/data-table.js +666 -643
- package/dist/data-table.js.map +1 -1
- package/dist/diff.js +799 -815
- package/dist/diff.js.map +1 -1
- package/dist/{edit-mode-data-table-4GMiDy75.js → edit-mode-data-table-D6NeiDJx.js} +3 -3
- package/dist/{edit-mode-data-table-4GMiDy75.js.map → edit-mode-data-table-D6NeiDJx.js.map} +1 -1
- package/dist/{editor-config-Dyh8n5A2.js → editor-config-D9OksZ93.js} +3 -3
- package/dist/{editor-config-Dyh8n5A2.js.map → editor-config-D9OksZ93.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1025 -1042
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-BcUZvGyY.js → kanban-renderer-toolbar-CpegGbwq.js} +2 -2
- package/dist/{kanban-renderer-toolbar-BcUZvGyY.js.map → kanban-renderer-toolbar-CpegGbwq.js.map} +1 -1
- package/dist/kanban-renderer.js +5 -5
- package/dist/{lazy-markdown-editor-CWSREEhf.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
- package/dist/{lazy-markdown-editor-CWSREEhf.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
- package/dist/{list-row-B8L4TGsh.js → list-row-9oxy-F0v.js} +228 -253
- package/dist/list-row-9oxy-F0v.js.map +1 -0
- package/dist/{param-editor-w3xH-t8A.js → param-editor-B8Ff9Nm8.js} +2 -2
- package/dist/{param-editor-w3xH-t8A.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
- package/dist/{param-editor-field-C8zRDStn.js → param-editor-field-Cu4pto_a.js} +3 -3
- package/dist/{param-editor-field-C8zRDStn.js.map → param-editor-field-Cu4pto_a.js.map} +1 -1
- package/dist/{rich-message-jZ2oPQhU.js → rich-message-DdFYRzTo.js} +2 -2
- package/dist/{rich-message-jZ2oPQhU.js.map → rich-message-DdFYRzTo.js.map} +1 -1
- package/dist/rich-text.js +4 -4
- package/dist/terminal.js +1 -1
- package/dist/terminal.js.map +1 -1
- package/dist/theme/recipes/input.d.ts +32 -0
- package/dist/{theme-J8K8KbZi.js → theme-BH4fSst9.js} +33 -1
- package/dist/theme-BH4fSst9.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-uV4UFj0x.js +1116 -0
- package/dist/tree-list-uV4UFj0x.js.map +1 -0
- package/package.json +1 -1
- package/dist/list-row-B8L4TGsh.js.map +0 -1
- package/dist/theme-J8K8KbZi.js.map +0 -1
- package/dist/tree-list-CC13pOYi.js +0 -1033
- package/dist/tree-list-CC13pOYi.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as P, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import { c as O } from "react/compiler-runtime";
|
|
3
|
-
import { Menu as C, Portal as Ne, HStack as he, Stack as tt, Text as je, Box as
|
|
4
|
-
import * as
|
|
3
|
+
import { Menu as C, Portal as Ne, HStack as he, Stack as tt, Text as je, Box as _, Icon as Pe, InputGroup as st, Input as ct, IconButton as qe, chakra as _e } from "@chakra-ui/react";
|
|
4
|
+
import * as at from "react";
|
|
5
5
|
import { Fragment as Ke, useState as Ve, useRef as Ue, useEffect as Ye, forwardRef as dt } from "react";
|
|
6
6
|
import { Search as ut, ChevronDown as nt, ChevronRight as ht } from "lucide-react";
|
|
7
7
|
import { T as Qe, S as ft } from "./browser-storage-DPtOQJx0.js";
|
|
@@ -9,21 +9,21 @@ const ot = (n) => {
|
|
|
9
9
|
const e = O(6), {
|
|
10
10
|
actions: t,
|
|
11
11
|
contentBackground: o,
|
|
12
|
-
contentMinWidth:
|
|
12
|
+
contentMinWidth: r
|
|
13
13
|
} = n;
|
|
14
14
|
let s;
|
|
15
15
|
e[0] !== t ? (s = t.map(mt), e[0] = t, e[1] = s) : s = e[1];
|
|
16
16
|
let l;
|
|
17
|
-
return e[2] !== o || e[3] !==
|
|
18
|
-
},
|
|
17
|
+
return e[2] !== o || e[3] !== r || e[4] !== s ? (l = /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: r, bg: o, children: s }) }) }), e[2] = o, e[3] = r, e[4] = s, e[5] = l) : l = e[5], l;
|
|
18
|
+
}, nn = (n) => {
|
|
19
19
|
const e = O(13), {
|
|
20
20
|
actions: t,
|
|
21
21
|
children: o,
|
|
22
|
-
contentMinWidth:
|
|
22
|
+
contentMinWidth: r,
|
|
23
23
|
contentBackground: s,
|
|
24
24
|
positioning: l,
|
|
25
|
-
closeOnSelect:
|
|
26
|
-
} = n, d =
|
|
25
|
+
closeOnSelect: c
|
|
26
|
+
} = n, d = r === void 0 ? "17.5rem" : r, a = s === void 0 ? "bg" : s;
|
|
27
27
|
let h;
|
|
28
28
|
e[0] !== l ? (h = l === void 0 ? {
|
|
29
29
|
placement: "bottom-start"
|
|
@@ -32,24 +32,24 @@ const ot = (n) => {
|
|
|
32
32
|
if (t.length === 0)
|
|
33
33
|
return o;
|
|
34
34
|
let m;
|
|
35
|
-
e[2] !== o ? (m = /* @__PURE__ */
|
|
35
|
+
e[2] !== o ? (m = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: o }), e[2] = o, e[3] = m) : m = e[3];
|
|
36
36
|
let u;
|
|
37
|
-
e[4] !== t || e[5] !==
|
|
37
|
+
e[4] !== t || e[5] !== a || e[6] !== d ? (u = /* @__PURE__ */ i(ot, { actions: t, contentMinWidth: d, contentBackground: a }), e[4] = t, e[5] = a, e[6] = d, e[7] = u) : u = e[7];
|
|
38
38
|
let f;
|
|
39
|
-
return e[8] !==
|
|
39
|
+
return e[8] !== c || e[9] !== p || e[10] !== m || e[11] !== u ? (f = /* @__PURE__ */ P(C.Root, { positioning: p, closeOnSelect: c, children: [
|
|
40
40
|
m,
|
|
41
41
|
u
|
|
42
|
-
] }), e[8] =
|
|
42
|
+
] }), e[8] = c, e[9] = p, e[10] = m, e[11] = u, e[12] = f) : f = e[12], f;
|
|
43
43
|
}, pt = (n) => {
|
|
44
44
|
const e = O(15), {
|
|
45
45
|
actions: t,
|
|
46
46
|
children: o,
|
|
47
|
-
contentMinWidth:
|
|
47
|
+
contentMinWidth: r,
|
|
48
48
|
contentBackground: s,
|
|
49
49
|
positioning: l,
|
|
50
|
-
closeOnSelect:
|
|
50
|
+
closeOnSelect: c,
|
|
51
51
|
keepMountedWhenEmpty: d
|
|
52
|
-
} = n,
|
|
52
|
+
} = n, a = r === void 0 ? "17.5rem" : r, h = s === void 0 ? "bg" : s;
|
|
53
53
|
let p;
|
|
54
54
|
e[0] !== l ? (p = l === void 0 ? {
|
|
55
55
|
placement: "bottom-start"
|
|
@@ -57,22 +57,22 @@ const ot = (n) => {
|
|
|
57
57
|
const m = p, u = d === void 0 ? !1 : d;
|
|
58
58
|
if (t.length === 0 && !u) {
|
|
59
59
|
let g;
|
|
60
|
-
return e[2] !== o ? (g = /* @__PURE__ */
|
|
60
|
+
return e[2] !== o ? (g = /* @__PURE__ */ i(et, { children: o }), e[2] = o, e[3] = g) : g = e[3], g;
|
|
61
61
|
}
|
|
62
62
|
let f;
|
|
63
|
-
e[4] !== o ? (f = /* @__PURE__ */
|
|
63
|
+
e[4] !== o ? (f = /* @__PURE__ */ i(C.ContextTrigger, { asChild: !0, children: o }), e[4] = o, e[5] = f) : f = e[5];
|
|
64
64
|
let b;
|
|
65
|
-
e[6] !== t || e[7] !== h || e[8] !==
|
|
65
|
+
e[6] !== t || e[7] !== h || e[8] !== a ? (b = t.length > 0 ? /* @__PURE__ */ i(ot, { actions: t, contentMinWidth: a, contentBackground: h }) : null, e[6] = t, e[7] = h, e[8] = a, e[9] = b) : b = e[9];
|
|
66
66
|
let S;
|
|
67
|
-
return e[10] !==
|
|
67
|
+
return e[10] !== c || e[11] !== m || e[12] !== f || e[13] !== b ? (S = /* @__PURE__ */ P(C.Root, { positioning: m, closeOnSelect: c, children: [
|
|
68
68
|
f,
|
|
69
69
|
b
|
|
70
|
-
] }), e[10] =
|
|
70
|
+
] }), e[10] = c, e[11] = m, e[12] = f, e[13] = b, e[14] = S) : S = e[14], S;
|
|
71
71
|
};
|
|
72
72
|
function mt(n) {
|
|
73
73
|
return /* @__PURE__ */ P(Ke, { children: [
|
|
74
|
-
n.separatorBefore ? /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
74
|
+
n.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
|
|
75
|
+
/* @__PURE__ */ i(C.Item, { value: n.key, disabled: n.isDisabled, asChild: !0, children: /* @__PURE__ */ i(Fe, { asChild: !0, variant: "full-width", label: n.label, icon: n.icon, endContent: n.endContent, disabled: n.isDisabled, onActivate: n.onClick }) })
|
|
76
76
|
] }, n.key);
|
|
77
77
|
}
|
|
78
78
|
const gt = (n) => {
|
|
@@ -82,56 +82,56 @@ const gt = (n) => {
|
|
|
82
82
|
if (!t.icon)
|
|
83
83
|
return null;
|
|
84
84
|
let o;
|
|
85
|
-
e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */
|
|
86
|
-
let
|
|
87
|
-
return e[2] !== o ? (
|
|
85
|
+
e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */ i(Pe, { as: t.icon, boxSize: "14px" }) : t.icon, e[0] = t.icon, e[1] = o) : o = e[1];
|
|
86
|
+
let r;
|
|
87
|
+
return e[2] !== o ? (r = /* @__PURE__ */ i(_, { color: "fg.muted", flexShrink: 0, display: "inline-flex", children: o }), e[2] = o, e[3] = r) : r = e[3], r;
|
|
88
88
|
}, bt = (n) => {
|
|
89
89
|
const e = O(20), {
|
|
90
90
|
children: t,
|
|
91
91
|
items: o,
|
|
92
|
-
onOpenChange:
|
|
92
|
+
onOpenChange: r,
|
|
93
93
|
onSelect: s,
|
|
94
94
|
open: l,
|
|
95
|
-
placement:
|
|
96
|
-
} = n, d =
|
|
97
|
-
let
|
|
98
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
95
|
+
placement: c
|
|
96
|
+
} = n, d = c === void 0 ? "right-start" : c;
|
|
97
|
+
let a;
|
|
98
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
99
99
|
mainAxis: 4
|
|
100
|
-
}, e[0] =
|
|
100
|
+
}, e[0] = a) : a = e[0];
|
|
101
101
|
let h;
|
|
102
102
|
e[1] !== d ? (h = {
|
|
103
103
|
placement: d,
|
|
104
|
-
offset:
|
|
104
|
+
offset: a
|
|
105
105
|
}, e[1] = d, e[2] = h) : h = e[2];
|
|
106
106
|
let p;
|
|
107
|
-
e[3] !==
|
|
107
|
+
e[3] !== r ? (p = (S) => r(S.open), e[3] = r, e[4] = p) : p = e[4];
|
|
108
108
|
let m;
|
|
109
|
-
e[5] !== t ? (m = /* @__PURE__ */
|
|
109
|
+
e[5] !== t ? (m = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: t }), e[5] = t, e[6] = m) : m = e[6];
|
|
110
110
|
let u;
|
|
111
111
|
if (e[7] !== o || e[8] !== s) {
|
|
112
112
|
let S;
|
|
113
113
|
e[10] !== s ? (S = (g) => /* @__PURE__ */ P(Ke, { children: [
|
|
114
|
-
g.separatorBefore ? /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
g.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
|
|
115
|
+
/* @__PURE__ */ i(C.Item, { value: g.id, disabled: g.disabled || g.readOnly, _disabled: g.readOnly ? {
|
|
116
116
|
opacity: 1,
|
|
117
117
|
cursor: "default"
|
|
118
118
|
} : void 0, onClick: () => {
|
|
119
119
|
g.readOnly || s(g);
|
|
120
120
|
}, children: /* @__PURE__ */ P(he, { gap: "2", minW: "0", w: "full", justify: "space-between", alignItems: "center", children: [
|
|
121
121
|
/* @__PURE__ */ P(he, { gap: "2", minW: "0", flex: "1", alignItems: g.description ? "flex-start" : "center", children: [
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ i(gt, { item: g }),
|
|
123
123
|
/* @__PURE__ */ P(tt, { gap: "0", minW: "0", children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
g.description ? /* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ i(je, { textStyle: "label/S/regular", truncate: !0, children: g.label }),
|
|
125
|
+
g.description ? /* @__PURE__ */ i(je, { textStyle: "label/XS", color: "fg.menu-item.secondary", truncate: !0, children: g.description }) : null
|
|
126
126
|
] })
|
|
127
127
|
] }),
|
|
128
|
-
g.endContent ? /* @__PURE__ */
|
|
128
|
+
g.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, children: g.endContent }) : null
|
|
129
129
|
] }) })
|
|
130
130
|
] }, g.id), e[10] = s, e[11] = S) : S = e[11], u = o.map(S), e[7] = o, e[8] = s, e[9] = u;
|
|
131
131
|
} else
|
|
132
132
|
u = e[9];
|
|
133
133
|
let f;
|
|
134
|
-
e[12] !== u ? (f = /* @__PURE__ */
|
|
134
|
+
e[12] !== u ? (f = /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: "200px", bg: "bg", children: u }) }) }), e[12] = u, e[13] = f) : f = e[13];
|
|
135
135
|
let b;
|
|
136
136
|
return e[14] !== l || e[15] !== h || e[16] !== p || e[17] !== m || e[18] !== f ? (b = /* @__PURE__ */ P(C.Root, { open: l, positioning: h, onOpenChange: p, children: [
|
|
137
137
|
m,
|
|
@@ -140,7 +140,7 @@ const gt = (n) => {
|
|
|
140
140
|
}, vt = (n) => n.map((e) => ({
|
|
141
141
|
key: e.id,
|
|
142
142
|
label: e.label,
|
|
143
|
-
icon: typeof e.icon == "function" ? /* @__PURE__ */
|
|
143
|
+
icon: typeof e.icon == "function" ? /* @__PURE__ */ i(Pe, { as: e.icon, boxSize: "16px" }) : e.icon,
|
|
144
144
|
endContent: e.endContent,
|
|
145
145
|
isDisabled: e.disabled,
|
|
146
146
|
separatorBefore: e.separatorBefore,
|
|
@@ -149,23 +149,23 @@ const gt = (n) => {
|
|
|
149
149
|
const e = O(15), {
|
|
150
150
|
children: t,
|
|
151
151
|
item: o,
|
|
152
|
-
menuOpen:
|
|
152
|
+
menuOpen: r,
|
|
153
153
|
onMenuOpenChange: s,
|
|
154
154
|
onMenuSelect: l
|
|
155
155
|
} = n;
|
|
156
156
|
if (o.menuItems && o.menuItems.length > 0) {
|
|
157
157
|
let p;
|
|
158
|
-
return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !==
|
|
158
|
+
return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !== r || e[4] !== s || e[5] !== l ? (p = /* @__PURE__ */ i(bt, { items: o.menuItems, open: r, placement: o.menuPlacement, onOpenChange: s, onSelect: l, children: t }), e[0] = t, e[1] = o.menuItems, e[2] = o.menuPlacement, e[3] = r, e[4] = s, e[5] = l, e[6] = p) : p = e[6], p;
|
|
159
159
|
}
|
|
160
|
-
let
|
|
161
|
-
e[7] !== t || e[8] !== o.tooltip ? (
|
|
162
|
-
const d =
|
|
160
|
+
let c;
|
|
161
|
+
e[7] !== t || e[8] !== o.tooltip ? (c = o.tooltip ? /* @__PURE__ */ i(Qe, { content: o.tooltip, children: t }) : t, e[7] = t, e[8] = o.tooltip, e[9] = c) : c = e[9];
|
|
162
|
+
const d = c;
|
|
163
163
|
if (!o.contextMenuItems || o.contextMenuItems.length === 0)
|
|
164
164
|
return d;
|
|
165
|
-
let
|
|
166
|
-
e[10] !== o.contextMenuItems ? (
|
|
165
|
+
let a;
|
|
166
|
+
e[10] !== o.contextMenuItems ? (a = vt(o.contextMenuItems), e[10] = o.contextMenuItems, e[11] = a) : a = e[11];
|
|
167
167
|
let h;
|
|
168
|
-
return e[12] !== d || e[13] !==
|
|
168
|
+
return e[12] !== d || e[13] !== a ? (h = /* @__PURE__ */ i(pt, { actions: a, children: d }), e[12] = d, e[13] = a, e[14] = h) : h = e[14], h;
|
|
169
169
|
}, St = {
|
|
170
170
|
main: {
|
|
171
171
|
h: "2.5rem",
|
|
@@ -179,63 +179,38 @@ const gt = (n) => {
|
|
|
179
179
|
h: "3rem",
|
|
180
180
|
px: "0"
|
|
181
181
|
}
|
|
182
|
-
}, lt =
|
|
182
|
+
}, lt = at.forwardRef(function(e, t) {
|
|
183
183
|
const o = O(9);
|
|
184
|
-
let
|
|
184
|
+
let r, s, l;
|
|
185
185
|
o[0] !== e ? ({
|
|
186
186
|
variant: l,
|
|
187
|
-
children:
|
|
187
|
+
children: r,
|
|
188
188
|
...s
|
|
189
|
-
} = e, o[0] = e, o[1] =
|
|
189
|
+
} = e, o[0] = e, o[1] = r, o[2] = s, o[3] = l) : (r = o[1], s = o[2], l = o[3]);
|
|
190
190
|
const d = St[l === void 0 ? "main" : l];
|
|
191
|
-
let
|
|
192
|
-
return o[4] !==
|
|
193
|
-
}), Ct = {
|
|
194
|
-
bg: "transparent",
|
|
195
|
-
border: "0",
|
|
196
|
-
borderColor: "transparent",
|
|
197
|
-
borderRadius: "0",
|
|
198
|
-
boxShadow: "none",
|
|
199
|
-
transition: "none",
|
|
200
|
-
_hover: {
|
|
201
|
-
bg: "transparent",
|
|
202
|
-
borderColor: "transparent"
|
|
203
|
-
},
|
|
204
|
-
_active: {
|
|
205
|
-
bg: "transparent",
|
|
206
|
-
borderColor: "transparent"
|
|
207
|
-
},
|
|
208
|
-
_focus: {
|
|
209
|
-
borderColor: "transparent",
|
|
210
|
-
outline: "none",
|
|
211
|
-
boxShadow: "none"
|
|
212
|
-
},
|
|
213
|
-
_focusVisible: {
|
|
214
|
-
borderColor: "transparent",
|
|
215
|
-
outline: "none",
|
|
216
|
-
boxShadow: "none"
|
|
217
|
-
}
|
|
218
|
-
}, wt = (n) => {
|
|
191
|
+
let a;
|
|
192
|
+
return o[4] !== r || o[5] !== t || o[6] !== s || o[7] !== d ? (a = /* @__PURE__ */ i(he, { ref: t, as: "header", alignItems: "center", borderWidth: "0", ...d, ...s, children: r }), o[4] = r, o[5] = t, o[6] = s, o[7] = d, o[8] = a) : a = o[8], a;
|
|
193
|
+
}), Ct = (n) => {
|
|
219
194
|
const e = O(8), {
|
|
220
195
|
inputRef: t,
|
|
221
196
|
value: o,
|
|
222
|
-
placeholder:
|
|
197
|
+
placeholder: r,
|
|
223
198
|
onValueChange: s
|
|
224
199
|
} = n;
|
|
225
200
|
let l;
|
|
226
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */
|
|
227
|
-
let
|
|
228
|
-
e[1] !== s ? (
|
|
201
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i(ut, { size: 14 }), e[0] = l) : l = e[0];
|
|
202
|
+
let c;
|
|
203
|
+
e[1] !== s ? (c = (a) => s(a.target.value), e[1] = s, e[2] = c) : c = e[2];
|
|
229
204
|
let d;
|
|
230
|
-
return e[3] !== t || e[4] !==
|
|
205
|
+
return e[3] !== t || e[4] !== r || e[5] !== c || e[6] !== o ? (d = /* @__PURE__ */ i(lt, { variant: "input", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, children: /* @__PURE__ */ i(st, { startElement: l, width: "full", children: /* @__PURE__ */ i(ct, { ref: t, mx: "xs", variant: "borderless", value: o, placeholder: r, "aria-label": r, autoComplete: "off", onChange: c, onKeyDown: wt }) }) }), e[3] = t, e[4] = r, e[5] = c, e[6] = o, e[7] = d) : d = e[7], d;
|
|
231
206
|
};
|
|
232
|
-
function
|
|
207
|
+
function wt(n) {
|
|
233
208
|
return n.stopPropagation();
|
|
234
209
|
}
|
|
235
|
-
const
|
|
210
|
+
const It = (n, e) => {
|
|
236
211
|
const t = e.trim().toLowerCase();
|
|
237
212
|
return t ? n.filter((o) => [o.label, o.searchText].filter(Boolean).join(" ").toLowerCase().includes(t)) : n;
|
|
238
|
-
},
|
|
213
|
+
}, yt = (n, e) => !n || !e ? !1 : n !== e, Mt = (n, e, t) => !n || !e ? t : {
|
|
239
214
|
items: e.items,
|
|
240
215
|
filterItems: e.filterItems ?? t.filterItems,
|
|
241
216
|
showSearch: e.showSearch ?? t.showSearch,
|
|
@@ -244,16 +219,16 @@ const yt = (n, e) => {
|
|
|
244
219
|
contentTestId: e.contentTestId ?? t.contentTestId,
|
|
245
220
|
closeOnSelect: !1,
|
|
246
221
|
listId: "parent"
|
|
247
|
-
},
|
|
222
|
+
}, Pt = (n) => {
|
|
248
223
|
const e = O(47), {
|
|
249
224
|
trigger: t,
|
|
250
225
|
items: o,
|
|
251
|
-
searchPlaceholder:
|
|
226
|
+
searchPlaceholder: r,
|
|
252
227
|
emptyState: s,
|
|
253
228
|
filterItems: l,
|
|
254
|
-
listId:
|
|
229
|
+
listId: c,
|
|
255
230
|
header: d,
|
|
256
|
-
width:
|
|
231
|
+
width: a,
|
|
257
232
|
maxListHeight: h,
|
|
258
233
|
showSearch: p,
|
|
259
234
|
closeOnSelect: m,
|
|
@@ -265,22 +240,22 @@ const yt = (n, e) => {
|
|
|
265
240
|
contentTestId: Y,
|
|
266
241
|
portalled: L,
|
|
267
242
|
parentList: v
|
|
268
|
-
} = n,
|
|
243
|
+
} = n, R = l === void 0 ? It : l, $ = a === void 0 ? "260px" : a, H = h === void 0 ? "18rem" : h, V = p === void 0 ? !0 : p, j = m === void 0 ? !0 : m, F = u === void 0 ? !1 : u, Be = L === void 0 ? !0 : L, Z = !!v, [Te, We] = Ve(!1), [ke, Re] = Ve(""), [Ge, fe] = Ve("child"), D = Ue(null), q = f ?? Te, ne = Z && Ge === "parent", I = Mt(ne, v, {
|
|
269
244
|
items: o,
|
|
270
|
-
filterItems:
|
|
245
|
+
filterItems: R,
|
|
271
246
|
showSearch: V,
|
|
272
|
-
searchPlaceholder:
|
|
247
|
+
searchPlaceholder: r,
|
|
273
248
|
emptyState: s,
|
|
274
249
|
contentTestId: Y,
|
|
275
250
|
closeOnSelect: j,
|
|
276
|
-
listId: Z ? "child" :
|
|
277
|
-
}), xe = I.filterItems(I.items,
|
|
251
|
+
listId: Z ? "child" : c ?? ""
|
|
252
|
+
}), xe = I.filterItems(I.items, ke), J = Ue(I.listId);
|
|
278
253
|
Ye(() => {
|
|
279
254
|
if (!q) {
|
|
280
255
|
J.current = I.listId;
|
|
281
256
|
return;
|
|
282
257
|
}
|
|
283
|
-
|
|
258
|
+
yt(J.current, I.listId) && Re(""), J.current = I.listId;
|
|
284
259
|
}, [q, I.listId]);
|
|
285
260
|
let oe;
|
|
286
261
|
e[0] !== I.showSearch || e[1] !== q ? (oe = [q, I.showSearch], e[0] = I.showSearch, e[1] = q, e[2] = oe) : oe = e[2], Ye(() => {
|
|
@@ -291,7 +266,7 @@ const yt = (n, e) => {
|
|
|
291
266
|
}, oe);
|
|
292
267
|
let pe;
|
|
293
268
|
e[3] !== Z || e[4] !== S || e[5] !== f ? (pe = (w) => {
|
|
294
|
-
f === void 0 && We(w.open),
|
|
269
|
+
f === void 0 && We(w.open), Re(""), w.open && Z && fe("child"), S?.(w);
|
|
295
270
|
}, e[3] = Z, e[4] = S, e[5] = f, e[6] = pe) : pe = e[6];
|
|
296
271
|
const Oe = pe;
|
|
297
272
|
let Se;
|
|
@@ -311,43 +286,43 @@ const yt = (n, e) => {
|
|
|
311
286
|
disabled: w.isDisabled,
|
|
312
287
|
tooltip: w.tooltipLabel
|
|
313
288
|
}), e[10] = le) : le = e[10];
|
|
314
|
-
const
|
|
289
|
+
const ie = le;
|
|
315
290
|
let ee;
|
|
316
|
-
e[11] !== v ? (ee = v ? /* @__PURE__ */
|
|
317
|
-
w.stopPropagation(), !v.disabled && fe(
|
|
318
|
-
}, children: /* @__PURE__ */
|
|
319
|
-
const we = v ? ee : d, De = !!we && !I.showSearch, me = I.showSearch ? /* @__PURE__ */
|
|
291
|
+
e[11] !== v ? (ee = v ? /* @__PURE__ */ i(lt, { as: "div", role: "menuitem", "aria-label": v.ariaLabel, "aria-disabled": v.disabled || void 0, tabIndex: v.disabled ? -1 : 0, variant: "narrow", px: "0", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, onPointerDownCapture: Rt, onClickCapture: (w) => {
|
|
292
|
+
w.stopPropagation(), !v.disabled && fe(Ot);
|
|
293
|
+
}, children: /* @__PURE__ */ i(Fe, { asChild: !0, role: "presentation", variant: "full-width", id: "__parent-toggle", label: v.selectedLabel, icon: $e(v.selectedIcon), disabled: v.disabled, endContent: v.disabled ? void 0 : /* @__PURE__ */ i(Pe, { as: nt, boxSize: "14px" }) }) }) : null, e[11] = v, e[12] = ee) : ee = e[12];
|
|
294
|
+
const we = v ? ee : d, De = !!we && !I.showSearch, me = I.showSearch ? /* @__PURE__ */ i(Ct, { inputRef: D, value: ke, placeholder: I.searchPlaceholder, onValueChange: Re }) : null, T = C, re = C, M = "bg", Ie = "0", W = "0";
|
|
320
295
|
let se;
|
|
321
|
-
e[13] !== De ? (se = De ? /* @__PURE__ */
|
|
296
|
+
e[13] !== De ? (se = De ? /* @__PURE__ */ i(C.Separator, { margin: "0" }) : null, e[13] = De, e[14] = se) : se = e[14];
|
|
322
297
|
const B = ft;
|
|
323
|
-
let
|
|
324
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
298
|
+
let ce;
|
|
299
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = {
|
|
325
300
|
overscrollBehavior: "contain"
|
|
326
|
-
}, e[15] =
|
|
327
|
-
const U = "0", y = "0",
|
|
301
|
+
}, e[15] = ce) : ce = e[15];
|
|
302
|
+
const U = "0", y = "0", ae = xe.length > 0 ? xe.map((w) => /* @__PURE__ */ i(C.Item, { value: w.id, disabled: w.isDisabled, onClick: w.onSelect, asChild: !0, children: /* @__PURE__ */ i(_, { bg: "transparent", h: "auto", p: "0", _hover: {
|
|
328
303
|
bg: "transparent"
|
|
329
304
|
}, _focus: {
|
|
330
305
|
bg: "transparent"
|
|
331
306
|
}, _active: {
|
|
332
307
|
bg: "transparent"
|
|
333
|
-
}, children: /* @__PURE__ */
|
|
308
|
+
}, children: /* @__PURE__ */ i(Fe, { asChild: !0, ...ie(w), role: "presentation", variant: w.variant ?? "full-width", isSelected: w.isSelected }) }) }, w.id)) : I.emptyState;
|
|
334
309
|
let A;
|
|
335
|
-
e[16] !== B || e[17] !== I.contentTestId || e[18] !== H || e[19] !==
|
|
310
|
+
e[16] !== B || e[17] !== I.contentTestId || e[18] !== H || e[19] !== ce || e[20] !== ae ? (A = /* @__PURE__ */ i(B, { maxH: H, "data-testid": I.contentTestId, viewportProps: ce, p: U, gap: y, children: ae }), e[16] = B, e[17] = I.contentTestId, e[18] = H, e[19] = ce, e[20] = ae, e[21] = A) : A = e[21];
|
|
336
311
|
let N;
|
|
337
|
-
e[22] !== we || e[23] !== me || e[24] !==
|
|
312
|
+
e[22] !== we || e[23] !== me || e[24] !== re.Content || e[25] !== se || e[26] !== A || e[27] !== $ ? (N = /* @__PURE__ */ P(re.Content, { w: $, bg: M, gap: Ie, p: W, children: [
|
|
338
313
|
we,
|
|
339
314
|
me,
|
|
340
315
|
se,
|
|
341
316
|
A
|
|
342
|
-
] }), e[22] = we, e[23] = me, e[24] =
|
|
317
|
+
] }), e[22] = we, e[23] = me, e[24] = re.Content, e[25] = se, e[26] = A, e[27] = $, e[28] = N) : N = e[28];
|
|
343
318
|
let K;
|
|
344
|
-
e[29] !== T.Positioner || e[30] !== N ? (K = /* @__PURE__ */
|
|
319
|
+
e[29] !== T.Positioner || e[30] !== N ? (K = /* @__PURE__ */ i(T.Positioner, { children: N }), e[29] = T.Positioner, e[30] = N, e[31] = K) : K = e[31];
|
|
345
320
|
const de = K, ge = Z ? Ce : void 0;
|
|
346
321
|
let Q;
|
|
347
|
-
e[32] !== t ? (Q = /* @__PURE__ */
|
|
322
|
+
e[32] !== t ? (Q = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: t }), e[32] = t, e[33] = Q) : Q = e[33];
|
|
348
323
|
const be = !Be;
|
|
349
324
|
let te;
|
|
350
|
-
e[34] !== de || e[35] !== be ? (te = /* @__PURE__ */
|
|
325
|
+
e[34] !== de || e[35] !== be ? (te = /* @__PURE__ */ i(Ne, { disabled: be, children: de }), e[34] = de, e[35] = be, e[36] = te) : te = e[36];
|
|
351
326
|
let ye;
|
|
352
327
|
return e[37] !== I.closeOnSelect || e[38] !== Oe || e[39] !== F || e[40] !== g || e[41] !== f || e[42] !== b || e[43] !== ge || e[44] !== Q || e[45] !== te ? (ye = /* @__PURE__ */ P(C.Root, { lazyMount: F, closeOnSelect: I.closeOnSelect, open: f, positioning: b, onOpenChange: Oe, onFocusOutside: g, onSelect: ge, children: [
|
|
353
328
|
Q,
|
|
@@ -355,32 +330,32 @@ const yt = (n, e) => {
|
|
|
355
330
|
] }), e[37] = I.closeOnSelect, e[38] = Oe, e[39] = F, e[40] = g, e[41] = f, e[42] = b, e[43] = ge, e[44] = Q, e[45] = te, e[46] = ye) : ye = e[46], ye;
|
|
356
331
|
};
|
|
357
332
|
function kt(n) {
|
|
358
|
-
return n ? /* @__PURE__ */
|
|
333
|
+
return n ? /* @__PURE__ */ i(Pe, { as: n, boxSize: "14px" }) : void 0;
|
|
359
334
|
}
|
|
360
|
-
function
|
|
335
|
+
function Rt(n) {
|
|
361
336
|
return n.stopPropagation();
|
|
362
337
|
}
|
|
363
|
-
function
|
|
338
|
+
function Ot(n) {
|
|
364
339
|
return n === "child" ? "parent" : "child";
|
|
365
340
|
}
|
|
366
|
-
const
|
|
341
|
+
const Dt = (n) => {
|
|
367
342
|
const e = O(14), {
|
|
368
343
|
action: t
|
|
369
344
|
} = n;
|
|
370
345
|
let o;
|
|
371
346
|
e[0] !== t.menuItems ? (o = t.menuItems ?? [], e[0] = t.menuItems, e[1] = o) : o = e[1];
|
|
372
|
-
let
|
|
373
|
-
e[2] !== o ? (
|
|
374
|
-
const s =
|
|
347
|
+
let r;
|
|
348
|
+
e[2] !== o ? (r = o.map(Bt), e[2] = o, e[3] = r) : r = e[3];
|
|
349
|
+
const s = r;
|
|
375
350
|
let l;
|
|
376
|
-
e[4] !== t.icon || e[5] !== t.label ? (l = /* @__PURE__ */
|
|
377
|
-
const
|
|
378
|
-
let
|
|
379
|
-
e[7] !== d ? (
|
|
351
|
+
e[4] !== t.icon || e[5] !== t.label ? (l = /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": t.label, children: t.icon }), e[4] = t.icon, e[5] = t.label, e[6] = l) : l = e[6];
|
|
352
|
+
const c = t.searchPlaceholder ?? "Search...", d = t.emptyMenuLabel ?? "No results found";
|
|
353
|
+
let a;
|
|
354
|
+
e[7] !== d ? (a = /* @__PURE__ */ i(C.Item, { value: "empty", asChild: !0, children: /* @__PURE__ */ i(Fe, { asChild: !0, variant: "full-width", label: d, disabled: !0 }) }), e[7] = d, e[8] = a) : a = e[8];
|
|
380
355
|
let h;
|
|
381
|
-
return e[9] !== s || e[10] !== l || e[11] !==
|
|
356
|
+
return e[9] !== s || e[10] !== l || e[11] !== c || e[12] !== a ? (h = /* @__PURE__ */ i(Pt, { trigger: l, items: s, searchPlaceholder: c, emptyState: a, onFocusOutside: Tt }), e[9] = s, e[10] = l, e[11] = c, e[12] = a, e[13] = h) : h = e[13], h;
|
|
382
357
|
};
|
|
383
|
-
function
|
|
358
|
+
function Bt(n) {
|
|
384
359
|
return {
|
|
385
360
|
id: n.id,
|
|
386
361
|
label: n.label,
|
|
@@ -390,58 +365,58 @@ function Tt(n) {
|
|
|
390
365
|
onSelect: () => n.onAction?.()
|
|
391
366
|
};
|
|
392
367
|
}
|
|
393
|
-
function
|
|
368
|
+
function Tt(n) {
|
|
394
369
|
return n.preventDefault();
|
|
395
370
|
}
|
|
396
|
-
const Ze = (n, e) => n.tooltip ? /* @__PURE__ */
|
|
371
|
+
const Ze = (n, e) => n.tooltip ? /* @__PURE__ */ i(Qe, { content: n.tooltip, openDelay: 300, children: e }, n.id) : /* @__PURE__ */ i(Ke, { children: e }, n.id), Wt = (n) => {
|
|
397
372
|
const e = O(11), {
|
|
398
373
|
actions: t,
|
|
399
374
|
alwaysVisible: o,
|
|
400
|
-
context:
|
|
375
|
+
context: r
|
|
401
376
|
} = n, s = o === void 0 ? !1 : o;
|
|
402
377
|
if (t.length === 0)
|
|
403
378
|
return null;
|
|
404
|
-
const l = s ? "1" : "0",
|
|
405
|
-
let d,
|
|
379
|
+
const l = s ? "1" : "0", c = s ? "auto" : "none";
|
|
380
|
+
let d, a;
|
|
406
381
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
407
382
|
opacity: "1",
|
|
408
383
|
pointerEvents: "auto"
|
|
409
|
-
},
|
|
384
|
+
}, a = {
|
|
410
385
|
opacity: "1",
|
|
411
386
|
pointerEvents: "auto"
|
|
412
|
-
}, e[0] = d, e[1] =
|
|
387
|
+
}, e[0] = d, e[1] = a) : (d = e[0], a = e[1]);
|
|
413
388
|
let h;
|
|
414
|
-
if (e[2] !== t || e[3] !==
|
|
389
|
+
if (e[2] !== t || e[3] !== r) {
|
|
415
390
|
let m;
|
|
416
|
-
e[5] !==
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
] })) : Ze(u, /* @__PURE__ */
|
|
420
|
-
f.stopPropagation(), u.onAction?.(
|
|
421
|
-
}, children: u.icon })), e[5] =
|
|
391
|
+
e[5] !== r ? (m = (u) => u.menuItems && u.menuItems.length >= 8 ? /* @__PURE__ */ i(Dt, { action: u }, u.id) : u.menuItems && u.menuItems.length > 0 ? Ze(u, /* @__PURE__ */ P(C.Root, { children: [
|
|
392
|
+
/* @__PURE__ */ i(C.Trigger, { asChild: !0, children: /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, children: u.icon }) }),
|
|
393
|
+
/* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: "160px", bg: "bg", children: u.menuItems.map($t) }) }) })
|
|
394
|
+
] })) : Ze(u, /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, onClick: (f) => {
|
|
395
|
+
f.stopPropagation(), u.onAction?.(r);
|
|
396
|
+
}, children: u.icon })), e[5] = r, e[6] = m) : m = e[6], h = t.map(m), e[2] = t, e[3] = r, e[4] = h;
|
|
422
397
|
} else
|
|
423
398
|
h = e[4];
|
|
424
399
|
let p;
|
|
425
|
-
return e[7] !== l || e[8] !==
|
|
400
|
+
return e[7] !== l || e[8] !== c || e[9] !== h ? (p = /* @__PURE__ */ i(he, { gap: "0", opacity: l, pointerEvents: c, _groupHover: d, _groupFocusWithin: a, transition: "opacity 120ms ease", onClick: Lt, children: h }), e[7] = l, e[8] = c, e[9] = h, e[10] = p) : p = e[10], p;
|
|
426
401
|
};
|
|
427
|
-
function
|
|
402
|
+
function Lt(n) {
|
|
428
403
|
return n.stopPropagation();
|
|
429
404
|
}
|
|
430
|
-
function
|
|
405
|
+
function $t(n) {
|
|
431
406
|
return /* @__PURE__ */ P(Ke, { children: [
|
|
432
|
-
n.separatorBefore ? /* @__PURE__ */
|
|
433
|
-
/* @__PURE__ */
|
|
407
|
+
n.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
|
|
408
|
+
/* @__PURE__ */ i(Qe, { content: n.description, disabled: !n.description, openDelay: 300, children: /* @__PURE__ */ i(C.Item, { value: n.id, disabled: n.disabled || n.readOnly, onClick: () => {
|
|
434
409
|
n.readOnly || n.onAction?.();
|
|
435
410
|
}, children: /* @__PURE__ */ P(he, { gap: "2", minW: "0", w: "full", justify: "space-between", children: [
|
|
436
411
|
/* @__PURE__ */ P(he, { gap: "2", minW: "0", children: [
|
|
437
|
-
n.icon ? /* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
412
|
+
n.icon ? /* @__PURE__ */ i(_, { children: n.icon }) : null,
|
|
413
|
+
/* @__PURE__ */ i(_, { minW: "0", children: n.label })
|
|
439
414
|
] }),
|
|
440
|
-
n.endContent ? /* @__PURE__ */
|
|
415
|
+
n.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, children: n.endContent }) : null
|
|
441
416
|
] }) }) })
|
|
442
417
|
] }, n.id);
|
|
443
418
|
}
|
|
444
|
-
const
|
|
419
|
+
const Ht = (n, e = !0) => {
|
|
445
420
|
const t = n.contextMenuItems ?? [];
|
|
446
421
|
if (t.length === 0 || !e) return n.actions ?? [];
|
|
447
422
|
const o = n.actions?.flatMap((l) => l.menuItems?.length ? l.menuItems : [{
|
|
@@ -451,80 +426,80 @@ const At = (n, e = !0) => {
|
|
|
451
426
|
onAction: () => l.onAction?.({
|
|
452
427
|
nodeId: n.id
|
|
453
428
|
})
|
|
454
|
-
}]) ?? [],
|
|
429
|
+
}]) ?? [], r = new Set(o.map((l) => l.id)), s = t.filter((l) => !r.has(l.id)).map((l, c) => ({
|
|
455
430
|
...l,
|
|
456
|
-
separatorBefore: l.separatorBefore ||
|
|
431
|
+
separatorBefore: l.separatorBefore || c === 0 && o.length > 0
|
|
457
432
|
}));
|
|
458
433
|
return [{
|
|
459
434
|
id: "resource-actions",
|
|
460
435
|
label: "Resource actions",
|
|
461
|
-
icon: /* @__PURE__ */
|
|
436
|
+
icon: /* @__PURE__ */ i(Pe, { as: nt, boxSize: "14px" }),
|
|
462
437
|
menuItems: [...o, ...s]
|
|
463
438
|
}];
|
|
464
|
-
},
|
|
439
|
+
}, At = (n) => n.isEmptyStateVariant ? "fg.menu-item.secondary" : n.isDisabled ? "fg.muted" : n.tone === "danger" ? "red.500" : "fg", Et = (n) => {
|
|
465
440
|
const e = O(7), {
|
|
466
441
|
label: t,
|
|
467
442
|
textStyle: o,
|
|
468
|
-
color:
|
|
443
|
+
color: r
|
|
469
444
|
} = n;
|
|
470
445
|
if (typeof t == "string") {
|
|
471
446
|
let l;
|
|
472
|
-
return e[0] !==
|
|
447
|
+
return e[0] !== r || e[1] !== t || e[2] !== o ? (l = /* @__PURE__ */ i(je, { textStyle: o, color: r, truncate: !0, children: t }), e[0] = r, e[1] = t, e[2] = o, e[3] = l) : l = e[3], l;
|
|
473
448
|
}
|
|
474
449
|
let s;
|
|
475
|
-
return e[4] !==
|
|
450
|
+
return e[4] !== r || e[5] !== t ? (s = /* @__PURE__ */ i(_, { minW: "0", maxW: "full", overflow: "hidden", color: r, children: t }), e[4] = r, e[5] = t, e[6] = s) : s = e[6], s;
|
|
476
451
|
}, zt = (n) => {
|
|
477
452
|
const e = O(8), {
|
|
478
453
|
description: t,
|
|
479
454
|
textStyle: o,
|
|
480
|
-
color:
|
|
455
|
+
color: r,
|
|
481
456
|
marginLeft: s
|
|
482
457
|
} = n;
|
|
483
458
|
if (!t)
|
|
484
459
|
return null;
|
|
485
460
|
if (typeof t == "string") {
|
|
486
|
-
let
|
|
487
|
-
return e[0] !==
|
|
461
|
+
let c;
|
|
462
|
+
return e[0] !== r || e[1] !== t || e[2] !== s || e[3] !== o ? (c = /* @__PURE__ */ i(je, { ml: s, textStyle: o, color: r, truncate: !0, children: t }), e[0] = r, e[1] = t, e[2] = s, e[3] = o, e[4] = c) : c = e[4], c;
|
|
488
463
|
}
|
|
489
464
|
let l;
|
|
490
|
-
return e[5] !== t || e[6] !== s ? (l = /* @__PURE__ */
|
|
491
|
-
},
|
|
465
|
+
return e[5] !== t || e[6] !== s ? (l = /* @__PURE__ */ i(_, { ml: s, minW: "0", maxW: "full", overflow: "hidden", children: t }), e[5] = t, e[6] = s, e[7] = l) : l = e[7], l;
|
|
466
|
+
}, _t = (n) => {
|
|
492
467
|
const e = O(33), {
|
|
493
468
|
item: t,
|
|
494
469
|
isExpanded: o,
|
|
495
|
-
showChevron:
|
|
470
|
+
showChevron: r,
|
|
496
471
|
isDisabled: s,
|
|
497
472
|
variant: l,
|
|
498
|
-
tone:
|
|
499
|
-
} = n, d = l === "empty-state",
|
|
473
|
+
tone: c
|
|
474
|
+
} = n, d = l === "empty-state", a = l === "compact" || l === "collection" || l === "full-width" || l === "tree" || d, h = a ? "label/S/regular" : "label/M/regular", p = a ? "label/XS" : "label/S/regular", m = a ? "0" : "2px", u = l === "tree" || l === "collection" ? "16px" : "14px", f = l === "collection" ? "compact" : l === "tree" ? "1" : "2";
|
|
500
475
|
let b;
|
|
501
|
-
e[0] !== s || e[1] !== d || e[2] !==
|
|
476
|
+
e[0] !== s || e[1] !== d || e[2] !== c ? (b = At({
|
|
502
477
|
isEmptyStateVariant: d,
|
|
503
478
|
isDisabled: s,
|
|
504
|
-
tone:
|
|
505
|
-
}), e[0] = s, e[1] = d, e[2] =
|
|
506
|
-
const S = b, g = t.iconColor ?? (
|
|
479
|
+
tone: c
|
|
480
|
+
}), e[0] = s, e[1] = d, e[2] = c, e[3] = b) : b = e[3];
|
|
481
|
+
const S = b, g = t.iconColor ?? (c === "danger" ? "red.500" : "fg.muted"), Y = c === "danger" ? "red.400" : "fg.menu-item.secondary";
|
|
507
482
|
let L;
|
|
508
|
-
e[4] !== o || e[5] !==
|
|
483
|
+
e[4] !== o || e[5] !== r ? (L = r ? /* @__PURE__ */ i(_, { color: "fg.muted", flexShrink: 0, display: "flex", alignItems: "center", children: /* @__PURE__ */ i(Pe, { as: ht, boxSize: "12px", transform: o ? "rotate(90deg)" : "rotate(0deg)", transition: "transform 120ms ease" }) }) : null, e[4] = o, e[5] = r, e[6] = L) : L = e[6];
|
|
509
484
|
let v;
|
|
510
|
-
e[7] !== g || e[8] !== u || e[9] !== t.icon ? (v = t.icon ? /* @__PURE__ */
|
|
485
|
+
e[7] !== g || e[8] !== u || e[9] !== t.icon ? (v = t.icon ? /* @__PURE__ */ i(_, { color: g, flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: u, fontSize: u, lineHeight: "1", css: {
|
|
511
486
|
"& > svg": {
|
|
512
487
|
width: u,
|
|
513
488
|
height: u
|
|
514
489
|
}
|
|
515
490
|
}, children: t.icon }) : null, e[7] = g, e[8] = u, e[9] = t.icon, e[10] = v) : v = e[10];
|
|
516
|
-
let
|
|
517
|
-
e[11] !== t.indicator ? (
|
|
491
|
+
let R;
|
|
492
|
+
e[11] !== t.indicator ? (R = t.indicator ? /* @__PURE__ */ i(Qe, { content: t.indicator.tooltip, disabled: !t.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ i(_, { color: t.indicator.color ?? "fg.muted", flexShrink: 0, children: t.indicator.icon }) }) : null, e[11] = t.indicator, e[12] = R) : R = e[12];
|
|
518
493
|
let $;
|
|
519
|
-
e[13] !== t.label || e[14] !== S || e[15] !== h ? ($ = /* @__PURE__ */
|
|
494
|
+
e[13] !== t.label || e[14] !== S || e[15] !== h ? ($ = /* @__PURE__ */ i(Et, { label: t.label, textStyle: h, color: S }), e[13] = t.label, e[14] = S, e[15] = h, e[16] = $) : $ = e[16];
|
|
520
495
|
let H;
|
|
521
|
-
e[17] !== f || e[18] !== v || e[19] !==
|
|
496
|
+
e[17] !== f || e[18] !== v || e[19] !== R || e[20] !== $ ? (H = /* @__PURE__ */ P(he, { gap: f, minW: "0", alignItems: "center", children: [
|
|
522
497
|
v,
|
|
523
|
-
|
|
498
|
+
R,
|
|
524
499
|
$
|
|
525
|
-
] }), e[17] = f, e[18] = v, e[19] =
|
|
500
|
+
] }), e[17] = f, e[18] = v, e[19] = R, e[20] = $, e[21] = H) : H = e[21];
|
|
526
501
|
let V;
|
|
527
|
-
e[22] !== Y || e[23] !== m || e[24] !== p || e[25] !== t.description ? (V = /* @__PURE__ */
|
|
502
|
+
e[22] !== Y || e[23] !== m || e[24] !== p || e[25] !== t.description ? (V = /* @__PURE__ */ i(zt, { description: t.description, textStyle: p, color: Y, marginLeft: m }), e[22] = Y, e[23] = m, e[24] = p, e[25] = t.description, e[26] = V) : V = e[26];
|
|
528
503
|
let j;
|
|
529
504
|
e[27] !== H || e[28] !== V ? (j = /* @__PURE__ */ P(tt, { gap: "0", minW: "0", flex: "1", children: [
|
|
530
505
|
H,
|
|
@@ -535,25 +510,25 @@ const At = (n, e = !0) => {
|
|
|
535
510
|
L,
|
|
536
511
|
j
|
|
537
512
|
] }), e[30] = L, e[31] = j, e[32] = F) : F = e[32], F;
|
|
538
|
-
},
|
|
513
|
+
}, Vt = (n) => {
|
|
539
514
|
const e = O(21), {
|
|
540
515
|
item: t,
|
|
541
516
|
isDisabled: o,
|
|
542
|
-
isExpanded:
|
|
517
|
+
isExpanded: r,
|
|
543
518
|
showChevron: s,
|
|
544
519
|
tone: l,
|
|
545
|
-
variant:
|
|
520
|
+
variant: c,
|
|
546
521
|
showContextMenuTrigger: d
|
|
547
|
-
} = n,
|
|
522
|
+
} = n, a = l === void 0 ? "default" : l, h = c === void 0 ? "default" : c;
|
|
548
523
|
let p;
|
|
549
|
-
e[0] !== t || e[1] !== d ? (p =
|
|
524
|
+
e[0] !== t || e[1] !== d ? (p = Ht(t, d), e[0] = t, e[1] = d, e[2] = p) : p = e[2];
|
|
550
525
|
const m = p;
|
|
551
526
|
let u;
|
|
552
|
-
e[3] !== o || e[4] !==
|
|
527
|
+
e[3] !== o || e[4] !== r || e[5] !== t || e[6] !== s || e[7] !== a || e[8] !== h ? (u = /* @__PURE__ */ i(_t, { item: t, isExpanded: r, showChevron: s, isDisabled: o, tone: a, variant: h }), e[3] = o, e[4] = r, e[5] = t, e[6] = s, e[7] = a, e[8] = h, e[9] = u) : u = e[9];
|
|
553
528
|
let f;
|
|
554
|
-
e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */
|
|
529
|
+
e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, color: "fg.muted", display: "flex", alignItems: "center", children: t.endContent }) : null, e[10] = t.endContent, e[11] = f) : f = e[11];
|
|
555
530
|
let b;
|
|
556
|
-
e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== d ? (b = m.length > 0 ? /* @__PURE__ */
|
|
531
|
+
e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== d ? (b = m.length > 0 ? /* @__PURE__ */ i(Wt, { actions: m, context: {
|
|
557
532
|
nodeId: t.id
|
|
558
533
|
}, alwaysVisible: d && (t.contextMenuItems?.length ?? 0) > 0 }) : null, e[12] = m, e[13] = t.contextMenuItems?.length, e[14] = t.id, e[15] = d, e[16] = b) : b = e[16];
|
|
559
534
|
let S;
|
|
@@ -562,19 +537,19 @@ const At = (n, e = !0) => {
|
|
|
562
537
|
f,
|
|
563
538
|
b
|
|
564
539
|
] }), e[17] = u, e[18] = f, e[19] = b, e[20] = S) : S = e[20], S;
|
|
565
|
-
},
|
|
540
|
+
}, jt = (n) => {
|
|
566
541
|
if (!(n <= 0))
|
|
567
542
|
return `calc(var(--chakra-spacing-1) + ${n} * 12px)`;
|
|
568
|
-
},
|
|
543
|
+
}, Ft = (n) => n === "compact" || n === "full-width" || n === "empty-state", Nt = (n, e) => n === "collection" && !e ? {
|
|
569
544
|
rowHeight: "collection-row",
|
|
570
545
|
minHeight: void 0
|
|
571
|
-
} :
|
|
546
|
+
} : Ft(n) && !e ? {
|
|
572
547
|
rowHeight: "1.75rem",
|
|
573
548
|
minHeight: void 0
|
|
574
549
|
} : {
|
|
575
550
|
rowHeight: "auto",
|
|
576
551
|
minHeight: n === "default" ? "2.25rem" : "1.75rem"
|
|
577
|
-
},
|
|
552
|
+
}, Kt = (n) => ({
|
|
578
553
|
bg: n.isSelected ? n.selectedBg : "transparent",
|
|
579
554
|
_hover: n.variant === "empty-state" ? {
|
|
580
555
|
bg: "transparent"
|
|
@@ -592,7 +567,7 @@ const At = (n, e = !0) => {
|
|
|
592
567
|
} : {
|
|
593
568
|
bg: n.selectedBg
|
|
594
569
|
}
|
|
595
|
-
}),
|
|
570
|
+
}), Qt = (n) => ({
|
|
596
571
|
...n.rootProps,
|
|
597
572
|
role: n.rowRole,
|
|
598
573
|
"aria-selected": n.rootProps["aria-selected"] ?? (n.rowRole === "option" ? n.isSelected : void 0),
|
|
@@ -611,7 +586,7 @@ const At = (n, e = !0) => {
|
|
|
611
586
|
py: n.verticalPadding,
|
|
612
587
|
pl: n.paddingLeft,
|
|
613
588
|
borderRadius: n.variant === "full-width" || n.variant === "collection" ? "0" : "xs",
|
|
614
|
-
...
|
|
589
|
+
...Kt({
|
|
615
590
|
...n
|
|
616
591
|
}),
|
|
617
592
|
cursor: n.variant === "empty-state" ? "default" : n.isDisabled ? "not-allowed" : "pointer",
|
|
@@ -622,12 +597,12 @@ const At = (n, e = !0) => {
|
|
|
622
597
|
}), Fe = dt((n, e) => {
|
|
623
598
|
const t = O(108), {
|
|
624
599
|
id: o,
|
|
625
|
-
label:
|
|
600
|
+
label: r,
|
|
626
601
|
description: s,
|
|
627
602
|
icon: l,
|
|
628
|
-
iconColor:
|
|
603
|
+
iconColor: c,
|
|
629
604
|
indicator: d,
|
|
630
|
-
endContent:
|
|
605
|
+
endContent: a,
|
|
631
606
|
tooltip: h,
|
|
632
607
|
disabled: p,
|
|
633
608
|
isContainer: m,
|
|
@@ -639,7 +614,7 @@ const At = (n, e = !0) => {
|
|
|
639
614
|
contextMenuItems: Y,
|
|
640
615
|
actions: L,
|
|
641
616
|
children: v,
|
|
642
|
-
onActivate:
|
|
617
|
+
onActivate: R,
|
|
643
618
|
depth: $,
|
|
644
619
|
isSelected: H,
|
|
645
620
|
isExpanded: V,
|
|
@@ -649,8 +624,8 @@ const At = (n, e = !0) => {
|
|
|
649
624
|
tone: Z,
|
|
650
625
|
selectedBg: Te,
|
|
651
626
|
hoverBg: We,
|
|
652
|
-
asChild:
|
|
653
|
-
className:
|
|
627
|
+
asChild: ke,
|
|
628
|
+
className: Re,
|
|
654
629
|
role: Ge,
|
|
655
630
|
onToggleExpand: fe,
|
|
656
631
|
onPointerMove: D,
|
|
@@ -662,16 +637,16 @@ const At = (n, e = !0) => {
|
|
|
662
637
|
onClick: J,
|
|
663
638
|
onKeyDown: oe,
|
|
664
639
|
...pe
|
|
665
|
-
} = n, Oe = $ === void 0 ? 0 : $, Se = H === void 0 ? !1 : H, Ce = V === void 0 ? !1 : V, $e = j === void 0 ? !1 : j, le = F === void 0 ? !0 : F,
|
|
666
|
-
let
|
|
667
|
-
t[0] !== L || t[1] !== v || t[2] !== Y || t[3] !== s || t[4] !== p || t[5] !==
|
|
640
|
+
} = n, Oe = $ === void 0 ? 0 : $, Se = H === void 0 ? !1 : H, Ce = V === void 0 ? !1 : V, $e = j === void 0 ? !1 : j, le = F === void 0 ? !0 : F, ie = Be === void 0 ? "default" : Be, ee = Z === void 0 ? "default" : Z, Je = Te === void 0 ? "bg.active" : Te, we = We === void 0 ? "bg.hover" : We, De = ke === void 0 ? !1 : ke, [me, T] = Ve(!1);
|
|
641
|
+
let re;
|
|
642
|
+
t[0] !== L || t[1] !== v || t[2] !== Y || t[3] !== s || t[4] !== p || t[5] !== a || t[6] !== f || t[7] !== l || t[8] !== c || t[9] !== o || t[10] !== d || t[11] !== m || t[12] !== u || t[13] !== r || t[14] !== S || t[15] !== g || t[16] !== b || t[17] !== R || t[18] !== h ? (re = {
|
|
668
643
|
id: o,
|
|
669
|
-
label:
|
|
644
|
+
label: r,
|
|
670
645
|
description: s,
|
|
671
646
|
icon: l,
|
|
672
|
-
iconColor:
|
|
647
|
+
iconColor: c,
|
|
673
648
|
indicator: d,
|
|
674
|
-
endContent:
|
|
649
|
+
endContent: a,
|
|
675
650
|
tooltip: h,
|
|
676
651
|
disabled: p,
|
|
677
652
|
isContainer: m,
|
|
@@ -683,9 +658,9 @@ const At = (n, e = !0) => {
|
|
|
683
658
|
contextMenuItems: Y,
|
|
684
659
|
actions: L,
|
|
685
660
|
children: v,
|
|
686
|
-
onActivate:
|
|
687
|
-
}, t[0] = L, t[1] = v, t[2] = Y, t[3] = s, t[4] = p, t[5] =
|
|
688
|
-
const M =
|
|
661
|
+
onActivate: R
|
|
662
|
+
}, t[0] = L, t[1] = v, t[2] = Y, t[3] = s, t[4] = p, t[5] = a, t[6] = f, t[7] = l, t[8] = c, t[9] = o, t[10] = d, t[11] = m, t[12] = u, t[13] = r, t[14] = S, t[15] = g, t[16] = b, t[17] = R, t[18] = h, t[19] = re) : re = t[19];
|
|
663
|
+
const M = re;
|
|
689
664
|
let Ie;
|
|
690
665
|
t[20] !== q || t[21] !== I || t[22] !== Le || t[23] !== ne || t[24] !== xe ? (Ie = {
|
|
691
666
|
draggable: q,
|
|
@@ -694,22 +669,22 @@ const At = (n, e = !0) => {
|
|
|
694
669
|
onDragEnd: I,
|
|
695
670
|
onDrop: xe
|
|
696
671
|
}, t[20] = q, t[21] = I, t[22] = Le, t[23] = ne, t[24] = xe, t[25] = Ie) : Ie = t[25];
|
|
697
|
-
const W = Ie, se = (M.children?.length ?? 0) > 0 || M.isContainer === !0, B = (M.menuItems?.length ?? 0) > 0,
|
|
698
|
-
let
|
|
699
|
-
t[26] !== B || t[27] !== y || t[28] !== M || t[29] !==
|
|
672
|
+
const W = Ie, se = (M.children?.length ?? 0) > 0 || M.isContainer === !0, B = (M.menuItems?.length ?? 0) > 0, ce = (M.actions?.length ?? 0) > 0 || (M.contextMenuItems?.length ?? 0) > 0, U = $e && se, y = M.disabled === !0;
|
|
673
|
+
let ae;
|
|
674
|
+
t[26] !== B || t[27] !== y || t[28] !== M || t[29] !== R || t[30] !== fe || t[31] !== U ? (ae = () => {
|
|
700
675
|
if (!y && !B) {
|
|
701
676
|
if (U) {
|
|
702
677
|
fe?.();
|
|
703
678
|
return;
|
|
704
679
|
}
|
|
705
|
-
if (
|
|
706
|
-
|
|
680
|
+
if (R) {
|
|
681
|
+
R();
|
|
707
682
|
return;
|
|
708
683
|
}
|
|
709
684
|
M.onActivate?.();
|
|
710
685
|
}
|
|
711
|
-
}, t[26] = B, t[27] = y, t[28] = M, t[29] =
|
|
712
|
-
const A =
|
|
686
|
+
}, t[26] = B, t[27] = y, t[28] = M, t[29] = R, t[30] = fe, t[31] = U, t[32] = ae) : ae = t[32];
|
|
687
|
+
const A = ae;
|
|
713
688
|
let N;
|
|
714
689
|
t[33] !== A || t[34] !== y || t[35] !== J ? (N = (x) => {
|
|
715
690
|
if (J?.(x), !x.defaultPrevented) {
|
|
@@ -728,7 +703,7 @@ const At = (n, e = !0) => {
|
|
|
728
703
|
x.preventDefault();
|
|
729
704
|
return;
|
|
730
705
|
}
|
|
731
|
-
T(
|
|
706
|
+
T(Gt);
|
|
732
707
|
}
|
|
733
708
|
}, t[37] = y, t[38] = J, t[39] = T, t[40] = de) : de = t[40];
|
|
734
709
|
const ge = de;
|
|
@@ -736,13 +711,13 @@ const At = (n, e = !0) => {
|
|
|
736
711
|
t[41] !== A || t[42] !== B || t[43] !== y || t[44] !== oe || t[45] !== T ? (Q = (x) => {
|
|
737
712
|
if (oe?.(x), !x.defaultPrevented && !(x.key !== "Enter" && x.key !== " ") && (x.preventDefault(), !y)) {
|
|
738
713
|
if (B) {
|
|
739
|
-
T(
|
|
714
|
+
T(Xt);
|
|
740
715
|
return;
|
|
741
716
|
}
|
|
742
717
|
A();
|
|
743
718
|
}
|
|
744
719
|
}, t[41] = A, t[42] = B, t[43] = y, t[44] = oe, t[45] = T, t[46] = Q) : Q = t[46];
|
|
745
|
-
const be = Q, te = M.description !== void 0, ye =
|
|
720
|
+
const be = Q, te = M.description !== void 0, ye = jt(Oe), w = ie === "default" || te ? "xs" : "2xs";
|
|
746
721
|
let ve;
|
|
747
722
|
t[47] !== K || t[48] !== ge || t[49] !== B ? (ve = B ? {
|
|
748
723
|
onClick: ge
|
|
@@ -750,72 +725,72 @@ const At = (n, e = !0) => {
|
|
|
750
725
|
onClick: K
|
|
751
726
|
}, t[47] = K, t[48] = ge, t[49] = B, t[50] = ve) : ve = t[50];
|
|
752
727
|
const G = ve, {
|
|
753
|
-
rowHeight:
|
|
754
|
-
minHeight:
|
|
755
|
-
} =
|
|
728
|
+
rowHeight: it,
|
|
729
|
+
minHeight: rt
|
|
730
|
+
} = Nt(ie, te), ue = Qt({
|
|
756
731
|
rootProps: pe,
|
|
757
732
|
rowRole: Ge ?? (B ? "button" : "option"),
|
|
758
|
-
className:
|
|
733
|
+
className: Re,
|
|
759
734
|
isSelected: Se,
|
|
760
735
|
isExpanded: Ce,
|
|
761
736
|
showChevron: U,
|
|
762
|
-
rowHeight:
|
|
763
|
-
minHeight:
|
|
737
|
+
rowHeight: it,
|
|
738
|
+
minHeight: rt,
|
|
764
739
|
verticalPadding: w,
|
|
765
740
|
paddingLeft: ye,
|
|
766
741
|
selectedBg: Je,
|
|
767
742
|
hoverBg: we,
|
|
768
743
|
tone: ee,
|
|
769
744
|
isDisabled: y,
|
|
770
|
-
variant:
|
|
745
|
+
variant: ie
|
|
771
746
|
});
|
|
772
747
|
let He;
|
|
773
|
-
t[51] !== y || t[52] !== Ce || t[53] !== M || t[54] !== U || t[55] !== le || t[56] !== ee || t[57] !==
|
|
748
|
+
t[51] !== y || t[52] !== Ce || t[53] !== M || t[54] !== U || t[55] !== le || t[56] !== ee || t[57] !== ie ? (He = /* @__PURE__ */ i(Vt, { item: M, isExpanded: Ce, showChevron: U, isDisabled: y, tone: ee, variant: ie, showContextMenuTrigger: le }), t[51] = y, t[52] = Ce, t[53] = M, t[54] = U, t[55] = le, t[56] = ee, t[57] = ie, t[58] = He) : He = t[58];
|
|
774
749
|
const E = He;
|
|
775
750
|
let Ae;
|
|
776
|
-
t[59] !== M || t[60] !== me || t[61] !== T ? (Ae = (x) => /* @__PURE__ */
|
|
777
|
-
T(!1),
|
|
751
|
+
t[59] !== M || t[60] !== me || t[61] !== T ? (Ae = (x) => /* @__PURE__ */ i(xt, { item: M, menuOpen: me, onMenuOpenChange: T, onMenuSelect: (k) => {
|
|
752
|
+
T(!1), k.onAction?.();
|
|
778
753
|
}, children: x }), t[59] = M, t[60] = me, t[61] = T, t[62] = Ae) : Ae = t[62];
|
|
779
|
-
const
|
|
754
|
+
const z = Ae;
|
|
780
755
|
if (De) {
|
|
781
756
|
let x;
|
|
782
|
-
t[63] !== G || t[64] !== E || t[65] !== W || t[66] !== D || t[67] !== e || t[68] !== ue ? (x = /* @__PURE__ */
|
|
783
|
-
let
|
|
784
|
-
return t[70] !== x || t[71] !==
|
|
757
|
+
t[63] !== G || t[64] !== E || t[65] !== W || t[66] !== D || t[67] !== e || t[68] !== ue ? (x = /* @__PURE__ */ i(_e.div, { ref: e, ...ue, ...W, ...G, onPointerMove: D, children: E }), t[63] = G, t[64] = E, t[65] = W, t[66] = D, t[67] = e, t[68] = ue, t[69] = x) : x = t[69];
|
|
758
|
+
let k;
|
|
759
|
+
return t[70] !== x || t[71] !== z ? (k = z(x), t[70] = x, t[71] = z, t[72] = k) : k = t[72], k;
|
|
785
760
|
}
|
|
786
761
|
if (M.href && !U && !y && !B) {
|
|
787
762
|
const x = ue;
|
|
788
|
-
let
|
|
789
|
-
t[73] !== E || t[74] !== W || t[75] !== K || t[76] !== M.href || t[77] !== D || t[78] !== e || t[79] !== x ? (
|
|
763
|
+
let k;
|
|
764
|
+
t[73] !== E || t[74] !== W || t[75] !== K || t[76] !== M.href || t[77] !== D || t[78] !== e || t[79] !== x ? (k = /* @__PURE__ */ i(_e.a, { ref: e, href: M.href, ...x, ...W, onClick: K, onPointerMove: D, children: E }), t[73] = E, t[74] = W, t[75] = K, t[76] = M.href, t[77] = D, t[78] = e, t[79] = x, t[80] = k) : k = t[80];
|
|
790
765
|
let X;
|
|
791
|
-
return t[81] !==
|
|
766
|
+
return t[81] !== k || t[82] !== z ? (X = z(k), t[81] = k, t[82] = z, t[83] = X) : X = t[83], X;
|
|
792
767
|
}
|
|
793
|
-
if (
|
|
794
|
-
const x = y || void 0,
|
|
768
|
+
if (ce) {
|
|
769
|
+
const x = y || void 0, k = pe.tabIndex ?? 0;
|
|
795
770
|
let X;
|
|
796
|
-
t[84] !== G || t[85] !== E || t[86] !== W || t[87] !== be || t[88] !== D || t[89] !== e || t[90] !== ue || t[91] !== x || t[92] !==
|
|
797
|
-
let
|
|
798
|
-
return t[94] !== X || t[95] !==
|
|
771
|
+
t[84] !== G || t[85] !== E || t[86] !== W || t[87] !== be || t[88] !== D || t[89] !== e || t[90] !== ue || t[91] !== x || t[92] !== k ? (X = /* @__PURE__ */ i(_e.div, { ref: e, "aria-disabled": x, ...ue, ...W, ...G, tabIndex: k, onKeyDown: be, onPointerMove: D, children: E }), t[84] = G, t[85] = E, t[86] = W, t[87] = be, t[88] = D, t[89] = e, t[90] = ue, t[91] = x, t[92] = k, t[93] = X) : X = t[93];
|
|
772
|
+
let ze;
|
|
773
|
+
return t[94] !== X || t[95] !== z ? (ze = z(X), t[94] = X, t[95] = z, t[96] = ze) : ze = t[96], ze;
|
|
799
774
|
}
|
|
800
775
|
const Xe = ue;
|
|
801
776
|
let Me;
|
|
802
|
-
t[97] !== G || t[98] !== E || t[99] !== W || t[100] !== y || t[101] !== D || t[102] !== e || t[103] !== Xe ? (Me = /* @__PURE__ */
|
|
777
|
+
t[97] !== G || t[98] !== E || t[99] !== W || t[100] !== y || t[101] !== D || t[102] !== e || t[103] !== Xe ? (Me = /* @__PURE__ */ i(_e.button, { ref: e, type: "button", disabled: y, ...Xe, ...W, ...G, onPointerMove: D, children: E }), t[97] = G, t[98] = E, t[99] = W, t[100] = y, t[101] = D, t[102] = e, t[103] = Xe, t[104] = Me) : Me = t[104];
|
|
803
778
|
let Ee;
|
|
804
|
-
return t[105] !== Me || t[106] !==
|
|
779
|
+
return t[105] !== Me || t[106] !== z ? (Ee = z(Me), t[105] = Me, t[106] = z, t[107] = Ee) : Ee = t[107], Ee;
|
|
805
780
|
});
|
|
806
|
-
function
|
|
781
|
+
function Gt(n) {
|
|
807
782
|
return !n;
|
|
808
783
|
}
|
|
809
|
-
function
|
|
784
|
+
function Xt(n) {
|
|
810
785
|
return !n;
|
|
811
786
|
}
|
|
812
787
|
export {
|
|
813
788
|
lt as H,
|
|
814
789
|
Fe as L,
|
|
815
790
|
pt as R,
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
791
|
+
Ct as S,
|
|
792
|
+
Dt as a,
|
|
793
|
+
Pt as b,
|
|
794
|
+
nn as c
|
|
820
795
|
};
|
|
821
|
-
//# sourceMappingURL=list-row-
|
|
796
|
+
//# sourceMappingURL=list-row-9oxy-F0v.js.map
|