@aiquants/resize-panels 0.2.0 → 0.3.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.
- package/dist/Panel.d.ts +1 -1
- package/dist/Panel.d.ts.map +1 -1
- package/dist/index.es.js +1230 -1230
- package/dist/index.umd.js +4 -4
- package/dist/types.d.ts +3 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Vt, { createContext as Yt, useContext as qt, useCallback as
|
|
1
|
+
import Vt, { createContext as Yt, useContext as qt, useCallback as pe, useMemo as ue, useReducer as Xt, useState as Se, useRef as me, useLayoutEffect as Ye, useEffect as fe, memo as nt, useSyncExternalStore as Et } from "react";
|
|
2
2
|
import { createPortal as Jt } from "react-dom";
|
|
3
3
|
const Mt = Yt(null), it = () => {
|
|
4
4
|
const e = qt(Mt);
|
|
@@ -10,10 +10,10 @@ const Mt = Yt(null), it = () => {
|
|
|
10
10
|
return e;
|
|
11
11
|
const r = 10 ** t, o = e * r, i = Math.floor(o), s = o - i, a = Number.EPSILON * Math.max(1, Math.abs(o));
|
|
12
12
|
return s < 0.5 - a ? i / r : s > 0.5 + a ? (i + 1) / r : (i % 2 === 0 ? i : i + 1) / r;
|
|
13
|
-
}, _t = 12, dt = 8, Zt = 8, Qt = 8, It = 0.05, At = 10, Kt = 0.05, er = 20, tr = 0.05, Xe = 0, ut = 0, Nt = 6,
|
|
13
|
+
}, _t = 12, dt = 8, Zt = 8, Qt = 8, It = 0.05, At = 10, Kt = 0.05, er = 20, tr = 0.05, Xe = 0, ut = 0, Nt = 6, ge = (e, t) => t <= 0 ? 0 : Rt(e / t * 100, Nt), Be = (e, t) => !e || t <= 0 ? 0 : e / 100 * t, Le = (e, t = "percentage") => {
|
|
14
14
|
if (e !== void 0)
|
|
15
15
|
return typeof e == "number" ? { value: e, unit: t } : e;
|
|
16
|
-
}, ft = (e, t) => e ? e.unit === "percentage" ? e.value / 100 * t : e.value : 0,
|
|
16
|
+
}, ft = (e, t) => e ? e.unit === "percentage" ? e.value / 100 * t : e.value : 0, se = (e, t, r) => e ? typeof e == "number" ? e / 100 * r : e.unit === "pixels" ? e.value : e.value / 100 * r : t, he = (e, t, r) => Math.min(Math.max(e, t), r), Ke = (e) => {
|
|
17
17
|
if (!Number.isFinite(e) || e <= 0)
|
|
18
18
|
return ut;
|
|
19
19
|
const t = e * It, r = Math.min(_t, At, t);
|
|
@@ -25,8 +25,8 @@ const Mt = Yt(null), it = () => {
|
|
|
25
25
|
if (o.length === 0)
|
|
26
26
|
return t;
|
|
27
27
|
const i = [...o].sort((l, c) => {
|
|
28
|
-
const
|
|
29
|
-
return
|
|
28
|
+
const P = l.panel.pixelAdjustPriority ?? l.index + 1, z = c.panel.pixelAdjustPriority ?? c.index + 1;
|
|
29
|
+
return P === z ? l.index - c.index : P - z;
|
|
30
30
|
});
|
|
31
31
|
let s = t;
|
|
32
32
|
return (() => {
|
|
@@ -36,41 +36,41 @@ const Mt = Yt(null), it = () => {
|
|
|
36
36
|
const c = e[l];
|
|
37
37
|
if (!c || c.collapsed)
|
|
38
38
|
continue;
|
|
39
|
-
const
|
|
39
|
+
const P = Le(c.minSize, "pixels"), z = Le(c.maxSize, "pixels"), f = P ? ft(P, r) : 0, d = z ? ft(z, r) : r;
|
|
40
40
|
if (s > 0) {
|
|
41
41
|
if (Math.abs(c.size) <= 0 && (c.percentageSize ?? 0) <= 0)
|
|
42
42
|
continue;
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
43
|
+
const v = Math.max(0, d - c.size);
|
|
44
|
+
if (v <= 0)
|
|
45
45
|
continue;
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
46
|
+
const w = Math.min(v, s);
|
|
47
|
+
if (w <= 0)
|
|
48
48
|
continue;
|
|
49
|
-
const
|
|
49
|
+
const C = c.size + w, p = ge(C, r), x = c.collapsible ? C : c.sizeBeforeCollapse, k = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? C : c.measuredPixelSizeBeforeCollapse;
|
|
50
50
|
e[l] = {
|
|
51
51
|
...c,
|
|
52
|
-
size:
|
|
52
|
+
size: C,
|
|
53
53
|
percentageSize: p,
|
|
54
|
-
originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize :
|
|
55
|
-
sizeBeforeCollapse:
|
|
56
|
-
measuredPixelSizeBeforeCollapse:
|
|
57
|
-
}, s -=
|
|
54
|
+
originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : C,
|
|
55
|
+
sizeBeforeCollapse: x,
|
|
56
|
+
measuredPixelSizeBeforeCollapse: k
|
|
57
|
+
}, s -= w;
|
|
58
58
|
} else {
|
|
59
|
-
const h = Math.max(0, c.size -
|
|
59
|
+
const h = Math.max(0, c.size - f);
|
|
60
60
|
if (h <= 0)
|
|
61
61
|
continue;
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const v = Math.min(h, Math.abs(s));
|
|
63
|
+
if (v <= 0)
|
|
64
64
|
continue;
|
|
65
|
-
const
|
|
65
|
+
const w = c.size - v, C = ge(w, r), p = c.collapsible ? w : c.sizeBeforeCollapse, x = c.collapsible ? c.measuredPixelSizeBeforeCollapse ?? c.measuredPixelSize ?? w : c.measuredPixelSizeBeforeCollapse;
|
|
66
66
|
e[l] = {
|
|
67
67
|
...c,
|
|
68
|
-
size:
|
|
69
|
-
percentageSize:
|
|
70
|
-
originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize :
|
|
68
|
+
size: w,
|
|
69
|
+
percentageSize: C,
|
|
70
|
+
originalPixelSize: c.originalPixelSize !== void 0 ? c.originalPixelSize : w,
|
|
71
71
|
sizeBeforeCollapse: p,
|
|
72
|
-
measuredPixelSizeBeforeCollapse:
|
|
73
|
-
}, s +=
|
|
72
|
+
measuredPixelSizeBeforeCollapse: x
|
|
73
|
+
}, s += v;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
})(), s;
|
|
@@ -82,10 +82,10 @@ const Mt = Yt(null), it = () => {
|
|
|
82
82
|
}, we = (e, t) => {
|
|
83
83
|
const r = e.getBoundingClientRect(), o = typeof window < "u" ? window.getComputedStyle(e) : null, i = o ? Fe(o.borderLeftWidth) + Fe(o.borderRightWidth) : 0, s = o ? Fe(o.borderTopWidth) + Fe(o.borderBottomWidth) : 0;
|
|
84
84
|
if (t === "horizontal") {
|
|
85
|
-
const
|
|
85
|
+
const P = r.width > 0 ? r.width : e.offsetWidth, z = r.width > 0 ? Math.max(0, r.width - i) : e.clientWidth, f = e.offsetWidth > 0 ? e.offsetWidth : e.clientWidth + i;
|
|
86
86
|
return {
|
|
87
|
-
inner:
|
|
88
|
-
outer:
|
|
87
|
+
inner: z > 0 ? z : Math.max(0, e.clientWidth),
|
|
88
|
+
outer: P > 0 ? P : Math.max(0, f)
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
const a = r.height > 0 ? r.height : e.offsetHeight, l = r.height > 0 ? Math.max(0, r.height - s) : e.clientHeight, c = e.offsetHeight > 0 ? e.offsetHeight : e.clientHeight + s;
|
|
@@ -109,115 +109,115 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
109
109
|
return console.warn("Failed to load panel layout:", t), null;
|
|
110
110
|
}
|
|
111
111
|
}, Je = (e, t) => {
|
|
112
|
-
const r = e.map((
|
|
113
|
-
if (
|
|
112
|
+
const r = e.map((d) => {
|
|
113
|
+
if (d.collapsed)
|
|
114
114
|
return {
|
|
115
|
-
...
|
|
115
|
+
...d,
|
|
116
116
|
size: 0,
|
|
117
117
|
percentageSize: 0
|
|
118
118
|
};
|
|
119
|
-
if (
|
|
120
|
-
const h =
|
|
121
|
-
let
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
124
|
-
|
|
119
|
+
if (d.sizeUnit === "pixels" || d.originalPixelSize !== void 0) {
|
|
120
|
+
const h = se(d.minSize, 0, t), v = se(d.maxSize, t, t), w = he(d.size, h, v);
|
|
121
|
+
let C = w, p = Math.abs(w - d.size) > Xe, x = d.size;
|
|
122
|
+
if (d.originalPixelSize !== void 0 && Math.abs(d.size - d.originalPixelSize) <= Xe && (x = d.originalPixelSize), x !== void 0) {
|
|
123
|
+
const k = he(x, h, v);
|
|
124
|
+
k > C + Xe && (C = k, p = !0);
|
|
125
125
|
}
|
|
126
126
|
if (p) {
|
|
127
|
-
const
|
|
127
|
+
const k = ge(C, t), $ = d.collapsible ? C : d.sizeBeforeCollapse, J = d.collapsible ? d.measuredPixelSizeBeforeCollapse ?? d.measuredPixelSize ?? C : d.measuredPixelSizeBeforeCollapse;
|
|
128
128
|
return {
|
|
129
|
-
...
|
|
130
|
-
size:
|
|
131
|
-
percentageSize:
|
|
132
|
-
sizeBeforeCollapse:
|
|
133
|
-
measuredPixelSizeBeforeCollapse:
|
|
129
|
+
...d,
|
|
130
|
+
size: C,
|
|
131
|
+
percentageSize: k,
|
|
132
|
+
sizeBeforeCollapse: $,
|
|
133
|
+
measuredPixelSizeBeforeCollapse: J
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
if (
|
|
138
|
-
const h =
|
|
137
|
+
if (d.sizeUnit === "percentage" && (!d.percentageSize || d.percentageSize <= 0) && d.size > 0) {
|
|
138
|
+
const h = ge(d.size, t);
|
|
139
139
|
return {
|
|
140
|
-
...
|
|
140
|
+
...d,
|
|
141
141
|
percentageSize: h
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
return
|
|
145
|
-
}), o = r.reduce((
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
144
|
+
return d;
|
|
145
|
+
}), o = r.reduce((d, h) => h.collapsed ? d : h.sizeUnit === "pixels" || h.originalPixelSize !== void 0 ? d + h.size : d, 0), i = () => {
|
|
146
|
+
const d = r.map((p, x) => ({ panel: p, index: x })).filter(({ panel: p }) => !p.collapsed && (p.sizeUnit === "pixels" || p.originalPixelSize !== void 0));
|
|
147
|
+
if (d.length === 0)
|
|
148
148
|
return r;
|
|
149
|
-
const h =
|
|
150
|
-
if (Math.abs(
|
|
149
|
+
const h = d.reduce((p, { panel: x }) => p + x.size, 0), v = t - h;
|
|
150
|
+
if (Math.abs(v) <= 0.1)
|
|
151
151
|
return r;
|
|
152
|
-
const
|
|
153
|
-
const
|
|
154
|
-
return
|
|
152
|
+
const w = [...d].sort((p, x) => {
|
|
153
|
+
const k = p.panel.pixelAdjustPriority ?? p.index + 1, $ = x.panel.pixelAdjustPriority ?? x.index + 1;
|
|
154
|
+
return k === $ ? p.index - x.index : k - $;
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
for (const { panel: p, index:
|
|
158
|
-
if (Math.abs(
|
|
156
|
+
let C = v;
|
|
157
|
+
for (const { panel: p, index: x } of w) {
|
|
158
|
+
if (Math.abs(C) <= 0.1)
|
|
159
159
|
break;
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
160
|
+
const k = se(p.minSize, 0, t), $ = se(p.maxSize, t, t), J = p.size;
|
|
161
|
+
if (C > 0) {
|
|
162
|
+
const H = Math.max(0, $ - J);
|
|
163
|
+
if (H <= 0)
|
|
164
164
|
continue;
|
|
165
|
-
const
|
|
166
|
-
r[
|
|
165
|
+
const O = Math.min(H, C), E = J + O, q = ge(E, t), F = p.collapsible ? E : p.sizeBeforeCollapse, Y = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? E : p.measuredPixelSizeBeforeCollapse;
|
|
166
|
+
r[x] = {
|
|
167
167
|
...p,
|
|
168
|
-
size:
|
|
169
|
-
percentageSize:
|
|
170
|
-
sizeBeforeCollapse:
|
|
171
|
-
measuredPixelSizeBeforeCollapse:
|
|
172
|
-
},
|
|
168
|
+
size: E,
|
|
169
|
+
percentageSize: q,
|
|
170
|
+
sizeBeforeCollapse: F,
|
|
171
|
+
measuredPixelSizeBeforeCollapse: Y
|
|
172
|
+
}, C -= O;
|
|
173
173
|
} else {
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
174
|
+
const H = Math.max(0, J - k);
|
|
175
|
+
if (H <= 0)
|
|
176
176
|
continue;
|
|
177
|
-
const
|
|
178
|
-
r[
|
|
177
|
+
const O = Math.min(H, Math.abs(C)), E = J - O, q = ge(E, t), F = p.collapsible ? E : p.sizeBeforeCollapse, Y = p.collapsible ? p.measuredPixelSizeBeforeCollapse ?? p.measuredPixelSize ?? E : p.measuredPixelSizeBeforeCollapse;
|
|
178
|
+
r[x] = {
|
|
179
179
|
...p,
|
|
180
|
-
size:
|
|
181
|
-
percentageSize:
|
|
182
|
-
sizeBeforeCollapse:
|
|
183
|
-
measuredPixelSizeBeforeCollapse:
|
|
184
|
-
},
|
|
180
|
+
size: E,
|
|
181
|
+
percentageSize: q,
|
|
182
|
+
sizeBeforeCollapse: F,
|
|
183
|
+
measuredPixelSizeBeforeCollapse: Y
|
|
184
|
+
}, C += O;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
return r;
|
|
188
|
-
}, s = r.reduce((
|
|
188
|
+
}, s = r.reduce((d, h, v) => (!h.collapsed && h.sizeUnit === "percentage" && h.originalPixelSize === void 0 && d.push(v), d), []);
|
|
189
189
|
if (s.length === 0)
|
|
190
190
|
return i();
|
|
191
|
-
const a = Math.max(0, t - o), l = s.map((
|
|
192
|
-
const h = r[
|
|
191
|
+
const a = Math.max(0, t - o), l = s.map((d) => {
|
|
192
|
+
const h = r[d];
|
|
193
193
|
return h.percentageSize !== void 0 && h.percentageSize > 0 ? Be(h.percentageSize, t) : h.size > 0 ? h.size : 0;
|
|
194
|
-
}), c = l.reduce((
|
|
194
|
+
}), c = l.reduce((d, h) => h > 0 ? d + h : d, 0);
|
|
195
195
|
if (c <= 0)
|
|
196
196
|
return i();
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
s.forEach((
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
if (
|
|
203
|
-
const
|
|
204
|
-
|
|
197
|
+
const P = [...r];
|
|
198
|
+
let z = 0;
|
|
199
|
+
s.forEach((d, h) => {
|
|
200
|
+
const v = P[d], w = l[h];
|
|
201
|
+
let C;
|
|
202
|
+
if (w > 0) {
|
|
203
|
+
const H = w / c;
|
|
204
|
+
C = a * H;
|
|
205
205
|
} else
|
|
206
|
-
|
|
207
|
-
const p =
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
...
|
|
212
|
-
size:
|
|
213
|
-
percentageSize:
|
|
214
|
-
sizeBeforeCollapse:
|
|
215
|
-
measuredPixelSizeBeforeCollapse:
|
|
206
|
+
C = v.size;
|
|
207
|
+
const p = se(v.minSize, 0, t), x = se(v.maxSize, t, t);
|
|
208
|
+
C = he(C, p, x), z += C;
|
|
209
|
+
const k = ge(C, t), $ = v.collapsible ? C : v.sizeBeforeCollapse, J = v.collapsible ? v.measuredPixelSizeBeforeCollapse ?? v.measuredPixelSize ?? C : v.measuredPixelSizeBeforeCollapse;
|
|
210
|
+
P[d] = {
|
|
211
|
+
...v,
|
|
212
|
+
size: C,
|
|
213
|
+
percentageSize: k,
|
|
214
|
+
sizeBeforeCollapse: $,
|
|
215
|
+
measuredPixelSizeBeforeCollapse: J
|
|
216
216
|
};
|
|
217
217
|
});
|
|
218
|
-
const
|
|
219
|
-
return Math.abs(
|
|
220
|
-
},
|
|
218
|
+
const f = a - z;
|
|
219
|
+
return Math.abs(f) > 0.1 && ot(P, f, t), Me(P);
|
|
220
|
+
}, Me = (e) => {
|
|
221
221
|
let t = 0;
|
|
222
222
|
for (const i of e)
|
|
223
223
|
i.collapsed || (t += Math.max(i.size, 0));
|
|
@@ -241,16 +241,16 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
241
241
|
percentageSize: 0,
|
|
242
242
|
measuredPercentageSize: i.measuredPercentageSize !== void 0 ? 0 : i.measuredPercentageSize
|
|
243
243
|
}) : i;
|
|
244
|
-
const s =
|
|
245
|
-
if (!(
|
|
244
|
+
const s = ge(i.size, t), a = i.measuredPercentageSize, P = (a !== void 0 ? Math.abs(a - s) : 1 / 0) < 1e-4 && a !== void 0 ? a : s, z = Rt(P, Nt), d = Math.abs((i.percentageSize ?? 0) - z) > 0 || i.percentageSize === void 0, h = i.sizeBeforeCollapse === void 0 || i.sizeBeforeCollapse !== i.size, v = i.collapsible && h, w = i.measuredPixelSize ?? i.size, C = i.collapsible && (i.measuredPixelSizeBeforeCollapse === void 0 || i.measuredPixelSizeBeforeCollapse !== w);
|
|
245
|
+
if (!(d || v || C))
|
|
246
246
|
return i;
|
|
247
247
|
r = !0;
|
|
248
|
-
const p =
|
|
248
|
+
const p = v ? i.size : i.sizeBeforeCollapse, x = C ? w : i.measuredPixelSizeBeforeCollapse;
|
|
249
249
|
return {
|
|
250
250
|
...i,
|
|
251
|
-
percentageSize:
|
|
251
|
+
percentageSize: z,
|
|
252
252
|
sizeBeforeCollapse: p,
|
|
253
|
-
measuredPixelSizeBeforeCollapse:
|
|
253
|
+
measuredPixelSizeBeforeCollapse: x
|
|
254
254
|
};
|
|
255
255
|
});
|
|
256
256
|
return r ? o : e;
|
|
@@ -259,9 +259,9 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
259
259
|
return !1;
|
|
260
260
|
const r = [];
|
|
261
261
|
let o = 0;
|
|
262
|
-
for (let
|
|
263
|
-
const
|
|
264
|
-
!
|
|
262
|
+
for (let z = 0; z < e.length; z += 1) {
|
|
263
|
+
const f = e[z];
|
|
264
|
+
!f || f.collapsed || (r.push(z), o += f.size);
|
|
265
265
|
}
|
|
266
266
|
if (r.length === 0)
|
|
267
267
|
return !1;
|
|
@@ -269,63 +269,63 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
269
269
|
if (Math.abs(i) <= 0)
|
|
270
270
|
return !1;
|
|
271
271
|
let s = !1;
|
|
272
|
-
const a = (
|
|
273
|
-
const
|
|
272
|
+
const a = (z) => {
|
|
273
|
+
const f = e[z], d = se(f.minSize, 0, t), h = se(f.maxSize, t, t), v = f.sizeUnit === "percentage" && f.originalPixelSize === void 0;
|
|
274
274
|
return {
|
|
275
|
-
index:
|
|
276
|
-
minSize:
|
|
275
|
+
index: z,
|
|
276
|
+
minSize: d,
|
|
277
277
|
maxSize: h,
|
|
278
|
-
isFlexible:
|
|
278
|
+
isFlexible: v
|
|
279
279
|
};
|
|
280
|
-
}, l = (
|
|
281
|
-
if (!Number.isFinite(
|
|
280
|
+
}, l = (z, f) => {
|
|
281
|
+
if (!Number.isFinite(f) || Math.abs(f) <= 0)
|
|
282
282
|
return;
|
|
283
|
-
const
|
|
284
|
-
if (!
|
|
283
|
+
const d = e[z];
|
|
284
|
+
if (!d)
|
|
285
285
|
return;
|
|
286
|
-
const h = Math.max(0,
|
|
287
|
-
if (Math.abs(h -
|
|
286
|
+
const h = Math.max(0, d.size + f);
|
|
287
|
+
if (Math.abs(h - d.size) <= 0)
|
|
288
288
|
return;
|
|
289
|
-
const
|
|
290
|
-
e[
|
|
291
|
-
...
|
|
289
|
+
const v = ge(h, t), w = d.collapsible ? h : d.sizeBeforeCollapse, C = d.collapsible ? d.measuredPixelSizeBeforeCollapse ?? d.measuredPixelSize ?? h : d.measuredPixelSizeBeforeCollapse;
|
|
290
|
+
e[z] = {
|
|
291
|
+
...d,
|
|
292
292
|
size: h,
|
|
293
|
-
percentageSize:
|
|
294
|
-
sizeBeforeCollapse:
|
|
295
|
-
measuredPixelSizeBeforeCollapse:
|
|
293
|
+
percentageSize: v,
|
|
294
|
+
sizeBeforeCollapse: w,
|
|
295
|
+
measuredPixelSizeBeforeCollapse: C,
|
|
296
296
|
measuredPixelSize: void 0,
|
|
297
297
|
measuredPercentageSize: void 0
|
|
298
|
-
}, i -=
|
|
299
|
-
}, c = (
|
|
300
|
-
for (const
|
|
298
|
+
}, i -= f, s = !0;
|
|
299
|
+
}, c = (z) => {
|
|
300
|
+
for (const f of z) {
|
|
301
301
|
if (Math.abs(i) <= 0)
|
|
302
302
|
break;
|
|
303
|
-
const
|
|
304
|
-
if (!
|
|
303
|
+
const d = e[f.index];
|
|
304
|
+
if (!d || d.collapsed)
|
|
305
305
|
continue;
|
|
306
|
-
const h =
|
|
306
|
+
const h = d.size;
|
|
307
307
|
if (i > 0) {
|
|
308
|
-
const
|
|
309
|
-
if (
|
|
308
|
+
const v = Math.max(0, f.maxSize - h);
|
|
309
|
+
if (v <= 0)
|
|
310
310
|
continue;
|
|
311
|
-
const
|
|
312
|
-
if (
|
|
311
|
+
const w = Math.min(v, i);
|
|
312
|
+
if (w <= 0)
|
|
313
313
|
continue;
|
|
314
|
-
l(
|
|
314
|
+
l(f.index, w);
|
|
315
315
|
} else {
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
316
|
+
const v = Math.max(0, h - f.minSize);
|
|
317
|
+
if (v <= 0)
|
|
318
318
|
continue;
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
319
|
+
const w = Math.min(v, Math.abs(i));
|
|
320
|
+
if (w <= 0)
|
|
321
321
|
continue;
|
|
322
|
-
l(
|
|
322
|
+
l(f.index, -w);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
},
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
328
|
-
i = ot(e, i, t), Math.abs(i -
|
|
325
|
+
}, P = r.map((z) => a(z)).filter((z) => z.isFlexible);
|
|
326
|
+
if (P.length > 0 && c(P), Math.abs(i) > 0) {
|
|
327
|
+
const z = i;
|
|
328
|
+
i = ot(e, i, t), Math.abs(i - z) > 0 && (s = !0);
|
|
329
329
|
}
|
|
330
330
|
return s;
|
|
331
331
|
}, gt = (e, t, r) => {
|
|
@@ -359,73 +359,73 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
359
359
|
case "UNREGISTER_PANEL": {
|
|
360
360
|
console.log("UNREGISTER_PANEL", t.id);
|
|
361
361
|
const r = e.filter((o) => o.id !== t.id);
|
|
362
|
-
return
|
|
362
|
+
return Me(r);
|
|
363
363
|
}
|
|
364
364
|
case "RESIZE_PANELS": {
|
|
365
365
|
console.log("RESIZE_PANELS", t.leftId, t.rightId, t.leftSize, t.rightSize);
|
|
366
|
-
const r = e.findIndex((
|
|
366
|
+
const r = e.findIndex((_) => _.id === t.leftId), o = e.findIndex((_) => _.id === t.rightId);
|
|
367
367
|
if (r === -1 || o === -1) return e;
|
|
368
368
|
const i = [...e], s = i[r], a = i[o];
|
|
369
369
|
if (s.collapsed || a.collapsed || t.leftSize === s.size && t.rightSize === a.size)
|
|
370
370
|
return e;
|
|
371
|
-
const l = t.containerSize ?? e.reduce((
|
|
372
|
-
let
|
|
373
|
-
Number.isFinite(
|
|
374
|
-
const
|
|
375
|
-
min: Math.max(c,
|
|
376
|
-
max: Math.min(
|
|
377
|
-
}),
|
|
378
|
-
min: Math.max(
|
|
379
|
-
max: Math.min(
|
|
380
|
-
}),
|
|
381
|
-
let
|
|
382
|
-
if (
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
371
|
+
const l = t.containerSize ?? e.reduce((_, D) => _ + D.size, 0), c = se(s.minSize, 0, l), P = se(s.maxSize, l, l), z = se(a.minSize, 0, l), f = se(a.maxSize, l, l), d = s.size + a.size, h = e.reduce((_, D) => D.collapsed ? _ : _ + D.size, 0), v = h - d, w = c + z, C = P + f, p = he(t.leftSize + t.rightSize, w, C);
|
|
372
|
+
let x = l > 0 ? l - v : p;
|
|
373
|
+
Number.isFinite(x) || (x = p);
|
|
374
|
+
const k = he(Math.max(p, x), w, C), $ = (_) => ({
|
|
375
|
+
min: Math.max(c, _ - f),
|
|
376
|
+
max: Math.min(P, _ - z)
|
|
377
|
+
}), J = (_) => ({
|
|
378
|
+
min: Math.max(z, _ - P),
|
|
379
|
+
max: Math.min(f, _ - c)
|
|
380
|
+
}), H = Math.abs(t.leftSize - s.size), O = Math.abs(t.rightSize - a.size), E = H >= O;
|
|
381
|
+
let q = s.size, F = a.size;
|
|
382
|
+
if (E) {
|
|
383
|
+
const _ = $(k);
|
|
384
|
+
if (_.min > _.max)
|
|
385
385
|
return e;
|
|
386
|
-
const D = he(t.leftSize,
|
|
387
|
-
if (
|
|
386
|
+
const D = he(t.leftSize, _.min, _.max), y = k - D;
|
|
387
|
+
if (y < z || y > f)
|
|
388
388
|
return e;
|
|
389
|
-
|
|
389
|
+
q = D, F = y;
|
|
390
390
|
} else {
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
391
|
+
const _ = J(k);
|
|
392
|
+
if (_.min > _.max)
|
|
393
393
|
return e;
|
|
394
|
-
const D = he(t.rightSize,
|
|
395
|
-
if (
|
|
394
|
+
const D = he(t.rightSize, _.min, _.max), y = k - D;
|
|
395
|
+
if (y < c || y > P)
|
|
396
396
|
return e;
|
|
397
|
-
|
|
397
|
+
F = D, q = y;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
400
|
-
if (
|
|
399
|
+
const Y = q + F;
|
|
400
|
+
if (k !== Y)
|
|
401
401
|
return e;
|
|
402
|
-
const te = h - s.size - a.size +
|
|
402
|
+
const te = h - s.size - a.size + Y, V = l > 0 ? l : te, K = V > 0 ? ge(q, V) : 0, W = V > 0 ? ge(F, V) : 0;
|
|
403
403
|
return i[r] = {
|
|
404
404
|
...s,
|
|
405
|
-
size:
|
|
406
|
-
percentageSize:
|
|
407
|
-
sizeBeforeCollapse: s.collapsible ?
|
|
405
|
+
size: q,
|
|
406
|
+
percentageSize: K,
|
|
407
|
+
sizeBeforeCollapse: s.collapsible ? q : s.sizeBeforeCollapse,
|
|
408
408
|
measuredPixelSize: void 0,
|
|
409
409
|
measuredPercentageSize: void 0
|
|
410
410
|
}, i[o] = {
|
|
411
411
|
...a,
|
|
412
|
-
size:
|
|
413
|
-
percentageSize:
|
|
414
|
-
sizeBeforeCollapse: a.collapsible ?
|
|
412
|
+
size: F,
|
|
413
|
+
percentageSize: W,
|
|
414
|
+
sizeBeforeCollapse: a.collapsible ? F : a.sizeBeforeCollapse,
|
|
415
415
|
measuredPixelSize: void 0,
|
|
416
416
|
measuredPercentageSize: void 0
|
|
417
|
-
}, l > 0 && He(i, l) ?
|
|
417
|
+
}, l > 0 && He(i, l) ? Me(i) : i;
|
|
418
418
|
}
|
|
419
419
|
case "SET_PANELS":
|
|
420
|
-
return console.log("SET_PANELS", t.panels),
|
|
420
|
+
return console.log("SET_PANELS", t.panels), Me(t.panels);
|
|
421
421
|
case "CONTAINER_RESIZED": {
|
|
422
422
|
console.log("CONTAINER_RESIZED", t.containerSize);
|
|
423
423
|
const r = Je(e, t.containerSize);
|
|
424
|
-
return t.containerSize > 0 && He(r, t.containerSize) ?
|
|
424
|
+
return t.containerSize > 0 && He(r, t.containerSize) ? Me(r) : r;
|
|
425
425
|
}
|
|
426
426
|
case "COLLAPSE_PANEL": {
|
|
427
427
|
console.log("COLLAPSE_PANEL", t.id);
|
|
428
|
-
const r = e.findIndex((
|
|
428
|
+
const r = e.findIndex((P) => P.id === t.id);
|
|
429
429
|
if (r === -1)
|
|
430
430
|
return e;
|
|
431
431
|
const o = e[r];
|
|
@@ -443,296 +443,296 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
443
443
|
}, l = [...e];
|
|
444
444
|
l[r] = a;
|
|
445
445
|
const c = Je(l, t.containerSize);
|
|
446
|
-
return t.containerSize > 0 && He(c, t.containerSize) ?
|
|
446
|
+
return t.containerSize > 0 && He(c, t.containerSize) ? Me(c) : c;
|
|
447
447
|
}
|
|
448
448
|
case "EXPAND_PANEL": {
|
|
449
449
|
console.log("EXPAND_PANEL", t.id, t.targetSize);
|
|
450
|
-
const r = e.findIndex((
|
|
450
|
+
const r = e.findIndex((C) => C.id === t.id);
|
|
451
451
|
if (r === -1)
|
|
452
452
|
return e;
|
|
453
453
|
const o = t.containerSize, i = e[r];
|
|
454
454
|
if (!(i.collapsible && i.collapsed))
|
|
455
455
|
return e;
|
|
456
|
-
const a = [t.targetSize, i.sizeBeforeCollapse, i.measuredPixelSizeBeforeCollapse, i.originalPixelSize].find((
|
|
456
|
+
const a = [t.targetSize, i.sizeBeforeCollapse, i.measuredPixelSizeBeforeCollapse, i.originalPixelSize].find((C) => C !== void 0) ?? 0, l = se(i.minSize, 0, o), c = se(i.maxSize, o, o), P = he(a, l, c), z = ge(P, o), f = i.measuredPixelSizeBeforeCollapse ?? P, d = ge(f, o), h = {
|
|
457
457
|
...i,
|
|
458
458
|
collapsed: !1,
|
|
459
|
-
size:
|
|
460
|
-
percentageSize:
|
|
461
|
-
sizeBeforeCollapse:
|
|
462
|
-
measuredPixelSize:
|
|
463
|
-
measuredPixelSizeBeforeCollapse:
|
|
464
|
-
measuredPercentageSize:
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
const
|
|
468
|
-
return o > 0 && He(
|
|
459
|
+
size: P,
|
|
460
|
+
percentageSize: z,
|
|
461
|
+
sizeBeforeCollapse: P,
|
|
462
|
+
measuredPixelSize: P,
|
|
463
|
+
measuredPixelSizeBeforeCollapse: f,
|
|
464
|
+
measuredPercentageSize: d
|
|
465
|
+
}, v = [...e];
|
|
466
|
+
v[r] = h;
|
|
467
|
+
const w = Je(v, o);
|
|
468
|
+
return o > 0 && He(w, o) ? Me(w) : w;
|
|
469
469
|
}
|
|
470
470
|
default:
|
|
471
471
|
return e;
|
|
472
472
|
}
|
|
473
473
|
}, ar = ({ direction: e, style: t, onLayout: r, autoSaveId: o, showDebugInfo: i = !1 }) => {
|
|
474
|
-
const [s, a] = Xt(sr, []), [l, c] =
|
|
474
|
+
const [s, a] = Xt(sr, []), [l, c] = Se({ width: 0, height: 0 }), [P, z] = Se(!1), [f, d] = Se(!1), [h, v] = Se(null), [w, C] = Se({}), [p, x] = Se({}), k = me(null), $ = me(r), J = me(!1), H = me(0), O = me(l);
|
|
475
475
|
Ye(() => {
|
|
476
|
-
if (!
|
|
477
|
-
const
|
|
478
|
-
for (const
|
|
479
|
-
const
|
|
480
|
-
c((G) => (!
|
|
476
|
+
if (!k.current) return;
|
|
477
|
+
const M = new ResizeObserver((n) => {
|
|
478
|
+
for (const S of n) {
|
|
479
|
+
const R = S.target, A = R ? we(R, "horizontal") : null, ee = R ? we(R, "vertical") : null, m = A ? A.inner : 0, b = ee ? ee.inner : 0, B = S.contentRect.width, g = S.contentRect.height, I = m > 0 ? m : B, j = b > 0 ? b : g;
|
|
480
|
+
c((G) => (!P && I > 0 && j > 0 && z(!0), G.width === I && G.height === j ? G : { width: I, height: j }));
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
|
-
return
|
|
484
|
-
}, [
|
|
485
|
-
const
|
|
486
|
-
if (
|
|
487
|
-
const
|
|
488
|
-
a({ type: "CONTAINER_RESIZED", containerSize:
|
|
483
|
+
return M.observe(k.current), () => M.disconnect();
|
|
484
|
+
}, [P]), Ye(() => {
|
|
485
|
+
const M = O.current, n = l, S = e === "horizontal" ? Math.abs(M.width - n.width) > 0 : Math.abs(M.height - n.height) > 0;
|
|
486
|
+
if (f && S) {
|
|
487
|
+
const R = e === "horizontal" ? n.width : n.height;
|
|
488
|
+
a({ type: "CONTAINER_RESIZED", containerSize: R, direction: e });
|
|
489
489
|
}
|
|
490
|
-
|
|
491
|
-
}, [l,
|
|
492
|
-
const
|
|
490
|
+
O.current = n;
|
|
491
|
+
}, [l, f, e]);
|
|
492
|
+
const E = pe(() => {
|
|
493
493
|
console.log("panels[0]?.id", s[0]?.id);
|
|
494
|
-
const
|
|
495
|
-
if (
|
|
494
|
+
const M = s.some((u) => {
|
|
495
|
+
if (u.collapsed || u.sizeUnit !== "percentage")
|
|
496
496
|
return !1;
|
|
497
|
-
const
|
|
498
|
-
return
|
|
499
|
-
}), n = e === "horizontal" ? l.width : l.height,
|
|
500
|
-
if (h || !
|
|
497
|
+
const U = u.collapsible ? u.sizeBeforeCollapse ?? u.measuredPixelSizeBeforeCollapse ?? u.originalPixelSize ?? u.measuredPixelSize ?? 0 : u.measuredPixelSize ?? u.originalPixelSize ?? u.size, le = u.percentageSize !== void 0 && u.percentageSize > 0;
|
|
498
|
+
return u.size <= 0 && (U > 0 || le);
|
|
499
|
+
}), n = e === "horizontal" ? l.width : l.height, S = n > 0;
|
|
500
|
+
if (h || !S || !(s.length > 0 && (s.length !== H.current || !f || M)))
|
|
501
501
|
return;
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
const
|
|
502
|
+
const ee = s.filter((u) => !u.collapsed && (u.originalPixelSize !== void 0 || u.sizeUnit === "pixels")).reduce((u, U) => U.originalPixelSize !== void 0 ? u + U.originalPixelSize : u + U.size, 0), m = s.filter((u) => u.sizeUnit === "percentage" && !u.collapsed), b = m.map((u) => u.id), B = m.map((u) => u.percentageSize !== void 0 && u.percentageSize > 0 ? Be(u.percentageSize, n) : u.size > 0 ? u.size : 0), g = B.reduce((u, U) => u + U, 0), I = n - ee, j = Math.max(0, I), G = j > 0, Q = s.map((u) => {
|
|
503
|
+
if (u.collapsed) {
|
|
504
|
+
const U = u.sizeBeforeCollapse ?? u.measuredPixelSizeBeforeCollapse ?? u.originalPixelSize ?? (u.sizeUnit === "pixels" ? u.size : void 0), le = u.sizeUnit === "percentage" && u.percentageSize !== void 0 ? Be(u.percentageSize, n) : void 0, oe = U ?? le ?? 0, ae = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? oe;
|
|
505
505
|
return {
|
|
506
|
-
...
|
|
506
|
+
...u,
|
|
507
507
|
size: 0,
|
|
508
508
|
percentageSize: 0,
|
|
509
|
-
sizeBeforeCollapse:
|
|
510
|
-
measuredPixelSizeBeforeCollapse:
|
|
509
|
+
sizeBeforeCollapse: oe,
|
|
510
|
+
measuredPixelSizeBeforeCollapse: ae
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
...
|
|
516
|
-
size:
|
|
517
|
-
percentageSize:
|
|
513
|
+
if (u.sizeUnit === "pixels" || u.originalPixelSize !== void 0) {
|
|
514
|
+
const U = u.size, le = n > 0 ? ge(U, n) : 0, oe = {
|
|
515
|
+
...u,
|
|
516
|
+
size: U,
|
|
517
|
+
percentageSize: le
|
|
518
518
|
};
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
|
|
519
|
+
if (u.collapsible) {
|
|
520
|
+
const ae = u.sizeBeforeCollapse ?? U, ze = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? ae;
|
|
521
|
+
oe.sizeBeforeCollapse = ae, oe.measuredPixelSizeBeforeCollapse = ze;
|
|
522
522
|
}
|
|
523
|
-
return
|
|
523
|
+
return oe;
|
|
524
524
|
}
|
|
525
|
-
if (
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
525
|
+
if (u.sizeUnit === "percentage") {
|
|
526
|
+
const U = b.indexOf(u.id), le = U !== -1 ? B[U] : 0, oe = se(u.minSize, 0, n), ae = se(u.maxSize, n, n), ze = Math.max(
|
|
527
|
+
oe,
|
|
528
|
+
u.sizeBeforeCollapse ?? 0,
|
|
529
|
+
u.measuredPixelSizeBeforeCollapse ?? 0,
|
|
530
|
+
u.measuredPixelSize ?? 0,
|
|
531
|
+
u.originalPixelSize ?? 0,
|
|
532
|
+
u.size > 0 ? u.size : 0,
|
|
533
|
+
u.percentageSize !== void 0 ? Be(u.percentageSize, n) : 0,
|
|
534
534
|
1
|
|
535
|
-
), xe =
|
|
536
|
-
let
|
|
535
|
+
), xe = le > 0 ? le : ze;
|
|
536
|
+
let de;
|
|
537
537
|
if (!G)
|
|
538
|
-
|
|
539
|
-
else if (
|
|
540
|
-
const Pe = xe /
|
|
541
|
-
|
|
538
|
+
de = oe;
|
|
539
|
+
else if (U !== -1 && g > 0) {
|
|
540
|
+
const Pe = xe / g, Ce = j * Pe;
|
|
541
|
+
de = he(Ce, oe, ae);
|
|
542
542
|
} else {
|
|
543
|
-
const Pe =
|
|
544
|
-
|
|
543
|
+
const Pe = u.percentageSize !== void 0 ? Be(u.percentageSize, n) : u.size, Ce = Pe > 0 ? Pe : xe;
|
|
544
|
+
de = he(Ce, oe, ae);
|
|
545
545
|
}
|
|
546
|
-
const
|
|
547
|
-
...
|
|
548
|
-
size:
|
|
549
|
-
percentageSize:
|
|
546
|
+
const Re = n > 0 ? ge(de, n) : 0, be = {
|
|
547
|
+
...u,
|
|
548
|
+
size: de,
|
|
549
|
+
percentageSize: Re
|
|
550
550
|
};
|
|
551
|
-
if (
|
|
552
|
-
const Pe =
|
|
553
|
-
|
|
551
|
+
if (u.collapsible) {
|
|
552
|
+
const Pe = u.sizeBeforeCollapse ?? de, Ce = u.measuredPixelSizeBeforeCollapse ?? u.measuredPixelSize ?? Pe;
|
|
553
|
+
be.sizeBeforeCollapse = Pe, be.measuredPixelSizeBeforeCollapse = Ce;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return be;
|
|
556
556
|
}
|
|
557
|
-
return
|
|
558
|
-
}),
|
|
559
|
-
for (let
|
|
560
|
-
const
|
|
561
|
-
|
|
557
|
+
return u;
|
|
558
|
+
}), ie = [];
|
|
559
|
+
for (let u = 0; u < Q.length; u += 1) {
|
|
560
|
+
const U = Q[u];
|
|
561
|
+
U.sizeUnit === "percentage" && !U.collapsed && ie.push(u);
|
|
562
562
|
}
|
|
563
|
-
const
|
|
564
|
-
Math.abs(
|
|
565
|
-
}, [s, e, l.width, l.height,
|
|
566
|
-
|
|
567
|
-
const
|
|
568
|
-
if (
|
|
569
|
-
return
|
|
570
|
-
const j =
|
|
571
|
-
return
|
|
572
|
-
}, 0) : null,
|
|
573
|
-
if (
|
|
574
|
-
return
|
|
575
|
-
const j =
|
|
576
|
-
return
|
|
577
|
-
}, 0) : null,
|
|
563
|
+
const Z = ie.reduce((u, U) => u + Q[U].size, 0), re = I - Z;
|
|
564
|
+
Math.abs(re) > 0 && ot(Q, re, n), a({ type: "SET_PANELS", panels: Q }), H.current = s.length, d(!0);
|
|
565
|
+
}, [s, e, l.width, l.height, f, h]);
|
|
566
|
+
fe(() => {
|
|
567
|
+
const M = e === "horizontal" ? l.width : l.height, n = M > 0, S = n && s.length > 0, R = S ? s.reduce((g, I) => {
|
|
568
|
+
if (I.collapsed)
|
|
569
|
+
return g;
|
|
570
|
+
const j = se(I.minSize, 0, M);
|
|
571
|
+
return g + Math.max(0, j);
|
|
572
|
+
}, 0) : null, A = S ? s.reduce((g, I) => {
|
|
573
|
+
if (I.collapsed)
|
|
574
|
+
return g;
|
|
575
|
+
const j = se(I.maxSize, M, M);
|
|
576
|
+
return g + Math.max(0, j);
|
|
577
|
+
}, 0) : null, ee = R ?? h?.totalMinimumSize ?? null, m = A ?? h?.totalMaximumSize ?? null;
|
|
578
578
|
if (!n) {
|
|
579
|
-
h &&
|
|
580
|
-
reason:
|
|
579
|
+
h && v((g) => !g || g.availableContainerSize === M ? g : {
|
|
580
|
+
reason: g.reason,
|
|
581
581
|
// totalMinimumSize: previous.totalMinimumSize,
|
|
582
582
|
// totalMaximumSize: previous.totalMaximumSize,
|
|
583
583
|
totalMinimumSize: null,
|
|
584
584
|
totalMaximumSize: null,
|
|
585
|
-
availableContainerSize:
|
|
585
|
+
availableContainerSize: M
|
|
586
586
|
});
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
591
|
-
const
|
|
592
|
-
reason:
|
|
593
|
-
totalMinimumSize:
|
|
594
|
-
totalMaximumSize:
|
|
595
|
-
availableContainerSize:
|
|
589
|
+
const b = ee !== null && ee - M > Number.EPSILON, B = m !== null && M - m > Number.EPSILON;
|
|
590
|
+
if (b || B) {
|
|
591
|
+
const I = {
|
|
592
|
+
reason: b ? "minimum-exceeded" : "maximum-insufficient",
|
|
593
|
+
totalMinimumSize: ee,
|
|
594
|
+
totalMaximumSize: m,
|
|
595
|
+
availableContainerSize: M
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
v((j) => j && j.reason === I.reason && Math.abs((j.totalMinimumSize ?? 0) - (I.totalMinimumSize ?? 0)) <= Number.EPSILON && Math.abs((j.totalMaximumSize ?? 0) - (I.totalMaximumSize ?? 0)) <= Number.EPSILON && Math.abs(j.availableContainerSize - I.availableContainerSize) <= Number.EPSILON ? j : I);
|
|
598
598
|
return;
|
|
599
599
|
}
|
|
600
600
|
if (h) {
|
|
601
|
-
const
|
|
602
|
-
(!
|
|
601
|
+
const g = h.reason === "minimum-exceeded", I = h.reason === "maximum-insufficient";
|
|
602
|
+
(!g || ee !== null) && (!I || m !== null) && !b && !B && v((Z) => Z && null);
|
|
603
603
|
}
|
|
604
|
-
}, [s, e, l.width, l.height, h]),
|
|
605
|
-
|
|
606
|
-
}, [
|
|
607
|
-
|
|
604
|
+
}, [s, e, l.width, l.height, h]), fe(() => {
|
|
605
|
+
E();
|
|
606
|
+
}, [E]), fe(() => {
|
|
607
|
+
$.current = r;
|
|
608
608
|
}, [r]);
|
|
609
|
-
const
|
|
609
|
+
const q = ue(() => s.map((M) => M.size), [s]);
|
|
610
610
|
Ye(() => {
|
|
611
|
-
|
|
612
|
-
}, [
|
|
613
|
-
if (o &&
|
|
614
|
-
const
|
|
615
|
-
ir(o,
|
|
611
|
+
q.length > 0 && $.current && $.current(q);
|
|
612
|
+
}, [q]), fe(() => {
|
|
613
|
+
if (o && q.length > 0) {
|
|
614
|
+
const M = setTimeout(() => {
|
|
615
|
+
ir(o, q);
|
|
616
616
|
}, 200);
|
|
617
|
-
return () => clearTimeout(
|
|
617
|
+
return () => clearTimeout(M);
|
|
618
618
|
}
|
|
619
|
-
}, [o,
|
|
620
|
-
if (!o || s.length === 0 ||
|
|
619
|
+
}, [o, q]), fe(() => {
|
|
620
|
+
if (!o || s.length === 0 || J.current)
|
|
621
621
|
return;
|
|
622
|
-
const
|
|
623
|
-
if (
|
|
622
|
+
const M = e === "horizontal" ? l.width : l.height;
|
|
623
|
+
if (M <= 0)
|
|
624
624
|
return;
|
|
625
625
|
const n = or(o);
|
|
626
626
|
if (n && n.length === s.length) {
|
|
627
|
-
const
|
|
628
|
-
const
|
|
627
|
+
const S = s.map((R, A) => {
|
|
628
|
+
const ee = se(R.minSize, 0, M), m = se(R.maxSize, M, M), b = he(n[A], ee, m), B = ge(b, M);
|
|
629
629
|
return {
|
|
630
|
-
...
|
|
631
|
-
size:
|
|
632
|
-
percentageSize:
|
|
630
|
+
...R,
|
|
631
|
+
size: b,
|
|
632
|
+
percentageSize: B
|
|
633
633
|
};
|
|
634
634
|
});
|
|
635
|
-
a({ type: "SET_PANELS", panels:
|
|
635
|
+
a({ type: "SET_PANELS", panels: S }), J.current = !0;
|
|
636
636
|
}
|
|
637
637
|
}, [o, s, l.width, l.height, e]);
|
|
638
|
-
const
|
|
639
|
-
a({ type: "REGISTER_PANEL", panel:
|
|
640
|
-
}, []),
|
|
641
|
-
a({ type: "UNREGISTER_PANEL", id:
|
|
642
|
-
if (!(
|
|
638
|
+
const F = pe((M) => {
|
|
639
|
+
a({ type: "REGISTER_PANEL", panel: M });
|
|
640
|
+
}, []), Y = pe((M) => {
|
|
641
|
+
a({ type: "UNREGISTER_PANEL", id: M }), C((n) => {
|
|
642
|
+
if (!(M in n))
|
|
643
643
|
return n;
|
|
644
|
-
const
|
|
645
|
-
return delete
|
|
644
|
+
const S = { ...n };
|
|
645
|
+
return delete S[M], S;
|
|
646
646
|
});
|
|
647
|
-
}, []), te =
|
|
648
|
-
(
|
|
649
|
-
const
|
|
650
|
-
if (!(
|
|
651
|
-
a({ type: "RESIZE_PANELS", leftId:
|
|
647
|
+
}, []), te = pe(
|
|
648
|
+
(M, n, S, R) => {
|
|
649
|
+
const A = e === "horizontal" ? l.width : l.height, ee = s.find((Z) => Z.id === M), m = s.find((Z) => Z.id === n);
|
|
650
|
+
if (!(ee && m)) {
|
|
651
|
+
a({ type: "RESIZE_PANELS", leftId: M, rightId: n, leftSize: S, rightSize: R, containerSize: A });
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
|
-
if (
|
|
654
|
+
if (ee.collapsed || m.collapsed)
|
|
655
655
|
return;
|
|
656
|
-
const
|
|
657
|
-
let j = he(
|
|
658
|
-
const
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
if (
|
|
662
|
-
const
|
|
663
|
-
if (
|
|
664
|
-
const
|
|
665
|
-
j +=
|
|
656
|
+
const b = se(ee.minSize, 0, A), B = se(ee.maxSize, A, A), g = se(m.minSize, 0, A), I = se(m.maxSize, A, A);
|
|
657
|
+
let j = he(S, b, B), G = he(R, g, I);
|
|
658
|
+
const Q = j + G, ie = S + R;
|
|
659
|
+
if (Q !== ie) {
|
|
660
|
+
const Z = ie - Q;
|
|
661
|
+
if (Z > 0) {
|
|
662
|
+
const re = B - j, u = I - G, U = re + u;
|
|
663
|
+
if (U > 0) {
|
|
664
|
+
const le = Math.min(Z * (re / U), re), oe = Math.min(Z - le, u);
|
|
665
|
+
j += le, G += oe;
|
|
666
666
|
}
|
|
667
|
-
} else if (
|
|
668
|
-
const
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
j -=
|
|
667
|
+
} else if (Z < 0) {
|
|
668
|
+
const re = Math.abs(Z), u = j - b, U = G - g, le = u + U;
|
|
669
|
+
if (le > 0) {
|
|
670
|
+
const oe = Math.min(re * (u / le), u), ae = Math.min(re - oe, U);
|
|
671
|
+
j -= oe, G -= ae;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
j = he(j,
|
|
675
|
+
j = he(j, b, B), G = he(G, g, I), console.assert(j + G === ie, "Total size after constraints should be close to the original total size.", { constrainedLeftSize: j, constrainedRightSize: G, originalTotalSize: ie }), a({ type: "RESIZE_PANELS", leftId: M, rightId: n, leftSize: j, rightSize: G, containerSize: A });
|
|
676
676
|
},
|
|
677
677
|
[e, l.width, l.height, s]
|
|
678
|
-
),
|
|
679
|
-
(
|
|
678
|
+
), V = pe(
|
|
679
|
+
(M) => {
|
|
680
680
|
const n = e === "horizontal" ? l.width : l.height;
|
|
681
|
-
a({ type: "COLLAPSE_PANEL", id:
|
|
681
|
+
a({ type: "COLLAPSE_PANEL", id: M, containerSize: n });
|
|
682
682
|
},
|
|
683
683
|
[e, l.width, l.height]
|
|
684
|
-
),
|
|
685
|
-
(
|
|
686
|
-
const
|
|
687
|
-
a({ type: "EXPAND_PANEL", id:
|
|
684
|
+
), K = pe(
|
|
685
|
+
(M, n) => {
|
|
686
|
+
const S = e === "horizontal" ? l.width : l.height;
|
|
687
|
+
a({ type: "EXPAND_PANEL", id: M, containerSize: S, targetSize: n });
|
|
688
688
|
},
|
|
689
689
|
[e, l.width, l.height]
|
|
690
|
-
),
|
|
691
|
-
(
|
|
690
|
+
), W = pe(
|
|
691
|
+
(M) => s.find((n) => n.id === M),
|
|
692
692
|
[s]
|
|
693
|
-
),
|
|
694
|
-
|
|
693
|
+
), _ = pe((M, n) => {
|
|
694
|
+
C((S) => {
|
|
695
695
|
if (n === null) {
|
|
696
|
-
if (!(
|
|
697
|
-
return
|
|
698
|
-
const
|
|
699
|
-
return delete
|
|
696
|
+
if (!(M in S))
|
|
697
|
+
return S;
|
|
698
|
+
const A = { ...S };
|
|
699
|
+
return delete A[M], A;
|
|
700
700
|
}
|
|
701
|
-
const
|
|
702
|
-
return
|
|
703
|
-
...
|
|
704
|
-
[
|
|
701
|
+
const R = S[M];
|
|
702
|
+
return R && R.pixelSize === n.pixelSize && R.percentageSize === n.percentageSize ? S : {
|
|
703
|
+
...S,
|
|
704
|
+
[M]: n
|
|
705
705
|
};
|
|
706
706
|
});
|
|
707
|
-
}, []), D =
|
|
708
|
-
|
|
707
|
+
}, []), D = pe((M, n) => {
|
|
708
|
+
x((S) => {
|
|
709
709
|
if (n === null) {
|
|
710
|
-
if (!(
|
|
711
|
-
return
|
|
712
|
-
const
|
|
713
|
-
return delete
|
|
710
|
+
if (!(M in S))
|
|
711
|
+
return S;
|
|
712
|
+
const A = { ...S };
|
|
713
|
+
return delete A[M], A;
|
|
714
714
|
}
|
|
715
|
-
const
|
|
716
|
-
return
|
|
717
|
-
...
|
|
718
|
-
[
|
|
715
|
+
const R = S[M];
|
|
716
|
+
return R && Math.abs(R.thickness - n.thickness) <= 0.25 && R.visible === n.visible && R.direction === n.direction && R.startPanelId === n.startPanelId && R.endPanelId === n.endPanelId ? S : {
|
|
717
|
+
...S,
|
|
718
|
+
[M]: n
|
|
719
719
|
};
|
|
720
720
|
});
|
|
721
|
-
}, []),
|
|
721
|
+
}, []), y = ue(
|
|
722
722
|
() => ({
|
|
723
723
|
direction: e,
|
|
724
724
|
panels: s,
|
|
725
725
|
containerSize: l,
|
|
726
|
-
isContainerReady:
|
|
726
|
+
isContainerReady: P,
|
|
727
727
|
showDebugInfo: i,
|
|
728
|
-
registerPanel:
|
|
729
|
-
unregisterPanel:
|
|
728
|
+
registerPanel: F,
|
|
729
|
+
unregisterPanel: Y,
|
|
730
730
|
resizePanels: te,
|
|
731
|
-
collapsePanel:
|
|
732
|
-
expandPanel:
|
|
733
|
-
getPanel:
|
|
734
|
-
reportPanelMeasurement:
|
|
735
|
-
panelMeasurements:
|
|
731
|
+
collapsePanel: V,
|
|
732
|
+
expandPanel: K,
|
|
733
|
+
getPanel: W,
|
|
734
|
+
reportPanelMeasurement: _,
|
|
735
|
+
panelMeasurements: w,
|
|
736
736
|
reportHandleMeasurement: D,
|
|
737
737
|
handleMeasurements: p,
|
|
738
738
|
layoutConstraintViolation: h
|
|
@@ -741,21 +741,21 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
741
741
|
e,
|
|
742
742
|
s,
|
|
743
743
|
l,
|
|
744
|
-
|
|
744
|
+
P,
|
|
745
745
|
i,
|
|
746
|
-
|
|
747
|
-
X,
|
|
748
|
-
te,
|
|
746
|
+
F,
|
|
749
747
|
Y,
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
748
|
+
te,
|
|
749
|
+
V,
|
|
750
|
+
K,
|
|
751
|
+
W,
|
|
752
|
+
_,
|
|
753
|
+
w,
|
|
754
754
|
D,
|
|
755
755
|
p,
|
|
756
756
|
h
|
|
757
757
|
]
|
|
758
|
-
), ne =
|
|
758
|
+
), ne = ue(
|
|
759
759
|
() => ({
|
|
760
760
|
display: "flex",
|
|
761
761
|
flexDirection: e === "horizontal" ? "row" : "column",
|
|
@@ -772,22 +772,22 @@ const rr = () => typeof window > "u" ? (pt += 1, `panel-server-${pt}`) : `panel-
|
|
|
772
772
|
[e, t]
|
|
773
773
|
);
|
|
774
774
|
return {
|
|
775
|
-
groupRef:
|
|
776
|
-
contextValue:
|
|
775
|
+
groupRef: k,
|
|
776
|
+
contextValue: y,
|
|
777
777
|
groupStyle: ne
|
|
778
778
|
};
|
|
779
779
|
}, nn = (e) => {
|
|
780
|
-
const { getPanel: t, collapsePanel: r, expandPanel: o } = it(), i = t(e), s =
|
|
780
|
+
const { getPanel: t, collapsePanel: r, expandPanel: o } = it(), i = t(e), s = pe(() => {
|
|
781
781
|
r(e);
|
|
782
|
-
}, [r, e]), a =
|
|
782
|
+
}, [r, e]), a = pe(
|
|
783
783
|
(c) => {
|
|
784
784
|
o(e, c);
|
|
785
785
|
},
|
|
786
786
|
[o, e]
|
|
787
|
-
), l =
|
|
787
|
+
), l = pe(() => {
|
|
788
788
|
i?.collapsed ? a() : s();
|
|
789
789
|
}, [i?.collapsed, s, a]);
|
|
790
|
-
return
|
|
790
|
+
return ue(
|
|
791
791
|
() => ({
|
|
792
792
|
panel: i,
|
|
793
793
|
isCollapsed: i?.collapsed ?? !1,
|
|
@@ -830,7 +830,7 @@ function lr() {
|
|
|
830
830
|
}
|
|
831
831
|
return Te.Fragment = t, Te.jsx = r, Te.jsxs = r, Te;
|
|
832
832
|
}
|
|
833
|
-
var
|
|
833
|
+
var je = {};
|
|
834
834
|
/**
|
|
835
835
|
* @license React
|
|
836
836
|
* react-jsx-runtime.development.js
|
|
@@ -846,41 +846,41 @@ function cr() {
|
|
|
846
846
|
function e(n) {
|
|
847
847
|
if (n == null) return null;
|
|
848
848
|
if (typeof n == "function")
|
|
849
|
-
return n.$$typeof ===
|
|
849
|
+
return n.$$typeof === Y ? null : n.displayName || n.name || null;
|
|
850
850
|
if (typeof n == "string") return n;
|
|
851
851
|
switch (n) {
|
|
852
|
-
case
|
|
852
|
+
case C:
|
|
853
853
|
return "Fragment";
|
|
854
|
-
case
|
|
854
|
+
case x:
|
|
855
855
|
return "Profiler";
|
|
856
856
|
case p:
|
|
857
857
|
return "StrictMode";
|
|
858
|
-
case
|
|
858
|
+
case H:
|
|
859
859
|
return "Suspense";
|
|
860
|
-
case
|
|
860
|
+
case O:
|
|
861
861
|
return "SuspenseList";
|
|
862
|
-
case
|
|
862
|
+
case F:
|
|
863
863
|
return "Activity";
|
|
864
864
|
}
|
|
865
865
|
if (typeof n == "object")
|
|
866
866
|
switch (typeof n.tag == "number" && console.error(
|
|
867
867
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
868
868
|
), n.$$typeof) {
|
|
869
|
-
case
|
|
869
|
+
case w:
|
|
870
870
|
return "Portal";
|
|
871
|
-
case
|
|
871
|
+
case $:
|
|
872
872
|
return n.displayName || "Context";
|
|
873
|
-
case
|
|
873
|
+
case k:
|
|
874
874
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
875
|
-
case
|
|
876
|
-
var
|
|
877
|
-
return n = n.displayName, n || (n =
|
|
878
|
-
case
|
|
879
|
-
return
|
|
880
|
-
case
|
|
881
|
-
|
|
875
|
+
case J:
|
|
876
|
+
var S = n.render;
|
|
877
|
+
return n = n.displayName, n || (n = S.displayName || S.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
878
|
+
case E:
|
|
879
|
+
return S = n.displayName || null, S !== null ? S : e(n.type) || "Memo";
|
|
880
|
+
case q:
|
|
881
|
+
S = n._payload, n = n._init;
|
|
882
882
|
try {
|
|
883
|
-
return e(n(
|
|
883
|
+
return e(n(S));
|
|
884
884
|
} catch {
|
|
885
885
|
}
|
|
886
886
|
}
|
|
@@ -892,27 +892,27 @@ function cr() {
|
|
|
892
892
|
function r(n) {
|
|
893
893
|
try {
|
|
894
894
|
t(n);
|
|
895
|
-
var
|
|
895
|
+
var S = !1;
|
|
896
896
|
} catch {
|
|
897
|
-
|
|
897
|
+
S = !0;
|
|
898
898
|
}
|
|
899
|
-
if (
|
|
900
|
-
|
|
901
|
-
var
|
|
902
|
-
return
|
|
903
|
-
|
|
899
|
+
if (S) {
|
|
900
|
+
S = console;
|
|
901
|
+
var R = S.error, A = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
902
|
+
return R.call(
|
|
903
|
+
S,
|
|
904
904
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
905
|
-
|
|
905
|
+
A
|
|
906
906
|
), t(n);
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
function o(n) {
|
|
910
|
-
if (n ===
|
|
911
|
-
if (typeof n == "object" && n !== null && n.$$typeof ===
|
|
910
|
+
if (n === C) return "<>";
|
|
911
|
+
if (typeof n == "object" && n !== null && n.$$typeof === q)
|
|
912
912
|
return "<...>";
|
|
913
913
|
try {
|
|
914
|
-
var
|
|
915
|
-
return
|
|
914
|
+
var S = e(n);
|
|
915
|
+
return S ? "<" + S + ">" : "<...>";
|
|
916
916
|
} catch {
|
|
917
917
|
return "<...>";
|
|
918
918
|
}
|
|
@@ -925,21 +925,21 @@ function cr() {
|
|
|
925
925
|
return Error("react-stack-top-frame");
|
|
926
926
|
}
|
|
927
927
|
function a(n) {
|
|
928
|
-
if (
|
|
929
|
-
var
|
|
930
|
-
if (
|
|
928
|
+
if (V.call(n, "key")) {
|
|
929
|
+
var S = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
930
|
+
if (S && S.isReactWarning) return !1;
|
|
931
931
|
}
|
|
932
932
|
return n.key !== void 0;
|
|
933
933
|
}
|
|
934
|
-
function l(n,
|
|
935
|
-
function
|
|
936
|
-
|
|
934
|
+
function l(n, S) {
|
|
935
|
+
function R() {
|
|
936
|
+
_ || (_ = !0, console.error(
|
|
937
937
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
938
|
-
|
|
938
|
+
S
|
|
939
939
|
));
|
|
940
940
|
}
|
|
941
|
-
|
|
942
|
-
get:
|
|
941
|
+
R.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
942
|
+
get: R,
|
|
943
943
|
configurable: !0
|
|
944
944
|
});
|
|
945
945
|
}
|
|
@@ -949,15 +949,15 @@ function cr() {
|
|
|
949
949
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
950
950
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
var
|
|
952
|
+
function P(n, S, R, A, ee, m) {
|
|
953
|
+
var b = R.ref;
|
|
954
954
|
return n = {
|
|
955
|
-
$$typeof:
|
|
955
|
+
$$typeof: v,
|
|
956
956
|
type: n,
|
|
957
|
-
key:
|
|
958
|
-
props:
|
|
959
|
-
_owner:
|
|
960
|
-
}, (
|
|
957
|
+
key: S,
|
|
958
|
+
props: R,
|
|
959
|
+
_owner: A
|
|
960
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(n, "ref", {
|
|
961
961
|
enumerable: !1,
|
|
962
962
|
get: c
|
|
963
963
|
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
@@ -974,69 +974,69 @@ function cr() {
|
|
|
974
974
|
configurable: !1,
|
|
975
975
|
enumerable: !1,
|
|
976
976
|
writable: !0,
|
|
977
|
-
value:
|
|
977
|
+
value: ee
|
|
978
978
|
}), Object.defineProperty(n, "_debugTask", {
|
|
979
979
|
configurable: !1,
|
|
980
980
|
enumerable: !1,
|
|
981
981
|
writable: !0,
|
|
982
|
-
value:
|
|
982
|
+
value: m
|
|
983
983
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
var
|
|
987
|
-
if (
|
|
988
|
-
if (
|
|
989
|
-
if (
|
|
990
|
-
for (
|
|
991
|
-
|
|
992
|
-
Object.freeze && Object.freeze(
|
|
985
|
+
function z(n, S, R, A, ee, m) {
|
|
986
|
+
var b = S.children;
|
|
987
|
+
if (b !== void 0)
|
|
988
|
+
if (A)
|
|
989
|
+
if (K(b)) {
|
|
990
|
+
for (A = 0; A < b.length; A++)
|
|
991
|
+
f(b[A]);
|
|
992
|
+
Object.freeze && Object.freeze(b);
|
|
993
993
|
} else
|
|
994
994
|
console.error(
|
|
995
995
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
996
996
|
);
|
|
997
|
-
else
|
|
998
|
-
if (
|
|
999
|
-
|
|
1000
|
-
var
|
|
1001
|
-
return
|
|
997
|
+
else f(b);
|
|
998
|
+
if (V.call(S, "key")) {
|
|
999
|
+
b = e(n);
|
|
1000
|
+
var B = Object.keys(S).filter(function(I) {
|
|
1001
|
+
return I !== "key";
|
|
1002
1002
|
});
|
|
1003
|
-
|
|
1003
|
+
A = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", M[b + A] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1004
1004
|
`A props object containing a "key" prop is being spread into JSX:
|
|
1005
1005
|
let props = %s;
|
|
1006
1006
|
<%s {...props} />
|
|
1007
1007
|
React keys must be passed directly to JSX without using spread:
|
|
1008
1008
|
let props = %s;
|
|
1009
1009
|
<%s key={someKey} {...props} />`,
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
),
|
|
1010
|
+
A,
|
|
1011
|
+
b,
|
|
1012
|
+
B,
|
|
1013
|
+
b
|
|
1014
|
+
), M[b + A] = !0);
|
|
1015
1015
|
}
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1018
|
-
for (var
|
|
1019
|
-
|
|
1020
|
-
} else
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1016
|
+
if (b = null, R !== void 0 && (r(R), b = "" + R), a(S) && (r(S.key), b = "" + S.key), "key" in S) {
|
|
1017
|
+
R = {};
|
|
1018
|
+
for (var g in S)
|
|
1019
|
+
g !== "key" && (R[g] = S[g]);
|
|
1020
|
+
} else R = S;
|
|
1021
|
+
return b && l(
|
|
1022
|
+
R,
|
|
1023
1023
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
1024
|
-
),
|
|
1024
|
+
), P(
|
|
1025
1025
|
n,
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
b,
|
|
1027
|
+
R,
|
|
1028
1028
|
i(),
|
|
1029
|
-
|
|
1030
|
-
|
|
1029
|
+
ee,
|
|
1030
|
+
m
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
|
|
1033
|
+
function f(n) {
|
|
1034
|
+
d(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === q && (n._payload.status === "fulfilled" ? d(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return typeof n == "object" && n !== null && n.$$typeof ===
|
|
1036
|
+
function d(n) {
|
|
1037
|
+
return typeof n == "object" && n !== null && n.$$typeof === v;
|
|
1038
1038
|
}
|
|
1039
|
-
var h = Vt,
|
|
1039
|
+
var h = Vt, v = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), J = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), te = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, K = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
1040
1040
|
return null;
|
|
1041
1041
|
};
|
|
1042
1042
|
h = {
|
|
@@ -1044,32 +1044,32 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1044
1044
|
return n();
|
|
1045
1045
|
}
|
|
1046
1046
|
};
|
|
1047
|
-
var
|
|
1047
|
+
var _, D = {}, y = h.react_stack_bottom_frame.bind(
|
|
1048
1048
|
h,
|
|
1049
1049
|
s
|
|
1050
|
-
)(), ne =
|
|
1051
|
-
|
|
1052
|
-
var
|
|
1053
|
-
return
|
|
1050
|
+
)(), ne = W(o(s)), M = {};
|
|
1051
|
+
je.Fragment = C, je.jsx = function(n, S, R) {
|
|
1052
|
+
var A = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
1053
|
+
return z(
|
|
1054
1054
|
n,
|
|
1055
|
-
|
|
1056
|
-
|
|
1055
|
+
S,
|
|
1056
|
+
R,
|
|
1057
1057
|
!1,
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
A ? Error("react-stack-top-frame") : y,
|
|
1059
|
+
A ? W(o(n)) : ne
|
|
1060
1060
|
);
|
|
1061
|
-
},
|
|
1062
|
-
var
|
|
1063
|
-
return
|
|
1061
|
+
}, je.jsxs = function(n, S, R) {
|
|
1062
|
+
var A = 1e4 > te.recentlyCreatedOwnerStacks++;
|
|
1063
|
+
return z(
|
|
1064
1064
|
n,
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
S,
|
|
1066
|
+
R,
|
|
1067
1067
|
!0,
|
|
1068
|
-
|
|
1069
|
-
|
|
1068
|
+
A ? Error("react-stack-top-frame") : y,
|
|
1069
|
+
A ? W(o(n)) : ne
|
|
1070
1070
|
);
|
|
1071
1071
|
};
|
|
1072
|
-
})()),
|
|
1072
|
+
})()), je;
|
|
1073
1073
|
}
|
|
1074
1074
|
var bt;
|
|
1075
1075
|
function dr() {
|
|
@@ -1181,26 +1181,26 @@ const st = "-", ur = (e) => {
|
|
|
1181
1181
|
} = e;
|
|
1182
1182
|
let o = (i) => {
|
|
1183
1183
|
const s = [];
|
|
1184
|
-
let a = 0, l = 0, c = 0,
|
|
1185
|
-
for (let
|
|
1186
|
-
let
|
|
1184
|
+
let a = 0, l = 0, c = 0, P;
|
|
1185
|
+
for (let v = 0; v < i.length; v++) {
|
|
1186
|
+
let w = i[v];
|
|
1187
1187
|
if (a === 0 && l === 0) {
|
|
1188
|
-
if (
|
|
1189
|
-
s.push(i.slice(c,
|
|
1188
|
+
if (w === rt) {
|
|
1189
|
+
s.push(i.slice(c, v)), c = v + hr;
|
|
1190
1190
|
continue;
|
|
1191
1191
|
}
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1192
|
+
if (w === "/") {
|
|
1193
|
+
P = v;
|
|
1194
1194
|
continue;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
|
|
1197
|
+
w === "[" ? a++ : w === "]" ? a-- : w === "(" ? l++ : w === ")" && l--;
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1199
|
+
const z = s.length === 0 ? i : i.substring(c), f = br(z), d = f !== z, h = P && P > c ? P - c : void 0;
|
|
1200
1200
|
return {
|
|
1201
1201
|
modifiers: s,
|
|
1202
|
-
hasImportantModifier:
|
|
1203
|
-
baseClassName:
|
|
1202
|
+
hasImportantModifier: d,
|
|
1203
|
+
baseClassName: f,
|
|
1204
1204
|
maybePostfixModifierPosition: h
|
|
1205
1205
|
};
|
|
1206
1206
|
};
|
|
@@ -1246,90 +1246,90 @@ const st = "-", ur = (e) => {
|
|
|
1246
1246
|
sortModifiers: s
|
|
1247
1247
|
} = t, a = [], l = e.trim().split(Pr);
|
|
1248
1248
|
let c = "";
|
|
1249
|
-
for (let
|
|
1250
|
-
const
|
|
1251
|
-
isExternal:
|
|
1252
|
-
modifiers:
|
|
1249
|
+
for (let P = l.length - 1; P >= 0; P -= 1) {
|
|
1250
|
+
const z = l[P], {
|
|
1251
|
+
isExternal: f,
|
|
1252
|
+
modifiers: d,
|
|
1253
1253
|
hasImportantModifier: h,
|
|
1254
|
-
baseClassName:
|
|
1255
|
-
maybePostfixModifierPosition:
|
|
1256
|
-
} = r(
|
|
1257
|
-
if (
|
|
1258
|
-
c =
|
|
1254
|
+
baseClassName: v,
|
|
1255
|
+
maybePostfixModifierPosition: w
|
|
1256
|
+
} = r(z);
|
|
1257
|
+
if (f) {
|
|
1258
|
+
c = z + (c.length > 0 ? " " + c : c);
|
|
1259
1259
|
continue;
|
|
1260
1260
|
}
|
|
1261
|
-
let
|
|
1261
|
+
let C = !!w, p = o(C ? v.substring(0, w) : v);
|
|
1262
1262
|
if (!p) {
|
|
1263
|
-
if (!
|
|
1264
|
-
c =
|
|
1263
|
+
if (!C) {
|
|
1264
|
+
c = z + (c.length > 0 ? " " + c : c);
|
|
1265
1265
|
continue;
|
|
1266
1266
|
}
|
|
1267
|
-
if (p = o(
|
|
1268
|
-
c =
|
|
1267
|
+
if (p = o(v), !p) {
|
|
1268
|
+
c = z + (c.length > 0 ? " " + c : c);
|
|
1269
1269
|
continue;
|
|
1270
1270
|
}
|
|
1271
|
-
|
|
1271
|
+
C = !1;
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
if (a.includes(
|
|
1273
|
+
const x = s(d).join(":"), k = h ? x + tt : x, $ = k + p;
|
|
1274
|
+
if (a.includes($))
|
|
1275
1275
|
continue;
|
|
1276
|
-
a.push(
|
|
1277
|
-
const
|
|
1278
|
-
for (let
|
|
1279
|
-
const
|
|
1280
|
-
a.push(
|
|
1276
|
+
a.push($);
|
|
1277
|
+
const J = i(p, C);
|
|
1278
|
+
for (let H = 0; H < J.length; ++H) {
|
|
1279
|
+
const O = J[H];
|
|
1280
|
+
a.push(k + O);
|
|
1281
1281
|
}
|
|
1282
|
-
c =
|
|
1282
|
+
c = z + (c.length > 0 ? " " + c : c);
|
|
1283
1283
|
}
|
|
1284
1284
|
return c;
|
|
1285
1285
|
};
|
|
1286
1286
|
function vr() {
|
|
1287
1287
|
let e = 0, t, r, o = "";
|
|
1288
1288
|
for (; e < arguments.length; )
|
|
1289
|
-
(t = arguments[e++]) && (r =
|
|
1289
|
+
(t = arguments[e++]) && (r = jt(t)) && (o && (o += " "), o += r);
|
|
1290
1290
|
return o;
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1292
|
+
const jt = (e) => {
|
|
1293
1293
|
if (typeof e == "string")
|
|
1294
1294
|
return e;
|
|
1295
1295
|
let t, r = "";
|
|
1296
1296
|
for (let o = 0; o < e.length; o++)
|
|
1297
|
-
e[o] && (t =
|
|
1297
|
+
e[o] && (t = jt(e[o])) && (r && (r += " "), r += t);
|
|
1298
1298
|
return r;
|
|
1299
1299
|
};
|
|
1300
1300
|
function wr(e, ...t) {
|
|
1301
1301
|
let r, o, i, s = a;
|
|
1302
1302
|
function a(c) {
|
|
1303
|
-
const
|
|
1304
|
-
return r = Sr(
|
|
1303
|
+
const P = t.reduce((z, f) => f(z), e());
|
|
1304
|
+
return r = Sr(P), o = r.cache.get, i = r.cache.set, s = l, l(c);
|
|
1305
1305
|
}
|
|
1306
1306
|
function l(c) {
|
|
1307
|
-
const
|
|
1308
|
-
if (
|
|
1309
|
-
return
|
|
1310
|
-
const
|
|
1311
|
-
return i(c,
|
|
1307
|
+
const P = o(c);
|
|
1308
|
+
if (P)
|
|
1309
|
+
return P;
|
|
1310
|
+
const z = yr(c, r);
|
|
1311
|
+
return i(c, z), z;
|
|
1312
1312
|
}
|
|
1313
1313
|
return function() {
|
|
1314
1314
|
return s(vr.apply(null, arguments));
|
|
1315
1315
|
};
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1317
|
+
const ce = (e) => {
|
|
1318
1318
|
const t = (r) => r[e] || [];
|
|
1319
1319
|
return t.isThemeGetter = !0, t;
|
|
1320
|
-
},
|
|
1320
|
+
}, Ot = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cr = /^\d+\/\d+$/, kr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Er = /\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$/, Mr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Rr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _r = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => Cr.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => !!e && Number.isInteger(Number(e)), Ze = (e) => e.endsWith("%") && X(e.slice(0, -1)), ve = (e) => kr.test(e), Ir = () => !0, Ar = (e) => (
|
|
1321
1321
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1322
1322
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1323
1323
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1324
1324
|
Er.test(e) && !Mr.test(e)
|
|
1325
|
-
), Lt = () => !1, Nr = (e) => Rr.test(e), Tr = (e) => _r.test(e),
|
|
1326
|
-
const o =
|
|
1325
|
+
), Lt = () => !1, Nr = (e) => Rr.test(e), Tr = (e) => _r.test(e), jr = (e) => !N(e) && !T(e), Or = (e) => Ie(e, Ft, Lt), N = (e) => Ot.test(e), Ee = (e) => Ie(e, Ht, Ar), Qe = (e) => Ie(e, Fr, X), Pt = (e) => Ie(e, Dt, Lt), Br = (e) => Ie(e, Gt, Tr), We = (e) => Ie(e, $t, Nr), T = (e) => Bt.test(e), Oe = (e) => Ae(e, Ht), Lr = (e) => Ae(e, Hr), yt = (e) => Ae(e, Dt), Dr = (e) => Ae(e, Ft), Gr = (e) => Ae(e, Gt), Ue = (e) => Ae(e, $t, !0), Ie = (e, t, r) => {
|
|
1326
|
+
const o = Ot.exec(e);
|
|
1327
1327
|
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
1328
1328
|
}, Ae = (e, t, r = !1) => {
|
|
1329
1329
|
const o = Bt.exec(e);
|
|
1330
1330
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
1331
1331
|
}, Dt = (e) => e === "position" || e === "percentage", Gt = (e) => e === "image" || e === "url", Ft = (e) => e === "length" || e === "size" || e === "bg-size", Ht = (e) => e === "length", Fr = (e) => e === "number", Hr = (e) => e === "family-name", $t = (e) => e === "shadow", $r = () => {
|
|
1332
|
-
const e =
|
|
1332
|
+
const e = ce("color"), t = ce("font"), r = ce("text"), o = ce("font-weight"), i = ce("tracking"), s = ce("leading"), a = ce("breakpoint"), l = ce("container"), c = ce("spacing"), P = ce("radius"), z = ce("shadow"), f = ce("inset-shadow"), d = ce("text-shadow"), h = ce("drop-shadow"), v = ce("blur"), w = ce("perspective"), C = ce("aspect"), p = ce("ease"), x = ce("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
|
|
1333
1333
|
"center",
|
|
1334
1334
|
"top",
|
|
1335
1335
|
"bottom",
|
|
@@ -1347,30 +1347,30 @@ const le = (e) => {
|
|
|
1347
1347
|
"bottom-left",
|
|
1348
1348
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1349
1349
|
"left-bottom"
|
|
1350
|
-
],
|
|
1351
|
-
span: ["full", ke,
|
|
1352
|
-
}, ke,
|
|
1353
|
-
position: [
|
|
1354
|
-
}],
|
|
1350
|
+
], J = () => [...$(), T, N], H = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], E = () => [T, N, c], q = () => [_e, "full", "auto", ...E()], F = () => [ke, "none", "subgrid", T, N], Y = () => ["auto", {
|
|
1351
|
+
span: ["full", ke, T, N]
|
|
1352
|
+
}, ke, T, N], te = () => [ke, "auto", T, N], V = () => ["auto", "min", "max", "fr", T, N], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...E()], D = () => [_e, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], y = () => [e, T, N], ne = () => [...$(), yt, Pt, {
|
|
1353
|
+
position: [T, N]
|
|
1354
|
+
}], M = () => ["no-repeat", {
|
|
1355
1355
|
repeat: ["", "x", "y", "space", "round"]
|
|
1356
|
-
}], n = () => ["auto", "cover", "contain", Dr,
|
|
1357
|
-
size: [
|
|
1358
|
-
}],
|
|
1356
|
+
}], n = () => ["auto", "cover", "contain", Dr, Or, {
|
|
1357
|
+
size: [T, N]
|
|
1358
|
+
}], S = () => [Ze, Oe, Ee], R = () => [
|
|
1359
1359
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1360
1360
|
"",
|
|
1361
1361
|
"none",
|
|
1362
1362
|
"full",
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
],
|
|
1363
|
+
P,
|
|
1364
|
+
T,
|
|
1365
|
+
N
|
|
1366
|
+
], A = () => ["", X, Oe, Ee], ee = () => ["solid", "dashed", "dotted", "double"], m = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], b = () => [X, Ze, yt, Pt], B = () => [
|
|
1367
1367
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1368
1368
|
"",
|
|
1369
1369
|
"none",
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
],
|
|
1370
|
+
v,
|
|
1371
|
+
T,
|
|
1372
|
+
N
|
|
1373
|
+
], g = () => ["none", X, T, N], I = () => ["none", X, T, N], j = () => [X, T, N], G = () => [_e, "full", ...E()];
|
|
1374
1374
|
return {
|
|
1375
1375
|
cacheSize: 500,
|
|
1376
1376
|
theme: {
|
|
@@ -1382,14 +1382,14 @@ const le = (e) => {
|
|
|
1382
1382
|
container: [ve],
|
|
1383
1383
|
"drop-shadow": [ve],
|
|
1384
1384
|
ease: ["in", "out", "in-out"],
|
|
1385
|
-
font: [
|
|
1385
|
+
font: [jr],
|
|
1386
1386
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1387
1387
|
"inset-shadow": [ve],
|
|
1388
1388
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1389
1389
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1390
1390
|
radius: [ve],
|
|
1391
1391
|
shadow: [ve],
|
|
1392
|
-
spacing: ["px",
|
|
1392
|
+
spacing: ["px", X],
|
|
1393
1393
|
text: [ve],
|
|
1394
1394
|
"text-shadow": [ve],
|
|
1395
1395
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -1403,7 +1403,7 @@ const le = (e) => {
|
|
|
1403
1403
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1404
1404
|
*/
|
|
1405
1405
|
aspect: [{
|
|
1406
|
-
aspect: ["auto", "square", _e,
|
|
1406
|
+
aspect: ["auto", "square", _e, N, T, C]
|
|
1407
1407
|
}],
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Container
|
|
@@ -1416,21 +1416,21 @@ const le = (e) => {
|
|
|
1416
1416
|
* @see https://tailwindcss.com/docs/columns
|
|
1417
1417
|
*/
|
|
1418
1418
|
columns: [{
|
|
1419
|
-
columns: [
|
|
1419
|
+
columns: [X, N, T, l]
|
|
1420
1420
|
}],
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Break After
|
|
1423
1423
|
* @see https://tailwindcss.com/docs/break-after
|
|
1424
1424
|
*/
|
|
1425
1425
|
"break-after": [{
|
|
1426
|
-
"break-after":
|
|
1426
|
+
"break-after": k()
|
|
1427
1427
|
}],
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Break Before
|
|
1430
1430
|
* @see https://tailwindcss.com/docs/break-before
|
|
1431
1431
|
*/
|
|
1432
1432
|
"break-before": [{
|
|
1433
|
-
"break-before":
|
|
1433
|
+
"break-before": k()
|
|
1434
1434
|
}],
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Break Inside
|
|
@@ -1494,49 +1494,49 @@ const le = (e) => {
|
|
|
1494
1494
|
* @see https://tailwindcss.com/docs/object-position
|
|
1495
1495
|
*/
|
|
1496
1496
|
"object-position": [{
|
|
1497
|
-
object:
|
|
1497
|
+
object: J()
|
|
1498
1498
|
}],
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Overflow
|
|
1501
1501
|
* @see https://tailwindcss.com/docs/overflow
|
|
1502
1502
|
*/
|
|
1503
1503
|
overflow: [{
|
|
1504
|
-
overflow:
|
|
1504
|
+
overflow: H()
|
|
1505
1505
|
}],
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Overflow X
|
|
1508
1508
|
* @see https://tailwindcss.com/docs/overflow
|
|
1509
1509
|
*/
|
|
1510
1510
|
"overflow-x": [{
|
|
1511
|
-
"overflow-x":
|
|
1511
|
+
"overflow-x": H()
|
|
1512
1512
|
}],
|
|
1513
1513
|
/**
|
|
1514
1514
|
* Overflow Y
|
|
1515
1515
|
* @see https://tailwindcss.com/docs/overflow
|
|
1516
1516
|
*/
|
|
1517
1517
|
"overflow-y": [{
|
|
1518
|
-
"overflow-y":
|
|
1518
|
+
"overflow-y": H()
|
|
1519
1519
|
}],
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Overscroll Behavior
|
|
1522
1522
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1523
1523
|
*/
|
|
1524
1524
|
overscroll: [{
|
|
1525
|
-
overscroll:
|
|
1525
|
+
overscroll: O()
|
|
1526
1526
|
}],
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Overscroll Behavior X
|
|
1529
1529
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1530
1530
|
*/
|
|
1531
1531
|
"overscroll-x": [{
|
|
1532
|
-
"overscroll-x":
|
|
1532
|
+
"overscroll-x": O()
|
|
1533
1533
|
}],
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Overscroll Behavior Y
|
|
1536
1536
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1537
1537
|
*/
|
|
1538
1538
|
"overscroll-y": [{
|
|
1539
|
-
"overscroll-y":
|
|
1539
|
+
"overscroll-y": O()
|
|
1540
1540
|
}],
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Position
|
|
@@ -1548,63 +1548,63 @@ const le = (e) => {
|
|
|
1548
1548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1549
1549
|
*/
|
|
1550
1550
|
inset: [{
|
|
1551
|
-
inset:
|
|
1551
|
+
inset: q()
|
|
1552
1552
|
}],
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Right / Left
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1556
1556
|
*/
|
|
1557
1557
|
"inset-x": [{
|
|
1558
|
-
"inset-x":
|
|
1558
|
+
"inset-x": q()
|
|
1559
1559
|
}],
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Top / Bottom
|
|
1562
1562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1563
1563
|
*/
|
|
1564
1564
|
"inset-y": [{
|
|
1565
|
-
"inset-y":
|
|
1565
|
+
"inset-y": q()
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Start
|
|
1569
1569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1570
1570
|
*/
|
|
1571
1571
|
start: [{
|
|
1572
|
-
start:
|
|
1572
|
+
start: q()
|
|
1573
1573
|
}],
|
|
1574
1574
|
/**
|
|
1575
1575
|
* End
|
|
1576
1576
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1577
1577
|
*/
|
|
1578
1578
|
end: [{
|
|
1579
|
-
end:
|
|
1579
|
+
end: q()
|
|
1580
1580
|
}],
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Top
|
|
1583
1583
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1584
1584
|
*/
|
|
1585
1585
|
top: [{
|
|
1586
|
-
top:
|
|
1586
|
+
top: q()
|
|
1587
1587
|
}],
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Right
|
|
1590
1590
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1591
1591
|
*/
|
|
1592
1592
|
right: [{
|
|
1593
|
-
right:
|
|
1593
|
+
right: q()
|
|
1594
1594
|
}],
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Bottom
|
|
1597
1597
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1598
1598
|
*/
|
|
1599
1599
|
bottom: [{
|
|
1600
|
-
bottom:
|
|
1600
|
+
bottom: q()
|
|
1601
1601
|
}],
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Left
|
|
1604
1604
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1605
1605
|
*/
|
|
1606
1606
|
left: [{
|
|
1607
|
-
left:
|
|
1607
|
+
left: q()
|
|
1608
1608
|
}],
|
|
1609
1609
|
/**
|
|
1610
1610
|
* Visibility
|
|
@@ -1616,7 +1616,7 @@ const le = (e) => {
|
|
|
1616
1616
|
* @see https://tailwindcss.com/docs/z-index
|
|
1617
1617
|
*/
|
|
1618
1618
|
z: [{
|
|
1619
|
-
z: [ke, "auto",
|
|
1619
|
+
z: [ke, "auto", T, N]
|
|
1620
1620
|
}],
|
|
1621
1621
|
// ------------------------
|
|
1622
1622
|
// --- Flexbox and Grid ---
|
|
@@ -1626,7 +1626,7 @@ const le = (e) => {
|
|
|
1626
1626
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1627
1627
|
*/
|
|
1628
1628
|
basis: [{
|
|
1629
|
-
basis: [_e, "full", "auto", l, ...
|
|
1629
|
+
basis: [_e, "full", "auto", l, ...E()]
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Flex Direction
|
|
@@ -1647,42 +1647,42 @@ const le = (e) => {
|
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/flex
|
|
1648
1648
|
*/
|
|
1649
1649
|
flex: [{
|
|
1650
|
-
flex: [
|
|
1650
|
+
flex: [X, _e, "auto", "initial", "none", N]
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Flex Grow
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1655
1655
|
*/
|
|
1656
1656
|
grow: [{
|
|
1657
|
-
grow: ["",
|
|
1657
|
+
grow: ["", X, T, N]
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Flex Shrink
|
|
1661
1661
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1662
1662
|
*/
|
|
1663
1663
|
shrink: [{
|
|
1664
|
-
shrink: ["",
|
|
1664
|
+
shrink: ["", X, T, N]
|
|
1665
1665
|
}],
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Order
|
|
1668
1668
|
* @see https://tailwindcss.com/docs/order
|
|
1669
1669
|
*/
|
|
1670
1670
|
order: [{
|
|
1671
|
-
order: [ke, "first", "last", "none",
|
|
1671
|
+
order: [ke, "first", "last", "none", T, N]
|
|
1672
1672
|
}],
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Grid Template Columns
|
|
1675
1675
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1676
1676
|
*/
|
|
1677
1677
|
"grid-cols": [{
|
|
1678
|
-
"grid-cols":
|
|
1678
|
+
"grid-cols": F()
|
|
1679
1679
|
}],
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Grid Column Start / End
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1683
1683
|
*/
|
|
1684
1684
|
"col-start-end": [{
|
|
1685
|
-
col:
|
|
1685
|
+
col: Y()
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Grid Column Start
|
|
@@ -1703,14 +1703,14 @@ const le = (e) => {
|
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1704
1704
|
*/
|
|
1705
1705
|
"grid-rows": [{
|
|
1706
|
-
"grid-rows":
|
|
1706
|
+
"grid-rows": F()
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Grid Row Start / End
|
|
1710
1710
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1711
1711
|
*/
|
|
1712
1712
|
"row-start-end": [{
|
|
1713
|
-
row:
|
|
1713
|
+
row: Y()
|
|
1714
1714
|
}],
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Grid Row Start
|
|
@@ -1738,70 +1738,70 @@ const le = (e) => {
|
|
|
1738
1738
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1739
1739
|
*/
|
|
1740
1740
|
"auto-cols": [{
|
|
1741
|
-
"auto-cols":
|
|
1741
|
+
"auto-cols": V()
|
|
1742
1742
|
}],
|
|
1743
1743
|
/**
|
|
1744
1744
|
* Grid Auto Rows
|
|
1745
1745
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1746
1746
|
*/
|
|
1747
1747
|
"auto-rows": [{
|
|
1748
|
-
"auto-rows":
|
|
1748
|
+
"auto-rows": V()
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Gap
|
|
1752
1752
|
* @see https://tailwindcss.com/docs/gap
|
|
1753
1753
|
*/
|
|
1754
1754
|
gap: [{
|
|
1755
|
-
gap:
|
|
1755
|
+
gap: E()
|
|
1756
1756
|
}],
|
|
1757
1757
|
/**
|
|
1758
1758
|
* Gap X
|
|
1759
1759
|
* @see https://tailwindcss.com/docs/gap
|
|
1760
1760
|
*/
|
|
1761
1761
|
"gap-x": [{
|
|
1762
|
-
"gap-x":
|
|
1762
|
+
"gap-x": E()
|
|
1763
1763
|
}],
|
|
1764
1764
|
/**
|
|
1765
1765
|
* Gap Y
|
|
1766
1766
|
* @see https://tailwindcss.com/docs/gap
|
|
1767
1767
|
*/
|
|
1768
1768
|
"gap-y": [{
|
|
1769
|
-
"gap-y":
|
|
1769
|
+
"gap-y": E()
|
|
1770
1770
|
}],
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Justify Content
|
|
1773
1773
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1774
1774
|
*/
|
|
1775
1775
|
"justify-content": [{
|
|
1776
|
-
justify: [...
|
|
1776
|
+
justify: [...K(), "normal"]
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Justify Items
|
|
1780
1780
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1781
1781
|
*/
|
|
1782
1782
|
"justify-items": [{
|
|
1783
|
-
"justify-items": [...
|
|
1783
|
+
"justify-items": [...W(), "normal"]
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Justify Self
|
|
1787
1787
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1788
1788
|
*/
|
|
1789
1789
|
"justify-self": [{
|
|
1790
|
-
"justify-self": ["auto", ...
|
|
1790
|
+
"justify-self": ["auto", ...W()]
|
|
1791
1791
|
}],
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Align Content
|
|
1794
1794
|
* @see https://tailwindcss.com/docs/align-content
|
|
1795
1795
|
*/
|
|
1796
1796
|
"align-content": [{
|
|
1797
|
-
content: ["normal", ...
|
|
1797
|
+
content: ["normal", ...K()]
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Align Items
|
|
1801
1801
|
* @see https://tailwindcss.com/docs/align-items
|
|
1802
1802
|
*/
|
|
1803
1803
|
"align-items": [{
|
|
1804
|
-
items: [...
|
|
1804
|
+
items: [...W(), {
|
|
1805
1805
|
baseline: ["", "last"]
|
|
1806
1806
|
}]
|
|
1807
1807
|
}],
|
|
@@ -1810,7 +1810,7 @@ const le = (e) => {
|
|
|
1810
1810
|
* @see https://tailwindcss.com/docs/align-self
|
|
1811
1811
|
*/
|
|
1812
1812
|
"align-self": [{
|
|
1813
|
-
self: ["auto", ...
|
|
1813
|
+
self: ["auto", ...W(), {
|
|
1814
1814
|
baseline: ["", "last"]
|
|
1815
1815
|
}]
|
|
1816
1816
|
}],
|
|
@@ -1819,21 +1819,21 @@ const le = (e) => {
|
|
|
1819
1819
|
* @see https://tailwindcss.com/docs/place-content
|
|
1820
1820
|
*/
|
|
1821
1821
|
"place-content": [{
|
|
1822
|
-
"place-content":
|
|
1822
|
+
"place-content": K()
|
|
1823
1823
|
}],
|
|
1824
1824
|
/**
|
|
1825
1825
|
* Place Items
|
|
1826
1826
|
* @see https://tailwindcss.com/docs/place-items
|
|
1827
1827
|
*/
|
|
1828
1828
|
"place-items": [{
|
|
1829
|
-
"place-items": [...
|
|
1829
|
+
"place-items": [...W(), "baseline"]
|
|
1830
1830
|
}],
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Place Self
|
|
1833
1833
|
* @see https://tailwindcss.com/docs/place-self
|
|
1834
1834
|
*/
|
|
1835
1835
|
"place-self": [{
|
|
1836
|
-
"place-self": ["auto", ...
|
|
1836
|
+
"place-self": ["auto", ...W()]
|
|
1837
1837
|
}],
|
|
1838
1838
|
// Spacing
|
|
1839
1839
|
/**
|
|
@@ -1841,133 +1841,133 @@ const le = (e) => {
|
|
|
1841
1841
|
* @see https://tailwindcss.com/docs/padding
|
|
1842
1842
|
*/
|
|
1843
1843
|
p: [{
|
|
1844
|
-
p:
|
|
1844
|
+
p: E()
|
|
1845
1845
|
}],
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Padding X
|
|
1848
1848
|
* @see https://tailwindcss.com/docs/padding
|
|
1849
1849
|
*/
|
|
1850
1850
|
px: [{
|
|
1851
|
-
px:
|
|
1851
|
+
px: E()
|
|
1852
1852
|
}],
|
|
1853
1853
|
/**
|
|
1854
1854
|
* Padding Y
|
|
1855
1855
|
* @see https://tailwindcss.com/docs/padding
|
|
1856
1856
|
*/
|
|
1857
1857
|
py: [{
|
|
1858
|
-
py:
|
|
1858
|
+
py: E()
|
|
1859
1859
|
}],
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Padding Start
|
|
1862
1862
|
* @see https://tailwindcss.com/docs/padding
|
|
1863
1863
|
*/
|
|
1864
1864
|
ps: [{
|
|
1865
|
-
ps:
|
|
1865
|
+
ps: E()
|
|
1866
1866
|
}],
|
|
1867
1867
|
/**
|
|
1868
1868
|
* Padding End
|
|
1869
1869
|
* @see https://tailwindcss.com/docs/padding
|
|
1870
1870
|
*/
|
|
1871
1871
|
pe: [{
|
|
1872
|
-
pe:
|
|
1872
|
+
pe: E()
|
|
1873
1873
|
}],
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Padding Top
|
|
1876
1876
|
* @see https://tailwindcss.com/docs/padding
|
|
1877
1877
|
*/
|
|
1878
1878
|
pt: [{
|
|
1879
|
-
pt:
|
|
1879
|
+
pt: E()
|
|
1880
1880
|
}],
|
|
1881
1881
|
/**
|
|
1882
1882
|
* Padding Right
|
|
1883
1883
|
* @see https://tailwindcss.com/docs/padding
|
|
1884
1884
|
*/
|
|
1885
1885
|
pr: [{
|
|
1886
|
-
pr:
|
|
1886
|
+
pr: E()
|
|
1887
1887
|
}],
|
|
1888
1888
|
/**
|
|
1889
1889
|
* Padding Bottom
|
|
1890
1890
|
* @see https://tailwindcss.com/docs/padding
|
|
1891
1891
|
*/
|
|
1892
1892
|
pb: [{
|
|
1893
|
-
pb:
|
|
1893
|
+
pb: E()
|
|
1894
1894
|
}],
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Padding Left
|
|
1897
1897
|
* @see https://tailwindcss.com/docs/padding
|
|
1898
1898
|
*/
|
|
1899
1899
|
pl: [{
|
|
1900
|
-
pl:
|
|
1900
|
+
pl: E()
|
|
1901
1901
|
}],
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Margin
|
|
1904
1904
|
* @see https://tailwindcss.com/docs/margin
|
|
1905
1905
|
*/
|
|
1906
1906
|
m: [{
|
|
1907
|
-
m:
|
|
1907
|
+
m: _()
|
|
1908
1908
|
}],
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Margin X
|
|
1911
1911
|
* @see https://tailwindcss.com/docs/margin
|
|
1912
1912
|
*/
|
|
1913
1913
|
mx: [{
|
|
1914
|
-
mx:
|
|
1914
|
+
mx: _()
|
|
1915
1915
|
}],
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Margin Y
|
|
1918
1918
|
* @see https://tailwindcss.com/docs/margin
|
|
1919
1919
|
*/
|
|
1920
1920
|
my: [{
|
|
1921
|
-
my:
|
|
1921
|
+
my: _()
|
|
1922
1922
|
}],
|
|
1923
1923
|
/**
|
|
1924
1924
|
* Margin Start
|
|
1925
1925
|
* @see https://tailwindcss.com/docs/margin
|
|
1926
1926
|
*/
|
|
1927
1927
|
ms: [{
|
|
1928
|
-
ms:
|
|
1928
|
+
ms: _()
|
|
1929
1929
|
}],
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Margin End
|
|
1932
1932
|
* @see https://tailwindcss.com/docs/margin
|
|
1933
1933
|
*/
|
|
1934
1934
|
me: [{
|
|
1935
|
-
me:
|
|
1935
|
+
me: _()
|
|
1936
1936
|
}],
|
|
1937
1937
|
/**
|
|
1938
1938
|
* Margin Top
|
|
1939
1939
|
* @see https://tailwindcss.com/docs/margin
|
|
1940
1940
|
*/
|
|
1941
1941
|
mt: [{
|
|
1942
|
-
mt:
|
|
1942
|
+
mt: _()
|
|
1943
1943
|
}],
|
|
1944
1944
|
/**
|
|
1945
1945
|
* Margin Right
|
|
1946
1946
|
* @see https://tailwindcss.com/docs/margin
|
|
1947
1947
|
*/
|
|
1948
1948
|
mr: [{
|
|
1949
|
-
mr:
|
|
1949
|
+
mr: _()
|
|
1950
1950
|
}],
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Margin Bottom
|
|
1953
1953
|
* @see https://tailwindcss.com/docs/margin
|
|
1954
1954
|
*/
|
|
1955
1955
|
mb: [{
|
|
1956
|
-
mb:
|
|
1956
|
+
mb: _()
|
|
1957
1957
|
}],
|
|
1958
1958
|
/**
|
|
1959
1959
|
* Margin Left
|
|
1960
1960
|
* @see https://tailwindcss.com/docs/margin
|
|
1961
1961
|
*/
|
|
1962
1962
|
ml: [{
|
|
1963
|
-
ml:
|
|
1963
|
+
ml: _()
|
|
1964
1964
|
}],
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Space Between X
|
|
1967
1967
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1968
1968
|
*/
|
|
1969
1969
|
"space-x": [{
|
|
1970
|
-
"space-x":
|
|
1970
|
+
"space-x": E()
|
|
1971
1971
|
}],
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Space Between X Reverse
|
|
@@ -1979,7 +1979,7 @@ const le = (e) => {
|
|
|
1979
1979
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1980
1980
|
*/
|
|
1981
1981
|
"space-y": [{
|
|
1982
|
-
"space-y":
|
|
1982
|
+
"space-y": E()
|
|
1983
1983
|
}],
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Space Between Y Reverse
|
|
@@ -2063,7 +2063,7 @@ const le = (e) => {
|
|
|
2063
2063
|
* @see https://tailwindcss.com/docs/font-size
|
|
2064
2064
|
*/
|
|
2065
2065
|
"font-size": [{
|
|
2066
|
-
text: ["base", r,
|
|
2066
|
+
text: ["base", r, Oe, Ee]
|
|
2067
2067
|
}],
|
|
2068
2068
|
/**
|
|
2069
2069
|
* Font Smoothing
|
|
@@ -2080,21 +2080,21 @@ const le = (e) => {
|
|
|
2080
2080
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2081
2081
|
*/
|
|
2082
2082
|
"font-weight": [{
|
|
2083
|
-
font: [o,
|
|
2083
|
+
font: [o, T, Qe]
|
|
2084
2084
|
}],
|
|
2085
2085
|
/**
|
|
2086
2086
|
* Font Stretch
|
|
2087
2087
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2088
2088
|
*/
|
|
2089
2089
|
"font-stretch": [{
|
|
2090
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ze,
|
|
2090
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ze, N]
|
|
2091
2091
|
}],
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Font Family
|
|
2094
2094
|
* @see https://tailwindcss.com/docs/font-family
|
|
2095
2095
|
*/
|
|
2096
2096
|
"font-family": [{
|
|
2097
|
-
font: [Lr,
|
|
2097
|
+
font: [Lr, N, t]
|
|
2098
2098
|
}],
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Font Variant Numeric
|
|
@@ -2131,14 +2131,14 @@ const le = (e) => {
|
|
|
2131
2131
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2132
2132
|
*/
|
|
2133
2133
|
tracking: [{
|
|
2134
|
-
tracking: [i,
|
|
2134
|
+
tracking: [i, T, N]
|
|
2135
2135
|
}],
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Line Clamp
|
|
2138
2138
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2139
2139
|
*/
|
|
2140
2140
|
"line-clamp": [{
|
|
2141
|
-
"line-clamp": [
|
|
2141
|
+
"line-clamp": [X, "none", T, Qe]
|
|
2142
2142
|
}],
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Line Height
|
|
@@ -2148,7 +2148,7 @@ const le = (e) => {
|
|
|
2148
2148
|
leading: [
|
|
2149
2149
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2150
2150
|
s,
|
|
2151
|
-
...
|
|
2151
|
+
...E()
|
|
2152
2152
|
]
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
@@ -2156,7 +2156,7 @@ const le = (e) => {
|
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2157
2157
|
*/
|
|
2158
2158
|
"list-image": [{
|
|
2159
|
-
"list-image": ["none",
|
|
2159
|
+
"list-image": ["none", T, N]
|
|
2160
2160
|
}],
|
|
2161
2161
|
/**
|
|
2162
2162
|
* List Style Position
|
|
@@ -2170,7 +2170,7 @@ const le = (e) => {
|
|
|
2170
2170
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2171
2171
|
*/
|
|
2172
2172
|
"list-style-type": [{
|
|
2173
|
-
list: ["disc", "decimal", "none",
|
|
2173
|
+
list: ["disc", "decimal", "none", T, N]
|
|
2174
2174
|
}],
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Text Alignment
|
|
@@ -2185,14 +2185,14 @@ const le = (e) => {
|
|
|
2185
2185
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2186
2186
|
*/
|
|
2187
2187
|
"placeholder-color": [{
|
|
2188
|
-
placeholder:
|
|
2188
|
+
placeholder: y()
|
|
2189
2189
|
}],
|
|
2190
2190
|
/**
|
|
2191
2191
|
* Text Color
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/text-color
|
|
2193
2193
|
*/
|
|
2194
2194
|
"text-color": [{
|
|
2195
|
-
text:
|
|
2195
|
+
text: y()
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Text Decoration
|
|
@@ -2204,28 +2204,28 @@ const le = (e) => {
|
|
|
2204
2204
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2205
2205
|
*/
|
|
2206
2206
|
"text-decoration-style": [{
|
|
2207
|
-
decoration: [...
|
|
2207
|
+
decoration: [...ee(), "wavy"]
|
|
2208
2208
|
}],
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Text Decoration Thickness
|
|
2211
2211
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2212
2212
|
*/
|
|
2213
2213
|
"text-decoration-thickness": [{
|
|
2214
|
-
decoration: [
|
|
2214
|
+
decoration: [X, "from-font", "auto", T, Ee]
|
|
2215
2215
|
}],
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Text Decoration Color
|
|
2218
2218
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2219
2219
|
*/
|
|
2220
2220
|
"text-decoration-color": [{
|
|
2221
|
-
decoration:
|
|
2221
|
+
decoration: y()
|
|
2222
2222
|
}],
|
|
2223
2223
|
/**
|
|
2224
2224
|
* Text Underline Offset
|
|
2225
2225
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2226
2226
|
*/
|
|
2227
2227
|
"underline-offset": [{
|
|
2228
|
-
"underline-offset": [
|
|
2228
|
+
"underline-offset": [X, "auto", T, N]
|
|
2229
2229
|
}],
|
|
2230
2230
|
/**
|
|
2231
2231
|
* Text Transform
|
|
@@ -2249,14 +2249,14 @@ const le = (e) => {
|
|
|
2249
2249
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2250
2250
|
*/
|
|
2251
2251
|
indent: [{
|
|
2252
|
-
indent:
|
|
2252
|
+
indent: E()
|
|
2253
2253
|
}],
|
|
2254
2254
|
/**
|
|
2255
2255
|
* Vertical Alignment
|
|
2256
2256
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2257
2257
|
*/
|
|
2258
2258
|
"vertical-align": [{
|
|
2259
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2259
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", T, N]
|
|
2260
2260
|
}],
|
|
2261
2261
|
/**
|
|
2262
2262
|
* Whitespace
|
|
@@ -2291,7 +2291,7 @@ const le = (e) => {
|
|
|
2291
2291
|
* @see https://tailwindcss.com/docs/content
|
|
2292
2292
|
*/
|
|
2293
2293
|
content: [{
|
|
2294
|
-
content: ["none",
|
|
2294
|
+
content: ["none", T, N]
|
|
2295
2295
|
}],
|
|
2296
2296
|
// -------------------
|
|
2297
2297
|
// --- Backgrounds ---
|
|
@@ -2329,7 +2329,7 @@ const le = (e) => {
|
|
|
2329
2329
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
2330
2330
|
*/
|
|
2331
2331
|
"bg-repeat": [{
|
|
2332
|
-
bg:
|
|
2332
|
+
bg: M()
|
|
2333
2333
|
}],
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Background Size
|
|
@@ -2346,9 +2346,9 @@ const le = (e) => {
|
|
|
2346
2346
|
bg: ["none", {
|
|
2347
2347
|
linear: [{
|
|
2348
2348
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2349
|
-
}, ke,
|
|
2350
|
-
radial: ["",
|
|
2351
|
-
conic: [ke,
|
|
2349
|
+
}, ke, T, N],
|
|
2350
|
+
radial: ["", T, N],
|
|
2351
|
+
conic: [ke, T, N]
|
|
2352
2352
|
}, Gr, Br]
|
|
2353
2353
|
}],
|
|
2354
2354
|
/**
|
|
@@ -2356,49 +2356,49 @@ const le = (e) => {
|
|
|
2356
2356
|
* @see https://tailwindcss.com/docs/background-color
|
|
2357
2357
|
*/
|
|
2358
2358
|
"bg-color": [{
|
|
2359
|
-
bg:
|
|
2359
|
+
bg: y()
|
|
2360
2360
|
}],
|
|
2361
2361
|
/**
|
|
2362
2362
|
* Gradient Color Stops From Position
|
|
2363
2363
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2364
2364
|
*/
|
|
2365
2365
|
"gradient-from-pos": [{
|
|
2366
|
-
from:
|
|
2366
|
+
from: S()
|
|
2367
2367
|
}],
|
|
2368
2368
|
/**
|
|
2369
2369
|
* Gradient Color Stops Via Position
|
|
2370
2370
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2371
2371
|
*/
|
|
2372
2372
|
"gradient-via-pos": [{
|
|
2373
|
-
via:
|
|
2373
|
+
via: S()
|
|
2374
2374
|
}],
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Gradient Color Stops To Position
|
|
2377
2377
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2378
2378
|
*/
|
|
2379
2379
|
"gradient-to-pos": [{
|
|
2380
|
-
to:
|
|
2380
|
+
to: S()
|
|
2381
2381
|
}],
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Gradient Color Stops From
|
|
2384
2384
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2385
2385
|
*/
|
|
2386
2386
|
"gradient-from": [{
|
|
2387
|
-
from:
|
|
2387
|
+
from: y()
|
|
2388
2388
|
}],
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Gradient Color Stops Via
|
|
2391
2391
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2392
2392
|
*/
|
|
2393
2393
|
"gradient-via": [{
|
|
2394
|
-
via:
|
|
2394
|
+
via: y()
|
|
2395
2395
|
}],
|
|
2396
2396
|
/**
|
|
2397
2397
|
* Gradient Color Stops To
|
|
2398
2398
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2399
2399
|
*/
|
|
2400
2400
|
"gradient-to": [{
|
|
2401
|
-
to:
|
|
2401
|
+
to: y()
|
|
2402
2402
|
}],
|
|
2403
2403
|
// ---------------
|
|
2404
2404
|
// --- Borders ---
|
|
@@ -2408,175 +2408,175 @@ const le = (e) => {
|
|
|
2408
2408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2409
2409
|
*/
|
|
2410
2410
|
rounded: [{
|
|
2411
|
-
rounded:
|
|
2411
|
+
rounded: R()
|
|
2412
2412
|
}],
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Border Radius Start
|
|
2415
2415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2416
2416
|
*/
|
|
2417
2417
|
"rounded-s": [{
|
|
2418
|
-
"rounded-s":
|
|
2418
|
+
"rounded-s": R()
|
|
2419
2419
|
}],
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Border Radius End
|
|
2422
2422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2423
2423
|
*/
|
|
2424
2424
|
"rounded-e": [{
|
|
2425
|
-
"rounded-e":
|
|
2425
|
+
"rounded-e": R()
|
|
2426
2426
|
}],
|
|
2427
2427
|
/**
|
|
2428
2428
|
* Border Radius Top
|
|
2429
2429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2430
2430
|
*/
|
|
2431
2431
|
"rounded-t": [{
|
|
2432
|
-
"rounded-t":
|
|
2432
|
+
"rounded-t": R()
|
|
2433
2433
|
}],
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Border Radius Right
|
|
2436
2436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2437
2437
|
*/
|
|
2438
2438
|
"rounded-r": [{
|
|
2439
|
-
"rounded-r":
|
|
2439
|
+
"rounded-r": R()
|
|
2440
2440
|
}],
|
|
2441
2441
|
/**
|
|
2442
2442
|
* Border Radius Bottom
|
|
2443
2443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2444
2444
|
*/
|
|
2445
2445
|
"rounded-b": [{
|
|
2446
|
-
"rounded-b":
|
|
2446
|
+
"rounded-b": R()
|
|
2447
2447
|
}],
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Border Radius Left
|
|
2450
2450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2451
2451
|
*/
|
|
2452
2452
|
"rounded-l": [{
|
|
2453
|
-
"rounded-l":
|
|
2453
|
+
"rounded-l": R()
|
|
2454
2454
|
}],
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Border Radius Start Start
|
|
2457
2457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2458
2458
|
*/
|
|
2459
2459
|
"rounded-ss": [{
|
|
2460
|
-
"rounded-ss":
|
|
2460
|
+
"rounded-ss": R()
|
|
2461
2461
|
}],
|
|
2462
2462
|
/**
|
|
2463
2463
|
* Border Radius Start End
|
|
2464
2464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2465
2465
|
*/
|
|
2466
2466
|
"rounded-se": [{
|
|
2467
|
-
"rounded-se":
|
|
2467
|
+
"rounded-se": R()
|
|
2468
2468
|
}],
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Border Radius End End
|
|
2471
2471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2472
2472
|
*/
|
|
2473
2473
|
"rounded-ee": [{
|
|
2474
|
-
"rounded-ee":
|
|
2474
|
+
"rounded-ee": R()
|
|
2475
2475
|
}],
|
|
2476
2476
|
/**
|
|
2477
2477
|
* Border Radius End Start
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2479
2479
|
*/
|
|
2480
2480
|
"rounded-es": [{
|
|
2481
|
-
"rounded-es":
|
|
2481
|
+
"rounded-es": R()
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Border Radius Top Left
|
|
2485
2485
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2486
2486
|
*/
|
|
2487
2487
|
"rounded-tl": [{
|
|
2488
|
-
"rounded-tl":
|
|
2488
|
+
"rounded-tl": R()
|
|
2489
2489
|
}],
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Border Radius Top Right
|
|
2492
2492
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2493
2493
|
*/
|
|
2494
2494
|
"rounded-tr": [{
|
|
2495
|
-
"rounded-tr":
|
|
2495
|
+
"rounded-tr": R()
|
|
2496
2496
|
}],
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Border Radius Bottom Right
|
|
2499
2499
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2500
2500
|
*/
|
|
2501
2501
|
"rounded-br": [{
|
|
2502
|
-
"rounded-br":
|
|
2502
|
+
"rounded-br": R()
|
|
2503
2503
|
}],
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Border Radius Bottom Left
|
|
2506
2506
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2507
2507
|
*/
|
|
2508
2508
|
"rounded-bl": [{
|
|
2509
|
-
"rounded-bl":
|
|
2509
|
+
"rounded-bl": R()
|
|
2510
2510
|
}],
|
|
2511
2511
|
/**
|
|
2512
2512
|
* Border Width
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/border-width
|
|
2514
2514
|
*/
|
|
2515
2515
|
"border-w": [{
|
|
2516
|
-
border:
|
|
2516
|
+
border: A()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Border Width X
|
|
2520
2520
|
* @see https://tailwindcss.com/docs/border-width
|
|
2521
2521
|
*/
|
|
2522
2522
|
"border-w-x": [{
|
|
2523
|
-
"border-x":
|
|
2523
|
+
"border-x": A()
|
|
2524
2524
|
}],
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Border Width Y
|
|
2527
2527
|
* @see https://tailwindcss.com/docs/border-width
|
|
2528
2528
|
*/
|
|
2529
2529
|
"border-w-y": [{
|
|
2530
|
-
"border-y":
|
|
2530
|
+
"border-y": A()
|
|
2531
2531
|
}],
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Border Width Start
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/border-width
|
|
2535
2535
|
*/
|
|
2536
2536
|
"border-w-s": [{
|
|
2537
|
-
"border-s":
|
|
2537
|
+
"border-s": A()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Border Width End
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/border-width
|
|
2542
2542
|
*/
|
|
2543
2543
|
"border-w-e": [{
|
|
2544
|
-
"border-e":
|
|
2544
|
+
"border-e": A()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Border Width Top
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/border-width
|
|
2549
2549
|
*/
|
|
2550
2550
|
"border-w-t": [{
|
|
2551
|
-
"border-t":
|
|
2551
|
+
"border-t": A()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Border Width Right
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/border-width
|
|
2556
2556
|
*/
|
|
2557
2557
|
"border-w-r": [{
|
|
2558
|
-
"border-r":
|
|
2558
|
+
"border-r": A()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Border Width Bottom
|
|
2562
2562
|
* @see https://tailwindcss.com/docs/border-width
|
|
2563
2563
|
*/
|
|
2564
2564
|
"border-w-b": [{
|
|
2565
|
-
"border-b":
|
|
2565
|
+
"border-b": A()
|
|
2566
2566
|
}],
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Border Width Left
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/border-width
|
|
2570
2570
|
*/
|
|
2571
2571
|
"border-w-l": [{
|
|
2572
|
-
"border-l":
|
|
2572
|
+
"border-l": A()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Divide Width X
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2577
2577
|
*/
|
|
2578
2578
|
"divide-x": [{
|
|
2579
|
-
"divide-x":
|
|
2579
|
+
"divide-x": A()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Divide Width X Reverse
|
|
@@ -2588,7 +2588,7 @@ const le = (e) => {
|
|
|
2588
2588
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2589
2589
|
*/
|
|
2590
2590
|
"divide-y": [{
|
|
2591
|
-
"divide-y":
|
|
2591
|
+
"divide-y": A()
|
|
2592
2592
|
}],
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Divide Width Y Reverse
|
|
@@ -2600,112 +2600,112 @@ const le = (e) => {
|
|
|
2600
2600
|
* @see https://tailwindcss.com/docs/border-style
|
|
2601
2601
|
*/
|
|
2602
2602
|
"border-style": [{
|
|
2603
|
-
border: [...
|
|
2603
|
+
border: [...ee(), "hidden", "none"]
|
|
2604
2604
|
}],
|
|
2605
2605
|
/**
|
|
2606
2606
|
* Divide Style
|
|
2607
2607
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2608
2608
|
*/
|
|
2609
2609
|
"divide-style": [{
|
|
2610
|
-
divide: [...
|
|
2610
|
+
divide: [...ee(), "hidden", "none"]
|
|
2611
2611
|
}],
|
|
2612
2612
|
/**
|
|
2613
2613
|
* Border Color
|
|
2614
2614
|
* @see https://tailwindcss.com/docs/border-color
|
|
2615
2615
|
*/
|
|
2616
2616
|
"border-color": [{
|
|
2617
|
-
border:
|
|
2617
|
+
border: y()
|
|
2618
2618
|
}],
|
|
2619
2619
|
/**
|
|
2620
2620
|
* Border Color X
|
|
2621
2621
|
* @see https://tailwindcss.com/docs/border-color
|
|
2622
2622
|
*/
|
|
2623
2623
|
"border-color-x": [{
|
|
2624
|
-
"border-x":
|
|
2624
|
+
"border-x": y()
|
|
2625
2625
|
}],
|
|
2626
2626
|
/**
|
|
2627
2627
|
* Border Color Y
|
|
2628
2628
|
* @see https://tailwindcss.com/docs/border-color
|
|
2629
2629
|
*/
|
|
2630
2630
|
"border-color-y": [{
|
|
2631
|
-
"border-y":
|
|
2631
|
+
"border-y": y()
|
|
2632
2632
|
}],
|
|
2633
2633
|
/**
|
|
2634
2634
|
* Border Color S
|
|
2635
2635
|
* @see https://tailwindcss.com/docs/border-color
|
|
2636
2636
|
*/
|
|
2637
2637
|
"border-color-s": [{
|
|
2638
|
-
"border-s":
|
|
2638
|
+
"border-s": y()
|
|
2639
2639
|
}],
|
|
2640
2640
|
/**
|
|
2641
2641
|
* Border Color E
|
|
2642
2642
|
* @see https://tailwindcss.com/docs/border-color
|
|
2643
2643
|
*/
|
|
2644
2644
|
"border-color-e": [{
|
|
2645
|
-
"border-e":
|
|
2645
|
+
"border-e": y()
|
|
2646
2646
|
}],
|
|
2647
2647
|
/**
|
|
2648
2648
|
* Border Color Top
|
|
2649
2649
|
* @see https://tailwindcss.com/docs/border-color
|
|
2650
2650
|
*/
|
|
2651
2651
|
"border-color-t": [{
|
|
2652
|
-
"border-t":
|
|
2652
|
+
"border-t": y()
|
|
2653
2653
|
}],
|
|
2654
2654
|
/**
|
|
2655
2655
|
* Border Color Right
|
|
2656
2656
|
* @see https://tailwindcss.com/docs/border-color
|
|
2657
2657
|
*/
|
|
2658
2658
|
"border-color-r": [{
|
|
2659
|
-
"border-r":
|
|
2659
|
+
"border-r": y()
|
|
2660
2660
|
}],
|
|
2661
2661
|
/**
|
|
2662
2662
|
* Border Color Bottom
|
|
2663
2663
|
* @see https://tailwindcss.com/docs/border-color
|
|
2664
2664
|
*/
|
|
2665
2665
|
"border-color-b": [{
|
|
2666
|
-
"border-b":
|
|
2666
|
+
"border-b": y()
|
|
2667
2667
|
}],
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Border Color Left
|
|
2670
2670
|
* @see https://tailwindcss.com/docs/border-color
|
|
2671
2671
|
*/
|
|
2672
2672
|
"border-color-l": [{
|
|
2673
|
-
"border-l":
|
|
2673
|
+
"border-l": y()
|
|
2674
2674
|
}],
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Divide Color
|
|
2677
2677
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2678
2678
|
*/
|
|
2679
2679
|
"divide-color": [{
|
|
2680
|
-
divide:
|
|
2680
|
+
divide: y()
|
|
2681
2681
|
}],
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Outline Style
|
|
2684
2684
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2685
2685
|
*/
|
|
2686
2686
|
"outline-style": [{
|
|
2687
|
-
outline: [...
|
|
2687
|
+
outline: [...ee(), "none", "hidden"]
|
|
2688
2688
|
}],
|
|
2689
2689
|
/**
|
|
2690
2690
|
* Outline Offset
|
|
2691
2691
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2692
2692
|
*/
|
|
2693
2693
|
"outline-offset": [{
|
|
2694
|
-
"outline-offset": [
|
|
2694
|
+
"outline-offset": [X, T, N]
|
|
2695
2695
|
}],
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Outline Width
|
|
2698
2698
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2699
2699
|
*/
|
|
2700
2700
|
"outline-w": [{
|
|
2701
|
-
outline: ["",
|
|
2701
|
+
outline: ["", X, Oe, Ee]
|
|
2702
2702
|
}],
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Outline Color
|
|
2705
2705
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2706
2706
|
*/
|
|
2707
2707
|
"outline-color": [{
|
|
2708
|
-
outline:
|
|
2708
|
+
outline: y()
|
|
2709
2709
|
}],
|
|
2710
2710
|
// ---------------
|
|
2711
2711
|
// --- Effects ---
|
|
@@ -2719,7 +2719,7 @@ const le = (e) => {
|
|
|
2719
2719
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2720
2720
|
"",
|
|
2721
2721
|
"none",
|
|
2722
|
-
|
|
2722
|
+
z,
|
|
2723
2723
|
Ue,
|
|
2724
2724
|
We
|
|
2725
2725
|
]
|
|
@@ -2729,28 +2729,28 @@ const le = (e) => {
|
|
|
2729
2729
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2730
2730
|
*/
|
|
2731
2731
|
"shadow-color": [{
|
|
2732
|
-
shadow:
|
|
2732
|
+
shadow: y()
|
|
2733
2733
|
}],
|
|
2734
2734
|
/**
|
|
2735
2735
|
* Inset Box Shadow
|
|
2736
2736
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2737
2737
|
*/
|
|
2738
2738
|
"inset-shadow": [{
|
|
2739
|
-
"inset-shadow": ["none",
|
|
2739
|
+
"inset-shadow": ["none", f, Ue, We]
|
|
2740
2740
|
}],
|
|
2741
2741
|
/**
|
|
2742
2742
|
* Inset Box Shadow Color
|
|
2743
2743
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2744
2744
|
*/
|
|
2745
2745
|
"inset-shadow-color": [{
|
|
2746
|
-
"inset-shadow":
|
|
2746
|
+
"inset-shadow": y()
|
|
2747
2747
|
}],
|
|
2748
2748
|
/**
|
|
2749
2749
|
* Ring Width
|
|
2750
2750
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2751
2751
|
*/
|
|
2752
2752
|
"ring-w": [{
|
|
2753
|
-
ring:
|
|
2753
|
+
ring: A()
|
|
2754
2754
|
}],
|
|
2755
2755
|
/**
|
|
2756
2756
|
* Ring Width Inset
|
|
@@ -2764,7 +2764,7 @@ const le = (e) => {
|
|
|
2764
2764
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2765
2765
|
*/
|
|
2766
2766
|
"ring-color": [{
|
|
2767
|
-
ring:
|
|
2767
|
+
ring: y()
|
|
2768
2768
|
}],
|
|
2769
2769
|
/**
|
|
2770
2770
|
* Ring Offset Width
|
|
@@ -2773,7 +2773,7 @@ const le = (e) => {
|
|
|
2773
2773
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2774
2774
|
*/
|
|
2775
2775
|
"ring-offset-w": [{
|
|
2776
|
-
"ring-offset": [
|
|
2776
|
+
"ring-offset": [X, Ee]
|
|
2777
2777
|
}],
|
|
2778
2778
|
/**
|
|
2779
2779
|
* Ring Offset Color
|
|
@@ -2782,56 +2782,56 @@ const le = (e) => {
|
|
|
2782
2782
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2783
2783
|
*/
|
|
2784
2784
|
"ring-offset-color": [{
|
|
2785
|
-
"ring-offset":
|
|
2785
|
+
"ring-offset": y()
|
|
2786
2786
|
}],
|
|
2787
2787
|
/**
|
|
2788
2788
|
* Inset Ring Width
|
|
2789
2789
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2790
2790
|
*/
|
|
2791
2791
|
"inset-ring-w": [{
|
|
2792
|
-
"inset-ring":
|
|
2792
|
+
"inset-ring": A()
|
|
2793
2793
|
}],
|
|
2794
2794
|
/**
|
|
2795
2795
|
* Inset Ring Color
|
|
2796
2796
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2797
2797
|
*/
|
|
2798
2798
|
"inset-ring-color": [{
|
|
2799
|
-
"inset-ring":
|
|
2799
|
+
"inset-ring": y()
|
|
2800
2800
|
}],
|
|
2801
2801
|
/**
|
|
2802
2802
|
* Text Shadow
|
|
2803
2803
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2804
2804
|
*/
|
|
2805
2805
|
"text-shadow": [{
|
|
2806
|
-
"text-shadow": ["none",
|
|
2806
|
+
"text-shadow": ["none", d, Ue, We]
|
|
2807
2807
|
}],
|
|
2808
2808
|
/**
|
|
2809
2809
|
* Text Shadow Color
|
|
2810
2810
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2811
2811
|
*/
|
|
2812
2812
|
"text-shadow-color": [{
|
|
2813
|
-
"text-shadow":
|
|
2813
|
+
"text-shadow": y()
|
|
2814
2814
|
}],
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Opacity
|
|
2817
2817
|
* @see https://tailwindcss.com/docs/opacity
|
|
2818
2818
|
*/
|
|
2819
2819
|
opacity: [{
|
|
2820
|
-
opacity: [
|
|
2820
|
+
opacity: [X, T, N]
|
|
2821
2821
|
}],
|
|
2822
2822
|
/**
|
|
2823
2823
|
* Mix Blend Mode
|
|
2824
2824
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2825
2825
|
*/
|
|
2826
2826
|
"mix-blend": [{
|
|
2827
|
-
"mix-blend": [...
|
|
2827
|
+
"mix-blend": [...m(), "plus-darker", "plus-lighter"]
|
|
2828
2828
|
}],
|
|
2829
2829
|
/**
|
|
2830
2830
|
* Background Blend Mode
|
|
2831
2831
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2832
2832
|
*/
|
|
2833
2833
|
"bg-blend": [{
|
|
2834
|
-
"bg-blend":
|
|
2834
|
+
"bg-blend": m()
|
|
2835
2835
|
}],
|
|
2836
2836
|
/**
|
|
2837
2837
|
* Mask Clip
|
|
@@ -2852,106 +2852,106 @@ const le = (e) => {
|
|
|
2852
2852
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2853
2853
|
*/
|
|
2854
2854
|
"mask-image-linear-pos": [{
|
|
2855
|
-
"mask-linear": [
|
|
2855
|
+
"mask-linear": [X]
|
|
2856
2856
|
}],
|
|
2857
2857
|
"mask-image-linear-from-pos": [{
|
|
2858
|
-
"mask-linear-from":
|
|
2858
|
+
"mask-linear-from": b()
|
|
2859
2859
|
}],
|
|
2860
2860
|
"mask-image-linear-to-pos": [{
|
|
2861
|
-
"mask-linear-to":
|
|
2861
|
+
"mask-linear-to": b()
|
|
2862
2862
|
}],
|
|
2863
2863
|
"mask-image-linear-from-color": [{
|
|
2864
|
-
"mask-linear-from":
|
|
2864
|
+
"mask-linear-from": y()
|
|
2865
2865
|
}],
|
|
2866
2866
|
"mask-image-linear-to-color": [{
|
|
2867
|
-
"mask-linear-to":
|
|
2867
|
+
"mask-linear-to": y()
|
|
2868
2868
|
}],
|
|
2869
2869
|
"mask-image-t-from-pos": [{
|
|
2870
|
-
"mask-t-from":
|
|
2870
|
+
"mask-t-from": b()
|
|
2871
2871
|
}],
|
|
2872
2872
|
"mask-image-t-to-pos": [{
|
|
2873
|
-
"mask-t-to":
|
|
2873
|
+
"mask-t-to": b()
|
|
2874
2874
|
}],
|
|
2875
2875
|
"mask-image-t-from-color": [{
|
|
2876
|
-
"mask-t-from":
|
|
2876
|
+
"mask-t-from": y()
|
|
2877
2877
|
}],
|
|
2878
2878
|
"mask-image-t-to-color": [{
|
|
2879
|
-
"mask-t-to":
|
|
2879
|
+
"mask-t-to": y()
|
|
2880
2880
|
}],
|
|
2881
2881
|
"mask-image-r-from-pos": [{
|
|
2882
|
-
"mask-r-from":
|
|
2882
|
+
"mask-r-from": b()
|
|
2883
2883
|
}],
|
|
2884
2884
|
"mask-image-r-to-pos": [{
|
|
2885
|
-
"mask-r-to":
|
|
2885
|
+
"mask-r-to": b()
|
|
2886
2886
|
}],
|
|
2887
2887
|
"mask-image-r-from-color": [{
|
|
2888
|
-
"mask-r-from":
|
|
2888
|
+
"mask-r-from": y()
|
|
2889
2889
|
}],
|
|
2890
2890
|
"mask-image-r-to-color": [{
|
|
2891
|
-
"mask-r-to":
|
|
2891
|
+
"mask-r-to": y()
|
|
2892
2892
|
}],
|
|
2893
2893
|
"mask-image-b-from-pos": [{
|
|
2894
|
-
"mask-b-from":
|
|
2894
|
+
"mask-b-from": b()
|
|
2895
2895
|
}],
|
|
2896
2896
|
"mask-image-b-to-pos": [{
|
|
2897
|
-
"mask-b-to":
|
|
2897
|
+
"mask-b-to": b()
|
|
2898
2898
|
}],
|
|
2899
2899
|
"mask-image-b-from-color": [{
|
|
2900
|
-
"mask-b-from":
|
|
2900
|
+
"mask-b-from": y()
|
|
2901
2901
|
}],
|
|
2902
2902
|
"mask-image-b-to-color": [{
|
|
2903
|
-
"mask-b-to":
|
|
2903
|
+
"mask-b-to": y()
|
|
2904
2904
|
}],
|
|
2905
2905
|
"mask-image-l-from-pos": [{
|
|
2906
|
-
"mask-l-from":
|
|
2906
|
+
"mask-l-from": b()
|
|
2907
2907
|
}],
|
|
2908
2908
|
"mask-image-l-to-pos": [{
|
|
2909
|
-
"mask-l-to":
|
|
2909
|
+
"mask-l-to": b()
|
|
2910
2910
|
}],
|
|
2911
2911
|
"mask-image-l-from-color": [{
|
|
2912
|
-
"mask-l-from":
|
|
2912
|
+
"mask-l-from": y()
|
|
2913
2913
|
}],
|
|
2914
2914
|
"mask-image-l-to-color": [{
|
|
2915
|
-
"mask-l-to":
|
|
2915
|
+
"mask-l-to": y()
|
|
2916
2916
|
}],
|
|
2917
2917
|
"mask-image-x-from-pos": [{
|
|
2918
|
-
"mask-x-from":
|
|
2918
|
+
"mask-x-from": b()
|
|
2919
2919
|
}],
|
|
2920
2920
|
"mask-image-x-to-pos": [{
|
|
2921
|
-
"mask-x-to":
|
|
2921
|
+
"mask-x-to": b()
|
|
2922
2922
|
}],
|
|
2923
2923
|
"mask-image-x-from-color": [{
|
|
2924
|
-
"mask-x-from":
|
|
2924
|
+
"mask-x-from": y()
|
|
2925
2925
|
}],
|
|
2926
2926
|
"mask-image-x-to-color": [{
|
|
2927
|
-
"mask-x-to":
|
|
2927
|
+
"mask-x-to": y()
|
|
2928
2928
|
}],
|
|
2929
2929
|
"mask-image-y-from-pos": [{
|
|
2930
|
-
"mask-y-from":
|
|
2930
|
+
"mask-y-from": b()
|
|
2931
2931
|
}],
|
|
2932
2932
|
"mask-image-y-to-pos": [{
|
|
2933
|
-
"mask-y-to":
|
|
2933
|
+
"mask-y-to": b()
|
|
2934
2934
|
}],
|
|
2935
2935
|
"mask-image-y-from-color": [{
|
|
2936
|
-
"mask-y-from":
|
|
2936
|
+
"mask-y-from": y()
|
|
2937
2937
|
}],
|
|
2938
2938
|
"mask-image-y-to-color": [{
|
|
2939
|
-
"mask-y-to":
|
|
2939
|
+
"mask-y-to": y()
|
|
2940
2940
|
}],
|
|
2941
2941
|
"mask-image-radial": [{
|
|
2942
|
-
"mask-radial": [
|
|
2942
|
+
"mask-radial": [T, N]
|
|
2943
2943
|
}],
|
|
2944
2944
|
"mask-image-radial-from-pos": [{
|
|
2945
|
-
"mask-radial-from":
|
|
2945
|
+
"mask-radial-from": b()
|
|
2946
2946
|
}],
|
|
2947
2947
|
"mask-image-radial-to-pos": [{
|
|
2948
|
-
"mask-radial-to":
|
|
2948
|
+
"mask-radial-to": b()
|
|
2949
2949
|
}],
|
|
2950
2950
|
"mask-image-radial-from-color": [{
|
|
2951
|
-
"mask-radial-from":
|
|
2951
|
+
"mask-radial-from": y()
|
|
2952
2952
|
}],
|
|
2953
2953
|
"mask-image-radial-to-color": [{
|
|
2954
|
-
"mask-radial-to":
|
|
2954
|
+
"mask-radial-to": y()
|
|
2955
2955
|
}],
|
|
2956
2956
|
"mask-image-radial-shape": [{
|
|
2957
2957
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2963,22 +2963,22 @@ const le = (e) => {
|
|
|
2963
2963
|
}]
|
|
2964
2964
|
}],
|
|
2965
2965
|
"mask-image-radial-pos": [{
|
|
2966
|
-
"mask-radial-at":
|
|
2966
|
+
"mask-radial-at": $()
|
|
2967
2967
|
}],
|
|
2968
2968
|
"mask-image-conic-pos": [{
|
|
2969
|
-
"mask-conic": [
|
|
2969
|
+
"mask-conic": [X]
|
|
2970
2970
|
}],
|
|
2971
2971
|
"mask-image-conic-from-pos": [{
|
|
2972
|
-
"mask-conic-from":
|
|
2972
|
+
"mask-conic-from": b()
|
|
2973
2973
|
}],
|
|
2974
2974
|
"mask-image-conic-to-pos": [{
|
|
2975
|
-
"mask-conic-to":
|
|
2975
|
+
"mask-conic-to": b()
|
|
2976
2976
|
}],
|
|
2977
2977
|
"mask-image-conic-from-color": [{
|
|
2978
|
-
"mask-conic-from":
|
|
2978
|
+
"mask-conic-from": y()
|
|
2979
2979
|
}],
|
|
2980
2980
|
"mask-image-conic-to-color": [{
|
|
2981
|
-
"mask-conic-to":
|
|
2981
|
+
"mask-conic-to": y()
|
|
2982
2982
|
}],
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Mask Mode
|
|
@@ -3006,7 +3006,7 @@ const le = (e) => {
|
|
|
3006
3006
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
3007
3007
|
*/
|
|
3008
3008
|
"mask-repeat": [{
|
|
3009
|
-
mask:
|
|
3009
|
+
mask: M()
|
|
3010
3010
|
}],
|
|
3011
3011
|
/**
|
|
3012
3012
|
* Mask Size
|
|
@@ -3027,7 +3027,7 @@ const le = (e) => {
|
|
|
3027
3027
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3028
3028
|
*/
|
|
3029
3029
|
"mask-image": [{
|
|
3030
|
-
mask: ["none",
|
|
3030
|
+
mask: ["none", T, N]
|
|
3031
3031
|
}],
|
|
3032
3032
|
// ---------------
|
|
3033
3033
|
// --- Filters ---
|
|
@@ -3041,8 +3041,8 @@ const le = (e) => {
|
|
|
3041
3041
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3042
3042
|
"",
|
|
3043
3043
|
"none",
|
|
3044
|
-
|
|
3045
|
-
|
|
3044
|
+
T,
|
|
3045
|
+
N
|
|
3046
3046
|
]
|
|
3047
3047
|
}],
|
|
3048
3048
|
/**
|
|
@@ -3050,21 +3050,21 @@ const le = (e) => {
|
|
|
3050
3050
|
* @see https://tailwindcss.com/docs/blur
|
|
3051
3051
|
*/
|
|
3052
3052
|
blur: [{
|
|
3053
|
-
blur:
|
|
3053
|
+
blur: B()
|
|
3054
3054
|
}],
|
|
3055
3055
|
/**
|
|
3056
3056
|
* Brightness
|
|
3057
3057
|
* @see https://tailwindcss.com/docs/brightness
|
|
3058
3058
|
*/
|
|
3059
3059
|
brightness: [{
|
|
3060
|
-
brightness: [
|
|
3060
|
+
brightness: [X, T, N]
|
|
3061
3061
|
}],
|
|
3062
3062
|
/**
|
|
3063
3063
|
* Contrast
|
|
3064
3064
|
* @see https://tailwindcss.com/docs/contrast
|
|
3065
3065
|
*/
|
|
3066
3066
|
contrast: [{
|
|
3067
|
-
contrast: [
|
|
3067
|
+
contrast: [X, T, N]
|
|
3068
3068
|
}],
|
|
3069
3069
|
/**
|
|
3070
3070
|
* Drop Shadow
|
|
@@ -3085,42 +3085,42 @@ const le = (e) => {
|
|
|
3085
3085
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3086
3086
|
*/
|
|
3087
3087
|
"drop-shadow-color": [{
|
|
3088
|
-
"drop-shadow":
|
|
3088
|
+
"drop-shadow": y()
|
|
3089
3089
|
}],
|
|
3090
3090
|
/**
|
|
3091
3091
|
* Grayscale
|
|
3092
3092
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3093
3093
|
*/
|
|
3094
3094
|
grayscale: [{
|
|
3095
|
-
grayscale: ["",
|
|
3095
|
+
grayscale: ["", X, T, N]
|
|
3096
3096
|
}],
|
|
3097
3097
|
/**
|
|
3098
3098
|
* Hue Rotate
|
|
3099
3099
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3100
3100
|
*/
|
|
3101
3101
|
"hue-rotate": [{
|
|
3102
|
-
"hue-rotate": [
|
|
3102
|
+
"hue-rotate": [X, T, N]
|
|
3103
3103
|
}],
|
|
3104
3104
|
/**
|
|
3105
3105
|
* Invert
|
|
3106
3106
|
* @see https://tailwindcss.com/docs/invert
|
|
3107
3107
|
*/
|
|
3108
3108
|
invert: [{
|
|
3109
|
-
invert: ["",
|
|
3109
|
+
invert: ["", X, T, N]
|
|
3110
3110
|
}],
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Saturate
|
|
3113
3113
|
* @see https://tailwindcss.com/docs/saturate
|
|
3114
3114
|
*/
|
|
3115
3115
|
saturate: [{
|
|
3116
|
-
saturate: [
|
|
3116
|
+
saturate: [X, T, N]
|
|
3117
3117
|
}],
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Sepia
|
|
3120
3120
|
* @see https://tailwindcss.com/docs/sepia
|
|
3121
3121
|
*/
|
|
3122
3122
|
sepia: [{
|
|
3123
|
-
sepia: ["",
|
|
3123
|
+
sepia: ["", X, T, N]
|
|
3124
3124
|
}],
|
|
3125
3125
|
/**
|
|
3126
3126
|
* Backdrop Filter
|
|
@@ -3131,8 +3131,8 @@ const le = (e) => {
|
|
|
3131
3131
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3132
3132
|
"",
|
|
3133
3133
|
"none",
|
|
3134
|
-
|
|
3135
|
-
|
|
3134
|
+
T,
|
|
3135
|
+
N
|
|
3136
3136
|
]
|
|
3137
3137
|
}],
|
|
3138
3138
|
/**
|
|
@@ -3140,63 +3140,63 @@ const le = (e) => {
|
|
|
3140
3140
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3141
3141
|
*/
|
|
3142
3142
|
"backdrop-blur": [{
|
|
3143
|
-
"backdrop-blur":
|
|
3143
|
+
"backdrop-blur": B()
|
|
3144
3144
|
}],
|
|
3145
3145
|
/**
|
|
3146
3146
|
* Backdrop Brightness
|
|
3147
3147
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3148
3148
|
*/
|
|
3149
3149
|
"backdrop-brightness": [{
|
|
3150
|
-
"backdrop-brightness": [
|
|
3150
|
+
"backdrop-brightness": [X, T, N]
|
|
3151
3151
|
}],
|
|
3152
3152
|
/**
|
|
3153
3153
|
* Backdrop Contrast
|
|
3154
3154
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3155
3155
|
*/
|
|
3156
3156
|
"backdrop-contrast": [{
|
|
3157
|
-
"backdrop-contrast": [
|
|
3157
|
+
"backdrop-contrast": [X, T, N]
|
|
3158
3158
|
}],
|
|
3159
3159
|
/**
|
|
3160
3160
|
* Backdrop Grayscale
|
|
3161
3161
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3162
3162
|
*/
|
|
3163
3163
|
"backdrop-grayscale": [{
|
|
3164
|
-
"backdrop-grayscale": ["",
|
|
3164
|
+
"backdrop-grayscale": ["", X, T, N]
|
|
3165
3165
|
}],
|
|
3166
3166
|
/**
|
|
3167
3167
|
* Backdrop Hue Rotate
|
|
3168
3168
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3169
3169
|
*/
|
|
3170
3170
|
"backdrop-hue-rotate": [{
|
|
3171
|
-
"backdrop-hue-rotate": [
|
|
3171
|
+
"backdrop-hue-rotate": [X, T, N]
|
|
3172
3172
|
}],
|
|
3173
3173
|
/**
|
|
3174
3174
|
* Backdrop Invert
|
|
3175
3175
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3176
3176
|
*/
|
|
3177
3177
|
"backdrop-invert": [{
|
|
3178
|
-
"backdrop-invert": ["",
|
|
3178
|
+
"backdrop-invert": ["", X, T, N]
|
|
3179
3179
|
}],
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Backdrop Opacity
|
|
3182
3182
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3183
3183
|
*/
|
|
3184
3184
|
"backdrop-opacity": [{
|
|
3185
|
-
"backdrop-opacity": [
|
|
3185
|
+
"backdrop-opacity": [X, T, N]
|
|
3186
3186
|
}],
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Backdrop Saturate
|
|
3189
3189
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3190
3190
|
*/
|
|
3191
3191
|
"backdrop-saturate": [{
|
|
3192
|
-
"backdrop-saturate": [
|
|
3192
|
+
"backdrop-saturate": [X, T, N]
|
|
3193
3193
|
}],
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Backdrop Sepia
|
|
3196
3196
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3197
3197
|
*/
|
|
3198
3198
|
"backdrop-sepia": [{
|
|
3199
|
-
"backdrop-sepia": ["",
|
|
3199
|
+
"backdrop-sepia": ["", X, T, N]
|
|
3200
3200
|
}],
|
|
3201
3201
|
// --------------
|
|
3202
3202
|
// --- Tables ---
|
|
@@ -3213,21 +3213,21 @@ const le = (e) => {
|
|
|
3213
3213
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3214
3214
|
*/
|
|
3215
3215
|
"border-spacing": [{
|
|
3216
|
-
"border-spacing":
|
|
3216
|
+
"border-spacing": E()
|
|
3217
3217
|
}],
|
|
3218
3218
|
/**
|
|
3219
3219
|
* Border Spacing X
|
|
3220
3220
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3221
3221
|
*/
|
|
3222
3222
|
"border-spacing-x": [{
|
|
3223
|
-
"border-spacing-x":
|
|
3223
|
+
"border-spacing-x": E()
|
|
3224
3224
|
}],
|
|
3225
3225
|
/**
|
|
3226
3226
|
* Border Spacing Y
|
|
3227
3227
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3228
3228
|
*/
|
|
3229
3229
|
"border-spacing-y": [{
|
|
3230
|
-
"border-spacing-y":
|
|
3230
|
+
"border-spacing-y": E()
|
|
3231
3231
|
}],
|
|
3232
3232
|
/**
|
|
3233
3233
|
* Table Layout
|
|
@@ -3251,7 +3251,7 @@ const le = (e) => {
|
|
|
3251
3251
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3252
3252
|
*/
|
|
3253
3253
|
transition: [{
|
|
3254
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3254
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", T, N]
|
|
3255
3255
|
}],
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Transition Behavior
|
|
@@ -3265,28 +3265,28 @@ const le = (e) => {
|
|
|
3265
3265
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3266
3266
|
*/
|
|
3267
3267
|
duration: [{
|
|
3268
|
-
duration: [
|
|
3268
|
+
duration: [X, "initial", T, N]
|
|
3269
3269
|
}],
|
|
3270
3270
|
/**
|
|
3271
3271
|
* Transition Timing Function
|
|
3272
3272
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3273
3273
|
*/
|
|
3274
3274
|
ease: [{
|
|
3275
|
-
ease: ["linear", "initial", p,
|
|
3275
|
+
ease: ["linear", "initial", p, T, N]
|
|
3276
3276
|
}],
|
|
3277
3277
|
/**
|
|
3278
3278
|
* Transition Delay
|
|
3279
3279
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3280
3280
|
*/
|
|
3281
3281
|
delay: [{
|
|
3282
|
-
delay: [
|
|
3282
|
+
delay: [X, T, N]
|
|
3283
3283
|
}],
|
|
3284
3284
|
/**
|
|
3285
3285
|
* Animation
|
|
3286
3286
|
* @see https://tailwindcss.com/docs/animation
|
|
3287
3287
|
*/
|
|
3288
3288
|
animate: [{
|
|
3289
|
-
animate: ["none",
|
|
3289
|
+
animate: ["none", x, T, N]
|
|
3290
3290
|
}],
|
|
3291
3291
|
// ------------------
|
|
3292
3292
|
// --- Transforms ---
|
|
@@ -3303,70 +3303,70 @@ const le = (e) => {
|
|
|
3303
3303
|
* @see https://tailwindcss.com/docs/perspective
|
|
3304
3304
|
*/
|
|
3305
3305
|
perspective: [{
|
|
3306
|
-
perspective: [
|
|
3306
|
+
perspective: [w, T, N]
|
|
3307
3307
|
}],
|
|
3308
3308
|
/**
|
|
3309
3309
|
* Perspective Origin
|
|
3310
3310
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3311
3311
|
*/
|
|
3312
3312
|
"perspective-origin": [{
|
|
3313
|
-
"perspective-origin":
|
|
3313
|
+
"perspective-origin": J()
|
|
3314
3314
|
}],
|
|
3315
3315
|
/**
|
|
3316
3316
|
* Rotate
|
|
3317
3317
|
* @see https://tailwindcss.com/docs/rotate
|
|
3318
3318
|
*/
|
|
3319
3319
|
rotate: [{
|
|
3320
|
-
rotate:
|
|
3320
|
+
rotate: g()
|
|
3321
3321
|
}],
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Rotate X
|
|
3324
3324
|
* @see https://tailwindcss.com/docs/rotate
|
|
3325
3325
|
*/
|
|
3326
3326
|
"rotate-x": [{
|
|
3327
|
-
"rotate-x":
|
|
3327
|
+
"rotate-x": g()
|
|
3328
3328
|
}],
|
|
3329
3329
|
/**
|
|
3330
3330
|
* Rotate Y
|
|
3331
3331
|
* @see https://tailwindcss.com/docs/rotate
|
|
3332
3332
|
*/
|
|
3333
3333
|
"rotate-y": [{
|
|
3334
|
-
"rotate-y":
|
|
3334
|
+
"rotate-y": g()
|
|
3335
3335
|
}],
|
|
3336
3336
|
/**
|
|
3337
3337
|
* Rotate Z
|
|
3338
3338
|
* @see https://tailwindcss.com/docs/rotate
|
|
3339
3339
|
*/
|
|
3340
3340
|
"rotate-z": [{
|
|
3341
|
-
"rotate-z":
|
|
3341
|
+
"rotate-z": g()
|
|
3342
3342
|
}],
|
|
3343
3343
|
/**
|
|
3344
3344
|
* Scale
|
|
3345
3345
|
* @see https://tailwindcss.com/docs/scale
|
|
3346
3346
|
*/
|
|
3347
3347
|
scale: [{
|
|
3348
|
-
scale:
|
|
3348
|
+
scale: I()
|
|
3349
3349
|
}],
|
|
3350
3350
|
/**
|
|
3351
3351
|
* Scale X
|
|
3352
3352
|
* @see https://tailwindcss.com/docs/scale
|
|
3353
3353
|
*/
|
|
3354
3354
|
"scale-x": [{
|
|
3355
|
-
"scale-x":
|
|
3355
|
+
"scale-x": I()
|
|
3356
3356
|
}],
|
|
3357
3357
|
/**
|
|
3358
3358
|
* Scale Y
|
|
3359
3359
|
* @see https://tailwindcss.com/docs/scale
|
|
3360
3360
|
*/
|
|
3361
3361
|
"scale-y": [{
|
|
3362
|
-
"scale-y":
|
|
3362
|
+
"scale-y": I()
|
|
3363
3363
|
}],
|
|
3364
3364
|
/**
|
|
3365
3365
|
* Scale Z
|
|
3366
3366
|
* @see https://tailwindcss.com/docs/scale
|
|
3367
3367
|
*/
|
|
3368
3368
|
"scale-z": [{
|
|
3369
|
-
"scale-z":
|
|
3369
|
+
"scale-z": I()
|
|
3370
3370
|
}],
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Scale 3D
|
|
@@ -3399,14 +3399,14 @@ const le = (e) => {
|
|
|
3399
3399
|
* @see https://tailwindcss.com/docs/transform
|
|
3400
3400
|
*/
|
|
3401
3401
|
transform: [{
|
|
3402
|
-
transform: [
|
|
3402
|
+
transform: [T, N, "", "none", "gpu", "cpu"]
|
|
3403
3403
|
}],
|
|
3404
3404
|
/**
|
|
3405
3405
|
* Transform Origin
|
|
3406
3406
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3407
3407
|
*/
|
|
3408
3408
|
"transform-origin": [{
|
|
3409
|
-
origin:
|
|
3409
|
+
origin: J()
|
|
3410
3410
|
}],
|
|
3411
3411
|
/**
|
|
3412
3412
|
* Transform Style
|
|
@@ -3456,7 +3456,7 @@ const le = (e) => {
|
|
|
3456
3456
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3457
3457
|
*/
|
|
3458
3458
|
accent: [{
|
|
3459
|
-
accent:
|
|
3459
|
+
accent: y()
|
|
3460
3460
|
}],
|
|
3461
3461
|
/**
|
|
3462
3462
|
* Appearance
|
|
@@ -3470,7 +3470,7 @@ const le = (e) => {
|
|
|
3470
3470
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3471
3471
|
*/
|
|
3472
3472
|
"caret-color": [{
|
|
3473
|
-
caret:
|
|
3473
|
+
caret: y()
|
|
3474
3474
|
}],
|
|
3475
3475
|
/**
|
|
3476
3476
|
* Color Scheme
|
|
@@ -3484,7 +3484,7 @@ const le = (e) => {
|
|
|
3484
3484
|
* @see https://tailwindcss.com/docs/cursor
|
|
3485
3485
|
*/
|
|
3486
3486
|
cursor: [{
|
|
3487
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3487
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", T, N]
|
|
3488
3488
|
}],
|
|
3489
3489
|
/**
|
|
3490
3490
|
* Field Sizing
|
|
@@ -3519,126 +3519,126 @@ const le = (e) => {
|
|
|
3519
3519
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3520
3520
|
*/
|
|
3521
3521
|
"scroll-m": [{
|
|
3522
|
-
"scroll-m":
|
|
3522
|
+
"scroll-m": E()
|
|
3523
3523
|
}],
|
|
3524
3524
|
/**
|
|
3525
3525
|
* Scroll Margin X
|
|
3526
3526
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3527
3527
|
*/
|
|
3528
3528
|
"scroll-mx": [{
|
|
3529
|
-
"scroll-mx":
|
|
3529
|
+
"scroll-mx": E()
|
|
3530
3530
|
}],
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Scroll Margin Y
|
|
3533
3533
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3534
3534
|
*/
|
|
3535
3535
|
"scroll-my": [{
|
|
3536
|
-
"scroll-my":
|
|
3536
|
+
"scroll-my": E()
|
|
3537
3537
|
}],
|
|
3538
3538
|
/**
|
|
3539
3539
|
* Scroll Margin Start
|
|
3540
3540
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3541
3541
|
*/
|
|
3542
3542
|
"scroll-ms": [{
|
|
3543
|
-
"scroll-ms":
|
|
3543
|
+
"scroll-ms": E()
|
|
3544
3544
|
}],
|
|
3545
3545
|
/**
|
|
3546
3546
|
* Scroll Margin End
|
|
3547
3547
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3548
3548
|
*/
|
|
3549
3549
|
"scroll-me": [{
|
|
3550
|
-
"scroll-me":
|
|
3550
|
+
"scroll-me": E()
|
|
3551
3551
|
}],
|
|
3552
3552
|
/**
|
|
3553
3553
|
* Scroll Margin Top
|
|
3554
3554
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3555
3555
|
*/
|
|
3556
3556
|
"scroll-mt": [{
|
|
3557
|
-
"scroll-mt":
|
|
3557
|
+
"scroll-mt": E()
|
|
3558
3558
|
}],
|
|
3559
3559
|
/**
|
|
3560
3560
|
* Scroll Margin Right
|
|
3561
3561
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3562
3562
|
*/
|
|
3563
3563
|
"scroll-mr": [{
|
|
3564
|
-
"scroll-mr":
|
|
3564
|
+
"scroll-mr": E()
|
|
3565
3565
|
}],
|
|
3566
3566
|
/**
|
|
3567
3567
|
* Scroll Margin Bottom
|
|
3568
3568
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3569
3569
|
*/
|
|
3570
3570
|
"scroll-mb": [{
|
|
3571
|
-
"scroll-mb":
|
|
3571
|
+
"scroll-mb": E()
|
|
3572
3572
|
}],
|
|
3573
3573
|
/**
|
|
3574
3574
|
* Scroll Margin Left
|
|
3575
3575
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3576
3576
|
*/
|
|
3577
3577
|
"scroll-ml": [{
|
|
3578
|
-
"scroll-ml":
|
|
3578
|
+
"scroll-ml": E()
|
|
3579
3579
|
}],
|
|
3580
3580
|
/**
|
|
3581
3581
|
* Scroll Padding
|
|
3582
3582
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3583
3583
|
*/
|
|
3584
3584
|
"scroll-p": [{
|
|
3585
|
-
"scroll-p":
|
|
3585
|
+
"scroll-p": E()
|
|
3586
3586
|
}],
|
|
3587
3587
|
/**
|
|
3588
3588
|
* Scroll Padding X
|
|
3589
3589
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3590
3590
|
*/
|
|
3591
3591
|
"scroll-px": [{
|
|
3592
|
-
"scroll-px":
|
|
3592
|
+
"scroll-px": E()
|
|
3593
3593
|
}],
|
|
3594
3594
|
/**
|
|
3595
3595
|
* Scroll Padding Y
|
|
3596
3596
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3597
3597
|
*/
|
|
3598
3598
|
"scroll-py": [{
|
|
3599
|
-
"scroll-py":
|
|
3599
|
+
"scroll-py": E()
|
|
3600
3600
|
}],
|
|
3601
3601
|
/**
|
|
3602
3602
|
* Scroll Padding Start
|
|
3603
3603
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3604
3604
|
*/
|
|
3605
3605
|
"scroll-ps": [{
|
|
3606
|
-
"scroll-ps":
|
|
3606
|
+
"scroll-ps": E()
|
|
3607
3607
|
}],
|
|
3608
3608
|
/**
|
|
3609
3609
|
* Scroll Padding End
|
|
3610
3610
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3611
3611
|
*/
|
|
3612
3612
|
"scroll-pe": [{
|
|
3613
|
-
"scroll-pe":
|
|
3613
|
+
"scroll-pe": E()
|
|
3614
3614
|
}],
|
|
3615
3615
|
/**
|
|
3616
3616
|
* Scroll Padding Top
|
|
3617
3617
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3618
3618
|
*/
|
|
3619
3619
|
"scroll-pt": [{
|
|
3620
|
-
"scroll-pt":
|
|
3620
|
+
"scroll-pt": E()
|
|
3621
3621
|
}],
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Scroll Padding Right
|
|
3624
3624
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3625
3625
|
*/
|
|
3626
3626
|
"scroll-pr": [{
|
|
3627
|
-
"scroll-pr":
|
|
3627
|
+
"scroll-pr": E()
|
|
3628
3628
|
}],
|
|
3629
3629
|
/**
|
|
3630
3630
|
* Scroll Padding Bottom
|
|
3631
3631
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3632
3632
|
*/
|
|
3633
3633
|
"scroll-pb": [{
|
|
3634
|
-
"scroll-pb":
|
|
3634
|
+
"scroll-pb": E()
|
|
3635
3635
|
}],
|
|
3636
3636
|
/**
|
|
3637
3637
|
* Scroll Padding Left
|
|
3638
3638
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3639
3639
|
*/
|
|
3640
3640
|
"scroll-pl": [{
|
|
3641
|
-
"scroll-pl":
|
|
3641
|
+
"scroll-pl": E()
|
|
3642
3642
|
}],
|
|
3643
3643
|
/**
|
|
3644
3644
|
* Scroll Snap Align
|
|
@@ -3706,7 +3706,7 @@ const le = (e) => {
|
|
|
3706
3706
|
* @see https://tailwindcss.com/docs/will-change
|
|
3707
3707
|
*/
|
|
3708
3708
|
"will-change": [{
|
|
3709
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3709
|
+
"will-change": ["auto", "scroll", "contents", "transform", T, N]
|
|
3710
3710
|
}],
|
|
3711
3711
|
// -----------
|
|
3712
3712
|
// --- SVG ---
|
|
@@ -3716,21 +3716,21 @@ const le = (e) => {
|
|
|
3716
3716
|
* @see https://tailwindcss.com/docs/fill
|
|
3717
3717
|
*/
|
|
3718
3718
|
fill: [{
|
|
3719
|
-
fill: ["none", ...
|
|
3719
|
+
fill: ["none", ...y()]
|
|
3720
3720
|
}],
|
|
3721
3721
|
/**
|
|
3722
3722
|
* Stroke Width
|
|
3723
3723
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3724
3724
|
*/
|
|
3725
3725
|
"stroke-w": [{
|
|
3726
|
-
stroke: [
|
|
3726
|
+
stroke: [X, Oe, Ee, Qe]
|
|
3727
3727
|
}],
|
|
3728
3728
|
/**
|
|
3729
3729
|
* Stroke
|
|
3730
3730
|
* @see https://tailwindcss.com/docs/stroke
|
|
3731
3731
|
*/
|
|
3732
3732
|
stroke: [{
|
|
3733
|
-
stroke: ["none", ...
|
|
3733
|
+
stroke: ["none", ...y()]
|
|
3734
3734
|
}],
|
|
3735
3735
|
// ---------------------
|
|
3736
3736
|
// --- Accessibility ---
|
|
@@ -3799,17 +3799,17 @@ const le = (e) => {
|
|
|
3799
3799
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3800
3800
|
};
|
|
3801
3801
|
}, De = /* @__PURE__ */ wr($r), Wr = ({ panel: e, isLastFlexiblePanel: t, measuredPixelSize: r, measuredPercentageSize: o, containerAxisSize: i, containerLabel: s }) => {
|
|
3802
|
-
const a = e?.size, l = typeof a == "number" && Number.isFinite(a) ? `${a.toFixed(3)}px` : "-", c = e?.percentageSize !== void 0 ? `${e.percentageSize.toFixed(3)}%` : "-",
|
|
3802
|
+
const a = e?.size, l = typeof a == "number" && Number.isFinite(a) ? `${a.toFixed(3)}px` : "-", c = e?.percentageSize !== void 0 ? `${e.percentageSize.toFixed(3)}%` : "-", P = Number.isFinite(r) ? `${r.toFixed(3)}px` : "-", z = Number.isFinite(o) ? `${o.toFixed(3)}%` : "-", f = Number.isFinite(i) ? `${i.toFixed(3)}px` : "-", d = `${l} / ${c}`, h = `${P} / ${z}`, v = `${e?.sizeUnit === "pixels" ? "Fixed" : "Flexible"}${t ? " (Grow)" : ""}`, w = [v, `${s}: ${f}`, `size (state): ${d}`, `size (measured): ${h}`];
|
|
3803
3803
|
return {
|
|
3804
|
-
stateValueDisplay:
|
|
3804
|
+
stateValueDisplay: d,
|
|
3805
3805
|
measuredValueDisplay: h,
|
|
3806
|
-
containerDisplay:
|
|
3807
|
-
headlineLabel:
|
|
3808
|
-
titleText:
|
|
3806
|
+
containerDisplay: f,
|
|
3807
|
+
headlineLabel: v,
|
|
3808
|
+
titleText: w.join(`
|
|
3809
3809
|
`)
|
|
3810
3810
|
};
|
|
3811
3811
|
}, Ur = nt(({ panel: e, isLastFlexiblePanel: t, measuredPixelSize: r, measuredPercentageSize: o, containerAxisSize: i, direction: s }) => {
|
|
3812
|
-
const a = s === "horizontal" ? "container width" : "container height", { stateValueDisplay: l, measuredValueDisplay: c, containerDisplay:
|
|
3812
|
+
const a = s === "horizontal" ? "container width" : "container height", { stateValueDisplay: l, measuredValueDisplay: c, containerDisplay: P, headlineLabel: z, titleText: f } = ue(
|
|
3813
3813
|
() => Wr({
|
|
3814
3814
|
panel: e,
|
|
3815
3815
|
isLastFlexiblePanel: t,
|
|
@@ -3819,7 +3819,7 @@ const le = (e) => {
|
|
|
3819
3819
|
containerLabel: a
|
|
3820
3820
|
}),
|
|
3821
3821
|
[e, t, r, o, i, a]
|
|
3822
|
-
),
|
|
3822
|
+
), d = {
|
|
3823
3823
|
position: "absolute",
|
|
3824
3824
|
top: "2px",
|
|
3825
3825
|
right: "4px",
|
|
@@ -3843,7 +3843,7 @@ const le = (e) => {
|
|
|
3843
3843
|
gap: "1px",
|
|
3844
3844
|
minWidth: "0",
|
|
3845
3845
|
width: "100%"
|
|
3846
|
-
},
|
|
3846
|
+
}, v = {
|
|
3847
3847
|
display: "flex",
|
|
3848
3848
|
justifyContent: "flex-start",
|
|
3849
3849
|
alignItems: "center",
|
|
@@ -3855,7 +3855,7 @@ const le = (e) => {
|
|
|
3855
3855
|
textOverflow: "ellipsis",
|
|
3856
3856
|
minWidth: "0",
|
|
3857
3857
|
width: "100%"
|
|
3858
|
-
},
|
|
3858
|
+
}, w = {
|
|
3859
3859
|
display: "flex",
|
|
3860
3860
|
justifyContent: "space-between",
|
|
3861
3861
|
alignItems: "center",
|
|
@@ -3865,171 +3865,171 @@ const le = (e) => {
|
|
|
3865
3865
|
textOverflow: "ellipsis",
|
|
3866
3866
|
minWidth: "0",
|
|
3867
3867
|
width: "100%"
|
|
3868
|
-
},
|
|
3868
|
+
}, C = {
|
|
3869
3869
|
marginLeft: "auto",
|
|
3870
3870
|
fontVariantNumeric: "tabular-nums",
|
|
3871
3871
|
whiteSpace: "nowrap"
|
|
3872
3872
|
};
|
|
3873
|
-
return /* @__PURE__ */ L.jsx("div", { style:
|
|
3874
|
-
/* @__PURE__ */ L.jsx("div", { style:
|
|
3875
|
-
/* @__PURE__ */ L.jsxs("div", { style:
|
|
3873
|
+
return /* @__PURE__ */ L.jsx("div", { style: d, title: f, children: /* @__PURE__ */ L.jsxs("div", { style: h, children: [
|
|
3874
|
+
/* @__PURE__ */ L.jsx("div", { style: v, children: /* @__PURE__ */ L.jsx("span", { children: z }) }),
|
|
3875
|
+
/* @__PURE__ */ L.jsxs("div", { style: w, children: [
|
|
3876
3876
|
/* @__PURE__ */ L.jsx("span", { children: a }),
|
|
3877
|
-
/* @__PURE__ */ L.jsx("span", { style:
|
|
3877
|
+
/* @__PURE__ */ L.jsx("span", { style: C, children: P })
|
|
3878
3878
|
] }),
|
|
3879
|
-
/* @__PURE__ */ L.jsxs("div", { style:
|
|
3879
|
+
/* @__PURE__ */ L.jsxs("div", { style: w, children: [
|
|
3880
3880
|
/* @__PURE__ */ L.jsx("span", { children: "size (state)" }),
|
|
3881
|
-
/* @__PURE__ */ L.jsx("span", { style:
|
|
3881
|
+
/* @__PURE__ */ L.jsx("span", { style: C, children: l })
|
|
3882
3882
|
] }),
|
|
3883
|
-
/* @__PURE__ */ L.jsxs("div", { style:
|
|
3883
|
+
/* @__PURE__ */ L.jsxs("div", { style: w, children: [
|
|
3884
3884
|
/* @__PURE__ */ L.jsx("span", { children: "size (measured)" }),
|
|
3885
|
-
/* @__PURE__ */ L.jsx("span", { style:
|
|
3885
|
+
/* @__PURE__ */ L.jsx("span", { style: C, children: c })
|
|
3886
3886
|
] })
|
|
3887
3887
|
] }) });
|
|
3888
|
-
}), on = nt(({ id: e, defaultSize: t = { value: 50, unit: "percentage" }, minSize: r, maxSize: o, className: i, style: s, children: a, order: l = 0, collapsible: c = !1, defaultCollapsed:
|
|
3889
|
-
const { direction: d, registerPanel:
|
|
3888
|
+
}), on = nt(({ id: e, defaultSize: t = { value: 50, unit: "percentage" }, minSize: r, maxSize: o, className: i, style: s, children: a, order: l = 0, collapsible: c = !1, defaultCollapsed: P = !1, pixelAdjustPriority: z, contentOverflow: f = "auto" }) => {
|
|
3889
|
+
const { direction: d, registerPanel: h, unregisterPanel: v, getPanel: w, showDebugInfo: C, panels: p, isContainerReady: x, reportPanelMeasurement: k, containerSize: $ } = it(), J = me(null), H = me(e || rr()), O = w(H.current), E = !!O?.collapsed, q = (O?.size ?? 0) <= 0, F = E || q, [Y, te] = Se(() => {
|
|
3890
3890
|
const g = Le(t);
|
|
3891
|
-
return g?.unit === "pixels" ? g.value :
|
|
3892
|
-
}), [
|
|
3891
|
+
return g?.unit === "pixels" ? g.value : O?.size !== void 0 ? O.size : 0;
|
|
3892
|
+
}), [V, K] = Se(() => {
|
|
3893
3893
|
const g = Le(t);
|
|
3894
|
-
return g?.unit === "percentage" ? g.value :
|
|
3895
|
-
}),
|
|
3896
|
-
|
|
3897
|
-
const
|
|
3898
|
-
|
|
3899
|
-
const
|
|
3894
|
+
return g?.unit === "percentage" ? g.value : O?.percentageSize !== void 0 ? O.percentageSize : 0;
|
|
3895
|
+
}), W = me(V);
|
|
3896
|
+
W.current = V;
|
|
3897
|
+
const _ = me(Y);
|
|
3898
|
+
_.current = Y;
|
|
3899
|
+
const D = pe((g) => {
|
|
3900
3900
|
if (!Number.isFinite(g))
|
|
3901
3901
|
return;
|
|
3902
|
-
const
|
|
3903
|
-
|
|
3904
|
-
}, []),
|
|
3902
|
+
const I = g < 0 ? 0 : g;
|
|
3903
|
+
_.current !== I && (_.current = I, console.debug("[resize-panels] commit pixel", { panelId: H.current, pixel: I }), te(I));
|
|
3904
|
+
}, []), y = pe((g) => {
|
|
3905
3905
|
if (!Number.isFinite(g))
|
|
3906
3906
|
return;
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3907
|
+
const I = g < 0 ? 0 : g;
|
|
3908
|
+
W.current !== I && (W.current = I, console.debug("[resize-panels] commit percentage", { panelId: H.current, percentage: I }), K(I));
|
|
3909
3909
|
}, []);
|
|
3910
|
-
|
|
3910
|
+
fe(() => {
|
|
3911
3911
|
e || console.warn("Panel component should have an explicit 'id' prop to avoid hydration issues. Auto-generated ID may cause SSR/client mismatch.");
|
|
3912
|
-
}, [e]),
|
|
3913
|
-
if (!
|
|
3912
|
+
}, [e]), fe(() => {
|
|
3913
|
+
if (!x)
|
|
3914
3914
|
return;
|
|
3915
|
-
const g = Le(t),
|
|
3916
|
-
let
|
|
3917
|
-
if (
|
|
3918
|
-
let
|
|
3919
|
-
r && typeof r == "object" && r.unit === "pixels" && (
|
|
3915
|
+
const g = Le(t), I = g?.unit === "pixels";
|
|
3916
|
+
let j = 0;
|
|
3917
|
+
if (I) {
|
|
3918
|
+
let U = g.value;
|
|
3919
|
+
r && typeof r == "object" && r.unit === "pixels" && (U = Math.max(U, r.value)), o && typeof o == "object" && o.unit === "pixels" && (U = Math.min(U, o.value)), j = U;
|
|
3920
3920
|
}
|
|
3921
|
-
const
|
|
3922
|
-
id:
|
|
3923
|
-
size:
|
|
3924
|
-
percentageSize:
|
|
3921
|
+
const G = I ? void 0 : g?.value, Q = P, ie = c && Q && I ? j : void 0, Z = c ? G : void 0, re = {
|
|
3922
|
+
id: H.current,
|
|
3923
|
+
size: Q ? 0 : j,
|
|
3924
|
+
percentageSize: Q ? 0 : G,
|
|
3925
3925
|
sizeUnit: g?.unit || "percentage",
|
|
3926
|
-
originalPixelSize:
|
|
3926
|
+
originalPixelSize: I ? j : void 0,
|
|
3927
3927
|
minSize: r,
|
|
3928
3928
|
maxSize: o,
|
|
3929
3929
|
collapsible: c,
|
|
3930
|
-
collapsed:
|
|
3931
|
-
sizeBeforeCollapse:
|
|
3932
|
-
percentageSizeBeforeCollapse:
|
|
3933
|
-
pixelAdjustPriority:
|
|
3930
|
+
collapsed: Q,
|
|
3931
|
+
sizeBeforeCollapse: ie,
|
|
3932
|
+
percentageSizeBeforeCollapse: Z,
|
|
3933
|
+
pixelAdjustPriority: z
|
|
3934
3934
|
};
|
|
3935
|
-
return
|
|
3936
|
-
|
|
3935
|
+
return h(re), () => {
|
|
3936
|
+
v(H.current), k(H.current, null);
|
|
3937
3937
|
};
|
|
3938
|
-
}, [t, r, o,
|
|
3939
|
-
const
|
|
3940
|
-
|
|
3941
|
-
const g =
|
|
3938
|
+
}, [t, r, o, h, v, c, P, z, k, x]);
|
|
3939
|
+
const ne = O?.size ?? 0;
|
|
3940
|
+
fe(() => {
|
|
3941
|
+
const g = J.current;
|
|
3942
3942
|
if (!g) return;
|
|
3943
|
-
const
|
|
3944
|
-
if (!
|
|
3943
|
+
const I = () => {
|
|
3944
|
+
if (!O)
|
|
3945
3945
|
return;
|
|
3946
|
-
const
|
|
3947
|
-
if (!
|
|
3948
|
-
const { width:
|
|
3949
|
-
if (
|
|
3950
|
-
|
|
3946
|
+
const Z = g.parentElement;
|
|
3947
|
+
if (!Z) return;
|
|
3948
|
+
const { width: re, height: u } = g.getBoundingClientRect(), { inner: U } = we(Z, "horizontal"), { inner: le } = we(Z, "vertical"), oe = d === "horizontal" ? re : u, ae = d === "horizontal" ? U : le, ze = Ke(ae);
|
|
3949
|
+
if (F) {
|
|
3950
|
+
_.current !== 0 && (_.current = 0, te(0)), W.current !== 0 && (W.current = 0, K(0));
|
|
3951
3951
|
return;
|
|
3952
3952
|
}
|
|
3953
|
-
const
|
|
3954
|
-
if (
|
|
3953
|
+
const xe = O?.size ?? 0, de = Math.max(2, ze * 0.5);
|
|
3954
|
+
if (!F && xe > ze && oe < de) {
|
|
3955
3955
|
console.debug("[resize-panels] skip noisy measurement", {
|
|
3956
|
-
panelId:
|
|
3957
|
-
expectedPanelSize:
|
|
3958
|
-
measured:
|
|
3959
|
-
noiseThreshold:
|
|
3956
|
+
panelId: H.current,
|
|
3957
|
+
expectedPanelSize: xe,
|
|
3958
|
+
measured: oe,
|
|
3959
|
+
noiseThreshold: de
|
|
3960
3960
|
});
|
|
3961
3961
|
return;
|
|
3962
3962
|
}
|
|
3963
|
-
if (
|
|
3964
|
-
if (
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3963
|
+
if (oe > 0) {
|
|
3964
|
+
if (D(oe), ae > 0) {
|
|
3965
|
+
const be = oe / ae * 100;
|
|
3966
|
+
y(be);
|
|
3967
3967
|
}
|
|
3968
|
-
} else if (
|
|
3969
|
-
const
|
|
3970
|
-
|
|
3971
|
-
} else if (
|
|
3972
|
-
const
|
|
3973
|
-
|
|
3968
|
+
} else if (O?.size !== void 0 && D(O.size), O?.percentageSize !== void 0) {
|
|
3969
|
+
const be = O.percentageSize;
|
|
3970
|
+
y(be);
|
|
3971
|
+
} else if (O?.sizeUnit === "pixels" && O?.size !== void 0 && ae > 0) {
|
|
3972
|
+
const be = O.size / ae * 100;
|
|
3973
|
+
y(be);
|
|
3974
3974
|
}
|
|
3975
|
-
},
|
|
3976
|
-
|
|
3975
|
+
}, j = new ResizeObserver(() => {
|
|
3976
|
+
I();
|
|
3977
3977
|
});
|
|
3978
|
-
|
|
3979
|
-
const
|
|
3978
|
+
j.observe(g), I();
|
|
3979
|
+
const G = [], Q = new MutationObserver(() => {
|
|
3980
3980
|
(() => {
|
|
3981
|
-
if (!
|
|
3982
|
-
const
|
|
3983
|
-
return (d === "horizontal" ?
|
|
3984
|
-
})() && setTimeout(
|
|
3985
|
-
}),
|
|
3986
|
-
return
|
|
3981
|
+
if (!J.current) return !1;
|
|
3982
|
+
const re = J.current.getBoundingClientRect();
|
|
3983
|
+
return (d === "horizontal" ? re.width : re.height) !== _.current;
|
|
3984
|
+
})() && setTimeout(I, 0);
|
|
3985
|
+
}), ie = g.parentElement;
|
|
3986
|
+
return ie && Q.observe(ie, {
|
|
3987
3987
|
childList: !0,
|
|
3988
3988
|
subtree: !0,
|
|
3989
3989
|
attributes: !0,
|
|
3990
3990
|
attributeFilter: ["style", "class"]
|
|
3991
3991
|
}), () => {
|
|
3992
|
-
|
|
3993
|
-
for (const
|
|
3994
|
-
clearTimeout(
|
|
3992
|
+
j.disconnect(), Q.disconnect();
|
|
3993
|
+
for (const Z of G)
|
|
3994
|
+
clearTimeout(Z);
|
|
3995
3995
|
};
|
|
3996
|
-
}, [d,
|
|
3997
|
-
const
|
|
3998
|
-
|
|
3999
|
-
if (
|
|
4000
|
-
if (
|
|
4001
|
-
|
|
3996
|
+
}, [d, O, F, D, y]);
|
|
3997
|
+
const M = O?.size, n = O?.percentageSize, S = O?.sizeUnit;
|
|
3998
|
+
fe(() => {
|
|
3999
|
+
if (O) {
|
|
4000
|
+
if (F) {
|
|
4001
|
+
_.current !== 0 && (_.current = 0, te(0)), W.current !== 0 && (W.current = 0, K(0));
|
|
4002
4002
|
return;
|
|
4003
4003
|
}
|
|
4004
|
-
if (
|
|
4005
|
-
|
|
4006
|
-
else if (
|
|
4007
|
-
const g =
|
|
4008
|
-
if (g &&
|
|
4009
|
-
const { width:
|
|
4010
|
-
if (
|
|
4011
|
-
const
|
|
4012
|
-
|
|
4004
|
+
if (M !== void 0 && D(M), n !== void 0)
|
|
4005
|
+
y(n);
|
|
4006
|
+
else if (S === "pixels" && M !== void 0) {
|
|
4007
|
+
const g = J.current, I = g?.parentElement;
|
|
4008
|
+
if (g && I) {
|
|
4009
|
+
const { width: j, height: G } = g.getBoundingClientRect(), Q = I.clientWidth, ie = I.clientHeight, Z = d === "horizontal" ? j : G, re = d === "horizontal" ? Q : ie;
|
|
4010
|
+
if (Z > 0 && re > 0) {
|
|
4011
|
+
const u = Z / re * 100;
|
|
4012
|
+
y(u);
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
4016
|
}
|
|
4017
|
-
}, [
|
|
4018
|
-
|
|
4019
|
-
pixelSize:
|
|
4020
|
-
percentageSize:
|
|
4017
|
+
}, [M, n, S, d, F, D, y, O]), fe(() => {
|
|
4018
|
+
k(H.current, {
|
|
4019
|
+
pixelSize: Y,
|
|
4020
|
+
percentageSize: V
|
|
4021
4021
|
});
|
|
4022
|
-
}, [
|
|
4023
|
-
const
|
|
4024
|
-
if (!
|
|
4025
|
-
const g =
|
|
4026
|
-
if (g.length === 0 || g[g.length - 1]?.id !==
|
|
4027
|
-
const
|
|
4028
|
-
return !(
|
|
4029
|
-
})(),
|
|
4030
|
-
flexBasis:
|
|
4031
|
-
flexGrow:
|
|
4032
|
-
flexShrink:
|
|
4022
|
+
}, [k, Y, V]);
|
|
4023
|
+
const R = () => F ? "0px" : O?.originalPixelSize !== void 0 ? `${ne}px` : O?.percentageSize !== void 0 ? `${O.percentageSize}%` : `${ne}px`, A = (() => {
|
|
4024
|
+
if (!p || p.length === 0) return !1;
|
|
4025
|
+
const g = p.filter((G) => G.sizeUnit === "percentage");
|
|
4026
|
+
if (g.length === 0 || g[g.length - 1]?.id !== H.current) return !1;
|
|
4027
|
+
const j = O?.percentageSize;
|
|
4028
|
+
return !(j !== void 0 && g.filter((Q) => Math.abs((Q.percentageSize || 0) - j) < 0.01).length > 1);
|
|
4029
|
+
})(), ee = O?.sizeUnit === "percentage" && !O?.collapsed ? 1 : 0, m = {
|
|
4030
|
+
flexBasis: R(),
|
|
4031
|
+
flexGrow: A ? 1 : 0,
|
|
4032
|
+
flexShrink: ee,
|
|
4033
4033
|
overflow: "hidden",
|
|
4034
4034
|
position: "relative",
|
|
4035
4035
|
boxSizing: "border-box",
|
|
@@ -4037,12 +4037,12 @@ const le = (e) => {
|
|
|
4037
4037
|
minWidth: "0px",
|
|
4038
4038
|
...s
|
|
4039
4039
|
};
|
|
4040
|
-
d === "horizontal" ? (
|
|
4041
|
-
const
|
|
4040
|
+
d === "horizontal" ? (m.height = "100%", m.minWidth = 0) : (m.width = "100%", m.minHeight = 0), F && (d === "horizontal" ? (m.width = "0px", m.minWidth = "0px") : (m.height = "0px", m.minHeight = "0px"), m.flexGrow = 0, m.flexShrink = 0, m.pointerEvents = "none", m.visibility = "hidden", E && (m.display = "none"));
|
|
4041
|
+
const b = d === "horizontal" ? $.width : $.height, B = ue(
|
|
4042
4042
|
() => ({
|
|
4043
4043
|
position: "absolute",
|
|
4044
4044
|
inset: "0px",
|
|
4045
|
-
overflow:
|
|
4045
|
+
overflow: f,
|
|
4046
4046
|
display: "flex",
|
|
4047
4047
|
flexDirection: "column",
|
|
4048
4048
|
width: "100%",
|
|
@@ -4050,25 +4050,25 @@ const le = (e) => {
|
|
|
4050
4050
|
minWidth: "0px",
|
|
4051
4051
|
minHeight: "0px"
|
|
4052
4052
|
}),
|
|
4053
|
-
[]
|
|
4053
|
+
[f]
|
|
4054
4054
|
);
|
|
4055
4055
|
return /* @__PURE__ */ L.jsxs(
|
|
4056
4056
|
"div",
|
|
4057
4057
|
{
|
|
4058
|
-
ref:
|
|
4058
|
+
ref: J,
|
|
4059
4059
|
className: De("panel", i),
|
|
4060
|
-
style:
|
|
4061
|
-
"data-panel-id":
|
|
4062
|
-
"data-panel-size":
|
|
4063
|
-
"data-panel-size-unit":
|
|
4064
|
-
"data-panel-pixel-size":
|
|
4060
|
+
style: m,
|
|
4061
|
+
"data-panel-id": H.current,
|
|
4062
|
+
"data-panel-size": ne,
|
|
4063
|
+
"data-panel-size-unit": O?.sizeUnit || "percentage",
|
|
4064
|
+
"data-panel-pixel-size": O?.sizeUnit === "pixels" ? O?.originalPixelSize : null,
|
|
4065
4065
|
"data-panel-order": l,
|
|
4066
4066
|
"data-panel-collapsible": c,
|
|
4067
|
-
"data-panel-collapsed":
|
|
4068
|
-
"aria-hidden":
|
|
4067
|
+
"data-panel-collapsed": O?.collapsed,
|
|
4068
|
+
"aria-hidden": F,
|
|
4069
4069
|
children: [
|
|
4070
|
-
/* @__PURE__ */ L.jsx("div", { style:
|
|
4071
|
-
C && /* @__PURE__ */ L.jsx(Ur, { panel:
|
|
4070
|
+
/* @__PURE__ */ L.jsx("div", { style: B, children: a }),
|
|
4071
|
+
C && /* @__PURE__ */ L.jsx(Ur, { panel: O, isLastFlexiblePanel: A, measuredPixelSize: Y, measuredPercentageSize: V, containerAxisSize: b, direction: d })
|
|
4072
4072
|
]
|
|
4073
4073
|
}
|
|
4074
4074
|
);
|
|
@@ -4107,84 +4107,84 @@ const le = (e) => {
|
|
|
4107
4107
|
const c = () => {
|
|
4108
4108
|
for (const p of e)
|
|
4109
4109
|
p();
|
|
4110
|
-
},
|
|
4110
|
+
}, P = () => {
|
|
4111
4111
|
s = !0, c();
|
|
4112
|
-
},
|
|
4112
|
+
}, z = () => {
|
|
4113
4113
|
const p = o;
|
|
4114
4114
|
if (p && r.has(p))
|
|
4115
4115
|
return !1;
|
|
4116
4116
|
o = null;
|
|
4117
|
-
const
|
|
4118
|
-
return
|
|
4117
|
+
const x = r.values().next();
|
|
4118
|
+
return x.done || (o = x.value), p !== o;
|
|
4119
4119
|
};
|
|
4120
4120
|
return {
|
|
4121
4121
|
subscribe: (p) => (e.add(p), () => {
|
|
4122
4122
|
e.delete(p);
|
|
4123
4123
|
}),
|
|
4124
|
-
getSnapshot: () => (
|
|
4124
|
+
getSnapshot: () => (z() && (s = !0), s && (a = Array.from(t.values()).sort((x, k) => x.index - k.index).map(({ serializedPanels: x, serializedHandles: k, ...$ }) => $), l = {
|
|
4125
4125
|
ownerId: o,
|
|
4126
4126
|
groups: a
|
|
4127
4127
|
}, s = !1), l),
|
|
4128
|
-
getOwnerId: () => (
|
|
4128
|
+
getOwnerId: () => (z() && (s = !0), o),
|
|
4129
4129
|
enableGroup: (p) => {
|
|
4130
|
-
const
|
|
4131
|
-
r.add(p), r.size !==
|
|
4130
|
+
const x = r.size;
|
|
4131
|
+
r.add(p), r.size !== x && z() && P();
|
|
4132
4132
|
},
|
|
4133
4133
|
disableGroup: (p) => {
|
|
4134
|
-
r.delete(p) &&
|
|
4134
|
+
r.delete(p) && z() && P();
|
|
4135
4135
|
},
|
|
4136
|
-
updateGroup: (p,
|
|
4137
|
-
const
|
|
4138
|
-
let
|
|
4139
|
-
if (!
|
|
4140
|
-
if (
|
|
4141
|
-
|
|
4136
|
+
updateGroup: (p, x) => {
|
|
4137
|
+
const k = t.get(p), $ = k?.index ?? i++, J = Vr(x.panels), H = Yr(x.handles), O = k?.displayName !== x.displayName, E = k?.direction !== x.direction, q = k ? k.containerSize.width !== x.containerSize.width || k.containerSize.height !== x.containerSize.height : !0;
|
|
4138
|
+
let F = k?.serializedPanels !== J;
|
|
4139
|
+
if (!F && k)
|
|
4140
|
+
if (k.panels.length !== x.panels.length)
|
|
4141
|
+
F = !0;
|
|
4142
4142
|
else
|
|
4143
|
-
for (let
|
|
4144
|
-
const
|
|
4145
|
-
if (!(
|
|
4146
|
-
|
|
4143
|
+
for (let W = 0; W < x.panels.length; W += 1) {
|
|
4144
|
+
const _ = k.panels[W], D = x.panels[W];
|
|
4145
|
+
if (!(_ && D)) {
|
|
4146
|
+
F = !0;
|
|
4147
4147
|
break;
|
|
4148
4148
|
}
|
|
4149
|
-
if (
|
|
4150
|
-
|
|
4149
|
+
if (_.id !== D.id || _.size !== D.size || _.percentageSize !== D.percentageSize || _.collapsed !== D.collapsed || _.measuredPixelSize !== D.measuredPixelSize || _.measuredPercentageSize !== D.measuredPercentageSize) {
|
|
4150
|
+
F = !0;
|
|
4151
4151
|
break;
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
|
-
let
|
|
4155
|
-
if (!
|
|
4156
|
-
if (
|
|
4157
|
-
|
|
4154
|
+
let Y = k?.serializedHandles !== H;
|
|
4155
|
+
if (!Y && k)
|
|
4156
|
+
if (k.handles.length !== x.handles.length)
|
|
4157
|
+
Y = !0;
|
|
4158
4158
|
else
|
|
4159
|
-
for (let
|
|
4160
|
-
const
|
|
4161
|
-
if (!(
|
|
4162
|
-
|
|
4159
|
+
for (let W = 0; W < x.handles.length; W += 1) {
|
|
4160
|
+
const _ = k.handles[W], D = x.handles[W];
|
|
4161
|
+
if (!(_ && D)) {
|
|
4162
|
+
Y = !0;
|
|
4163
4163
|
break;
|
|
4164
4164
|
}
|
|
4165
|
-
if (
|
|
4166
|
-
|
|
4165
|
+
if (_.id !== D.id || _.thickness !== D.thickness || _.visible !== D.visible || _.direction !== D.direction || _.startPanelId !== D.startPanelId || _.endPanelId !== D.endPanelId) {
|
|
4166
|
+
Y = !0;
|
|
4167
4167
|
break;
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
4170
|
-
if (!
|
|
4170
|
+
if (!k && x.panels.length === 0 && x.handles.length === 0 || k && !O && !E && !q && !F && !Y)
|
|
4171
4171
|
return;
|
|
4172
|
-
const te =
|
|
4172
|
+
const te = x.panels.map((W) => ({ ...W })), V = x.handles.map((W) => ({ ...W })), K = { ...x.containerSize };
|
|
4173
4173
|
t.set(p, {
|
|
4174
4174
|
groupId: p,
|
|
4175
|
-
displayName:
|
|
4176
|
-
direction:
|
|
4177
|
-
containerSize:
|
|
4175
|
+
displayName: x.displayName,
|
|
4176
|
+
direction: x.direction,
|
|
4177
|
+
containerSize: K,
|
|
4178
4178
|
panels: te,
|
|
4179
|
-
handles:
|
|
4180
|
-
index:
|
|
4181
|
-
serializedPanels:
|
|
4182
|
-
serializedHandles:
|
|
4183
|
-
}),
|
|
4179
|
+
handles: V,
|
|
4180
|
+
index: $,
|
|
4181
|
+
serializedPanels: J,
|
|
4182
|
+
serializedHandles: H
|
|
4183
|
+
}), P();
|
|
4184
4184
|
},
|
|
4185
4185
|
removeGroup: (p) => {
|
|
4186
|
-
const
|
|
4187
|
-
(
|
|
4186
|
+
const x = t.delete(p), k = r.delete(p), $ = z();
|
|
4187
|
+
(x || k || $) && P();
|
|
4188
4188
|
}
|
|
4189
4189
|
};
|
|
4190
4190
|
}, ye = qr(), Xr = () => Et(ye.subscribe, ye.getOwnerId, ye.getOwnerId), Jr = () => Et(ye.subscribe, ye.getSnapshot, ye.getSnapshot), Zr = (e) => {
|
|
@@ -4198,88 +4198,88 @@ const le = (e) => {
|
|
|
4198
4198
|
};
|
|
4199
4199
|
let Ct = 0;
|
|
4200
4200
|
const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "number" || !Number.isFinite(e) ? "—" : `${(e < 0 ? 0 : e).toFixed(8)}${t}`, Ve = (e) => Wt(e, "px"), kt = (e) => Wt(e, "%"), sn = (e) => {
|
|
4201
|
-
const { id: t, className: r, style: o, children: i, direction: s } = e, { groupRef: a, contextValue: l, groupStyle: c } = ar(e), [
|
|
4201
|
+
const { id: t, className: r, style: o, children: i, direction: s } = e, { groupRef: a, contextValue: l, groupStyle: c } = ar(e), [P, z] = Se({ width: 0, height: 0 }), f = l.layoutConstraintViolation, d = !!f, h = d && f ? /* @__PURE__ */ L.jsxs(
|
|
4202
4202
|
"div",
|
|
4203
4203
|
{
|
|
4204
4204
|
className: "flex w-full flex-1 flex-col items-center justify-center gap-2 rounded-lg border border-slate-300 border-dashed bg-slate-100/70 px-6 py-8 text-center text-slate-600 text-sm dark:border-slate-600 dark:bg-slate-800/50 dark:text-slate-200",
|
|
4205
4205
|
"data-panel-group-placeholder": "constraint-violation",
|
|
4206
4206
|
children: [
|
|
4207
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4208
|
-
/* @__PURE__ */ L.jsx("span", { className: "text-slate-500 text-xs dark:text-slate-400", children:
|
|
4207
|
+
/* @__PURE__ */ L.jsx("span", { children: f.reason === "minimum-exceeded" ? "Layout unavailable: minimum panel sizes exceed the container." : "Layout unavailable: panels cannot fill the container with their maximum sizes." }),
|
|
4208
|
+
/* @__PURE__ */ L.jsx("span", { className: "text-slate-500 text-xs dark:text-slate-400", children: f.reason === "minimum-exceeded" ? `Min required: ${Math.ceil(f.totalMinimumSize ?? 0)}px | Available: ${Math.floor(f.availableContainerSize)}px` : `Max total: ${Math.floor(f.totalMaximumSize ?? 0)}px | Needed: ${Math.floor(f.availableContainerSize)}px` })
|
|
4209
4209
|
]
|
|
4210
4210
|
}
|
|
4211
|
-
) : null,
|
|
4211
|
+
) : null, w = me(t ?? Kr()).current, C = t ?? w, p = l.showDebugInfo && l.panels.length > 0, x = p ? l.panels : [], k = p ? l.panelMeasurements : {}, $ = ue(() => {
|
|
4212
4212
|
if (!p)
|
|
4213
4213
|
return [];
|
|
4214
|
-
const
|
|
4215
|
-
return
|
|
4216
|
-
}, [l.handleMeasurements, p]),
|
|
4214
|
+
const Y = Object.values(l.handleMeasurements);
|
|
4215
|
+
return Y.length <= 1 ? Y : Y.slice().sort((te, V) => te.id.localeCompare(V.id));
|
|
4216
|
+
}, [l.handleMeasurements, p]), J = l.containerSize, H = P.width > 0 ? P.width : J.width, O = P.height > 0 ? P.height : J.height, E = Xr(), q = p && E === w;
|
|
4217
4217
|
Ye(() => {
|
|
4218
4218
|
if (!p) {
|
|
4219
|
-
|
|
4219
|
+
z({ width: 0, height: 0 });
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
4222
4222
|
if (typeof window > "u" || typeof ResizeObserver > "u")
|
|
4223
4223
|
return;
|
|
4224
|
-
const
|
|
4225
|
-
if (!
|
|
4224
|
+
const Y = a.current;
|
|
4225
|
+
if (!Y)
|
|
4226
4226
|
return;
|
|
4227
|
-
const te = new ResizeObserver((
|
|
4228
|
-
for (const ne of
|
|
4229
|
-
if (ne.target !==
|
|
4227
|
+
const te = new ResizeObserver((y) => {
|
|
4228
|
+
for (const ne of y) {
|
|
4229
|
+
if (ne.target !== Y)
|
|
4230
4230
|
continue;
|
|
4231
|
-
const
|
|
4232
|
-
|
|
4231
|
+
const M = ne.target, n = M ? we(M, "horizontal") : null, S = M ? we(M, "vertical") : null, R = n ? n.inner : 0, A = S ? S.inner : 0, ee = ne.contentRect.width, m = ne.contentRect.height, b = R > 0 ? R : ee, B = A > 0 ? A : m;
|
|
4232
|
+
z((g) => g.width === b && g.height === B ? g : { width: b, height: B });
|
|
4233
4233
|
}
|
|
4234
4234
|
});
|
|
4235
|
-
te.observe(
|
|
4236
|
-
const { inner:
|
|
4237
|
-
return
|
|
4235
|
+
te.observe(Y);
|
|
4236
|
+
const { inner: V } = we(Y, "horizontal"), { inner: K } = we(Y, "vertical"), W = Y.getBoundingClientRect(), _ = V > 0 ? V : W.width, D = K > 0 ? K : W.height;
|
|
4237
|
+
return z({ width: _, height: D }), () => {
|
|
4238
4238
|
te.disconnect();
|
|
4239
4239
|
};
|
|
4240
4240
|
}, [a, p]);
|
|
4241
|
-
const
|
|
4242
|
-
if (
|
|
4243
|
-
return
|
|
4244
|
-
let
|
|
4245
|
-
const te =
|
|
4246
|
-
const
|
|
4247
|
-
return !
|
|
4248
|
-
...
|
|
4249
|
-
measuredPixelSize:
|
|
4250
|
-
measuredPercentageSize:
|
|
4241
|
+
const F = ue(() => {
|
|
4242
|
+
if (x.length === 0)
|
|
4243
|
+
return x;
|
|
4244
|
+
let Y = !1;
|
|
4245
|
+
const te = x.map((V) => {
|
|
4246
|
+
const K = k[V.id];
|
|
4247
|
+
return !K || V.measuredPixelSize === K.pixelSize && V.measuredPercentageSize === K.percentageSize ? V : (Y = !0, {
|
|
4248
|
+
...V,
|
|
4249
|
+
measuredPixelSize: K.pixelSize,
|
|
4250
|
+
measuredPercentageSize: K.percentageSize
|
|
4251
4251
|
});
|
|
4252
4252
|
});
|
|
4253
|
-
return
|
|
4254
|
-
}, [
|
|
4255
|
-
return
|
|
4253
|
+
return Y ? te : x;
|
|
4254
|
+
}, [x, k]);
|
|
4255
|
+
return fe(() => {
|
|
4256
4256
|
if (!p) {
|
|
4257
|
-
vt(
|
|
4257
|
+
vt(w), wt(w);
|
|
4258
4258
|
return;
|
|
4259
4259
|
}
|
|
4260
|
-
return Zr(
|
|
4261
|
-
vt(
|
|
4260
|
+
return Zr(w), () => {
|
|
4261
|
+
vt(w), wt(w);
|
|
4262
4262
|
};
|
|
4263
|
-
}, [p,
|
|
4264
|
-
p && Qr(
|
|
4265
|
-
displayName:
|
|
4263
|
+
}, [p, w]), fe(() => {
|
|
4264
|
+
p && Qr(w, {
|
|
4265
|
+
displayName: C,
|
|
4266
4266
|
direction: s,
|
|
4267
4267
|
containerSize: {
|
|
4268
|
-
width:
|
|
4269
|
-
height:
|
|
4268
|
+
width: H,
|
|
4269
|
+
height: O
|
|
4270
4270
|
},
|
|
4271
|
-
panels:
|
|
4272
|
-
handles:
|
|
4271
|
+
panels: F,
|
|
4272
|
+
handles: $
|
|
4273
4273
|
});
|
|
4274
|
-
}, [p,
|
|
4275
|
-
/* @__PURE__ */ L.jsx("div", { ref: a, className: De("panel-group", s === "horizontal" ? "flex-row" : "flex-col", r), style: { ...c, ...o }, "data-panel-group-id": t, "data-panel-group-direction": s, children:
|
|
4276
|
-
|
|
4274
|
+
}, [p, w, C, s, H, O, F, $]), /* @__PURE__ */ L.jsxs(Mt.Provider, { value: l, children: [
|
|
4275
|
+
/* @__PURE__ */ L.jsx("div", { ref: a, className: De("panel-group", s === "horizontal" ? "flex-row" : "flex-col", r), style: { ...c, ...o }, "data-panel-group-id": t, "data-panel-group-direction": s, children: d ? h : i }),
|
|
4276
|
+
q && /* @__PURE__ */ L.jsx(en, {})
|
|
4277
4277
|
] });
|
|
4278
4278
|
}, en = () => {
|
|
4279
|
-
const t = Jr().groups, [r, o] =
|
|
4279
|
+
const t = Jr().groups, [r, o] = Se(!0);
|
|
4280
4280
|
if (t.length === 0 || typeof document > "u")
|
|
4281
4281
|
return null;
|
|
4282
|
-
const i = t.reduce((c,
|
|
4282
|
+
const i = t.reduce((c, P) => c + P.panels.length, 0), s = t.reduce((c, P) => c + (P.handles?.length ?? 0), 0), a = () => {
|
|
4283
4283
|
o((c) => !c);
|
|
4284
4284
|
}, l = /* @__PURE__ */ L.jsxs(
|
|
4285
4285
|
"div",
|
|
@@ -4388,8 +4388,8 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4388
4388
|
overflowY: "auto",
|
|
4389
4389
|
paddingRight: "6px"
|
|
4390
4390
|
},
|
|
4391
|
-
children: t.map((c,
|
|
4392
|
-
const
|
|
4391
|
+
children: t.map((c, P) => {
|
|
4392
|
+
const z = c.direction === "horizontal" ? c.containerSize.width : c.containerSize.height;
|
|
4393
4393
|
return /* @__PURE__ */ L.jsxs(
|
|
4394
4394
|
"div",
|
|
4395
4395
|
{
|
|
@@ -4426,7 +4426,7 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4426
4426
|
},
|
|
4427
4427
|
children: [
|
|
4428
4428
|
"group ",
|
|
4429
|
-
|
|
4429
|
+
P + 1,
|
|
4430
4430
|
": ",
|
|
4431
4431
|
c.displayName
|
|
4432
4432
|
]
|
|
@@ -4451,8 +4451,8 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4451
4451
|
gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
|
|
4452
4452
|
gap: "10px"
|
|
4453
4453
|
},
|
|
4454
|
-
children: c.panels.map((
|
|
4455
|
-
const h =
|
|
4454
|
+
children: c.panels.map((f, d) => {
|
|
4455
|
+
const h = f.measuredPixelSize ?? f.size, v = f.size, w = Ve(v), C = f.percentageSize ?? (z > 0 ? f.size / z * 100 : void 0), p = f.measuredPercentageSize !== void 0 ? f.measuredPercentageSize : z > 0 ? h / z * 100 : void 0, x = f.collapsed || h <= _t, k = f.collapsed ? "collapsed" : x ? "hidden" : "visible", $ = kt(C), J = kt(p), H = Ve(h);
|
|
4456
4456
|
return /* @__PURE__ */ L.jsxs(
|
|
4457
4457
|
"div",
|
|
4458
4458
|
{
|
|
@@ -4476,7 +4476,7 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4476
4476
|
gap: "6px"
|
|
4477
4477
|
},
|
|
4478
4478
|
children: [
|
|
4479
|
-
/* @__PURE__ */ L.jsx("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis" }, children:
|
|
4479
|
+
/* @__PURE__ */ L.jsx("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis" }, children: f.id }),
|
|
4480
4480
|
/* @__PURE__ */ L.jsx(
|
|
4481
4481
|
"span",
|
|
4482
4482
|
{
|
|
@@ -4485,10 +4485,10 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4485
4485
|
borderRadius: "9999px",
|
|
4486
4486
|
fontSize: "10px",
|
|
4487
4487
|
textTransform: "uppercase",
|
|
4488
|
-
backgroundColor:
|
|
4489
|
-
color:
|
|
4488
|
+
backgroundColor: f.collapsed ? "rgba(251, 113, 133, 0.25)" : x ? "rgba(250, 204, 21, 0.25)" : "rgba(74, 222, 128, 0.25)",
|
|
4489
|
+
color: f.collapsed ? "#fecdd3" : x ? "#fef08a" : "#bbf7d0"
|
|
4490
4490
|
},
|
|
4491
|
-
children:
|
|
4491
|
+
children: k
|
|
4492
4492
|
}
|
|
4493
4493
|
)
|
|
4494
4494
|
]
|
|
@@ -4505,27 +4505,27 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4505
4505
|
},
|
|
4506
4506
|
children: [
|
|
4507
4507
|
/* @__PURE__ */ L.jsx("span", { children: "size (state):" }),
|
|
4508
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4508
|
+
/* @__PURE__ */ L.jsx("span", { children: w }),
|
|
4509
4509
|
/* @__PURE__ */ L.jsx("span", { children: "size (measured):" }),
|
|
4510
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4510
|
+
/* @__PURE__ */ L.jsx("span", { children: H }),
|
|
4511
4511
|
/* @__PURE__ */ L.jsx("span", { children: "percentage (state):" }),
|
|
4512
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4512
|
+
/* @__PURE__ */ L.jsx("span", { children: $ }),
|
|
4513
4513
|
/* @__PURE__ */ L.jsx("span", { children: "percentage (measured):" }),
|
|
4514
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4514
|
+
/* @__PURE__ */ L.jsx("span", { children: J }),
|
|
4515
4515
|
/* @__PURE__ */ L.jsx("span", { children: "unit:" }),
|
|
4516
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4516
|
+
/* @__PURE__ */ L.jsx("span", { children: f.sizeUnit }),
|
|
4517
4517
|
/* @__PURE__ */ L.jsx("span", { children: "min:" }),
|
|
4518
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4518
|
+
/* @__PURE__ */ L.jsx("span", { children: f.minSize !== void 0 ? JSON.stringify(f.minSize) : "—" }),
|
|
4519
4519
|
/* @__PURE__ */ L.jsx("span", { children: "max:" }),
|
|
4520
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4520
|
+
/* @__PURE__ */ L.jsx("span", { children: f.maxSize !== void 0 ? JSON.stringify(f.maxSize) : "—" }),
|
|
4521
4521
|
/* @__PURE__ */ L.jsx("span", { children: "priority:" }),
|
|
4522
|
-
/* @__PURE__ */ L.jsx("span", { children:
|
|
4522
|
+
/* @__PURE__ */ L.jsx("span", { children: f.pixelAdjustPriority ?? "—" })
|
|
4523
4523
|
]
|
|
4524
4524
|
}
|
|
4525
4525
|
)
|
|
4526
4526
|
]
|
|
4527
4527
|
},
|
|
4528
|
-
|
|
4528
|
+
f.id || d
|
|
4529
4529
|
);
|
|
4530
4530
|
})
|
|
4531
4531
|
}
|
|
@@ -4542,264 +4542,264 @@ const Kr = () => (Ct += 1, `panel-group-${Ct}`), Wt = (e, t) => typeof e != "num
|
|
|
4542
4542
|
);
|
|
4543
4543
|
return Jt(l, document.body);
|
|
4544
4544
|
}, an = nt(({ id: e, disabled: t = !1, className: r, style: o, children: i, onDragging: s }) => {
|
|
4545
|
-
const { direction: a, resizePanels: l, getPanel: c, collapsePanel:
|
|
4546
|
-
|
|
4547
|
-
if (
|
|
4548
|
-
const
|
|
4549
|
-
if (
|
|
4550
|
-
p.current =
|
|
4551
|
-
const
|
|
4552
|
-
if (
|
|
4553
|
-
let
|
|
4554
|
-
for (let G =
|
|
4555
|
-
const
|
|
4556
|
-
if (
|
|
4557
|
-
|
|
4545
|
+
const { direction: a, resizePanels: l, getPanel: c, collapsePanel: P, expandPanel: z, panels: f, reportHandleMeasurement: d, containerSize: h } = it(), [v, w] = Se(!1), C = me(null), p = me(null), x = me(""), k = me(""), [$, J] = Se({ left: null, right: null }), H = me(e ?? nr()), O = me(null), E = e ?? H.current;
|
|
4546
|
+
fe(() => {
|
|
4547
|
+
if (C.current) {
|
|
4548
|
+
const m = C.current.parentElement;
|
|
4549
|
+
if (m) {
|
|
4550
|
+
p.current = m;
|
|
4551
|
+
const b = Array.from(m.children), B = C.current, g = b.indexOf(B);
|
|
4552
|
+
if (g > 0 && g < b.length - 1) {
|
|
4553
|
+
let I = null, j = null;
|
|
4554
|
+
for (let G = g - 1; G >= 0; G -= 1) {
|
|
4555
|
+
const Q = b[G];
|
|
4556
|
+
if (Q.dataset.panelId) {
|
|
4557
|
+
I = Q;
|
|
4558
4558
|
break;
|
|
4559
4559
|
}
|
|
4560
4560
|
}
|
|
4561
|
-
for (let G =
|
|
4562
|
-
const
|
|
4563
|
-
if (
|
|
4564
|
-
j =
|
|
4561
|
+
for (let G = g + 1; G < b.length; G += 1) {
|
|
4562
|
+
const Q = b[G];
|
|
4563
|
+
if (Q.dataset.panelId) {
|
|
4564
|
+
j = Q;
|
|
4565
4565
|
break;
|
|
4566
4566
|
}
|
|
4567
4567
|
}
|
|
4568
|
-
|
|
4569
|
-
left:
|
|
4570
|
-
right:
|
|
4568
|
+
x.current = I?.dataset.panelId || "", k.current = j?.dataset.panelId || "", J({
|
|
4569
|
+
left: x.current || null,
|
|
4570
|
+
right: k.current || null
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
4574
|
}
|
|
4575
|
-
}, []),
|
|
4576
|
-
if (
|
|
4575
|
+
}, []), fe(() => {
|
|
4576
|
+
if (E === H.current)
|
|
4577
4577
|
return;
|
|
4578
|
-
const
|
|
4579
|
-
|
|
4580
|
-
}, [
|
|
4581
|
-
const
|
|
4578
|
+
const m = H.current;
|
|
4579
|
+
H.current = E, O.current = null, m !== E && d(m, null);
|
|
4580
|
+
}, [d, E]), fe(() => {
|
|
4581
|
+
const m = H.current;
|
|
4582
4582
|
return () => {
|
|
4583
|
-
|
|
4583
|
+
d(m, null);
|
|
4584
4584
|
};
|
|
4585
|
-
}, [
|
|
4586
|
-
const
|
|
4587
|
-
(
|
|
4585
|
+
}, [d]);
|
|
4586
|
+
const q = pe(
|
|
4587
|
+
(m) => {
|
|
4588
4588
|
if (t || !p.current) return;
|
|
4589
|
-
|
|
4590
|
-
const
|
|
4591
|
-
if (!(
|
|
4592
|
-
const G =
|
|
4593
|
-
let
|
|
4594
|
-
const
|
|
4595
|
-
|
|
4596
|
-
const
|
|
4597
|
-
if (!
|
|
4598
|
-
|
|
4599
|
-
const
|
|
4600
|
-
if (
|
|
4601
|
-
|
|
4602
|
-
const
|
|
4603
|
-
if (
|
|
4589
|
+
m.preventDefault(), m.stopPropagation();
|
|
4590
|
+
const b = p.current, { inner: B } = we(b, a), g = { x: m.clientX, y: m.clientY }, I = c(x.current), j = c(k.current);
|
|
4591
|
+
if (!(I && j)) return;
|
|
4592
|
+
const G = I.size, Q = j.size;
|
|
4593
|
+
let ie = 0;
|
|
4594
|
+
const Z = Qt;
|
|
4595
|
+
w(!0), s?.(!0), m.currentTarget.setPointerCapture(m.pointerId);
|
|
4596
|
+
const re = (U) => {
|
|
4597
|
+
if (!C.current) return;
|
|
4598
|
+
U.preventDefault(), U.stopPropagation();
|
|
4599
|
+
const le = performance.now();
|
|
4600
|
+
if (le - ie < Z) return;
|
|
4601
|
+
ie = le;
|
|
4602
|
+
const oe = a === "horizontal" ? U.clientX - g.x : U.clientY - g.y;
|
|
4603
|
+
if (oe === 0)
|
|
4604
4604
|
return;
|
|
4605
|
-
const
|
|
4606
|
-
if (xe &&
|
|
4607
|
-
const
|
|
4608
|
-
if (
|
|
4609
|
-
|
|
4605
|
+
const ae = G + oe, ze = Q - oe, xe = c(x.current), de = c(k.current);
|
|
4606
|
+
if (xe && de && x.current && k.current) {
|
|
4607
|
+
const Re = se(xe.minSize, 0, B), be = se(de.minSize, 0, B), Pe = Re, Ce = be, at = Math.min(B * It, At), lt = Math.min(B * Kt, er);
|
|
4608
|
+
if (de.collapsible && !de.collapsed && ze <= Math.max(be * 0.3, at)) {
|
|
4609
|
+
P(k.current);
|
|
4610
4610
|
return;
|
|
4611
4611
|
}
|
|
4612
|
-
if (xe.collapsible && !xe.collapsed &&
|
|
4613
|
-
|
|
4612
|
+
if (xe.collapsible && !xe.collapsed && ae <= Math.max(Re * 0.3, at)) {
|
|
4613
|
+
P(x.current);
|
|
4614
4614
|
return;
|
|
4615
4615
|
}
|
|
4616
|
-
if (
|
|
4617
|
-
|
|
4616
|
+
if (de.collapsed && ze > Math.max(be * 0.3, lt)) {
|
|
4617
|
+
z(k.current, ze);
|
|
4618
4618
|
return;
|
|
4619
4619
|
}
|
|
4620
|
-
if (xe.collapsed &&
|
|
4621
|
-
|
|
4620
|
+
if (xe.collapsed && ae > Math.max(Re * 0.3, lt)) {
|
|
4621
|
+
z(x.current, ae);
|
|
4622
4622
|
return;
|
|
4623
4623
|
}
|
|
4624
|
-
if (
|
|
4625
|
-
const ct = xe.size +
|
|
4624
|
+
if (B > 0) {
|
|
4625
|
+
const ct = xe.size + de.size, Ge = Ke(B);
|
|
4626
4626
|
let qe = !1;
|
|
4627
|
-
if (Pe <= Ge &&
|
|
4627
|
+
if (Pe <= Ge && ae <= Ge && G !== 0) {
|
|
4628
4628
|
const Ne = Math.max(0, ct - 0);
|
|
4629
|
-
Ne >= Ce && (l(
|
|
4630
|
-
} else if (Ce <= Ge &&
|
|
4629
|
+
Ne >= Ce && (l(x.current, k.current, 0, Ne), qe = !0);
|
|
4630
|
+
} else if (Ce <= Ge && ze <= Ge && Q !== 0) {
|
|
4631
4631
|
const Ne = Math.max(0, ct - 0);
|
|
4632
|
-
Ne >= Pe && (l(
|
|
4632
|
+
Ne >= Pe && (l(x.current, k.current, Ne, 0), qe = !0);
|
|
4633
4633
|
}
|
|
4634
4634
|
if (qe)
|
|
4635
4635
|
return;
|
|
4636
4636
|
}
|
|
4637
|
-
if (xe.collapsed ||
|
|
4637
|
+
if (xe.collapsed || de.collapsed)
|
|
4638
4638
|
return;
|
|
4639
|
-
l(
|
|
4639
|
+
l(x.current, k.current, ae, ze);
|
|
4640
4640
|
}
|
|
4641
|
-
},
|
|
4642
|
-
|
|
4641
|
+
}, u = () => {
|
|
4642
|
+
w(!1), s?.(!1), document.removeEventListener("pointermove", re), document.removeEventListener("pointerup", u);
|
|
4643
4643
|
};
|
|
4644
|
-
document.addEventListener("pointermove",
|
|
4644
|
+
document.addEventListener("pointermove", re), document.addEventListener("pointerup", u);
|
|
4645
4645
|
},
|
|
4646
|
-
[t, a, l, c,
|
|
4647
|
-
),
|
|
4646
|
+
[t, a, l, c, P, z, s]
|
|
4647
|
+
), F = a === "horizontal", te = De(
|
|
4648
4648
|
"group absolute z-20 flex select-none items-center justify-center border-none bg-transparent transition-colors duration-150 overflow-visible",
|
|
4649
|
-
|
|
4650
|
-
|
|
4649
|
+
F ? "cursor-col-resize" : "cursor-row-resize",
|
|
4650
|
+
F ? "h-full" : "w-full",
|
|
4651
4651
|
!t && "hover:bg-gray-200/70 dark:hover:bg-gray-700/70",
|
|
4652
4652
|
!t && "active:bg-blue-300/60 dark:active:bg-blue-700/60",
|
|
4653
|
-
|
|
4653
|
+
v && "bg-blue-200/80 dark:bg-blue-800/60",
|
|
4654
4654
|
t && "cursor-not-allowed opacity-50",
|
|
4655
4655
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50",
|
|
4656
4656
|
r
|
|
4657
|
-
),
|
|
4658
|
-
const
|
|
4659
|
-
if (!
|
|
4657
|
+
), V = ue(() => {
|
|
4658
|
+
const m = (b) => {
|
|
4659
|
+
if (!b)
|
|
4660
4660
|
return -1;
|
|
4661
|
-
for (let
|
|
4662
|
-
if (
|
|
4663
|
-
return
|
|
4661
|
+
for (let B = 0; B < f.length; B += 1)
|
|
4662
|
+
if (f[B].id === b)
|
|
4663
|
+
return B;
|
|
4664
4664
|
return -1;
|
|
4665
4665
|
};
|
|
4666
4666
|
return {
|
|
4667
|
-
left:
|
|
4668
|
-
right:
|
|
4667
|
+
left: m($.left),
|
|
4668
|
+
right: m($.right)
|
|
4669
4669
|
};
|
|
4670
|
-
}, [
|
|
4671
|
-
const
|
|
4672
|
-
if (
|
|
4670
|
+
}, [$.left, $.right, f]), K = F ? h.width : h.height, W = ue(() => {
|
|
4671
|
+
const m = (b, B) => {
|
|
4672
|
+
if (b > B)
|
|
4673
4673
|
return 0;
|
|
4674
|
-
let
|
|
4675
|
-
for (let
|
|
4676
|
-
const j =
|
|
4674
|
+
let g = 0;
|
|
4675
|
+
for (let I = b; I <= B; I += 1) {
|
|
4676
|
+
const j = f[I];
|
|
4677
4677
|
if (!j)
|
|
4678
4678
|
continue;
|
|
4679
|
-
const G = j.size ?? 0,
|
|
4680
|
-
|
|
4679
|
+
const G = j.size ?? 0, Q = Math.max(0, G);
|
|
4680
|
+
g += j.collapsed ? 0 : Q;
|
|
4681
4681
|
}
|
|
4682
|
-
return
|
|
4682
|
+
return g;
|
|
4683
4683
|
};
|
|
4684
|
-
return
|
|
4685
|
-
}, [
|
|
4686
|
-
const
|
|
4684
|
+
return V.left >= 0 ? m(0, V.left) : V.right > 0 ? m(0, V.right - 1) : 0;
|
|
4685
|
+
}, [V.left, V.right, f]), _ = ue(() => !Number.isFinite(W) || W < 0 ? 0 : K > 0 && W > K ? K : W, [W, K]), D = ue(() => {
|
|
4686
|
+
const m = {
|
|
4687
4687
|
position: "absolute",
|
|
4688
4688
|
zIndex: 20,
|
|
4689
4689
|
touchAction: "none"
|
|
4690
4690
|
};
|
|
4691
|
-
return
|
|
4692
|
-
}, [
|
|
4693
|
-
const
|
|
4694
|
-
if (
|
|
4691
|
+
return F ? (m.top = 0, m.left = `${_}px`, m.transform = "translateX(-50%)", m.width = `${dt}px`, m.height = "100%") : (m.left = 0, m.top = `${_}px`, m.transform = "translateY(-50%)", m.height = `${dt}px`, m.width = "100%"), m;
|
|
4692
|
+
}, [_, F]), y = ue(() => {
|
|
4693
|
+
const m = Ke(K), b = (Z) => {
|
|
4694
|
+
if (Z < 0 || Z >= f.length)
|
|
4695
4695
|
return !1;
|
|
4696
|
-
const
|
|
4697
|
-
return
|
|
4698
|
-
},
|
|
4699
|
-
if (!
|
|
4696
|
+
const re = f[Z];
|
|
4697
|
+
return re ? re.collapsed ? !0 : re.size <= m : !1;
|
|
4698
|
+
}, B = (Z, re) => {
|
|
4699
|
+
if (!b(Z))
|
|
4700
4700
|
return 0;
|
|
4701
|
-
let
|
|
4702
|
-
for (let
|
|
4703
|
-
|
|
4704
|
-
return
|
|
4705
|
-
},
|
|
4701
|
+
let u = 0;
|
|
4702
|
+
for (let U = Z; U >= 0 && U < f.length && b(U); U += re)
|
|
4703
|
+
u += 1;
|
|
4704
|
+
return u;
|
|
4705
|
+
}, g = V.left, I = V.right, j = g >= 0 ? B(g, -1) : 0, G = I >= 0 ? B(I, 1) : 0;
|
|
4706
4706
|
return {
|
|
4707
4707
|
groupSize: j + G + 1,
|
|
4708
4708
|
overlapIndex: j
|
|
4709
4709
|
};
|
|
4710
|
-
}, [
|
|
4711
|
-
if (
|
|
4710
|
+
}, [V.left, V.right, f, K]), ne = ue(() => {
|
|
4711
|
+
if (y.groupSize <= 1)
|
|
4712
4712
|
return !1;
|
|
4713
|
-
const
|
|
4714
|
-
return
|
|
4715
|
-
}, [
|
|
4716
|
-
if (
|
|
4713
|
+
const m = y.groupSize - 1;
|
|
4714
|
+
return y.overlapIndex > 0 && y.overlapIndex < m;
|
|
4715
|
+
}, [y]), M = ue(() => {
|
|
4716
|
+
if (y.groupSize <= 1 || ne)
|
|
4717
4717
|
return 0;
|
|
4718
|
-
const
|
|
4719
|
-
if (
|
|
4718
|
+
const m = y.groupSize > 1 ? 2 : 1;
|
|
4719
|
+
if (m === 1)
|
|
4720
4720
|
return 0;
|
|
4721
|
-
const
|
|
4722
|
-
return (
|
|
4723
|
-
}, [
|
|
4721
|
+
const b = y.overlapIndex === 0 ? 0 : m - 1, B = (m - 1) / 2;
|
|
4722
|
+
return (b - B) * Zt;
|
|
4723
|
+
}, [y, ne]), n = ue(() => {
|
|
4724
4724
|
if (ne)
|
|
4725
4725
|
return { display: "none" };
|
|
4726
|
-
if (
|
|
4727
|
-
return
|
|
4728
|
-
}, [
|
|
4726
|
+
if (M !== 0)
|
|
4727
|
+
return F ? { transform: `translateX(${M}px)` } : { transform: `translateY(${M}px)` };
|
|
4728
|
+
}, [M, F, ne]), S = De(
|
|
4729
4729
|
"flex items-center justify-center rounded-full bg-white text-slate-700 ring-1 ring-inset ring-white/80 backdrop-blur-sm transition-colors duration-150 shadow-[0_0_0_1px_rgba(255,255,255,0.85),0_1px_3px_rgba(15,23,42,0.18)]",
|
|
4730
4730
|
"dark:bg-slate-800/95 dark:text-slate-200 dark:ring-slate-500/60 dark:shadow-[0_0_0_1px_rgba(148,163,184,0.45),0_1px_3px_rgba(2,6,23,0.55)]",
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
),
|
|
4731
|
+
F ? "h-12 w-[6px] px-[2px]" : "h-[6px] w-20 py-[2px]",
|
|
4732
|
+
v && "bg-blue-200/80 ring-blue-300 shadow-[0_0_0_1px_rgba(191,219,254,0.65),0_1px_4px_rgba(59,130,246,0.45)] dark:bg-blue-900/70 dark:ring-blue-400 dark:shadow-[0_0_0_1px_rgba(147,197,253,0.5),0_1px_4px_rgba(59,130,246,0.55)]"
|
|
4733
|
+
), R = De(
|
|
4734
4734
|
"rounded-full bg-slate-600 transition-colors duration-150 shadow-[0_0_0_1px_rgba(255,255,255,0.9)] dark:bg-slate-200 dark:shadow-[0_0_0_1px_rgba(15,23,42,0.55)]",
|
|
4735
|
-
|
|
4736
|
-
|
|
4735
|
+
F ? "h-8 w-[2px]" : "h-[2px] w-16",
|
|
4736
|
+
v && "bg-blue-500 dark:bg-blue-300",
|
|
4737
4737
|
!t && "group-hover:bg-slate-700 dark:group-hover:bg-slate-100"
|
|
4738
|
-
),
|
|
4739
|
-
const
|
|
4740
|
-
if (!
|
|
4738
|
+
), A = pe(() => {
|
|
4739
|
+
const m = C.current;
|
|
4740
|
+
if (!m)
|
|
4741
4741
|
return;
|
|
4742
|
-
let
|
|
4742
|
+
let b = 0;
|
|
4743
4743
|
if (!ne) {
|
|
4744
|
-
const
|
|
4744
|
+
const I = a === "horizontal" ? m.offsetWidth : m.offsetHeight;
|
|
4745
4745
|
let j = 0, G = 0;
|
|
4746
4746
|
if (typeof window < "u") {
|
|
4747
|
-
const
|
|
4748
|
-
a === "horizontal" ? (j = Number.parseFloat(
|
|
4747
|
+
const ie = window.getComputedStyle(m);
|
|
4748
|
+
a === "horizontal" ? (j = Number.parseFloat(ie.marginLeft || "0"), G = Number.parseFloat(ie.marginRight || "0")) : (j = Number.parseFloat(ie.marginTop || "0"), G = Number.parseFloat(ie.marginBottom || "0"));
|
|
4749
4749
|
}
|
|
4750
|
-
|
|
4750
|
+
b = [I, j, G].reduce((ie, Z) => Number.isFinite(Z) ? ie + Z : ie, 0);
|
|
4751
4751
|
}
|
|
4752
|
-
(!Number.isFinite(
|
|
4753
|
-
const
|
|
4754
|
-
id:
|
|
4755
|
-
thickness:
|
|
4752
|
+
(!Number.isFinite(b) || b < 0) && (b = 0);
|
|
4753
|
+
const B = {
|
|
4754
|
+
id: E,
|
|
4755
|
+
thickness: b,
|
|
4756
4756
|
direction: a,
|
|
4757
|
-
visible: !ne &&
|
|
4758
|
-
startPanelId:
|
|
4759
|
-
endPanelId:
|
|
4760
|
-
},
|
|
4761
|
-
|
|
4762
|
-
}, [a,
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
}, [
|
|
4766
|
-
const
|
|
4767
|
-
if (!
|
|
4757
|
+
visible: !ne && b > tr,
|
|
4758
|
+
startPanelId: $.left,
|
|
4759
|
+
endPanelId: $.right
|
|
4760
|
+
}, g = O.current;
|
|
4761
|
+
g && Math.abs(g.thickness - B.thickness) <= 0.25 && g.visible === B.visible && g.direction === B.direction && g.startPanelId === B.startPanelId && g.endPanelId === B.endPanelId || (O.current = B, d(E, B));
|
|
4762
|
+
}, [a, $.left, $.right, d, E, ne]);
|
|
4763
|
+
fe(() => {
|
|
4764
|
+
A();
|
|
4765
|
+
}, [A]), fe(() => {
|
|
4766
|
+
const m = C.current;
|
|
4767
|
+
if (!m)
|
|
4768
4768
|
return;
|
|
4769
4769
|
if (typeof ResizeObserver > "u") {
|
|
4770
|
-
|
|
4770
|
+
A();
|
|
4771
4771
|
return;
|
|
4772
4772
|
}
|
|
4773
|
-
const
|
|
4774
|
-
|
|
4773
|
+
const b = new ResizeObserver(() => {
|
|
4774
|
+
A();
|
|
4775
4775
|
});
|
|
4776
|
-
return
|
|
4777
|
-
|
|
4776
|
+
return b.observe(m), () => {
|
|
4777
|
+
b.disconnect();
|
|
4778
4778
|
};
|
|
4779
|
-
}, [
|
|
4780
|
-
const
|
|
4781
|
-
const
|
|
4779
|
+
}, [A]);
|
|
4780
|
+
const ee = ue(() => {
|
|
4781
|
+
const m = o ? { ...D, ...o } : D;
|
|
4782
4782
|
return ne ? {
|
|
4783
|
-
...
|
|
4783
|
+
...m,
|
|
4784
4784
|
display: "none",
|
|
4785
4785
|
pointerEvents: "none",
|
|
4786
4786
|
visibility: "hidden"
|
|
4787
|
-
} :
|
|
4787
|
+
} : m;
|
|
4788
4788
|
}, [D, ne, o]);
|
|
4789
4789
|
return /* @__PURE__ */ L.jsx(
|
|
4790
4790
|
"button",
|
|
4791
4791
|
{
|
|
4792
4792
|
type: "button",
|
|
4793
|
-
ref:
|
|
4793
|
+
ref: C,
|
|
4794
4794
|
className: te,
|
|
4795
|
-
style:
|
|
4796
|
-
onPointerDown:
|
|
4795
|
+
style: ee,
|
|
4796
|
+
onPointerDown: q,
|
|
4797
4797
|
disabled: t,
|
|
4798
4798
|
"aria-hidden": ne || void 0,
|
|
4799
|
-
"aria-label": `Resize ${
|
|
4800
|
-
"data-resize-handle-id":
|
|
4801
|
-
title: `ドラッグして${
|
|
4802
|
-
children: i || /* @__PURE__ */ L.jsx("div", { className:
|
|
4799
|
+
"aria-label": `Resize ${F ? "columns" : "rows"} - Drag to collapse/expand panels`,
|
|
4800
|
+
"data-resize-handle-id": E,
|
|
4801
|
+
title: `ドラッグして${F ? "列" : "行"}をリサイズ、端まで移動して折りたたみ/展開`,
|
|
4802
|
+
children: i || /* @__PURE__ */ L.jsx("div", { className: S, style: n, children: /* @__PURE__ */ L.jsx("span", { className: R }) })
|
|
4803
4803
|
}
|
|
4804
4804
|
);
|
|
4805
4805
|
}), ln = (e) => document.querySelector(`[data-panel-id="${e}"]`), cn = (e) => document.querySelector(`[data-panel-group-id="${e}"]`), dn = (e) => document.querySelector(`[data-resize-handle-id="${e}"]`);
|
|
@@ -4810,7 +4810,7 @@ export {
|
|
|
4810
4810
|
an as PanelResizeHandle,
|
|
4811
4811
|
he as clamp,
|
|
4812
4812
|
rr as generatePanelId,
|
|
4813
|
-
|
|
4813
|
+
se as getConstraintInPixels,
|
|
4814
4814
|
we as getContainerSize,
|
|
4815
4815
|
ln as getPanelElement,
|
|
4816
4816
|
cn as getPanelGroupElement,
|