@devalok/shilp-sutra 0.27.2 → 0.29.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/_chunks/badge-group.js +299 -0
- package/dist/_chunks/framer.js +1915 -1980
- package/dist/_chunks/keybinding.js +4 -5
- package/dist/_chunks/primitives.js +3198 -3272
- package/dist/_chunks/sonner.js +29 -31
- package/dist/_chunks/stat-row.js +110 -131
- package/dist/_chunks/tiptap.js +42 -78
- package/dist/_chunks/tree-view.js +138 -149
- package/dist/_chunks/typing-indicator.js +565 -0
- package/dist/_chunks/use-calendar.js +416 -439
- package/dist/_chunks/vendor-client.js +977 -814
- package/dist/_chunks/vendor-utils.js +5 -5
- package/dist/ai/block-renderer.js +22 -22
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +241 -263
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +87 -107
- package/dist/composed/activity-feed.d.ts +2 -0
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +118 -90
- package/dist/composed/avatar-group.d.ts +1 -0
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +91 -67
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +29 -28
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +99 -113
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +29 -28
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +30 -27
- package/dist/composed/extensions/file-attachment.d.ts.map +1 -1
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +261 -271
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +49 -48
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +12 -11
- package/dist/composed/global-loading.js +1 -1
- package/dist/composed/index.js +63 -63
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +55 -54
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +44 -43
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +35 -34
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +64 -64
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-header.js +31 -37
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +37 -36
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +287 -306
- package/dist/composed/schedule-view.js +62 -62
- package/dist/composed/status-badge.d.ts +4 -2
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +58 -45
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +93 -93
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +21 -20
- package/dist/shell/index.js +18 -18
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +96 -95
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +82 -85
- package/dist/shell/sidebar.js +59 -60
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +103 -103
- package/dist/tailwind/index.cjs +37 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +38 -5
- package/dist/tokens/primitives.css +10 -0
- package/dist/tokens/semantic.css +70 -7
- package/dist/ui/accordion.d.ts +5 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +44 -39
- package/dist/ui/alert-dialog.js +57 -57
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +30 -29
- package/dist/ui/aspect-ratio.js +4 -4
- package/dist/ui/autocomplete.js +56 -56
- package/dist/ui/avatar.js +2 -2
- package/dist/ui/badge-group.d.ts +22 -0
- package/dist/ui/badge-group.d.ts.map +1 -0
- package/dist/ui/badge-group.js +8 -0
- package/dist/ui/badge-indicator.d.ts +32 -0
- package/dist/ui/badge-indicator.d.ts.map +1 -0
- package/dist/ui/badge-indicator.js +54 -0
- package/dist/ui/badge.d.ts +27 -24
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +13 -129
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +27 -26
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +37 -36
- package/dist/ui/button-group.d.ts +12 -6
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +18 -18
- package/dist/ui/button-processing.d.ts +15 -0
- package/dist/ui/button-processing.d.ts.map +1 -0
- package/dist/ui/button-processing.js +77 -0
- package/dist/ui/button.d.ts +50 -25
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +243 -127
- package/dist/ui/card.js +20 -21
- package/dist/ui/charts/index.js +499 -508
- package/dist/ui/chat/date-separator.d.ts +12 -0
- package/dist/ui/chat/date-separator.d.ts.map +1 -0
- package/dist/ui/chat/index.d.ts +9 -0
- package/dist/ui/chat/index.d.ts.map +1 -0
- package/dist/ui/chat/index.js +12 -0
- package/dist/ui/chat/message-input.d.ts +16 -0
- package/dist/ui/chat/message-input.d.ts.map +1 -0
- package/dist/ui/chat/message-list.d.ts +24 -0
- package/dist/ui/chat/message-list.d.ts.map +1 -0
- package/dist/ui/chat/message.d.ts +108 -0
- package/dist/ui/chat/message.d.ts.map +1 -0
- package/dist/ui/chat/system-message.d.ts +11 -0
- package/dist/ui/chat/system-message.d.ts.map +1 -0
- package/dist/ui/chat/typing-indicator.d.ts +14 -0
- package/dist/ui/chat/typing-indicator.d.ts.map +1 -0
- package/dist/ui/chat/unread-separator.d.ts +12 -0
- package/dist/ui/chat/unread-separator.d.ts.map +1 -0
- package/dist/ui/checkbox.js +18 -18
- package/dist/ui/chip.d.ts +13 -62
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +10 -109
- package/dist/ui/collapsible.js +4 -4
- package/dist/ui/color-input.d.ts +19 -5
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +371 -79
- package/dist/ui/color-swatch.js +11 -11
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +74 -80
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +86 -85
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +51 -57
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +268 -296
- package/dist/ui/devalok-grain.d.ts +81 -0
- package/dist/ui/devalok-grain.d.ts.map +1 -0
- package/dist/ui/devalok-grain.js +69 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +73 -72
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +93 -92
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +82 -82
- package/dist/ui/hover-card.js +29 -29
- package/dist/ui/icon-button.d.ts +7 -7
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-context.d.ts +15 -0
- package/dist/ui/icon-context.d.ts.map +1 -0
- package/dist/ui/icon-context.js +20 -0
- package/dist/ui/icon-group.d.ts +22 -0
- package/dist/ui/icon-group.d.ts.map +1 -0
- package/dist/ui/icon-group.js +32 -0
- package/dist/ui/icon.d.ts +57 -0
- package/dist/ui/icon.d.ts.map +1 -0
- package/dist/ui/icon.js +122 -0
- package/dist/ui/index.d.ts +8 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +351 -329
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +21 -20
- package/dist/ui/input.d.ts +32 -11
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +149 -44
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/motion.d.ts +2 -0
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +13 -11
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +87 -86
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +23 -28
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +54 -53
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +45 -44
- package/dist/ui/popover.js +30 -30
- package/dist/ui/progress.d.ts +3 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +43 -39
- package/dist/ui/radio.js +1 -1
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +47 -60
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +54 -53
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +46 -45
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +196 -193
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/spinner.js +74 -74
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +85 -86
- package/dist/ui/switch.d.ts +3 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +40 -26
- package/dist/ui/tabs.js +43 -43
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +169 -169
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/dist/ui/tooltip.js +41 -41
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
- package/docs/components/_header.md +4 -4
- package/docs/components/composed/activity-feed.md +7 -0
- package/docs/components/composed/avatar-group.md +8 -5
- package/docs/components/composed/status-badge.md +14 -1
- package/docs/components/ui/accordion.md +5 -2
- package/docs/components/ui/badge-group.md +38 -0
- package/docs/components/ui/badge-indicator.md +40 -0
- package/docs/components/ui/badge.md +36 -5
- package/docs/components/ui/button-processing.md +15 -0
- package/docs/components/ui/button.md +40 -11
- package/docs/components/ui/chat.md +214 -0
- package/docs/components/ui/color-input.md +58 -4
- package/docs/components/ui/data-table.md +3 -0
- package/docs/components/ui/devalok-grain.md +55 -0
- package/docs/components/ui/icon-button.md +12 -5
- package/docs/components/ui/icon-context.md +38 -0
- package/docs/components/ui/icon-group.md +36 -0
- package/docs/components/ui/icon.md +47 -0
- package/docs/components/ui/input.md +32 -6
- package/docs/components/ui/progress.md +5 -0
- package/docs/components/ui/spinner.md +3 -0
- package/docs/components/ui/switch.md +13 -0
- package/llms-full.txt +724 -44
- package/llms.txt +38 -19
- package/package.json +8 -2
package/dist/ui/combobox.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as o, Fragment as G } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronDown as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { tweens as
|
|
8
|
-
import {
|
|
9
|
-
|
|
4
|
+
import { r as U, q as J, o as Q, p as W } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as Y, IconSearch as Z, IconCheck as V, IconX as ee } from "@tabler/icons-react";
|
|
6
|
+
import { cn as h } from "./lib/utils.js";
|
|
7
|
+
import { tweens as se, springs as te } from "./lib/motion.js";
|
|
8
|
+
import { Icon as w } from "./icon.js";
|
|
9
|
+
import { m as re } from "../_chunks/framer.js";
|
|
10
|
+
const A = 2, ae = 36, ne = r.forwardRef(
|
|
10
11
|
({
|
|
11
12
|
options: f,
|
|
12
13
|
value: u,
|
|
13
14
|
onValueChange: b,
|
|
14
15
|
placeholder: S = "Select...",
|
|
15
|
-
searchPlaceholder:
|
|
16
|
-
emptyMessage:
|
|
17
|
-
multiple:
|
|
16
|
+
searchPlaceholder: L = "Search...",
|
|
17
|
+
emptyMessage: T = "No results found",
|
|
18
|
+
multiple: p = !1,
|
|
18
19
|
disabled: x = !1,
|
|
19
|
-
className:
|
|
20
|
-
triggerClassName:
|
|
21
|
-
maxVisible:
|
|
22
|
-
renderOption:
|
|
20
|
+
className: $,
|
|
21
|
+
triggerClassName: j,
|
|
22
|
+
maxVisible: z = 6,
|
|
23
|
+
renderOption: R,
|
|
23
24
|
accessibleLabel: H,
|
|
24
25
|
...M
|
|
25
26
|
}, O) => {
|
|
26
|
-
const [m,
|
|
27
|
+
const [m, y] = r.useState(!1), [v, k] = r.useState(""), [i, d] = r.useState(-1), I = r.useRef(null), N = r.useRef(null), P = r.useId(), C = r.useId(), n = r.useMemo(() => u == null ? [] : Array.isArray(u) ? u : [u], [u]), c = r.useMemo(
|
|
27
28
|
() => v ? f.filter(
|
|
28
29
|
(e) => e.label.toLowerCase().includes(v.toLowerCase())
|
|
29
30
|
) : f,
|
|
@@ -33,13 +34,13 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
33
34
|
[n]
|
|
34
35
|
), g = r.useCallback(
|
|
35
36
|
(e) => {
|
|
36
|
-
if (
|
|
37
|
+
if (p) {
|
|
37
38
|
const s = n.includes(e) ? n.filter((t) => t !== e) : [...n, e];
|
|
38
39
|
b(s);
|
|
39
40
|
} else
|
|
40
|
-
b(e),
|
|
41
|
+
b(e), y(!1);
|
|
41
42
|
},
|
|
42
|
-
[
|
|
43
|
+
[p, n, b]
|
|
43
44
|
), K = r.useCallback(
|
|
44
45
|
(e, s) => {
|
|
45
46
|
e.stopPropagation(), e.preventDefault();
|
|
@@ -49,57 +50,56 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
49
50
|
[n, b]
|
|
50
51
|
), X = r.useCallback(
|
|
51
52
|
(e) => {
|
|
52
|
-
x || (
|
|
53
|
+
x || (y(e), e || (k(""), d(-1)));
|
|
53
54
|
},
|
|
54
55
|
[x]
|
|
55
56
|
);
|
|
56
57
|
r.useEffect(() => {
|
|
57
58
|
if (m) {
|
|
58
59
|
const e = setTimeout(() => {
|
|
59
|
-
|
|
60
|
-
(s = k.current) == null || s.focus();
|
|
60
|
+
I.current?.focus();
|
|
61
61
|
}, 0);
|
|
62
62
|
return () => clearTimeout(e);
|
|
63
63
|
}
|
|
64
64
|
}, [m]);
|
|
65
|
-
const
|
|
65
|
+
const D = r.useCallback(
|
|
66
66
|
(e, s) => {
|
|
67
|
-
const t =
|
|
67
|
+
const t = c.length;
|
|
68
68
|
if (t === 0) return -1;
|
|
69
69
|
let l = e + s;
|
|
70
70
|
for (; l >= 0 && l < t; ) {
|
|
71
|
-
if (!
|
|
71
|
+
if (!c[l].disabled) return l;
|
|
72
72
|
l += s;
|
|
73
73
|
}
|
|
74
74
|
return e;
|
|
75
75
|
},
|
|
76
|
-
[
|
|
76
|
+
[c]
|
|
77
77
|
), F = r.useCallback(
|
|
78
78
|
(e) => {
|
|
79
79
|
switch (e.key) {
|
|
80
80
|
case "ArrowDown": {
|
|
81
81
|
e.preventDefault();
|
|
82
|
-
const s =
|
|
82
|
+
const s = D(i, 1);
|
|
83
83
|
d(s);
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
86
|
case "ArrowUp": {
|
|
87
87
|
e.preventDefault();
|
|
88
|
-
const s =
|
|
88
|
+
const s = D(i, -1);
|
|
89
89
|
d(s);
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
case "Home": {
|
|
93
93
|
e.preventDefault();
|
|
94
|
-
const s =
|
|
94
|
+
const s = c.findIndex((t) => !t.disabled);
|
|
95
95
|
d(s);
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
case "End": {
|
|
99
99
|
e.preventDefault();
|
|
100
100
|
let s = -1;
|
|
101
|
-
for (let t =
|
|
102
|
-
if (!
|
|
101
|
+
for (let t = c.length - 1; t >= 0; t--)
|
|
102
|
+
if (!c[t].disabled) {
|
|
103
103
|
s = t;
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
@@ -107,34 +107,29 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
case "Enter": {
|
|
110
|
-
e.preventDefault(),
|
|
110
|
+
e.preventDefault(), i >= 0 && i < c.length && !c[i].disabled && g(c[i].value);
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
113
|
case "Escape": {
|
|
114
|
-
e.preventDefault(),
|
|
114
|
+
e.preventDefault(), y(!1), k(""), d(-1);
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
[
|
|
119
|
+
[i, c, D, g]
|
|
120
120
|
);
|
|
121
121
|
r.useEffect(() => {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
s && ((e = s.scrollIntoView) == null || e.call(s, { block: "nearest" }));
|
|
122
|
+
if (i >= 0 && N.current) {
|
|
123
|
+
const e = N.current.children[i];
|
|
124
|
+
e && e.scrollIntoView?.({ block: "nearest" });
|
|
126
125
|
}
|
|
127
|
-
}, [
|
|
128
|
-
const
|
|
129
|
-
if (n.length
|
|
130
|
-
|
|
131
|
-
return (e == null ? void 0 : e.label) ?? null;
|
|
132
|
-
}, [n, f]), B = () => {
|
|
133
|
-
if (h && n.length > 0) {
|
|
134
|
-
const e = n.slice(0, P), s = n.length - P;
|
|
126
|
+
}, [i]);
|
|
127
|
+
const q = r.useCallback(() => n.length === 0 ? null : f.find((s) => s.value === n[0])?.label ?? null, [n, f]), B = () => {
|
|
128
|
+
if (p && n.length > 0) {
|
|
129
|
+
const e = n.slice(0, A), s = n.length - A;
|
|
135
130
|
return /* @__PURE__ */ o("span", { className: "flex flex-1 flex-wrap items-center gap-ds-02 overflow-hidden", children: [
|
|
136
131
|
e.map((t) => {
|
|
137
|
-
const l = f.find((
|
|
132
|
+
const l = f.find((E) => E.value === t);
|
|
138
133
|
return l ? /* @__PURE__ */ o(
|
|
139
134
|
"span",
|
|
140
135
|
{
|
|
@@ -146,10 +141,10 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
146
141
|
{
|
|
147
142
|
type: "button",
|
|
148
143
|
className: "inline-flex items-center justify-center rounded-ds-full outline-none hover:scale-110 hover:bg-surface-raised-hover transition-transform duration-fast-01 ease-productive-standard",
|
|
149
|
-
onClick: (
|
|
144
|
+
onClick: (E) => K(E, t),
|
|
150
145
|
"aria-label": `Remove ${l.label}`,
|
|
151
146
|
tabIndex: -1,
|
|
152
|
-
children: /* @__PURE__ */ a(
|
|
147
|
+
children: /* @__PURE__ */ a(w, { icon: ee, size: "sm" })
|
|
153
148
|
}
|
|
154
149
|
)
|
|
155
150
|
]
|
|
@@ -164,102 +159,101 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
164
159
|
] })
|
|
165
160
|
] });
|
|
166
161
|
}
|
|
167
|
-
if (!
|
|
168
|
-
const e =
|
|
162
|
+
if (!p && n.length === 1) {
|
|
163
|
+
const e = q();
|
|
169
164
|
if (e)
|
|
170
165
|
return /* @__PURE__ */ a("span", { className: "flex-1 truncate text-left", children: e });
|
|
171
166
|
}
|
|
172
167
|
return /* @__PURE__ */ a("span", { className: "flex-1 truncate text-left text-surface-fg-subtle", children: S });
|
|
173
168
|
};
|
|
174
|
-
return /* @__PURE__ */ a(U, { open: m, onOpenChange: X, children: /* @__PURE__ */ o("div", { className:
|
|
175
|
-
/* @__PURE__ */ a(
|
|
169
|
+
return /* @__PURE__ */ a(U, { open: m, onOpenChange: X, children: /* @__PURE__ */ o("div", { className: h("relative", $), ...M, children: [
|
|
170
|
+
/* @__PURE__ */ a(J, { asChild: !0, disabled: x, children: /* @__PURE__ */ o(
|
|
176
171
|
"button",
|
|
177
172
|
{
|
|
178
173
|
ref: O,
|
|
179
174
|
type: "button",
|
|
180
175
|
role: "combobox",
|
|
181
176
|
"aria-expanded": m,
|
|
182
|
-
"aria-controls":
|
|
177
|
+
"aria-controls": C,
|
|
183
178
|
"aria-haspopup": "listbox",
|
|
184
179
|
"aria-label": H ?? S,
|
|
185
180
|
disabled: x,
|
|
186
|
-
className:
|
|
181
|
+
className: h(
|
|
187
182
|
"flex h-ds-md w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-raised-hover px-ds-04 py-ds-03 text-ds-md",
|
|
188
183
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
189
184
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7",
|
|
190
185
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
191
186
|
m && "border-accent-7",
|
|
192
|
-
|
|
187
|
+
j
|
|
193
188
|
),
|
|
194
189
|
children: [
|
|
195
190
|
B(),
|
|
196
|
-
/* @__PURE__ */ a(
|
|
191
|
+
/* @__PURE__ */ a(w, { icon: Y, size: "sm", className: h("ml-ds-02 shrink-0 opacity-50 transition-transform duration-fast-01 ease-productive-standard", m && "rotate-180") })
|
|
197
192
|
]
|
|
198
193
|
}
|
|
199
194
|
) }),
|
|
200
|
-
/* @__PURE__ */ a(
|
|
201
|
-
|
|
195
|
+
/* @__PURE__ */ a(Q, { children: /* @__PURE__ */ a(
|
|
196
|
+
W,
|
|
202
197
|
{
|
|
203
198
|
asChild: !0,
|
|
204
199
|
sideOffset: 4,
|
|
205
200
|
align: "start",
|
|
206
201
|
onOpenAutoFocus: (e) => {
|
|
207
|
-
|
|
208
|
-
e.preventDefault(), (s = k.current) == null || s.focus();
|
|
202
|
+
e.preventDefault(), I.current?.focus();
|
|
209
203
|
},
|
|
210
204
|
children: /* @__PURE__ */ o(
|
|
211
|
-
|
|
205
|
+
re.div,
|
|
212
206
|
{
|
|
213
207
|
initial: { opacity: 0, scale: 0.95 },
|
|
214
208
|
animate: { opacity: 1, scale: 1 },
|
|
215
|
-
transition: { ...
|
|
216
|
-
className:
|
|
209
|
+
transition: { ...te.snappy, opacity: se.fade },
|
|
210
|
+
className: h(
|
|
217
211
|
"z-popover w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-ds-lg border border-surface-border bg-surface-overlay shadow-floating"
|
|
218
212
|
),
|
|
219
213
|
children: [
|
|
220
214
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-ds-02 border-b border-surface-border px-ds-04", children: [
|
|
221
|
-
/* @__PURE__ */ a(
|
|
215
|
+
/* @__PURE__ */ a(w, { icon: Z, size: "sm", className: "shrink-0 text-surface-fg-subtle" }),
|
|
222
216
|
/* @__PURE__ */ a(
|
|
223
217
|
"input",
|
|
224
218
|
{
|
|
225
|
-
ref:
|
|
219
|
+
ref: I,
|
|
226
220
|
type: "text",
|
|
227
221
|
className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-none placeholder:text-surface-fg-subtle",
|
|
228
|
-
placeholder:
|
|
222
|
+
placeholder: L,
|
|
229
223
|
value: v,
|
|
230
224
|
onChange: (e) => {
|
|
231
|
-
|
|
225
|
+
k(e.target.value), d(-1);
|
|
232
226
|
},
|
|
233
227
|
onKeyDown: F,
|
|
234
228
|
"aria-autocomplete": "list",
|
|
235
|
-
"aria-controls":
|
|
236
|
-
"aria-activedescendant":
|
|
229
|
+
"aria-controls": C,
|
|
230
|
+
"aria-activedescendant": i >= 0 ? `${P}-option-${i}` : void 0,
|
|
237
231
|
"aria-label": "Search options"
|
|
238
232
|
}
|
|
239
233
|
)
|
|
240
234
|
] }),
|
|
241
|
-
|
|
235
|
+
c.length === 0 ? /* @__PURE__ */ a("div", { className: "px-ds-04 py-ds-05 text-center text-ds-md text-surface-fg-subtle", children: T }) : /* @__PURE__ */ a(
|
|
242
236
|
"ul",
|
|
243
237
|
{
|
|
244
238
|
ref: N,
|
|
245
|
-
id:
|
|
239
|
+
id: C,
|
|
246
240
|
role: "listbox",
|
|
247
|
-
"aria-multiselectable":
|
|
241
|
+
"aria-multiselectable": p || void 0,
|
|
248
242
|
className: "overflow-auto p-ds-02",
|
|
249
|
-
style: { maxHeight: `${
|
|
250
|
-
children:
|
|
243
|
+
style: { maxHeight: `${z * ae}px` },
|
|
244
|
+
children: c.map((e, s) => {
|
|
251
245
|
const t = _(e.value);
|
|
252
246
|
return /* @__PURE__ */ o(
|
|
253
247
|
"li",
|
|
254
248
|
{
|
|
255
|
-
id: `${
|
|
249
|
+
id: `${P}-option-${s}`,
|
|
256
250
|
role: "option",
|
|
257
251
|
"aria-selected": t,
|
|
258
252
|
"aria-disabled": e.disabled || void 0,
|
|
259
|
-
className:
|
|
253
|
+
className: h(
|
|
260
254
|
"relative flex cursor-pointer select-none items-center gap-ds-03 rounded-ds-md px-ds-04 py-ds-03 text-ds-md outline-none",
|
|
261
255
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
262
|
-
|
|
256
|
+
i === s && "bg-accent-2",
|
|
263
257
|
t && "text-accent-11",
|
|
264
258
|
e.disabled && "pointer-events-none opacity-action-disabled"
|
|
265
259
|
),
|
|
@@ -274,11 +268,11 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
274
268
|
},
|
|
275
269
|
children: [
|
|
276
270
|
e.icon && /* @__PURE__ */ a("span", { className: "flex h-ico-sm w-ico-sm items-center justify-center shrink-0", children: e.icon }),
|
|
277
|
-
/* @__PURE__ */ a("span", { className: "flex flex-1 flex-col", children:
|
|
271
|
+
/* @__PURE__ */ a("span", { className: "flex flex-1 flex-col", children: R ? R(e, t) : /* @__PURE__ */ o(G, { children: [
|
|
278
272
|
/* @__PURE__ */ a("span", { children: e.label }),
|
|
279
273
|
e.description && /* @__PURE__ */ a("span", { className: "text-ds-sm text-surface-fg-muted", children: e.description })
|
|
280
274
|
] }) }),
|
|
281
|
-
t && /* @__PURE__ */ a(
|
|
275
|
+
t && /* @__PURE__ */ a(w, { icon: V, size: "sm", className: "shrink-0" })
|
|
282
276
|
]
|
|
283
277
|
},
|
|
284
278
|
e.value
|
|
@@ -294,7 +288,7 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
294
288
|
] }) });
|
|
295
289
|
}
|
|
296
290
|
);
|
|
297
|
-
|
|
291
|
+
ne.displayName = "Combobox";
|
|
298
292
|
export {
|
|
299
|
-
|
|
293
|
+
ne as Combobox
|
|
300
294
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;AAatE,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAmB3F,CAAA;AAGD,QAAA,MAAM,kBAAkB,sHAA+B,CAAA;AAEvD,QAAA,MAAM,gBAAgB,mHAA6B,CAAA;AAEnD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAuB7F,CAAA;AAGD,QAAA,MAAM,qBAAqB,wHAAkC,CAAA;AAE7D,QAAA,MAAM,qBAAqB;YAGf,OAAO;wCAejB,CAAA;AAGF,QAAA,MAAM,qBAAqB,2KA+BzB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAiCtB,CAAA;AAGF,QAAA,MAAM,eAAe;YAGT,OAAO;wCAYjB,CAAA;AAGF,QAAA,MAAM,uBAAuB,6KAoB3B,CAAA;AAIF,QAAA,MAAM,oBAAoB,0KAmBxB,CAAA;AAGF,QAAA,MAAM,gBAAgB;YAGV,OAAO;wCAYjB,CAAA;AAGF,QAAA,MAAM,oBAAoB,0KASxB,CAAA;AAGF,QAAA,MAAM,mBAAmB;8BAGtB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAA;AACzG,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAEnG,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -1,206 +1,207 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as l, jsx as
|
|
2
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronRight as A, IconCheck as
|
|
4
|
+
import { t as f, u as x, v as b, w as y, x as C, y as g, z as h, B as N, L as M, E as v, G, J as P, K as j, M as T, N as L } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronRight as A, IconCheck as B, IconCircle as E } from "@tabler/icons-react";
|
|
6
6
|
import { cn as d } from "./lib/utils.js";
|
|
7
|
-
import { tweens as w, springs as
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { tweens as w, springs as R } from "./lib/motion.js";
|
|
8
|
+
import { Icon as u } from "./icon.js";
|
|
9
|
+
import { A as S, m as I } from "../_chunks/framer.js";
|
|
10
|
+
const z = n.createContext(!1), O = n.createContext(!1), J = ({
|
|
10
11
|
onOpenChange: e,
|
|
11
|
-
...
|
|
12
|
+
...s
|
|
12
13
|
}) => {
|
|
13
|
-
const [
|
|
14
|
+
const [a, o] = n.useState(!1), r = n.useCallback(
|
|
14
15
|
(c) => {
|
|
15
|
-
o(c), e
|
|
16
|
+
o(c), e?.(c);
|
|
16
17
|
},
|
|
17
18
|
[e]
|
|
18
19
|
);
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ t(z.Provider, { value: a, children: /* @__PURE__ */ t(T, { onOpenChange: r, ...s }) });
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
const
|
|
22
|
+
J.displayName = "ContextMenu";
|
|
23
|
+
const ae = j, oe = G, ne = b, K = ({
|
|
23
24
|
open: e,
|
|
24
|
-
defaultOpen:
|
|
25
|
-
onOpenChange:
|
|
25
|
+
defaultOpen: s = !1,
|
|
26
|
+
onOpenChange: a,
|
|
26
27
|
...o
|
|
27
28
|
}) => {
|
|
28
|
-
const [r, c] = n.useState(
|
|
29
|
+
const [r, c] = n.useState(s), i = e !== void 0, p = i ? e : r, k = n.useCallback(
|
|
29
30
|
(m) => {
|
|
30
|
-
i || c(m),
|
|
31
|
+
i || c(m), a?.(m);
|
|
31
32
|
},
|
|
32
|
-
[i,
|
|
33
|
+
[i, a]
|
|
33
34
|
);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ t(O.Provider, { value: p, children: /* @__PURE__ */ t(L, { open: p, onOpenChange: k, ...o }) });
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
-
const
|
|
37
|
+
K.displayName = "ContextMenuSub";
|
|
38
|
+
const re = P, U = n.forwardRef(({ className: e, inset: s, children: a, ...o }, r) => /* @__PURE__ */ l(
|
|
38
39
|
f,
|
|
39
40
|
{
|
|
40
41
|
ref: r,
|
|
41
42
|
className: d(
|
|
42
43
|
"flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[state=open]:bg-surface-raised data-[state=open]:text-surface-fg",
|
|
43
|
-
|
|
44
|
+
s && "pl-ds-07",
|
|
44
45
|
e
|
|
45
46
|
),
|
|
46
47
|
...o,
|
|
47
48
|
children: [
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
a,
|
|
50
|
+
/* @__PURE__ */ t(u, { icon: A, size: "sm", className: "ml-auto" })
|
|
50
51
|
]
|
|
51
52
|
}
|
|
52
53
|
));
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
const r = n.useContext(
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
|
|
54
|
+
U.displayName = f.displayName;
|
|
55
|
+
const q = n.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
56
|
+
const r = n.useContext(O);
|
|
57
|
+
return /* @__PURE__ */ t(S, { children: r && /* @__PURE__ */ t(
|
|
58
|
+
x,
|
|
58
59
|
{
|
|
59
60
|
ref: o,
|
|
60
61
|
forceMount: !0,
|
|
61
62
|
asChild: !0,
|
|
62
|
-
...
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
-
|
|
63
|
+
...a,
|
|
64
|
+
children: /* @__PURE__ */ t(
|
|
65
|
+
I.div,
|
|
65
66
|
{
|
|
66
67
|
initial: { opacity: 0, scale: 0.95 },
|
|
67
68
|
animate: { opacity: 1, scale: 1 },
|
|
68
69
|
exit: { opacity: 0, scale: 0.95 },
|
|
69
|
-
transition: { ...
|
|
70
|
+
transition: { ...R.snappy, opacity: w.fade },
|
|
70
71
|
className: d(
|
|
71
72
|
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
72
73
|
e
|
|
73
74
|
),
|
|
74
|
-
children:
|
|
75
|
+
children: s
|
|
75
76
|
}
|
|
76
77
|
)
|
|
77
78
|
}
|
|
78
79
|
) });
|
|
79
80
|
});
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
const r = n.useContext(
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
|
|
81
|
+
q.displayName = x.displayName;
|
|
82
|
+
const D = n.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
83
|
+
const r = n.useContext(z);
|
|
84
|
+
return /* @__PURE__ */ t(S, { children: r && /* @__PURE__ */ t(b, { forceMount: !0, children: /* @__PURE__ */ t(
|
|
85
|
+
y,
|
|
85
86
|
{
|
|
86
87
|
ref: o,
|
|
87
88
|
forceMount: !0,
|
|
88
89
|
asChild: !0,
|
|
89
|
-
...
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
|
|
90
|
+
...a,
|
|
91
|
+
children: /* @__PURE__ */ t(
|
|
92
|
+
I.div,
|
|
92
93
|
{
|
|
93
94
|
initial: { opacity: 0, scale: 0.95 },
|
|
94
95
|
animate: { opacity: 1, scale: 1 },
|
|
95
96
|
exit: { opacity: 0, scale: 0.95 },
|
|
96
|
-
transition: { ...
|
|
97
|
+
transition: { ...R.snappy, opacity: w.fade },
|
|
97
98
|
className: d(
|
|
98
99
|
"z-popover rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
99
100
|
e
|
|
100
101
|
),
|
|
101
|
-
children:
|
|
102
|
+
children: s
|
|
102
103
|
}
|
|
103
104
|
)
|
|
104
105
|
}
|
|
105
106
|
) }) });
|
|
106
107
|
});
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
D.displayName = y.displayName;
|
|
109
|
+
const F = n.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ t(
|
|
110
|
+
C,
|
|
110
111
|
{
|
|
111
112
|
ref: o,
|
|
112
113
|
className: d(
|
|
113
114
|
"relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
114
|
-
|
|
115
|
+
s && "pl-ds-07",
|
|
115
116
|
e
|
|
116
117
|
),
|
|
117
|
-
...
|
|
118
|
+
...a
|
|
118
119
|
}
|
|
119
120
|
));
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
|
|
121
|
+
F.displayName = C.displayName;
|
|
122
|
+
const H = n.forwardRef(({ className: e, children: s, checked: a, ...o }, r) => /* @__PURE__ */ l(
|
|
123
|
+
g,
|
|
123
124
|
{
|
|
124
125
|
ref: r,
|
|
125
126
|
className: d(
|
|
126
127
|
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
127
128
|
e
|
|
128
129
|
),
|
|
129
|
-
checked:
|
|
130
|
+
checked: a,
|
|
130
131
|
...o,
|
|
131
132
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
133
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(u, { icon: B, size: "sm" }) }) }),
|
|
134
|
+
s
|
|
134
135
|
]
|
|
135
136
|
}
|
|
136
137
|
));
|
|
137
|
-
|
|
138
|
-
const Q = n.forwardRef(({ className: e, children:
|
|
139
|
-
|
|
138
|
+
H.displayName = g.displayName;
|
|
139
|
+
const Q = n.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__ */ l(
|
|
140
|
+
N,
|
|
140
141
|
{
|
|
141
142
|
ref: o,
|
|
142
143
|
className: d(
|
|
143
144
|
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
144
145
|
e
|
|
145
146
|
),
|
|
146
|
-
...
|
|
147
|
+
...a,
|
|
147
148
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
|
|
149
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(u, { icon: E, size: "sm", className: "fill-current" }) }) }),
|
|
150
|
+
s
|
|
150
151
|
]
|
|
151
152
|
}
|
|
152
153
|
));
|
|
153
|
-
Q.displayName =
|
|
154
|
-
const V = n.forwardRef(({ className: e, inset:
|
|
155
|
-
|
|
154
|
+
Q.displayName = N.displayName;
|
|
155
|
+
const V = n.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ t(
|
|
156
|
+
M,
|
|
156
157
|
{
|
|
157
158
|
ref: o,
|
|
158
159
|
className: d(
|
|
159
160
|
"px-ds-03 py-ds-02b text-ds-md font-semibold text-surface-fg",
|
|
160
|
-
|
|
161
|
+
s && "pl-ds-07",
|
|
161
162
|
e
|
|
162
163
|
),
|
|
163
|
-
...
|
|
164
|
+
...a
|
|
164
165
|
}
|
|
165
166
|
));
|
|
166
|
-
V.displayName =
|
|
167
|
-
const W = n.forwardRef(({ className: e, ...
|
|
168
|
-
|
|
167
|
+
V.displayName = M.displayName;
|
|
168
|
+
const W = n.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ t(
|
|
169
|
+
v,
|
|
169
170
|
{
|
|
170
|
-
ref:
|
|
171
|
+
ref: a,
|
|
171
172
|
className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
|
|
172
|
-
...
|
|
173
|
+
...s
|
|
173
174
|
}
|
|
174
175
|
));
|
|
175
|
-
W.displayName =
|
|
176
|
+
W.displayName = v.displayName;
|
|
176
177
|
const X = ({
|
|
177
178
|
className: e,
|
|
178
|
-
...
|
|
179
|
-
}) => /* @__PURE__ */
|
|
179
|
+
...s
|
|
180
|
+
}) => /* @__PURE__ */ t(
|
|
180
181
|
"span",
|
|
181
182
|
{
|
|
182
183
|
className: d(
|
|
183
184
|
"ml-auto text-ds-sm text-surface-fg-subtle",
|
|
184
185
|
e
|
|
185
186
|
),
|
|
186
|
-
...
|
|
187
|
+
...s
|
|
187
188
|
}
|
|
188
189
|
);
|
|
189
190
|
X.displayName = "ContextMenuShortcut";
|
|
190
191
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
J as ContextMenu,
|
|
193
|
+
H as ContextMenuCheckboxItem,
|
|
194
|
+
D as ContextMenuContent,
|
|
195
|
+
oe as ContextMenuGroup,
|
|
196
|
+
F as ContextMenuItem,
|
|
196
197
|
V as ContextMenuLabel,
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
ne as ContextMenuPortal,
|
|
199
|
+
re as ContextMenuRadioGroup,
|
|
199
200
|
Q as ContextMenuRadioItem,
|
|
200
201
|
W as ContextMenuSeparator,
|
|
201
202
|
X as ContextMenuShortcut,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
K as ContextMenuSub,
|
|
204
|
+
q as ContextMenuSubContent,
|
|
205
|
+
U as ContextMenuSubTrigger,
|
|
206
|
+
ae as ContextMenuTrigger
|
|
206
207
|
};
|