@cloudflare/kumo 2.0.0 → 2.0.1

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 (91) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/ai/component-registry.json +10 -17
  3. package/ai/component-registry.md +15 -15
  4. package/dist/.build-complete +1 -1
  5. package/dist/blocks-source/resource-list/resource-list.tsx +1 -1
  6. package/dist/chunks/{autocomplete-cs3fwy6lwzlyirpq.js → autocomplete-48aq0d244bs2e8zv.js} +3 -3
  7. package/dist/chunks/{autocomplete-cs3fwy6lwzlyirpq.js.map → autocomplete-48aq0d244bs2e8zv.js.map} +1 -1
  8. package/dist/chunks/{checkbox-eren6w2csum1xghg.js → checkbox-hvxfvhtx1qjo2mww.js} +2 -2
  9. package/dist/chunks/{checkbox-eren6w2csum1xghg.js.map → checkbox-hvxfvhtx1qjo2mww.js.map} +1 -1
  10. package/dist/chunks/{clipboard-text-f9q753udny1uyxr5.js → clipboard-text-hswydzx3iql369sd.js} +2 -2
  11. package/dist/chunks/{clipboard-text-f9q753udny1uyxr5.js.map → clipboard-text-hswydzx3iql369sd.js.map} +1 -1
  12. package/dist/chunks/{code-cz0w1y5z4h29a9eg.js → code-f9v1ikwhekqw274q.js} +4 -4
  13. package/dist/chunks/{code-cz0w1y5z4h29a9eg.js.map → code-f9v1ikwhekqw274q.js.map} +1 -1
  14. package/dist/chunks/{combobox-n9qht9h9ag6kh5sn.js → combobox-fq36ye0hstote16x.js} +10 -10
  15. package/dist/chunks/{combobox-n9qht9h9ag6kh5sn.js.map → combobox-fq36ye0hstote16x.js.map} +1 -1
  16. package/dist/chunks/{command-palette-gk9m34ymp2b3hfc5.js → command-palette-md65owxt5hv4rt9r.js} +142 -142
  17. package/dist/chunks/{command-palette-gk9m34ymp2b3hfc5.js.map → command-palette-md65owxt5hv4rt9r.js.map} +1 -1
  18. package/dist/chunks/{date-range-picker-c9wnx9tbwohai7jy.js → date-range-picker-o8uyril1kogvhoei.js} +19 -19
  19. package/dist/chunks/{date-range-picker-c9wnx9tbwohai7jy.js.map → date-range-picker-o8uyril1kogvhoei.js.map} +1 -1
  20. package/dist/chunks/{dialog-94v7wiz7j3in6528.js → dialog-k3f1fbam6nt96k8x.js} +2 -2
  21. package/dist/chunks/{dialog-94v7wiz7j3in6528.js.map → dialog-k3f1fbam6nt96k8x.js.map} +1 -1
  22. package/dist/chunks/{empty-kpymw59thjf2ip8g.js → empty-b82oer7npkhtkx7k.js} +6 -6
  23. package/dist/chunks/{empty-kpymw59thjf2ip8g.js.map → empty-b82oer7npkhtkx7k.js.map} +1 -1
  24. package/dist/chunks/{field-lnj619xpe8zjd26r.js → field-c0wf94plit2gci59.js} +2 -2
  25. package/dist/chunks/{field-lnj619xpe8zjd26r.js.map → field-c0wf94plit2gci59.js.map} +1 -1
  26. package/dist/chunks/{input-area-h8xbqturegdfm1mi.js → input-area-bkyzu6f7gsck479h.js} +3 -3
  27. package/dist/chunks/{input-area-h8xbqturegdfm1mi.js.map → input-area-bkyzu6f7gsck479h.js.map} +1 -1
  28. package/dist/chunks/{input-group-dh4pg8p20rh4mdi0.js → input-group-bidweffa0zyg8gt0.js} +3 -3
  29. package/dist/chunks/{input-group-dh4pg8p20rh4mdi0.js.map → input-group-bidweffa0zyg8gt0.js.map} +1 -1
  30. package/dist/chunks/{input-lpa5fc75tgrraafv.js → input-ncfowphv81yq7fyy.js} +18 -18
  31. package/dist/chunks/input-ncfowphv81yq7fyy.js.map +1 -0
  32. package/dist/chunks/{label-be8m7qzlakzig2sl.js → label-c3h9i3y4wiccelt7.js} +22 -22
  33. package/dist/chunks/{label-be8m7qzlakzig2sl.js.map → label-c3h9i3y4wiccelt7.js.map} +1 -1
  34. package/dist/chunks/{layer-card-hvivdirwwnyq88wa.js → layer-card-ikm31xemd70w3lru.js} +2 -2
  35. package/dist/chunks/{layer-card-hvivdirwwnyq88wa.js.map → layer-card-ikm31xemd70w3lru.js.map} +1 -1
  36. package/dist/chunks/{meter-bqetlujwg8gm2u7m.js → meter-n34a7yb8c3rim26i.js} +2 -2
  37. package/dist/chunks/{meter-bqetlujwg8gm2u7m.js.map → meter-n34a7yb8c3rim26i.js.map} +1 -1
  38. package/dist/chunks/{pagination-ho8zesqfyp6ckmrl.js → pagination-jb3mncivbwsoi1se.js} +40 -40
  39. package/dist/chunks/{pagination-ho8zesqfyp6ckmrl.js.map → pagination-jb3mncivbwsoi1se.js.map} +1 -1
  40. package/dist/chunks/{select-kpfbib9l8xrrmzpz.js → select-g261chvosodu22i8.js} +3 -3
  41. package/dist/chunks/{select-kpfbib9l8xrrmzpz.js.map → select-g261chvosodu22i8.js.map} +1 -1
  42. package/dist/chunks/{sensitive-input-i1upqytzaw2pus8v.js → sensitive-input-cijagk551mesdtk4.js} +3 -3
  43. package/dist/chunks/{sensitive-input-i1upqytzaw2pus8v.js.map → sensitive-input-cijagk551mesdtk4.js.map} +1 -1
  44. package/dist/chunks/{sidebar-kh37grvfxto14ek6.js → sidebar-kb9kykqfgy5yzqwr.js} +4 -4
  45. package/dist/chunks/{sidebar-kh37grvfxto14ek6.js.map → sidebar-kb9kykqfgy5yzqwr.js.map} +1 -1
  46. package/dist/chunks/{surface-o63tktyrifcjejyb.js → surface-k0e8mq1x00b7i8r6.js} +2 -2
  47. package/dist/chunks/{surface-o63tktyrifcjejyb.js.map → surface-k0e8mq1x00b7i8r6.js.map} +1 -1
  48. package/dist/chunks/{switch-lclhiplr9zqf73tj.js → switch-jdfsr3j3oa1qxegw.js} +2 -2
  49. package/dist/chunks/{switch-lclhiplr9zqf73tj.js.map → switch-jdfsr3j3oa1qxegw.js.map} +1 -1
  50. package/dist/chunks/{table-fyy8gl875yyevqs3.js → table-iudje0lva0z68jto.js} +2 -2
  51. package/dist/chunks/{table-fyy8gl875yyevqs3.js.map → table-iudje0lva0z68jto.js.map} +1 -1
  52. package/dist/chunks/{tabs-jywwt8ebjqjkux75.js → tabs-mkhf1uemgr3ij0ps.js} +3 -3
  53. package/dist/chunks/{tabs-jywwt8ebjqjkux75.js.map → tabs-mkhf1uemgr3ij0ps.js.map} +1 -1
  54. package/dist/chunks/toast-h573o0tc7tefivk2.js.map +1 -1
  55. package/dist/code.js +30 -30
  56. package/dist/code.js.map +1 -1
  57. package/dist/components/autocomplete.js +1 -1
  58. package/dist/components/checkbox.js +1 -1
  59. package/dist/components/clipboard-text.js +1 -1
  60. package/dist/components/code.js +1 -1
  61. package/dist/components/combobox.js +1 -1
  62. package/dist/components/command-palette.js +1 -1
  63. package/dist/components/date-range-picker.js +1 -1
  64. package/dist/components/dialog.js +1 -1
  65. package/dist/components/empty.js +1 -1
  66. package/dist/components/field.js +1 -1
  67. package/dist/components/input-group.js +1 -1
  68. package/dist/components/input.js +3 -3
  69. package/dist/components/label.js +1 -1
  70. package/dist/components/layer-card.js +1 -1
  71. package/dist/components/meter.js +1 -1
  72. package/dist/components/pagination.js +1 -1
  73. package/dist/components/select.js +1 -1
  74. package/dist/components/sensitive-input.js +1 -1
  75. package/dist/components/sidebar.js +1 -1
  76. package/dist/components/surface.js +1 -1
  77. package/dist/components/switch.js +1 -1
  78. package/dist/components/table.js +1 -1
  79. package/dist/components/tabs.js +1 -1
  80. package/dist/index.js +26 -26
  81. package/dist/scripts/theme-generator/config.js +11 -4
  82. package/dist/scripts/theme-generator/config.js.map +1 -1
  83. package/dist/src/components/code/code.d.ts +2 -2
  84. package/dist/src/components/toast/toast.d.ts +1 -1
  85. package/dist/src/components/toast/toast.d.ts.map +1 -1
  86. package/dist/styles/kumo-standalone.css +1 -1
  87. package/dist/styles/theme-kumo.css +8 -8
  88. package/package.json +1 -1
  89. package/scripts/component-registry/metadata.ts +1 -1
  90. package/scripts/theme-generator/config.ts +9 -9
  91. package/dist/chunks/input-lpa5fc75tgrraafv.js.map +0 -1
@@ -1,37 +1,37 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as g, Fragment as E } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as g, Fragment as E } from "react/jsx-runtime";
3
3
  import { forwardRef as K, useContext as N, createContext as w, useCallback as b, useRef as T } from "react";
4
4
  import { CaretRightIcon as M, ArrowSquareOutIcon as H, ArrowRightIcon as _, MagnifyingGlassIcon as F } from "@phosphor-icons/react";
5
- import { L as G } from "./layer-card-hvivdirwwnyq88wa.js";
5
+ import { L as G } from "./layer-card-ikm31xemd70w3lru.js";
6
6
  import { L as j } from "./loader-hr2w7cpqeev3p3vl.js";
7
7
  import { c as m } from "./cn-ct4n7r74mh8y0f48.js";
8
8
  import { u as U } from "./portal-provider-hwmkdmkpvct0cb76.js";
9
9
  import { a6 as q, a8 as O, ab as V, bt as v, aa as $, a9 as z, ac as B, bu as J, aq as Q, av as W, aw as X, ax as Y } from "./vendor-base-ui-ie71jahf0czyf58j.js";
10
10
  const C = w({});
11
11
  function I({
12
- open: e,
12
+ open: t,
13
13
  onOpenChange: n,
14
- onBackdropClick: o,
15
- children: l,
14
+ onBackdropClick: a,
15
+ children: i,
16
16
  container: s
17
17
  }) {
18
18
  const u = U(), d = s ?? u ?? void 0, r = (c) => {
19
- o ? o(c) : n(!1);
20
- }, a = b(() => {
19
+ a ? a(c) : n(!1);
20
+ }, o = b(() => {
21
21
  n(!1);
22
22
  }, [n]);
23
- return /* @__PURE__ */ t(Q, { open: e, onOpenChange: n, modal: !0, children: /* @__PURE__ */ g(W, { container: d, children: [
24
- /* @__PURE__ */ t(
23
+ return /* @__PURE__ */ e(Q, { open: t, onOpenChange: n, modal: !0, children: /* @__PURE__ */ g(W, { container: d, children: [
24
+ /* @__PURE__ */ e(
25
25
  X,
26
26
  {
27
27
  className: "fixed inset-0 bg-kumo-overlay opacity-80 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
28
28
  onClick: r
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ t(
31
+ /* @__PURE__ */ e(
32
32
  G,
33
33
  {
34
- render: /* @__PURE__ */ t(Y, {}),
34
+ render: /* @__PURE__ */ e(Y, {}),
35
35
  className: m(
36
36
  "fixed top-[10vh] left-1/2 w-full max-w-2xl -translate-x-1/2",
37
37
  "overflow-hidden rounded-lg",
@@ -41,115 +41,115 @@ function I({
41
41
  transitionProperty: "scale, opacity",
42
42
  transitionTimingFunction: "var(--default-transition-timing-function)"
43
43
  },
44
- children: /* @__PURE__ */ t(C.Provider, { value: { onClose: a }, children: l })
44
+ children: /* @__PURE__ */ e(C.Provider, { value: { onClose: o }, children: i })
45
45
  }
46
46
  )
47
47
  ] }) });
48
48
  }
49
49
  function Z({
50
- open: e,
50
+ open: t,
51
51
  onOpenChange: n,
52
- onBackdropClick: o,
53
- children: l,
52
+ onBackdropClick: a,
53
+ children: i,
54
54
  items: s,
55
55
  value: u,
56
56
  onValueChange: d,
57
57
  onItemHighlighted: r,
58
- itemToStringValue: a,
58
+ itemToStringValue: o,
59
59
  filter: c,
60
- onSelect: i,
60
+ onSelect: l,
61
61
  getSelectableItems: f,
62
62
  container: h
63
63
  }) {
64
- return /* @__PURE__ */ t(
64
+ return /* @__PURE__ */ e(
65
65
  I,
66
66
  {
67
- open: e,
67
+ open: t,
68
68
  onOpenChange: n,
69
- onBackdropClick: o,
69
+ onBackdropClick: a,
70
70
  container: h,
71
- children: /* @__PURE__ */ t(
71
+ children: /* @__PURE__ */ e(
72
72
  A,
73
73
  {
74
74
  items: s,
75
75
  value: u,
76
76
  onValueChange: d,
77
77
  onItemHighlighted: r,
78
- itemToStringValue: a,
78
+ itemToStringValue: o,
79
79
  filter: c,
80
- open: e,
81
- onSelect: i,
80
+ open: t,
81
+ onSelect: l,
82
82
  getSelectableItems: f,
83
- children: l
83
+ children: i
84
84
  }
85
85
  )
86
86
  }
87
87
  );
88
88
  }
89
89
  function S({
90
- children: e,
90
+ children: t,
91
91
  leading: n,
92
- trailing: o
92
+ trailing: a
93
93
  }) {
94
94
  return /* @__PURE__ */ g("div", { className: "flex items-center gap-3 bg-kumo-base px-4 py-3 focus-within:ring-2 focus-within:ring-kumo-brand", children: [
95
- n ?? /* @__PURE__ */ t(
95
+ n ?? /* @__PURE__ */ e(
96
96
  F,
97
97
  {
98
98
  className: "h-4 w-4 text-kumo-subtle",
99
99
  weight: "bold"
100
100
  }
101
101
  ),
102
- e,
103
- o
102
+ t,
103
+ a
104
104
  ] });
105
105
  }
106
- const D = K(function({ children: n, className: o }, l) {
107
- return /* @__PURE__ */ t(
106
+ const D = K(function({ children: n, className: a }, i) {
107
+ return /* @__PURE__ */ e(
108
108
  "div",
109
109
  {
110
- ref: l,
110
+ ref: i,
111
111
  className: m(
112
112
  "min-h-0 flex-1 overflow-y-auto rounded-b-lg bg-kumo-base px-2 py-2 ring-1 ring-kumo-hairline",
113
- o
113
+ a
114
114
  ),
115
115
  children: n
116
116
  }
117
117
  );
118
118
  });
119
119
  D.displayName = "CommandPalette.List";
120
- function tt({
121
- children: e,
120
+ function ee({
121
+ children: t,
122
122
  className: n,
123
- ...o
123
+ ...a
124
124
  }) {
125
- return /* @__PURE__ */ t(z, { className: m("space-y-0.5", n), ...o, children: e });
125
+ return /* @__PURE__ */ e(z, { className: m("space-y-0.5", n), ...a, children: t });
126
126
  }
127
- function et({
128
- children: e,
127
+ function te({
128
+ children: t,
129
129
  className: n
130
130
  }) {
131
- return /* @__PURE__ */ t(
131
+ return /* @__PURE__ */ e(
132
132
  $,
133
133
  {
134
134
  className: m(
135
- "mb-2 px-2 pt-1 text-xs font-semibold text-kumo-strong",
135
+ "mb-2 px-2 pt-1 text-xs font-semibold text-kumo-subtle",
136
136
  n
137
137
  ),
138
- children: e
138
+ children: t
139
139
  }
140
140
  );
141
141
  }
142
- function nt({
143
- value: e,
142
+ function ne({
143
+ value: t,
144
144
  disabled: n,
145
- children: o,
146
- className: l,
145
+ children: a,
146
+ className: i,
147
147
  onClick: s
148
148
  }) {
149
- return /* @__PURE__ */ t(
149
+ return /* @__PURE__ */ e(
150
150
  v,
151
151
  {
152
- value: e,
152
+ value: t,
153
153
  disabled: n,
154
154
  onClick: s,
155
155
  className: m(
@@ -157,84 +157,84 @@ function nt({
157
157
  "cursor-pointer data-[highlighted]:bg-kumo-overlay",
158
158
  "rounded-lg",
159
159
  n && "cursor-default opacity-50",
160
- l
160
+ i
161
161
  ),
162
- children: o
162
+ children: a
163
163
  }
164
164
  );
165
165
  }
166
- function ot({ children: e }) {
167
- return /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t("div", { className: "p-8 text-center", children: /* @__PURE__ */ t("p", { className: "text-kumo-strong", children: e ?? "No results found" }) }) });
166
+ function ae({ children: t }) {
167
+ return /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("div", { className: "p-8 text-center", children: /* @__PURE__ */ e("p", { className: "text-kumo-subtle", children: t ?? "No results found" }) }) });
168
168
  }
169
- function at({ children: e }) {
170
- return /* @__PURE__ */ t("div", { className: "flex items-center justify-center p-8", children: e ?? /* @__PURE__ */ t(j, { size: 24 }) });
169
+ function oe({ children: t }) {
170
+ return /* @__PURE__ */ e("div", { className: "flex items-center justify-center p-8", children: t ?? /* @__PURE__ */ e(j, { size: 24 }) });
171
171
  }
172
- function st({ children: e }) {
173
- return /* @__PURE__ */ t("div", { className: "flex items-center justify-between rounded-b-lg bg-kumo-elevated px-4 py-3 text-xs text-kumo-strong", children: e });
172
+ function se({ children: t }) {
173
+ return /* @__PURE__ */ e("div", { className: "flex items-center justify-between rounded-b-lg bg-kumo-elevated px-4 py-3 text-xs text-kumo-subtle", children: t });
174
174
  }
175
175
  function y({
176
- text: e,
176
+ text: t,
177
177
  highlights: n,
178
- className: o
178
+ className: a
179
179
  }) {
180
180
  if (!n || n.length === 0)
181
- return /* @__PURE__ */ t("span", { className: o, children: e });
182
- const l = [...n].sort((r, a) => r[0] - a[0]), s = [];
183
- for (const r of l) {
184
- const a = s[s.length - 1];
185
- a && r[0] <= a[1] + 1 ? a[1] = Math.max(a[1], r[1]) : s.push([...r]);
181
+ return /* @__PURE__ */ e("span", { className: a, children: t });
182
+ const i = [...n].sort((r, o) => r[0] - o[0]), s = [];
183
+ for (const r of i) {
184
+ const o = s[s.length - 1];
185
+ o && r[0] <= o[1] + 1 ? o[1] = Math.max(o[1], r[1]) : s.push([...r]);
186
186
  }
187
187
  const u = [];
188
188
  let d = 0;
189
- return s.forEach((r, a) => {
190
- const [c, i] = r;
191
- c > d && u.push(/* @__PURE__ */ t("span", { children: e.slice(d, c) }, `text-${a}`)), u.push(
192
- /* @__PURE__ */ t(
189
+ return s.forEach((r, o) => {
190
+ const [c, l] = r;
191
+ c > d && u.push(/* @__PURE__ */ e("span", { children: t.slice(d, c) }, `text-${o}`)), u.push(
192
+ /* @__PURE__ */ e(
193
193
  "mark",
194
194
  {
195
195
  className: "rounded-sm bg-kumo-warning/50 text-kumo-default",
196
- children: e.slice(c, i + 1)
196
+ children: t.slice(c, l + 1)
197
197
  },
198
- `highlight-${a}`
198
+ `highlight-${o}`
199
199
  )
200
- ), d = i + 1;
201
- }), d < e.length && u.push(/* @__PURE__ */ t("span", { children: e.slice(d) }, "text-end")), /* @__PURE__ */ t("span", { className: o, children: u });
200
+ ), d = l + 1;
201
+ }), d < t.length && u.push(/* @__PURE__ */ e("span", { children: t.slice(d) }, "text-end")), /* @__PURE__ */ e("span", { className: a, children: u });
202
202
  }
203
- function rt({
204
- title: e,
203
+ function re({
204
+ title: t,
205
205
  breadcrumbs: n,
206
- titleHighlights: o,
207
- breadcrumbHighlights: l,
206
+ titleHighlights: a,
207
+ breadcrumbHighlights: i,
208
208
  description: s,
209
209
  icon: u,
210
210
  value: d,
211
211
  onClick: r,
212
- showArrow: a = !0,
212
+ showArrow: o = !0,
213
213
  external: c = !1,
214
- nonInteractive: i = !1
214
+ nonInteractive: l = !1
215
215
  }) {
216
216
  return /* @__PURE__ */ g(
217
217
  v,
218
218
  {
219
219
  value: d,
220
- onClick: i ? void 0 : (f) => r(f),
220
+ onClick: l ? void 0 : (f) => r(f),
221
221
  className: m(
222
222
  "group flex w-full items-center gap-3 rounded-lg px-2 py-1.5 text-left transition-colors",
223
- i ? "cursor-default" : "cursor-pointer data-[highlighted]:bg-kumo-overlay"
223
+ l ? "cursor-default" : "cursor-pointer data-[highlighted]:bg-kumo-overlay"
224
224
  ),
225
225
  children: [
226
- u && /* @__PURE__ */ t("div", { className: "flex flex-shrink-0 items-center text-kumo-subtle", children: u }),
227
- /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ g("div", { className: "flex items-center gap-2 truncate", children: [
226
+ u && /* @__PURE__ */ e("div", { className: "flex flex-shrink-0 items-center text-kumo-subtle", children: u }),
227
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ g("div", { className: "flex items-center gap-2 truncate", children: [
228
228
  n?.map((f, h) => /* @__PURE__ */ g("span", { className: "flex items-center gap-2", children: [
229
- /* @__PURE__ */ t(
229
+ /* @__PURE__ */ e(
230
230
  y,
231
231
  {
232
232
  text: f,
233
- highlights: l?.[h],
233
+ highlights: i?.[h],
234
234
  className: "text-base text-kumo-default"
235
235
  }
236
236
  ),
237
- /* @__PURE__ */ t(
237
+ /* @__PURE__ */ e(
238
238
  M,
239
239
  {
240
240
  className: "h-3 w-3 flex-shrink-0 text-kumo-subtle",
@@ -242,53 +242,53 @@ function rt({
242
242
  }
243
243
  )
244
244
  ] }, h)),
245
- /* @__PURE__ */ t(
245
+ /* @__PURE__ */ e(
246
246
  y,
247
247
  {
248
- text: e,
249
- highlights: o,
248
+ text: t,
249
+ highlights: a,
250
250
  className: "text-base text-kumo-default"
251
251
  }
252
252
  ),
253
- c && /* @__PURE__ */ t(H, { className: "h-3.5 w-3.5 flex-shrink-0 text-kumo-subtle" }),
253
+ c && /* @__PURE__ */ e(H, { className: "h-3.5 w-3.5 flex-shrink-0 text-kumo-subtle" }),
254
254
  s && /* @__PURE__ */ g(E, { children: [
255
- /* @__PURE__ */ t("span", { className: "text-kumo-strong", children: "—" }),
256
- /* @__PURE__ */ t("span", { className: "truncate text-sm text-kumo-strong", children: s })
255
+ /* @__PURE__ */ e("span", { className: "text-kumo-subtle", children: "—" }),
256
+ /* @__PURE__ */ e("span", { className: "truncate text-sm text-kumo-subtle", children: s })
257
257
  ] })
258
258
  ] }) }),
259
- a && !c && !i && /* @__PURE__ */ t(_, { className: "h-4 w-4 flex-shrink-0 text-kumo-subtle opacity-0 transition-opacity group-data-[highlighted]:opacity-100" })
259
+ o && !c && !l && /* @__PURE__ */ e(_, { className: "h-4 w-4 flex-shrink-0 text-kumo-subtle opacity-0 transition-opacity group-data-[highlighted]:opacity-100" })
260
260
  ]
261
261
  }
262
262
  );
263
263
  }
264
- function it({
265
- children: e,
264
+ function le({
265
+ children: t,
266
266
  className: n
267
267
  }) {
268
- return /* @__PURE__ */ t(
268
+ return /* @__PURE__ */ e(
269
269
  "div",
270
270
  {
271
271
  className: m(
272
272
  "flex max-h-[60vh] flex-col overflow-hidden rounded-lg bg-kumo-elevated",
273
273
  n
274
274
  ),
275
- children: e
275
+ children: t
276
276
  }
277
277
  );
278
278
  }
279
- const L = w({}), lt = () => !0;
279
+ const L = w({}), ie = () => !0;
280
280
  function A({
281
- children: e,
281
+ children: t,
282
282
  items: n,
283
- value: o,
284
- onValueChange: l,
283
+ value: a,
284
+ onValueChange: i,
285
285
  onItemHighlighted: s,
286
286
  itemToStringValue: u,
287
- filter: d = lt,
287
+ filter: d = ie,
288
288
  open: r = !0,
289
- className: a,
289
+ className: o,
290
290
  onSelect: c,
291
- getSelectableItems: i
291
+ getSelectableItems: l
292
292
  }) {
293
293
  const f = T(-1), h = b(
294
294
  (p, x) => {
@@ -298,72 +298,72 @@ function A({
298
298
  ), P = b(
299
299
  (p) => {
300
300
  const x = p.key === "Enter", R = p.metaKey || p.ctrlKey;
301
- if (x && R && c && i) {
302
- const k = i(n)[f.current];
301
+ if (x && R && c && l) {
302
+ const k = l(n)[f.current];
303
303
  k !== void 0 && (p.preventDefault(), c(k, { newTab: !0 }));
304
304
  }
305
305
  },
306
- [n, c, i]
306
+ [n, c, l]
307
307
  );
308
- return /* @__PURE__ */ t(it, { className: a, children: /* @__PURE__ */ t(
308
+ return /* @__PURE__ */ e(le, { className: o, children: /* @__PURE__ */ e(
309
309
  J,
310
310
  {
311
311
  items: n,
312
- value: o,
313
- onValueChange: l,
312
+ value: a,
313
+ onValueChange: i,
314
314
  onItemHighlighted: h,
315
315
  itemToStringValue: u,
316
316
  filter: d,
317
317
  autoHighlight: "always",
318
318
  keepHighlight: !0,
319
319
  open: r,
320
- children: /* @__PURE__ */ t(L.Provider, { value: { onInputKeyDown: P }, children: e })
320
+ children: /* @__PURE__ */ e(L.Provider, { value: { onInputKeyDown: P }, children: t })
321
321
  }
322
322
  ) });
323
323
  }
324
- function ct({
325
- autoFocus: e = !0,
324
+ function ce({
325
+ autoFocus: t = !0,
326
326
  placeholder: n,
327
- className: o,
328
- onKeyDown: l,
327
+ className: a,
328
+ onKeyDown: i,
329
329
  leading: s,
330
330
  trailing: u,
331
331
  ...d
332
332
  }) {
333
- const { onInputKeyDown: r } = N(L), { onClose: a } = N(C), c = b(
334
- (i) => {
335
- if (l?.(i), !i.defaultPrevented) {
336
- if (i.key === "Escape" && a) {
337
- i.preventDefault(), a();
333
+ const { onInputKeyDown: r } = N(L), { onClose: o } = N(C), c = b(
334
+ (l) => {
335
+ if (i?.(l), !l.defaultPrevented) {
336
+ if (l.key === "Escape" && o) {
337
+ l.preventDefault(), o();
338
338
  return;
339
339
  }
340
- r?.(i);
340
+ r?.(l);
341
341
  }
342
342
  },
343
- [r, l, a]
343
+ [r, i, o]
344
344
  );
345
- return /* @__PURE__ */ t(S, { leading: s, trailing: u, children: /* @__PURE__ */ t(
345
+ return /* @__PURE__ */ e(S, { leading: s, trailing: u, children: /* @__PURE__ */ e(
346
346
  B,
347
347
  {
348
348
  placeholder: n,
349
349
  className: m(
350
350
  "flex-1 border-none bg-transparent text-base kumo-input-placeholder",
351
351
  "outline-none",
352
- o
352
+ a
353
353
  ),
354
354
  onKeyDown: c,
355
- autoFocus: e,
355
+ autoFocus: t,
356
356
  ...d
357
357
  }
358
358
  ) });
359
359
  }
360
- function ut({
361
- children: e,
360
+ function ue({
361
+ children: t,
362
362
  className: n
363
363
  }) {
364
- return /* @__PURE__ */ t(O, { className: m("space-y-3", n), children: e });
364
+ return /* @__PURE__ */ e(O, { className: m("space-y-3", n), children: t });
365
365
  }
366
- const dt = q, Nt = {}, wt = {}, vt = {
366
+ const de = q, Ne = {}, we = {}, ve = {
367
367
  /** Modal dialog wrapper - use with Panel for content that can swap */
368
368
  Dialog: I,
369
369
  /** Dialog + Panel combined - for simple single-view command palettes */
@@ -371,33 +371,33 @@ const dt = q, Nt = {}, wt = {}, vt = {
371
371
  /** Autocomplete panel without dialog - use inside Dialog for swappable content */
372
372
  Panel: A,
373
373
  /** Input for use inside Panel */
374
- Input: ct,
374
+ Input: ce,
375
375
  /** Scrollable results container */
376
376
  List: D,
377
377
  /** Category grouping */
378
- Group: tt,
378
+ Group: ee,
379
379
  /** Section header text */
380
- GroupLabel: et,
380
+ GroupLabel: te,
381
381
  /** Basic item */
382
- Item: nt,
382
+ Item: ne,
383
383
  /** Rich item with breadcrumbs, highlights, icons */
384
- ResultItem: rt,
384
+ ResultItem: re,
385
385
  /** Text with highlighted portions */
386
386
  HighlightedText: y,
387
387
  /** Empty state */
388
- Empty: ot,
388
+ Empty: ae,
389
389
  /** Loading state */
390
- Loading: at,
390
+ Loading: oe,
391
391
  /** Footer for keyboard hints */
392
- Footer: st,
392
+ Footer: se,
393
393
  /** Render prop iterator for groups */
394
- Results: ut,
394
+ Results: ue,
395
395
  /** Render prop iterator for items within a group */
396
- Items: dt
396
+ Items: de
397
397
  };
398
398
  export {
399
- vt as C,
400
- Nt as K,
401
- wt as a
399
+ ve as C,
400
+ Ne as K,
401
+ we as a
402
402
  };
403
- //# sourceMappingURL=command-palette-gk9m34ymp2b3hfc5.js.map
403
+ //# sourceMappingURL=command-palette-md65owxt5hv4rt9r.js.map