@alexgorbatchev/shadcn 0.0.154 → 0.0.155

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.
@@ -50,13 +50,13 @@ var fieldVariants = cva("group/field flex w-full gap-2 data-[invalid=true]:text-
50
50
  orientation: "vertical"
51
51
  }
52
52
  });
53
- function Field2({ density, className, orientation = "vertical", ...props }) {
53
+ function Field2({ density, className, orientation = "vertical", grow = false, ...props }) {
54
54
  return /* @__PURE__ */ jsx("div", {
55
55
  role: "group",
56
56
  "data-density": density,
57
57
  "data-slot": "field",
58
58
  "data-orientation": orientation,
59
- className: cn2(fieldVariants({ orientation }), className),
59
+ className: cn2(fieldVariants({ orientation }), grow && "min-h-0 flex-1", className),
60
60
  ...props
61
61
  });
62
62
  }
@@ -71,7 +71,7 @@ import {
71
71
  Field2,
72
72
  FieldLabel2,
73
73
  FieldDescription2
74
- } from "./chunk-9e1yb90r.js";
74
+ } from "./chunk-5ez5vgkn.js";
75
75
  import {
76
76
  Textarea2
77
77
  } from "./chunk-p51p95er.js";
@@ -351,19 +351,22 @@ function FormDialog2({
351
351
  const isFullscreen = size === "fullscreen";
352
352
  const body = /* @__PURE__ */ jsxs2(Fragment, {
353
353
  children: [
354
- /* @__PURE__ */ jsxs2(ScrollArea2, {
354
+ /* @__PURE__ */ jsx4(ScrollArea2, {
355
355
  density,
356
356
  grow: isFullscreen,
357
- children: [
358
- children,
359
- error && /* @__PURE__ */ jsx4(Alert2, {
360
- variant: "destructive",
361
- density,
362
- children: /* @__PURE__ */ jsx4(AlertDescription2, {
363
- children: error
357
+ children: /* @__PURE__ */ jsxs2("div", {
358
+ className: cn2("flex flex-col gap-panel", isFullscreen && "min-h-full"),
359
+ children: [
360
+ children,
361
+ error && /* @__PURE__ */ jsx4(Alert2, {
362
+ variant: "destructive",
363
+ density,
364
+ children: /* @__PURE__ */ jsx4(AlertDescription2, {
365
+ children: error
366
+ })
364
367
  })
365
- })
366
- ]
368
+ ]
369
+ })
367
370
  }),
368
371
  /* @__PURE__ */ jsxs2(DialogFooter2, {
369
372
  density,
@@ -1682,7 +1685,7 @@ function BreadcrumbLink2({ analytics, density, className, render, ...props }) {
1682
1685
  return useRender3({
1683
1686
  defaultTagName: "a",
1684
1687
  props: mergeProps3({
1685
- className: cn2("inline-block cursor-pointer border-b border-input leading-6 transition-colors hover:border-foreground hover:text-foreground", className)
1688
+ className: cn2("inline-block cursor-pointer rounded-xs border-b border-input px-0.5 -mx-0.5 leading-6 transition-colors outline-none hover:border-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring", className)
1686
1689
  }, { ...props, onClick }),
1687
1690
  render,
1688
1691
  state: {
@@ -1909,7 +1912,7 @@ function Item2({
1909
1912
  }
1910
1913
  });
1911
1914
  }
1912
- var itemMediaVariants = cva2("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
1915
+ var itemMediaVariants = cva2("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&:last-child:not(:first-child)]:translate-y-0 [&:last-child:not(:first-child)]:self-center [&_svg]:pointer-events-none", {
1913
1916
  variants: {
1914
1917
  variant: {
1915
1918
  default: "bg-transparent",
@@ -13,7 +13,7 @@ import {
13
13
  FieldGroup2,
14
14
  Field2,
15
15
  FieldLabel2
16
- } from "./chunk-9e1yb90r.js";
16
+ } from "./chunk-5ez5vgkn.js";
17
17
  import {
18
18
  RadioGroup2,
19
19
  RadioGroupItem2
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  Field2,
14
14
  FieldLabel2
15
- } from "./chunk-9e1yb90r.js";
15
+ } from "./chunk-5ez5vgkn.js";
16
16
  import {
17
17
  Textarea2
18
18
  } from "./chunk-p51p95er.js";
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  Field2,
11
11
  FieldLabel2
12
- } from "./chunk-9e1yb90r.js";
12
+ } from "./chunk-5ez5vgkn.js";
13
13
  import {
14
14
  Textarea2
15
15
  } from "./chunk-p51p95er.js";
@@ -12,7 +12,7 @@ import {
12
12
  FieldContent2,
13
13
  FieldLabel2,
14
14
  FieldDescription2
15
- } from "./chunk-9e1yb90r.js";
15
+ } from "./chunk-5ez5vgkn.js";
16
16
  import {
17
17
  RadioGroup2,
18
18
  RadioGroupItem2
@@ -15,8 +15,11 @@ declare function FieldGroup({ density, className, columns, ...props }: FieldGrou
15
15
  declare const fieldVariants: (props?: ({
16
16
  orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
17
17
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
18
- type FieldProps = ComponentProps<"div"> & VariantProps<typeof fieldVariants> & IDensityProps;
19
- declare function Field({ density, className, orientation, ...props }: FieldProps): ReactElement;
18
+ type FieldProps = ComponentProps<"div"> & VariantProps<typeof fieldVariants> & IDensityProps & {
19
+ /** Stretch inside a flex container (for example, a fullscreen FormDialog holding a growing picker). */
20
+ grow?: boolean;
21
+ };
22
+ declare function Field({ density, className, orientation, grow, ...props }: FieldProps): ReactElement;
20
23
  type FieldContentProps = ComponentProps<"div"> & IDensityProps;
21
24
  declare function FieldContent({ density, className, ...props }: FieldContentProps): ReactElement;
22
25
  type FieldLabelProps = ComponentProps<typeof Label> & IDensityProps & {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  EditMessage2
3
- } from "../../../chunk-5q0670jv.js";
3
+ } from "../../../chunk-tgkc06q4.js";
4
4
  import"../../../chunk-vxvaaptq.js";
5
- import"../../../chunk-9e1yb90r.js";
5
+ import"../../../chunk-5ez5vgkn.js";
6
6
  import"../../../chunk-jc3cbwyg.js";
7
7
  import"../../../chunk-4m2x9jfb.js";
8
8
  import"../../../chunk-p51p95er.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ElicitationForm2
3
- } from "../../../chunk-ncskzkqr.js";
3
+ } from "../../../chunk-hbhpnc1m.js";
4
4
  import"../../../chunk-vxvaaptq.js";
5
5
  import"../../../chunk-kgqe8gpb.js";
6
6
  import"../../../chunk-m98d89xc.js";
7
- import"../../../chunk-9e1yb90r.js";
7
+ import"../../../chunk-5ez5vgkn.js";
8
8
  import"../../../chunk-jc3cbwyg.js";
9
9
  import"../../../chunk-4m2x9jfb.js";
10
10
  import"../../../chunk-7vg045gd.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  FeedbackDialog2
3
- } from "../../../chunk-v64bc7ky.js";
3
+ } from "../../../chunk-j6mh013a.js";
4
4
  import"../../../chunk-pbyj8rja.js";
5
- import"../../../chunk-9e1yb90r.js";
5
+ import"../../../chunk-5ez5vgkn.js";
6
6
  import"../../../chunk-jc3cbwyg.js";
7
7
  import"../../../chunk-4m2x9jfb.js";
8
8
  import"../../../chunk-p51p95er.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ModelPicker2
3
- } from "../../../chunk-ywr2pqhc.js";
3
+ } from "../../../chunk-xndv627n.js";
4
4
  import"../../../chunk-kgqe8gpb.js";
5
- import"../../../chunk-9e1yb90r.js";
5
+ import"../../../chunk-5ez5vgkn.js";
6
6
  import"../../../chunk-jc3cbwyg.js";
7
7
  import"../../../chunk-dbe9ppwf.js";
8
8
  import"../../../chunk-4m2x9jfb.js";
@@ -226,15 +226,15 @@ import {
226
226
  } from "../../chunk-fvxzrt3b.js";
227
227
  import"../../chunk-4m2x9jfb.js";
228
228
  import"../../chunk-52aadmkc.js";
229
- import"../../chunk-9e1yb90r.js";
229
+ import"../../chunk-5ez5vgkn.js";
230
230
  import {
231
231
  EditMessage2
232
- } from "../../chunk-5q0670jv.js";
232
+ } from "../../chunk-tgkc06q4.js";
233
233
  import"../../chunk-kgqe8gpb.js";
234
234
  import"../../chunk-m98d89xc.js";
235
235
  import {
236
236
  ElicitationForm2
237
- } from "../../chunk-ncskzkqr.js";
237
+ } from "../../chunk-hbhpnc1m.js";
238
238
  import"../../chunk-4e96tpw0.js";
239
239
  import {
240
240
  EmptyState2
@@ -262,7 +262,7 @@ import {
262
262
  import"../../chunk-pbyj8rja.js";
263
263
  import {
264
264
  FeedbackDialog2
265
- } from "../../chunk-v64bc7ky.js";
265
+ } from "../../chunk-j6mh013a.js";
266
266
  import {
267
267
  FileRoot2,
268
268
  FileIconDisplay2,
@@ -373,7 +373,7 @@ import {
373
373
  } from "../../chunk-k872qrgx.js";
374
374
  import {
375
375
  ModelPicker2
376
- } from "../../chunk-ywr2pqhc.js";
376
+ } from "../../chunk-xndv627n.js";
377
377
  import"../../chunk-kp3jgjng.js";
378
378
  import {
379
379
  ModelSelectorRoot2
@@ -15,7 +15,7 @@ import {
15
15
  FieldGroup2,
16
16
  Field2,
17
17
  FieldLabel2
18
- } from "../../chunk-9e1yb90r.js";
18
+ } from "../../chunk-5ez5vgkn.js";
19
19
  import"../../chunk-7jpsybag.js";
20
20
  import {
21
21
  Input2
@@ -26,7 +26,7 @@ import {
26
26
  FieldContent2,
27
27
  FieldLabel2,
28
28
  FieldDescription2
29
- } from "../../chunk-9e1yb90r.js";
29
+ } from "../../chunk-5ez5vgkn.js";
30
30
  import {
31
31
  NumberField2,
32
32
  NumberFieldGroup2,
@@ -29,7 +29,7 @@ import {
29
29
  Field2,
30
30
  FieldLabel2,
31
31
  FieldDescription2
32
- } from "../../chunk-9e1yb90r.js";
32
+ } from "../../chunk-5ez5vgkn.js";
33
33
  import"../../chunk-7jpsybag.js";
34
34
  import {
35
35
  Input2
@@ -26,7 +26,7 @@ import {
26
26
  PaginationPrevious2,
27
27
  PaginationNext2,
28
28
  PaginationEllipsis2
29
- } from "../../chunk-a08meqj4.js";
29
+ } from "../../chunk-g2amqz9q.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
@@ -69,7 +69,7 @@ import {
69
69
  import {
70
70
  Field2,
71
71
  FieldLabel2
72
- } from "../../chunk-9e1yb90r.js";
72
+ } from "../../chunk-5ez5vgkn.js";
73
73
  import {
74
74
  Slider2
75
75
  } from "../../chunk-7cq1s2ey.js";
@@ -126,7 +126,7 @@ function TextDiff({
126
126
  children: [
127
127
  /* @__PURE__ */ jsxs("div", {
128
128
  "data-testid": "TextDiff--legend",
129
- className: cn2("flex min-h-control-lg items-center gap-control-gap border-b border-frame-edge px-control-x text-xs font-medium tracking-wide text-muted-foreground", isSplit && "[&>*]:w-1/2"),
129
+ className: cn2("flex min-h-control-lg items-center border-b border-frame-edge text-xs font-medium tracking-wide text-muted-foreground", isSplit ? "[&>*]:w-1/2 [&>*:first-child]:border-e [&>*:first-child]:border-frame-edge [&>*:first-child]:ps-control-x [&>*:first-child]:pe-control-x [&>*:last-child]:px-control-x" : "gap-control-gap px-control-x"),
130
130
  children: [
131
131
  /* @__PURE__ */ jsx(SignLabel, {
132
132
  sign: "-",
@@ -150,11 +150,12 @@ function TextDiff({
150
150
  return /* @__PURE__ */ jsxs(Fragment, {
151
151
  children: [
152
152
  /* @__PURE__ */ jsx("div", {
153
- className: "flex px-control-x py-0.5 font-sans",
153
+ "data-slot": "text-diff-fold",
154
+ className: "my-1 flex items-center border-y border-frame-edge bg-muted/40 px-control-x py-1 font-sans",
154
155
  children: /* @__PURE__ */ jsx(Button2, {
155
156
  type: "button",
156
- variant: "ghost",
157
- size: "sm",
157
+ variant: "outline",
158
+ size: "xs",
158
159
  "aria-expanded": isExpanded,
159
160
  "aria-controls": regionId,
160
161
  onClick: () => toggle(segment.start),
@@ -6,6 +6,8 @@ type TreeProps<T> = IAnalyticsProps & IDensityProps & {
6
6
  tree: TreeInstance<T>;
7
7
  label: string;
8
8
  variant?: "default" | "sidebar";
9
+ /** Take remaining vertical space inside a flex parent while keeping rows packed from the top. */
10
+ grow?: boolean;
9
11
  renderIcon?: (item: ItemInstance<T>) => ReactNode;
10
12
  renderLabel?: (item: ItemInstance<T>) => ReactNode;
11
13
  renderItem?: (item: ItemInstance<T>) => ReactNode;
@@ -14,6 +16,6 @@ type TreeProps<T> = IAnalyticsProps & IDensityProps & {
14
16
  * Headless Tree owns navigation, selection, expansion, and optional pointer/keyboard drag and drop. The tree is one Tab
15
17
  * stop: arrows move between items, and row controls stay out of the Tab order.
16
18
  */
17
- declare function Tree<T>({ analytics, tree, label, variant, renderIcon, renderLabel, renderItem, density, }: TreeProps<T>): ReactElement;
19
+ declare function Tree<T>({ analytics, tree, label, variant, grow, renderIcon, renderLabel, renderItem, density, }: TreeProps<T>): ReactElement;
18
20
  export { Tree };
19
21
  export type { TreeProps };
@@ -27,6 +27,8 @@ type TreeItemProps<T> = useRender.ComponentProps<"div", TreeItemState> & IDensit
27
27
  * never rests on colour.
28
28
  */
29
29
  tone?: "default" | "warning";
30
+ /** Selected row highlight: `subtle` uses the neutral accent fill; `accent` adds a primary border for pickers. */
31
+ selectionStyle?: "subtle" | "accent";
30
32
  endEnhancer?: ReactNode;
31
33
  expandOn?: "click" | "doubleClick" | "disclosure";
32
34
  isEditing?: boolean;
@@ -107,5 +109,5 @@ export declare function TreeItemDot({ count, className }: ITreeItemDotProps): Re
107
109
  * Registered tree row; compose menus with render, put counts in `description` and pointer shortcuts in `actions`.
108
110
  * `endEnhancer` holds controls that must stay keyboard reachable on their own.
109
111
  */
110
- export declare function TreeItem<T>({ analytics, item, children, startEnhancer, endEnhancer, description, descriptionLabel, actions, expandOn, isEditing, isDropTarget, isDimmed, isUnread, hasIcon, tone, leading, marker, linkProps, dropHint, density, render, ref, ...props }: TreeItemProps<T>): ReactElement;
112
+ export declare function TreeItem<T>({ analytics, item, children, startEnhancer, endEnhancer, description, descriptionLabel, actions, expandOn, isEditing, isDropTarget, isDimmed, isUnread, hasIcon, tone, selectionStyle, leading, marker, linkProps, dropHint, density, render, ref, ...props }: TreeItemProps<T>): ReactElement;
111
113
  export type { TreeItemProps };
@@ -24,6 +24,8 @@ export interface ITreeSelectProps {
24
24
  currentLabel?: string | undefined;
25
25
  /** Shown when the filter matches nothing; defaults to "No matches". */
26
26
  emptyLabel?: string | undefined;
27
+ /** Stretch the destination list to fill remaining vertical space inside a flex parent. */
28
+ grow?: boolean | undefined;
27
29
  isDisabled?: boolean | undefined;
28
30
  }
29
31
  /**
@@ -32,4 +34,4 @@ export interface ITreeSelectProps {
32
34
  * Space or a click chooses. The current place carries `currentLabel`, and places that cannot be chosen stay listed with
33
35
  * their reason as the row's description.
34
36
  */
35
- export declare function TreeSelect({ nodes, value, onValueChange, label, filterLabel, filterPlaceholder, currentId, currentLabel, emptyLabel, isDisabled, }: ITreeSelectProps): ReactElement;
37
+ export declare function TreeSelect({ nodes, value, onValueChange, label, filterLabel, filterPlaceholder, currentId, currentLabel, emptyLabel, grow, isDisabled, }: ITreeSelectProps): ReactElement;
@@ -120,6 +120,7 @@ function TreeItem({
120
120
  isUnread = false,
121
121
  hasIcon = true,
122
122
  tone = "default",
123
+ selectionStyle = "subtle",
123
124
  leading,
124
125
  marker,
125
126
  linkProps,
@@ -247,7 +248,7 @@ function TreeItem({
247
248
  onDragStart: undefined
248
249
  } : {},
249
250
  style: { paddingInlineStart: `${item.getItemMeta().level * (item.getTree().getConfig().indent ?? 20) + 8}px` },
250
- className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm py-1 pr-2 text-sm outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring", (isSelected || isDropTarget || isInsideTarget) && "bg-accent text-accent-foreground", tone === "warning" && "before:pointer-events-none before:absolute before:inset-y-1 before:start-0 before:w-0.5 before:rounded-full before:bg-warning", isDimmed && "group/tree-item"),
251
+ className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm border border-transparent py-1 pr-2 text-sm outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring", (isSelected || isDropTarget || isInsideTarget) && (selectionStyle === "accent" && isSelected ? "border-primary bg-muted/60 font-medium text-foreground" : "bg-accent text-accent-foreground"), tone === "warning" && "before:pointer-events-none before:absolute before:inset-y-1 before:start-0 before:w-0.5 before:rounded-full before:bg-warning", isDimmed && "group/tree-item"),
251
252
  children: /* @__PURE__ */ jsxs(Fragment, {
252
253
  children: [
253
254
  item.isFolder() && expandOn === "disclosure" ? /* @__PURE__ */ jsx(Button2, {
@@ -363,6 +364,7 @@ function Tree({
363
364
  tree,
364
365
  label,
365
366
  variant = "default",
367
+ grow = false,
366
368
  renderIcon,
367
369
  renderLabel,
368
370
  renderItem,
@@ -378,7 +380,7 @@ function Tree({
378
380
  children: /* @__PURE__ */ jsxs2("div", {
379
381
  ...container,
380
382
  "data-density": density,
381
- className: cn2("grid min-w-0 grid-cols-1 gap-1", variant === "default" && "rounded-sm border border-border bg-card p-2"),
383
+ className: cn2("grid min-w-0 grid-cols-1 gap-1", variant === "default" && "rounded-sm border border-border bg-card p-2", grow && "min-h-0 flex-1 content-start"),
382
384
  onKeyDown: (event) => {
383
385
  if (event.target instanceof Element && event.target.closest("input,textarea,select,form,button,[role=menu]"))
384
386
  return;
@@ -2630,6 +2632,7 @@ var useTree = (config) => {
2630
2632
  };
2631
2633
  // src/components/tree/TreeSelect.tsx
2632
2634
  import { useEffect as useEffect2, useId as useId2, useMemo, useState as useState2 } from "react";
2635
+ import { CheckIcon } from "lucide-react";
2633
2636
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
2634
2637
  var ROOT_ID = "tree-select-root";
2635
2638
  function indexNodes(nodes, parentId, index) {
@@ -2662,6 +2665,7 @@ function TreeSelect({
2662
2665
  currentId,
2663
2666
  currentLabel = "Current location",
2664
2667
  emptyLabel = "No matches",
2668
+ grow = false,
2665
2669
  isDisabled = false
2666
2670
  }) {
2667
2671
  const filterId = useId2();
@@ -2714,7 +2718,7 @@ function TreeSelect({
2714
2718
  return /* @__PURE__ */ jsxs3("div", {
2715
2719
  "data-testid": "TreeSelect",
2716
2720
  "data-slot": "tree-select",
2717
- className: "flex min-w-0 flex-col gap-2",
2721
+ className: cn2("flex min-w-0 flex-col gap-2", grow && "min-h-0 flex-1"),
2718
2722
  children: [
2719
2723
  /* @__PURE__ */ jsx3(Input2, {
2720
2724
  id: filterId,
@@ -2739,17 +2743,25 @@ function TreeSelect({
2739
2743
  hasItems ? /* @__PURE__ */ jsx3(Tree, {
2740
2744
  tree,
2741
2745
  label,
2746
+ grow,
2742
2747
  renderItem: (item) => {
2743
2748
  const node = item.getItemData();
2744
- const description = node.disabledReason ?? (node.id === currentId ? currentLabel : undefined);
2749
+ const isCurrent = node.id === currentId;
2750
+ const isChoice = node.id === value && !isCurrent && !node.disabledReason;
2751
+ const description = node.disabledReason ?? (isCurrent ? currentLabel : undefined);
2745
2752
  return /* @__PURE__ */ jsx3(TreeItem, {
2746
2753
  item,
2747
2754
  expandOn: "disclosure",
2748
2755
  hasIcon: false,
2756
+ selectionStyle: "accent",
2749
2757
  description,
2750
- isDimmed: Boolean(node.disabledReason),
2758
+ marker: isChoice ? /* @__PURE__ */ jsx3(CheckIcon, {
2759
+ "aria-hidden": "true",
2760
+ className: "size-3.5 text-primary"
2761
+ }) : undefined,
2762
+ isDimmed: Boolean(node.disabledReason) || isCurrent,
2751
2763
  "aria-disabled": node.disabledReason || isDisabled ? true : undefined,
2752
- "data-current": node.id === currentId ? "" : undefined,
2764
+ "data-current": isCurrent ? "" : undefined,
2753
2765
  onKeyDown: (event) => {
2754
2766
  if (event.key !== " ")
2755
2767
  return;
package/dist/index.js CHANGED
@@ -188,7 +188,7 @@ import {
188
188
  DashboardLayout2,
189
189
  BillingUsage2,
190
190
  SelectionAction2
191
- } from "./chunk-a08meqj4.js";
191
+ } from "./chunk-g2amqz9q.js";
192
192
  import {
193
193
  statusDotVariants2,
194
194
  StatusDot2
@@ -336,7 +336,7 @@ import {
336
336
  FieldDescription2,
337
337
  FieldSeparator2,
338
338
  FieldError2
339
- } from "./chunk-9e1yb90r.js";
339
+ } from "./chunk-5ez5vgkn.js";
340
340
  import {
341
341
  Spinner2
342
342
  } from "./chunk-t3p4dn1p.js";
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.154",
2054
+ version: "0.0.155",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -39,6 +39,16 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
39
39
  {}
40
40
  ```
41
41
 
42
+ ### GrowingHeight
43
+
44
+ ```tsx
45
+ {
46
+ render: () => (<div className="flex h-[500px] w-[360px] flex-col">
47
+ <TreeSelect nodes={destinations.slice(0, 1)} value="homepage" currentId="navigation" label="Destination" filterLabel="Filter places" filterPlaceholder="Filter places" grow onValueChange={choose}/>
48
+ </div>)
49
+ }
50
+ ```
51
+
42
52
  ### FilterAndKeys
43
53
 
44
54
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.154",
3
+ "version": "0.0.155",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {