@alexgorbatchev/shadcn 0.0.102 → 0.0.104

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.
@@ -12,7 +12,7 @@ import {
12
12
  FieldContent2,
13
13
  FieldLabel2,
14
14
  FieldDescription2
15
- } from "./chunk-9n0axzd5.js";
15
+ } from "./chunk-bfv4qesg.js";
16
16
  import {
17
17
  RadioGroup2,
18
18
  RadioGroupItem2
@@ -13,7 +13,7 @@ import {
13
13
  FieldGroup2,
14
14
  Field2,
15
15
  FieldLabel2
16
- } from "./chunk-9n0axzd5.js";
16
+ } from "./chunk-bfv4qesg.js";
17
17
  import {
18
18
  RadioGroup2,
19
19
  RadioGroupItem2
@@ -0,0 +1,18 @@
1
+ import type { IDensityProps } from "../density/types.js";
2
+ import type { ComponentProps, ReactElement } from "react";
3
+ type DescriptionListProps = ComponentProps<"dl"> & IDensityProps;
4
+ /**
5
+ * A stacked description list: each item puts its term on one line and its details under it, full width, in reading
6
+ * order at every width. Use it for question-and-answer summaries and other term/value pairs whose terms can be long.
7
+ */
8
+ declare function DescriptionList({ density, className, ...props }: DescriptionListProps): ReactElement;
9
+ type DescriptionListItemProps = ComponentProps<"div"> & IDensityProps;
10
+ /** One term and its details; HTML allows a `div` to group them inside a `dl`. */
11
+ declare function DescriptionListItem({ density, className, ...props }: DescriptionListItemProps): ReactElement;
12
+ type DescriptionTermProps = ComponentProps<"dt"> & IDensityProps;
13
+ declare function DescriptionTerm({ density, className, ...props }: DescriptionTermProps): ReactElement;
14
+ type DescriptionDetailsProps = ComponentProps<"dd"> & IDensityProps;
15
+ /** The details keep their line breaks, so multi-line text reads as it was written. */
16
+ declare function DescriptionDetails({ density, className, ...props }: DescriptionDetailsProps): ReactElement;
17
+ export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails };
18
+ export type { DescriptionListProps, DescriptionListItemProps, DescriptionTermProps, DescriptionDetailsProps };
@@ -19,8 +19,14 @@ type FieldProps = ComponentProps<"div"> & VariantProps<typeof fieldVariants> & I
19
19
  declare function Field({ density, className, orientation, ...props }: FieldProps): ReactElement;
20
20
  type FieldContentProps = ComponentProps<"div"> & IDensityProps;
21
21
  declare function FieldContent({ density, className, ...props }: FieldContentProps): ReactElement;
22
- type FieldLabelProps = ComponentProps<typeof Label> & IDensityProps;
23
- declare function FieldLabel({ density, className, ...props }: FieldLabelProps): ReactElement;
22
+ type FieldLabelProps = ComponentProps<typeof Label> & IDensityProps & {
23
+ /**
24
+ * Lets people select the label's text, for example to quote or copy an option's description. A click that ends a
25
+ * drag selection inside the label then leaves its control alone; a plain click still activates it.
26
+ */
27
+ selectable?: boolean;
28
+ };
29
+ declare function FieldLabel({ density, className, selectable, onClick, ...props }: FieldLabelProps): ReactElement;
24
30
  type FieldTitleProps = ComponentProps<"div"> & IDensityProps;
25
31
  declare function FieldTitle({ density, className, ...props }: FieldTitleProps): ReactElement;
26
32
  type FieldDescriptionProps = ComponentProps<"p"> & IDensityProps;
@@ -0,0 +1,17 @@
1
+ import type { IDensityProps } from "../density/types.js";
2
+ import type { ComponentProps, ReactElement, ReactNode } from "react";
3
+ type FilterChipProps = Omit<ComponentProps<"div">, "children"> & IDensityProps & {
4
+ /** What the active filter shows, such as "Showing 1 of 4 threads on ‘type scale’". It names the chip's group. */
5
+ children: ReactNode;
6
+ /** The action that clears the filter. */
7
+ clearLabel?: string;
8
+ /** Clears the filter: from the clear button, or Escape while focus is inside the chip. */
9
+ onClear: () => void;
10
+ };
11
+ /**
12
+ * Says that a filter is active and how to clear it, so a filtered list never hides items silently. Escape while focus
13
+ * is inside the chip clears the filter, like its clear button.
14
+ */
15
+ declare function FilterChip({ density, className, children, clearLabel, onClear, onKeyDown, ...props }: FilterChipProps): ReactElement;
16
+ export { FilterChip };
17
+ export type { FilterChipProps };
@@ -1,5 +1,6 @@
1
1
  import type { ComponentProps, ReactElement } from "react";
2
2
  import type { IDensityProps } from "../density/types.js";
3
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./Collapsible.js";
3
4
  type MessageGroupProps = ComponentProps<"div"> & IDensityProps;
4
5
  declare function MessageGroup({ density, className, ...props }: MessageGroupProps): ReactElement;
5
6
  type MessageProps = ComponentProps<"div"> & IDensityProps & {
@@ -14,4 +15,16 @@ type MessageHeaderProps = ComponentProps<"div"> & IDensityProps;
14
15
  declare function MessageHeader({ density, className, ...props }: MessageHeaderProps): ReactElement;
15
16
  type MessageFooterProps = ComponentProps<"div"> & IDensityProps;
16
17
  declare function MessageFooter({ density, className, ...props }: MessageFooterProps): ReactElement;
17
- export { MessageGroup, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader };
18
+ type MessageThreadProps = ComponentProps<typeof Collapsible> & IDensityProps;
19
+ /**
20
+ * The replies under a message, collapsed to one summary line such as "3 replies · last: your agent, 2 min ago" until
21
+ * the reader expands them. Controlled through `open` and `onOpenChange`, or uncontrolled through `defaultOpen`.
22
+ */
23
+ declare function MessageThread({ density, className, ...props }: MessageThreadProps): ReactElement;
24
+ type MessageThreadSummaryProps = ComponentProps<typeof CollapsibleTrigger> & IDensityProps;
25
+ /** The summary line that expands or collapses a thread's replies; it reports its state through `aria-expanded`. */
26
+ declare function MessageThreadSummary({ density, className, children, ...props }: MessageThreadSummaryProps): ReactElement;
27
+ type MessageThreadRepliesProps = ComponentProps<typeof CollapsibleContent> & IDensityProps;
28
+ /** The replies a thread summary expands. */
29
+ declare function MessageThreadReplies({ density, className, ...props }: MessageThreadRepliesProps): ReactElement;
30
+ export { MessageGroup, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader, MessageThread, MessageThreadSummary, MessageThreadReplies, };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  EditMessage2
3
- } from "../../../chunk-519826kj.js";
3
+ } from "../../../chunk-77k07x58.js";
4
4
  import"../../../chunk-vxvaaptq.js";
5
- import"../../../chunk-9n0axzd5.js";
5
+ import"../../../chunk-bfv4qesg.js";
6
6
  import"../../../chunk-r7krv555.js";
7
7
  import"../../../chunk-m32ptxf3.js";
8
8
  import"../../../chunk-9k5b62qf.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ElicitationForm2
3
- } from "../../../chunk-rpjkf15t.js";
3
+ } from "../../../chunk-sdkk4n8d.js";
4
4
  import"../../../chunk-vxvaaptq.js";
5
5
  import"../../../chunk-kgqe8gpb.js";
6
6
  import"../../../chunk-m98d89xc.js";
7
- import"../../../chunk-9n0axzd5.js";
7
+ import"../../../chunk-bfv4qesg.js";
8
8
  import"../../../chunk-r7krv555.js";
9
9
  import"../../../chunk-m32ptxf3.js";
10
10
  import"../../../chunk-7vg045gd.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  FeedbackDialog2
3
- } from "../../../chunk-pn35mpc0.js";
3
+ } from "../../../chunk-che2mtt5.js";
4
4
  import"../../../chunk-9n617bte.js";
5
- import"../../../chunk-9n0axzd5.js";
5
+ import"../../../chunk-bfv4qesg.js";
6
6
  import"../../../chunk-r7krv555.js";
7
7
  import"../../../chunk-m32ptxf3.js";
8
8
  import"../../../chunk-9k5b62qf.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ModelPicker2
3
- } from "../../../chunk-x9p6qh9d.js";
3
+ } from "../../../chunk-r4r4qcyx.js";
4
4
  import"../../../chunk-kgqe8gpb.js";
5
- import"../../../chunk-9n0axzd5.js";
5
+ import"../../../chunk-bfv4qesg.js";
6
6
  import"../../../chunk-r7krv555.js";
7
7
  import"../../../chunk-9t530p75.js";
8
8
  import"../../../chunk-m32ptxf3.js";
@@ -226,15 +226,15 @@ import {
226
226
  } from "../../chunk-ybsr621k.js";
227
227
  import"../../chunk-m32ptxf3.js";
228
228
  import"../../chunk-52aadmkc.js";
229
- import"../../chunk-9n0axzd5.js";
229
+ import"../../chunk-bfv4qesg.js";
230
230
  import {
231
231
  EditMessage2
232
- } from "../../chunk-519826kj.js";
232
+ } from "../../chunk-77k07x58.js";
233
233
  import"../../chunk-kgqe8gpb.js";
234
234
  import"../../chunk-m98d89xc.js";
235
235
  import {
236
236
  ElicitationForm2
237
- } from "../../chunk-rpjkf15t.js";
237
+ } from "../../chunk-sdkk4n8d.js";
238
238
  import"../../chunk-4e96tpw0.js";
239
239
  import {
240
240
  EmptyState2
@@ -262,7 +262,7 @@ import {
262
262
  import"../../chunk-9n617bte.js";
263
263
  import {
264
264
  FeedbackDialog2
265
- } from "../../chunk-pn35mpc0.js";
265
+ } from "../../chunk-che2mtt5.js";
266
266
  import {
267
267
  FileRoot2,
268
268
  FileIconDisplay2,
@@ -373,7 +373,7 @@ import {
373
373
  } from "../../chunk-3embwe93.js";
374
374
  import {
375
375
  ModelPicker2
376
- } from "../../chunk-x9p6qh9d.js";
376
+ } from "../../chunk-r4r4qcyx.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-9n0axzd5.js";
18
+ } from "../../chunk-bfv4qesg.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-9n0axzd5.js";
29
+ } from "../../chunk-bfv4qesg.js";
30
30
  import {
31
31
  Switch2
32
32
  } from "../../chunk-m98d89xc.js";
@@ -29,7 +29,7 @@ import {
29
29
  Field2,
30
30
  FieldLabel2,
31
31
  FieldDescription2
32
- } from "../../chunk-9n0axzd5.js";
32
+ } from "../../chunk-bfv4qesg.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-g4s1f61z.js";
29
+ } from "../../chunk-e1hkq1mw.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
@@ -67,7 +67,7 @@ import {
67
67
  import {
68
68
  Field2,
69
69
  FieldLabel2
70
- } from "../../chunk-9n0axzd5.js";
70
+ } from "../../chunk-bfv4qesg.js";
71
71
  import {
72
72
  Slider2
73
73
  } from "../../chunk-7cq1s2ey.js";
package/dist/index.d.ts CHANGED
@@ -73,6 +73,8 @@ export type { TableTextAlign, TableVisibility } from "./components/Table.js";
73
73
  export { OptionSelect } from "./components/OptionSelect.js";
74
74
  export type { OptionSelectOption, OptionSelectProps } from "./components/OptionSelect.js";
75
75
  export { Kbd, KbdGroup } from "./components/Kbd.js";
76
+ export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails, } from "./components/DescriptionList.js";
77
+ export type { DescriptionListProps, DescriptionListItemProps, DescriptionTermProps, DescriptionDetailsProps, } from "./components/DescriptionList.js";
76
78
  export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, } from "./components/Item.js";
77
79
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "./components/Pagination.js";
78
80
  export { ScrollArea, ScrollBar } from "./components/ScrollArea.js";
@@ -86,7 +88,7 @@ export { Toast, ToastToaster, ToastProvider, ToastPortal, ToastViewport, ToastCo
86
88
  export { useToastManager } from "./hooks/useToastManager.js";
87
89
  export { Marker, MarkerIcon, MarkerContent, markerVariants } from "./components/Marker.js";
88
90
  export { Bubble, BubbleGroup, BubbleContent, BubbleReactions } from "./components/Bubble.js";
89
- export { Message, MessageGroup, MessageAvatar, MessageContent, MessageHeader, MessageFooter, } from "./components/Message.js";
91
+ export { Message, MessageGroup, MessageAvatar, MessageContent, MessageHeader, MessageFooter, MessageThread, MessageThreadSummary, MessageThreadReplies, } from "./components/Message.js";
90
92
  export { Attachment, AttachmentGroup, AttachmentMedia, AttachmentContent, AttachmentTitle, AttachmentDescription, AttachmentActions, AttachmentAction, AttachmentTrigger, } from "./components/Attachment.js";
91
93
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, } from "./components/Sidebar.js";
92
94
  export { useSidebar } from "./hooks/useSidebar.js";
@@ -141,6 +143,8 @@ export { SettingsSection } from "./components/SettingsSection.js";
141
143
  export type { SettingsSectionProps } from "./components/SettingsSection.js";
142
144
  export { TagInput } from "./components/TagInput.js";
143
145
  export type { TagInputProps } from "./components/TagInput.js";
146
+ export { FilterChip } from "./components/FilterChip.js";
147
+ export type { FilterChipProps } from "./components/FilterChip.js";
144
148
  export { FilterBar } from "./components/FilterBar.js";
145
149
  export type { FilterBarProps, FilterDefinition } from "./components/FilterBar.js";
146
150
  export { Kanban } from "./components/Kanban.js";
package/dist/index.js CHANGED
@@ -49,6 +49,10 @@ import {
49
49
  ButtonGroup2,
50
50
  ButtonGroupText2,
51
51
  ButtonGroupSeparator2,
52
+ DescriptionList2,
53
+ DescriptionListItem2,
54
+ DescriptionTerm2,
55
+ DescriptionDetails2,
52
56
  ItemGroup2,
53
57
  ItemSeparator2,
54
58
  Item2,
@@ -117,6 +121,9 @@ import {
117
121
  MessageContent2,
118
122
  MessageHeader2,
119
123
  MessageFooter2,
124
+ MessageThread2,
125
+ MessageThreadSummary2,
126
+ MessageThreadReplies2,
120
127
  Attachment2,
121
128
  AttachmentMedia2,
122
129
  AttachmentContent2,
@@ -160,12 +167,13 @@ import {
160
167
  AuthForm2,
161
168
  SettingsSection2,
162
169
  TagInput2,
170
+ FilterChip2,
163
171
  FilterBar2,
164
172
  BarList2,
165
173
  StatusTracker2,
166
174
  DashboardLayout2,
167
175
  BillingUsage2
168
- } from "./chunk-g4s1f61z.js";
176
+ } from "./chunk-e1hkq1mw.js";
169
177
  import {
170
178
  Combobox2,
171
179
  ComboboxValue2,
@@ -307,7 +315,7 @@ import {
307
315
  FieldDescription2,
308
316
  FieldSeparator2,
309
317
  FieldError2
310
- } from "./chunk-9n0axzd5.js";
318
+ } from "./chunk-bfv4qesg.js";
311
319
  import {
312
320
  Spinner2
313
321
  } from "./chunk-t3p4dn1p.js";
@@ -584,6 +592,10 @@ export {
584
592
  DashboardLayout2 as DashboardLayout,
585
593
  DataViewer2 as DataViewer,
586
594
  DensityProvider2 as DensityProvider,
595
+ DescriptionDetails2 as DescriptionDetails,
596
+ DescriptionList2 as DescriptionList,
597
+ DescriptionListItem2 as DescriptionListItem,
598
+ DescriptionTerm2 as DescriptionTerm,
587
599
  Dialog2 as Dialog,
588
600
  DialogClose2 as DialogClose,
589
601
  DialogContent2 as DialogContent,
@@ -643,6 +655,7 @@ export {
643
655
  FieldSet2 as FieldSet,
644
656
  FieldTitle2 as FieldTitle,
645
657
  FilterBar2 as FilterBar,
658
+ FilterChip2 as FilterChip,
646
659
  FormDialog2 as FormDialog,
647
660
  Grid2 as Grid,
648
661
  GridItem2 as GridItem,
@@ -716,6 +729,9 @@ export {
716
729
  MessageFooter2 as MessageFooter,
717
730
  MessageGroup2 as MessageGroup,
718
731
  MessageHeader2 as MessageHeader,
732
+ MessageThread2 as MessageThread,
733
+ MessageThreadReplies2 as MessageThreadReplies,
734
+ MessageThreadSummary2 as MessageThreadSummary,
719
735
  Meter2 as Meter,
720
736
  MeterIndicator2 as MeterIndicator,
721
737
  MeterLabel2 as MeterLabel,
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.102",
2054
+ version: "0.0.104",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -0,0 +1,56 @@
1
+ # DescriptionList
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/DescriptionList
4
+ Source: src/components/stories/data-display/DescriptionList.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/DescriptionList.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { DescriptionDetails, DescriptionList, DescriptionListItem, DescriptionTerm } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Supporting imports
15
+
16
+ ```tsx
17
+ import type { ComponentProps, ReactElement } from "react";
18
+ ```
19
+
20
+ ## Default component
21
+
22
+ ```tsx
23
+ DescriptionList
24
+ ```
25
+
26
+ ## Default args
27
+
28
+ ```tsx
29
+ { "aria-label": "Answers sent" }
30
+ ```
31
+
32
+ ## Default render
33
+
34
+ ```tsx
35
+ renderList
36
+ ```
37
+
38
+ ## Examples
39
+
40
+ Storybook CSF excerpts. Default args and render apply unless overridden. Local helpers, fixtures, decorators, and providers may be required; these are reference excerpts, not standalone consumer modules. Interaction tests are omitted.
41
+
42
+ ### Stacked
43
+
44
+ ```tsx
45
+ {}
46
+ ```
47
+
48
+ ### Narrow
49
+
50
+ ```tsx
51
+ {
52
+ render: (args) => (<div data-testid="narrow" className="w-48">
53
+ {renderList(args)}
54
+ </div>)
55
+ }
56
+ ```
@@ -509,3 +509,28 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
509
509
  render: () => <ReportForm />
510
510
  }
511
511
  ```
512
+
513
+ ### SelectableChoiceLabel
514
+
515
+ ```tsx
516
+ {
517
+ render: function Render() {
518
+ const storyId = useId();
519
+ const [value, setValue] = useState("bold");
520
+ return (<RadioGroup aria-label="Hero direction" value={value} onValueChange={(next) => setValue(String(next))}>
521
+ {[
522
+ { value: "bold", title: "Bold", description: "Large type and a strong accent colour." },
523
+ { value: "quiet", title: "Quiet", description: "Soft neutrals and generous whitespace." },
524
+ ].map((option) => (<FieldLabel key={option.value} htmlFor={`${storyId}-${option.value}`} selectable>
525
+ <Field orientation="horizontal">
526
+ <FieldContent>
527
+ <FieldTitle>{option.title}</FieldTitle>
528
+ <FieldDescription>{option.description}</FieldDescription>
529
+ </FieldContent>
530
+ <RadioGroupItem id={`${storyId}-${option.value}`} value={option.value} aria-label={option.title}/>
531
+ </Field>
532
+ </FieldLabel>))}
533
+ </RadioGroup>);
534
+ }
535
+ }
536
+ ```
@@ -0,0 +1,95 @@
1
+ # FilterChip
2
+
3
+ Story: @alexgorbatchev/shadcn/components/forms/FilterChip
4
+ Source: src/components/stories/forms/FilterChip.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/forms/FilterChip.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { FilterChip } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Supporting imports
15
+
16
+ ```tsx
17
+ import { useState } from "react";
18
+ ```
19
+
20
+ ## Default component
21
+
22
+ ```tsx
23
+ FilterChip
24
+ ```
25
+
26
+ ## Default args
27
+
28
+ ```tsx
29
+ { children: "Showing 1 of 4 threads on ‘type scale and palette’", onClear: fn() }
30
+ ```
31
+
32
+ ## Default render
33
+
34
+ ```tsx
35
+ (args) => (<div className="w-96">
36
+ <FilterChip {...args}/>
37
+ </div>)
38
+ ```
39
+
40
+ ## Examples
41
+
42
+ Storybook CSF excerpts. Default args and render apply unless overridden. Local helpers, fixtures, decorators, and providers may be required; these are reference excerpts, not standalone consumer modules. Interaction tests are omitted.
43
+
44
+ ### Default
45
+
46
+ ```tsx
47
+ {}
48
+ ```
49
+
50
+ ### EscapeClears
51
+
52
+ ```tsx
53
+ {}
54
+ ```
55
+
56
+ ### ConsumerHandlesEscape
57
+
58
+ ```tsx
59
+ {
60
+ args: {
61
+ onKeyDown: (event) => {
62
+ if (event.key === "Escape")
63
+ event.preventDefault();
64
+ },
65
+ }
66
+ }
67
+ ```
68
+
69
+ ### CustomClearLabel
70
+
71
+ ```tsx
72
+ {
73
+ args: { clearLabel: "Clear filter", children: "Mine · 3 of 12 threads" }
74
+ }
75
+ ```
76
+
77
+ ### FilteredList
78
+
79
+ ```tsx
80
+ {
81
+ render: function Render() {
82
+ const items = ["Hero layout", "type scale and palette", "Footer links", "Pricing table"];
83
+ const [filter, setFilter] = useState<string | undefined>("type scale and palette");
84
+ const shown = filter ? items.filter((item) => item === filter) : items;
85
+ return (<div className="flex w-96 flex-col gap-2">
86
+ {filter && (<FilterChip onClear={() => setFilter(undefined)}>
87
+ Showing {shown.length} of {items.length} threads on ‘{filter}’
88
+ </FilterChip>)}
89
+ <ul aria-label="Threads">
90
+ {shown.map((item) => (<li key={item}>{item}</li>))}
91
+ </ul>
92
+ </div>);
93
+ }
94
+ }
95
+ ```
@@ -8,7 +8,7 @@ Source: src/components/stories/messaging/Message.stories.tsx
8
8
  ## Public imports
9
9
 
10
10
  ```tsx
11
- import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, Avatar, AvatarFallback, Bubble, BubbleContent, Button, Attachment, AttachmentContent, AttachmentDescription, AttachmentMedia, AttachmentTitle, AttachmentTrigger } from "@alexgorbatchev/shadcn";
11
+ import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageThread, MessageThreadReplies, MessageThreadSummary, Avatar, AvatarFallback, Bubble, BubbleContent, Button, Attachment, AttachmentContent, AttachmentDescription, AttachmentMedia, AttachmentTitle, AttachmentTrigger } from "@alexgorbatchev/shadcn";
12
12
  ```
13
13
 
14
14
  ## Supporting imports
@@ -266,3 +266,49 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
266
266
  </div>)
267
267
  }
268
268
  ```
269
+
270
+ ### CollapsedThread
271
+
272
+ ```tsx
273
+ {
274
+ render: function Render() {
275
+ const [isOpen, setOpen] = useState(false);
276
+ return (<div className="flex w-96 flex-col gap-2">
277
+ <Message role="article" aria-label="Your comment">
278
+ <MessageContent>
279
+ <Bubble variant="tinted">
280
+ <BubbleContent>Can the More tab hold Settings?</BubbleContent>
281
+ </Bubble>
282
+ </MessageContent>
283
+ </Message>
284
+ <MessageThread open={isOpen} onOpenChange={setOpen}>
285
+ <MessageThreadSummary>3 replies · last: your agent, 2 min ago</MessageThreadSummary>
286
+ <MessageThreadReplies>
287
+ <Message role="article" aria-label="Agent reply">
288
+ <MessageContent>
289
+ <Bubble variant="muted">
290
+ <BubbleContent>Yes, Settings moves under More.</BubbleContent>
291
+ </Bubble>
292
+ </MessageContent>
293
+ </Message>
294
+ </MessageThreadReplies>
295
+ </MessageThread>
296
+ </div>);
297
+ }
298
+ }
299
+ ```
300
+
301
+ ### ExpandedThread
302
+
303
+ ```tsx
304
+ {
305
+ render: () => (<div className="w-96">
306
+ <MessageThread defaultOpen density="compact">
307
+ <MessageThreadSummary density="compact">1 reply · last: you, 10:38</MessageThreadSummary>
308
+ <MessageThreadReplies density="compact">
309
+ <p>Reply text</p>
310
+ </MessageThreadReplies>
311
+ </MessageThread>
312
+ </div>)
313
+ }
314
+ ```
package/llms.txt CHANGED
@@ -341,6 +341,7 @@ Generated from the public package exports and Storybook sources.
341
341
  - [DataGridSelectCell](./llms/components/data-display/DataGridSelectCell.md)
342
342
  - [DataGridSelectHeader](./llms/components/data-display/DataGridSelectHeader.md)
343
343
  - [DataViewer](./llms/components/data-display/DataViewer.md)
344
+ - [DescriptionList](./llms/components/data-display/DescriptionList.md)
344
345
  - [FramedImage](./llms/components/data-display/FramedImage.md): Import from `@alexgorbatchev/shadcn/image-viewer`. FramedImage shows a screenshot or other supplied image as evidence: a 1px edge in the `media-edge` token, which keeps at least 3:1 against the page in both themes, so a white image in the light theme and a black one in the dark theme still show where they end. `size="intrinsic"` (the default) keeps the image's own size within its column and at most 70% of the viewport height, scaled and never cropped; `size="fill"` fills its container's width, as in a row of thumbnails. It takes every `<img>` attribute.
345
346
  - [Heading](./llms/components/data-display/Heading.md): Heading renders `h1`–`h6` from the required `level` so the document outline stays correct, while `size` (sm, base, lg, xl) sets the visual size independently. Sizes default by level: 1 xl, 2 lg, 3 base, 4–6 sm. `truncate` keeps one line.
346
347
  - [ImageComparison](./llms/components/data-display/ImageComparison.md): Import from `@alexgorbatchev/shadcn/image-viewer`. ImageComparison fills its container and compares `before` and `after` images (`{ src, alt, crossOrigin? }`) labelled by `beforeLabel` and `afterLabel` (default "Before" and "After"). `toggle` (the default) shows the after image and the "Hold to show before" button shows the before image while a pointer, Space, or Enter is held. `swipe` stacks both images; the divider is a slider (0–100, arrows ±1, Page Up/Page Down ±10, Home/End) whose handle drags with pointer capture. `side-by-side` shows labelled panes left and right (`horizontal`) or top and bottom (`vertical`) that scroll in sync when zoomed. Every mode starts fitted and offers original size (zoom `1`); the focused stage also takes the ImageViewer stage keys, Mod+wheel and pinch, and its name ends with the zoom percent. A differently sized before image is drawn inside the after image box, and the toolbar reports the mismatch. "Highlight differences" compares pixels on first use, caches the result per image pair, outlines changed regions, and summarizes them; it is disabled with a reason when pixels cannot be read. `mode`, `orientation`, `zoom`, and `showDifferences` are controllable with matching `default*` and `on*Change` props; `showToolbar={false}` hides the controls, which sit beside wide comparisons and below narrow ones.
@@ -398,6 +399,7 @@ Generated from the public package exports and Storybook sources.
398
399
  - [Field](./llms/components/forms/Field.md)
399
400
  - [FileUpload](./llms/components/forms/FileUpload.md)
400
401
  - [FilterBar](./llms/components/forms/FilterBar.md)
402
+ - [FilterChip](./llms/components/forms/FilterChip.md)
401
403
  - [ImageCrop](./llms/components/forms/ImageCrop.md)
402
404
  - [ImagePicker](./llms/components/forms/ImagePicker.md)
403
405
  - [InlineEdit](./llms/components/forms/InlineEdit.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.102",
3
+ "version": "0.0.104",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {