@sth87/shadcn-design-system 0.2.2 → 0.2.4
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/AI_README.md +131 -131
- package/README.md +547 -547
- package/dist/AI_CONTEXT.md +2506 -2506
- package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/cjs/components/DatePicker/RangePicker.cjs +1 -1
- package/dist/cjs/components/DatePicker/TimePicker.cjs +1 -1
- package/dist/cjs/components/Table/TableFilter/data-table-date-filter.cjs +1 -1
- package/dist/cjs/components/Table/TableFilter/data-table-filter-popover.cjs +1 -1
- package/dist/cjs/components/Table/TableFilter/data-table-slider-filter.cjs +1 -1
- package/dist/cjs/components/Table/data-table-pagination.cjs +1 -1
- package/dist/cjs/components/Table/data-table-toolbar.cjs +1 -1
- package/dist/cjs/components/Table/data-table-view-options.cjs +1 -1
- package/dist/cjs/components/Table/data-table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@dnd-kit_core@6.3.1_react-dom@19.1.1_react@19.1.1__react@19.1.1 → @dnd-kit_core@6.3.1_react-d_4aa55f773ec51751575225d6fce068db}/node_modules/@dnd-kit/core/dist/core.esm.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@d_3f5c0d7c14b28ec4620c9987407d5443/node_modules/@dnd-kit/sortable/dist/sortable.esm.cjs +1 -0
- package/dist/cjs/packages/ui/src/components/table.cjs +1 -1
- package/dist/cjs/styles/index.css +1 -1
- package/dist/cjs/utils/data-table.cjs +1 -1
- package/dist/cjs/utils/parsers.cjs +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +6 -6
- package/dist/esm/components/DatePicker/DatePicker.js +13 -13
- package/dist/esm/components/DatePicker/RangePicker.js +14 -14
- package/dist/esm/components/DatePicker/TimePicker.js +30 -30
- package/dist/esm/components/Table/TableFilter/data-table-date-filter.js +2 -2
- package/dist/esm/components/Table/TableFilter/data-table-filter-popover.js +12 -12
- package/dist/esm/components/Table/TableFilter/data-table-slider-filter.js +11 -11
- package/dist/esm/components/Table/data-table-pagination.js +36 -27
- package/dist/esm/components/Table/data-table-toolbar.js +1 -1
- package/dist/esm/components/Table/data-table-view-options.js +5 -5
- package/dist/esm/components/Table/data-table.js +147 -81
- package/dist/esm/index.js +248 -248
- package/dist/esm/node_modules/.pnpm/{@dnd-kit_core@6.3.1_react-dom@19.1.1_react@19.1.1__react@19.1.1 → @dnd-kit_core@6.3.1_react-d_4aa55f773ec51751575225d6fce068db}/node_modules/@dnd-kit/core/dist/core.esm.js +2 -2
- package/dist/esm/node_modules/.pnpm/{@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.1_react@19.1.1__react@19.1.1__react@19.1.1 → @dnd-kit_sortable@10.0.0_@d_3f5c0d7c14b28ec4620c9987407d5443}/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +2 -2
- package/dist/esm/packages/ui/src/components/table.js +20 -6
- package/dist/esm/styles/index.css +1 -1
- package/dist/esm/utils/data-table.js +16 -11
- package/dist/esm/utils/parsers.js +1 -1
- package/dist/types/components/Table/data-table-pagination.d.ts +10 -1
- package/dist/types/components/Table/data-table-pagination.d.ts.map +1 -1
- package/dist/types/components/Table/data-table.d.ts +45 -2
- package/dist/types/components/Table/data-table.d.ts.map +1 -1
- package/dist/types/utils/data-table.d.ts.map +1 -1
- package/package.json +321 -321
- package/dist/cjs/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.1_react@19.1.1__react@19.1.1__react@19.1.1/node_modules/@dnd-kit/sortable/dist/sortable.esm.cjs +0 -1
- /package/dist/cjs/node_modules/.pnpm/{@dnd-kit_accessibility@3.1.1_react@19.1.1 → @dnd-kit_accessibility@3.1.1_react@19.2.1}/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{@dnd-kit_utilities@3.2.2_react@19.1.1 → @dnd-kit_utilities@3.2.2_react@19.2.1}/node_modules/@dnd-kit/utilities/dist/utilities.esm.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{nuqs@2.8.0_next@15.5.9_react-dom@19.1.1_react@19.1.1__react@19.1.1__react@19.1.1 → nuqs@2.8.4_next@15.5.23_rea_b8bebf39e603255296dd521522e101e2}/node_modules/nuqs/dist/server.cjs +0 -0
- /package/dist/esm/node_modules/.pnpm/{@dnd-kit_accessibility@3.1.1_react@19.1.1 → @dnd-kit_accessibility@3.1.1_react@19.2.1}/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{@dnd-kit_utilities@3.2.2_react@19.1.1 → @dnd-kit_utilities@3.2.2_react@19.2.1}/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{nuqs@2.8.0_next@15.5.9_react-dom@19.1.1_react@19.1.1__react@19.1.1__react@19.1.1 → nuqs@2.8.4_next@15.5.23_rea_b8bebf39e603255296dd521522e101e2}/node_modules/nuqs/dist/server.js +0 -0
package/AI_README.md
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
# AI Agent Guide for @sth87/shadcn-design-system
|
|
2
|
-
|
|
3
|
-
## Import Policy
|
|
4
|
-
|
|
5
|
-
AI agents and IDE assistants must generate subpath imports for all new code. Root imports from `@sth87/shadcn-design-system` are legacy/backward-compatible only.
|
|
6
|
-
|
|
7
|
-
```tsx
|
|
8
|
-
// Preferred
|
|
9
|
-
import Button from "@sth87/shadcn-design-system/button";
|
|
10
|
-
import Dialog from "@sth87/shadcn-design-system/dialog";
|
|
11
|
-
import { DataTable } from "@sth87/shadcn-design-system/table";
|
|
12
|
-
import { Toaster, toast } from "@sth87/shadcn-design-system/toast";
|
|
13
|
-
|
|
14
|
-
// Legacy only
|
|
15
|
-
import { Button, Dialog, DataTable, Toaster } from "@sth87/shadcn-design-system";
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Configuration
|
|
19
|
-
|
|
20
|
-
### Tailwind
|
|
21
|
-
|
|
22
|
-
```css
|
|
23
|
-
@source "../../node_modules/@sth87/shadcn-design-system/dist";
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
content: [
|
|
28
|
-
"./src/**/*.{ts,tsx}",
|
|
29
|
-
"./node_modules/@sth87/shadcn-design-system/dist/**/*.{js,mjs}"
|
|
30
|
-
]
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Global CSS
|
|
34
|
-
|
|
35
|
-
```tsx
|
|
36
|
-
import "@sth87/shadcn-design-system/theme.css";
|
|
37
|
-
import "@sth87/shadcn-design-system/index.css";
|
|
38
|
-
import "@sth87/shadcn-design-system/animation.css";
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Component Imports
|
|
42
|
-
|
|
43
|
-
| Subpath | Public exports | Canonical import |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| `accordion` | Accordion | `import Accordion from "@sth87/shadcn-design-system/accordion";` |
|
|
46
|
-
| `avatar` | Avatar | `import { Avatar } from "@sth87/shadcn-design-system/avatar";` |
|
|
47
|
-
| `badge` | Badge | `import Badge from "@sth87/shadcn-design-system/badge";` |
|
|
48
|
-
| `breadcrumb` | Breadcrumb | `import Breadcrumb from "@sth87/shadcn-design-system/breadcrumb";` |
|
|
49
|
-
| `button` | Button, ButtonGroup | `import Button, { ButtonGroup } from "@sth87/shadcn-design-system/button";` |
|
|
50
|
-
| `calendar` | Calendar, CalendarDayButton | `import { Calendar, CalendarDayButton } from "@sth87/shadcn-design-system/calendar";` |
|
|
51
|
-
| `carousel` | Carousel, CarouselSlide | `import { Carousel, CarouselSlide } from "@sth87/shadcn-design-system/carousel";` |
|
|
52
|
-
| `checkbox` | Checkbox | `import Checkbox from "@sth87/shadcn-design-system/checkbox";` |
|
|
53
|
-
| `collapsible` | Collapsible | `import Collapsible from "@sth87/shadcn-design-system/collapsible";` |
|
|
54
|
-
| `command` | Command | `import { Command } from "@sth87/shadcn-design-system/command";` |
|
|
55
|
-
| `contextmenu` | ContextMenu | `import { ContextMenu } from "@sth87/shadcn-design-system/contextmenu";` |
|
|
56
|
-
| `cropper` | Cropper, CropperTool, useCropper, useCropperTool | `import { Cropper, CropperTool, useCropper } from "@sth87/shadcn-design-system/cropper";` |
|
|
57
|
-
| `datepicker` | DatePicker, RangePicker, TimePicker | `import { DatePicker, RangePicker, TimePicker } from "@sth87/shadcn-design-system/datepicker";` |
|
|
58
|
-
| `dialog` | Dialog | `import Dialog from "@sth87/shadcn-design-system/dialog";` |
|
|
59
|
-
| `dropdownmenu` | DropdownMenu | `import { DropdownMenu } from "@sth87/shadcn-design-system/dropdownmenu";` |
|
|
60
|
-
| `floatlabel` | FloatingLabel | `import { FloatingLabel } from "@sth87/shadcn-design-system/floatlabel";` |
|
|
61
|
-
| `glass` | Glass | `import Glass from "@sth87/shadcn-design-system/glass";` |
|
|
62
|
-
| `imageviewer` | ImageViewer, ImageViewerImage, ImageViewerGroup | `import ImageViewer, { ImageViewerImage, ImageViewerGroup } from "@sth87/shadcn-design-system/imageviewer";` |
|
|
63
|
-
| `input` | Input | `import Input from "@sth87/shadcn-design-system/input";` |
|
|
64
|
-
| `inputotp` | InputOTP | `import InputOTP from "@sth87/shadcn-design-system/inputotp";` |
|
|
65
|
-
| `interactive` | Cursor, CursorFollow, CursorProvider | `import { Cursor, CursorFollow, CursorProvider } from "@sth87/shadcn-design-system/interactive";` |
|
|
66
|
-
| `label` | Label | `import { Label } from "@sth87/shadcn-design-system/label";` |
|
|
67
|
-
| `marquee` | Marquee | `import { Marquee } from "@sth87/shadcn-design-system/marquee";` |
|
|
68
|
-
| `masonry` | Masonry, MasonryComponent, MasonryRoot | `import { Masonry, MasonryComponent, MasonryRoot } from "@sth87/shadcn-design-system/masonry";` |
|
|
69
|
-
| `pagination` | Pagination | `import { Pagination } from "@sth87/shadcn-design-system/pagination";` |
|
|
70
|
-
| `popover` | Popover | `import Popover from "@sth87/shadcn-design-system/popover";` |
|
|
71
|
-
| `qrcode` | QRCode, QrCode, useQRCode | `import { QRCode, QrCode, useQRCode } from "@sth87/shadcn-design-system/qrcode";` |
|
|
72
|
-
| `radio` | Radio | `import Radio from "@sth87/shadcn-design-system/radio";` |
|
|
73
|
-
| `rate` | Rate | `import Rate from "@sth87/shadcn-design-system/rate";` |
|
|
74
|
-
| `resizable` | Resizable, ResizablePanelGroup, ResizablePanel | `import Resizable, { ResizablePanelGroup, ResizablePanel } from "@sth87/shadcn-design-system/resizable";` |
|
|
75
|
-
| `scrollarea` | ScrollArea | `import ScrollArea from "@sth87/shadcn-design-system/scrollarea";` |
|
|
76
|
-
| `select` | Select | `import Select from "@sth87/shadcn-design-system/select";` |
|
|
77
|
-
| `separator` | Separator | `import Separator from "@sth87/shadcn-design-system/separator";` |
|
|
78
|
-
| `sheet` | Sheet | `import Sheet from "@sth87/shadcn-design-system/sheet";` |
|
|
79
|
-
| `sidebar` | Sidebar, SidebarProvider, useSidebar | `import Sidebar, { SidebarProvider, useSidebar } from "@sth87/shadcn-design-system/sidebar";` |
|
|
80
|
-
| `skeleton` | Skeleton | `import Skeleton from "@sth87/shadcn-design-system/skeleton";` |
|
|
81
|
-
| `slider` | Slider | `import Slider from "@sth87/shadcn-design-system/slider";` |
|
|
82
|
-
| `stepper` | Stepper, useStepper | `import { Stepper, useStepper } from "@sth87/shadcn-design-system/stepper";` |
|
|
83
|
-
| `switch` | Switch | `import Switch from "@sth87/shadcn-design-system/switch";` |
|
|
84
|
-
| `table` | DataTable, DataTableColumnHeader, DataTablePagination | `import { DataTable, DataTableColumnHeader, DataTablePagination } from "@sth87/shadcn-design-system/table";` |
|
|
85
|
-
| `tabs` | Tabs | `import Tabs from "@sth87/shadcn-design-system/tabs";` |
|
|
86
|
-
| `textarea` | Textarea | `import Textarea from "@sth87/shadcn-design-system/textarea";` |
|
|
87
|
-
| `timegridview` | TimeGridView | `import { TimeGridView } from "@sth87/shadcn-design-system/timegridview";` |
|
|
88
|
-
| `toast` | Toaster, toast, Toast | `import { Toaster, toast, Toast } from "@sth87/shadcn-design-system/toast";` |
|
|
89
|
-
| `toggle` | Toggle | `import Toggle from "@sth87/shadcn-design-system/toggle";` |
|
|
90
|
-
| `tooltip` | Tooltip | `import { Tooltip } from "@sth87/shadcn-design-system/tooltip";` |
|
|
91
|
-
| `tour` | Tour | `import { Tour } from "@sth87/shadcn-design-system/tour";` |
|
|
92
|
-
| `treeselect` | TreeSelect, TreeView | `import { TreeSelect, TreeView } from "@sth87/shadcn-design-system/treeselect";` |
|
|
93
|
-
| `upload` | Upload | `import { Upload } from "@sth87/shadcn-design-system/upload";` |
|
|
94
|
-
| `wheelcolumn` | WheelColumn | `import { WheelColumn } from "@sth87/shadcn-design-system/wheelcolumn";` |
|
|
95
|
-
|
|
96
|
-
## Text Animation
|
|
97
|
-
|
|
98
|
-
```tsx
|
|
99
|
-
import { BlurText, RotatingText, CircularText, FlipWords, GradientText, RollingText, ShimmeringText, SplittingText, TextGenerateEffect, TextHoverEffect, TextPressure, TypingText, WritingText } from "@sth87/shadcn-design-system/textanimation";
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Hooks
|
|
103
|
-
|
|
104
|
-
| Hook | Canonical import |
|
|
105
|
-
|---|---|
|
|
106
|
-
| `useCallbackRef` | `import { useCallbackRef } from "@sth87/shadcn-design-system/use-callback-ref";` |
|
|
107
|
-
| `useDebouncedCallback` | `import { useDebouncedCallback } from "@sth87/shadcn-design-system/use-debounced-callback";` |
|
|
108
|
-
| `useDebounceValue` | `import { useDebounceValue } from "@sth87/shadcn-design-system/use-debounced-value";` |
|
|
109
|
-
| `useEventListener` | `import { useEventListener } from "@sth87/shadcn-design-system/use-event-listener";` |
|
|
110
|
-
| `useIntersectionObserver` | `import { useIntersectionObserver } from "@sth87/shadcn-design-system/use-intersection-observer";` |
|
|
111
|
-
| `useIsomorphicLayoutEffect` | `import { useIsomorphicLayoutEffect } from "@sth87/shadcn-design-system/use-isomorphic-layout-effect";` |
|
|
112
|
-
| `useMediaQuery` | `import { useMediaQuery } from "@sth87/shadcn-design-system/use-media-query";` |
|
|
113
|
-
| `useMousePosition` | `import { useMousePosition } from "@sth87/shadcn-design-system/use-mouse-position";` |
|
|
114
|
-
| `useOnClickOutside` | `import { useOnClickOutside } from "@sth87/shadcn-design-system/use-on-click-outside";` |
|
|
115
|
-
| `useScript` | `import { useScript } from "@sth87/shadcn-design-system/use-script";` |
|
|
116
|
-
| `useScrollLock` | `import { useScrollLock } from "@sth87/shadcn-design-system/use-scroll-lock";` |
|
|
117
|
-
| `useDataTable` | `import { useDataTable } from "@sth87/shadcn-design-system/use-data-table";` |
|
|
118
|
-
|
|
119
|
-
## Utilities
|
|
120
|
-
|
|
121
|
-
```tsx
|
|
122
|
-
import { cn } from "@sth87/shadcn-design-system/utils";
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
## AI Generation Rules
|
|
126
|
-
|
|
127
|
-
1. Never generate new component imports from the root package.
|
|
128
|
-
2. Use default imports only for subpaths marked default in the table.
|
|
129
|
-
3. Use named imports for compound modules like `table`, `toast`, `datepicker`, `qrcode`, `stepper`, and `tour`.
|
|
130
|
-
4. Keep CSS imports as package CSS subpaths.
|
|
131
|
-
5. Check generated `AI_CONTEXT.md` for props and examples when available.
|
|
1
|
+
# AI Agent Guide for @sth87/shadcn-design-system
|
|
2
|
+
|
|
3
|
+
## Import Policy
|
|
4
|
+
|
|
5
|
+
AI agents and IDE assistants must generate subpath imports for all new code. Root imports from `@sth87/shadcn-design-system` are legacy/backward-compatible only.
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
// Preferred
|
|
9
|
+
import Button from "@sth87/shadcn-design-system/button";
|
|
10
|
+
import Dialog from "@sth87/shadcn-design-system/dialog";
|
|
11
|
+
import { DataTable } from "@sth87/shadcn-design-system/table";
|
|
12
|
+
import { Toaster, toast } from "@sth87/shadcn-design-system/toast";
|
|
13
|
+
|
|
14
|
+
// Legacy only
|
|
15
|
+
import { Button, Dialog, DataTable, Toaster } from "@sth87/shadcn-design-system";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Configuration
|
|
19
|
+
|
|
20
|
+
### Tailwind
|
|
21
|
+
|
|
22
|
+
```css
|
|
23
|
+
@source "../../node_modules/@sth87/shadcn-design-system/dist";
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
content: [
|
|
28
|
+
"./src/**/*.{ts,tsx}",
|
|
29
|
+
"./node_modules/@sth87/shadcn-design-system/dist/**/*.{js,mjs}"
|
|
30
|
+
]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Global CSS
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import "@sth87/shadcn-design-system/theme.css";
|
|
37
|
+
import "@sth87/shadcn-design-system/index.css";
|
|
38
|
+
import "@sth87/shadcn-design-system/animation.css";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Component Imports
|
|
42
|
+
|
|
43
|
+
| Subpath | Public exports | Canonical import |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `accordion` | Accordion | `import Accordion from "@sth87/shadcn-design-system/accordion";` |
|
|
46
|
+
| `avatar` | Avatar | `import { Avatar } from "@sth87/shadcn-design-system/avatar";` |
|
|
47
|
+
| `badge` | Badge | `import Badge from "@sth87/shadcn-design-system/badge";` |
|
|
48
|
+
| `breadcrumb` | Breadcrumb | `import Breadcrumb from "@sth87/shadcn-design-system/breadcrumb";` |
|
|
49
|
+
| `button` | Button, ButtonGroup | `import Button, { ButtonGroup } from "@sth87/shadcn-design-system/button";` |
|
|
50
|
+
| `calendar` | Calendar, CalendarDayButton | `import { Calendar, CalendarDayButton } from "@sth87/shadcn-design-system/calendar";` |
|
|
51
|
+
| `carousel` | Carousel, CarouselSlide | `import { Carousel, CarouselSlide } from "@sth87/shadcn-design-system/carousel";` |
|
|
52
|
+
| `checkbox` | Checkbox | `import Checkbox from "@sth87/shadcn-design-system/checkbox";` |
|
|
53
|
+
| `collapsible` | Collapsible | `import Collapsible from "@sth87/shadcn-design-system/collapsible";` |
|
|
54
|
+
| `command` | Command | `import { Command } from "@sth87/shadcn-design-system/command";` |
|
|
55
|
+
| `contextmenu` | ContextMenu | `import { ContextMenu } from "@sth87/shadcn-design-system/contextmenu";` |
|
|
56
|
+
| `cropper` | Cropper, CropperTool, useCropper, useCropperTool | `import { Cropper, CropperTool, useCropper } from "@sth87/shadcn-design-system/cropper";` |
|
|
57
|
+
| `datepicker` | DatePicker, RangePicker, TimePicker | `import { DatePicker, RangePicker, TimePicker } from "@sth87/shadcn-design-system/datepicker";` |
|
|
58
|
+
| `dialog` | Dialog | `import Dialog from "@sth87/shadcn-design-system/dialog";` |
|
|
59
|
+
| `dropdownmenu` | DropdownMenu | `import { DropdownMenu } from "@sth87/shadcn-design-system/dropdownmenu";` |
|
|
60
|
+
| `floatlabel` | FloatingLabel | `import { FloatingLabel } from "@sth87/shadcn-design-system/floatlabel";` |
|
|
61
|
+
| `glass` | Glass | `import Glass from "@sth87/shadcn-design-system/glass";` |
|
|
62
|
+
| `imageviewer` | ImageViewer, ImageViewerImage, ImageViewerGroup | `import ImageViewer, { ImageViewerImage, ImageViewerGroup } from "@sth87/shadcn-design-system/imageviewer";` |
|
|
63
|
+
| `input` | Input | `import Input from "@sth87/shadcn-design-system/input";` |
|
|
64
|
+
| `inputotp` | InputOTP | `import InputOTP from "@sth87/shadcn-design-system/inputotp";` |
|
|
65
|
+
| `interactive` | Cursor, CursorFollow, CursorProvider | `import { Cursor, CursorFollow, CursorProvider } from "@sth87/shadcn-design-system/interactive";` |
|
|
66
|
+
| `label` | Label | `import { Label } from "@sth87/shadcn-design-system/label";` |
|
|
67
|
+
| `marquee` | Marquee | `import { Marquee } from "@sth87/shadcn-design-system/marquee";` |
|
|
68
|
+
| `masonry` | Masonry, MasonryComponent, MasonryRoot | `import { Masonry, MasonryComponent, MasonryRoot } from "@sth87/shadcn-design-system/masonry";` |
|
|
69
|
+
| `pagination` | Pagination | `import { Pagination } from "@sth87/shadcn-design-system/pagination";` |
|
|
70
|
+
| `popover` | Popover | `import Popover from "@sth87/shadcn-design-system/popover";` |
|
|
71
|
+
| `qrcode` | QRCode, QrCode, useQRCode | `import { QRCode, QrCode, useQRCode } from "@sth87/shadcn-design-system/qrcode";` |
|
|
72
|
+
| `radio` | Radio | `import Radio from "@sth87/shadcn-design-system/radio";` |
|
|
73
|
+
| `rate` | Rate | `import Rate from "@sth87/shadcn-design-system/rate";` |
|
|
74
|
+
| `resizable` | Resizable, ResizablePanelGroup, ResizablePanel | `import Resizable, { ResizablePanelGroup, ResizablePanel } from "@sth87/shadcn-design-system/resizable";` |
|
|
75
|
+
| `scrollarea` | ScrollArea | `import ScrollArea from "@sth87/shadcn-design-system/scrollarea";` |
|
|
76
|
+
| `select` | Select | `import Select from "@sth87/shadcn-design-system/select";` |
|
|
77
|
+
| `separator` | Separator | `import Separator from "@sth87/shadcn-design-system/separator";` |
|
|
78
|
+
| `sheet` | Sheet | `import Sheet from "@sth87/shadcn-design-system/sheet";` |
|
|
79
|
+
| `sidebar` | Sidebar, SidebarProvider, useSidebar | `import Sidebar, { SidebarProvider, useSidebar } from "@sth87/shadcn-design-system/sidebar";` |
|
|
80
|
+
| `skeleton` | Skeleton | `import Skeleton from "@sth87/shadcn-design-system/skeleton";` |
|
|
81
|
+
| `slider` | Slider | `import Slider from "@sth87/shadcn-design-system/slider";` |
|
|
82
|
+
| `stepper` | Stepper, useStepper | `import { Stepper, useStepper } from "@sth87/shadcn-design-system/stepper";` |
|
|
83
|
+
| `switch` | Switch | `import Switch from "@sth87/shadcn-design-system/switch";` |
|
|
84
|
+
| `table` | DataTable, DataTableColumnHeader, DataTablePagination | `import { DataTable, DataTableColumnHeader, DataTablePagination } from "@sth87/shadcn-design-system/table";` |
|
|
85
|
+
| `tabs` | Tabs | `import Tabs from "@sth87/shadcn-design-system/tabs";` |
|
|
86
|
+
| `textarea` | Textarea | `import Textarea from "@sth87/shadcn-design-system/textarea";` |
|
|
87
|
+
| `timegridview` | TimeGridView | `import { TimeGridView } from "@sth87/shadcn-design-system/timegridview";` |
|
|
88
|
+
| `toast` | Toaster, toast, Toast | `import { Toaster, toast, Toast } from "@sth87/shadcn-design-system/toast";` |
|
|
89
|
+
| `toggle` | Toggle | `import Toggle from "@sth87/shadcn-design-system/toggle";` |
|
|
90
|
+
| `tooltip` | Tooltip | `import { Tooltip } from "@sth87/shadcn-design-system/tooltip";` |
|
|
91
|
+
| `tour` | Tour | `import { Tour } from "@sth87/shadcn-design-system/tour";` |
|
|
92
|
+
| `treeselect` | TreeSelect, TreeView | `import { TreeSelect, TreeView } from "@sth87/shadcn-design-system/treeselect";` |
|
|
93
|
+
| `upload` | Upload | `import { Upload } from "@sth87/shadcn-design-system/upload";` |
|
|
94
|
+
| `wheelcolumn` | WheelColumn | `import { WheelColumn } from "@sth87/shadcn-design-system/wheelcolumn";` |
|
|
95
|
+
|
|
96
|
+
## Text Animation
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
import { BlurText, RotatingText, CircularText, FlipWords, GradientText, RollingText, ShimmeringText, SplittingText, TextGenerateEffect, TextHoverEffect, TextPressure, TypingText, WritingText } from "@sth87/shadcn-design-system/textanimation";
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Hooks
|
|
103
|
+
|
|
104
|
+
| Hook | Canonical import |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `useCallbackRef` | `import { useCallbackRef } from "@sth87/shadcn-design-system/use-callback-ref";` |
|
|
107
|
+
| `useDebouncedCallback` | `import { useDebouncedCallback } from "@sth87/shadcn-design-system/use-debounced-callback";` |
|
|
108
|
+
| `useDebounceValue` | `import { useDebounceValue } from "@sth87/shadcn-design-system/use-debounced-value";` |
|
|
109
|
+
| `useEventListener` | `import { useEventListener } from "@sth87/shadcn-design-system/use-event-listener";` |
|
|
110
|
+
| `useIntersectionObserver` | `import { useIntersectionObserver } from "@sth87/shadcn-design-system/use-intersection-observer";` |
|
|
111
|
+
| `useIsomorphicLayoutEffect` | `import { useIsomorphicLayoutEffect } from "@sth87/shadcn-design-system/use-isomorphic-layout-effect";` |
|
|
112
|
+
| `useMediaQuery` | `import { useMediaQuery } from "@sth87/shadcn-design-system/use-media-query";` |
|
|
113
|
+
| `useMousePosition` | `import { useMousePosition } from "@sth87/shadcn-design-system/use-mouse-position";` |
|
|
114
|
+
| `useOnClickOutside` | `import { useOnClickOutside } from "@sth87/shadcn-design-system/use-on-click-outside";` |
|
|
115
|
+
| `useScript` | `import { useScript } from "@sth87/shadcn-design-system/use-script";` |
|
|
116
|
+
| `useScrollLock` | `import { useScrollLock } from "@sth87/shadcn-design-system/use-scroll-lock";` |
|
|
117
|
+
| `useDataTable` | `import { useDataTable } from "@sth87/shadcn-design-system/use-data-table";` |
|
|
118
|
+
|
|
119
|
+
## Utilities
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import { cn } from "@sth87/shadcn-design-system/utils";
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## AI Generation Rules
|
|
126
|
+
|
|
127
|
+
1. Never generate new component imports from the root package.
|
|
128
|
+
2. Use default imports only for subpaths marked default in the table.
|
|
129
|
+
3. Use named imports for compound modules like `table`, `toast`, `datepicker`, `qrcode`, `stepper`, and `tour`.
|
|
130
|
+
4. Keep CSS imports as package CSS subpaths.
|
|
131
|
+
5. Check generated `AI_CONTEXT.md` for props and examples when available.
|