@alexgorbatchev/shadcn 0.0.211 → 0.0.213
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-zaxd1gt2.js → chunk-0b8zqcdm.js} +1 -1
- package/dist/{chunk-a9vj23fc.js → chunk-1n28q5x8.js} +1 -1
- package/dist/{chunk-7zr7hevh.js → chunk-2fr7yg6p.js} +1 -1
- package/dist/{chunk-ag840zc0.js → chunk-3rc3bhfe.js} +1 -1
- package/dist/{chunk-wn906bmh.js → chunk-73xa88h4.js} +1 -1
- package/dist/{chunk-q9pa0srh.js → chunk-7xwrq56x.js} +1 -1
- package/dist/{chunk-ayhrtbp5.js → chunk-8e87g31g.js} +1 -1
- package/dist/{chunk-3rxwqsy5.js → chunk-fqa5ydth.js} +1 -1
- package/dist/{chunk-852bsd9z.js → chunk-m8qhy1rm.js} +1 -1
- package/dist/{chunk-pkrvjbsb.js → chunk-mkcs48hf.js} +1 -1
- package/dist/{chunk-03qne5zt.js → chunk-mtbhe5kk.js} +6 -4
- package/dist/{chunk-aqfe98ns.js → chunk-nqn5a0ns.js} +1 -1
- package/dist/{chunk-jc3cbwyg.js → chunk-veybysb9.js} +2 -2
- package/dist/{chunk-tbnqgw46.js → chunk-yt48wk9c.js} +1 -1
- package/dist/components/Card.d.ts +9 -2
- package/dist/components/Kanban.d.ts +5 -3
- package/dist/components/assistant-ui/elements/BackgroundInbox.js +2 -2
- package/dist/components/assistant-ui/elements/Chart.js +2 -2
- package/dist/components/assistant-ui/elements/CodeDiff.js +2 -2
- package/dist/components/assistant-ui/elements/DataTable.js +2 -2
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +2 -2
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
- package/dist/components/assistant-ui/elements/FileTree.js +2 -2
- package/dist/components/assistant-ui/elements/FlowGraph.js +2 -2
- package/dist/components/assistant-ui/elements/McpServerPanel.js +2 -2
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/index.js +12 -12
- package/dist/components/gantt/index.js +1 -1
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/json-render/index.js +3 -3
- package/dist/index.js +3 -3
- package/dist/prototype.js +1 -1
- package/llms/components/layout/Card.md +24 -0
- package/llms/components/planning/Kanban.md +16 -0
- package/package.json +1 -1
|
@@ -323,7 +323,9 @@ var stickyReadOnlyHeaderClassName = "sticky top-0 z-10 -mb-3 bg-background pb-3
|
|
|
323
323
|
var gridClassName = "grid gap-4 @3xl:auto-cols-[minmax(14rem,1fr)] @3xl:grid-flow-col";
|
|
324
324
|
var columnClassName = "flex min-w-0 flex-col gap-3 @3xl:min-h-48 rounded-sm border border-border bg-muted/30 p-3 data-over:border-primary";
|
|
325
325
|
var readOnlyGridClassName = "grid gap-6 @3xl:auto-cols-[minmax(14rem,1fr)] @3xl:grid-flow-col @3xl:gap-4";
|
|
326
|
-
var readOnlyColumnClassName = "flex min-w-0 flex-col gap-3 @3xl:
|
|
326
|
+
var readOnlyColumnClassName = "flex min-w-0 flex-col gap-3 @3xl:rounded-sm @3xl:border @3xl:border-border @3xl:bg-muted/30 @3xl:p-3";
|
|
327
|
+
var readOnlyEndClassName = "@3xl:self-start";
|
|
328
|
+
var fillGridClassName = "@3xl:min-h-full";
|
|
327
329
|
var cardClassName = "grid gap-3 rounded-sm border border-input bg-card p-3 text-sm";
|
|
328
330
|
function useCardDescriptions(describeItem) {
|
|
329
331
|
const prefix = useId3();
|
|
@@ -490,13 +492,13 @@ function ReadOnlyKanban({
|
|
|
490
492
|
"data-fill": fill ? "" : undefined,
|
|
491
493
|
className: cn2(boardClassName, fill && fillClassName),
|
|
492
494
|
children: /* @__PURE__ */ jsx4("div", {
|
|
493
|
-
className: readOnlyGridClassName,
|
|
495
|
+
className: cn2(readOnlyGridClassName, fill && fillGridClassName),
|
|
494
496
|
children: columns.map((column, columnIndex) => {
|
|
495
497
|
const list = cards[columnIndex];
|
|
496
498
|
return /* @__PURE__ */ jsxs3("section", {
|
|
497
499
|
"aria-label": column.label,
|
|
498
500
|
"data-scroll": "none",
|
|
499
|
-
className: readOnlyColumnClassName,
|
|
501
|
+
className: cn2(readOnlyColumnClassName, !fill && readOnlyEndClassName),
|
|
500
502
|
children: [
|
|
501
503
|
/* @__PURE__ */ jsx4(ColumnHeader, {
|
|
502
504
|
label: column.label,
|
|
@@ -597,7 +599,7 @@ function Kanban2(props) {
|
|
|
597
599
|
"data-fill": fill ? "" : undefined,
|
|
598
600
|
className: cn2(boardClassName, fill && fillClassName),
|
|
599
601
|
children: /* @__PURE__ */ jsx4("div", {
|
|
600
|
-
className: gridClassName,
|
|
602
|
+
className: cn2(gridClassName, fill && fillGridClassName),
|
|
601
603
|
children: columns.map((column, columnIndex) => {
|
|
602
604
|
const cards = items.filter((item) => item.columnId === column.id);
|
|
603
605
|
return /* @__PURE__ */ jsxs3(DropTarget2, {
|
|
@@ -84,12 +84,12 @@ function Card2({ density, className, size = "default", variant = "default", ...p
|
|
|
84
84
|
}, props)
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function CardHeader2({ density, className, ...props }) {
|
|
87
|
+
function CardHeader2({ density, wrap = false, className, ...props }) {
|
|
88
88
|
return /* @__PURE__ */ jsx("div", {
|
|
89
89
|
"data-density": density,
|
|
90
90
|
"data-slot": "card-header",
|
|
91
91
|
"data-scroll": "none",
|
|
92
|
-
className: cn2("group/card-header @container/card-header
|
|
92
|
+
className: cn2("group/card-header @container/card-header items-start gap-1 rounded-t-md px-(--card-spacing) [.border-b]:pb-(--card-spacing)", wrap ? "flex flex-wrap *:data-[slot=card-action]:ml-auto *:data-[slot=card-description]:order-last *:data-[slot=card-description]:basis-full *:data-[slot=card-title]:flex-[1_1_14rem]" : "grid auto-rows-min has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]", className),
|
|
93
93
|
...props
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -8,8 +8,15 @@ type CardProps = ComponentProps<"div"> & VariantProps<typeof cardVariants> & {
|
|
|
8
8
|
size?: "default" | "sm";
|
|
9
9
|
} & IDensityProps;
|
|
10
10
|
declare function Card({ density, className, size, variant, ...props }: CardProps): ReactElement;
|
|
11
|
-
type CardHeaderProps = ComponentProps<"div"> & IDensityProps
|
|
12
|
-
|
|
11
|
+
type CardHeaderProps = ComponentProps<"div"> & IDensityProps & {
|
|
12
|
+
/**
|
|
13
|
+
* Moves the action onto its own row under the title when the title would get less than 14rem beside it, instead of
|
|
14
|
+
* letting a long title and a wide action overflow a narrow card. The description then follows them on a row of its
|
|
15
|
+
* own.
|
|
16
|
+
*/
|
|
17
|
+
wrap?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare function CardHeader({ density, wrap, className, ...props }: CardHeaderProps): ReactElement;
|
|
13
20
|
type CardTitleProps = ComponentProps<"div"> & IDensityProps & {
|
|
14
21
|
/**
|
|
15
22
|
* `default` titles an app's own card. `lg` is the subheading step, larger and bolder than body text and smaller than
|
|
@@ -16,7 +16,8 @@ type KanbanProps<T extends KanbanItem> = IDensityProps & {
|
|
|
16
16
|
/**
|
|
17
17
|
* Receives the reordered items after a move. Omit it for a read-only board: cards cannot be dragged and show no move
|
|
18
18
|
* controls, the board is one Tab stop, arrow keys move between cards and Enter activates the card's first link or button.
|
|
19
|
-
* Its columns end after their last card, and stacked columns show their heading over their cards
|
|
19
|
+
* Its columns end after their last card, except with `fill`, and stacked columns show their heading over their cards
|
|
20
|
+
* without a panel.
|
|
20
21
|
*/
|
|
21
22
|
onItemsChange?: (items: T[]) => void;
|
|
22
23
|
renderItem?: (item: T) => ReactNode;
|
|
@@ -31,8 +32,9 @@ type KanbanProps<T extends KanbanItem> = IDensityProps & {
|
|
|
31
32
|
describeItem?: (item: T) => ReactNode;
|
|
32
33
|
/**
|
|
33
34
|
* Fill the container's height and scroll inside it, both ways, keeping each column's heading and count in view while
|
|
34
|
-
* its cards scroll under it.
|
|
35
|
-
*
|
|
35
|
+
* its cards scroll under it. Side by side, every column reaches the board's end, so a short column keeps its heading
|
|
36
|
+
* in view too. The container must bound the board's height, for example as a flex child with `min-h-0`. Without it
|
|
37
|
+
* the board grows with its cards and the page scrolls.
|
|
36
38
|
*/
|
|
37
39
|
fill?: boolean;
|
|
38
40
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackgroundInbox2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-3rc3bhfe.js";
|
|
4
|
+
import"../../../chunk-veybysb9.js";
|
|
5
5
|
import"../../../chunk-4p8m2evw.js";
|
|
6
6
|
import"../../../chunk-x90xmrba.js";
|
|
7
7
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Chart2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-73xa88h4.js";
|
|
4
|
+
import"../../../chunk-veybysb9.js";
|
|
5
5
|
import"../../../chunk-1pm10n0c.js";
|
|
6
6
|
import"../../../chunk-tcefvfr8.js";
|
|
7
7
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataTable2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-mkcs48hf.js";
|
|
4
4
|
import"../../../chunk-1wz92wgg.js";
|
|
5
5
|
import"../../../chunk-qyw2b7nf.js";
|
|
6
|
-
import"../../../chunk-
|
|
6
|
+
import"../../../chunk-veybysb9.js";
|
|
7
7
|
import"../../../chunk-m4geb1s5.js";
|
|
8
8
|
import"../../../chunk-cgj3ade2.js";
|
|
9
9
|
import"../../../chunk-4p8m2evw.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EditMessage2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-m8qhy1rm.js";
|
|
4
4
|
import"../../../chunk-vxvaaptq.js";
|
|
5
5
|
import"../../../chunk-rwehk1b5.js";
|
|
6
|
-
import"../../../chunk-
|
|
6
|
+
import"../../../chunk-veybysb9.js";
|
|
7
7
|
import"../../../chunk-4m2x9jfb.js";
|
|
8
8
|
import"../../../chunk-vfgp11y4.js";
|
|
9
9
|
import"../../../chunk-7jpsybag.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ElicitationForm2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-yt48wk9c.js";
|
|
4
4
|
import"../../../chunk-vxvaaptq.js";
|
|
5
5
|
import"../../../chunk-afz40kxy.js";
|
|
6
6
|
import"../../../chunk-gzftvtrb.js";
|
|
7
7
|
import"../../../chunk-rwehk1b5.js";
|
|
8
|
-
import"../../../chunk-
|
|
8
|
+
import"../../../chunk-veybysb9.js";
|
|
9
9
|
import"../../../chunk-4m2x9jfb.js";
|
|
10
10
|
import"../../../chunk-t9ms87s9.js";
|
|
11
11
|
import"../../../chunk-7jpsybag.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FeedbackDialog2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-8e87g31g.js";
|
|
4
4
|
import"../../../chunk-3vme6asz.js";
|
|
5
5
|
import"../../../chunk-rwehk1b5.js";
|
|
6
|
-
import"../../../chunk-
|
|
6
|
+
import"../../../chunk-veybysb9.js";
|
|
7
7
|
import"../../../chunk-4m2x9jfb.js";
|
|
8
8
|
import"../../../chunk-vfgp11y4.js";
|
|
9
9
|
import"../../../chunk-7jpsybag.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpServerPanel2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-1n28q5x8.js";
|
|
4
|
+
import"../../../chunk-veybysb9.js";
|
|
5
5
|
import"../../../chunk-cgj3ade2.js";
|
|
6
6
|
import"../../../chunk-fw86vanx.js";
|
|
7
7
|
import"../../../chunk-4p8m2evw.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModelPicker2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-7xwrq56x.js";
|
|
4
4
|
import"../../../chunk-afz40kxy.js";
|
|
5
5
|
import"../../../chunk-rwehk1b5.js";
|
|
6
|
-
import"../../../chunk-
|
|
6
|
+
import"../../../chunk-veybysb9.js";
|
|
7
7
|
import"../../../chunk-cgj3ade2.js";
|
|
8
8
|
import"../../../chunk-4m2x9jfb.js";
|
|
9
9
|
import"../../../chunk-52aadmkc.js";
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
AudioPlayer2
|
|
40
40
|
} from "../../chunk-25fj9w6n.js";
|
|
41
41
|
import"../../chunk-pb8tsrdf.js";
|
|
42
|
-
import"../../chunk-
|
|
42
|
+
import"../../chunk-veybysb9.js";
|
|
43
43
|
import {
|
|
44
44
|
BackgroundInbox2
|
|
45
|
-
} from "../../chunk-
|
|
45
|
+
} from "../../chunk-3rc3bhfe.js";
|
|
46
46
|
import {
|
|
47
47
|
CanvasSplit2,
|
|
48
48
|
CanvasSplitThread2,
|
|
@@ -56,7 +56,7 @@ import"../../chunk-tcefvfr8.js";
|
|
|
56
56
|
import"../../chunk-1pm10n0c.js";
|
|
57
57
|
import {
|
|
58
58
|
Chart2
|
|
59
|
-
} from "../../chunk-
|
|
59
|
+
} from "../../chunk-73xa88h4.js";
|
|
60
60
|
import"../../chunk-t9ms87s9.js";
|
|
61
61
|
import"../../chunk-vfgp11y4.js";
|
|
62
62
|
import"../../chunk-nxhtadxt.js";
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
} from "../../chunk-kjx7n6a7.js";
|
|
82
82
|
import {
|
|
83
83
|
CodeDiff2
|
|
84
|
-
} from "../../chunk-
|
|
84
|
+
} from "../../chunk-fqa5ydth.js";
|
|
85
85
|
import {
|
|
86
86
|
CodeRunner2
|
|
87
87
|
} from "../../chunk-8222vrek.js";
|
|
@@ -203,7 +203,7 @@ import"../../chunk-1wz92wgg.js";
|
|
|
203
203
|
import"../../chunk-cgj3ade2.js";
|
|
204
204
|
import {
|
|
205
205
|
DataTable2
|
|
206
|
-
} from "../../chunk-
|
|
206
|
+
} from "../../chunk-mkcs48hf.js";
|
|
207
207
|
import"../../chunk-qyw2b7nf.js";
|
|
208
208
|
import {
|
|
209
209
|
DaySeparator2
|
|
@@ -229,12 +229,12 @@ import"../../chunk-52aadmkc.js";
|
|
|
229
229
|
import"../../chunk-rwehk1b5.js";
|
|
230
230
|
import {
|
|
231
231
|
EditMessage2
|
|
232
|
-
} from "../../chunk-
|
|
232
|
+
} from "../../chunk-m8qhy1rm.js";
|
|
233
233
|
import"../../chunk-afz40kxy.js";
|
|
234
234
|
import"../../chunk-gzftvtrb.js";
|
|
235
235
|
import {
|
|
236
236
|
ElicitationForm2
|
|
237
|
-
} from "../../chunk-
|
|
237
|
+
} from "../../chunk-yt48wk9c.js";
|
|
238
238
|
import"../../chunk-4e96tpw0.js";
|
|
239
239
|
import {
|
|
240
240
|
EmptyState2
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
import"../../chunk-3vme6asz.js";
|
|
263
263
|
import {
|
|
264
264
|
FeedbackDialog2
|
|
265
|
-
} from "../../chunk-
|
|
265
|
+
} from "../../chunk-8e87g31g.js";
|
|
266
266
|
import {
|
|
267
267
|
FileRoot2,
|
|
268
268
|
FileIconDisplay2,
|
|
@@ -277,10 +277,10 @@ import {
|
|
|
277
277
|
} from "../../chunk-wrvxzfdb.js";
|
|
278
278
|
import {
|
|
279
279
|
FileTree2
|
|
280
|
-
} from "../../chunk-
|
|
280
|
+
} from "../../chunk-nqn5a0ns.js";
|
|
281
281
|
import {
|
|
282
282
|
FlowGraph2
|
|
283
|
-
} from "../../chunk-
|
|
283
|
+
} from "../../chunk-2fr7yg6p.js";
|
|
284
284
|
import {
|
|
285
285
|
Frac2
|
|
286
286
|
} from "../../chunk-4mmxn1c3.js";
|
|
@@ -346,7 +346,7 @@ import {
|
|
|
346
346
|
} from "../../chunk-0ybqnkcy.js";
|
|
347
347
|
import {
|
|
348
348
|
McpServerPanel2
|
|
349
|
-
} from "../../chunk-
|
|
349
|
+
} from "../../chunk-1n28q5x8.js";
|
|
350
350
|
import {
|
|
351
351
|
MemoryChips2
|
|
352
352
|
} from "../../chunk-rv09hv6y.js";
|
|
@@ -373,7 +373,7 @@ import {
|
|
|
373
373
|
} from "../../chunk-w7kec38n.js";
|
|
374
374
|
import {
|
|
375
375
|
ModelPicker2
|
|
376
|
-
} from "../../chunk-
|
|
376
|
+
} from "../../chunk-7xwrq56x.js";
|
|
377
377
|
import"../../chunk-kp3jgjng.js";
|
|
378
378
|
import {
|
|
379
379
|
ModelSelectorRoot2
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PaginationPrevious2,
|
|
27
27
|
PaginationNext2,
|
|
28
28
|
PaginationEllipsis2
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-0b8zqcdm.js";
|
|
30
30
|
import {
|
|
31
31
|
MenuPopup,
|
|
32
32
|
MenuItem2,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
CardTitle2,
|
|
93
93
|
CardDescription2,
|
|
94
94
|
CardContent2
|
|
95
|
-
} from "../../chunk-
|
|
95
|
+
} from "../../chunk-veybysb9.js";
|
|
96
96
|
import"../../chunk-nxhtadxt.js";
|
|
97
97
|
import"../../chunk-940xf3xs.js";
|
|
98
98
|
import {
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
TabsList2,
|
|
101
101
|
TabsTrigger2,
|
|
102
102
|
TabsContent2
|
|
103
|
-
} from "../../chunk-
|
|
103
|
+
} from "../../chunk-mtbhe5kk.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-
|
|
191
|
+
} from "./chunk-0b8zqcdm.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-
|
|
228
|
+
} from "./chunk-mtbhe5kk.js";
|
|
229
229
|
import {
|
|
230
230
|
NumberField2,
|
|
231
231
|
NumberFieldGroup2,
|
|
@@ -349,7 +349,7 @@ import {
|
|
|
349
349
|
CardAction2,
|
|
350
350
|
CardContent2,
|
|
351
351
|
CardFooter2
|
|
352
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-veybysb9.js";
|
|
353
353
|
import {
|
|
354
354
|
Sheet2,
|
|
355
355
|
SheetTrigger2,
|
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.213",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -248,6 +248,30 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
248
248
|
}
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
+
### WrappedAction
|
|
252
|
+
|
|
253
|
+
```tsx
|
|
254
|
+
{
|
|
255
|
+
render: (args) => (<div className="flex flex-col items-start gap-4">
|
|
256
|
+
{[
|
|
257
|
+
{ label: "Narrow card", className: "w-72" },
|
|
258
|
+
{ label: "Wide card", className: "w-[40rem] max-w-full" },
|
|
259
|
+
].map(({ label, className }) => (<Card {...args} key={label} role="region" aria-label={label} className={className}>
|
|
260
|
+
<CardHeader wrap>
|
|
261
|
+
<CardTitle size="lg">Should we keep the retro palette for the launch?</CardTitle>
|
|
262
|
+
<CardDescription>Asked by your agent</CardDescription>
|
|
263
|
+
<CardAction>
|
|
264
|
+
<Button variant="outline" size="sm">
|
|
265
|
+
Show decision
|
|
266
|
+
</Button>
|
|
267
|
+
</CardAction>
|
|
268
|
+
</CardHeader>
|
|
269
|
+
<CardContent>Answered: No</CardContent>
|
|
270
|
+
</Card>))}
|
|
271
|
+
</div>)
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
251
275
|
### LoginForm
|
|
252
276
|
|
|
253
277
|
```tsx
|
|
@@ -107,6 +107,22 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
107
107
|
}
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
+
### ReadOnlyFillShort
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
{
|
|
114
|
+
render: () => <FillExample width={1000} items={readOnlyItems}/>
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### FillShort
|
|
119
|
+
|
|
120
|
+
```tsx
|
|
121
|
+
{
|
|
122
|
+
render: () => <FillExample width={1000} items={readOnlyItems} isEditable/>
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
110
126
|
### ReadOnlyFillNarrow
|
|
111
127
|
|
|
112
128
|
```tsx
|