@alexgorbatchev/shadcn 0.0.103 → 0.0.105
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/dist/{chunk-n593jqmw.js → chunk-19bkeafb.js} +645 -475
- package/dist/{chunk-p8bdmafq.js → chunk-j7fvvgyp.js} +2 -2
- package/dist/components/ActionBar.d.ts +31 -0
- package/dist/components/DescriptionList.d.ts +18 -0
- package/dist/components/ErrorSummary.d.ts +21 -0
- package/dist/components/Outline.d.ts +20 -0
- package/dist/components/json-render/JsonDropdownMenu.d.ts +4 -0
- package/dist/components/json-render/JsonForm.d.ts +90 -0
- package/dist/components/json-render/catalog.js +1 -1
- package/dist/components/json-render/index.d.ts +2 -0
- package/dist/components/json-render/index.js +485 -227
- package/dist/index.d.ts +7 -0
- package/dist/index.js +23 -1
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/DescriptionList.md +56 -0
- package/llms/components/data-display/JsonRenderForm.md +99 -0
- package/llms/components/feedback/ErrorSummary.md +46 -0
- package/llms/components/layout/ActionBar.md +65 -0
- package/llms/components/navigation/Outline.md +42 -0
- package/llms.txt +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,11 @@ export { useDropTarget } from "./hooks/useDropTarget.js";
|
|
|
36
36
|
export type { IDragDropItem, IDragSourceOptions, IDragSource, IDropTargetOptions, IDropTarget, } from "./drag-drop/types.js";
|
|
37
37
|
export { EmptyState } from "./components/EmptyState.js";
|
|
38
38
|
export { PageMessage } from "./components/PageMessage.js";
|
|
39
|
+
export { ActionBar, ActionBarRow } from "./components/ActionBar.js";
|
|
40
|
+
export type { IActionBarProps, IActionBarRowProps } from "./components/ActionBar.js";
|
|
41
|
+
export { ErrorSummary, ErrorSummaryItem } from "./components/ErrorSummary.js";
|
|
42
|
+
export type { IErrorSummaryProps, IErrorSummaryItemProps } from "./components/ErrorSummary.js";
|
|
43
|
+
export { Outline, OutlineSection, OutlineItem } from "./components/Outline.js";
|
|
39
44
|
export { DataViewer, formatDataLabel } from "./components/DataViewer.js";
|
|
40
45
|
export type { DataViewerProps } from "./components/DataViewer.js";
|
|
41
46
|
export { JsonViewer } from "./components/JsonViewer.js";
|
|
@@ -73,6 +78,8 @@ export type { TableTextAlign, TableVisibility } from "./components/Table.js";
|
|
|
73
78
|
export { OptionSelect } from "./components/OptionSelect.js";
|
|
74
79
|
export type { OptionSelectOption, OptionSelectProps } from "./components/OptionSelect.js";
|
|
75
80
|
export { Kbd, KbdGroup } from "./components/Kbd.js";
|
|
81
|
+
export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails, } from "./components/DescriptionList.js";
|
|
82
|
+
export type { DescriptionListProps, DescriptionListItemProps, DescriptionTermProps, DescriptionDetailsProps, } from "./components/DescriptionList.js";
|
|
76
83
|
export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, } from "./components/Item.js";
|
|
77
84
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "./components/Pagination.js";
|
|
78
85
|
export { ScrollArea, ScrollBar } from "./components/ScrollArea.js";
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,13 @@ import {
|
|
|
17
17
|
OptionCard2,
|
|
18
18
|
EmptyState3,
|
|
19
19
|
PageMessage2,
|
|
20
|
+
ActionBar2,
|
|
21
|
+
ActionBarRow2,
|
|
22
|
+
ErrorSummary2,
|
|
23
|
+
ErrorSummaryItem2,
|
|
24
|
+
Outline2,
|
|
25
|
+
OutlineSection2,
|
|
26
|
+
OutlineItem2,
|
|
20
27
|
formatDataLabel2,
|
|
21
28
|
DataViewer2,
|
|
22
29
|
JsonViewer2,
|
|
@@ -49,6 +56,10 @@ import {
|
|
|
49
56
|
ButtonGroup2,
|
|
50
57
|
ButtonGroupText2,
|
|
51
58
|
ButtonGroupSeparator2,
|
|
59
|
+
DescriptionList2,
|
|
60
|
+
DescriptionListItem2,
|
|
61
|
+
DescriptionTerm2,
|
|
62
|
+
DescriptionDetails2,
|
|
52
63
|
ItemGroup2,
|
|
53
64
|
ItemSeparator2,
|
|
54
65
|
Item2,
|
|
@@ -169,7 +180,7 @@ import {
|
|
|
169
180
|
StatusTracker2,
|
|
170
181
|
DashboardLayout2,
|
|
171
182
|
BillingUsage2
|
|
172
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-19bkeafb.js";
|
|
173
184
|
import {
|
|
174
185
|
Combobox2,
|
|
175
186
|
ComboboxValue2,
|
|
@@ -484,6 +495,8 @@ export {
|
|
|
484
495
|
AccordionItem2 as AccordionItem,
|
|
485
496
|
AccordionTrigger2 as AccordionTrigger,
|
|
486
497
|
AccountMenu2 as AccountMenu,
|
|
498
|
+
ActionBar2 as ActionBar,
|
|
499
|
+
ActionBarRow2 as ActionBarRow,
|
|
487
500
|
ActionsMenu2 as ActionsMenu,
|
|
488
501
|
ActionsMenuContextContent2 as ActionsMenuContextContent,
|
|
489
502
|
ActionsMenuContextTarget2 as ActionsMenuContextTarget,
|
|
@@ -588,6 +601,10 @@ export {
|
|
|
588
601
|
DashboardLayout2 as DashboardLayout,
|
|
589
602
|
DataViewer2 as DataViewer,
|
|
590
603
|
DensityProvider2 as DensityProvider,
|
|
604
|
+
DescriptionDetails2 as DescriptionDetails,
|
|
605
|
+
DescriptionList2 as DescriptionList,
|
|
606
|
+
DescriptionListItem2 as DescriptionListItem,
|
|
607
|
+
DescriptionTerm2 as DescriptionTerm,
|
|
591
608
|
Dialog2 as Dialog,
|
|
592
609
|
DialogClose2 as DialogClose,
|
|
593
610
|
DialogContent2 as DialogContent,
|
|
@@ -636,6 +653,8 @@ export {
|
|
|
636
653
|
EmptyMedia2 as EmptyMedia,
|
|
637
654
|
EmptyState3 as EmptyState,
|
|
638
655
|
EmptyTitle2 as EmptyTitle,
|
|
656
|
+
ErrorSummary2 as ErrorSummary,
|
|
657
|
+
ErrorSummaryItem2 as ErrorSummaryItem,
|
|
639
658
|
Field2 as Field,
|
|
640
659
|
FieldContent2 as FieldContent,
|
|
641
660
|
FieldDescription2 as FieldDescription,
|
|
@@ -747,6 +766,9 @@ export {
|
|
|
747
766
|
OptionCard2 as OptionCard,
|
|
748
767
|
OptionCardGroup2 as OptionCardGroup,
|
|
749
768
|
OptionSelect2 as OptionSelect,
|
|
769
|
+
Outline2 as Outline,
|
|
770
|
+
OutlineItem2 as OutlineItem,
|
|
771
|
+
OutlineSection2 as OutlineSection,
|
|
750
772
|
PageHeader2 as PageHeader,
|
|
751
773
|
PageIntro2 as PageIntro,
|
|
752
774
|
PageMessage2 as PageMessage,
|
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.105",
|
|
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
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# JsonRenderForm
|
|
2
|
+
|
|
3
|
+
Story: @alexgorbatchev/shadcn/components/data-display/JsonRenderForm
|
|
4
|
+
Source: src/components/stories/data-display/JsonRenderForm.stories.tsx
|
|
5
|
+
|
|
6
|
+
[Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/JsonRenderForm.stories.tsx)
|
|
7
|
+
|
|
8
|
+
## Public imports
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { Button } from "@alexgorbatchev/shadcn";
|
|
12
|
+
import { components, componentDefinitions, JsonFormProvider, stripRequiredMark, useJsonReveal, type JsonFormMode } from "@alexgorbatchev/shadcn/json-render";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Supporting imports
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { useEffect, useState, type ReactElement } from "react";
|
|
19
|
+
import { createStateStore, defineCatalog, type Spec } from "@json-render/core";
|
|
20
|
+
import { JSONUIProvider, Renderer, defineRegistry } from "@json-render/react";
|
|
21
|
+
import { schema } from "@json-render/react/schema";
|
|
22
|
+
import { z } from "zod";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Default component
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
JsonFormExample
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
### RequiredAndMessages
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
{
|
|
39
|
+
args: {
|
|
40
|
+
spec: answerSpec,
|
|
41
|
+
state: { answers: { company: "", notes: "", plan: "", frequency: "", agree: false, alerts: false, volume: 0 } },
|
|
42
|
+
errors: { "/answers/company": "Company name: Enter a name" },
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### LockedKeepsReadingControls
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
{
|
|
51
|
+
args: { spec: answerSpec, state: { answers }, mode: "locked" }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### ReadOnlyValues
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
{
|
|
59
|
+
args: { spec: answerSpec, state: { answers }, mode: "values" }
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### DropdownMenuChoice
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
{
|
|
67
|
+
args: { spec: answerSpec, state: { answers: {} } }
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### RevealOpensHidingContainers
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
{
|
|
75
|
+
args: {
|
|
76
|
+
reveal: ["inSection", "inTab"],
|
|
77
|
+
spec: {
|
|
78
|
+
root: "tabs",
|
|
79
|
+
elements: {
|
|
80
|
+
tabs: {
|
|
81
|
+
type: "Tabs",
|
|
82
|
+
props: {
|
|
83
|
+
tabs: [
|
|
84
|
+
{ value: "overview", label: "Overview" },
|
|
85
|
+
{ value: "decide", label: "Decide" },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
children: ["overview", "decide"],
|
|
89
|
+
},
|
|
90
|
+
overview: { type: "Text", props: { text: "Overview panel" } },
|
|
91
|
+
decide: { type: "Stack", props: {}, children: ["inTab", "section"] },
|
|
92
|
+
inTab: { type: "RevealProbe", props: { name: "inTab" } },
|
|
93
|
+
section: { type: "Collapsible", props: { title: "Advanced" }, children: ["inSection"] },
|
|
94
|
+
inSection: { type: "RevealProbe", props: { name: "inSection" } },
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# ErrorSummary
|
|
2
|
+
|
|
3
|
+
Story: @alexgorbatchev/shadcn/components/feedback/ErrorSummary
|
|
4
|
+
Source: src/components/stories/feedback/ErrorSummary.stories.tsx
|
|
5
|
+
|
|
6
|
+
[Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/feedback/ErrorSummary.stories.tsx)
|
|
7
|
+
|
|
8
|
+
## Public imports
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { ErrorSummary, ErrorSummaryItem } from "@alexgorbatchev/shadcn";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Default component
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
ErrorSummary
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
### Default
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
{
|
|
28
|
+
args: {
|
|
29
|
+
title: "2 answers needed",
|
|
30
|
+
children: (<>
|
|
31
|
+
<ErrorSummaryItem onSelect={goToDescription}>
|
|
32
|
+
Describe the company in one sentence: Describe the company
|
|
33
|
+
</ErrorSummaryItem>
|
|
34
|
+
<ErrorSummaryItem onSelect={goToDeadline}>Launch deadline: Enter a deadline</ErrorSummaryItem>
|
|
35
|
+
</>),
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### NestedHeading
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
{
|
|
44
|
+
args: { ...Default.args, headingLevel: 3 }
|
|
45
|
+
}
|
|
46
|
+
```
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# ActionBar
|
|
2
|
+
|
|
3
|
+
Story: @alexgorbatchev/shadcn/components/layout/ActionBar
|
|
4
|
+
Source: src/components/stories/layout/ActionBar.stories.tsx
|
|
5
|
+
|
|
6
|
+
[Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/layout/ActionBar.stories.tsx)
|
|
7
|
+
|
|
8
|
+
## Public imports
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { ActionBar, ActionBarRow, Button } from "@alexgorbatchev/shadcn";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Default component
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
ActionBar
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
### AtRest
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
{
|
|
28
|
+
args: { progress: 7 / 11, role: "region", "aria-label": "Hand back Round 1", children: <Rows /> }
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### OneRowWithoutWrapping
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
{
|
|
36
|
+
args: {
|
|
37
|
+
children: (<ActionBarRow justify="between" align="end" wrap={false}>
|
|
38
|
+
<span>7 of 11</span>
|
|
39
|
+
<Button type="button">I’m done</Button>
|
|
40
|
+
</ActionBarRow>),
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### StuckToTheBottom
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
{
|
|
49
|
+
args: { sticky: true, stuck: true, surface: "card", progress: 2, children: <Rows /> },
|
|
50
|
+
decorators: [
|
|
51
|
+
(Story) => (<div data-testid="scroller" className="h-48 overflow-auto bg-card" data-scroll="intentional">
|
|
52
|
+
<div className="h-96">Content above the bar</div>
|
|
53
|
+
<Story />
|
|
54
|
+
</div>),
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### WithoutMeter
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
{
|
|
63
|
+
args: { progress: undefined, children: <Rows /> }
|
|
64
|
+
}
|
|
65
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Outline
|
|
2
|
+
|
|
3
|
+
Story: @alexgorbatchev/shadcn/components/navigation/Outline
|
|
4
|
+
Source: src/components/stories/navigation/Outline.stories.tsx
|
|
5
|
+
|
|
6
|
+
[Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/navigation/Outline.stories.tsx)
|
|
7
|
+
|
|
8
|
+
## Public imports
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { Outline, OutlineItem, OutlineSection } from "@alexgorbatchev/shadcn";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Default component
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
Outline
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
### Default
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
{
|
|
28
|
+
args: {
|
|
29
|
+
className: "max-w-72",
|
|
30
|
+
children: (<>
|
|
31
|
+
<OutlineSection title="Basics" meta="2 of 3 answered">
|
|
32
|
+
<OutlineItem label="Company name" state="Answered" onSelect={fn()}/>
|
|
33
|
+
<OutlineItem label="Describe the company in one sentence" state="Not answered" onSelect={fn()}/>
|
|
34
|
+
<OutlineItem label="Primary audience" state="Answered" onSelect={fn()}/>
|
|
35
|
+
</OutlineSection>
|
|
36
|
+
<OutlineSection title="Voice">
|
|
37
|
+
<OutlineItem label="Technical jargon" onSelect={goToJargon}/>
|
|
38
|
+
</OutlineSection>
|
|
39
|
+
</>),
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
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.
|
|
@@ -349,6 +350,7 @@ Generated from the public package exports and Storybook sources.
|
|
|
349
350
|
- [ImageZoomToggle](./llms/components/data-display/ImageZoomToggle.md): Import from `@alexgorbatchev/shadcn/image-viewer`. A two-option toggle for ImageViewer and ImageComparison zoom that consumers place in a header or toolbar. "Fit to screen" and "Original size" are pressed-state toggles with constant names, so assistive technology announces the active zoom through `aria-pressed`. Original size sets zoom `1`; other numeric zooms, such as 150% from the ImageViewer zoom bar, press neither option. `label` names the group (default "Zoom"); `size`, `orientation`, `layout`, `disabled`, and `density` follow ToggleGroup.
|
|
350
351
|
- [Item](./llms/components/data-display/Item.md)
|
|
351
352
|
- [JsonRender](./llms/components/data-display/JsonRender.md)
|
|
353
|
+
- [JsonRenderForm](./llms/components/data-display/JsonRenderForm.md)
|
|
352
354
|
- [JsonViewer](./llms/components/data-display/JsonViewer.md)
|
|
353
355
|
- [Kbd](./llms/components/data-display/Kbd.md)
|
|
354
356
|
- [Meter](./llms/components/data-display/Meter.md)
|
|
@@ -380,6 +382,7 @@ Generated from the public package exports and Storybook sources.
|
|
|
380
382
|
- [Alert](./llms/components/feedback/Alert.md)
|
|
381
383
|
- [Empty](./llms/components/feedback/Empty.md)
|
|
382
384
|
- [EmptyState](./llms/components/feedback/EmptyState.md)
|
|
385
|
+
- [ErrorSummary](./llms/components/feedback/ErrorSummary.md)
|
|
383
386
|
- [PageMessage](./llms/components/feedback/PageMessage.md)
|
|
384
387
|
- [Progress](./llms/components/feedback/Progress.md)
|
|
385
388
|
- [Skeleton](./llms/components/feedback/Skeleton.md)
|
|
@@ -424,6 +427,7 @@ Generated from the public package exports and Storybook sources.
|
|
|
424
427
|
## layout
|
|
425
428
|
|
|
426
429
|
- [Accordion](./llms/components/layout/Accordion.md)
|
|
430
|
+
- [ActionBar](./llms/components/layout/ActionBar.md)
|
|
427
431
|
- [AppShell](./llms/components/layout/AppShell.md)
|
|
428
432
|
- [AspectRatio](./llms/components/layout/AspectRatio.md)
|
|
429
433
|
- [BillingUsage](./llms/components/layout/BillingUsage.md)
|
|
@@ -458,6 +462,7 @@ Generated from the public package exports and Storybook sources.
|
|
|
458
462
|
- [DropdownMenu](./llms/components/navigation/DropdownMenu.md)
|
|
459
463
|
- [Menubar](./llms/components/navigation/Menubar.md)
|
|
460
464
|
- [NavigationMenu](./llms/components/navigation/NavigationMenu.md)
|
|
465
|
+
- [Outline](./llms/components/navigation/Outline.md)
|
|
461
466
|
- [Pagination](./llms/components/navigation/Pagination.md)
|
|
462
467
|
- [Sidebar](./llms/components/navigation/Sidebar.md)
|
|
463
468
|
- [Tabs](./llms/components/navigation/Tabs.md)
|