@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.
- package/dist/{chunk-w474hday.js → chunk-42tcze5n.js} +4 -2
- package/dist/components/Kanban.d.ts +1 -0
- package/dist/components/gantt/index.js +1 -1
- package/dist/components/json-render/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/prototype.js +1 -1
- package/llms/components/planning/Kanban.md +8 -0
- package/package.json +1 -1
|
@@ -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:
|
|
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:
|
|
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;
|
package/dist/index.js
CHANGED
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.208",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|