munza-x-data-grid 1.3.8 → 1.3.9

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 (2) hide show
  1. package/README.md +31 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -106,6 +106,37 @@ Spread `handlers` directly onto `<Grid />`:
106
106
  <Grid state={state} {...handlers} columns={columns} payload={payload} />
107
107
  ```
108
108
 
109
+ ### Tailwind v4 Setup
110
+
111
+ If you're using Tailwind v4, add this to your `app.css` so Tailwind scans the grid's classes:
112
+
113
+ ```css
114
+ @source "../node_modules/munza-x-data-grid/**/*.{js,ts,jsx,tsx}";
115
+ @theme inline {
116
+ --color-background: var(--background);
117
+ --color-foreground: var(--foreground);
118
+ --color-border: var(--border);
119
+ --color-muted: var(--muted);
120
+ --color-accent: var(--accent);
121
+ }
122
+
123
+ :root {
124
+ --background: oklch(1 0 0);
125
+ --foreground: oklch(0.145 0 0);
126
+ --border: oklch(0.922 0 0);
127
+ --muted: oklch(0.97 0 0);
128
+ --accent: oklch(0.97 0 0);
129
+ }
130
+
131
+ .dark {
132
+ --background: oklch(0.145 0 0);
133
+ --foreground: oklch(0.985 0 0);
134
+ --border: oklch(1 0 0 / 10%);
135
+ --muted: oklch(0.269 0 0);
136
+ --accent: oklch(0.269 0 0);
137
+ }
138
+ ```
139
+
109
140
  ---
110
141
 
111
142
  ## Column Definitions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "munza-x-data-grid",
3
3
  "private": false,
4
- "version": "1.3.8",
4
+ "version": "1.3.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",