@alexgorbatchev/shadcn 0.0.197 → 0.0.199

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.
@@ -1960,11 +1960,11 @@ function ItemTitle2({ density, className, wrap = false, truncate = false, ...pro
1960
1960
  ...props
1961
1961
  });
1962
1962
  }
1963
- function ItemDescription2({ density, className, ...props }) {
1963
+ function ItemDescription2({ density, className, wrap = false, ...props }) {
1964
1964
  return /* @__PURE__ */ jsx21("p", {
1965
1965
  "data-density": density,
1966
1966
  "data-slot": "item-description",
1967
- className: cn2("line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
1967
+ className: cn2(wrap ? "min-w-0 max-w-full wrap-break-word" : "line-clamp-2", "text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
1968
1968
  ...props
1969
1969
  });
1970
1970
  }
@@ -35,7 +35,7 @@ function Tabs2({ analytics, density, className, orientation = "horizontal", ...p
35
35
  var tabsListVariants2 = cva("group/tabs-list inline-flex w-fit items-center justify-center rounded-sm p-px text-muted-foreground group-data-[orientation=horizontal]/tabs:h-control group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
36
36
  variants: {
37
37
  variant: {
38
- default: "bg-secondary ring-1 ring-input/70",
38
+ default: "bg-muted",
39
39
  line: "gap-1 bg-transparent"
40
40
  }
41
41
  },
@@ -56,7 +56,7 @@ function TabsTrigger2({ density, className, ...props }) {
56
56
  return /* @__PURE__ */ jsx(TabsPrimitive.Tab, {
57
57
  "data-density": density,
58
58
  "data-slot": "tabs-trigger",
59
- className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-sm border border-transparent px-2 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:border-input data-active:bg-muted data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", typeof className === "function" ? className(state) : className),
59
+ className: (state) => cn2("relative inline-flex h-full flex-1 items-center justify-center gap-control-gap rounded-sm border border-transparent px-2 py-0.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:border-input data-active:bg-background data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:border-transparent", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-end-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", typeof className === "function" ? className(state) : className),
60
60
  ...props
61
61
  });
62
62
  }
@@ -26,8 +26,11 @@ type ItemTitleProps = ComponentProps<"div"> & IDensityProps & {
26
26
  truncate?: boolean;
27
27
  };
28
28
  declare function ItemTitle({ density, className, wrap, truncate, ...props }: ItemTitleProps): ReactElement;
29
- type ItemDescriptionProps = ComponentProps<"p"> & IDensityProps;
30
- declare function ItemDescription({ density, className, ...props }: ItemDescriptionProps): ReactElement;
29
+ type ItemDescriptionProps = ComponentProps<"p"> & IDensityProps & {
30
+ /** Keep every line of the description visible instead of clamping it to two lines. */
31
+ wrap?: boolean;
32
+ };
33
+ declare function ItemDescription({ density, className, wrap, ...props }: ItemDescriptionProps): ReactElement;
31
34
  type ItemActionsProps = ComponentProps<"div"> & IDensityProps;
32
35
  declare function ItemActions({ density, className, ...props }: ItemActionsProps): ReactElement;
33
36
  type ItemHeaderProps = ComponentProps<"div"> & IDensityProps;
@@ -7,7 +7,7 @@ import {
7
7
  DragSource2,
8
8
  DropTarget2,
9
9
  Kanban2
10
- } from "../../chunk-5dew2cny.js";
10
+ } from "../../chunk-pj12f0p7.js";
11
11
  import"../../chunk-en44w1pn.js";
12
12
  import"../../chunk-cgj3ade2.js";
13
13
  import"../../chunk-7ny0vyek.js";
@@ -26,7 +26,7 @@ import {
26
26
  PaginationPrevious2,
27
27
  PaginationNext2,
28
28
  PaginationEllipsis2
29
- } from "../../chunk-vj43efr4.js";
29
+ } from "../../chunk-jza4avjy.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
@@ -100,7 +100,7 @@ import {
100
100
  TabsList2,
101
101
  TabsTrigger2,
102
102
  TabsContent2
103
- } from "../../chunk-5dew2cny.js";
103
+ } from "../../chunk-pj12f0p7.js";
104
104
  import"../../chunk-4e96tpw0.js";
105
105
  import {
106
106
  Checkbox2
package/dist/index.js CHANGED
@@ -188,7 +188,7 @@ import {
188
188
  DashboardLayout2,
189
189
  BillingUsage2,
190
190
  SelectionAction2
191
- } from "./chunk-vj43efr4.js";
191
+ } from "./chunk-jza4avjy.js";
192
192
  import {
193
193
  statusDotVariants2,
194
194
  StatusDot2
@@ -225,7 +225,7 @@ import {
225
225
  useDropTarget2,
226
226
  DropTarget2,
227
227
  Kanban2
228
- } from "./chunk-5dew2cny.js";
228
+ } from "./chunk-pj12f0p7.js";
229
229
  import {
230
230
  NumberField2,
231
231
  NumberFieldGroup2,
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.197",
2054
+ version: "0.0.199",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -16,7 +16,7 @@ import { Button, Avatar, AvatarFallback, AvatarGroup, AvatarImage, DropdownMenu,
16
16
  ```tsx
17
17
  import type { Separator } from "@base-ui/react/separator";
18
18
  import { useState, type MouseEvent } from "react";
19
- import { FileIcon } from "lucide-react";
19
+ import { ChevronRightIcon, FileIcon } from "lucide-react";
20
20
  ```
21
21
 
22
22
  ## Default component
@@ -229,6 +229,29 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
229
229
  }
230
230
  ```
231
231
 
232
+ ### WrappedDescription
233
+
234
+ ```tsx
235
+ {
236
+ render: (args) => (<div data-testid="phone-row" className="w-72">
237
+ <Item {...args} size="xs" variant="outline">
238
+ <ItemMedia data-testid="leading-icon" variant="icon" aria-hidden="true">
239
+ <FileIcon />
240
+ </ItemMedia>
241
+ <ItemContent>
242
+ <ItemTitle wrap>Brand questionnaire</ItemTitle>
243
+ <ItemDescription wrap>
244
+ Studio › Marketing › Launch planning · 3 decisions · waiting 2 d · Your agent replied to your comment
245
+ </ItemDescription>
246
+ </ItemContent>
247
+ <ItemMedia data-testid="trailing-icon" variant="icon" aria-hidden="true">
248
+ <ChevronRightIcon />
249
+ </ItemMedia>
250
+ </Item>
251
+ </div>)
252
+ }
253
+ ```
254
+
232
255
  ### TruncatedTitle
233
256
 
234
257
  ```tsx
@@ -56,7 +56,7 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
56
56
  {}
57
57
  ```
58
58
 
59
- ### SelectedFilledLight
59
+ ### MutedListLight
60
60
 
61
61
  ```tsx
62
62
  {
@@ -65,7 +65,7 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
65
65
  }
66
66
  ```
67
67
 
68
- ### SelectedFilledDark
68
+ ### MutedListDark
69
69
 
70
70
  ```tsx
71
71
  {
@@ -105,6 +105,22 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
105
105
  }
106
106
  ```
107
107
 
108
+ ### LineBorderOverride
109
+
110
+ ```tsx
111
+ {
112
+ render: (args) => (<Tabs {...args}>
113
+ <TabsList variant="line" aria-label="Project sections">
114
+ <TabsTrigger value="overview" className="data-active:border-transparent">
115
+ Overview
116
+ </TabsTrigger>
117
+ <TabsTrigger value="settings">Settings</TabsTrigger>
118
+ </TabsList>
119
+ <TabsContent value="overview">Project overview.</TabsContent>
120
+ </Tabs>)
121
+ }
122
+ ```
123
+
108
124
  ### NativeRootCallback
109
125
 
110
126
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.197",
3
+ "version": "0.0.199",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {