@alexgorbatchev/shadcn 0.0.84 → 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.
- package/README.md +1 -1
- package/dist/{chunk-kk558p5p.js → chunk-cjbbeph9.js} +1 -1
- package/dist/{chunk-w8hgwhgc.js → chunk-e6mnfecj.js} +1 -1
- package/dist/{chunk-4r1fne02.js → chunk-tpesmyp0.js} +1 -1
- package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
- package/dist/components/assistant-ui/index.js +2 -2
- package/dist/components/json-render/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/prototype.js +1 -1
- package/llms/setup.md +1 -1
- 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
|
|
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
|
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RegenerateMenu2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
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";
|
|
@@ -481,10 +481,10 @@ import {
|
|
|
481
481
|
import {
|
|
482
482
|
RecommendationCard2
|
|
483
483
|
} from "../../chunk-nqgpzqmk.js";
|
|
484
|
-
import"../../chunk-
|
|
484
|
+
import"../../chunk-e6mnfecj.js";
|
|
485
485
|
import {
|
|
486
486
|
RegenerateMenu2
|
|
487
|
-
} from "../../chunk-
|
|
487
|
+
} from "../../chunk-tpesmyp0.js";
|
|
488
488
|
import {
|
|
489
489
|
ResearchReport2
|
|
490
490
|
} from "../../chunk-fdhssr0q.js";
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
DrawerHeader2,
|
|
32
32
|
DrawerTitle2,
|
|
33
33
|
DrawerDescription2
|
|
34
|
-
} from "../../chunk-
|
|
34
|
+
} from "../../chunk-cjbbeph9.js";
|
|
35
35
|
import {
|
|
36
36
|
MenuPopup,
|
|
37
37
|
MenuItem2,
|
|
38
38
|
DropdownMenu2,
|
|
39
39
|
DropdownMenuTrigger2
|
|
40
|
-
} from "../../chunk-
|
|
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-
|
|
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-
|
|
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.
|
|
2054
|
+
version: "0.0.85",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
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
|
|
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
|
|