@alexgorbatchev/shadcn 0.0.207 → 0.0.208

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.
@@ -309,6 +309,8 @@ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
309
309
  var boardClassName = "@container overflow-x-auto";
310
310
  var gridClassName = "grid gap-4 @3xl:auto-cols-[minmax(14rem,1fr)] @3xl:grid-flow-col";
311
311
  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";
312
+ var readOnlyGridClassName = "grid gap-6 @3xl:auto-cols-[minmax(14rem,1fr)] @3xl:grid-flow-col @3xl:gap-4";
313
+ var readOnlyColumnClassName = "flex min-w-0 flex-col gap-3 @3xl:self-start @3xl:rounded-sm @3xl:border @3xl:border-border @3xl:bg-muted/30 @3xl:p-3";
312
314
  var cardClassName = "grid gap-3 rounded-sm border border-border bg-card p-3 text-sm";
313
315
  var readOnlyCardClassName = `${cardClassName} outline-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring`;
314
316
  function ColumnHeader({ label, count }) {
@@ -387,13 +389,13 @@ function ReadOnlyKanban({
387
389
  "data-kanban-board": "",
388
390
  className: boardClassName,
389
391
  children: /* @__PURE__ */ jsx4("div", {
390
- className: gridClassName,
392
+ className: readOnlyGridClassName,
391
393
  children: columns.map((column, columnIndex) => {
392
394
  const list = cards[columnIndex];
393
395
  return /* @__PURE__ */ jsxs3("section", {
394
396
  "aria-label": column.label,
395
397
  "data-scroll": "none",
396
- className: columnClassName,
398
+ className: readOnlyColumnClassName,
397
399
  children: [
398
400
  /* @__PURE__ */ jsx4(ColumnHeader, {
399
401
  label: column.label,
@@ -16,6 +16,7 @@ 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 without a panel.
19
20
  */
20
21
  onItemsChange?: (items: T[]) => void;
21
22
  renderItem?: (item: T) => ReactNode;
@@ -7,7 +7,7 @@ import {
7
7
  DragSource2,
8
8
  DropTarget2,
9
9
  Kanban2
10
- } from "../../chunk-w474hday.js";
10
+ } from "../../chunk-42tcze5n.js";
11
11
  import"../../chunk-en44w1pn.js";
12
12
  import"../../chunk-cgj3ade2.js";
13
13
  import"../../chunk-7ny0vyek.js";
@@ -100,7 +100,7 @@ import {
100
100
  TabsList2,
101
101
  TabsTrigger2,
102
102
  TabsContent2
103
- } from "../../chunk-w474hday.js";
103
+ } from "../../chunk-42tcze5n.js";
104
104
  import"../../chunk-4e96tpw0.js";
105
105
  import {
106
106
  Checkbox2
package/dist/index.js CHANGED
@@ -225,7 +225,7 @@ import {
225
225
  useDropTarget2,
226
226
  DropTarget2,
227
227
  Kanban2
228
- } from "./chunk-w474hday.js";
228
+ } from "./chunk-42tcze5n.js";
229
229
  import {
230
230
  NumberField2,
231
231
  NumberFieldGroup2,
package/dist/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.207",
2054
+ version: "0.0.208",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -65,6 +65,14 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
65
65
  }
66
66
  ```
67
67
 
68
+ ### ReadOnlyWide
69
+
70
+ ```tsx
71
+ {
72
+ render: () => <ReadOnlyExample width={1000}/>
73
+ }
74
+ ```
75
+
68
76
  ### Wide
69
77
 
70
78
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.207",
3
+ "version": "0.0.208",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {