@alexgorbatchev/shadcn 0.0.38 → 0.0.42

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 (39) hide show
  1. package/README.md +35 -1
  2. package/THIRD_PARTY_NOTICES.md +4 -0
  3. package/dist/{chunk-6grcm62s.js → chunk-1hj251b8.js} +1 -1
  4. package/dist/{chunk-f71469fs.js → chunk-4stkzcvt.js} +550 -433
  5. package/dist/{chunk-r9qrb6b6.js → chunk-5bw5h08v.js} +1 -1
  6. package/dist/{chunk-kmvvw1vr.js → chunk-sb00e3gj.js} +1 -1
  7. package/dist/components/DataViewer.d.ts +16 -0
  8. package/dist/components/data-grid/index.js +2 -2
  9. package/dist/components/gantt/index.js +2 -2
  10. package/dist/components/json-render/index.js +3 -3
  11. package/dist/components/virtual-data-grid/index.js +2 -2
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.js +7 -3
  14. package/dist/prototype.js +3665 -0
  15. package/licenses/commander-MIT.txt +22 -0
  16. package/llms/components/data-display/DataViewer.md +90 -0
  17. package/llms/components/forms/NativeSelect.md +8 -0
  18. package/llms/setup.md +35 -1
  19. package/llms.txt +1 -0
  20. package/package.json +9 -3
  21. package/templates/prototype/AGENTS.md +23 -0
  22. package/templates/prototype/gitignore +5 -0
  23. package/templates/prototype/index.html +12 -0
  24. package/templates/prototype/justfile +18 -0
  25. package/templates/prototype/src/components/ScenarioContent.tsx +41 -0
  26. package/templates/prototype/src/components/Workbench.tsx +132 -0
  27. package/templates/prototype/src/main.tsx +12 -0
  28. package/templates/prototype/src/prototypes/dashboard/components/Dashboard.tsx +80 -0
  29. package/templates/prototype/src/prototypes/dashboard/data.ts +5 -0
  30. package/templates/prototype/src/prototypes/dashboard/prototype.ts +9 -0
  31. package/templates/prototype/src/prototypes/projects/components/Projects.tsx +151 -0
  32. package/templates/prototype/src/prototypes/projects/data.ts +5 -0
  33. package/templates/prototype/src/prototypes/projects/prototype.ts +9 -0
  34. package/templates/prototype/src/prototypes/settings/components/Settings.tsx +72 -0
  35. package/templates/prototype/src/prototypes/settings/prototype.ts +9 -0
  36. package/templates/prototype/src/styles.css +7 -0
  37. package/templates/prototype/src/types.ts +9 -0
  38. package/templates/prototype/tsconfig.json +13 -0
  39. package/templates/prototype/vite.config.ts +8 -0
@@ -23,7 +23,7 @@ function NativeSelect2({
23
23
  dir,
24
24
  "data-slot": "native-select",
25
25
  "data-size": size,
26
- className: "h-control w-full min-w-0 appearance-none rounded-sm border border-input bg-secondary py-1 pe-8 ps-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive data-[size=sm]:h-control-sm data-[size=sm]:rounded-sm data-[size=sm]:py-0.5",
26
+ className: "h-control w-full min-w-0 appearance-none rounded-sm border border-input bg-secondary py-0 pe-8 ps-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive data-[size=sm]:h-control-sm data-[size=sm]:rounded-sm",
27
27
  ...props
28
28
  }),
29
29
  /* @__PURE__ */ jsx(ChevronDownIcon, {
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  NativeSelect2,
16
16
  NativeSelectOption2
17
- } from "./chunk-r9qrb6b6.js";
17
+ } from "./chunk-5bw5h08v.js";
18
18
  import {
19
19
  Input2
20
20
  } from "./chunk-59p19t57.js";
@@ -0,0 +1,16 @@
1
+ import { type ComponentProps, type ReactElement } from "react";
2
+ import type { IDensityProps } from "../density/types.js";
3
+ type DataViewerProps = Omit<ComponentProps<"section">, "children"> & IDensityProps & {
4
+ /** JSON-compatible data to present. */
5
+ value: unknown;
6
+ /** Accessible name of the view. */
7
+ label?: string;
8
+ /** Turns a property key into its visible label. Defaults to `formatDataLabel`. */
9
+ formatLabel?: (key: string) => string;
10
+ };
11
+ /** Turns keys such as `track_id`, `playlistIds`, or `original-path` into "Track ID", "Playlist IDs", or "Original path". */
12
+ declare function formatDataLabel(key: string): string;
13
+ /** Presents JSON-compatible data as labelled, nested lists that people can read without knowing JSON. */
14
+ declare function DataViewer({ value, label, formatLabel, density, className, ...props }: DataViewerProps): ReactElement;
15
+ export { DataViewer, formatDataLabel };
16
+ export type { DataViewerProps };
@@ -3,7 +3,7 @@ import {
3
3
  Button2
4
4
  } from "../../chunk-q7p28b89.js";
5
5
  import"../../chunk-zte6pw69.js";
6
- import"../../chunk-r9qrb6b6.js";
6
+ import"../../chunk-5bw5h08v.js";
7
7
  import"../../chunk-59p19t57.js";
8
8
  import {
9
9
  dataGridFeatures2,
@@ -13,7 +13,7 @@ import {
13
13
  DataGridColumnHeader2,
14
14
  DataGridFilter2,
15
15
  DataGridPagination2
16
- } from "../../chunk-kmvvw1vr.js";
16
+ } from "../../chunk-sb00e3gj.js";
17
17
  import {
18
18
  Checkbox2
19
19
  } from "../../chunk-tnnf8ydf.js";
@@ -7,7 +7,7 @@ import {
7
7
  DragSource2,
8
8
  DropTarget2,
9
9
  Kanban2
10
- } from "../../chunk-6grcm62s.js";
10
+ } from "../../chunk-1hj251b8.js";
11
11
  import"../../chunk-cp2m7y7v.js";
12
12
  import"../../chunk-wjx6zf94.js";
13
13
  import {
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  NativeSelect2,
18
18
  NativeSelectOption2
19
- } from "../../chunk-r9qrb6b6.js";
19
+ } from "../../chunk-5bw5h08v.js";
20
20
  import {
21
21
  Table2,
22
22
  TableHeader2,
@@ -27,7 +27,7 @@ import {
27
27
  DrawerHeader2,
28
28
  DrawerTitle2,
29
29
  DrawerDescription2
30
- } from "../../chunk-f71469fs.js";
30
+ } from "../../chunk-4stkzcvt.js";
31
31
  import"../../chunk-e6hk39ev.js";
32
32
  import"../../chunk-j89xg1ak.js";
33
33
  import"../../chunk-aa7m22zj.js";
@@ -98,7 +98,7 @@ import {
98
98
  Tabs2,
99
99
  TabsList2,
100
100
  TabsTrigger2
101
- } from "../../chunk-6grcm62s.js";
101
+ } from "../../chunk-1hj251b8.js";
102
102
  import {
103
103
  Badge2
104
104
  } from "../../chunk-wjx6zf94.js";
@@ -143,7 +143,7 @@ import {
143
143
  TableCell2,
144
144
  TableCaption2
145
145
  } from "../../chunk-zte6pw69.js";
146
- import"../../chunk-r9qrb6b6.js";
146
+ import"../../chunk-5bw5h08v.js";
147
147
  import"../../chunk-vyve5wf3.js";
148
148
  import"../../chunk-hh43wg05.js";
149
149
  import"../../chunk-8vfh3ez0.js";
@@ -3,14 +3,14 @@ import {
3
3
  TableRow2
4
4
  } from "../../chunk-zte6pw69.js";
5
5
  import"../../chunk-q7p28b89.js";
6
- import"../../chunk-r9qrb6b6.js";
6
+ import"../../chunk-5bw5h08v.js";
7
7
  import"../../chunk-59p19t57.js";
8
8
  import {
9
9
  getDataGridColumnSizeVariables,
10
10
  DataGridHeaderRows,
11
11
  DataGridCells2,
12
12
  DataGridColumns
13
- } from "../../chunk-kmvvw1vr.js";
13
+ } from "../../chunk-sb00e3gj.js";
14
14
  import {
15
15
  VirtualTable2
16
16
  } from "../../chunk-efs4bk5b.js";
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ export { useDropTarget } from "./hooks/useDropTarget.js";
29
29
  export type { IDragDropItem, IDragSourceOptions, IDragSource, IDropTargetOptions, IDropTarget, } from "./drag-drop/types.js";
30
30
  export { EmptyState } from "./components/EmptyState.js";
31
31
  export { PageMessage } from "./components/PageMessage.js";
32
+ export { DataViewer, formatDataLabel } from "./components/DataViewer.js";
33
+ export type { DataViewerProps } from "./components/DataViewer.js";
32
34
  export { JsonViewer } from "./components/JsonViewer.js";
33
35
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from "./components/AlertDialog.js";
34
36
  export { Checkbox } from "./components/Checkbox.js";
package/dist/index.js CHANGED
@@ -6,6 +6,8 @@ import {
6
6
  AccordionContent2,
7
7
  EmptyState3,
8
8
  PageMessage2,
9
+ formatDataLabel2,
10
+ DataViewer2,
9
11
  JsonViewer2,
10
12
  AlertDialog2,
11
13
  AlertDialogTrigger2,
@@ -176,7 +178,7 @@ import {
176
178
  StatusTracker2,
177
179
  DashboardLayout2,
178
180
  BillingUsage2
179
- } from "./chunk-f71469fs.js";
181
+ } from "./chunk-4stkzcvt.js";
180
182
  import {
181
183
  Tabs2,
182
184
  tabsListVariants2,
@@ -191,7 +193,7 @@ import {
191
193
  useDropTarget2,
192
194
  DropTarget2,
193
195
  Kanban2
194
- } from "./chunk-6grcm62s.js";
196
+ } from "./chunk-1hj251b8.js";
195
197
  import {
196
198
  Toolbar2,
197
199
  ToolbarButton2,
@@ -231,7 +233,7 @@ import {
231
233
  NativeSelect2,
232
234
  NativeSelectOption2,
233
235
  NativeSelectOptGroup2
234
- } from "./chunk-r9qrb6b6.js";
236
+ } from "./chunk-5bw5h08v.js";
235
237
  import {
236
238
  Slider2
237
239
  } from "./chunk-644cnngf.js";
@@ -558,6 +560,7 @@ export {
558
560
  ContextMenuSubTrigger2 as ContextMenuSubTrigger,
559
561
  ContextMenuTrigger2 as ContextMenuTrigger,
560
562
  DashboardLayout2 as DashboardLayout,
563
+ DataViewer2 as DataViewer,
561
564
  DensityProvider2 as DensityProvider,
562
565
  Dialog2 as Dialog,
563
566
  DialogClose2 as DialogClose,
@@ -822,6 +825,7 @@ export {
822
825
  cn2 as cn,
823
826
  collectLayoutViolations2 as collectLayoutViolations,
824
827
  createToastManager2 as createToastManager,
828
+ formatDataLabel2 as formatDataLabel,
825
829
  markerVariants2 as markerVariants,
826
830
  navigationMenuTriggerStyle2 as navigationMenuTriggerStyle,
827
831
  tabsListVariants2 as tabsListVariants,