shadcn-data-views 1.0.1 → 1.0.2
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/README.md +13 -2
- package/dist/index.js +3384 -0
- package/dist/index.mjs +3384 -0
- package/package.json +3 -3
- package/dist/index.css +0 -3243
package/README.md
CHANGED
|
@@ -38,10 +38,21 @@ pnpm add shadcn-data-views
|
|
|
38
38
|
|
|
39
39
|
### Setup
|
|
40
40
|
|
|
41
|
-
The package
|
|
41
|
+
The package now injects its own styles automatically. You do NOT need to import a CSS file.
|
|
42
|
+
|
|
43
|
+
**Important**: This package uses `next-themes` for dark mode support. You **must** wrap your application (or the component) in a `ThemeProvider` to enable theme switching.
|
|
42
44
|
|
|
43
45
|
```tsx
|
|
44
|
-
|
|
46
|
+
// Example in a Next.js app (providers.tsx)
|
|
47
|
+
import { ThemeProvider } from 'next-themes';
|
|
48
|
+
|
|
49
|
+
export function Providers({ children }) {
|
|
50
|
+
return (
|
|
51
|
+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
52
|
+
{children}
|
|
53
|
+
</ThemeProvider>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
45
56
|
```
|
|
46
57
|
|
|
47
58
|
### Basic Example
|