@geovi/the-datagrid 0.1.1 → 0.1.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 +47 -1253
- package/dist/BoolEditor.cjs +1 -1
- package/dist/BoolEditor.js +235 -222
- package/dist/DateEditor.cjs +1 -1
- package/dist/DateEditor.js +297 -273
- package/dist/DateFilter.cjs +1 -1
- package/dist/DateFilter.js +65 -63
- package/dist/NumberFilter.cjs +1 -1
- package/dist/NumberFilter.js +104 -102
- package/dist/NumericEditor.cjs +1 -1
- package/dist/NumericEditor.js +296 -277
- package/dist/SelectEditor.cjs +42 -0
- package/dist/SelectEditor.js +6703 -0
- package/dist/StringFilter.cjs +1 -1
- package/dist/StringFilter.js +121 -119
- package/dist/TextEditor.cjs +2 -0
- package/dist/TextEditor.js +2972 -0
- package/dist/base.css +1 -1
- package/dist/community-package-manifest.json +3 -1
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/editors/BoolEditor.d.ts +1 -1
- package/dist/editors/BoolEditor.d.ts.map +1 -1
- package/dist/editors/DateEditor.d.ts +1 -1
- package/dist/editors/DateEditor.d.ts.map +1 -1
- package/dist/editors/NumericEditor.d.ts +1 -1
- package/dist/editors/NumericEditor.d.ts.map +1 -1
- package/dist/editors/SelectEditor.d.ts +27 -0
- package/dist/editors/SelectEditor.d.ts.map +1 -0
- package/dist/editors/TextEditor.d.ts +27 -0
- package/dist/editors/TextEditor.d.ts.map +1 -0
- package/dist/editors/editorTypes.d.ts +24 -0
- package/dist/editors/editorTypes.d.ts.map +1 -1
- package/dist/editors/index.d.ts +5 -0
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/grid/ReactDataGrid.d.ts.map +1 -1
- package/dist/grid/components/GridBody.d.ts.map +1 -1
- package/dist/grid/components/GridContextMenuLayer.d.ts.map +1 -1
- package/dist/grid/hooks/useGridEditing.d.ts.map +1 -1
- package/dist/grid/menuRuntime.d.ts +27 -0
- package/dist/grid/menuRuntime.d.ts.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.css +1 -1
- package/dist/index.js +9435 -9164
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/style/theme/amber-dark/index.css +1 -1
- package/dist/style/theme/amber-light/index.css +1 -1
- package/dist/style/theme/blue-dark/index.css +1 -1
- package/dist/style/theme/blue-light/index.css +1 -1
- package/dist/style/theme/default-dark/index.css +1 -1
- package/dist/style/theme/default-light/index.css +1 -1
- package/dist/style/theme/green-dark/index.css +1 -1
- package/dist/style/theme/green-light/index.css +1 -1
- package/dist/style/theme/pink-dark/index.css +1 -1
- package/dist/style/theme/pink-light/index.css +1 -1
- package/dist/toolbar/RDGToolbar.d.ts.map +1 -1
- package/dist/toolbar/icons.d.ts +0 -2
- package/dist/toolbar/icons.d.ts.map +1 -1
- package/dist/toolbar/runtime.d.ts +7 -0
- package/dist/toolbar/runtime.d.ts.map +1 -1
- package/dist/toolbar.css +1 -1
- package/dist/toolbar.js +548 -651
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +20 -2
package/dist/DateEditor.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as Ce from "react";
|
|
2
|
-
const
|
|
2
|
+
const Ve = Ce, b = Ve.default ?? Ce;
|
|
3
3
|
b.Children;
|
|
4
4
|
b.Component;
|
|
5
5
|
b.Fragment;
|
|
6
6
|
b.PureComponent;
|
|
7
7
|
b.cloneElement;
|
|
8
|
-
const
|
|
8
|
+
const je = b.createContext, se = b.createElement;
|
|
9
9
|
b.createRef;
|
|
10
|
-
const
|
|
10
|
+
const Fe = b.forwardRef;
|
|
11
11
|
b.isValidElement;
|
|
12
12
|
b.lazy;
|
|
13
13
|
b.memo;
|
|
@@ -29,13 +29,13 @@ function Se(e) {
|
|
|
29
29
|
var r, o, t = "";
|
|
30
30
|
if (typeof e == "string" || typeof e == "number") t += e;
|
|
31
31
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
32
|
-
var
|
|
33
|
-
for (r = 0; r <
|
|
32
|
+
var a = e.length;
|
|
33
|
+
for (r = 0; r < a; r++) e[r] && (o = Se(e[r])) && (t && (t += " "), t += o);
|
|
34
34
|
} else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
35
35
|
return t;
|
|
36
36
|
}
|
|
37
37
|
function Ue() {
|
|
38
|
-
for (var e, r, o = 0, t = "",
|
|
38
|
+
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (r = Se(e)) && (t && (t += " "), t += r);
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
41
|
const Ye = (e, r) => {
|
|
@@ -45,53 +45,53 @@ const Ye = (e, r) => {
|
|
|
45
45
|
for (let t = 0; t < r.length; t++)
|
|
46
46
|
o[e.length + t] = r[t];
|
|
47
47
|
return o;
|
|
48
|
-
},
|
|
48
|
+
}, He = (e, r) => ({
|
|
49
49
|
classGroupId: e,
|
|
50
50
|
validator: r
|
|
51
51
|
}), Ae = (e = /* @__PURE__ */ new Map(), r = null, o) => ({
|
|
52
52
|
nextPart: e,
|
|
53
53
|
validators: r,
|
|
54
54
|
classGroupId: o
|
|
55
|
-
}), Z = "-", he = [],
|
|
55
|
+
}), Z = "-", he = [], Ke = "arbitrary..", qe = (e) => {
|
|
56
56
|
const r = Je(e), {
|
|
57
57
|
conflictingClassGroups: o,
|
|
58
58
|
conflictingClassGroupModifiers: t
|
|
59
59
|
} = e;
|
|
60
60
|
return {
|
|
61
|
-
getClassGroupId: (
|
|
62
|
-
if (
|
|
63
|
-
return Xe(
|
|
64
|
-
const
|
|
65
|
-
return Re(
|
|
61
|
+
getClassGroupId: (i) => {
|
|
62
|
+
if (i.startsWith("[") && i.endsWith("]"))
|
|
63
|
+
return Xe(i);
|
|
64
|
+
const p = i.split(Z), l = p[0] === "" && p.length > 1 ? 1 : 0;
|
|
65
|
+
return Re(p, l, r);
|
|
66
66
|
},
|
|
67
|
-
getConflictingClassGroupIds: (
|
|
68
|
-
if (
|
|
69
|
-
const l = t[
|
|
67
|
+
getConflictingClassGroupIds: (i, p) => {
|
|
68
|
+
if (p) {
|
|
69
|
+
const l = t[i], g = o[i];
|
|
70
70
|
return l ? g ? Ye(g, l) : l : g || he;
|
|
71
71
|
}
|
|
72
|
-
return o[
|
|
72
|
+
return o[i] || he;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}, Re = (e, r, o) => {
|
|
76
76
|
if (e.length - r === 0)
|
|
77
77
|
return o.classGroupId;
|
|
78
|
-
const
|
|
78
|
+
const a = e[r], c = o.nextPart.get(a);
|
|
79
79
|
if (c) {
|
|
80
80
|
const g = Re(e, r + 1, c);
|
|
81
81
|
if (g) return g;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
83
|
+
const i = o.validators;
|
|
84
|
+
if (i === null)
|
|
85
85
|
return;
|
|
86
|
-
const
|
|
86
|
+
const p = r === 0 ? e.join(Z) : e.slice(r).join(Z), l = i.length;
|
|
87
87
|
for (let g = 0; g < l; g++) {
|
|
88
|
-
const h =
|
|
89
|
-
if (h.validator(
|
|
88
|
+
const h = i[g];
|
|
89
|
+
if (h.validator(p))
|
|
90
90
|
return h.classGroupId;
|
|
91
91
|
}
|
|
92
92
|
}, Xe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
93
93
|
const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
|
|
94
|
-
return t ?
|
|
94
|
+
return t ? Ke + t : void 0;
|
|
95
95
|
})(), Je = (e) => {
|
|
96
96
|
const {
|
|
97
97
|
theme: r,
|
|
@@ -101,15 +101,15 @@ const Ye = (e, r) => {
|
|
|
101
101
|
}, Qe = (e, r) => {
|
|
102
102
|
const o = Ae();
|
|
103
103
|
for (const t in e) {
|
|
104
|
-
const
|
|
105
|
-
le(
|
|
104
|
+
const a = e[t];
|
|
105
|
+
le(a, o, t, r);
|
|
106
106
|
}
|
|
107
107
|
return o;
|
|
108
108
|
}, le = (e, r, o, t) => {
|
|
109
|
-
const
|
|
110
|
-
for (let c = 0; c <
|
|
111
|
-
const
|
|
112
|
-
Ze(
|
|
109
|
+
const a = e.length;
|
|
110
|
+
for (let c = 0; c < a; c++) {
|
|
111
|
+
const i = e[c];
|
|
112
|
+
Ze(i, r, o, t);
|
|
113
113
|
}
|
|
114
114
|
}, Ze = (e, r, o, t) => {
|
|
115
115
|
if (typeof e == "string") {
|
|
@@ -129,20 +129,20 @@ const Ye = (e, r) => {
|
|
|
129
129
|
le(e(t), r, o, t);
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
132
|
+
r.validators === null && (r.validators = []), r.validators.push(He(o, e));
|
|
133
133
|
}, ot = (e, r, o, t) => {
|
|
134
|
-
const
|
|
135
|
-
for (let
|
|
136
|
-
const [
|
|
137
|
-
le(l, Ie(r,
|
|
134
|
+
const a = Object.entries(e), c = a.length;
|
|
135
|
+
for (let i = 0; i < c; i++) {
|
|
136
|
+
const [p, l] = a[i];
|
|
137
|
+
le(l, Ie(r, p), o, t);
|
|
138
138
|
}
|
|
139
139
|
}, Ie = (e, r) => {
|
|
140
140
|
let o = e;
|
|
141
|
-
const t = r.split(Z),
|
|
142
|
-
for (let c = 0; c <
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
|
|
141
|
+
const t = r.split(Z), a = t.length;
|
|
142
|
+
for (let c = 0; c < a; c++) {
|
|
143
|
+
const i = t[c];
|
|
144
|
+
let p = o.nextPart.get(i);
|
|
145
|
+
p || (p = Ae(), o.nextPart.set(i, p)), o = p;
|
|
146
146
|
}
|
|
147
147
|
return o;
|
|
148
148
|
}, rt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, nt = (e) => {
|
|
@@ -154,71 +154,71 @@ const Ye = (e, r) => {
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
157
|
-
const
|
|
158
|
-
o[c] =
|
|
157
|
+
const a = (c, i) => {
|
|
158
|
+
o[c] = i, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
159
159
|
};
|
|
160
160
|
return {
|
|
161
161
|
get(c) {
|
|
162
|
-
let
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
if ((
|
|
166
|
-
return
|
|
162
|
+
let i = o[c];
|
|
163
|
+
if (i !== void 0)
|
|
164
|
+
return i;
|
|
165
|
+
if ((i = t[c]) !== void 0)
|
|
166
|
+
return a(c, i), i;
|
|
167
167
|
},
|
|
168
|
-
set(c,
|
|
169
|
-
c in o ? o[c] =
|
|
168
|
+
set(c, i) {
|
|
169
|
+
c in o ? o[c] = i : a(c, i);
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
}, ae = "!", xe = ":", st = [], we = (e, r, o, t,
|
|
172
|
+
}, ae = "!", xe = ":", st = [], we = (e, r, o, t, a) => ({
|
|
173
173
|
modifiers: e,
|
|
174
174
|
hasImportantModifier: r,
|
|
175
175
|
baseClassName: o,
|
|
176
176
|
maybePostfixModifierPosition: t,
|
|
177
|
-
isExternal:
|
|
177
|
+
isExternal: a
|
|
178
178
|
}), at = (e) => {
|
|
179
179
|
const {
|
|
180
180
|
prefix: r,
|
|
181
181
|
experimentalParseClassName: o
|
|
182
182
|
} = e;
|
|
183
|
-
let t = (
|
|
183
|
+
let t = (a) => {
|
|
184
184
|
const c = [];
|
|
185
|
-
let
|
|
186
|
-
const h =
|
|
187
|
-
for (let
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
c.push(
|
|
185
|
+
let i = 0, p = 0, l = 0, g;
|
|
186
|
+
const h = a.length;
|
|
187
|
+
for (let S = 0; S < h; S++) {
|
|
188
|
+
const w = a[S];
|
|
189
|
+
if (i === 0 && p === 0) {
|
|
190
|
+
if (w === xe) {
|
|
191
|
+
c.push(a.slice(l, S)), l = S + 1;
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
|
-
if (
|
|
195
|
-
g =
|
|
194
|
+
if (w === "/") {
|
|
195
|
+
g = S;
|
|
196
196
|
continue;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
w === "[" ? i++ : w === "]" ? i-- : w === "(" ? p++ : w === ")" && p--;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
|
|
201
|
+
const v = c.length === 0 ? a : a.slice(l);
|
|
202
|
+
let C = v, y = !1;
|
|
203
|
+
v.endsWith(ae) ? (C = v.slice(0, -1), y = !0) : (
|
|
204
204
|
/**
|
|
205
205
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
206
206
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
207
207
|
*/
|
|
208
|
-
|
|
208
|
+
v.startsWith(ae) && (C = v.slice(1), y = !0)
|
|
209
209
|
);
|
|
210
|
-
const
|
|
211
|
-
return we(c,
|
|
210
|
+
const R = g && g > l ? g - l : void 0;
|
|
211
|
+
return we(c, y, C, R);
|
|
212
212
|
};
|
|
213
213
|
if (r) {
|
|
214
|
-
const
|
|
215
|
-
t = (
|
|
214
|
+
const a = r + xe, c = t;
|
|
215
|
+
t = (i) => i.startsWith(a) ? c(i.slice(a.length)) : we(st, !1, i, void 0, !0);
|
|
216
216
|
}
|
|
217
217
|
if (o) {
|
|
218
|
-
const
|
|
218
|
+
const a = t;
|
|
219
219
|
t = (c) => o({
|
|
220
220
|
className: c,
|
|
221
|
-
parseClassName:
|
|
221
|
+
parseClassName: a
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
return t;
|
|
@@ -228,67 +228,67 @@ const Ye = (e, r) => {
|
|
|
228
228
|
r.set(o, 1e6 + t);
|
|
229
229
|
}), (o) => {
|
|
230
230
|
const t = [];
|
|
231
|
-
let
|
|
231
|
+
let a = [];
|
|
232
232
|
for (let c = 0; c < o.length; c++) {
|
|
233
|
-
const
|
|
234
|
-
|
|
233
|
+
const i = o[c], p = i[0] === "[", l = r.has(i);
|
|
234
|
+
p || l ? (a.length > 0 && (a.sort(), t.push(...a), a = []), t.push(i)) : a.push(i);
|
|
235
235
|
}
|
|
236
|
-
return
|
|
236
|
+
return a.length > 0 && (a.sort(), t.push(...a)), t;
|
|
237
237
|
};
|
|
238
238
|
}, lt = (e) => ({
|
|
239
239
|
cache: nt(e.cacheSize),
|
|
240
240
|
parseClassName: at(e),
|
|
241
241
|
sortModifiers: it(e),
|
|
242
|
-
...
|
|
242
|
+
...qe(e)
|
|
243
243
|
}), ct = /\s+/, dt = (e, r) => {
|
|
244
244
|
const {
|
|
245
245
|
parseClassName: o,
|
|
246
246
|
getClassGroupId: t,
|
|
247
|
-
getConflictingClassGroupIds:
|
|
247
|
+
getConflictingClassGroupIds: a,
|
|
248
248
|
sortModifiers: c
|
|
249
|
-
} = r,
|
|
249
|
+
} = r, i = [], p = e.trim().split(ct);
|
|
250
250
|
let l = "";
|
|
251
|
-
for (let g =
|
|
252
|
-
const h =
|
|
253
|
-
isExternal:
|
|
254
|
-
modifiers:
|
|
255
|
-
hasImportantModifier:
|
|
256
|
-
baseClassName:
|
|
257
|
-
maybePostfixModifierPosition:
|
|
251
|
+
for (let g = p.length - 1; g >= 0; g -= 1) {
|
|
252
|
+
const h = p[g], {
|
|
253
|
+
isExternal: v,
|
|
254
|
+
modifiers: C,
|
|
255
|
+
hasImportantModifier: y,
|
|
256
|
+
baseClassName: R,
|
|
257
|
+
maybePostfixModifierPosition: S
|
|
258
258
|
} = o(h);
|
|
259
|
-
if (
|
|
259
|
+
if (v) {
|
|
260
260
|
l = h + (l.length > 0 ? " " + l : l);
|
|
261
261
|
continue;
|
|
262
262
|
}
|
|
263
|
-
let
|
|
264
|
-
if (!
|
|
265
|
-
if (!
|
|
263
|
+
let w = !!S, f = t(w ? R.substring(0, S) : R);
|
|
264
|
+
if (!f) {
|
|
265
|
+
if (!w) {
|
|
266
266
|
l = h + (l.length > 0 ? " " + l : l);
|
|
267
267
|
continue;
|
|
268
268
|
}
|
|
269
|
-
if (
|
|
269
|
+
if (f = t(R), !f) {
|
|
270
270
|
l = h + (l.length > 0 ? " " + l : l);
|
|
271
271
|
continue;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
w = !1;
|
|
274
274
|
}
|
|
275
|
-
const U =
|
|
276
|
-
if (
|
|
275
|
+
const U = C.length === 0 ? "" : C.length === 1 ? C[0] : c(C).join(":"), F = y ? U + ae : U, L = F + f;
|
|
276
|
+
if (i.indexOf(L) > -1)
|
|
277
277
|
continue;
|
|
278
|
-
|
|
279
|
-
const D =
|
|
280
|
-
for (let
|
|
281
|
-
const B = D[
|
|
282
|
-
|
|
278
|
+
i.push(L);
|
|
279
|
+
const D = a(f, w);
|
|
280
|
+
for (let P = 0; P < D.length; ++P) {
|
|
281
|
+
const B = D[P];
|
|
282
|
+
i.push(F + B);
|
|
283
283
|
}
|
|
284
284
|
l = h + (l.length > 0 ? " " + l : l);
|
|
285
285
|
}
|
|
286
286
|
return l;
|
|
287
287
|
}, mt = (...e) => {
|
|
288
|
-
let r = 0, o, t,
|
|
288
|
+
let r = 0, o, t, a = "";
|
|
289
289
|
for (; r < e.length; )
|
|
290
|
-
(o = e[r++]) && (t = Te(o)) && (
|
|
291
|
-
return
|
|
290
|
+
(o = e[r++]) && (t = Te(o)) && (a && (a += " "), a += t);
|
|
291
|
+
return a;
|
|
292
292
|
}, Te = (e) => {
|
|
293
293
|
if (typeof e == "string")
|
|
294
294
|
return e;
|
|
@@ -297,34 +297,34 @@ const Ye = (e, r) => {
|
|
|
297
297
|
e[t] && (r = Te(e[t])) && (o && (o += " "), o += r);
|
|
298
298
|
return o;
|
|
299
299
|
}, ut = (e, ...r) => {
|
|
300
|
-
let o, t,
|
|
301
|
-
const
|
|
302
|
-
const g = r.reduce((h,
|
|
303
|
-
return o = lt(g), t = o.cache.get,
|
|
304
|
-
},
|
|
300
|
+
let o, t, a, c;
|
|
301
|
+
const i = (l) => {
|
|
302
|
+
const g = r.reduce((h, v) => v(h), e());
|
|
303
|
+
return o = lt(g), t = o.cache.get, a = o.cache.set, c = p, p(l);
|
|
304
|
+
}, p = (l) => {
|
|
305
305
|
const g = t(l);
|
|
306
306
|
if (g)
|
|
307
307
|
return g;
|
|
308
308
|
const h = dt(l, o);
|
|
309
|
-
return
|
|
309
|
+
return a(l, h), h;
|
|
310
310
|
};
|
|
311
|
-
return c =
|
|
312
|
-
}, pt = [],
|
|
311
|
+
return c = i, (...l) => c(mt(...l));
|
|
312
|
+
}, pt = [], x = (e) => {
|
|
313
313
|
const r = (o) => o[e] || pt;
|
|
314
314
|
return r.isThemeGetter = !0, r;
|
|
315
|
-
},
|
|
315
|
+
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ft = /^\d+\/\d+$/, gt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ht = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _ = (e) => ft.test(e), u = (e) => !!e && !Number.isNaN(Number(e)), M = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && u(e.slice(0, -1)), E = (e) => gt.test(e), kt = () => !0, yt = (e) => (
|
|
316
316
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
317
317
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
318
318
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
319
319
|
bt.test(e) && !ht.test(e)
|
|
320
|
-
),
|
|
321
|
-
const t = Me.exec(e);
|
|
322
|
-
return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
|
|
323
|
-
}, F = (e, r, o = !1) => {
|
|
320
|
+
), Pe = () => !1, vt = (e) => xt.test(e), Ct = (e) => wt.test(e), zt = (e) => !n(e) && !s(e), St = (e) => V(e, Le, Pe), n = (e) => Ee.test(e), N = (e) => V(e, De, yt), ne = (e) => V(e, Et, u), ke = (e) => V(e, Ge, Pe), At = (e) => V(e, Ne, Ct), J = (e) => V(e, Oe, vt), s = (e) => Me.test(e), W = (e) => j(e, De), Rt = (e) => j(e, Mt), ye = (e) => j(e, Ge), It = (e) => j(e, Le), Tt = (e) => j(e, Ne), Q = (e) => j(e, Oe, !0), V = (e, r, o) => {
|
|
324
321
|
const t = Ee.exec(e);
|
|
322
|
+
return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
|
|
323
|
+
}, j = (e, r, o = !1) => {
|
|
324
|
+
const t = Me.exec(e);
|
|
325
325
|
return t ? t[1] ? r(t[1]) : o : !1;
|
|
326
|
-
},
|
|
327
|
-
const e =
|
|
326
|
+
}, Ge = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Le = (e) => e === "length" || e === "size" || e === "bg-size", De = (e) => e === "length", Et = (e) => e === "number", Mt = (e) => e === "family-name", Oe = (e) => e === "shadow", Pt = () => {
|
|
327
|
+
const e = x("color"), r = x("font"), o = x("text"), t = x("font-weight"), a = x("tracking"), c = x("leading"), i = x("breakpoint"), p = x("container"), l = x("spacing"), g = x("radius"), h = x("shadow"), v = x("inset-shadow"), C = x("text-shadow"), y = x("drop-shadow"), R = x("blur"), S = x("perspective"), w = x("aspect"), f = x("ease"), U = x("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
|
|
328
328
|
"center",
|
|
329
329
|
"top",
|
|
330
330
|
"bottom",
|
|
@@ -342,15 +342,15 @@ const Ye = (e, r) => {
|
|
|
342
342
|
"bottom-left",
|
|
343
343
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
344
344
|
"left-bottom"
|
|
345
|
-
], D = () => [...L(), s, n],
|
|
345
|
+
], D = () => [...L(), s, n], P = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], m = () => [s, n, l], I = () => [_, "full", "auto", ...m()], ce = () => [M, "none", "subgrid", s, n], de = () => ["auto", {
|
|
346
346
|
span: ["full", M, s, n]
|
|
347
|
-
}, M, s, n], Y = () => [M, "auto", s, n], me = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
347
|
+
}, M, s, n], Y = () => [M, "auto", s, n], me = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], T = () => ["auto", ...m()], G = () => [_, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], d = () => [e, s, n], ue = () => [...L(), ye, ke, {
|
|
348
348
|
position: [s, n]
|
|
349
349
|
}], pe = () => ["no-repeat", {
|
|
350
350
|
repeat: ["", "x", "y", "space", "round"]
|
|
351
351
|
}], fe = () => ["auto", "cover", "contain", It, St, {
|
|
352
352
|
size: [s, n]
|
|
353
|
-
}], te = () => [re, W,
|
|
353
|
+
}], te = () => [re, W, N], z = () => [
|
|
354
354
|
// Deprecated since Tailwind CSS v4.0.0
|
|
355
355
|
"",
|
|
356
356
|
"none",
|
|
@@ -358,35 +358,35 @@ const Ye = (e, r) => {
|
|
|
358
358
|
g,
|
|
359
359
|
s,
|
|
360
360
|
n
|
|
361
|
-
],
|
|
361
|
+
], A = () => ["", u, W, N], H = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => [u, re, ye, ke], be = () => [
|
|
362
362
|
// Deprecated since Tailwind CSS v4.0.0
|
|
363
363
|
"",
|
|
364
364
|
"none",
|
|
365
|
-
|
|
365
|
+
R,
|
|
366
366
|
s,
|
|
367
367
|
n
|
|
368
|
-
],
|
|
368
|
+
], K = () => ["none", u, s, n], q = () => ["none", u, s, n], oe = () => [u, s, n], X = () => [_, "full", ...m()];
|
|
369
369
|
return {
|
|
370
370
|
cacheSize: 500,
|
|
371
371
|
theme: {
|
|
372
372
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
373
373
|
aspect: ["video"],
|
|
374
|
-
blur: [
|
|
375
|
-
breakpoint: [
|
|
374
|
+
blur: [E],
|
|
375
|
+
breakpoint: [E],
|
|
376
376
|
color: [kt],
|
|
377
|
-
container: [
|
|
378
|
-
"drop-shadow": [
|
|
377
|
+
container: [E],
|
|
378
|
+
"drop-shadow": [E],
|
|
379
379
|
ease: ["in", "out", "in-out"],
|
|
380
380
|
font: [zt],
|
|
381
381
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
382
|
-
"inset-shadow": [
|
|
382
|
+
"inset-shadow": [E],
|
|
383
383
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
384
384
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
385
|
-
radius: [
|
|
386
|
-
shadow: [
|
|
385
|
+
radius: [E],
|
|
386
|
+
shadow: [E],
|
|
387
387
|
spacing: ["px", u],
|
|
388
|
-
text: [
|
|
389
|
-
"text-shadow": [
|
|
388
|
+
text: [E],
|
|
389
|
+
"text-shadow": [E],
|
|
390
390
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
391
391
|
},
|
|
392
392
|
classGroups: {
|
|
@@ -398,7 +398,7 @@ const Ye = (e, r) => {
|
|
|
398
398
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
399
399
|
*/
|
|
400
400
|
aspect: [{
|
|
401
|
-
aspect: ["auto", "square",
|
|
401
|
+
aspect: ["auto", "square", _, n, s, w]
|
|
402
402
|
}],
|
|
403
403
|
/**
|
|
404
404
|
* Container
|
|
@@ -411,21 +411,21 @@ const Ye = (e, r) => {
|
|
|
411
411
|
* @see https://tailwindcss.com/docs/columns
|
|
412
412
|
*/
|
|
413
413
|
columns: [{
|
|
414
|
-
columns: [u, n, s,
|
|
414
|
+
columns: [u, n, s, p]
|
|
415
415
|
}],
|
|
416
416
|
/**
|
|
417
417
|
* Break After
|
|
418
418
|
* @see https://tailwindcss.com/docs/break-after
|
|
419
419
|
*/
|
|
420
420
|
"break-after": [{
|
|
421
|
-
"break-after":
|
|
421
|
+
"break-after": F()
|
|
422
422
|
}],
|
|
423
423
|
/**
|
|
424
424
|
* Break Before
|
|
425
425
|
* @see https://tailwindcss.com/docs/break-before
|
|
426
426
|
*/
|
|
427
427
|
"break-before": [{
|
|
428
|
-
"break-before":
|
|
428
|
+
"break-before": F()
|
|
429
429
|
}],
|
|
430
430
|
/**
|
|
431
431
|
* Break Inside
|
|
@@ -496,21 +496,21 @@ const Ye = (e, r) => {
|
|
|
496
496
|
* @see https://tailwindcss.com/docs/overflow
|
|
497
497
|
*/
|
|
498
498
|
overflow: [{
|
|
499
|
-
overflow:
|
|
499
|
+
overflow: P()
|
|
500
500
|
}],
|
|
501
501
|
/**
|
|
502
502
|
* Overflow X
|
|
503
503
|
* @see https://tailwindcss.com/docs/overflow
|
|
504
504
|
*/
|
|
505
505
|
"overflow-x": [{
|
|
506
|
-
"overflow-x":
|
|
506
|
+
"overflow-x": P()
|
|
507
507
|
}],
|
|
508
508
|
/**
|
|
509
509
|
* Overflow Y
|
|
510
510
|
* @see https://tailwindcss.com/docs/overflow
|
|
511
511
|
*/
|
|
512
512
|
"overflow-y": [{
|
|
513
|
-
"overflow-y":
|
|
513
|
+
"overflow-y": P()
|
|
514
514
|
}],
|
|
515
515
|
/**
|
|
516
516
|
* Overscroll Behavior
|
|
@@ -543,63 +543,63 @@ const Ye = (e, r) => {
|
|
|
543
543
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
544
544
|
*/
|
|
545
545
|
inset: [{
|
|
546
|
-
inset:
|
|
546
|
+
inset: I()
|
|
547
547
|
}],
|
|
548
548
|
/**
|
|
549
549
|
* Right / Left
|
|
550
550
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
551
551
|
*/
|
|
552
552
|
"inset-x": [{
|
|
553
|
-
"inset-x":
|
|
553
|
+
"inset-x": I()
|
|
554
554
|
}],
|
|
555
555
|
/**
|
|
556
556
|
* Top / Bottom
|
|
557
557
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
558
558
|
*/
|
|
559
559
|
"inset-y": [{
|
|
560
|
-
"inset-y":
|
|
560
|
+
"inset-y": I()
|
|
561
561
|
}],
|
|
562
562
|
/**
|
|
563
563
|
* Start
|
|
564
564
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
565
565
|
*/
|
|
566
566
|
start: [{
|
|
567
|
-
start:
|
|
567
|
+
start: I()
|
|
568
568
|
}],
|
|
569
569
|
/**
|
|
570
570
|
* End
|
|
571
571
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
572
572
|
*/
|
|
573
573
|
end: [{
|
|
574
|
-
end:
|
|
574
|
+
end: I()
|
|
575
575
|
}],
|
|
576
576
|
/**
|
|
577
577
|
* Top
|
|
578
578
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
579
579
|
*/
|
|
580
580
|
top: [{
|
|
581
|
-
top:
|
|
581
|
+
top: I()
|
|
582
582
|
}],
|
|
583
583
|
/**
|
|
584
584
|
* Right
|
|
585
585
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
586
586
|
*/
|
|
587
587
|
right: [{
|
|
588
|
-
right:
|
|
588
|
+
right: I()
|
|
589
589
|
}],
|
|
590
590
|
/**
|
|
591
591
|
* Bottom
|
|
592
592
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
593
593
|
*/
|
|
594
594
|
bottom: [{
|
|
595
|
-
bottom:
|
|
595
|
+
bottom: I()
|
|
596
596
|
}],
|
|
597
597
|
/**
|
|
598
598
|
* Left
|
|
599
599
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
600
600
|
*/
|
|
601
601
|
left: [{
|
|
602
|
-
left:
|
|
602
|
+
left: I()
|
|
603
603
|
}],
|
|
604
604
|
/**
|
|
605
605
|
* Visibility
|
|
@@ -621,7 +621,7 @@ const Ye = (e, r) => {
|
|
|
621
621
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
622
622
|
*/
|
|
623
623
|
basis: [{
|
|
624
|
-
basis: [
|
|
624
|
+
basis: [_, "full", "auto", p, ...m()]
|
|
625
625
|
}],
|
|
626
626
|
/**
|
|
627
627
|
* Flex Direction
|
|
@@ -642,7 +642,7 @@ const Ye = (e, r) => {
|
|
|
642
642
|
* @see https://tailwindcss.com/docs/flex
|
|
643
643
|
*/
|
|
644
644
|
flex: [{
|
|
645
|
-
flex: [u,
|
|
645
|
+
flex: [u, _, "auto", "initial", "none", n]
|
|
646
646
|
}],
|
|
647
647
|
/**
|
|
648
648
|
* Flex Grow
|
|
@@ -899,63 +899,63 @@ const Ye = (e, r) => {
|
|
|
899
899
|
* @see https://tailwindcss.com/docs/margin
|
|
900
900
|
*/
|
|
901
901
|
m: [{
|
|
902
|
-
m:
|
|
902
|
+
m: T()
|
|
903
903
|
}],
|
|
904
904
|
/**
|
|
905
905
|
* Margin X
|
|
906
906
|
* @see https://tailwindcss.com/docs/margin
|
|
907
907
|
*/
|
|
908
908
|
mx: [{
|
|
909
|
-
mx:
|
|
909
|
+
mx: T()
|
|
910
910
|
}],
|
|
911
911
|
/**
|
|
912
912
|
* Margin Y
|
|
913
913
|
* @see https://tailwindcss.com/docs/margin
|
|
914
914
|
*/
|
|
915
915
|
my: [{
|
|
916
|
-
my:
|
|
916
|
+
my: T()
|
|
917
917
|
}],
|
|
918
918
|
/**
|
|
919
919
|
* Margin Start
|
|
920
920
|
* @see https://tailwindcss.com/docs/margin
|
|
921
921
|
*/
|
|
922
922
|
ms: [{
|
|
923
|
-
ms:
|
|
923
|
+
ms: T()
|
|
924
924
|
}],
|
|
925
925
|
/**
|
|
926
926
|
* Margin End
|
|
927
927
|
* @see https://tailwindcss.com/docs/margin
|
|
928
928
|
*/
|
|
929
929
|
me: [{
|
|
930
|
-
me:
|
|
930
|
+
me: T()
|
|
931
931
|
}],
|
|
932
932
|
/**
|
|
933
933
|
* Margin Top
|
|
934
934
|
* @see https://tailwindcss.com/docs/margin
|
|
935
935
|
*/
|
|
936
936
|
mt: [{
|
|
937
|
-
mt:
|
|
937
|
+
mt: T()
|
|
938
938
|
}],
|
|
939
939
|
/**
|
|
940
940
|
* Margin Right
|
|
941
941
|
* @see https://tailwindcss.com/docs/margin
|
|
942
942
|
*/
|
|
943
943
|
mr: [{
|
|
944
|
-
mr:
|
|
944
|
+
mr: T()
|
|
945
945
|
}],
|
|
946
946
|
/**
|
|
947
947
|
* Margin Bottom
|
|
948
948
|
* @see https://tailwindcss.com/docs/margin
|
|
949
949
|
*/
|
|
950
950
|
mb: [{
|
|
951
|
-
mb:
|
|
951
|
+
mb: T()
|
|
952
952
|
}],
|
|
953
953
|
/**
|
|
954
954
|
* Margin Left
|
|
955
955
|
* @see https://tailwindcss.com/docs/margin
|
|
956
956
|
*/
|
|
957
957
|
ml: [{
|
|
958
|
-
ml:
|
|
958
|
+
ml: T()
|
|
959
959
|
}],
|
|
960
960
|
/**
|
|
961
961
|
* Space Between X
|
|
@@ -989,14 +989,14 @@ const Ye = (e, r) => {
|
|
|
989
989
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
990
990
|
*/
|
|
991
991
|
size: [{
|
|
992
|
-
size:
|
|
992
|
+
size: G()
|
|
993
993
|
}],
|
|
994
994
|
/**
|
|
995
995
|
* Width
|
|
996
996
|
* @see https://tailwindcss.com/docs/width
|
|
997
997
|
*/
|
|
998
998
|
w: [{
|
|
999
|
-
w: [
|
|
999
|
+
w: [p, "screen", ...G()]
|
|
1000
1000
|
}],
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Min-Width
|
|
@@ -1004,11 +1004,11 @@ const Ye = (e, r) => {
|
|
|
1004
1004
|
*/
|
|
1005
1005
|
"min-w": [{
|
|
1006
1006
|
"min-w": [
|
|
1007
|
-
|
|
1007
|
+
p,
|
|
1008
1008
|
"screen",
|
|
1009
1009
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1010
1010
|
"none",
|
|
1011
|
-
...
|
|
1011
|
+
...G()
|
|
1012
1012
|
]
|
|
1013
1013
|
}],
|
|
1014
1014
|
/**
|
|
@@ -1017,16 +1017,16 @@ const Ye = (e, r) => {
|
|
|
1017
1017
|
*/
|
|
1018
1018
|
"max-w": [{
|
|
1019
1019
|
"max-w": [
|
|
1020
|
-
|
|
1020
|
+
p,
|
|
1021
1021
|
"screen",
|
|
1022
1022
|
"none",
|
|
1023
1023
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1024
1024
|
"prose",
|
|
1025
1025
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1026
1026
|
{
|
|
1027
|
-
screen: [
|
|
1027
|
+
screen: [i]
|
|
1028
1028
|
},
|
|
1029
|
-
...
|
|
1029
|
+
...G()
|
|
1030
1030
|
]
|
|
1031
1031
|
}],
|
|
1032
1032
|
/**
|
|
@@ -1034,21 +1034,21 @@ const Ye = (e, r) => {
|
|
|
1034
1034
|
* @see https://tailwindcss.com/docs/height
|
|
1035
1035
|
*/
|
|
1036
1036
|
h: [{
|
|
1037
|
-
h: ["screen", "lh", ...
|
|
1037
|
+
h: ["screen", "lh", ...G()]
|
|
1038
1038
|
}],
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Min-Height
|
|
1041
1041
|
* @see https://tailwindcss.com/docs/min-height
|
|
1042
1042
|
*/
|
|
1043
1043
|
"min-h": [{
|
|
1044
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1044
|
+
"min-h": ["screen", "lh", "none", ...G()]
|
|
1045
1045
|
}],
|
|
1046
1046
|
/**
|
|
1047
1047
|
* Max-Height
|
|
1048
1048
|
* @see https://tailwindcss.com/docs/max-height
|
|
1049
1049
|
*/
|
|
1050
1050
|
"max-h": [{
|
|
1051
|
-
"max-h": ["screen", "lh", ...
|
|
1051
|
+
"max-h": ["screen", "lh", ...G()]
|
|
1052
1052
|
}],
|
|
1053
1053
|
// ------------------
|
|
1054
1054
|
// --- Typography ---
|
|
@@ -1058,7 +1058,7 @@ const Ye = (e, r) => {
|
|
|
1058
1058
|
* @see https://tailwindcss.com/docs/font-size
|
|
1059
1059
|
*/
|
|
1060
1060
|
"font-size": [{
|
|
1061
|
-
text: ["base", o, W,
|
|
1061
|
+
text: ["base", o, W, N]
|
|
1062
1062
|
}],
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Font Smoothing
|
|
@@ -1126,7 +1126,7 @@ const Ye = (e, r) => {
|
|
|
1126
1126
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1127
1127
|
*/
|
|
1128
1128
|
tracking: [{
|
|
1129
|
-
tracking: [
|
|
1129
|
+
tracking: [a, s, n]
|
|
1130
1130
|
}],
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Line Clamp
|
|
@@ -1199,14 +1199,14 @@ const Ye = (e, r) => {
|
|
|
1199
1199
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1200
1200
|
*/
|
|
1201
1201
|
"text-decoration-style": [{
|
|
1202
|
-
decoration: [...
|
|
1202
|
+
decoration: [...H(), "wavy"]
|
|
1203
1203
|
}],
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Text Decoration Thickness
|
|
1206
1206
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1207
1207
|
*/
|
|
1208
1208
|
"text-decoration-thickness": [{
|
|
1209
|
-
decoration: [u, "from-font", "auto", s,
|
|
1209
|
+
decoration: [u, "from-font", "auto", s, N]
|
|
1210
1210
|
}],
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Text Decoration Color
|
|
@@ -1403,175 +1403,175 @@ const Ye = (e, r) => {
|
|
|
1403
1403
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1404
1404
|
*/
|
|
1405
1405
|
rounded: [{
|
|
1406
|
-
rounded:
|
|
1406
|
+
rounded: z()
|
|
1407
1407
|
}],
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Border Radius Start
|
|
1410
1410
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1411
1411
|
*/
|
|
1412
1412
|
"rounded-s": [{
|
|
1413
|
-
"rounded-s":
|
|
1413
|
+
"rounded-s": z()
|
|
1414
1414
|
}],
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Border Radius End
|
|
1417
1417
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1418
1418
|
*/
|
|
1419
1419
|
"rounded-e": [{
|
|
1420
|
-
"rounded-e":
|
|
1420
|
+
"rounded-e": z()
|
|
1421
1421
|
}],
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Border Radius Top
|
|
1424
1424
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1425
1425
|
*/
|
|
1426
1426
|
"rounded-t": [{
|
|
1427
|
-
"rounded-t":
|
|
1427
|
+
"rounded-t": z()
|
|
1428
1428
|
}],
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Border Radius Right
|
|
1431
1431
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1432
1432
|
*/
|
|
1433
1433
|
"rounded-r": [{
|
|
1434
|
-
"rounded-r":
|
|
1434
|
+
"rounded-r": z()
|
|
1435
1435
|
}],
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Border Radius Bottom
|
|
1438
1438
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1439
1439
|
*/
|
|
1440
1440
|
"rounded-b": [{
|
|
1441
|
-
"rounded-b":
|
|
1441
|
+
"rounded-b": z()
|
|
1442
1442
|
}],
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Border Radius Left
|
|
1445
1445
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1446
1446
|
*/
|
|
1447
1447
|
"rounded-l": [{
|
|
1448
|
-
"rounded-l":
|
|
1448
|
+
"rounded-l": z()
|
|
1449
1449
|
}],
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Border Radius Start Start
|
|
1452
1452
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1453
1453
|
*/
|
|
1454
1454
|
"rounded-ss": [{
|
|
1455
|
-
"rounded-ss":
|
|
1455
|
+
"rounded-ss": z()
|
|
1456
1456
|
}],
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Border Radius Start End
|
|
1459
1459
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1460
1460
|
*/
|
|
1461
1461
|
"rounded-se": [{
|
|
1462
|
-
"rounded-se":
|
|
1462
|
+
"rounded-se": z()
|
|
1463
1463
|
}],
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Border Radius End End
|
|
1466
1466
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1467
1467
|
*/
|
|
1468
1468
|
"rounded-ee": [{
|
|
1469
|
-
"rounded-ee":
|
|
1469
|
+
"rounded-ee": z()
|
|
1470
1470
|
}],
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Border Radius End Start
|
|
1473
1473
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1474
1474
|
*/
|
|
1475
1475
|
"rounded-es": [{
|
|
1476
|
-
"rounded-es":
|
|
1476
|
+
"rounded-es": z()
|
|
1477
1477
|
}],
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Border Radius Top Left
|
|
1480
1480
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1481
1481
|
*/
|
|
1482
1482
|
"rounded-tl": [{
|
|
1483
|
-
"rounded-tl":
|
|
1483
|
+
"rounded-tl": z()
|
|
1484
1484
|
}],
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Border Radius Top Right
|
|
1487
1487
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1488
1488
|
*/
|
|
1489
1489
|
"rounded-tr": [{
|
|
1490
|
-
"rounded-tr":
|
|
1490
|
+
"rounded-tr": z()
|
|
1491
1491
|
}],
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Border Radius Bottom Right
|
|
1494
1494
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1495
1495
|
*/
|
|
1496
1496
|
"rounded-br": [{
|
|
1497
|
-
"rounded-br":
|
|
1497
|
+
"rounded-br": z()
|
|
1498
1498
|
}],
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Border Radius Bottom Left
|
|
1501
1501
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1502
1502
|
*/
|
|
1503
1503
|
"rounded-bl": [{
|
|
1504
|
-
"rounded-bl":
|
|
1504
|
+
"rounded-bl": z()
|
|
1505
1505
|
}],
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Border Width
|
|
1508
1508
|
* @see https://tailwindcss.com/docs/border-width
|
|
1509
1509
|
*/
|
|
1510
1510
|
"border-w": [{
|
|
1511
|
-
border:
|
|
1511
|
+
border: A()
|
|
1512
1512
|
}],
|
|
1513
1513
|
/**
|
|
1514
1514
|
* Border Width X
|
|
1515
1515
|
* @see https://tailwindcss.com/docs/border-width
|
|
1516
1516
|
*/
|
|
1517
1517
|
"border-w-x": [{
|
|
1518
|
-
"border-x":
|
|
1518
|
+
"border-x": A()
|
|
1519
1519
|
}],
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Border Width Y
|
|
1522
1522
|
* @see https://tailwindcss.com/docs/border-width
|
|
1523
1523
|
*/
|
|
1524
1524
|
"border-w-y": [{
|
|
1525
|
-
"border-y":
|
|
1525
|
+
"border-y": A()
|
|
1526
1526
|
}],
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Border Width Start
|
|
1529
1529
|
* @see https://tailwindcss.com/docs/border-width
|
|
1530
1530
|
*/
|
|
1531
1531
|
"border-w-s": [{
|
|
1532
|
-
"border-s":
|
|
1532
|
+
"border-s": A()
|
|
1533
1533
|
}],
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Border Width End
|
|
1536
1536
|
* @see https://tailwindcss.com/docs/border-width
|
|
1537
1537
|
*/
|
|
1538
1538
|
"border-w-e": [{
|
|
1539
|
-
"border-e":
|
|
1539
|
+
"border-e": A()
|
|
1540
1540
|
}],
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Border Width Top
|
|
1543
1543
|
* @see https://tailwindcss.com/docs/border-width
|
|
1544
1544
|
*/
|
|
1545
1545
|
"border-w-t": [{
|
|
1546
|
-
"border-t":
|
|
1546
|
+
"border-t": A()
|
|
1547
1547
|
}],
|
|
1548
1548
|
/**
|
|
1549
1549
|
* Border Width Right
|
|
1550
1550
|
* @see https://tailwindcss.com/docs/border-width
|
|
1551
1551
|
*/
|
|
1552
1552
|
"border-w-r": [{
|
|
1553
|
-
"border-r":
|
|
1553
|
+
"border-r": A()
|
|
1554
1554
|
}],
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Border Width Bottom
|
|
1557
1557
|
* @see https://tailwindcss.com/docs/border-width
|
|
1558
1558
|
*/
|
|
1559
1559
|
"border-w-b": [{
|
|
1560
|
-
"border-b":
|
|
1560
|
+
"border-b": A()
|
|
1561
1561
|
}],
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Border Width Left
|
|
1564
1564
|
* @see https://tailwindcss.com/docs/border-width
|
|
1565
1565
|
*/
|
|
1566
1566
|
"border-w-l": [{
|
|
1567
|
-
"border-l":
|
|
1567
|
+
"border-l": A()
|
|
1568
1568
|
}],
|
|
1569
1569
|
/**
|
|
1570
1570
|
* Divide Width X
|
|
1571
1571
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1572
1572
|
*/
|
|
1573
1573
|
"divide-x": [{
|
|
1574
|
-
"divide-x":
|
|
1574
|
+
"divide-x": A()
|
|
1575
1575
|
}],
|
|
1576
1576
|
/**
|
|
1577
1577
|
* Divide Width X Reverse
|
|
@@ -1583,7 +1583,7 @@ const Ye = (e, r) => {
|
|
|
1583
1583
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1584
1584
|
*/
|
|
1585
1585
|
"divide-y": [{
|
|
1586
|
-
"divide-y":
|
|
1586
|
+
"divide-y": A()
|
|
1587
1587
|
}],
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Divide Width Y Reverse
|
|
@@ -1595,14 +1595,14 @@ const Ye = (e, r) => {
|
|
|
1595
1595
|
* @see https://tailwindcss.com/docs/border-style
|
|
1596
1596
|
*/
|
|
1597
1597
|
"border-style": [{
|
|
1598
|
-
border: [...
|
|
1598
|
+
border: [...H(), "hidden", "none"]
|
|
1599
1599
|
}],
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Divide Style
|
|
1602
1602
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1603
1603
|
*/
|
|
1604
1604
|
"divide-style": [{
|
|
1605
|
-
divide: [...
|
|
1605
|
+
divide: [...H(), "hidden", "none"]
|
|
1606
1606
|
}],
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Border Color
|
|
@@ -1679,7 +1679,7 @@ const Ye = (e, r) => {
|
|
|
1679
1679
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1680
1680
|
*/
|
|
1681
1681
|
"outline-style": [{
|
|
1682
|
-
outline: [...
|
|
1682
|
+
outline: [...H(), "none", "hidden"]
|
|
1683
1683
|
}],
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Outline Offset
|
|
@@ -1693,7 +1693,7 @@ const Ye = (e, r) => {
|
|
|
1693
1693
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1694
1694
|
*/
|
|
1695
1695
|
"outline-w": [{
|
|
1696
|
-
outline: ["", u, W,
|
|
1696
|
+
outline: ["", u, W, N]
|
|
1697
1697
|
}],
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Outline Color
|
|
@@ -1731,7 +1731,7 @@ const Ye = (e, r) => {
|
|
|
1731
1731
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1732
1732
|
*/
|
|
1733
1733
|
"inset-shadow": [{
|
|
1734
|
-
"inset-shadow": ["none",
|
|
1734
|
+
"inset-shadow": ["none", v, Q, J]
|
|
1735
1735
|
}],
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Inset Box Shadow Color
|
|
@@ -1745,7 +1745,7 @@ const Ye = (e, r) => {
|
|
|
1745
1745
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1746
1746
|
*/
|
|
1747
1747
|
"ring-w": [{
|
|
1748
|
-
ring:
|
|
1748
|
+
ring: A()
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Ring Width Inset
|
|
@@ -1768,7 +1768,7 @@ const Ye = (e, r) => {
|
|
|
1768
1768
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1769
1769
|
*/
|
|
1770
1770
|
"ring-offset-w": [{
|
|
1771
|
-
"ring-offset": [u,
|
|
1771
|
+
"ring-offset": [u, N]
|
|
1772
1772
|
}],
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Ring Offset Color
|
|
@@ -1784,7 +1784,7 @@ const Ye = (e, r) => {
|
|
|
1784
1784
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1785
1785
|
*/
|
|
1786
1786
|
"inset-ring-w": [{
|
|
1787
|
-
"inset-ring":
|
|
1787
|
+
"inset-ring": A()
|
|
1788
1788
|
}],
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Inset Ring Color
|
|
@@ -1798,7 +1798,7 @@ const Ye = (e, r) => {
|
|
|
1798
1798
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1799
1799
|
*/
|
|
1800
1800
|
"text-shadow": [{
|
|
1801
|
-
"text-shadow": ["none",
|
|
1801
|
+
"text-shadow": ["none", C, Q, J]
|
|
1802
1802
|
}],
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Text Shadow Color
|
|
@@ -2070,7 +2070,7 @@ const Ye = (e, r) => {
|
|
|
2070
2070
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2071
2071
|
"",
|
|
2072
2072
|
"none",
|
|
2073
|
-
|
|
2073
|
+
y,
|
|
2074
2074
|
Q,
|
|
2075
2075
|
J
|
|
2076
2076
|
]
|
|
@@ -2267,7 +2267,7 @@ const Ye = (e, r) => {
|
|
|
2267
2267
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2268
2268
|
*/
|
|
2269
2269
|
ease: [{
|
|
2270
|
-
ease: ["linear", "initial",
|
|
2270
|
+
ease: ["linear", "initial", f, s, n]
|
|
2271
2271
|
}],
|
|
2272
2272
|
/**
|
|
2273
2273
|
* Transition Delay
|
|
@@ -2298,7 +2298,7 @@ const Ye = (e, r) => {
|
|
|
2298
2298
|
* @see https://tailwindcss.com/docs/perspective
|
|
2299
2299
|
*/
|
|
2300
2300
|
perspective: [{
|
|
2301
|
-
perspective: [
|
|
2301
|
+
perspective: [S, s, n]
|
|
2302
2302
|
}],
|
|
2303
2303
|
/**
|
|
2304
2304
|
* Perspective Origin
|
|
@@ -2312,56 +2312,56 @@ const Ye = (e, r) => {
|
|
|
2312
2312
|
* @see https://tailwindcss.com/docs/rotate
|
|
2313
2313
|
*/
|
|
2314
2314
|
rotate: [{
|
|
2315
|
-
rotate:
|
|
2315
|
+
rotate: K()
|
|
2316
2316
|
}],
|
|
2317
2317
|
/**
|
|
2318
2318
|
* Rotate X
|
|
2319
2319
|
* @see https://tailwindcss.com/docs/rotate
|
|
2320
2320
|
*/
|
|
2321
2321
|
"rotate-x": [{
|
|
2322
|
-
"rotate-x":
|
|
2322
|
+
"rotate-x": K()
|
|
2323
2323
|
}],
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Rotate Y
|
|
2326
2326
|
* @see https://tailwindcss.com/docs/rotate
|
|
2327
2327
|
*/
|
|
2328
2328
|
"rotate-y": [{
|
|
2329
|
-
"rotate-y":
|
|
2329
|
+
"rotate-y": K()
|
|
2330
2330
|
}],
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Rotate Z
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/rotate
|
|
2334
2334
|
*/
|
|
2335
2335
|
"rotate-z": [{
|
|
2336
|
-
"rotate-z":
|
|
2336
|
+
"rotate-z": K()
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Scale
|
|
2340
2340
|
* @see https://tailwindcss.com/docs/scale
|
|
2341
2341
|
*/
|
|
2342
2342
|
scale: [{
|
|
2343
|
-
scale:
|
|
2343
|
+
scale: q()
|
|
2344
2344
|
}],
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Scale X
|
|
2347
2347
|
* @see https://tailwindcss.com/docs/scale
|
|
2348
2348
|
*/
|
|
2349
2349
|
"scale-x": [{
|
|
2350
|
-
"scale-x":
|
|
2350
|
+
"scale-x": q()
|
|
2351
2351
|
}],
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Scale Y
|
|
2354
2354
|
* @see https://tailwindcss.com/docs/scale
|
|
2355
2355
|
*/
|
|
2356
2356
|
"scale-y": [{
|
|
2357
|
-
"scale-y":
|
|
2357
|
+
"scale-y": q()
|
|
2358
2358
|
}],
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Scale Z
|
|
2361
2361
|
* @see https://tailwindcss.com/docs/scale
|
|
2362
2362
|
*/
|
|
2363
2363
|
"scale-z": [{
|
|
2364
|
-
"scale-z":
|
|
2364
|
+
"scale-z": q()
|
|
2365
2365
|
}],
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Scale 3D
|
|
@@ -2718,7 +2718,7 @@ const Ye = (e, r) => {
|
|
|
2718
2718
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2719
2719
|
*/
|
|
2720
2720
|
"stroke-w": [{
|
|
2721
|
-
stroke: [u, W,
|
|
2721
|
+
stroke: [u, W, N, ne]
|
|
2722
2722
|
}],
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Stroke
|
|
@@ -2793,11 +2793,11 @@ const Ye = (e, r) => {
|
|
|
2793
2793
|
},
|
|
2794
2794
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2795
2795
|
};
|
|
2796
|
-
},
|
|
2796
|
+
}, Gt = /* @__PURE__ */ ut(Pt);
|
|
2797
2797
|
function ie(...e) {
|
|
2798
|
-
return
|
|
2798
|
+
return Gt(Ue(e));
|
|
2799
2799
|
}
|
|
2800
|
-
const $ = "default",
|
|
2800
|
+
const $ = "default", Nt = je({
|
|
2801
2801
|
themeName: $,
|
|
2802
2802
|
themeBase: $,
|
|
2803
2803
|
portalContainer: null
|
|
@@ -2810,59 +2810,72 @@ function Dt(e) {
|
|
|
2810
2810
|
return Lt(e).toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "") || $;
|
|
2811
2811
|
}
|
|
2812
2812
|
function Ot() {
|
|
2813
|
-
return Be(
|
|
2813
|
+
return Be(Nt).themeName;
|
|
2814
2814
|
}
|
|
2815
|
-
function
|
|
2815
|
+
function _t() {
|
|
2816
2816
|
return Dt(Ot());
|
|
2817
2817
|
}
|
|
2818
|
-
const
|
|
2818
|
+
const _e = Fe(
|
|
2819
2819
|
({
|
|
2820
2820
|
className: e,
|
|
2821
2821
|
inputClassName: r,
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2822
|
+
endAdornment: o,
|
|
2823
|
+
type: t,
|
|
2824
|
+
onFocus: a,
|
|
2825
|
+
onBlur: c,
|
|
2826
|
+
disabled: i,
|
|
2827
|
+
style: p,
|
|
2828
|
+
...l
|
|
2829
|
+
}, g) => {
|
|
2830
|
+
const h = _t(), [v, C] = ze(!1);
|
|
2830
2831
|
return /* @__PURE__ */ se(
|
|
2831
2832
|
"div",
|
|
2832
2833
|
{
|
|
2833
2834
|
className: ie(
|
|
2834
2835
|
"flex h-9 w-full items-center rounded-md border bg-[var(--tdg-input-bg,var(--background))] px-3 py-1 text-[var(--tdg-input-color,var(--foreground))] shadow-sm transition-colors [border-color:var(--tdg-input-border-color,var(--input))] hover:[border-color:var(--tdg-input-border-color-hover,var(--ring))] focus-within:ring-1 focus-within:ring-ring focus-within:[border-color:var(--tdg-input-border-color-focus,var(--ring))] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2835
2836
|
"inovua-react-toolkit-text-input",
|
|
2836
|
-
`inovua-react-toolkit-text-input--theme-${
|
|
2837
|
-
|
|
2838
|
-
|
|
2837
|
+
`inovua-react-toolkit-text-input--theme-${h}`,
|
|
2838
|
+
i ? "inovua-react-toolkit-text-input--disabled" : "",
|
|
2839
|
+
v ? "inovua-react-toolkit-text-input--focused" : "",
|
|
2839
2840
|
e
|
|
2840
2841
|
),
|
|
2841
|
-
style:
|
|
2842
|
+
style: p
|
|
2842
2843
|
},
|
|
2843
2844
|
/* @__PURE__ */ se(
|
|
2844
2845
|
"input",
|
|
2845
2846
|
{
|
|
2846
|
-
type:
|
|
2847
|
+
type: t,
|
|
2847
2848
|
className: ie(
|
|
2848
2849
|
"inovua-react-toolkit-text-input__input m-0 min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent p-0 text-base text-[var(--tdg-input-color,var(--foreground))] shadow-none outline-none [font:inherit] [line-height:inherit] file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground md:text-sm",
|
|
2849
2850
|
r
|
|
2850
2851
|
),
|
|
2851
|
-
ref:
|
|
2852
|
-
disabled:
|
|
2853
|
-
onFocus: (
|
|
2854
|
-
|
|
2852
|
+
ref: g,
|
|
2853
|
+
disabled: i,
|
|
2854
|
+
onFocus: (y) => {
|
|
2855
|
+
C(!0), a?.(y);
|
|
2855
2856
|
},
|
|
2856
|
-
onBlur: (
|
|
2857
|
-
|
|
2857
|
+
onBlur: (y) => {
|
|
2858
|
+
C(!1), c?.(y);
|
|
2858
2859
|
},
|
|
2859
|
-
...
|
|
2860
|
+
...l
|
|
2860
2861
|
}
|
|
2861
|
-
)
|
|
2862
|
+
),
|
|
2863
|
+
o
|
|
2862
2864
|
);
|
|
2863
2865
|
}
|
|
2864
2866
|
);
|
|
2865
|
-
|
|
2867
|
+
_e.displayName = "Input";
|
|
2868
|
+
const Vt = "InovuaReactDataGrid__cell__editor", jt = "tdg-cell-editor-shell";
|
|
2869
|
+
function Ft(e) {
|
|
2870
|
+
return e ? Vt : jt;
|
|
2871
|
+
}
|
|
2872
|
+
function Bt(e, r = []) {
|
|
2873
|
+
if (!e) return {};
|
|
2874
|
+
const o = {};
|
|
2875
|
+
for (const [t, a] of Object.entries(e))
|
|
2876
|
+
t === "seamless" || r.includes(t) || (o[t] = a);
|
|
2877
|
+
return o;
|
|
2878
|
+
}
|
|
2866
2879
|
function ve(e) {
|
|
2867
2880
|
if (e == null || e === "") return "";
|
|
2868
2881
|
if (typeof e == "string") return e.slice(0, 10);
|
|
@@ -2870,53 +2883,64 @@ function ve(e) {
|
|
|
2870
2883
|
const r = e.getFullYear(), o = String(e.getMonth() + 1).padStart(2, "0"), t = String(e.getDate()).padStart(2, "0");
|
|
2871
2884
|
return `${r}-${o}-${t}`;
|
|
2872
2885
|
}
|
|
2873
|
-
function
|
|
2886
|
+
function Wt({
|
|
2874
2887
|
value: e = null,
|
|
2875
2888
|
onChange: r,
|
|
2876
2889
|
onComplete: o,
|
|
2877
2890
|
onCancel: t,
|
|
2878
|
-
onTabNavigation:
|
|
2891
|
+
onTabNavigation: a,
|
|
2879
2892
|
onKeyDown: c,
|
|
2880
|
-
autoFocus:
|
|
2881
|
-
disabled:
|
|
2893
|
+
autoFocus: i,
|
|
2894
|
+
disabled: p,
|
|
2882
2895
|
readOnly: l,
|
|
2883
2896
|
rtl: g,
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2897
|
+
seamless: h,
|
|
2898
|
+
className: v,
|
|
2899
|
+
style: C,
|
|
2900
|
+
editorProps: y
|
|
2887
2901
|
}) {
|
|
2888
|
-
const [
|
|
2902
|
+
const [R, S] = ze(() => ve(e)), w = $e(R);
|
|
2889
2903
|
return We(() => {
|
|
2890
|
-
const
|
|
2891
|
-
|
|
2904
|
+
const f = ve(e);
|
|
2905
|
+
w.current = f, S(f);
|
|
2892
2906
|
}, [e]), /* @__PURE__ */ se(
|
|
2893
|
-
|
|
2907
|
+
_e,
|
|
2894
2908
|
{
|
|
2895
|
-
...
|
|
2909
|
+
...Bt(y, [
|
|
2910
|
+
"relativeToViewport",
|
|
2911
|
+
"constrainTo",
|
|
2912
|
+
"renderPicker",
|
|
2913
|
+
"overlayProps"
|
|
2914
|
+
]),
|
|
2896
2915
|
type: "date",
|
|
2897
|
-
value:
|
|
2898
|
-
autoFocus:
|
|
2899
|
-
disabled:
|
|
2916
|
+
value: R,
|
|
2917
|
+
autoFocus: i,
|
|
2918
|
+
disabled: p,
|
|
2900
2919
|
readOnly: l,
|
|
2901
2920
|
dir: g ? "rtl" : "ltr",
|
|
2902
|
-
className: ie(
|
|
2903
|
-
|
|
2921
|
+
className: ie(
|
|
2922
|
+
"h-full min-h-8 w-full",
|
|
2923
|
+
Ft(h),
|
|
2924
|
+
y?.className,
|
|
2925
|
+
v
|
|
2926
|
+
),
|
|
2927
|
+
style: { ...y?.style, ...C },
|
|
2904
2928
|
"data-slot": "date-editor",
|
|
2905
|
-
onChange: (
|
|
2906
|
-
|
|
2929
|
+
onChange: (f) => {
|
|
2930
|
+
w.current = f.target.value, S(f.target.value), r?.(f.target.value || null, f);
|
|
2907
2931
|
},
|
|
2908
|
-
onBlur: (
|
|
2909
|
-
|
|
2932
|
+
onBlur: (f) => {
|
|
2933
|
+
y?.onBlur?.(f), o?.(w.current || null, f);
|
|
2910
2934
|
},
|
|
2911
|
-
onKeyDown: (
|
|
2912
|
-
|
|
2935
|
+
onKeyDown: (f) => {
|
|
2936
|
+
y?.onKeyDown?.(f), c?.(f), !f.defaultPrevented && (f.key === "Escape" ? (f.preventDefault(), t?.(f)) : f.key === "Enter" ? (f.preventDefault(), o?.(w.current || null, f)) : f.key === "Tab" && (f.preventDefault(), a?.(!0, f.shiftKey ? -1 : 1, f)));
|
|
2913
2937
|
}
|
|
2914
2938
|
}
|
|
2915
2939
|
);
|
|
2916
2940
|
}
|
|
2917
|
-
|
|
2941
|
+
Wt.defaultProps = {
|
|
2918
2942
|
relativeToViewport: !1
|
|
2919
2943
|
};
|
|
2920
2944
|
export {
|
|
2921
|
-
|
|
2945
|
+
Wt as default
|
|
2922
2946
|
};
|