@alexgorbatchev/shadcn 0.0.20 → 0.0.22

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.
Files changed (139) hide show
  1. package/README.md +24 -14
  2. package/THIRD_PARTY_NOTICES.md +60 -0
  3. package/dist/{chunk-s46hvhjw.js → chunk-0w6rxpr5.js} +1 -1
  4. package/dist/{chunk-gabqzfq0.js → chunk-1p7pend8.js} +3 -3
  5. package/dist/chunk-21wbz345.js +65 -0
  6. package/dist/{chunk-84ca0dpc.js → chunk-67dkgsm3.js} +1 -1
  7. package/dist/{chunk-p8qtk151.js → chunk-72qr0gqe.js} +1 -1
  8. package/dist/{chunk-4drqqqz1.js → chunk-83cckb23.js} +1 -1
  9. package/dist/{chunk-ztcbee24.js → chunk-9dqspkha.js} +1 -1
  10. package/dist/{chunk-eq88qk1d.js → chunk-d3ad53et.js} +8 -8
  11. package/dist/{chunk-h979cxnh.js → chunk-dq7kr5y0.js} +2 -1
  12. package/dist/{chunk-mrrbycgx.js → chunk-e0gcczqk.js} +1 -1
  13. package/dist/{chunk-553bzh59.js → chunk-f4c0tg2x.js} +1 -1
  14. package/dist/{chunk-14qj6w54.js → chunk-f9ha76ap.js} +4 -4
  15. package/dist/{chunk-ykt5sv7n.js → chunk-gkkbg7rq.js} +1 -1
  16. package/dist/{chunk-qv19jhdk.js → chunk-k8v9y2dw.js} +1 -1
  17. package/dist/chunk-kbg2e95b.js +434 -0
  18. package/dist/chunk-r9qrb6b6.js +54 -0
  19. package/dist/{chunk-ecmk3vgd.js → chunk-seeed8a2.js} +1 -1
  20. package/dist/{chunk-d9jbqd99.js → chunk-tynbgc30.js} +1 -1
  21. package/dist/{chunk-1qhf8gh8.js → chunk-wwyzwptb.js} +1 -1
  22. package/dist/components/AccountMenu.d.ts +12 -0
  23. package/dist/components/AppShell.d.ts +23 -0
  24. package/dist/components/AuthForm.d.ts +18 -0
  25. package/dist/components/BarList.d.ts +16 -0
  26. package/dist/components/BillingUsage.d.ts +20 -0
  27. package/dist/components/Combobox.d.ts +2 -1
  28. package/dist/components/DashboardLayout.d.ts +18 -0
  29. package/dist/components/FilterBar.d.ts +20 -0
  30. package/dist/components/Kanban.d.ts +23 -0
  31. package/dist/components/Meter.d.ts +9 -0
  32. package/dist/components/NumberField.d.ts +11 -0
  33. package/dist/components/PageHeader.d.ts +11 -0
  34. package/dist/components/SettingsSection.d.ts +16 -0
  35. package/dist/components/Sidebar.d.ts +2 -1
  36. package/dist/components/StatCard.d.ts +14 -0
  37. package/dist/components/StatusTracker.d.ts +16 -0
  38. package/dist/components/Stepper.d.ts +12 -0
  39. package/dist/components/TagInput.d.ts +16 -0
  40. package/dist/components/Toolbar.d.ts +10 -0
  41. package/dist/components/WorkspaceSwitcher.d.ts +14 -0
  42. package/dist/components/assistant-ui/elements/ApprovalCard.d.ts +1 -1
  43. package/dist/components/assistant-ui/elements/CommandPalette.js +3 -3
  44. package/dist/components/assistant-ui/elements/MessageTiming.d.ts +1 -1
  45. package/dist/components/assistant-ui/elements/ModelSelector.js +9 -9
  46. package/dist/components/assistant-ui/elements/ModelSelectorContent.js +8 -8
  47. package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +3 -3
  48. package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +3 -3
  49. package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +3 -3
  50. package/dist/components/assistant-ui/elements/ModelSelectorItem.js +3 -3
  51. package/dist/components/assistant-ui/elements/ModelSelectorList.js +5 -5
  52. package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +3 -3
  53. package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +3 -3
  54. package/dist/components/assistant-ui/elements/types.d.ts +0 -4
  55. package/dist/components/assistant-ui/index.js +11 -11
  56. package/dist/components/assistant-ui/native/AssistantModal.js +3 -3
  57. package/dist/components/assistant-ui/native/AssistantSidebar.js +3 -3
  58. package/dist/components/assistant-ui/native/ModelSelector.js +11 -11
  59. package/dist/components/assistant-ui/native/TaskCard.js +2 -2
  60. package/dist/components/assistant-ui/native/TaskGroup.js +3 -3
  61. package/dist/components/assistant-ui/native/Thread.js +2 -2
  62. package/dist/components/assistant-ui/native/ThreadListSidebar.js +2 -2
  63. package/dist/components/assistant-ui/native/index.js +17 -17
  64. package/dist/components/calendar/DatePicker.d.ts +27 -0
  65. package/dist/components/calendar/index.d.ts +2 -0
  66. package/dist/components/calendar/index.js +175 -2
  67. package/dist/components/chart/AnalyticsChart.d.ts +24 -0
  68. package/dist/components/chart/index.d.ts +2 -0
  69. package/dist/components/chart/index.js +88 -0
  70. package/dist/components/color-picker/ColorPicker.d.ts +14 -0
  71. package/dist/components/color-picker/index.d.ts +2 -0
  72. package/dist/components/color-picker/index.js +52 -0
  73. package/dist/components/command/index.js +1 -1
  74. package/dist/components/data-grid/DataGrid.d.ts +44 -0
  75. package/dist/components/data-grid/index.d.ts +2 -0
  76. package/dist/components/data-grid/index.js +228 -0
  77. package/dist/components/editor/RichTextEditor.d.ts +14 -0
  78. package/dist/components/editor/index.d.ts +2 -0
  79. package/dist/components/editor/index.js +108 -0
  80. package/dist/components/event-calendar/EventCalendar.d.ts +16 -0
  81. package/dist/components/event-calendar/EventForm.d.ts +18 -0
  82. package/dist/components/event-calendar/index.d.ts +4 -0
  83. package/dist/components/event-calendar/index.js +266 -0
  84. package/dist/components/file-upload/FileUpload.d.ts +14 -0
  85. package/dist/components/file-upload/index.d.ts +2 -0
  86. package/dist/components/file-upload/index.js +80 -0
  87. package/dist/components/gantt/Gantt.d.ts +22 -0
  88. package/dist/components/gantt/Roadmap.d.ts +18 -0
  89. package/dist/components/gantt/index.d.ts +4 -0
  90. package/dist/components/gantt/index.js +357 -0
  91. package/dist/components/image-crop/ImageCrop.d.ts +10 -0
  92. package/dist/components/image-crop/index.d.ts +2 -0
  93. package/dist/components/image-crop/index.js +35 -0
  94. package/dist/components/tree/Tree.d.ts +15 -0
  95. package/dist/components/tree/TreeItem.d.ts +22 -0
  96. package/dist/components/tree/index.d.ts +7 -0
  97. package/dist/components/tree/index.js +190 -0
  98. package/dist/event-calendar.css +83 -0
  99. package/dist/index.d.ts +33 -0
  100. package/dist/index.js +1422 -711
  101. package/dist/options/types.d.ts +5 -0
  102. package/llms/components/actions/Toolbar.md +89 -0
  103. package/llms/components/data-display/AnalyticsChart.md +48 -0
  104. package/llms/components/data-display/BarList.md +50 -0
  105. package/llms/components/data-display/DataGrid.md +51 -0
  106. package/llms/components/data-display/Meter.md +74 -0
  107. package/llms/components/data-display/Sparkline.md +50 -0
  108. package/llms/components/data-display/StatCard.md +65 -0
  109. package/llms/components/data-display/StatusTracker.md +51 -0
  110. package/llms/components/dates/DatePicker.md +97 -0
  111. package/llms/components/forms/AuthForm.md +70 -0
  112. package/llms/components/forms/ColorPicker.md +70 -0
  113. package/llms/components/forms/EventForm.md +66 -0
  114. package/llms/components/forms/FileUpload.md +55 -0
  115. package/llms/components/forms/FilterBar.md +34 -0
  116. package/llms/components/forms/ImageCrop.md +88 -0
  117. package/llms/components/forms/NumberField.md +94 -0
  118. package/llms/components/forms/Questionnaire.md +12 -0
  119. package/llms/components/forms/RichTextEditor.md +62 -0
  120. package/llms/components/forms/SettingsSection.md +65 -0
  121. package/llms/components/forms/Stepper.md +85 -0
  122. package/llms/components/forms/TagInput.md +47 -0
  123. package/llms/components/layout/AppShell.md +63 -0
  124. package/llms/components/layout/BillingUsage.md +51 -0
  125. package/llms/components/layout/DashboardLayout.md +78 -0
  126. package/llms/components/layout/PageHeader.md +49 -0
  127. package/llms/components/navigation/AccountMenu.md +42 -0
  128. package/llms/components/navigation/Tree.md +51 -0
  129. package/llms/components/navigation/WorkspaceSwitcher.md +48 -0
  130. package/llms/components/planning/EventCalendar.md +67 -0
  131. package/llms/components/planning/Gantt.md +66 -0
  132. package/llms/components/planning/Kanban.md +50 -0
  133. package/llms/components/planning/Roadmap.md +34 -0
  134. package/llms/setup.md +24 -14
  135. package/llms.txt +34 -0
  136. package/package.json +105 -3
  137. /package/dist/{chunk-8fcjx3he.js → chunk-az81pc04.js} +0 -0
  138. /package/dist/{chunk-7pyt4e5t.js → chunk-ghmkxqn5.js} +0 -0
  139. /package/dist/{chunk-5pvyxayg.js → chunk-m9zsppp2.js} +0 -0
@@ -3,3 +3,8 @@ export interface INamedOption {
3
3
  id: string;
4
4
  name: string;
5
5
  }
6
+ /** A display label paired with its submitted value. */
7
+ export interface ILabelValue {
8
+ label: string;
9
+ value: string;
10
+ }
@@ -0,0 +1,89 @@
1
+ # Toolbar
2
+
3
+ Story: @alexgorbatchev/shadcn/components/actions/Toolbar
4
+ Source: src/components/stories/actions/Toolbar.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/actions/Toolbar.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ Toolbar
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ { "aria-label": "Document actions" }
24
+ ```
25
+
26
+ ## Default render
27
+
28
+ ```tsx
29
+ (args) => (<Toolbar {...args}>
30
+ <ToolbarGroup aria-label="Editing">
31
+ <ToolbarButton onClick={fn()}>Undo</ToolbarButton>
32
+ <ToolbarButton>Redo</ToolbarButton>
33
+ </ToolbarGroup>
34
+ <ToolbarSeparator />
35
+ <ToolbarInput aria-label="Document title" defaultValue="Untitled"/>
36
+ <ToolbarLink href="#toolbar-help">Help</ToolbarLink>
37
+ </Toolbar>)
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
+ ### Vertical
51
+
52
+ ```tsx
53
+ {
54
+ args: { orientation: "vertical" }
55
+ }
56
+ ```
57
+
58
+ ### NativeStateCallbacks
59
+
60
+ ```tsx
61
+ {
62
+ render: (args) => (<Toolbar {...args} className={toolbarClasses} style={(state) => ({ opacity: state.orientation === "vertical" ? 0.9 : 1 })}>
63
+ <ToolbarGroup className={toolbarClasses}>
64
+ <ToolbarButton className={toolbarClasses} disabled style={(state) => ({ opacity: state.disabled ? 0.5 : 1 })}>
65
+ Unavailable
66
+ </ToolbarButton>
67
+ <ToolbarButton className={toolbarClasses}>Enabled</ToolbarButton>
68
+ </ToolbarGroup>
69
+ <ToolbarSeparator className={toolbarClasses}/>
70
+ <ToolbarInput className={toolbarClasses} aria-label="Title"/>
71
+ <ToolbarLink className={toolbarClasses} href="#help">
72
+ Help
73
+ </ToolbarLink>
74
+ </Toolbar>)
75
+ }
76
+ ```
77
+
78
+ ### DisabledState
79
+
80
+ ```tsx
81
+ {
82
+ render: (args) => (<Toolbar {...args}>
83
+ <ToolbarButton disabled onClick={disabledAction}>
84
+ Unavailable
85
+ </ToolbarButton>
86
+ <ToolbarButton>Enabled</ToolbarButton>
87
+ </Toolbar>)
88
+ }
89
+ ```
@@ -0,0 +1,48 @@
1
+ # AnalyticsChart
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/AnalyticsChart
4
+ Source: src/components/stories/data-display/AnalyticsChart.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/AnalyticsChart.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { AnalyticsChart } from "@alexgorbatchev/shadcn/chart";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ AnalyticsChart
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ {
24
+ label: "Revenue and signups",
25
+ index: "month",
26
+ data: [
27
+ { month: "Jan", revenue: 100, signups: 30, total: 130 },
28
+ { month: "Feb", revenue: 200, signups: 50, total: 250 },
29
+ { month: "Mar", revenue: 150, signups: 60, total: 210 },
30
+ ],
31
+ series: [
32
+ { key: "revenue", label: "Revenue", type: "bar" },
33
+ { key: "signups", label: "Signups", type: "area" },
34
+ { key: "total", label: "Total" },
35
+ ],
36
+ valueFormatter: (value) => `$${value}`,
37
+ }
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
+ ```
@@ -0,0 +1,50 @@
1
+ # BarList
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/BarList
4
+ Source: src/components/stories/data-display/BarList.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/BarList.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { BarList } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ BarList
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ { label: "Traffic sources", items, onItemSelect: fn() }
24
+ ```
25
+
26
+ ## Examples
27
+
28
+ 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.
29
+
30
+ ### Default
31
+
32
+ ```tsx
33
+ {}
34
+ ```
35
+
36
+ ### ReadOnly
37
+
38
+ ```tsx
39
+ {
40
+ args: { onItemSelect: undefined, valueFormatter: (value) => `${value} visits` }
41
+ }
42
+ ```
43
+
44
+ ### Empty
45
+
46
+ ```tsx
47
+ {
48
+ args: { items: [] }
49
+ }
50
+ ```
@@ -0,0 +1,51 @@
1
+ # DataGrid
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/DataGrid
4
+ Source: src/components/stories/data-display/DataGrid.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/DataGrid.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { DataGrid, DataGridColumnHeader, DataGridFilter, dataGridFeatures } from "@alexgorbatchev/shadcn/data-grid";
12
+ import { Checkbox, Button } from "@alexgorbatchev/shadcn";
13
+ ```
14
+
15
+ ## Supporting imports
16
+
17
+ ```tsx
18
+ import { createColumnHelper, useTable } from "@tanstack/react-table";
19
+ ```
20
+
21
+ ## Default render
22
+
23
+ ```tsx
24
+ () => <Example />
25
+ ```
26
+
27
+ ## Examples
28
+
29
+ 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.
30
+
31
+ ### Default
32
+
33
+ ```tsx
34
+ {}
35
+ ```
36
+
37
+ ### Loading
38
+
39
+ ```tsx
40
+ {
41
+ render: () => <Example loading/>
42
+ }
43
+ ```
44
+
45
+ ### WithoutPagination
46
+
47
+ ```tsx
48
+ {
49
+ render: () => <Example pagination={false}/>
50
+ }
51
+ ```
@@ -0,0 +1,74 @@
1
+ # Meter
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/Meter
4
+ Source: src/components/stories/data-display/Meter.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/Meter.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { Meter, MeterLabel, MeterValue, MeterTrack, MeterIndicator, Button } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Supporting imports
15
+
16
+ ```tsx
17
+ import { useState, type ReactElement } from "react";
18
+ ```
19
+
20
+ ## Default component
21
+
22
+ ```tsx
23
+ Meter
24
+ ```
25
+
26
+ ## Default args
27
+
28
+ ```tsx
29
+ { value: 25 }
30
+ ```
31
+
32
+ ## Default render
33
+
34
+ ```tsx
35
+ () => <StorageExample />
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
+ ### Default
43
+
44
+ ```tsx
45
+ {}
46
+ ```
47
+
48
+ ### Formatted
49
+
50
+ ```tsx
51
+ {
52
+ render: (args) => (<Meter {...args} min={0} max={1000} value={500} locale="en-US" format={{ style: "unit", unit: "gigabyte" }}>
53
+ <MeterLabel>Disk capacity</MeterLabel>
54
+ <MeterValue />
55
+ <MeterTrack>
56
+ <MeterIndicator />
57
+ </MeterTrack>
58
+ </Meter>)
59
+ }
60
+ ```
61
+
62
+ ### NativeStateCallbacks
63
+
64
+ ```tsx
65
+ {
66
+ render: () => (<Meter value={30} className={() => "font-medium"} style={() => ({ opacity: 0.9 })}>
67
+ <MeterLabel className={() => "font-medium"}>Queue capacity</MeterLabel>
68
+ <MeterValue className={() => "font-medium"}/>
69
+ <MeterTrack className={() => "h-2"}>
70
+ <MeterIndicator className={() => "bg-primary"}/>
71
+ </MeterTrack>
72
+ </Meter>)
73
+ }
74
+ ```
@@ -0,0 +1,50 @@
1
+ # Sparkline
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/Sparkline
4
+ Source: src/components/stories/data-display/Sparkline.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/Sparkline.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { Sparkline } from "@alexgorbatchev/shadcn/chart";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ Sparkline
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ { label: "Weekly revenue", values: [4, 6, 3, 8, 10] }
24
+ ```
25
+
26
+ ## Examples
27
+
28
+ 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.
29
+
30
+ ### Line
31
+
32
+ ```tsx
33
+ {}
34
+ ```
35
+
36
+ ### Area
37
+
38
+ ```tsx
39
+ {
40
+ args: { type: "area" }
41
+ }
42
+ ```
43
+
44
+ ### Bar
45
+
46
+ ```tsx
47
+ {
48
+ args: { type: "bar" }
49
+ }
50
+ ```
@@ -0,0 +1,65 @@
1
+ # StatCard
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/StatCard
4
+ Source: src/components/stories/data-display/StatCard.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/StatCard.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { StatCard } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ StatCard
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ {
24
+ label: "Revenue",
25
+ value: "$24,580",
26
+ change: "+12%",
27
+ changeIntent: "positive",
28
+ description: "Compared with the previous month.",
29
+ children: <a href="#revenue">View revenue report</a>,
30
+ }
31
+ ```
32
+
33
+ ## Examples
34
+
35
+ 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.
36
+
37
+ ### Default
38
+
39
+ ```tsx
40
+ {}
41
+ ```
42
+
43
+ ### Decrease
44
+
45
+ ```tsx
46
+ {
47
+ args: { change: "-5%", changeIntent: "negative", children: undefined, description: undefined }
48
+ }
49
+ ```
50
+
51
+ ### Neutral
52
+
53
+ ```tsx
54
+ {
55
+ args: { change: "No change", changeIntent: "neutral" }
56
+ }
57
+ ```
58
+
59
+ ### Loading
60
+
61
+ ```tsx
62
+ {
63
+ args: { loading: true, change: undefined }
64
+ }
65
+ ```
@@ -0,0 +1,51 @@
1
+ # StatusTracker
2
+
3
+ Story: @alexgorbatchev/shadcn/components/data-display/StatusTracker
4
+ Source: src/components/stories/data-display/StatusTracker.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/data-display/StatusTracker.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { StatusTracker } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ StatusTracker
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ {
24
+ label: "API uptime",
25
+ items: [
26
+ { id: "1", label: "Monday", status: "success", description: "All systems operational" },
27
+ { id: "2", label: "Tuesday", status: "warning" },
28
+ { id: "3", label: "Wednesday", status: "error", description: "Incident resolved" },
29
+ { id: "4", label: "Thursday", status: "unknown" },
30
+ ],
31
+ onItemSelect: fn(),
32
+ }
33
+ ```
34
+
35
+ ## Examples
36
+
37
+ 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.
38
+
39
+ ### Default
40
+
41
+ ```tsx
42
+ {}
43
+ ```
44
+
45
+ ### ReadOnly
46
+
47
+ ```tsx
48
+ {
49
+ args: { onItemSelect: undefined }
50
+ }
51
+ ```
@@ -0,0 +1,97 @@
1
+ # DatePicker
2
+
3
+ Story: @alexgorbatchev/shadcn/components/dates/DatePicker
4
+ Source: src/components/stories/dates/DatePicker.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/dates/DatePicker.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { DatePicker, DateRangePicker } from "@alexgorbatchev/shadcn/calendar";
12
+ import { Button } from "@alexgorbatchev/shadcn";
13
+ ```
14
+
15
+ ## Supporting imports
16
+
17
+ ```tsx
18
+ import { fr } from "@daypicker/react/locale/fr";
19
+ import { useState, type ReactElement } from "react";
20
+ ```
21
+
22
+ ## Default component
23
+
24
+ ```tsx
25
+ DatePicker
26
+ ```
27
+
28
+ ## Default args
29
+
30
+ ```tsx
31
+ {
32
+ label: "Appointment date",
33
+ calendarProps: { defaultMonth: new Date(2026, 9), today: new Date(2026, 9, 8) },
34
+ onValueChange: fn(),
35
+ }
36
+ ```
37
+
38
+ ## Default render
39
+
40
+ ```tsx
41
+ (args) => <DatePicker {...args}/>
42
+ ```
43
+
44
+ ## Examples
45
+
46
+ 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.
47
+
48
+ ### Default
49
+
50
+ ```tsx
51
+ {}
52
+ ```
53
+
54
+ ### Disabled
55
+
56
+ ```tsx
57
+ {
58
+ args: { disabled: true }
59
+ }
60
+ ```
61
+
62
+ ### Controlled
63
+
64
+ ```tsx
65
+ {
66
+ render: () => <ControlledExample />
67
+ }
68
+ ```
69
+
70
+ ### Range
71
+
72
+ ```tsx
73
+ {
74
+ render: () => (<DateRangePicker label="Reporting period" startName="start" endName="end" calendarProps={{ defaultMonth: new Date(2026, 9), today: new Date(2026, 9, 8) }}/>)
75
+ }
76
+ ```
77
+
78
+ ### FormValues
79
+
80
+ ```tsx
81
+ {
82
+ render: () => (<form aria-label="Dates">
83
+ <DatePicker label="Appointment" name="appointment" defaultValue={new Date(2026, 9, 9)}/>
84
+ <DateRangePicker label="Period" startName="start" endName="end" defaultValue={{ from: new Date(2026, 9, 9), to: new Date(2026, 9, 12) }}/>
85
+ <DatePicker label="Unavailable date" name="disabled-date" defaultValue={new Date(2026, 9, 9)} disabled/>
86
+ <DateRangePicker label="Unavailable period" startName="disabled-start" endName="disabled-end" defaultValue={{ from: new Date(2026, 9, 9) }} disabled/>
87
+ </form>)
88
+ }
89
+ ```
90
+
91
+ ### Localized
92
+
93
+ ```tsx
94
+ {
95
+ render: () => <DatePicker label="Date française" locale={fr} defaultValue={new Date(2026, 9, 9)}/>
96
+ }
97
+ ```
@@ -0,0 +1,70 @@
1
+ # AuthForm
2
+
3
+ Story: @alexgorbatchev/shadcn/components/forms/AuthForm
4
+ Source: src/components/stories/forms/AuthForm.stories.tsx
5
+
6
+ [Full source and local helpers](https://github.com/alexgorbatchev/shadcn/blob/main/src/components/stories/forms/AuthForm.stories.tsx)
7
+
8
+ ## Public imports
9
+
10
+ ```tsx
11
+ import { AuthForm } from "@alexgorbatchev/shadcn";
12
+ ```
13
+
14
+ ## Default component
15
+
16
+ ```tsx
17
+ AuthForm
18
+ ```
19
+
20
+ ## Default args
21
+
22
+ ```tsx
23
+ { onSubmit: fn() }
24
+ ```
25
+
26
+ ## Examples
27
+
28
+ 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.
29
+
30
+ ### SignIn
31
+
32
+ ```tsx
33
+ {}
34
+ ```
35
+
36
+ ### SignUp
37
+
38
+ ```tsx
39
+ {
40
+ args: { mode: "sign-up" }
41
+ }
42
+ ```
43
+
44
+ ### ResetPassword
45
+
46
+ ```tsx
47
+ {
48
+ args: { mode: "reset-password" }
49
+ }
50
+ ```
51
+
52
+ ### ServerError
53
+
54
+ ```tsx
55
+ {
56
+ args: { onSubmit: fn(() => Promise.reject(new Error("Invalid credentials"))) }
57
+ }
58
+ ```
59
+
60
+ ### Disabled
61
+
62
+ ```tsx
63
+ {
64
+ args: {
65
+ disabled: true,
66
+ footer: <a href="#terms">Terms of service</a>,
67
+ alternativeActions: <a href="#provider">Continue with provider</a>,
68
+ }
69
+ }
70
+ ```