@mechane-ai/ui 0.2.1 → 0.3.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.
Files changed (139) hide show
  1. package/README.md +38 -13
  2. package/dist/ai.js +315 -0
  3. package/dist/assets/stylex.css +1533 -360
  4. package/dist/cartesian-Bwt6ZnF5.js +847 -0
  5. package/dist/chart-input-Bti0gyzz.js +173 -0
  6. package/dist/charts/cartesian.js +1 -0
  7. package/dist/charts/distribution.js +1 -0
  8. package/dist/charts/graph.js +1 -0
  9. package/dist/charts/matrix.js +1 -0
  10. package/dist/charts.js +98 -93
  11. package/dist/code-BJp-g4Fw.js +172 -0
  12. package/dist/collections.js +666 -0
  13. package/dist/content/code.js +1 -0
  14. package/dist/content/diff.js +101 -0
  15. package/dist/content/link.js +1 -0
  16. package/dist/content/tree.js +77 -0
  17. package/dist/content-link-52aZVX3X.js +26 -0
  18. package/dist/content.js +367 -0
  19. package/dist/distribution-CViLvcPP.js +609 -0
  20. package/dist/graph-DAfo72ZD.js +230 -0
  21. package/dist/index.js +1 -1
  22. package/dist/layout.js +201 -160
  23. package/dist/matrix-B9dybkce.js +785 -0
  24. package/dist/packages/ai/src/approval.d.ts +29 -0
  25. package/dist/packages/ai/src/conversation.d.ts +34 -0
  26. package/dist/packages/ai/src/index.d.ts +10 -0
  27. package/dist/packages/ai/src/message.d.ts +19 -0
  28. package/dist/packages/ai/src/prompt-input.d.ts +25 -0
  29. package/dist/packages/ai/src/sources.d.ts +17 -0
  30. package/dist/packages/charts/src/cartesian/categorical.d.ts +43 -0
  31. package/dist/packages/charts/src/cartesian/index.d.ts +8 -0
  32. package/dist/packages/charts/src/cartesian/sparkline.d.ts +11 -0
  33. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +54 -0
  34. package/dist/packages/charts/src/cartesian/time-series-line.d.ts +9 -0
  35. package/dist/packages/charts/src/cartesian/time-series.d.ts +29 -0
  36. package/dist/packages/charts/src/chart-frame.d.ts +34 -0
  37. package/dist/packages/charts/src/chart-input.d.ts +10 -0
  38. package/dist/packages/charts/src/chart-theme.d.ts +48 -0
  39. package/dist/packages/charts/src/distribution/distribution-input.d.ts +14 -0
  40. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +135 -0
  41. package/dist/packages/charts/src/distribution/ecdf.d.ts +23 -0
  42. package/dist/packages/charts/src/distribution/histogram.d.ts +26 -0
  43. package/dist/packages/charts/src/distribution/index.d.ts +8 -0
  44. package/dist/packages/charts/src/distribution/interval-plot.d.ts +24 -0
  45. package/dist/packages/charts/src/distribution/ranked-bars.d.ts +22 -0
  46. package/dist/packages/charts/src/graph/index.d.ts +2 -0
  47. package/dist/packages/charts/src/graph/relation-graph.d.ts +45 -0
  48. package/dist/packages/charts/src/index.d.ts +13 -0
  49. package/dist/packages/charts/src/matrix/color-legend.d.ts +7 -0
  50. package/dist/packages/charts/src/matrix/heatmap-scale.d.ts +8 -0
  51. package/dist/packages/charts/src/matrix/index.d.ts +9 -0
  52. package/dist/packages/charts/src/matrix/matrix.d.ts +34 -0
  53. package/dist/packages/charts/src/matrix/scatter-plot.d.ts +37 -0
  54. package/dist/packages/charts/src/matrix/token-heatmap.d.ts +20 -0
  55. package/dist/packages/charts/src/plot-width.d.ts +5 -0
  56. package/dist/packages/collections/src/calendar.d.ts +32 -0
  57. package/dist/packages/collections/src/collection-controls.d.ts +41 -0
  58. package/dist/packages/collections/src/command.d.ts +37 -0
  59. package/dist/packages/collections/src/data-table.d.ts +49 -0
  60. package/dist/packages/collections/src/date-range-picker.d.ts +16 -0
  61. package/dist/packages/collections/src/index.d.ts +13 -0
  62. package/dist/packages/content/src/code/code-block.d.ts +22 -0
  63. package/dist/packages/content/src/code/index.d.ts +2 -0
  64. package/dist/packages/content/src/code/use-highlighted-code.d.ts +9 -0
  65. package/dist/packages/content/src/content-link.d.ts +8 -0
  66. package/dist/packages/content/src/diff/diff-source.d.ts +32 -0
  67. package/dist/packages/content/src/diff/diff-viewer.d.ts +3 -0
  68. package/dist/packages/content/src/diff/index.d.ts +2 -0
  69. package/dist/packages/content/src/diff/pierre-diff.d.ts +14 -0
  70. package/dist/packages/content/src/index.d.ts +10 -0
  71. package/dist/packages/content/src/json-viewer.d.ts +11 -0
  72. package/dist/packages/content/src/link.d.ts +2 -0
  73. package/dist/packages/content/src/log-viewer.d.ts +9 -0
  74. package/dist/packages/content/src/markdown.d.ts +7 -0
  75. package/dist/packages/content/src/pierre-theme.d.ts +36 -0
  76. package/dist/packages/content/src/stack-trace.d.ts +16 -0
  77. package/dist/packages/content/src/tree/file-tree-types.d.ts +12 -0
  78. package/dist/packages/content/src/tree/file-tree.d.ts +3 -0
  79. package/dist/packages/content/src/tree/index.d.ts +2 -0
  80. package/dist/packages/content/src/tree/pierre-tree.d.ts +3 -0
  81. package/dist/packages/core/src/alert-dialog.d.ts +18 -0
  82. package/dist/packages/core/src/combobox.d.ts +81 -0
  83. package/dist/{control-state.d.ts → packages/core/src/control-state.d.ts} +18 -2
  84. package/dist/{copy-value.d.ts → packages/core/src/copy-value.d.ts} +2 -1
  85. package/dist/packages/core/src/details-controls.d.ts +23 -0
  86. package/dist/packages/core/src/disclosure.d.ts +33 -0
  87. package/dist/packages/core/src/field-styles.d.ts +66 -0
  88. package/dist/packages/core/src/form-controls.d.ts +81 -0
  89. package/dist/{forms.d.ts → packages/core/src/forms.d.ts} +1 -1
  90. package/dist/packages/core/src/index.d.ts +32 -0
  91. package/dist/packages/core/src/menu.d.ts +51 -0
  92. package/dist/packages/core/src/navigation.d.ts +24 -0
  93. package/dist/packages/core/src/popover.d.ts +24 -0
  94. package/dist/packages/core/src/popup-styles.d.ts +84 -0
  95. package/dist/packages/core/src/preview.d.ts +17 -0
  96. package/dist/packages/core/src/progress.d.ts +10 -0
  97. package/dist/packages/core/src/selection-styles.d.ts +110 -0
  98. package/dist/packages/core/src/selection.d.ts +57 -0
  99. package/dist/packages/core/src/skeleton.d.ts +18 -0
  100. package/dist/packages/core/src/theme.d.ts +16 -0
  101. package/dist/packages/core/src/toast.d.ts +28 -0
  102. package/dist/{tokens.stylex.d.ts → packages/core/src/tokens.stylex.d.ts} +60 -0
  103. package/dist/packages/core/src/trace.d.ts +35 -0
  104. package/dist/{layout → packages/layout/src}/index.d.ts +2 -0
  105. package/dist/{layout → packages/layout/src}/page-toolbar.d.ts +1 -1
  106. package/dist/packages/layout/src/resizable.d.ts +27 -0
  107. package/dist/{layout → packages/layout/src}/sidebar.d.ts +1 -1
  108. package/dist/pierre-diff-D3m4JCu0.js +66 -0
  109. package/dist/pierre-theme-CPlfl-AA.js +96 -0
  110. package/dist/pierre-tree-BaEkz16y.js +105 -0
  111. package/dist/plot-width--OgdohB5.js +18 -0
  112. package/dist/src-E7YRJBMO.js +2821 -0
  113. package/dist/tokens.js +118 -64
  114. package/package.json +67 -10
  115. package/{src → packages/core/src}/tokens.stylex.ts +64 -0
  116. package/dist/charts/index.d.ts +0 -2
  117. package/dist/index.d.ts +0 -16
  118. package/dist/src-Czfi0YQa.js +0 -1319
  119. /package/dist/{charts → packages/charts/src}/waterfall.d.ts +0 -0
  120. /package/dist/{inspector.d.ts → packages/collections/src/inspector.d.ts} +0 -0
  121. /package/dist/{list-footer.d.ts → packages/collections/src/list-footer.d.ts} +0 -0
  122. /package/dist/{table.d.ts → packages/collections/src/table.d.ts} +0 -0
  123. /package/dist/{accessibility.d.ts → packages/core/src/accessibility.d.ts} +0 -0
  124. /package/dist/{actions.d.ts → packages/core/src/actions.d.ts} +0 -0
  125. /package/dist/{dialog.d.ts → packages/core/src/dialog.d.ts} +0 -0
  126. /package/dist/{drawer.d.ts → packages/core/src/drawer.d.ts} +0 -0
  127. /package/dist/{loading.d.ts → packages/core/src/loading.d.ts} +0 -0
  128. /package/dist/{metrics.d.ts → packages/core/src/metrics.d.ts} +0 -0
  129. /package/dist/{overlay-styles.d.ts → packages/core/src/overlay-styles.d.ts} +0 -0
  130. /package/dist/{select.d.ts → packages/core/src/select.d.ts} +0 -0
  131. /package/dist/{skip-link.d.ts → packages/core/src/skip-link.d.ts} +0 -0
  132. /package/dist/{style-composition.d.ts → packages/core/src/style-composition.d.ts} +0 -0
  133. /package/dist/{surfaces.d.ts → packages/core/src/surfaces.d.ts} +0 -0
  134. /package/dist/{tabs.d.ts → packages/core/src/tabs.d.ts} +0 -0
  135. /package/dist/{text.d.ts → packages/core/src/text.d.ts} +0 -0
  136. /package/dist/{tooltip.d.ts → packages/core/src/tooltip.d.ts} +0 -0
  137. /package/dist/{layout → packages/layout/src}/app-shell.d.ts +0 -0
  138. /package/dist/{layout → packages/layout/src}/detail-page.d.ts +0 -0
  139. /package/dist/{layout → packages/layout/src}/frame.stylex.d.ts +0 -0
@@ -0,0 +1,666 @@
1
+ import { C as e, G as t, J as n, at as r, c as i, it as a, m as o, ot as s, rt as c } from "./src-E7YRJBMO.js";
2
+ import { mergeProps as l } from "@base-ui/react/merge-props";
3
+ import * as u from "@stylexjs/stylex";
4
+ import { Fragment as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
5
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
6
+ import { ArrowDown as v, ArrowUp as y, ArrowUpDown as b, CalendarDays as x, ChevronLeft as S, ChevronRight as C, Columns3 as w, X as T } from "lucide-react";
7
+ import { createColumnHelper as E, tableFeatures as D, useTable as ee } from "@tanstack/react-table";
8
+ import { defaultRangeExtractor as te, useVirtualizer as ne } from "@tanstack/react-virtual";
9
+ import { DayButton as O, DayPicker as k, TZDate as A } from "@daypicker/react";
10
+ import { Autocomplete as j } from "@base-ui/react/autocomplete";
11
+ import { useFormatForDisplay as M, useHotkeys as N } from "@tanstack/react-hotkeys";
12
+ // packages/collections/src/list-footer.tsx
13
+ function P({ children: e, actions: t, ...n }) {
14
+ return /* @__PURE__ */ _("div", {
15
+ ...l({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xtmze7h x1v5xpdt xom4gu7 x178xt8z x13fuv20 x1cbnph0 xv9cywu xoedhln xvmahel x118kxxs x1hyyzld" }, n),
16
+ children: [/* @__PURE__ */ g("div", { children: e }), t != null && /* @__PURE__ */ g("div", {
17
+ className: "x78zum5 x6s0dn4 xf0fr40",
18
+ children: t
19
+ })]
20
+ });
21
+ }
22
+ // packages/collections/src/table.tsx
23
+ var F = {
24
+ kzqmXN: "x5lhr3w",
25
+ $$css: !0
26
+ }, I = {
27
+ secondary: {
28
+ k1xSpc: "x1n9xxwz x1rlgm0d",
29
+ $$css: !0
30
+ },
31
+ compactWidth: {
32
+ kzqmXN: "x11576mx",
33
+ $$css: !0
34
+ },
35
+ column: (e) => [F, { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
36
+ th: {
37
+ kVAEAm: "x1n2onr6",
38
+ kZKoxP: "xc9qbxq",
39
+ kB7OPa: "x9f619",
40
+ k8WAf4: "xt970qd",
41
+ kg3NbH: "xom4gu7",
42
+ kWkggS: "x1l90twa",
43
+ kMwMTN: "xv9cywu",
44
+ kGuDYH: "xut3y95",
45
+ k63SB2: "xo1l8bm",
46
+ khDVqt: "xuxw1ft",
47
+ k5JduY: "x1s928wv",
48
+ kwXMNM: "x1j6awrg",
49
+ kLxBhq: "xnbfe2x",
50
+ k3foIR: "xxb5w0g",
51
+ k4zj60: "x1a5uphr",
52
+ kkgrvl: "xv6d0c5",
53
+ ks3ayO: "x6fk38j",
54
+ $$css: !0
55
+ },
56
+ lastHeader: {
57
+ kc3QkE: "x1h1zc6f",
58
+ $$css: !0
59
+ },
60
+ lastPrimaryHeader: {
61
+ kc3QkE: "x10ee7l9",
62
+ $$css: !0
63
+ }
64
+ };
65
+ function L({ headers: e, children: t, label: n, ...r }) {
66
+ let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
67
+ return /* @__PURE__ */ g("div", {
68
+ role: "region",
69
+ "aria-label": n,
70
+ tabIndex: 0,
71
+ className: "xeuugli xh8yej3 xw2csxc xnktsf1 x9v5kkp x1m2ab5f x1bqaal",
72
+ children: /* @__PURE__ */ _("table", {
73
+ ...l({ "aria-label": n }, {
74
+ 0: { className: "xh8yej3 x1mwwwfo x1l90twa xoedhln xvmahel x118kxxs x1hyyzld xdpxx8g" },
75
+ 1: { className: "xh8yej3 x1mwwwfo x1l90twa xoedhln xvmahel x118kxxs x1hyyzld xdpxx8g x140o2bo" }
76
+ }[!!e.some((e) => typeof e != "string") | 0], r),
77
+ children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ g("tr", { children: e.map((t, n) => /* @__PURE__ */ g("th", {
78
+ scope: "col",
79
+ ...u.props(I.th, typeof t != "string" && I.column(t.width), typeof t != "string" && I.compactWidth, typeof t != "string" && t.secondary === !0 && I.secondary, n === e.length - 1 && I.lastHeader, n === i && I.lastPrimaryHeader),
80
+ children: typeof t == "string" ? t : t.label
81
+ }, typeof t == "string" ? t : t.label)) }) }), /* @__PURE__ */ g("tbody", { children: t })]
82
+ })
83
+ });
84
+ }
85
+ function R({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
86
+ return /* @__PURE__ */ _("td", {
87
+ ...l({
88
+ 0: { className: "x14o62y9 x9f619 x1t0vds8 xom4gu7 xgl13c xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
89
+ 1: { className: "x14o62y9 x9f619 x1t0vds8 xom4gu7 xgl13c xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv x1n9xxwz x1rlgm0d" }
90
+ }[!!t | 0], r),
91
+ children: [e, n !== void 0 && /* @__PURE__ */ g("small", {
92
+ className: "x1s85apg xoozo8h xv9cywu xut3y95 xam3yii xb3r6kr xlyipyv",
93
+ children: n
94
+ })]
95
+ });
96
+ }
97
+ // packages/collections/src/inspector.tsx
98
+ function z({ master: e, detail: t, label: n, ...r }) {
99
+ return /* @__PURE__ */ _("div", {
100
+ ...l({ className: "xrvj5dj x1mkdm3x xmkeg23 x1y0btm7 x1yww3zy x1fa2hmj x1l90twa xb3r6kr" }, r),
101
+ children: [/* @__PURE__ */ g("div", {
102
+ className: "xeuugli",
103
+ children: e
104
+ }), /* @__PURE__ */ g("aside", {
105
+ "aria-label": n,
106
+ className: "xeuugli x1y2y7x9 x1l90twa x178xt8z x13fuv20 x1cbnph0",
107
+ children: t
108
+ })]
109
+ });
110
+ }
111
+ function B({ items: e, ...t }) {
112
+ return /* @__PURE__ */ g("dl", {
113
+ ...l({ className: "x1ghz6dp xrvj5dj x10i657a xeneseh x17nxlul xoedhln xvmahel x118kxxs x1hyyzld" }, t),
114
+ children: e.map(({ label: e, value: t }) => /* @__PURE__ */ _("div", {
115
+ className: "xjp7ctv",
116
+ children: [/* @__PURE__ */ g("dt", {
117
+ className: "xv9cywu",
118
+ children: e
119
+ }), /* @__PURE__ */ g("dd", {
120
+ className: "x1ghz6dp xgl13c xj0a0fe xss6m8b",
121
+ children: t
122
+ })]
123
+ }, e))
124
+ });
125
+ }
126
+ // packages/collections/src/data-table.tsx
127
+ var V = D({}), H = {
128
+ kmVPX3: "x1717udv",
129
+ kMzoRj: "xc342km",
130
+ $$css: !0
131
+ }, U = {
132
+ viewport: {
133
+ k7Eaqz: "xeuugli",
134
+ kVQacm: "xysyzu8",
135
+ kZeWKH: "xish69e",
136
+ kPJHz1: "xnktsf1",
137
+ k7shQP: "x9v5kkp",
138
+ kZs9gx: "x1m2ab5f",
139
+ kiEn40: "x1bqaal",
140
+ $$css: !0
141
+ },
142
+ virtual: (e) => [{
143
+ kskxy: e == null ? e : "x1jols5v",
144
+ $$css: !0
145
+ }, { "--x-maxHeight": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }],
146
+ header: {
147
+ kVAEAm: "x7wzq59",
148
+ k87sOh: "x13vifvy",
149
+ kY2c9j: "x1vjfegm",
150
+ kZKoxP: "xc9qbxq",
151
+ k8WAf4: "xt970qd",
152
+ kg3NbH: "xom4gu7",
153
+ kt9PQ7: "xso031l",
154
+ kfdmCh: "x1q0q8m5",
155
+ kL6WhQ: "x7a6td9",
156
+ kMwMTN: "xv9cywu",
157
+ kWkggS: "x1l90twa",
158
+ k63SB2: "xo1l8bm",
159
+ kGuDYH: "xut3y95",
160
+ khDVqt: "xuxw1ft",
161
+ $$css: !0
162
+ },
163
+ cell: {
164
+ k8WAf4: "x4wz14",
165
+ kg3NbH: "xom4gu7",
166
+ kXLuUW: "xxymvpz",
167
+ kHjlTd: "xj0a0fe",
168
+ $$css: !0
169
+ },
170
+ start: {
171
+ k9WMMc: "x1yc453h",
172
+ $$css: !0
173
+ },
174
+ end: {
175
+ k9WMMc: "xp4054r",
176
+ $$css: !0
177
+ },
178
+ width: (e) => [{
179
+ kzqmXN: e == null ? e : "x5lhr3w",
180
+ $$css: !0
181
+ }, { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }],
182
+ spacer: (e) => [
183
+ H,
184
+ {
185
+ kZKoxP: e == null ? e : "x16ye13r",
186
+ $$css: !0
187
+ },
188
+ { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
189
+ ]
190
+ }, W = {
191
+ start: U.start,
192
+ end: U.end
193
+ };
194
+ function G({ rows: t, columns: n, getRowId: r, caption: i, empty: a, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: l, selectionLabel: x, window: S, footer: C }) {
195
+ let w = p(() => {
196
+ let e = E();
197
+ return e.columns(n.map((t) => e.display({
198
+ id: t.id,
199
+ header: t.label
200
+ })));
201
+ }, [n]), T = ee({
202
+ features: V,
203
+ columns: w,
204
+ data: t,
205
+ getRowId: r
206
+ }), D = m(null), O = m(null), k = m(null), [A, j] = h(0), [M, N] = h(), P = t.findIndex((e) => r(e) === M);
207
+ f(() => {
208
+ let e = O.current, t = k.current;
209
+ if (S === void 0 || e === null || t === null) return;
210
+ let n = new ResizeObserver(() => j(e.offsetHeight + t.offsetHeight));
211
+ return n.observe(e), n.observe(t), () => n.disconnect();
212
+ }, [S]);
213
+ let F = ne({
214
+ count: t.length,
215
+ enabled: S !== void 0,
216
+ getScrollElement: () => D.current,
217
+ getItemKey: (e) => {
218
+ let n = t[e];
219
+ if (n === void 0) throw RangeError("The virtual row is outside the supplied table page.");
220
+ return r(n);
221
+ },
222
+ estimateSize: () => S?.estimatedRowHeight ?? 44,
223
+ scrollMargin: A,
224
+ scrollPaddingStart: A,
225
+ overscan: 6,
226
+ rangeExtractor: (e) => {
227
+ let n = te(e);
228
+ return P === -1 ? n : [.../* @__PURE__ */ new Set([
229
+ ...n,
230
+ P - 1,
231
+ P,
232
+ P + 1
233
+ ])].filter((e) => e >= 0 && e < t.length).toSorted((e, t) => e - t);
234
+ }
235
+ }), I = S === void 0 ? T.getRowModel().rows.map((e, t) => ({
236
+ row: e,
237
+ index: t,
238
+ gap: 0
239
+ })) : F.getVirtualItems().flatMap((e, t, n) => {
240
+ let r = T.getRowModel().rows[e.index];
241
+ return r === void 0 ? [] : [{
242
+ row: r,
243
+ index: e.index,
244
+ gap: e.start - (n[t - 1]?.end ?? A)
245
+ }];
246
+ }), L = n.length + (c === void 0 ? 0 : 1), R = F.getTotalSize() - (F.getVirtualItems().at(-1)?.end ?? A) + A;
247
+ return /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("div", {
248
+ ref: D,
249
+ role: "region",
250
+ "aria-label": i,
251
+ tabIndex: 0,
252
+ ...u.props(U.viewport, S !== void 0 && U.virtual(S.height)),
253
+ children: /* @__PURE__ */ _("table", {
254
+ "aria-rowcount": S === void 0 ? void 0 : t.length + 1,
255
+ className: "xh8yej3 x1mwwwfo xoedhln x118kxxs x1hyyzld xss6m8b xdpxx8g xgl13c x1l90twa",
256
+ children: [
257
+ /* @__PURE__ */ g("caption", {
258
+ ref: O,
259
+ className: "xdpxx8g x1h65vws xv9cywu xut3y95",
260
+ children: i
261
+ }),
262
+ /* @__PURE__ */ g("thead", {
263
+ ref: k,
264
+ children: /* @__PURE__ */ _("tr", { children: [c !== void 0 && /* @__PURE__ */ g("th", {
265
+ scope: "col",
266
+ className: "x7wzq59 x13vifvy x1vjfegm xc9qbxq xt970qd xso031l x1q0q8m5 x7a6td9 xv9cywu x1l90twa xo1l8bm xut3y95 xuxw1ft x187nhsf xom4gu7",
267
+ children: "Select"
268
+ }), n.map((e) => {
269
+ let t = o?.columnId === e.id ? o.direction : void 0;
270
+ return /* @__PURE__ */ g("th", {
271
+ scope: "col",
272
+ "aria-sort": t,
273
+ ...u.props(U.header, W[e.align ?? "start"], e.width !== void 0 && U.width(e.width)),
274
+ children: e.sortable === !0 && s !== void 0 ? /* @__PURE__ */ _("button", {
275
+ type: "button",
276
+ className: "x3nfvp2 x6s0dn4 xf0fr40 x1ansdh9 xekz7sd x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk x3asxtb xnktsf1 x9v5kkp x1m2ab5f x7s97pk",
277
+ onClick: () => {
278
+ s(t === "ascending" ? {
279
+ columnId: e.id,
280
+ direction: "descending"
281
+ } : t === "descending" ? void 0 : {
282
+ columnId: e.id,
283
+ direction: "ascending"
284
+ });
285
+ },
286
+ children: [e.label, g(t === "ascending" ? y : t === "descending" ? v : b, {
287
+ size: 14,
288
+ "aria-hidden": "true"
289
+ })]
290
+ }) : e.label
291
+ }, e.id);
292
+ })] })
293
+ }),
294
+ /* @__PURE__ */ _("tbody", {
295
+ onBlur: (e) => {
296
+ e.currentTarget.contains(e.relatedTarget) || N(void 0);
297
+ },
298
+ children: [
299
+ I.map(({ row: t, index: r, gap: i }) => /* @__PURE__ */ _(d, { children: [i > 0 && /* @__PURE__ */ g("tr", {
300
+ "aria-hidden": "true",
301
+ children: /* @__PURE__ */ g("td", {
302
+ colSpan: L,
303
+ ...u.props(U.spacer(i))
304
+ })
305
+ }), /* @__PURE__ */ _("tr", {
306
+ "data-index": r,
307
+ "aria-rowindex": S === void 0 ? void 0 : r + 2,
308
+ ref: S === void 0 ? void 0 : F.measureElement,
309
+ onFocus: () => N(t.id),
310
+ ...{
311
+ 0: { className: "x14o62y9 xso031l x1q0q8m5 x7a6td9 x160po9z" },
312
+ 1: { className: "x14o62y9 xso031l x1q0q8m5 x7a6td9 x160po9z xzriygp" }
313
+ }[c?.has(t.id) === !0 | 0],
314
+ children: [c !== void 0 && /* @__PURE__ */ g("td", {
315
+ className: "x4wz14 xxymvpz xj0a0fe x187nhsf xom4gu7",
316
+ children: /* @__PURE__ */ g(e.Root, {
317
+ "aria-label": x(t.original),
318
+ checked: c.has(t.id),
319
+ onCheckedChange: (e) => {
320
+ let n = new Set(c);
321
+ e ? n.add(t.id) : n.delete(t.id), l(n);
322
+ },
323
+ children: /* @__PURE__ */ g(e.Indicator, {})
324
+ })
325
+ }), n.map((e) => /* @__PURE__ */ g("td", {
326
+ ...u.props(U.cell, W[e.align ?? "start"]),
327
+ children: e.cell(t.original)
328
+ }, e.id))]
329
+ })] }, t.id)),
330
+ S !== void 0 && R > 0 && /* @__PURE__ */ g("tr", {
331
+ "aria-hidden": "true",
332
+ children: /* @__PURE__ */ g("td", {
333
+ colSpan: L,
334
+ ...u.props(U.spacer(R))
335
+ })
336
+ }),
337
+ t.length === 0 && /* @__PURE__ */ g("tr", { children: /* @__PURE__ */ g("td", {
338
+ colSpan: L,
339
+ className: "xpt1zns x2b8uid xv9cywu",
340
+ children: a
341
+ }) })
342
+ ]
343
+ })
344
+ ]
345
+ })
346
+ }), C !== void 0 && /* @__PURE__ */ g("div", {
347
+ className: "x1h65vws x178xt8z x13fuv20 x1cbnph0",
348
+ children: C
349
+ })] });
350
+ }
351
+ // packages/collections/src/collection-controls.tsx
352
+ function K({ label: e, children: t, actions: n }) {
353
+ return /* @__PURE__ */ _("div", {
354
+ role: "group",
355
+ "aria-label": e,
356
+ className: "x78zum5 x6s0dn4 x1a02dak xf0fr40 x1h65vws xso031l x1q0q8m5 x7a6td9",
357
+ children: [t, n !== void 0 && /* @__PURE__ */ g("div", {
358
+ className: "x78zum5 x6s0dn4 xf0fr40 xvc5jky",
359
+ children: n
360
+ })]
361
+ });
362
+ }
363
+ function q({ filters: e, onRemove: t, label: n = "Applied filters" }) {
364
+ return /* @__PURE__ */ g("div", {
365
+ role: "group",
366
+ "aria-label": n,
367
+ className: "x78zum5 x6s0dn4 x1a02dak xf0fr40",
368
+ children: e.map((e) => /* @__PURE__ */ _("span", {
369
+ className: "x3nfvp2 x6s0dn4 xzwl0l2 xd85154 xmkeg23 x1y0btm7 x1yww3zy x12oqio5 x1l90twa xgl13c xoedhln x118kxxs",
370
+ children: [e.label, /* @__PURE__ */ g(r, {
371
+ "aria-label": `Remove ${e.label}`,
372
+ variant: "ghost",
373
+ onClick: () => t(e.id),
374
+ children: /* @__PURE__ */ g(T, {
375
+ size: 14,
376
+ "aria-hidden": "true"
377
+ })
378
+ })]
379
+ }, e.id))
380
+ });
381
+ }
382
+ function J({ columns: t, onVisibilityChange: n, label: r = "Columns" }) {
383
+ return /* @__PURE__ */ _(o.Root, { children: [/* @__PURE__ */ _(o.Trigger, {
384
+ render: /* @__PURE__ */ g(a, { variant: "outline" }),
385
+ children: [/* @__PURE__ */ g(w, {
386
+ size: 16,
387
+ "aria-hidden": "true"
388
+ }), r]
389
+ }), /* @__PURE__ */ g(o.Portal, { children: /* @__PURE__ */ g(o.Positioner, {
390
+ align: "end",
391
+ children: /* @__PURE__ */ g(o.Popup, {
392
+ "aria-label": r,
393
+ children: /* @__PURE__ */ g("div", {
394
+ className: "xrvj5dj xtmze7h xfb3i0g",
395
+ children: t.map((t) => /* @__PURE__ */ _("label", {
396
+ className: "x78zum5 x6s0dn4 xf0fr40 xgl13c x118kxxs xoedhln",
397
+ children: [/* @__PURE__ */ g(e.Root, {
398
+ checked: t.visible,
399
+ onCheckedChange: (e) => n(t.id, e),
400
+ disabled: t.required,
401
+ children: /* @__PURE__ */ g(e.Indicator, {})
402
+ }), t.label]
403
+ }, t.id))
404
+ })
405
+ })
406
+ }) })] });
407
+ }
408
+ function Y({ description: e, previous: t, next: n }) {
409
+ return /* @__PURE__ */ _("nav", {
410
+ "aria-label": "Pagination",
411
+ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xlye18i",
412
+ children: [/* @__PURE__ */ g(c, { children: e }), /* @__PURE__ */ _("div", {
413
+ className: "x78zum5 x6s0dn4 xf0fr40 xvc5jky",
414
+ children: [/* @__PURE__ */ _(a, {
415
+ variant: "outline",
416
+ disabled: t.disabled,
417
+ onClick: t.onClick,
418
+ children: [/* @__PURE__ */ g(S, {
419
+ size: 16,
420
+ "aria-hidden": "true"
421
+ }), "Previous"]
422
+ }), /* @__PURE__ */ _(a, {
423
+ variant: "outline",
424
+ disabled: n.disabled,
425
+ onClick: n.onClick,
426
+ children: ["Next", /* @__PURE__ */ g(C, {
427
+ size: 16,
428
+ "aria-hidden": "true"
429
+ })]
430
+ })]
431
+ })]
432
+ });
433
+ }
434
+ // packages/collections/src/calendar.tsx
435
+ function X(e, t) {
436
+ return new A(e.year, e.month - 1, e.day, 12, 0, 0, t);
437
+ }
438
+ function Z(e) {
439
+ return {
440
+ year: e.getFullYear(),
441
+ month: e.getMonth() + 1,
442
+ day: e.getDate()
443
+ };
444
+ }
445
+ function re({ className: e, modifiers: t, ...n }) {
446
+ let r = {
447
+ 0: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d x1fa2hmj xjbqb8w xgl13c xoedhln x118kxxs xss6m8b x1ypdohk x13xo852 xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42" },
448
+ 8: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d x1fa2hmj xjbqb8w xoedhln x118kxxs xss6m8b x1ypdohk x13xo852 xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 xv9cywu" },
449
+ 4: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1fa2hmj xjbqb8w xgl13c xoedhln x118kxxs xss6m8b x1ypdohk x13xo852 xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy" },
450
+ 12: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1fa2hmj xjbqb8w xoedhln x118kxxs xss6m8b x1ypdohk x13xo852 xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 xv9cywu x1yww3zy" },
451
+ 2: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d x1fa2hmj xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 xdmi70j x19sv33v x2efpn4" },
452
+ 10: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d x1fa2hmj xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 xdmi70j x19sv33v x2efpn4" },
453
+ 6: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1fa2hmj xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy xdmi70j x19sv33v x2efpn4" },
454
+ 14: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1fa2hmj xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy xdmi70j x19sv33v x2efpn4" },
455
+ 1: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x2u8bby xgl13c x1m7rfvg x13xo852" },
456
+ 9: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x2u8bby xgl13c x1m7rfvg x13xo852" },
457
+ 5: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy x2u8bby xgl13c x1m7rfvg x13xo852" },
458
+ 13: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy x2u8bby xgl13c x1m7rfvg x13xo852" },
459
+ 3: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x2u8bby xgl13c x1m7rfvg x13xo852" },
460
+ 11: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x9r1u3d xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x2u8bby xgl13c x1m7rfvg x13xo852" },
461
+ 7: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy x2u8bby xgl13c x1m7rfvg x13xo852" },
462
+ 15: { className: "x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 xoedhln x118kxxs xss6m8b x1ypdohk xnktsf1 x9v5kkp x1m2ab5f x1bqaal xe5wh3a xtgyt42 x1yww3zy x2u8bby xgl13c x1m7rfvg x13xo852" }
463
+ }[(t.outside === !0) << 3 | (t.today === !0) << 2 | (t.selected === !0) << 1 | t.range_middle === !0];
464
+ return /* @__PURE__ */ g(O, {
465
+ ...n,
466
+ modifiers: t,
467
+ className: [e, r.className].filter(Boolean).join(" ")
468
+ });
469
+ }
470
+ function Q(e) {
471
+ let { locale: t, timeZone: n, today: r, initialMonth: i, minimum: a, maximum: o, weekStartsOn: s = 1, label: c } = e, l = [];
472
+ a !== void 0 && l.push({ before: X(a, n) }), o !== void 0 && l.push({ after: X(o, n) });
473
+ let u = {
474
+ "aria-label": c,
475
+ timeZone: n,
476
+ noonSafe: !0,
477
+ autoFocus: e.autoFocus ?? !1,
478
+ weekStartsOn: s,
479
+ today: X(r, n),
480
+ defaultMonth: X(i, n),
481
+ startMonth: a === void 0 ? void 0 : X(a, n),
482
+ disabled: l,
483
+ showOutsideDays: !0,
484
+ components: { DayButton: re },
485
+ classNames: {
486
+ root: { className: "xgl13c x1l90twa xoedhln x118kxxs x1hyyzld x1717udv xezivpi x193iq5w" }.className ?? "",
487
+ months: { className: "x78zum5 x1a02dak x1n2onr6 x179h1ev" }.className ?? "",
488
+ month_caption: { className: "x78zum5 x6s0dn4 xl56j7k x75emn7 xegg4c4" }.className ?? "",
489
+ caption_label: { className: "x1hm5896 xk50ysn" }.className ?? "",
490
+ nav: { className: "x10l6tqk x17y0mx6 x13vifvy x78zum5 x1qughib x47corl" }.className ?? "",
491
+ button_previous: { className: "x3nfvp2 x6s0dn4 xl56j7k x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1yww3zy x1fa2hmj xgl13c x1l90twa x67bb7w x1ypdohk xe5wh3a xtgyt42 x13xo852 xnktsf1 x9v5kkp x1m2ab5f x13iak60" }.className ?? "",
492
+ button_next: { className: "x3nfvp2 x6s0dn4 xl56j7k x1mji6ln xbr7t2x x75emn7 xv0o0l7 x1717udv xmkeg23 x1y0btm7 x1yww3zy x1fa2hmj xgl13c x1l90twa x67bb7w x1ypdohk xe5wh3a xtgyt42 x13xo852 xnktsf1 x9v5kkp x1m2ab5f x13iak60" }.className ?? "",
493
+ chevron: { className: "xbor0ac x1sqm5u1 x117rol3" }.className ?? "",
494
+ month_grid: { className: "x1mwwwfo x1gukg7c" }.className ?? "",
495
+ weekday: { className: "xv9cywu xo1l8bm xut3y95 xqnyy47 x2b8uid" }.className ?? "",
496
+ day: { className: "x1717udv x2b8uid" }.className ?? "",
497
+ hidden: { className: "xlshs6z" }.className ?? ""
498
+ },
499
+ formatters: {
500
+ formatCaption: (e) => new Intl.DateTimeFormat(t, {
501
+ month: "long",
502
+ year: "numeric",
503
+ timeZone: n
504
+ }).format(e),
505
+ formatDay: (e) => new Intl.DateTimeFormat(t, {
506
+ day: "numeric",
507
+ timeZone: n
508
+ }).format(e),
509
+ formatWeekdayName: (e) => new Intl.DateTimeFormat(t, {
510
+ weekday: "short",
511
+ timeZone: n
512
+ }).format(e)
513
+ }
514
+ };
515
+ if (o !== void 0 && (u.endMonth = X(o, n)), e.mode === "single") return /* @__PURE__ */ g(k, {
516
+ ...u,
517
+ mode: "single",
518
+ selected: e.value === void 0 ? void 0 : X(e.value, n),
519
+ onSelect: (t) => e.onValueChange(t === void 0 ? void 0 : Z(t))
520
+ }, n);
521
+ let d = e.value === void 0 ? void 0 : {
522
+ from: X(e.value.from, n),
523
+ to: e.value.to === void 0 ? void 0 : X(e.value.to, n)
524
+ };
525
+ return /* @__PURE__ */ g(k, {
526
+ ...u,
527
+ mode: "range",
528
+ resetOnSelect: !0,
529
+ selected: d,
530
+ onSelect: (t) => e.onValueChange(t?.from === void 0 ? void 0 : {
531
+ from: Z(t.from),
532
+ to: t.to === void 0 ? void 0 : Z(t.to)
533
+ })
534
+ }, n);
535
+ }
536
+ // packages/collections/src/date-range-picker.tsx
537
+ function ie({ label: e, value: t, onValueChange: n, formatValue: r, presets: i = [], disabled: c, ...l }) {
538
+ let [u, d] = h(!1);
539
+ return /* @__PURE__ */ _(o.Root, {
540
+ open: u,
541
+ onOpenChange: d,
542
+ children: [/* @__PURE__ */ _(o.Trigger, {
543
+ disabled: c,
544
+ render: /* @__PURE__ */ g(a, { variant: "outline" }),
545
+ "aria-label": e,
546
+ children: [/* @__PURE__ */ g(x, {
547
+ size: 16,
548
+ "aria-hidden": "true"
549
+ }), t === void 0 ? e : r(t)]
550
+ }), /* @__PURE__ */ g(o.Portal, { children: /* @__PURE__ */ g(o.Positioner, {
551
+ align: "start",
552
+ children: /* @__PURE__ */ g(o.Popup, {
553
+ "aria-label": e,
554
+ children: /* @__PURE__ */ _("div", {
555
+ className: "x78zum5 xdt5ytf xf0fr40",
556
+ children: [
557
+ i.length > 0 && /* @__PURE__ */ g("div", {
558
+ role: "group",
559
+ "aria-label": "Date presets",
560
+ className: "x78zum5 x1a02dak xzwl0l2 x1bj9b0c xso031l x1q0q8m5 x7a6td9",
561
+ children: i.map((e) => /* @__PURE__ */ g(a, {
562
+ size: "sm",
563
+ variant: "ghost",
564
+ onClick: () => {
565
+ n(e.value), d(!1);
566
+ },
567
+ children: e.label
568
+ }, e.id))
569
+ }),
570
+ /* @__PURE__ */ g(Q, {
571
+ ...l,
572
+ label: e,
573
+ mode: "range",
574
+ autoFocus: !0,
575
+ value: t,
576
+ onValueChange: (e) => {
577
+ n(e), e?.to !== void 0 && d(!1);
578
+ }
579
+ }),
580
+ /* @__PURE__ */ _("div", {
581
+ className: "x78zum5 x1qughib x6s0dn4 xlye18i xcrgp8e x178xt8z x13fuv20 x1cbnph0 xut3y95 xv9cywu",
582
+ children: [/* @__PURE__ */ g("span", { children: l.timeZone }), /* @__PURE__ */ g(s, {
583
+ disabled: t === void 0,
584
+ onClick: () => n(void 0),
585
+ children: "Clear"
586
+ })]
587
+ })
588
+ ]
589
+ })
590
+ })
591
+ }) })]
592
+ });
593
+ }
594
+ // packages/collections/src/command.tsx
595
+ function ae({ commands: e, target: t, enabled: n }) {
596
+ let r = e.flatMap((e) => !n || e.disabled === !0 || e.shortcut === void 0 ? [] : [{
597
+ hotkey: e.shortcut,
598
+ callback: (n) => {
599
+ if (n.defaultPrevented || n.repeat) return;
600
+ let r = t !== null && "current" in t ? t.current : t, i = n.target instanceof Element ? n.target.closest("dialog[open], [role=\"dialog\"][aria-modal=\"true\"], [role=\"alertdialog\"]") : null;
601
+ (i === null || r !== null && i.contains(r)) && (n.preventDefault(), n.stopPropagation(), e.onSelect());
602
+ },
603
+ options: {
604
+ requireReset: !0,
605
+ meta: { name: e.label }
606
+ }
607
+ }]);
608
+ N(r, {
609
+ target: t,
610
+ ignoreInputs: !0,
611
+ ignoreDefaultPrevented: !0,
612
+ preventDefault: !1,
613
+ stopPropagation: !1,
614
+ conflictBehavior: "error"
615
+ });
616
+ }
617
+ function $({ shortcut: e }) {
618
+ let t = M();
619
+ return /* @__PURE__ */ g(i, { children: t(e) });
620
+ }
621
+ function oe({ open: e, onOpenChange: r, title: i, commands: a, trigger: o, placeholder: s = "Search commands…", empty: c = "No matching commands" }) {
622
+ return /* @__PURE__ */ _(t.Root, {
623
+ open: e,
624
+ onOpenChange: r,
625
+ children: [o !== void 0 && /* @__PURE__ */ g(t.Trigger, { render: o }), /* @__PURE__ */ _(t.Portal, { children: [/* @__PURE__ */ g(t.Backdrop, {}), /* @__PURE__ */ g(t.Popup, { children: /* @__PURE__ */ _("div", {
626
+ className: "x78zum5 xdt5ytf xtmze7h",
627
+ children: [/* @__PURE__ */ g(t.Title, { children: i }), /* @__PURE__ */ _(j.Root, {
628
+ items: a,
629
+ itemToStringValue: (e) => e.label,
630
+ inline: !0,
631
+ open: !0,
632
+ autoHighlight: "always",
633
+ children: [
634
+ /* @__PURE__ */ g(j.Input, {
635
+ "aria-label": s,
636
+ placeholder: s,
637
+ render: /* @__PURE__ */ g(n, {})
638
+ }),
639
+ /* @__PURE__ */ g(j.List, {
640
+ className: "x1717udv x1ghz6dp x1sslpiy x1odjw0f xish69e",
641
+ children: (e) => /* @__PURE__ */ _(j.Item, {
642
+ value: e,
643
+ disabled: e.disabled,
644
+ className: "x78zum5 x6s0dn4 xlye18i x1ansdh9 xekz7sd x4wz14 x13hf59f x1fa2hmj xgl13c x1l90twa xoedhln x118kxxs x1hyyzld x1ypdohk x165d675 x1fbevvf x1ch7a9t x1m8qfh3",
645
+ onClick: () => {
646
+ r(!1), e.onSelect();
647
+ },
648
+ children: [/* @__PURE__ */ _("span", {
649
+ className: "x98rzlu xeuugli",
650
+ children: [e.label, e.description !== void 0 && /* @__PURE__ */ g("span", {
651
+ className: "x1lliihq xv9cywu xut3y95 xam3yii",
652
+ children: e.description
653
+ })]
654
+ }), e.shortcut !== void 0 && /* @__PURE__ */ g($, { shortcut: e.shortcut })]
655
+ }, e.id)
656
+ }),
657
+ /* @__PURE__ */ g(j.Empty, {
658
+ className: "x1h65vws xv9cywu x118kxxs xjl7jj",
659
+ children: c
660
+ })
661
+ ]
662
+ })]
663
+ }) })] })]
664
+ });
665
+ }
666
+ export { Q as Calendar, R as Cell, Y as CollectionPagination, K as CollectionToolbar, J as ColumnControls, oe as CommandPalette, G as DataTable, ie as DateRangePicker, B as Details, q as FilterChips, z as Inspector, P as ListFooter, $ as ShortcutHint, L as Table, ae as useCommandShortcuts };
@@ -0,0 +1 @@
1
+ export { t as CodeBlock } from "../code-BJp-g4Fw.js";