@devalok/shilp-sutra 0.57.0 → 0.60.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/MIGRATION.md +163 -0
- package/dist/_chunks/badge-group.js +75 -188
- package/dist/_chunks/badge-group.js.map +1 -1
- package/dist/_chunks/chat.js +244 -243
- package/dist/_chunks/chat.js.map +1 -1
- package/dist/_chunks/image-preview.js +71 -70
- package/dist/_chunks/image-preview.js.map +1 -1
- package/dist/_chunks/motion-preference.js +15 -0
- package/dist/_chunks/motion-preference.js.map +1 -0
- package/dist/_chunks/motion-provider.js +1 -1
- package/dist/_chunks/motion-provider.js.map +1 -1
- package/dist/_chunks/popover.js +50 -49
- package/dist/_chunks/popover.js.map +1 -1
- package/dist/_chunks/primitives-internal.js +29 -29
- package/dist/_chunks/primitives-internal.js.map +1 -1
- package/dist/_chunks/shared.js +48 -47
- package/dist/_chunks/shared.js.map +1 -1
- package/dist/_chunks/success.js +34 -34
- package/dist/_chunks/tree-view.js +1 -1
- package/dist/_chunks/tree-view.js.map +1 -1
- package/dist/ai/block-renderer.js +8 -8
- package/dist/ai/command-bar.js +65 -65
- package/dist/ai/command-bar.js.map +1 -1
- package/dist/ai/conversation.js +35 -35
- package/dist/ai/conversation.js.map +1 -1
- package/dist/ai/index.js +4 -4
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +108 -107
- package/dist/composed/activity-feed.js.map +1 -1
- package/dist/composed/avatar-group.js +3 -3
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/bulk-action-bar.d.ts +9 -35
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +2 -139
- package/dist/composed/command-palette.js +137 -137
- package/dist/composed/command-palette.js.map +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/content-card.js.map +1 -1
- package/dist/composed/date-picker/index.js +5 -5
- package/dist/composed/date-picker/index.js.map +1 -1
- package/dist/composed/empty-state.js +4 -4
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -1
- package/dist/composed/file-preview/shared.d.ts.map +1 -1
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +151 -150
- package/dist/composed/file-preview.js.map +1 -1
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +53 -52
- package/dist/composed/filter-bar.js.map +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +38 -37
- package/dist/composed/form-section.js.map +1 -1
- package/dist/composed/index.js +6 -5
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +1 -1
- package/dist/composed/master-detail.js.map +1 -1
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +109 -108
- package/dist/composed/multi-select-popover.js.map +1 -1
- package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.js +467 -466
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +3 -3
- package/dist/composed/rich-text-editor.js.map +1 -1
- package/dist/composed/schedule-view.js +2 -2
- package/dist/composed/schedule-view.js.map +1 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +29 -28
- package/dist/composed/status-badge.js.map +1 -1
- package/dist/motion/index.d.ts +1 -0
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +2 -15
- package/dist/motion/motion-preference.d.ts +36 -0
- package/dist/motion/motion-preference.d.ts.map +1 -0
- package/dist/motion/motion-provider.d.ts +2 -1
- package/dist/motion/motion-provider.d.ts.map +1 -1
- package/dist/motion/primitives-index.js +103 -102
- package/dist/motion/primitives-index.js.map +1 -1
- package/dist/motion/primitives.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +19 -19
- package/dist/shell/bottom-navbar.js.map +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts +17 -0
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +109 -104
- package/dist/shell/notification-center.js.map +1 -1
- package/dist/shell/notification-preferences.js +1 -1
- package/dist/shell/notification-preferences.js.map +1 -1
- package/dist/shell/top-bar.js +1 -1
- package/dist/shell/top-bar.js.map +1 -1
- package/dist/tokens/index.css +1 -0
- package/dist/tokens/palettes.css +292 -0
- package/dist/tokens/semantic.css +157 -11
- package/dist/tokens/shilp-sutra.css +1 -0
- package/dist/tokens/utilities.css +10 -7
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +27 -26
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +60 -59
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +55 -113
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/autocomplete.js +80 -80
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +71 -70
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge-indicator.d.ts +4 -8
- package/dist/ui/badge-indicator.d.ts.map +1 -1
- package/dist/ui/badge-indicator.js +3 -8
- package/dist/ui/badge-indicator.js.map +1 -1
- package/dist/ui/badge.d.ts +8 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +42 -40
- package/dist/ui/banner.js.map +1 -1
- package/dist/ui/bulk-action-bar.d.ts +59 -0
- package/dist/ui/bulk-action-bar.d.ts.map +1 -0
- package/dist/ui/bulk-action-bar.js +145 -0
- package/dist/ui/bulk-action-bar.js.map +1 -0
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +3 -23
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +79 -212
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +75 -72
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.js +1 -1
- package/dist/ui/charts/radar-chart.js.map +1 -1
- package/dist/ui/chat/message-list.d.ts.map +1 -1
- package/dist/ui/chat/message.d.ts.map +1 -1
- package/dist/ui/chat/typing-indicator.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.js +1 -1
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +151 -150
- package/dist/ui/color-input.js.map +1 -1
- package/dist/ui/combobox.d.ts +14 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +162 -158
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +70 -69
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/data-table-body.d.ts.map +1 -1
- package/dist/ui/data-table-body.js +4 -3
- package/dist/ui/data-table-body.js.map +1 -1
- package/dist/ui/data-table-bulk-actions.d.ts +26 -1
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -1
- package/dist/ui/data-table-bulk-actions.js +21 -46
- package/dist/ui/data-table-bulk-actions.js.map +1 -1
- package/dist/ui/data-table-context.d.ts +36 -2
- package/dist/ui/data-table-context.d.ts.map +1 -1
- package/dist/ui/data-table-context.js +25 -21
- package/dist/ui/data-table-context.js.map +1 -1
- package/dist/ui/data-table-header.d.ts.map +1 -1
- package/dist/ui/data-table-header.js +42 -40
- package/dist/ui/data-table-header.js.map +1 -1
- package/dist/ui/data-table-pagination.js +2 -2
- package/dist/ui/data-table-pagination.js.map +1 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +61 -60
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dot.d.ts.map +1 -1
- package/dist/ui/dot.js +10 -41
- package/dist/ui/dot.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +79 -78
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +116 -115
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +27 -26
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +26 -25
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/icon.js +7 -7
- package/dist/ui/index.d.ts +3 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +60 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +7 -7
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +73 -72
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +80 -79
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +72 -68
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +35 -34
- package/dist/ui/radio.js.map +1 -1
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -27
- package/dist/ui/search-input.js.map +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +70 -69
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +4 -4
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/slider.d.ts +63 -9
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +74 -32
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/split-button.d.ts +8 -2
- package/dist/ui/split-button.d.ts.map +1 -1
- package/dist/ui/split-button.js +49 -95
- package/dist/ui/split-button.js.map +1 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +89 -88
- package/dist/ui/stat-card.js.map +1 -1
- package/dist/ui/stat-flash.js +16 -16
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +63 -62
- package/dist/ui/stepper.js.map +1 -1
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +3 -3
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +67 -66
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +196 -195
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +24 -22
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +37 -36
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
- package/docs/components/composed/bulk-action-bar.md +14 -7
- package/docs/components/ui/bulk-action-bar.md +72 -0
- package/docs/recipes/customize-brand.md +58 -0
- package/docs/recipes/install-astro.md +1 -1
- package/docs/recipes/install-next-app-router.md +1 -1
- package/docs/recipes/install-next-pages.md +22 -1
- package/docs/recipes/install-remix.md +1 -1
- package/docs/recipes/install-tanstack-start.md +1 -1
- package/docs/recipes/install-vite.md +2 -1
- package/docs/recipes/server-components.md +7 -4
- package/docs/recipes/troubleshoot.md +1 -0
- package/llms.txt +2 -2
- package/make-kit/foundations/color.md +3 -1
- package/mcp-manifest.json +184 -151
- package/package.json +8 -2
- package/skill/SKILL.md +1 -1
- package/skill/references/components.md +2 -2
- package/skill/references/customize-brand.md +58 -0
- package/skill/references/server-components.md +7 -4
- package/skill/references/setup-astro.md +1 -1
- package/skill/references/setup-next-app-router.md +1 -1
- package/skill/references/setup-next-pages.md +22 -1
- package/skill/references/setup-remix.md +1 -1
- package/skill/references/setup-tanstack-start.md +1 -1
- package/skill/references/setup-vite.md +2 -1
- package/skill/references/troubleshoot.md +1 -0
- package/dist/composed/bulk-action-bar.js.map +0 -1
- package/dist/motion/check-motion-provider.d.ts +0 -2
- package/dist/motion/check-motion-provider.d.ts.map +0 -1
- package/dist/motion/index.js.map +0 -1
|
@@ -1,140 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { Icon as n } from "../ui/icon.js";
|
|
5
|
-
import { BadgeCompound as r } from "../_chunks/badge-group.js";
|
|
6
|
-
import { Button as i } from "../ui/button.js";
|
|
7
|
-
import * as a from "react";
|
|
8
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
-
import { createPortal as c } from "react-dom";
|
|
10
|
-
import { IconX as l } from "@tabler/icons-react";
|
|
11
|
-
import { AnimatePresence as u, motion as d, useReducedMotion as f } from "framer-motion";
|
|
12
|
-
//#region src/composed/bulk-action-bar.tsx
|
|
13
|
-
var p = a.forwardRef(function({ show: p, count: m, onClearSelection: h, actions: g, totalCount: _, onSelectAll: v, className: y, ...b }, x) {
|
|
14
|
-
let S = f(), [C, w] = a.useState(!1), [T, E] = a.useState(0), [D, O] = a.useState(null), k = a.useRef([]), A = a.useRef(null), j = _ != null && _ > m && !!v, M = +!!j, N = M + g.length + 1;
|
|
15
|
-
a.useEffect(() => {
|
|
16
|
-
w(!0);
|
|
17
|
-
}, []), a.useEffect(() => {
|
|
18
|
-
E(0), O(null);
|
|
19
|
-
}, [g.length]), a.useEffect(() => {
|
|
20
|
-
D != null && A.current?.focus();
|
|
21
|
-
}, [D]);
|
|
22
|
-
let P = (e) => {
|
|
23
|
-
let t = (e + N) % N;
|
|
24
|
-
E(t), k.current[t]?.focus();
|
|
25
|
-
};
|
|
26
|
-
function F(e) {
|
|
27
|
-
if (e.key === "Escape") {
|
|
28
|
-
e.preventDefault(), D == null ? h() : (O(null), P(T));
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (D != null) return;
|
|
32
|
-
let t = e.currentTarget.dir === "rtl" || document.dir === "rtl", n = t ? "ArrowLeft" : "ArrowRight", r = t ? "ArrowRight" : "ArrowLeft";
|
|
33
|
-
e.key === n ? (e.preventDefault(), P(T + 1)) : e.key === r ? (e.preventDefault(), P(T - 1)) : e.key === "Home" ? (e.preventDefault(), P(0)) : e.key === "End" && (e.preventDefault(), P(N - 1));
|
|
34
|
-
}
|
|
35
|
-
if (!C) return null;
|
|
36
|
-
let I = S ? { duration: 0 } : e.smooth;
|
|
37
|
-
return c(/* @__PURE__ */ o(u, { children: p && /* @__PURE__ */ s(d.div, {
|
|
38
|
-
ref: x,
|
|
39
|
-
initial: S ? { opacity: 0 } : {
|
|
40
|
-
y: 100,
|
|
41
|
-
opacity: 0
|
|
42
|
-
},
|
|
43
|
-
animate: S ? { opacity: 1 } : {
|
|
44
|
-
y: 0,
|
|
45
|
-
opacity: 1
|
|
46
|
-
},
|
|
47
|
-
exit: S ? { opacity: 0 } : {
|
|
48
|
-
y: 100,
|
|
49
|
-
opacity: 0
|
|
50
|
-
},
|
|
51
|
-
transition: I,
|
|
52
|
-
className: t("fixed bottom-ds-06 start-1/2 z-sticky -translate-x-1/2", "flex items-center gap-ds-04 rounded-surface bg-surface-overlay px-ds-05 py-ds-03 shadow-floating", y),
|
|
53
|
-
role: "toolbar",
|
|
54
|
-
"aria-label": `${m} items selected`,
|
|
55
|
-
onKeyDown: F,
|
|
56
|
-
...b,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ s(r, {
|
|
59
|
-
variant: "solid",
|
|
60
|
-
size: "sm",
|
|
61
|
-
children: [m, " selected"]
|
|
62
|
-
}),
|
|
63
|
-
j && /* @__PURE__ */ s(i, {
|
|
64
|
-
ref: (e) => {
|
|
65
|
-
k.current[0] = e;
|
|
66
|
-
},
|
|
67
|
-
variant: "link",
|
|
68
|
-
size: "xs",
|
|
69
|
-
tabIndex: T === 0 ? 0 : -1,
|
|
70
|
-
onClick: v,
|
|
71
|
-
children: ["Select all ", _]
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ o("div", {
|
|
74
|
-
className: "flex items-center gap-ds-02",
|
|
75
|
-
children: g.map((e, t) => {
|
|
76
|
-
let n = M + t;
|
|
77
|
-
return D === t ? /* @__PURE__ */ s("div", {
|
|
78
|
-
role: "group",
|
|
79
|
-
"aria-live": "assertive",
|
|
80
|
-
className: "flex items-center gap-ds-02",
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ o("span", {
|
|
83
|
-
className: "whitespace-nowrap text-body-sm text-surface-fg-muted",
|
|
84
|
-
children: e.confirmMessage ?? "Are you sure?"
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ o(i, {
|
|
87
|
-
ref: A,
|
|
88
|
-
variant: "solid",
|
|
89
|
-
size: "sm",
|
|
90
|
-
color: e.color === "error" ? "error" : e.color ?? "accent",
|
|
91
|
-
onClick: () => {
|
|
92
|
-
O(null), e.onClick();
|
|
93
|
-
},
|
|
94
|
-
children: "Confirm"
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ o(i, {
|
|
97
|
-
variant: "ghost",
|
|
98
|
-
size: "sm",
|
|
99
|
-
onClick: () => {
|
|
100
|
-
O(null), P(n);
|
|
101
|
-
},
|
|
102
|
-
children: "Cancel"
|
|
103
|
-
})
|
|
104
|
-
]
|
|
105
|
-
}, e.label) : /* @__PURE__ */ o(i, {
|
|
106
|
-
ref: (e) => {
|
|
107
|
-
k.current[n] = e;
|
|
108
|
-
},
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
size: "sm",
|
|
111
|
-
color: e.color ?? "accent",
|
|
112
|
-
disabled: e.disabled,
|
|
113
|
-
loading: e.loading,
|
|
114
|
-
startIcon: e.icon ?? void 0,
|
|
115
|
-
tabIndex: T === n ? 0 : -1,
|
|
116
|
-
onClick: e.requiresConfirmation ? () => O(t) : e.onClick,
|
|
117
|
-
children: e.label
|
|
118
|
-
}, e.label);
|
|
119
|
-
})
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ o(i, {
|
|
122
|
-
ref: (e) => {
|
|
123
|
-
k.current[N - 1] = e;
|
|
124
|
-
},
|
|
125
|
-
variant: "ghost",
|
|
126
|
-
size: "icon-sm",
|
|
127
|
-
tabIndex: T === N - 1 ? 0 : -1,
|
|
128
|
-
onClick: h,
|
|
129
|
-
"aria-label": "Clear selection",
|
|
130
|
-
children: /* @__PURE__ */ o(n, {
|
|
131
|
-
icon: l,
|
|
132
|
-
size: "sm"
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
}) }), document.body);
|
|
137
|
-
});
|
|
138
|
-
p.displayName = "BulkActionBar";
|
|
139
|
-
//#endregion
|
|
140
|
-
export { p as BulkActionBar };
|
|
2
|
+
import { BulkActionBar as e } from "../ui/bulk-action-bar.js";
|
|
3
|
+
export { e as BulkActionBar };
|
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { springs as e, tweens as t } from "../ui/lib/motion.js";
|
|
3
|
+
import { useMotion as n } from "../_chunks/motion-provider.js";
|
|
4
|
+
import { IconProvider as r } from "../ui/icon-context.js";
|
|
5
|
+
import { cn as i } from "../ui/lib/utils.js";
|
|
6
|
+
import { Icon as a } from "../ui/icon.js";
|
|
7
7
|
import { normalizeIcon as o } from "../_chunks/normalize-icon.js";
|
|
8
|
-
import { Dialog as s, DialogContentRaw as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import { getIsMac as
|
|
11
|
-
import * as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { IconArrowDown as
|
|
14
|
-
import { AnimatePresence as
|
|
8
|
+
import { Dialog as s, DialogContentRaw as ee, DialogDescription as te, DialogOverlay as c, DialogPortal as ne, DialogTitle as re } from "../ui/dialog.js";
|
|
9
|
+
import { VisuallyHidden as l } from "../ui/visually-hidden.js";
|
|
10
|
+
import { getIsMac as u, getModifierDisplay as d, matchesKeybinding as f } from "../_chunks/keybinding.js";
|
|
11
|
+
import * as p from "react";
|
|
12
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { IconArrowDown as ie, IconArrowUp as ae, IconCornerDownLeft as g, IconSearch as oe } from "@tabler/icons-react";
|
|
14
|
+
import { AnimatePresence as se, motion as _ } from "framer-motion";
|
|
15
15
|
//#region src/composed/command-palette.tsx
|
|
16
|
-
function
|
|
16
|
+
function ce(e) {
|
|
17
17
|
return e.filterValue ? e.filterValue : typeof e.label == "string" ? e.label : "";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function le(e) {
|
|
20
20
|
return typeof e.description == "string" ? e.description : "";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function v(e) {
|
|
23
23
|
return e.includes("+") ? e.split("+").map((e) => e.trim()).filter(Boolean) : e.split(/\s+/).filter(Boolean);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
let t = typeof e == "function" ? e(
|
|
30
|
-
|
|
31
|
-
}, [
|
|
32
|
-
if (!
|
|
33
|
-
let e =
|
|
34
|
-
return
|
|
25
|
+
var y = p.forwardRef(function({ groups: y = [], placeholder: ue = "Search or jump to...", onSearch: b, emptyMessage: x = "No results found.", emptyState: S, open: C, defaultOpen: w, onOpenChange: T, keybinding: E = "mod+k", maxHeight: D = "320px", footerHints: O, className: k, ...A }, j) {
|
|
26
|
+
let M = C !== void 0, [N, P] = p.useState(w ?? !1), F = M ? C : N, I = p.useRef(F);
|
|
27
|
+
I.current = F;
|
|
28
|
+
let L = p.useCallback((e) => {
|
|
29
|
+
let t = typeof e == "function" ? e(I.current) : e;
|
|
30
|
+
M || P(t), T?.(t);
|
|
31
|
+
}, [M, T]), [R, z] = p.useState(""), [B, V] = p.useState(0), H = p.useRef(null), U = p.useRef(null), W = p.useId(), G = `command-palette-listbox-${W}`, { reducedMotion: K } = n(), q = { duration: 0 }, de = p.useMemo(() => u(), []), J = p.useMemo(() => {
|
|
32
|
+
if (!R.trim()) return y;
|
|
33
|
+
let e = R.toLowerCase();
|
|
34
|
+
return y.map((t) => ({
|
|
35
35
|
...t,
|
|
36
|
-
items: t.items.filter((t) =>
|
|
36
|
+
items: t.items.filter((t) => ce(t).toLowerCase().includes(e) || le(t).toLowerCase().includes(e))
|
|
37
37
|
})).filter((e) => e.items.length > 0);
|
|
38
|
-
}, [
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
let e = Array.isArray(
|
|
38
|
+
}, [y, R]), Y = p.useMemo(() => J.flatMap((e) => e.items), [J]);
|
|
39
|
+
p.useEffect(() => {
|
|
40
|
+
if (E === !1) return;
|
|
41
|
+
let e = Array.isArray(E) ? E : [E];
|
|
42
42
|
function t(t) {
|
|
43
|
-
for (let n of e) if (
|
|
44
|
-
t.preventDefault(),
|
|
43
|
+
for (let n of e) if (f(t, n)) {
|
|
44
|
+
t.preventDefault(), L((e) => !e);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
}, [E, L]), p.useEffect(() => {
|
|
50
|
+
F && (z(""), V(0), requestAnimationFrame(() => {
|
|
51
|
+
H.current?.focus();
|
|
52
52
|
}));
|
|
53
|
-
}, [
|
|
54
|
-
let
|
|
53
|
+
}, [F]);
|
|
54
|
+
let X = (e) => {
|
|
55
55
|
switch (e.key) {
|
|
56
56
|
case "ArrowDown":
|
|
57
|
-
e.preventDefault(),
|
|
57
|
+
e.preventDefault(), V((e) => e < Y.length - 1 ? e + 1 : 0);
|
|
58
58
|
break;
|
|
59
59
|
case "ArrowUp":
|
|
60
|
-
e.preventDefault(),
|
|
60
|
+
e.preventDefault(), V((e) => e > 0 ? e - 1 : Y.length - 1);
|
|
61
61
|
break;
|
|
62
62
|
case "Enter": {
|
|
63
63
|
e.preventDefault();
|
|
64
|
-
let t =
|
|
65
|
-
t && (t.onSelect(),
|
|
64
|
+
let t = Y[B];
|
|
65
|
+
t && (t.onSelect(), L(!1));
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
case "Escape":
|
|
69
|
-
e.preventDefault(),
|
|
69
|
+
e.preventDefault(), L(!1);
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
(
|
|
75
|
-
}, [
|
|
73
|
+
p.useEffect(() => {
|
|
74
|
+
(U.current?.querySelector(`[data-command-index="${B}"]`))?.scrollIntoView({ block: "nearest" });
|
|
75
|
+
}, [B]);
|
|
76
76
|
let fe = (e) => {
|
|
77
|
-
|
|
78
|
-
}, pe =
|
|
77
|
+
z(e), V(0), b?.(e);
|
|
78
|
+
}, pe = p.useMemo(() => {
|
|
79
79
|
let e = /* @__PURE__ */ new Map(), t = 0;
|
|
80
|
-
for (let n of
|
|
80
|
+
for (let n of J) for (let r of n.items) e.set(r.id, t++);
|
|
81
81
|
return e;
|
|
82
|
-
}, [
|
|
82
|
+
}, [J]), me = K ? q : e.snappy, Z = K ? q : t.fade, Q = K ? {
|
|
83
83
|
opacity: 1,
|
|
84
84
|
scale: 1,
|
|
85
85
|
y: 0
|
|
86
|
-
} : void 0, he = typeof
|
|
86
|
+
} : void 0, he = typeof D == "number" ? `${D}px` : D, $ = O === !1 ? !1 : O ?? [
|
|
87
87
|
{
|
|
88
88
|
keys: "↑↓",
|
|
89
89
|
label: "Navigate"
|
|
@@ -97,22 +97,22 @@ var b = m.forwardRef(function({ groups: b = [], placeholder: x = "Search or jump
|
|
|
97
97
|
label: "Close"
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
open:
|
|
102
|
-
onOpenChange:
|
|
103
|
-
|
|
104
|
-
}, [
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
ref:
|
|
107
|
-
...
|
|
108
|
-
className:
|
|
109
|
-
onKeyDown:
|
|
100
|
+
return /* @__PURE__ */ m(s, {
|
|
101
|
+
open: F,
|
|
102
|
+
onOpenChange: p.useCallback((e) => {
|
|
103
|
+
L(e);
|
|
104
|
+
}, [L]),
|
|
105
|
+
children: /* @__PURE__ */ h(ne, { children: [/* @__PURE__ */ m(c, { className: "fixed inset-0 z-overlay bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }), /* @__PURE__ */ h(ee, {
|
|
106
|
+
ref: j,
|
|
107
|
+
...A,
|
|
108
|
+
className: i("fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2", "overflow-hidden rounded-overlay-lg bg-surface-overlay shadow-overlay", "duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2", "data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", k),
|
|
109
|
+
onKeyDown: X,
|
|
110
110
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ h(l, { children: [/* @__PURE__ */ m(re, { children: "Command Palette" }), /* @__PURE__ */ m(te, { children: "Search or jump to pages, projects, tasks, and actions" })] }),
|
|
112
|
+
/* @__PURE__ */ h("div", {
|
|
113
113
|
className: "flex items-center gap-ds-04 border-b border-surface-border-strong px-ds-05 py-ds-04",
|
|
114
114
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ m(_.span, {
|
|
116
116
|
initial: Q ?? {
|
|
117
117
|
opacity: 0,
|
|
118
118
|
scale: .96
|
|
@@ -123,72 +123,72 @@ var b = m.forwardRef(function({ groups: b = [], placeholder: x = "Search or jump
|
|
|
123
123
|
},
|
|
124
124
|
transition: me,
|
|
125
125
|
className: "inline-flex shrink-0",
|
|
126
|
-
children: /* @__PURE__ */
|
|
127
|
-
icon:
|
|
126
|
+
children: /* @__PURE__ */ m(a, {
|
|
127
|
+
icon: oe,
|
|
128
128
|
size: "sm",
|
|
129
129
|
stroke: "light",
|
|
130
130
|
className: "text-surface-fg-subtle"
|
|
131
131
|
})
|
|
132
132
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
ref:
|
|
135
|
-
value:
|
|
133
|
+
/* @__PURE__ */ m("input", {
|
|
134
|
+
ref: H,
|
|
135
|
+
value: R,
|
|
136
136
|
onChange: (e) => fe(e.target.value),
|
|
137
|
-
placeholder:
|
|
137
|
+
placeholder: ue,
|
|
138
138
|
role: "combobox",
|
|
139
139
|
"aria-expanded": !0,
|
|
140
|
-
"aria-controls":
|
|
141
|
-
"aria-activedescendant":
|
|
140
|
+
"aria-controls": G,
|
|
141
|
+
"aria-activedescendant": Y[B] ? `command-item-${W}-${Y[B].id}` : void 0,
|
|
142
142
|
"aria-autocomplete": "list",
|
|
143
|
-
className:
|
|
143
|
+
className: i("flex-1 bg-transparent text-body-lg text-surface-fg outline-hidden", "placeholder:text-surface-fg-subtle"),
|
|
144
144
|
autoComplete: "off",
|
|
145
145
|
autoCorrect: "off",
|
|
146
146
|
spellCheck: !1
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
className: "hidden shrink-0 select-none rounded-control border border-card-strong bg-surface-
|
|
148
|
+
/* @__PURE__ */ m("kbd", {
|
|
149
|
+
className: "hidden shrink-0 select-none rounded-control border border-card-strong bg-surface-sunken px-ds-02b py-ds-01 text-body-sm font-medium text-surface-fg-subtle shadow-kbd sm:inline-flex",
|
|
150
150
|
children: "Esc"
|
|
151
151
|
})
|
|
152
152
|
]
|
|
153
153
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
ref:
|
|
156
|
-
id:
|
|
154
|
+
/* @__PURE__ */ h("div", {
|
|
155
|
+
ref: U,
|
|
156
|
+
id: G,
|
|
157
157
|
role: "listbox",
|
|
158
158
|
"aria-label": "Command results",
|
|
159
159
|
className: "overflow-y-auto px-ds-03 py-ds-03",
|
|
160
160
|
style: { maxHeight: he },
|
|
161
|
-
children: [
|
|
161
|
+
children: [J.length === 0 && /* @__PURE__ */ m(_.div, {
|
|
162
162
|
initial: Q ?? { opacity: 0 },
|
|
163
163
|
animate: { opacity: 1 },
|
|
164
164
|
transition: Z,
|
|
165
165
|
className: "flex items-center justify-center py-ds-07",
|
|
166
|
-
children:
|
|
166
|
+
children: S ?? /* @__PURE__ */ m("p", {
|
|
167
167
|
className: "text-body-md text-surface-fg-subtle",
|
|
168
|
-
children:
|
|
168
|
+
children: x
|
|
169
169
|
})
|
|
170
|
-
}),
|
|
170
|
+
}), J.map((n, s) => /* @__PURE__ */ h(_.div, {
|
|
171
171
|
initial: Q ?? { opacity: 0 },
|
|
172
172
|
animate: { opacity: 1 },
|
|
173
|
-
transition:
|
|
174
|
-
...
|
|
173
|
+
transition: K ? q : {
|
|
174
|
+
...t.fade,
|
|
175
175
|
delay: s * .06
|
|
176
176
|
},
|
|
177
177
|
className: "mb-ds-02",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ m("div", {
|
|
179
179
|
className: "px-ds-03 pb-ds-02 pt-ds-03",
|
|
180
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ m("span", {
|
|
181
181
|
className: "text-label-xs font-semibold uppercase tracking-wider text-surface-fg-subtle",
|
|
182
|
-
children:
|
|
182
|
+
children: n.label
|
|
183
183
|
})
|
|
184
|
-
}),
|
|
185
|
-
let
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
id: `command-item-${
|
|
184
|
+
}), n.items.map((t) => {
|
|
185
|
+
let n = pe.get(t.id) ?? 0, s = n === B;
|
|
186
|
+
return /* @__PURE__ */ h(_.button, {
|
|
187
|
+
id: `command-item-${W}-${t.id}`,
|
|
188
188
|
type: "button",
|
|
189
189
|
role: "option",
|
|
190
190
|
"aria-selected": s,
|
|
191
|
-
"data-command-index":
|
|
191
|
+
"data-command-index": n,
|
|
192
192
|
initial: Q ?? {
|
|
193
193
|
opacity: 0,
|
|
194
194
|
y: 4
|
|
@@ -197,94 +197,94 @@ var b = m.forwardRef(function({ groups: b = [], placeholder: x = "Search or jump
|
|
|
197
197
|
opacity: 1,
|
|
198
198
|
y: 0
|
|
199
199
|
},
|
|
200
|
-
transition:
|
|
201
|
-
...
|
|
202
|
-
delay:
|
|
200
|
+
transition: K ? q : {
|
|
201
|
+
...e.snappy,
|
|
202
|
+
delay: n * .03
|
|
203
203
|
},
|
|
204
204
|
onClick: () => {
|
|
205
|
-
|
|
205
|
+
t.onSelect(), L(!1);
|
|
206
206
|
},
|
|
207
|
-
onMouseEnter: () =>
|
|
208
|
-
className:
|
|
207
|
+
onMouseEnter: () => V(n),
|
|
208
|
+
className: i("flex w-full items-center gap-ds-04 rounded-surface px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard", s ? "bg-surface-panel-hover text-surface-fg" : "text-surface-fg-muted hover:bg-surface-panel-hover"),
|
|
209
209
|
children: [
|
|
210
|
-
|
|
211
|
-
className:
|
|
210
|
+
t.icon && /* @__PURE__ */ m("span", {
|
|
211
|
+
className: i("[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02 ease-productive-standard", s ? "text-accent-11" : "text-surface-fg-subtle"),
|
|
212
212
|
"aria-hidden": "true",
|
|
213
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ m(r, {
|
|
214
214
|
size: "sm",
|
|
215
|
-
children: o(
|
|
215
|
+
children: o(t.icon)
|
|
216
216
|
})
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ h("div", {
|
|
219
219
|
className: "flex min-w-0 flex-1 flex-col",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ m("span", {
|
|
221
221
|
className: "truncate text-body-md",
|
|
222
|
-
children:
|
|
223
|
-
}),
|
|
222
|
+
children: t.renderLabel ? t.renderLabel(R) : t.label
|
|
223
|
+
}), t.description && /* @__PURE__ */ m("span", {
|
|
224
224
|
className: "line-clamp-1 text-body-sm text-surface-fg-subtle",
|
|
225
|
-
children:
|
|
225
|
+
children: t.description
|
|
226
226
|
})]
|
|
227
227
|
}),
|
|
228
|
-
|
|
228
|
+
t.shortcut && /* @__PURE__ */ m("span", {
|
|
229
229
|
className: "flex shrink-0 items-center gap-ds-01",
|
|
230
|
-
children:
|
|
231
|
-
className:
|
|
232
|
-
children: e === "Ctrl" || e === "ctrl" ?
|
|
230
|
+
children: v(t.shortcut).map((e, t) => /* @__PURE__ */ m("kbd", {
|
|
231
|
+
className: i("inline-flex min-w-ds-05b items-center justify-center rounded border px-ds-02b py-ds-01 text-body-xs font-medium shadow-kbd transition-colors duration-fast-02 ease-productive-standard", s ? "bg-accent-4 text-accent-11 border-accent-6" : "bg-surface-panel text-surface-fg-subtle border-surface-border-strong"),
|
|
232
|
+
children: e === "Ctrl" || e === "ctrl" ? d(de) : e
|
|
233
233
|
}, t))
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
initial:
|
|
235
|
+
/* @__PURE__ */ m(se, { children: s && /* @__PURE__ */ m(_.span, {
|
|
236
|
+
initial: K ? void 0 : { opacity: 0 },
|
|
237
237
|
animate: { opacity: 1 },
|
|
238
|
-
exit:
|
|
238
|
+
exit: K ? void 0 : { opacity: 0 },
|
|
239
239
|
transition: Z,
|
|
240
240
|
className: "inline-flex shrink-0",
|
|
241
|
-
children: /* @__PURE__ */
|
|
242
|
-
icon:
|
|
241
|
+
children: /* @__PURE__ */ m(a, {
|
|
242
|
+
icon: g,
|
|
243
243
|
size: "sm",
|
|
244
244
|
stroke: "light",
|
|
245
245
|
className: "text-surface-fg-subtle"
|
|
246
246
|
})
|
|
247
247
|
}) })
|
|
248
248
|
]
|
|
249
|
-
},
|
|
249
|
+
}, t.id);
|
|
250
250
|
})]
|
|
251
|
-
},
|
|
251
|
+
}, n.label))]
|
|
252
252
|
}),
|
|
253
|
-
$ !== !1 && /* @__PURE__ */
|
|
253
|
+
$ !== !1 && /* @__PURE__ */ m(_.div, {
|
|
254
254
|
initial: Q ?? { opacity: 0 },
|
|
255
255
|
animate: { opacity: 1 },
|
|
256
256
|
transition: Z,
|
|
257
257
|
className: "flex items-center gap-ds-05 border-t border-surface-border-strong px-ds-05 py-ds-03",
|
|
258
|
-
children: $.map((e, t) => /* @__PURE__ */
|
|
258
|
+
children: $.map((e, t) => /* @__PURE__ */ h("div", {
|
|
259
259
|
className: "flex items-center gap-ds-02b",
|
|
260
|
-
children: [e.keys === "↑↓" ? /* @__PURE__ */
|
|
260
|
+
children: [e.keys === "↑↓" ? /* @__PURE__ */ h("div", {
|
|
261
261
|
className: "flex items-center gap-ds-01",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
263
|
-
className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-card-strong bg-surface-
|
|
264
|
-
children: /* @__PURE__ */
|
|
265
|
-
icon:
|
|
262
|
+
children: [/* @__PURE__ */ m("kbd", {
|
|
263
|
+
className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-card-strong bg-surface-sunken shadow-kbd",
|
|
264
|
+
children: /* @__PURE__ */ m(a, {
|
|
265
|
+
icon: ae,
|
|
266
266
|
size: "xs",
|
|
267
267
|
className: "text-surface-fg-subtle"
|
|
268
268
|
})
|
|
269
|
-
}), /* @__PURE__ */
|
|
270
|
-
className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-card-strong bg-surface-
|
|
271
|
-
children: /* @__PURE__ */
|
|
272
|
-
icon:
|
|
269
|
+
}), /* @__PURE__ */ m("kbd", {
|
|
270
|
+
className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-card-strong bg-surface-sunken shadow-kbd",
|
|
271
|
+
children: /* @__PURE__ */ m(a, {
|
|
272
|
+
icon: ie,
|
|
273
273
|
size: "xs",
|
|
274
274
|
className: "text-surface-fg-subtle"
|
|
275
275
|
})
|
|
276
276
|
})]
|
|
277
|
-
}) : e.keys === "↵" ? /* @__PURE__ */
|
|
278
|
-
className: "inline-flex h-ds-05b items-center justify-center rounded-control border border-card-strong bg-surface-
|
|
279
|
-
children: /* @__PURE__ */
|
|
280
|
-
icon:
|
|
277
|
+
}) : e.keys === "↵" ? /* @__PURE__ */ m("kbd", {
|
|
278
|
+
className: "inline-flex h-ds-05b items-center justify-center rounded-control border border-card-strong bg-surface-sunken px-ds-02b shadow-kbd",
|
|
279
|
+
children: /* @__PURE__ */ m(a, {
|
|
280
|
+
icon: g,
|
|
281
281
|
size: "xs",
|
|
282
282
|
className: "text-surface-fg-subtle"
|
|
283
283
|
})
|
|
284
|
-
}) : /* @__PURE__ */
|
|
285
|
-
className: "inline-flex h-ds-05b items-center justify-center rounded-control border border-card-strong bg-surface-
|
|
284
|
+
}) : /* @__PURE__ */ m("kbd", {
|
|
285
|
+
className: "inline-flex h-ds-05b items-center justify-center rounded-control border border-card-strong bg-surface-sunken px-ds-02b text-caption font-medium text-surface-fg-subtle shadow-kbd",
|
|
286
286
|
children: e.keys
|
|
287
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ m("span", {
|
|
288
288
|
className: "text-caption text-surface-fg-subtle",
|
|
289
289
|
children: e.label
|
|
290
290
|
})]
|
|
@@ -294,6 +294,6 @@ var b = m.forwardRef(function({ groups: b = [], placeholder: x = "Search or jump
|
|
|
294
294
|
})] })
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
|
-
|
|
297
|
+
y.displayName = "CommandPalette";
|
|
298
298
|
//#endregion
|
|
299
|
-
export {
|
|
299
|
+
export { y as CommandPalette };
|