@alexgorbatchev/shadcn 0.0.83 → 0.0.85

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 (38) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-hn4se2j1.js → chunk-6fj02yzp.js} +3 -3
  3. package/dist/{chunk-8fk1cene.js → chunk-afegpa2s.js} +1 -1
  4. package/dist/{chunk-nz2exxhn.js → chunk-bdsdkjcq.js} +1 -1
  5. package/dist/{chunk-kk558p5p.js → chunk-cjbbeph9.js} +1 -1
  6. package/dist/{chunk-w8hgwhgc.js → chunk-e6mnfecj.js} +1 -1
  7. package/dist/{chunk-wncennvw.js → chunk-fkxhe17e.js} +1 -1
  8. package/dist/{chunk-wg3g8pyt.js → chunk-fnqdw884.js} +1 -1
  9. package/dist/{chunk-gfrg1484.js → chunk-hyhr09xy.js} +1 -1
  10. package/dist/{chunk-4ak25cx4.js → chunk-j2tm6kjm.js} +2 -1
  11. package/dist/{chunk-29xw11s7.js → chunk-mjxhvwgg.js} +4 -4
  12. package/dist/{chunk-ghfmc1t4.js → chunk-s8qhybtb.js} +1 -1
  13. package/dist/{chunk-4r1fne02.js → chunk-tpesmyp0.js} +1 -1
  14. package/dist/{chunk-yeh4zh4b.js → chunk-tz7zjkw3.js} +1 -1
  15. package/dist/{chunk-84ezpzmn.js → chunk-w67bf59k.js} +1 -1
  16. package/dist/{chunk-ygmp2qax.js → chunk-wrm689qy.js} +8 -8
  17. package/dist/components/assistant-ui/elements/CommandPalette.js +2 -2
  18. package/dist/components/assistant-ui/elements/ModelSelector.js +8 -8
  19. package/dist/components/assistant-ui/elements/ModelSelectorContent.js +7 -7
  20. package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +2 -2
  21. package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +2 -2
  22. package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +2 -2
  23. package/dist/components/assistant-ui/elements/ModelSelectorItem.js +2 -2
  24. package/dist/components/assistant-ui/elements/ModelSelectorList.js +4 -4
  25. package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +2 -2
  26. package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +2 -2
  27. package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
  28. package/dist/components/assistant-ui/index.js +13 -13
  29. package/dist/components/assistant-ui/native/ModelSelector.js +10 -10
  30. package/dist/components/assistant-ui/native/index.js +10 -10
  31. package/dist/components/command/Command.d.ts +3 -1
  32. package/dist/components/command/index.js +1 -1
  33. package/dist/components/json-render/index.js +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/prototype.js +1 -1
  36. package/llms/components/navigation/Command.md +1 -1
  37. package/llms/setup.md +1 -1
  38. package/package.json +1 -1
package/README.md CHANGED
@@ -452,7 +452,7 @@ Keep preferred widths separate from the table's rendered sizing atom. In `onFitW
452
452
 
453
453
  `ActionsMenu` shares one `items` definition between a dropdown action and an optional context menu. Supply an accessible `label`; the default trigger is a ghost icon button. `size="sm"` displays the label, and `variant`, `disabled`, and `trigger` customize the action. Supplying `contextTarget` composes the native context trigger with that element and adds its popup. Compose items with `MenuItem`, `MenuLinkItem`, checkbox/radio parts, groups, labels, separators, shortcuts, and submenu parts; dropdown and context menus share these implementations. `MenuLinkItem` retains its native anchor and menu keyboard semantics.
454
454
 
455
- Menus never scroll. `DropdownMenuContent`, `ContextMenuContent`, and submenu content carry `data-scroll="none"`, so the development `ScrollGuard` reports a menu whose content outgrows the viewport; shorten it, for example by grouping items under submenus, instead of letting it scroll. A list longer than a menu should show belongs in a filterable menu: wrap the menu or submenu root in `MenuFilterProvider`, put `MenuInput` at the top of its content, its items in `MenuList`, and an optional `MenuEmpty` message after them. Typing narrows the items while the arrow keys keep moving among them. Pass `filter={null}` with a controlled `value` and `onValueChange` to render the matching items yourself, for example only as many as fit.
455
+ Menus never scroll. A menu or submenu flips to the side of its trigger with room and, when neither side has room, shifts along it, over its trigger if it must, until it lies wholly inside the viewport. `DropdownMenuContent`, `ContextMenuContent`, and submenu content carry `data-scroll="none"`, so the development `ScrollGuard` reports a menu taller than the viewport; shorten it, for example by grouping items under submenus, instead of letting it scroll. A list longer than a menu should show belongs in a filterable menu: wrap the menu or submenu root in `MenuFilterProvider`, put `MenuInput` at the top of its content, its items in `MenuList`, and an optional `MenuEmpty` message after them. Typing narrows the items while the arrow keys keep moving among them. Pass `filter={null}` with a controlled `value` and `onValueChange` to render the matching items yourself, for example only as many as fit.
456
456
 
457
457
  One menu instance can serve a whole list: open it through a `DropdownMenu` `handle` with each row's payload, and pass `point={{ clientX: event.clientX, clientY: event.clientY }}` to `DropdownMenuContent` when a right-click opened it, so it opens at the pointer instead of at the row's trigger. At a point the menu's top start corner sits on the pointer; near the viewport's edges it flips to the side with room and then shifts until it lies wholly inside the viewport. Leave `point` unset for keyboard and trigger opens, which anchor to their trigger.
458
458
 
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  CommandList2,
3
3
  CommandGroup2
4
- } from "./chunk-4ak25cx4.js";
4
+ } from "./chunk-j2tm6kjm.js";
5
5
  import {
6
6
  useModelSelectorContext
7
7
  } from "./chunk-ydfx8r6d.js";
8
8
  import {
9
9
  ModelSelectorEmpty2
10
- } from "./chunk-8fk1cene.js";
10
+ } from "./chunk-afegpa2s.js";
11
11
  import {
12
12
  ModelSelectorItem2
13
- } from "./chunk-yeh4zh4b.js";
13
+ } from "./chunk-tz7zjkw3.js";
14
14
 
15
15
  // src/components/assistant-ui/elements/ModelSelectorList.tsx
16
16
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandEmpty2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorEmpty.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandGroup2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorGroup.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -38,7 +38,7 @@ import {
38
38
  MenuShortcut2,
39
39
  DropdownMenu2,
40
40
  DropdownMenuTrigger2
41
- } from "./chunk-w8hgwhgc.js";
41
+ } from "./chunk-e6mnfecj.js";
42
42
  import {
43
43
  Alert2,
44
44
  AlertTitle2,
@@ -54,7 +54,7 @@ function MenuPopup({
54
54
  const resolvedDensity = useDensity(density);
55
55
  const direction = useDirection2();
56
56
  const anchor = usePointAnchor(point);
57
- const placement = anchor ? { anchor, align: "start", alignOffset: 0, side: "bottom", sideOffset: 0, sticky: true } : { align, alignOffset, side, sideOffset };
57
+ const placement = anchor ? { anchor, align: "start", alignOffset: 0, side: "bottom", sideOffset: 0, sticky: true } : { align, alignOffset, side, sideOffset, sticky: true };
58
58
  return /* @__PURE__ */ jsx(MenuPortal, {
59
59
  children: /* @__PURE__ */ jsx(MenuPrimitive.Positioner, {
60
60
  dir: direction,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandSeparator2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorSeparator.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandInput2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorFocusAnchor.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-gb16cwpw.js";
7
7
  import {
8
8
  ModelSelectorContent2
9
- } from "./chunk-29xw11s7.js";
9
+ } from "./chunk-mjxhvwgg.js";
10
10
 
11
11
  // src/components/assistant-ui/elements/ModelSelector.tsx
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -205,6 +205,7 @@ function CommandItem2({
205
205
  disabledReason,
206
206
  onDisabledSelect,
207
207
  ref,
208
+ touchTarget,
208
209
  ...props
209
210
  }) {
210
211
  const trackedOnSelect = useAnalyticsCallback("CommandItem", analytics, { name: "ui.activate" }, props.onSelect);
@@ -227,7 +228,7 @@ function CommandItem2({
227
228
  ref: mergedRef,
228
229
  "data-slot": "command-item",
229
230
  "data-disabled-reason": disabledReason ? "" : undefined,
230
- className: cn2("group/command-item relative flex min-h-control cursor-default items-center gap-control-gap px-control-x text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-disabled-reason:flex-wrap data-disabled-reason:py-1 data-disabled-reason:data-[disabled=true]:pointer-events-auto data-disabled-reason:data-[disabled=true]:opacity-100 data-disabled-reason:data-[disabled=true]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4", className),
231
+ className: cn2("group/command-item relative flex min-h-control cursor-default items-center gap-control-gap px-control-x text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-disabled-reason:flex-wrap data-disabled-reason:py-1 data-disabled-reason:data-[disabled=true]:pointer-events-auto data-disabled-reason:data-[disabled=true]:opacity-100 data-disabled-reason:data-[disabled=true]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4", touchTarget && "pointer-coarse:min-h-11", className),
231
232
  ...props,
232
233
  disabled: Boolean(disabledReason) || props.disabled,
233
234
  "aria-describedby": [props["aria-describedby"], disabledReason ? reasonId : undefined].filter(Boolean).join(" ") || undefined,
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-bf8kbj33.js";
5
5
  import {
6
6
  Command2
7
- } from "./chunk-4ak25cx4.js";
7
+ } from "./chunk-j2tm6kjm.js";
8
8
  import {
9
9
  useModelSelectorContext
10
10
  } from "./chunk-ydfx8r6d.js";
11
11
  import {
12
12
  ModelSelectorFocusAnchor2
13
- } from "./chunk-wg3g8pyt.js";
13
+ } from "./chunk-fnqdw884.js";
14
14
  import {
15
15
  ModelSelectorSearch2
16
- } from "./chunk-ghfmc1t4.js";
16
+ } from "./chunk-s8qhybtb.js";
17
17
  import {
18
18
  ModelSelectorList2
19
- } from "./chunk-hn4se2j1.js";
19
+ } from "./chunk-6fj02yzp.js";
20
20
  import {
21
21
  ModelSelectorEffort2
22
22
  } from "./chunk-pzr1f2tz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandInput2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorSearch.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ import {
9
9
  MenuItem2,
10
10
  DropdownMenu2,
11
11
  DropdownMenuTrigger2
12
- } from "./chunk-w8hgwhgc.js";
12
+ } from "./chunk-e6mnfecj.js";
13
13
  import {
14
14
  mono
15
15
  } from "./chunk-fgmcbtyt.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandItem2
3
- } from "./chunk-4ak25cx4.js";
3
+ } from "./chunk-j2tm6kjm.js";
4
4
  import {
5
5
  useModelSelectorContext
6
6
  } from "./chunk-ydfx8r6d.js";
@@ -6,7 +6,7 @@ import {
6
6
  CommandGroup2,
7
7
  CommandItem2,
8
8
  CommandShortcut2
9
- } from "./chunk-4ak25cx4.js";
9
+ } from "./chunk-j2tm6kjm.js";
10
10
  import {
11
11
  Kbd2
12
12
  } from "./chunk-7vnpp3ya.js";
@@ -12,31 +12,31 @@ import {
12
12
  } from "./chunk-gb16cwpw.js";
13
13
  import {
14
14
  ModelSelectorFocusAnchor2
15
- } from "./chunk-wg3g8pyt.js";
15
+ } from "./chunk-fnqdw884.js";
16
16
  import {
17
17
  ModelSelectorSearch2
18
- } from "./chunk-ghfmc1t4.js";
18
+ } from "./chunk-s8qhybtb.js";
19
19
  import {
20
20
  ModelSelectorEmpty2
21
- } from "./chunk-8fk1cene.js";
21
+ } from "./chunk-afegpa2s.js";
22
22
  import {
23
23
  ModelSelectorItem2
24
- } from "./chunk-yeh4zh4b.js";
24
+ } from "./chunk-tz7zjkw3.js";
25
25
  import {
26
26
  ModelSelectorList2
27
- } from "./chunk-hn4se2j1.js";
27
+ } from "./chunk-6fj02yzp.js";
28
28
  import {
29
29
  ModelSelectorEffort2
30
30
  } from "./chunk-pzr1f2tz.js";
31
31
  import {
32
32
  ModelSelectorContent2
33
- } from "./chunk-29xw11s7.js";
33
+ } from "./chunk-mjxhvwgg.js";
34
34
  import {
35
35
  ModelSelectorGroup2
36
- } from "./chunk-nz2exxhn.js";
36
+ } from "./chunk-bdsdkjcq.js";
37
37
  import {
38
38
  ModelSelectorSeparator2
39
- } from "./chunk-wncennvw.js";
39
+ } from "./chunk-fkxhe17e.js";
40
40
 
41
41
  // src/components/assistant-ui/native/ModelSelector.tsx
42
42
  import { memo, useEffect } from "react";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  CommandPalette2
3
- } from "../../../chunk-84ezpzmn.js";
3
+ } from "../../../chunk-w67bf59k.js";
4
4
  import"../../../chunk-7vnpp3ya.js";
5
- import"../../../chunk-4ak25cx4.js";
5
+ import"../../../chunk-j2tm6kjm.js";
6
6
  import"../../../chunk-t6gbcj27.js";
7
7
  import"../../../chunk-4j3fsft3.js";
8
8
  import"../../../chunk-er6e5fj8.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  ModelSelector2
3
- } from "../../../chunk-gfrg1484.js";
3
+ } from "../../../chunk-hyhr09xy.js";
4
4
  import"../../../chunk-k2t9ey7z.js";
5
5
  import"../../../chunk-gb16cwpw.js";
6
- import"../../../chunk-29xw11s7.js";
7
- import"../../../chunk-hn4se2j1.js";
6
+ import"../../../chunk-mjxhvwgg.js";
7
+ import"../../../chunk-6fj02yzp.js";
8
8
  import"../../../chunk-pzr1f2tz.js";
9
- import"../../../chunk-8fk1cene.js";
10
- import"../../../chunk-wg3g8pyt.js";
11
- import"../../../chunk-ghfmc1t4.js";
12
- import"../../../chunk-yeh4zh4b.js";
9
+ import"../../../chunk-afegpa2s.js";
10
+ import"../../../chunk-fnqdw884.js";
11
+ import"../../../chunk-s8qhybtb.js";
12
+ import"../../../chunk-tz7zjkw3.js";
13
13
  import"../../../chunk-0qkdp68h.js";
14
14
  import"../../../chunk-ydfx8r6d.js";
15
15
  import"../../../chunk-kp3jgjng.js";
16
16
  import"../../../chunk-tcefvfr8.js";
17
17
  import"../../../chunk-bf8kbj33.js";
18
- import"../../../chunk-4ak25cx4.js";
18
+ import"../../../chunk-j2tm6kjm.js";
19
19
  import"../../../chunk-t6gbcj27.js";
20
20
  import"../../../chunk-4j3fsft3.js";
21
21
  import"../../../chunk-er6e5fj8.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ModelSelectorContent2
3
- } from "../../../chunk-29xw11s7.js";
4
- import"../../../chunk-hn4se2j1.js";
3
+ } from "../../../chunk-mjxhvwgg.js";
4
+ import"../../../chunk-6fj02yzp.js";
5
5
  import"../../../chunk-pzr1f2tz.js";
6
- import"../../../chunk-8fk1cene.js";
7
- import"../../../chunk-wg3g8pyt.js";
8
- import"../../../chunk-ghfmc1t4.js";
9
- import"../../../chunk-yeh4zh4b.js";
6
+ import"../../../chunk-afegpa2s.js";
7
+ import"../../../chunk-fnqdw884.js";
8
+ import"../../../chunk-s8qhybtb.js";
9
+ import"../../../chunk-tz7zjkw3.js";
10
10
  import"../../../chunk-ydfx8r6d.js";
11
11
  import"../../../chunk-kp3jgjng.js";
12
12
  import"../../../chunk-tcefvfr8.js";
13
13
  import"../../../chunk-bf8kbj33.js";
14
- import"../../../chunk-4ak25cx4.js";
14
+ import"../../../chunk-j2tm6kjm.js";
15
15
  import"../../../chunk-t6gbcj27.js";
16
16
  import"../../../chunk-4j3fsft3.js";
17
17
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ModelSelectorEmpty2
3
- } from "../../../chunk-8fk1cene.js";
4
- import"../../../chunk-4ak25cx4.js";
3
+ } from "../../../chunk-afegpa2s.js";
4
+ import"../../../chunk-j2tm6kjm.js";
5
5
  import"../../../chunk-t6gbcj27.js";
6
6
  import"../../../chunk-4j3fsft3.js";
7
7
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ModelSelectorFocusAnchor2
3
- } from "../../../chunk-wg3g8pyt.js";
4
- import"../../../chunk-4ak25cx4.js";
3
+ } from "../../../chunk-fnqdw884.js";
4
+ import"../../../chunk-j2tm6kjm.js";
5
5
  import"../../../chunk-t6gbcj27.js";
6
6
  import"../../../chunk-4j3fsft3.js";
7
7
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ModelSelectorGroup2
3
- } from "../../../chunk-nz2exxhn.js";
4
- import"../../../chunk-4ak25cx4.js";
3
+ } from "../../../chunk-bdsdkjcq.js";
4
+ import"../../../chunk-j2tm6kjm.js";
5
5
  import"../../../chunk-t6gbcj27.js";
6
6
  import"../../../chunk-4j3fsft3.js";
7
7
  import"../../../chunk-er6e5fj8.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ModelSelectorItem2
3
- } from "../../../chunk-yeh4zh4b.js";
3
+ } from "../../../chunk-tz7zjkw3.js";
4
4
  import"../../../chunk-ydfx8r6d.js";
5
5
  import"../../../chunk-kp3jgjng.js";
6
- import"../../../chunk-4ak25cx4.js";
6
+ import"../../../chunk-j2tm6kjm.js";
7
7
  import"../../../chunk-t6gbcj27.js";
8
8
  import"../../../chunk-4j3fsft3.js";
9
9
  import"../../../chunk-er6e5fj8.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ModelSelectorList2
3
- } from "../../../chunk-hn4se2j1.js";
4
- import"../../../chunk-8fk1cene.js";
5
- import"../../../chunk-yeh4zh4b.js";
3
+ } from "../../../chunk-6fj02yzp.js";
4
+ import"../../../chunk-afegpa2s.js";
5
+ import"../../../chunk-tz7zjkw3.js";
6
6
  import"../../../chunk-ydfx8r6d.js";
7
7
  import"../../../chunk-kp3jgjng.js";
8
- import"../../../chunk-4ak25cx4.js";
8
+ import"../../../chunk-j2tm6kjm.js";
9
9
  import"../../../chunk-t6gbcj27.js";
10
10
  import"../../../chunk-4j3fsft3.js";
11
11
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ModelSelectorSearch2
3
- } from "../../../chunk-ghfmc1t4.js";
4
- import"../../../chunk-4ak25cx4.js";
3
+ } from "../../../chunk-s8qhybtb.js";
4
+ import"../../../chunk-j2tm6kjm.js";
5
5
  import"../../../chunk-t6gbcj27.js";
6
6
  import"../../../chunk-4j3fsft3.js";
7
7
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ModelSelectorSeparator2
3
- } from "../../../chunk-wncennvw.js";
4
- import"../../../chunk-4ak25cx4.js";
3
+ } from "../../../chunk-fkxhe17e.js";
4
+ import"../../../chunk-j2tm6kjm.js";
5
5
  import"../../../chunk-t6gbcj27.js";
6
6
  import"../../../chunk-4j3fsft3.js";
7
7
  import"../../../chunk-er6e5fj8.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RegenerateMenu2
3
- } from "../../../chunk-4r1fne02.js";
4
- import"../../../chunk-w8hgwhgc.js";
3
+ } from "../../../chunk-tpesmyp0.js";
4
+ import"../../../chunk-e6mnfecj.js";
5
5
  import"../../../chunk-32t5kc0y.js";
6
6
  import"../../../chunk-x90xmrba.js";
7
7
  import"../../../chunk-jpvw9xqy.js";
@@ -86,11 +86,11 @@ import {
86
86
  CodeRunner2
87
87
  } from "../../chunk-r1qyx0ke.js";
88
88
  import"../../chunk-t6gbcj27.js";
89
- import"../../chunk-4ak25cx4.js";
89
+ import"../../chunk-j2tm6kjm.js";
90
90
  import"../../chunk-7vnpp3ya.js";
91
91
  import {
92
92
  CommandPalette2
93
- } from "../../chunk-84ezpzmn.js";
93
+ } from "../../chunk-w67bf59k.js";
94
94
  import {
95
95
  ComparisonCard2
96
96
  } from "../../chunk-d93zpy8g.js";
@@ -387,34 +387,34 @@ import {
387
387
  } from "../../chunk-gb16cwpw.js";
388
388
  import {
389
389
  ModelSelectorFocusAnchor2
390
- } from "../../chunk-wg3g8pyt.js";
390
+ } from "../../chunk-fnqdw884.js";
391
391
  import {
392
392
  ModelSelectorSearch2
393
- } from "../../chunk-ghfmc1t4.js";
393
+ } from "../../chunk-s8qhybtb.js";
394
394
  import {
395
395
  ModelSelectorEmpty2
396
- } from "../../chunk-8fk1cene.js";
396
+ } from "../../chunk-afegpa2s.js";
397
397
  import {
398
398
  ModelSelectorItem2
399
- } from "../../chunk-yeh4zh4b.js";
399
+ } from "../../chunk-tz7zjkw3.js";
400
400
  import {
401
401
  ModelSelectorList2
402
- } from "../../chunk-hn4se2j1.js";
402
+ } from "../../chunk-6fj02yzp.js";
403
403
  import {
404
404
  ModelSelectorEffort2
405
405
  } from "../../chunk-pzr1f2tz.js";
406
406
  import {
407
407
  ModelSelectorContent2
408
- } from "../../chunk-29xw11s7.js";
408
+ } from "../../chunk-mjxhvwgg.js";
409
409
  import {
410
410
  ModelSelector2
411
- } from "../../chunk-gfrg1484.js";
411
+ } from "../../chunk-hyhr09xy.js";
412
412
  import {
413
413
  ModelSelectorGroup2
414
- } from "../../chunk-nz2exxhn.js";
414
+ } from "../../chunk-bdsdkjcq.js";
415
415
  import {
416
416
  ModelSelectorSeparator2
417
- } from "../../chunk-wncennvw.js";
417
+ } from "../../chunk-fkxhe17e.js";
418
418
  import {
419
419
  NumberRoll2
420
420
  } from "../../chunk-wtf2qczs.js";
@@ -481,10 +481,10 @@ import {
481
481
  import {
482
482
  RecommendationCard2
483
483
  } from "../../chunk-nqgpzqmk.js";
484
- import"../../chunk-w8hgwhgc.js";
484
+ import"../../chunk-e6mnfecj.js";
485
485
  import {
486
486
  RegenerateMenu2
487
- } from "../../chunk-4r1fne02.js";
487
+ } from "../../chunk-tpesmyp0.js";
488
488
  import {
489
489
  ResearchReport2
490
490
  } from "../../chunk-fdhssr0q.js";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  ModelSelector3
3
- } from "../../../chunk-ygmp2qax.js";
3
+ } from "../../../chunk-wrm689qy.js";
4
4
  import"../../../chunk-k2t9ey7z.js";
5
5
  import"../../../chunk-gb16cwpw.js";
6
- import"../../../chunk-nz2exxhn.js";
7
- import"../../../chunk-wncennvw.js";
8
- import"../../../chunk-29xw11s7.js";
9
- import"../../../chunk-hn4se2j1.js";
6
+ import"../../../chunk-bdsdkjcq.js";
7
+ import"../../../chunk-fkxhe17e.js";
8
+ import"../../../chunk-mjxhvwgg.js";
9
+ import"../../../chunk-6fj02yzp.js";
10
10
  import"../../../chunk-pzr1f2tz.js";
11
- import"../../../chunk-8fk1cene.js";
12
- import"../../../chunk-wg3g8pyt.js";
13
- import"../../../chunk-ghfmc1t4.js";
14
- import"../../../chunk-yeh4zh4b.js";
11
+ import"../../../chunk-afegpa2s.js";
12
+ import"../../../chunk-fnqdw884.js";
13
+ import"../../../chunk-s8qhybtb.js";
14
+ import"../../../chunk-tz7zjkw3.js";
15
15
  import"../../../chunk-0qkdp68h.js";
16
16
  import"../../../chunk-ydfx8r6d.js";
17
17
  import"../../../chunk-kp3jgjng.js";
18
18
  import"../../../chunk-tcefvfr8.js";
19
19
  import"../../../chunk-bf8kbj33.js";
20
- import"../../../chunk-4ak25cx4.js";
20
+ import"../../../chunk-j2tm6kjm.js";
21
21
  import"../../../chunk-t6gbcj27.js";
22
22
  import"../../../chunk-4j3fsft3.js";
23
23
  import"../../../chunk-er6e5fj8.js";
@@ -153,19 +153,19 @@ import"../../../chunk-k2t9ey7z.js";
153
153
  import"../../../chunk-0qkdp68h.js";
154
154
  import"../../../chunk-gb16cwpw.js";
155
155
  import"../../../chunk-4j3fsft3.js";
156
- import"../../../chunk-4ak25cx4.js";
157
- import"../../../chunk-wg3g8pyt.js";
158
- import"../../../chunk-ghfmc1t4.js";
159
- import"../../../chunk-8fk1cene.js";
160
- import"../../../chunk-yeh4zh4b.js";
161
- import"../../../chunk-hn4se2j1.js";
156
+ import"../../../chunk-j2tm6kjm.js";
157
+ import"../../../chunk-fnqdw884.js";
158
+ import"../../../chunk-s8qhybtb.js";
159
+ import"../../../chunk-afegpa2s.js";
160
+ import"../../../chunk-tz7zjkw3.js";
161
+ import"../../../chunk-6fj02yzp.js";
162
162
  import"../../../chunk-pzr1f2tz.js";
163
- import"../../../chunk-29xw11s7.js";
164
- import"../../../chunk-nz2exxhn.js";
165
- import"../../../chunk-wncennvw.js";
163
+ import"../../../chunk-mjxhvwgg.js";
164
+ import"../../../chunk-bdsdkjcq.js";
165
+ import"../../../chunk-fkxhe17e.js";
166
166
  import {
167
167
  ModelSelector3
168
- } from "../../../chunk-ygmp2qax.js";
168
+ } from "../../../chunk-wrm689qy.js";
169
169
  import {
170
170
  QuoteBlockRoot2,
171
171
  QuoteBlockIcon2,
@@ -25,7 +25,9 @@ type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item> & IAnalytic
25
25
  disabledReason?: string;
26
26
  /** Runs instead of `onSelect` when Enter or a click selects an item with a disabled reason, to announce it. */
27
27
  onDisabledSelect?: () => void;
28
+ /** Gives the item a minimum height of 44px when the primary pointer is coarse. */
29
+ touchTarget?: boolean;
28
30
  };
29
- declare function CommandItem({ analytics, className, children, disabledReason, onDisabledSelect, ref, ...props }: CommandItemProps): ReactElement;
31
+ declare function CommandItem({ analytics, className, children, disabledReason, onDisabledSelect, ref, touchTarget, ...props }: CommandItemProps): ReactElement;
30
32
  declare function CommandShortcut({ className, ...props }: ComponentProps<"span">): ReactElement;
31
33
  export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, };
@@ -20,7 +20,7 @@ import {
20
20
  CommandSeparator2,
21
21
  CommandItem2,
22
22
  CommandShortcut2
23
- } from "../../chunk-4ak25cx4.js";
23
+ } from "../../chunk-j2tm6kjm.js";
24
24
  import"../../chunk-5mydsjp3.js";
25
25
  export {
26
26
  Command2 as Command,
@@ -31,13 +31,13 @@ import {
31
31
  DrawerHeader2,
32
32
  DrawerTitle2,
33
33
  DrawerDescription2
34
- } from "../../chunk-kk558p5p.js";
34
+ } from "../../chunk-cjbbeph9.js";
35
35
  import {
36
36
  MenuPopup,
37
37
  MenuItem2,
38
38
  DropdownMenu2,
39
39
  DropdownMenuTrigger2
40
- } from "../../chunk-w8hgwhgc.js";
40
+ } from "../../chunk-e6mnfecj.js";
41
41
  import {
42
42
  Alert2,
43
43
  AlertTitle2,
package/dist/index.js CHANGED
@@ -174,7 +174,7 @@ import {
174
174
  StatusTracker2,
175
175
  DashboardLayout2,
176
176
  BillingUsage2
177
- } from "./chunk-kk558p5p.js";
177
+ } from "./chunk-cjbbeph9.js";
178
178
  import {
179
179
  Combobox2,
180
180
  ComboboxValue2,
@@ -247,7 +247,7 @@ import {
247
247
  MenuShortcut2,
248
248
  DropdownMenu2,
249
249
  DropdownMenuTrigger2
250
- } from "./chunk-w8hgwhgc.js";
250
+ } from "./chunk-e6mnfecj.js";
251
251
  import {
252
252
  Empty2,
253
253
  EmptyHeader2,
package/dist/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.83",
2054
+ version: "0.0.85",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -43,7 +43,7 @@ function Render(args) {
43
43
  <CommandList label="Commands">
44
44
  <CommandEmpty>No results found.</CommandEmpty>
45
45
  <CommandGroup heading="Workspace">
46
- <CommandItem value="new-file" keywords={["create"]} onSelect={setAction}>
46
+ <CommandItem value="new-file" keywords={["create"]} onSelect={setAction} touchTarget>
47
47
  New file<CommandShortcut>Ctrl+N</CommandShortcut>
48
48
  </CommandItem>
49
49
  <CommandItem value="delete" disabled>
package/llms/setup.md CHANGED
@@ -452,7 +452,7 @@ Keep preferred widths separate from the table's rendered sizing atom. In `onFitW
452
452
 
453
453
  `ActionsMenu` shares one `items` definition between a dropdown action and an optional context menu. Supply an accessible `label`; the default trigger is a ghost icon button. `size="sm"` displays the label, and `variant`, `disabled`, and `trigger` customize the action. Supplying `contextTarget` composes the native context trigger with that element and adds its popup. Compose items with `MenuItem`, `MenuLinkItem`, checkbox/radio parts, groups, labels, separators, shortcuts, and submenu parts; dropdown and context menus share these implementations. `MenuLinkItem` retains its native anchor and menu keyboard semantics.
454
454
 
455
- Menus never scroll. `DropdownMenuContent`, `ContextMenuContent`, and submenu content carry `data-scroll="none"`, so the development `ScrollGuard` reports a menu whose content outgrows the viewport; shorten it, for example by grouping items under submenus, instead of letting it scroll. A list longer than a menu should show belongs in a filterable menu: wrap the menu or submenu root in `MenuFilterProvider`, put `MenuInput` at the top of its content, its items in `MenuList`, and an optional `MenuEmpty` message after them. Typing narrows the items while the arrow keys keep moving among them. Pass `filter={null}` with a controlled `value` and `onValueChange` to render the matching items yourself, for example only as many as fit.
455
+ Menus never scroll. A menu or submenu flips to the side of its trigger with room and, when neither side has room, shifts along it, over its trigger if it must, until it lies wholly inside the viewport. `DropdownMenuContent`, `ContextMenuContent`, and submenu content carry `data-scroll="none"`, so the development `ScrollGuard` reports a menu taller than the viewport; shorten it, for example by grouping items under submenus, instead of letting it scroll. A list longer than a menu should show belongs in a filterable menu: wrap the menu or submenu root in `MenuFilterProvider`, put `MenuInput` at the top of its content, its items in `MenuList`, and an optional `MenuEmpty` message after them. Typing narrows the items while the arrow keys keep moving among them. Pass `filter={null}` with a controlled `value` and `onValueChange` to render the matching items yourself, for example only as many as fit.
456
456
 
457
457
  One menu instance can serve a whole list: open it through a `DropdownMenu` `handle` with each row's payload, and pass `point={{ clientX: event.clientX, clientY: event.clientY }}` to `DropdownMenuContent` when a right-click opened it, so it opens at the pointer instead of at the row's trigger. At a point the menu's top start corner sits on the pointer; near the viewport's edges it flips to the side with room and then shifts until it lies wholly inside the viewport. Leave `point` unset for keyboard and trigger opens, which anchor to their trigger.
458
458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {