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