@itamarshdev/reactwind 0.1.1 → 1.0.0

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.
@@ -102,6 +102,17 @@ var VALUE_PROPS_MAP = {
102
102
  "min-w": "min-w",
103
103
  "min-h": "min-h",
104
104
  "max-h": "max-h",
105
+ "grid-cols": "grid-cols",
106
+ "col-span": "col-span",
107
+ "row-span": "row-span",
108
+ "grid-rows": "grid-rows",
109
+ "items": "items",
110
+ "justify": "justify",
111
+ "self": "self",
112
+ "place-content": "place-content",
113
+ "place-items": "place-items",
114
+ "place-self": "place-self",
115
+ "order": "order",
105
116
  overflow: "overflow",
106
117
  decoration: "decoration",
107
118
  whitespace: "whitespace",
@@ -109,6 +120,8 @@ var VALUE_PROPS_MAP = {
109
120
  content: "content",
110
121
  opacity: "opacity",
111
122
  "bg-opacity": "bg-opacity",
123
+ "text-opacity": "text-opacity",
124
+ "border-opacity": "border-opacity",
112
125
  ring: "ring",
113
126
  "ring-offset": "ring-offset",
114
127
  outline: "outline",
@@ -139,6 +152,49 @@ var VALUE_PROPS_MAP = {
139
152
  skew: "skew",
140
153
  origin: "origin"
141
154
  };
155
+ var MODIFIERS = [
156
+ "hover",
157
+ "focus",
158
+ "active",
159
+ "visited",
160
+ "disabled",
161
+ "group-hover",
162
+ "group-focus",
163
+ "focus-within",
164
+ "focus-visible",
165
+ "target",
166
+ "first",
167
+ "last",
168
+ "only",
169
+ "odd",
170
+ "even",
171
+ "first-of-type",
172
+ "last-of-type",
173
+ "only-of-type",
174
+ "empty",
175
+ "checked",
176
+ "indeterminate",
177
+ "default",
178
+ "required",
179
+ "valid",
180
+ "invalid",
181
+ "in-range",
182
+ "out-of-range",
183
+ "placeholder-shown",
184
+ "autofill",
185
+ "read-only",
186
+ "open",
187
+ // Responsive breakpoints
188
+ "sm",
189
+ "md",
190
+ "lg",
191
+ "xl",
192
+ "2xl",
193
+ // Dark mode
194
+ "dark",
195
+ // Print
196
+ "print"
197
+ ];
142
198
  var joinClassNames = (classNames) => {
143
199
  if (!classNames || classNames.length === 0) {
144
200
  return "";
@@ -152,7 +208,11 @@ var withClassNames = (props) => {
152
208
  const hasClassNames = "classNames" in props;
153
209
  const hasLayoutProps = LAYOUT_PROPS.some((k) => k in props);
154
210
  const hasValueProps = Object.keys(VALUE_PROPS_MAP).some((k) => k in props);
155
- if (!hasClassNames && !hasLayoutProps && !hasValueProps) {
211
+ const propsKeys = Object.keys(props);
212
+ const hasModifiers = propsKeys.some((key) => {
213
+ return MODIFIERS.some((mod) => key.startsWith(`${mod}-`));
214
+ });
215
+ if (!hasClassNames && !hasLayoutProps && !hasValueProps && !hasModifiers) {
156
216
  return props;
157
217
  }
158
218
  const { classNames, className, ...rest } = props;
@@ -170,12 +230,36 @@ var withClassNames = (props) => {
170
230
  if (typeof value === "string" || typeof value === "number") {
171
231
  generatedClasses.push(`${prefix}-${value}`);
172
232
  delete cleanRest[prop];
173
- } else if (value === true && (prop === "shadow" || prop === "rounded")) {
233
+ } else if (value === true && (prop === "shadow" || prop === "rounded" || prop === "border" || prop === "transition")) {
174
234
  generatedClasses.push(prop);
175
235
  delete cleanRest[prop];
176
236
  }
177
237
  }
178
238
  }
239
+ Object.keys(cleanRest).forEach((key) => {
240
+ const firstHyphenIndex = key.indexOf("-");
241
+ if (firstHyphenIndex === -1) return;
242
+ const modifier = key.substring(0, firstHyphenIndex);
243
+ if (MODIFIERS.includes(modifier)) {
244
+ const restKey = key.substring(firstHyphenIndex + 1);
245
+ const value = cleanRest[key];
246
+ if (restKey in VALUE_PROPS_MAP) {
247
+ const prefix = VALUE_PROPS_MAP[restKey];
248
+ if (typeof value === "string" || typeof value === "number") {
249
+ generatedClasses.push(`${modifier}:${prefix}-${value}`);
250
+ delete cleanRest[key];
251
+ } else if (value === true && (restKey === "shadow" || restKey === "rounded" || restKey === "border")) {
252
+ generatedClasses.push(`${modifier}:${restKey}`);
253
+ delete cleanRest[key];
254
+ }
255
+ } else if (LAYOUT_PROPS.includes(restKey)) {
256
+ if (value === true) {
257
+ generatedClasses.push(`${modifier}:${restKey}`);
258
+ delete cleanRest[key];
259
+ }
260
+ }
261
+ }
262
+ });
179
263
  const joined = joinClassNames(classNames || []);
180
264
  const merged = [className, ...generatedClasses, joined].filter(Boolean).join(" ");
181
265
  return {
@@ -1,4 +1,4 @@
1
- import './types-CvNsUSZP.cjs';
1
+ import './types-WLlcB_RW.cjs';
2
2
  import React from 'react';
3
3
  export { Fragment } from 'react/jsx-dev-runtime';
4
4
  export { JSX } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import './types-DDH_n69B.js';
1
+ import './types-Bdh-X84v.js';
2
2
  import React from 'react';
3
3
  export { Fragment } from 'react/jsx-dev-runtime';
4
4
  export { JSX } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withClassNames
3
- } from "./chunk-WXTVOZ4W.js";
3
+ } from "./chunk-M5PDERS6.js";
4
4
 
5
5
  // src/jsx-dev-runtime.ts
6
6
  import { Fragment, jsxDEV as reactJsxDEV } from "react/jsx-dev-runtime";
@@ -103,6 +103,17 @@ var VALUE_PROPS_MAP = {
103
103
  "min-w": "min-w",
104
104
  "min-h": "min-h",
105
105
  "max-h": "max-h",
106
+ "grid-cols": "grid-cols",
107
+ "col-span": "col-span",
108
+ "row-span": "row-span",
109
+ "grid-rows": "grid-rows",
110
+ "items": "items",
111
+ "justify": "justify",
112
+ "self": "self",
113
+ "place-content": "place-content",
114
+ "place-items": "place-items",
115
+ "place-self": "place-self",
116
+ "order": "order",
106
117
  overflow: "overflow",
107
118
  decoration: "decoration",
108
119
  whitespace: "whitespace",
@@ -110,6 +121,8 @@ var VALUE_PROPS_MAP = {
110
121
  content: "content",
111
122
  opacity: "opacity",
112
123
  "bg-opacity": "bg-opacity",
124
+ "text-opacity": "text-opacity",
125
+ "border-opacity": "border-opacity",
113
126
  ring: "ring",
114
127
  "ring-offset": "ring-offset",
115
128
  outline: "outline",
@@ -140,6 +153,49 @@ var VALUE_PROPS_MAP = {
140
153
  skew: "skew",
141
154
  origin: "origin"
142
155
  };
156
+ var MODIFIERS = [
157
+ "hover",
158
+ "focus",
159
+ "active",
160
+ "visited",
161
+ "disabled",
162
+ "group-hover",
163
+ "group-focus",
164
+ "focus-within",
165
+ "focus-visible",
166
+ "target",
167
+ "first",
168
+ "last",
169
+ "only",
170
+ "odd",
171
+ "even",
172
+ "first-of-type",
173
+ "last-of-type",
174
+ "only-of-type",
175
+ "empty",
176
+ "checked",
177
+ "indeterminate",
178
+ "default",
179
+ "required",
180
+ "valid",
181
+ "invalid",
182
+ "in-range",
183
+ "out-of-range",
184
+ "placeholder-shown",
185
+ "autofill",
186
+ "read-only",
187
+ "open",
188
+ // Responsive breakpoints
189
+ "sm",
190
+ "md",
191
+ "lg",
192
+ "xl",
193
+ "2xl",
194
+ // Dark mode
195
+ "dark",
196
+ // Print
197
+ "print"
198
+ ];
143
199
  var joinClassNames = (classNames) => {
144
200
  if (!classNames || classNames.length === 0) {
145
201
  return "";
@@ -153,7 +209,11 @@ var withClassNames = (props) => {
153
209
  const hasClassNames = "classNames" in props;
154
210
  const hasLayoutProps = LAYOUT_PROPS.some((k) => k in props);
155
211
  const hasValueProps = Object.keys(VALUE_PROPS_MAP).some((k) => k in props);
156
- if (!hasClassNames && !hasLayoutProps && !hasValueProps) {
212
+ const propsKeys = Object.keys(props);
213
+ const hasModifiers = propsKeys.some((key) => {
214
+ return MODIFIERS.some((mod) => key.startsWith(`${mod}-`));
215
+ });
216
+ if (!hasClassNames && !hasLayoutProps && !hasValueProps && !hasModifiers) {
157
217
  return props;
158
218
  }
159
219
  const { classNames, className, ...rest } = props;
@@ -171,12 +231,36 @@ var withClassNames = (props) => {
171
231
  if (typeof value === "string" || typeof value === "number") {
172
232
  generatedClasses.push(`${prefix}-${value}`);
173
233
  delete cleanRest[prop];
174
- } else if (value === true && (prop === "shadow" || prop === "rounded")) {
234
+ } else if (value === true && (prop === "shadow" || prop === "rounded" || prop === "border" || prop === "transition")) {
175
235
  generatedClasses.push(prop);
176
236
  delete cleanRest[prop];
177
237
  }
178
238
  }
179
239
  }
240
+ Object.keys(cleanRest).forEach((key) => {
241
+ const firstHyphenIndex = key.indexOf("-");
242
+ if (firstHyphenIndex === -1) return;
243
+ const modifier = key.substring(0, firstHyphenIndex);
244
+ if (MODIFIERS.includes(modifier)) {
245
+ const restKey = key.substring(firstHyphenIndex + 1);
246
+ const value = cleanRest[key];
247
+ if (restKey in VALUE_PROPS_MAP) {
248
+ const prefix = VALUE_PROPS_MAP[restKey];
249
+ if (typeof value === "string" || typeof value === "number") {
250
+ generatedClasses.push(`${modifier}:${prefix}-${value}`);
251
+ delete cleanRest[key];
252
+ } else if (value === true && (restKey === "shadow" || restKey === "rounded" || restKey === "border")) {
253
+ generatedClasses.push(`${modifier}:${restKey}`);
254
+ delete cleanRest[key];
255
+ }
256
+ } else if (LAYOUT_PROPS.includes(restKey)) {
257
+ if (value === true) {
258
+ generatedClasses.push(`${modifier}:${restKey}`);
259
+ delete cleanRest[key];
260
+ }
261
+ }
262
+ }
263
+ });
180
264
  const joined = joinClassNames(classNames || []);
181
265
  const merged = [className, ...generatedClasses, joined].filter(Boolean).join(" ");
182
266
  return {
@@ -1,4 +1,4 @@
1
- import './types-CvNsUSZP.cjs';
1
+ import './types-WLlcB_RW.cjs';
2
2
  import React from 'react';
3
3
  export { Fragment, JSX } from 'react/jsx-runtime';
4
4
  import './tailwind.types-BSQudz76.cjs';
@@ -1,4 +1,4 @@
1
- import './types-DDH_n69B.js';
1
+ import './types-Bdh-X84v.js';
2
2
  import React from 'react';
3
3
  export { Fragment, JSX } from 'react/jsx-runtime';
4
4
  import './tailwind.types-BSQudz76.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withClassNames
3
- } from "./chunk-WXTVOZ4W.js";
3
+ } from "./chunk-M5PDERS6.js";
4
4
 
5
5
  // src/jsx-runtime.ts
6
6
  import { Fragment, jsx as reactJsx, jsxs as reactJsxs } from "react/jsx-runtime";
@@ -0,0 +1,125 @@
1
+ import { T as TailwindColor, a as TailwindSpacing, b as TailwindRadius, c as TailwindShadow, d as TailwindClass } from './tailwind.types-BSQudz76.js';
2
+
3
+ interface ValueProps {
4
+ bg?: TailwindColor | string;
5
+ text?: TailwindColor | string;
6
+ border?: TailwindColor | string | boolean;
7
+ fill?: TailwindColor | string;
8
+ stroke?: TailwindColor | string;
9
+ font?: string;
10
+ p?: TailwindSpacing | string | number;
11
+ m?: TailwindSpacing | string | number;
12
+ px?: TailwindSpacing | string | number;
13
+ py?: TailwindSpacing | string | number;
14
+ mx?: TailwindSpacing | string | number;
15
+ my?: TailwindSpacing | string | number;
16
+ gap?: TailwindSpacing | string | number;
17
+ w?: TailwindSpacing | string | number;
18
+ h?: TailwindSpacing | string | number;
19
+ rounded?: TailwindRadius | string | boolean;
20
+ shadow?: TailwindShadow | boolean | string;
21
+ z?: TailwindSpacing | string | number;
22
+ mb?: TailwindSpacing | string | number;
23
+ mt?: TailwindSpacing | string | number;
24
+ ml?: TailwindSpacing | string | number;
25
+ mr?: TailwindSpacing | string | number;
26
+ pb?: TailwindSpacing | string | number;
27
+ pt?: TailwindSpacing | string | number;
28
+ pl?: TailwindSpacing | string | number;
29
+ pr?: TailwindSpacing | string | number;
30
+ "min-w"?: TailwindSpacing | string | number;
31
+ "max-w"?: TailwindSpacing | string | number;
32
+ "min-h"?: TailwindSpacing | string | number;
33
+ "max-h"?: TailwindSpacing | string | number;
34
+ overflow?: string;
35
+ tracking?: string;
36
+ leading?: string;
37
+ decoration?: string;
38
+ align?: string;
39
+ whitespace?: string;
40
+ break?: string;
41
+ content?: string;
42
+ opacity?: string;
43
+ "bg-opacity"?: string;
44
+ ring?: string;
45
+ "ring-offset"?: string;
46
+ outline?: string;
47
+ divide?: string;
48
+ "mix-blend"?: string;
49
+ "backdrop-blur"?: string;
50
+ blur?: string;
51
+ brightness?: string;
52
+ contrast?: string;
53
+ grayscale?: string;
54
+ "hue-rotate"?: string;
55
+ invert?: string;
56
+ saturate?: string;
57
+ sepia?: string;
58
+ "drop-shadow"?: string;
59
+ transition?: string | boolean;
60
+ duration?: string;
61
+ ease?: string;
62
+ delay?: string;
63
+ animate?: string;
64
+ cursor?: string;
65
+ "pointer-events"?: string;
66
+ resize?: string;
67
+ select?: string;
68
+ scale?: string;
69
+ rotate?: string;
70
+ translate?: string;
71
+ skew?: string;
72
+ origin?: string;
73
+ }
74
+ interface LayoutProps {
75
+ flex?: boolean;
76
+ grid?: boolean;
77
+ hidden?: boolean;
78
+ block?: boolean;
79
+ inline?: boolean;
80
+ "inline-block"?: boolean;
81
+ "inline-flex"?: boolean;
82
+ "inline-grid"?: boolean;
83
+ relative?: boolean;
84
+ absolute?: boolean;
85
+ fixed?: boolean;
86
+ sticky?: boolean;
87
+ static?: boolean;
88
+ "flex-row"?: boolean;
89
+ "flex-col"?: boolean;
90
+ "flex-wrap"?: boolean;
91
+ "flex-nowrap"?: boolean;
92
+ "items-center"?: boolean;
93
+ "items-start"?: boolean;
94
+ "items-end"?: boolean;
95
+ "justify-center"?: boolean;
96
+ "justify-between"?: boolean;
97
+ "justify-start"?: boolean;
98
+ "justify-end"?: boolean;
99
+ grow?: boolean;
100
+ shrink?: boolean;
101
+ italic?: boolean;
102
+ "not-italic"?: boolean;
103
+ underline?: boolean;
104
+ uppercase?: boolean;
105
+ lowercase?: boolean;
106
+ capitalize?: boolean;
107
+ truncate?: boolean;
108
+ visible?: boolean;
109
+ invisible?: boolean;
110
+ collapse?: boolean;
111
+ "pointer-events-none"?: boolean;
112
+ "pointer-events-auto"?: boolean;
113
+ "sr-only"?: boolean;
114
+ "not-sr-only"?: boolean;
115
+ }
116
+ declare module "react" {
117
+ interface HTMLAttributes<T> extends LayoutProps, ValueProps {
118
+ classNames?: (TailwindClass | string)[];
119
+ [key: string]: any;
120
+ }
121
+ interface SVGAttributes<T> extends LayoutProps, ValueProps {
122
+ classNames?: (TailwindClass | string)[];
123
+ [key: string]: any;
124
+ }
125
+ }
@@ -0,0 +1,125 @@
1
+ import { T as TailwindColor, a as TailwindSpacing, b as TailwindRadius, c as TailwindShadow, d as TailwindClass } from './tailwind.types-BSQudz76.js';
2
+
3
+ interface ValueProps {
4
+ bg?: TailwindColor | string;
5
+ text?: TailwindColor | string;
6
+ border?: TailwindColor | string;
7
+ fill?: TailwindColor | string;
8
+ stroke?: TailwindColor | string;
9
+ font?: string;
10
+ p?: TailwindSpacing | string;
11
+ m?: TailwindSpacing | string;
12
+ px?: TailwindSpacing | string;
13
+ py?: TailwindSpacing | string;
14
+ mx?: TailwindSpacing | string;
15
+ my?: TailwindSpacing | string;
16
+ gap?: TailwindSpacing | string;
17
+ w?: TailwindSpacing | string;
18
+ h?: TailwindSpacing | string;
19
+ rounded?: TailwindRadius | string | boolean;
20
+ shadow?: TailwindShadow | boolean | string;
21
+ z?: TailwindSpacing | string;
22
+ mb?: TailwindSpacing | string;
23
+ mt?: TailwindSpacing | string;
24
+ ml?: TailwindSpacing | string;
25
+ mr?: TailwindSpacing | string;
26
+ pb?: TailwindSpacing | string;
27
+ pt?: TailwindSpacing | string;
28
+ pl?: TailwindSpacing | string;
29
+ pr?: TailwindSpacing | string;
30
+ "min-w"?: TailwindSpacing | string;
31
+ "max-w"?: TailwindSpacing | string;
32
+ "min-h"?: TailwindSpacing | string;
33
+ "max-h"?: TailwindSpacing | string;
34
+ overflow?: string;
35
+ tracking?: string;
36
+ leading?: string;
37
+ decoration?: string;
38
+ align?: string;
39
+ whitespace?: string;
40
+ break?: string;
41
+ content?: string;
42
+ opacity?: string;
43
+ "bg-opacity"?: string;
44
+ ring?: string;
45
+ "ring-offset"?: string;
46
+ outline?: string;
47
+ divide?: string;
48
+ "mix-blend"?: string;
49
+ "backdrop-blur"?: string;
50
+ blur?: string;
51
+ brightness?: string;
52
+ contrast?: string;
53
+ grayscale?: string;
54
+ "hue-rotate"?: string;
55
+ invert?: string;
56
+ saturate?: string;
57
+ sepia?: string;
58
+ "drop-shadow"?: string;
59
+ transition?: string;
60
+ duration?: string;
61
+ ease?: string;
62
+ delay?: string;
63
+ animate?: string;
64
+ cursor?: string;
65
+ "pointer-events"?: string;
66
+ resize?: string;
67
+ select?: string;
68
+ scale?: string;
69
+ rotate?: string;
70
+ translate?: string;
71
+ skew?: string;
72
+ origin?: string;
73
+ }
74
+ interface LayoutProps {
75
+ flex?: boolean;
76
+ grid?: boolean;
77
+ hidden?: boolean;
78
+ block?: boolean;
79
+ inline?: boolean;
80
+ "inline-block"?: boolean;
81
+ "inline-flex"?: boolean;
82
+ "inline-grid"?: boolean;
83
+ relative?: boolean;
84
+ absolute?: boolean;
85
+ fixed?: boolean;
86
+ sticky?: boolean;
87
+ static?: boolean;
88
+ "flex-row"?: boolean;
89
+ "flex-col"?: boolean;
90
+ "flex-wrap"?: boolean;
91
+ "flex-nowrap"?: boolean;
92
+ "items-center"?: boolean;
93
+ "items-start"?: boolean;
94
+ "items-end"?: boolean;
95
+ "justify-center"?: boolean;
96
+ "justify-between"?: boolean;
97
+ "justify-start"?: boolean;
98
+ "justify-end"?: boolean;
99
+ grow?: boolean;
100
+ shrink?: boolean;
101
+ italic?: boolean;
102
+ "not-italic"?: boolean;
103
+ underline?: boolean;
104
+ uppercase?: boolean;
105
+ lowercase?: boolean;
106
+ capitalize?: boolean;
107
+ truncate?: boolean;
108
+ visible?: boolean;
109
+ invisible?: boolean;
110
+ collapse?: boolean;
111
+ "pointer-events-none"?: boolean;
112
+ "pointer-events-auto"?: boolean;
113
+ "sr-only"?: boolean;
114
+ "not-sr-only"?: boolean;
115
+ }
116
+ declare module "react" {
117
+ interface HTMLAttributes<T> extends LayoutProps, ValueProps {
118
+ classNames?: (TailwindClass | string)[];
119
+ [key: string]: any;
120
+ }
121
+ interface SVGAttributes<T> extends LayoutProps, ValueProps {
122
+ classNames?: (TailwindClass | string)[];
123
+ [key: string]: any;
124
+ }
125
+ }
@@ -0,0 +1,125 @@
1
+ import { T as TailwindColor, a as TailwindSpacing, b as TailwindRadius, c as TailwindShadow, d as TailwindClass } from './tailwind.types-BSQudz76.cjs';
2
+
3
+ interface ValueProps {
4
+ bg?: TailwindColor | string;
5
+ text?: TailwindColor | string;
6
+ border?: TailwindColor | string;
7
+ fill?: TailwindColor | string;
8
+ stroke?: TailwindColor | string;
9
+ font?: string;
10
+ p?: TailwindSpacing | string;
11
+ m?: TailwindSpacing | string;
12
+ px?: TailwindSpacing | string;
13
+ py?: TailwindSpacing | string;
14
+ mx?: TailwindSpacing | string;
15
+ my?: TailwindSpacing | string;
16
+ gap?: TailwindSpacing | string;
17
+ w?: TailwindSpacing | string;
18
+ h?: TailwindSpacing | string;
19
+ rounded?: TailwindRadius | string | boolean;
20
+ shadow?: TailwindShadow | boolean | string;
21
+ z?: TailwindSpacing | string;
22
+ mb?: TailwindSpacing | string;
23
+ mt?: TailwindSpacing | string;
24
+ ml?: TailwindSpacing | string;
25
+ mr?: TailwindSpacing | string;
26
+ pb?: TailwindSpacing | string;
27
+ pt?: TailwindSpacing | string;
28
+ pl?: TailwindSpacing | string;
29
+ pr?: TailwindSpacing | string;
30
+ "min-w"?: TailwindSpacing | string;
31
+ "max-w"?: TailwindSpacing | string;
32
+ "min-h"?: TailwindSpacing | string;
33
+ "max-h"?: TailwindSpacing | string;
34
+ overflow?: string;
35
+ tracking?: string;
36
+ leading?: string;
37
+ decoration?: string;
38
+ align?: string;
39
+ whitespace?: string;
40
+ break?: string;
41
+ content?: string;
42
+ opacity?: string;
43
+ "bg-opacity"?: string;
44
+ ring?: string;
45
+ "ring-offset"?: string;
46
+ outline?: string;
47
+ divide?: string;
48
+ "mix-blend"?: string;
49
+ "backdrop-blur"?: string;
50
+ blur?: string;
51
+ brightness?: string;
52
+ contrast?: string;
53
+ grayscale?: string;
54
+ "hue-rotate"?: string;
55
+ invert?: string;
56
+ saturate?: string;
57
+ sepia?: string;
58
+ "drop-shadow"?: string;
59
+ transition?: string;
60
+ duration?: string;
61
+ ease?: string;
62
+ delay?: string;
63
+ animate?: string;
64
+ cursor?: string;
65
+ "pointer-events"?: string;
66
+ resize?: string;
67
+ select?: string;
68
+ scale?: string;
69
+ rotate?: string;
70
+ translate?: string;
71
+ skew?: string;
72
+ origin?: string;
73
+ }
74
+ interface LayoutProps {
75
+ flex?: boolean;
76
+ grid?: boolean;
77
+ hidden?: boolean;
78
+ block?: boolean;
79
+ inline?: boolean;
80
+ "inline-block"?: boolean;
81
+ "inline-flex"?: boolean;
82
+ "inline-grid"?: boolean;
83
+ relative?: boolean;
84
+ absolute?: boolean;
85
+ fixed?: boolean;
86
+ sticky?: boolean;
87
+ static?: boolean;
88
+ "flex-row"?: boolean;
89
+ "flex-col"?: boolean;
90
+ "flex-wrap"?: boolean;
91
+ "flex-nowrap"?: boolean;
92
+ "items-center"?: boolean;
93
+ "items-start"?: boolean;
94
+ "items-end"?: boolean;
95
+ "justify-center"?: boolean;
96
+ "justify-between"?: boolean;
97
+ "justify-start"?: boolean;
98
+ "justify-end"?: boolean;
99
+ grow?: boolean;
100
+ shrink?: boolean;
101
+ italic?: boolean;
102
+ "not-italic"?: boolean;
103
+ underline?: boolean;
104
+ uppercase?: boolean;
105
+ lowercase?: boolean;
106
+ capitalize?: boolean;
107
+ truncate?: boolean;
108
+ visible?: boolean;
109
+ invisible?: boolean;
110
+ collapse?: boolean;
111
+ "pointer-events-none"?: boolean;
112
+ "pointer-events-auto"?: boolean;
113
+ "sr-only"?: boolean;
114
+ "not-sr-only"?: boolean;
115
+ }
116
+ declare module "react" {
117
+ interface HTMLAttributes<T> extends LayoutProps, ValueProps {
118
+ classNames?: (TailwindClass | string)[];
119
+ [key: string]: any;
120
+ }
121
+ interface SVGAttributes<T> extends LayoutProps, ValueProps {
122
+ classNames?: (TailwindClass | string)[];
123
+ [key: string]: any;
124
+ }
125
+ }