baseline-kit 2.0.0 → 2.1.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/README.md +127 -105
- package/dist/README.md +127 -105
- package/dist/components/Baseline/Baseline.d.ts +29 -6
- package/dist/components/Box/Box.d.ts +27 -6
- package/dist/components/Config/Config.d.ts +52 -9
- package/dist/components/Guide/Guide.d.ts +37 -13
- package/dist/components/Layout/Layout.d.ts +21 -7
- package/dist/components/Padder/Padder.d.ts +24 -7
- package/dist/components/Spacer/Spacer.d.ts +32 -35
- package/dist/components/Stack/Stack.d.ts +27 -11
- package/dist/components/types.d.ts +1 -1
- package/dist/hooks/useBaseline.d.ts +34 -51
- package/dist/hooks/useConfig.d.ts +0 -5
- package/dist/hooks/useDebug.d.ts +1 -6
- package/dist/hooks/useGuide.d.ts +2 -7
- package/dist/hooks/useMeasure.d.ts +6 -20
- package/dist/hooks/useVirtual.d.ts +0 -5
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1665 -1100
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +140 -0
- package/dist/utils/convert.d.ts +0 -5
- package/dist/utils/grid.d.ts +22 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/math.d.ts +26 -5
- package/dist/utils/merge.d.ts +54 -5
- package/dist/utils/parse.d.ts +0 -5
- package/dist/utils/snapping.d.ts +0 -5
- package/dist/utils/ssr.d.ts +33 -0
- package/dist/utils/timing.d.ts +2 -7
- package/package.json +43 -32
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import at, { useMemo as ke, useCallback as Ee, useState as it, useLayoutEffect as Ke } from "react";
|
|
3
|
+
var ge = { exports: {} }, de = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var ae = { exports: {} }, re = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function r
|
|
19
|
-
var
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else
|
|
25
|
-
return
|
|
26
|
-
$$typeof:
|
|
27
|
-
type:
|
|
28
|
-
key:
|
|
29
|
-
ref:
|
|
30
|
-
props:
|
|
13
|
+
var Pe;
|
|
14
|
+
function lt() {
|
|
15
|
+
if (Pe) return de;
|
|
16
|
+
Pe = 1;
|
|
17
|
+
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
18
|
+
function o(r, s, a) {
|
|
19
|
+
var i = null;
|
|
20
|
+
if (a !== void 0 && (i = "" + a), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
21
|
+
a = {};
|
|
22
|
+
for (var l in s)
|
|
23
|
+
l !== "key" && (a[l] = s[l]);
|
|
24
|
+
} else a = s;
|
|
25
|
+
return s = a.ref, {
|
|
26
|
+
$$typeof: e,
|
|
27
|
+
type: r,
|
|
28
|
+
key: i,
|
|
29
|
+
ref: s !== void 0 ? s : null,
|
|
30
|
+
props: a
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return de.Fragment = n, de.jsx = o, de.jsxs = o, de;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var be = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,421 +42,421 @@ var oe = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
function t
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
45
|
+
var Ye;
|
|
46
|
+
function ct() {
|
|
47
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(t) {
|
|
49
|
+
if (t == null) return null;
|
|
50
|
+
if (typeof t == "function")
|
|
51
|
+
return t.$$typeof === J ? null : t.displayName || t.name || null;
|
|
52
|
+
if (typeof t == "string") return t;
|
|
53
|
+
switch (t) {
|
|
54
|
+
case G:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case I:
|
|
57
57
|
return "Portal";
|
|
58
|
-
case
|
|
58
|
+
case M:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case p:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case z:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case y:
|
|
65
65
|
return "SuspenseList";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof t == "object")
|
|
68
|
+
switch (typeof t.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
-
),
|
|
71
|
-
case
|
|
72
|
-
return (
|
|
73
|
-
case
|
|
74
|
-
return (
|
|
75
|
-
case N:
|
|
76
|
-
var c = e.render;
|
|
77
|
-
return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
70
|
+
), t.$$typeof) {
|
|
71
|
+
case E:
|
|
72
|
+
return (t.displayName || "Context") + ".Provider";
|
|
73
|
+
case D:
|
|
74
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
78
75
|
case L:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
var f = t.render;
|
|
77
|
+
return t = t.displayName, t || (t = f.displayName || f.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
78
|
+
case B:
|
|
79
|
+
return f = t.displayName || null, f !== null ? f : e(t.type) || "Memo";
|
|
80
|
+
case W:
|
|
81
|
+
f = t._payload, t = t._init;
|
|
82
82
|
try {
|
|
83
|
-
return t(
|
|
83
|
+
return e(t(f));
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
|
-
function n(
|
|
90
|
-
return "" +
|
|
89
|
+
function n(t) {
|
|
90
|
+
return "" + t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function o(t) {
|
|
93
93
|
try {
|
|
94
|
-
n(
|
|
95
|
-
var
|
|
94
|
+
n(t);
|
|
95
|
+
var f = !1;
|
|
96
96
|
} catch {
|
|
97
|
-
|
|
97
|
+
f = !0;
|
|
98
98
|
}
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
var
|
|
102
|
-
return
|
|
103
|
-
|
|
99
|
+
if (f) {
|
|
100
|
+
f = console;
|
|
101
|
+
var d = f.error, C = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
102
|
+
return d.call(
|
|
103
|
+
f,
|
|
104
104
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
105
|
-
|
|
106
|
-
), n(
|
|
105
|
+
C
|
|
106
|
+
), n(t);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function r() {
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
var
|
|
111
|
+
function s() {
|
|
112
|
+
if (X === 0) {
|
|
113
|
+
Ae = console.log, $e = console.info, Ne = console.warn, Ve = console.error, Ge = console.group, De = console.groupCollapsed, We = console.groupEnd;
|
|
114
|
+
var t = {
|
|
115
115
|
configurable: !0,
|
|
116
116
|
enumerable: !0,
|
|
117
|
-
value:
|
|
117
|
+
value: r,
|
|
118
118
|
writable: !0
|
|
119
119
|
};
|
|
120
120
|
Object.defineProperties(console, {
|
|
121
|
-
info:
|
|
122
|
-
log:
|
|
123
|
-
warn:
|
|
124
|
-
error:
|
|
125
|
-
group:
|
|
126
|
-
groupCollapsed:
|
|
127
|
-
groupEnd:
|
|
121
|
+
info: t,
|
|
122
|
+
log: t,
|
|
123
|
+
warn: t,
|
|
124
|
+
error: t,
|
|
125
|
+
group: t,
|
|
126
|
+
groupCollapsed: t,
|
|
127
|
+
groupEnd: t
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
X++;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
if (
|
|
134
|
-
var
|
|
132
|
+
function a() {
|
|
133
|
+
if (X--, X === 0) {
|
|
134
|
+
var t = { configurable: !0, enumerable: !0, writable: !0 };
|
|
135
135
|
Object.defineProperties(console, {
|
|
136
|
-
log:
|
|
137
|
-
info:
|
|
138
|
-
warn:
|
|
139
|
-
error:
|
|
140
|
-
group:
|
|
141
|
-
groupCollapsed:
|
|
142
|
-
groupEnd:
|
|
136
|
+
log: P({}, t, { value: Ae }),
|
|
137
|
+
info: P({}, t, { value: $e }),
|
|
138
|
+
warn: P({}, t, { value: Ne }),
|
|
139
|
+
error: P({}, t, { value: Ve }),
|
|
140
|
+
group: P({}, t, { value: Ge }),
|
|
141
|
+
groupCollapsed: P({}, t, { value: De }),
|
|
142
|
+
groupEnd: P({}, t, { value: We })
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
0 >
|
|
145
|
+
0 > X && console.error(
|
|
146
146
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
149
|
+
function i(t) {
|
|
150
|
+
if (ye === void 0)
|
|
151
151
|
try {
|
|
152
152
|
throw Error();
|
|
153
|
-
} catch (
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
at`) ? " (<anonymous>)" : -1 <
|
|
153
|
+
} catch (d) {
|
|
154
|
+
var f = d.stack.trim().match(/\n( *(at )?)/);
|
|
155
|
+
ye = f && f[1] || "", He = -1 < d.stack.indexOf(`
|
|
156
|
+
at`) ? " (<anonymous>)" : -1 < d.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
157
157
|
}
|
|
158
158
|
return `
|
|
159
|
-
` +
|
|
159
|
+
` + ye + t + He;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
if (!
|
|
163
|
-
var
|
|
164
|
-
if (
|
|
165
|
-
|
|
166
|
-
var
|
|
167
|
-
|
|
161
|
+
function l(t, f) {
|
|
162
|
+
if (!t || xe) return "";
|
|
163
|
+
var d = Se.get(t);
|
|
164
|
+
if (d !== void 0) return d;
|
|
165
|
+
xe = !0, d = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
166
|
+
var C = null;
|
|
167
|
+
C = _.H, _.H = null, s();
|
|
168
168
|
try {
|
|
169
|
-
var
|
|
169
|
+
var Y = {
|
|
170
170
|
DetermineComponentFrameRoot: function() {
|
|
171
171
|
try {
|
|
172
|
-
if (
|
|
173
|
-
var
|
|
172
|
+
if (f) {
|
|
173
|
+
var te = function() {
|
|
174
174
|
throw Error();
|
|
175
175
|
};
|
|
176
|
-
if (Object.defineProperty(
|
|
176
|
+
if (Object.defineProperty(te.prototype, "props", {
|
|
177
177
|
set: function() {
|
|
178
178
|
throw Error();
|
|
179
179
|
}
|
|
180
180
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
181
181
|
try {
|
|
182
|
-
Reflect.construct(
|
|
183
|
-
} catch (
|
|
184
|
-
var
|
|
182
|
+
Reflect.construct(te, []);
|
|
183
|
+
} catch (ee) {
|
|
184
|
+
var me = ee;
|
|
185
185
|
}
|
|
186
|
-
Reflect.construct(
|
|
186
|
+
Reflect.construct(t, [], te);
|
|
187
187
|
} else {
|
|
188
188
|
try {
|
|
189
|
-
|
|
190
|
-
} catch (
|
|
191
|
-
|
|
189
|
+
te.call();
|
|
190
|
+
} catch (ee) {
|
|
191
|
+
me = ee;
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
t.call(te.prototype);
|
|
194
194
|
}
|
|
195
195
|
} else {
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
|
|
198
|
+
} catch (ee) {
|
|
199
|
+
me = ee;
|
|
200
200
|
}
|
|
201
|
-
(
|
|
201
|
+
(te = t()) && typeof te.catch == "function" && te.catch(function() {
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
} catch (
|
|
205
|
-
if (
|
|
206
|
-
return [
|
|
204
|
+
} catch (ee) {
|
|
205
|
+
if (ee && me && typeof ee.stack == "string")
|
|
206
|
+
return [ee.stack, me.stack];
|
|
207
207
|
}
|
|
208
208
|
return [null, null];
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
var
|
|
213
|
-
|
|
211
|
+
Y.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
212
|
+
var N = Object.getOwnPropertyDescriptor(
|
|
213
|
+
Y.DetermineComponentFrameRoot,
|
|
214
214
|
"name"
|
|
215
215
|
);
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
N && N.configurable && Object.defineProperty(
|
|
217
|
+
Y.DetermineComponentFrameRoot,
|
|
218
218
|
"name",
|
|
219
219
|
{ value: "DetermineComponentFrameRoot" }
|
|
220
220
|
);
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
var
|
|
224
|
-
`),
|
|
221
|
+
var v = Y.DetermineComponentFrameRoot(), Q = v[0], ce = v[1];
|
|
222
|
+
if (Q && ce) {
|
|
223
|
+
var F = Q.split(`
|
|
224
|
+
`), ae = ce.split(`
|
|
225
225
|
`);
|
|
226
|
-
for (
|
|
226
|
+
for (v = N = 0; N < F.length && !F[N].includes(
|
|
227
227
|
"DetermineComponentFrameRoot"
|
|
228
228
|
); )
|
|
229
|
-
|
|
230
|
-
for (;
|
|
229
|
+
N++;
|
|
230
|
+
for (; v < ae.length && !ae[v].includes(
|
|
231
231
|
"DetermineComponentFrameRoot"
|
|
232
232
|
); )
|
|
233
|
-
|
|
234
|
-
if (
|
|
235
|
-
for (
|
|
236
|
-
|
|
237
|
-
for (; 1 <=
|
|
238
|
-
if (
|
|
239
|
-
if (
|
|
233
|
+
v++;
|
|
234
|
+
if (N === F.length || v === ae.length)
|
|
235
|
+
for (N = F.length - 1, v = ae.length - 1; 1 <= N && 0 <= v && F[N] !== ae[v]; )
|
|
236
|
+
v--;
|
|
237
|
+
for (; 1 <= N && 0 <= v; N--, v--)
|
|
238
|
+
if (F[N] !== ae[v]) {
|
|
239
|
+
if (N !== 1 || v !== 1)
|
|
240
240
|
do
|
|
241
|
-
if (
|
|
242
|
-
var
|
|
243
|
-
` +
|
|
241
|
+
if (N--, v--, 0 > v || F[N] !== ae[v]) {
|
|
242
|
+
var fe = `
|
|
243
|
+
` + F[N].replace(
|
|
244
244
|
" at new ",
|
|
245
245
|
" at "
|
|
246
246
|
);
|
|
247
|
-
return
|
|
247
|
+
return t.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", t.displayName)), typeof t == "function" && Se.set(t, fe), fe;
|
|
248
248
|
}
|
|
249
|
-
while (1 <=
|
|
249
|
+
while (1 <= N && 0 <= v);
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
} finally {
|
|
254
|
-
|
|
254
|
+
xe = !1, _.H = C, a(), Error.prepareStackTrace = d;
|
|
255
255
|
}
|
|
256
|
-
return
|
|
256
|
+
return F = (F = t ? t.displayName || t.name : "") ? i(F) : "", typeof t == "function" && Se.set(t, F), F;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
if (
|
|
260
|
-
if (typeof
|
|
261
|
-
var
|
|
262
|
-
return
|
|
263
|
-
|
|
264
|
-
!(!
|
|
258
|
+
function u(t) {
|
|
259
|
+
if (t == null) return "";
|
|
260
|
+
if (typeof t == "function") {
|
|
261
|
+
var f = t.prototype;
|
|
262
|
+
return l(
|
|
263
|
+
t,
|
|
264
|
+
!(!f || !f.isReactComponent)
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
if (typeof
|
|
268
|
-
switch (
|
|
269
|
-
case
|
|
270
|
-
return
|
|
271
|
-
case
|
|
272
|
-
return
|
|
267
|
+
if (typeof t == "string") return i(t);
|
|
268
|
+
switch (t) {
|
|
269
|
+
case z:
|
|
270
|
+
return i("Suspense");
|
|
271
|
+
case y:
|
|
272
|
+
return i("SuspenseList");
|
|
273
273
|
}
|
|
274
|
-
if (typeof
|
|
275
|
-
switch (
|
|
276
|
-
case N:
|
|
277
|
-
return e = f(e.render, !1), e;
|
|
274
|
+
if (typeof t == "object")
|
|
275
|
+
switch (t.$$typeof) {
|
|
278
276
|
case L:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
|
|
277
|
+
return t = l(t.render, !1), t;
|
|
278
|
+
case B:
|
|
279
|
+
return u(t.type);
|
|
280
|
+
case W:
|
|
281
|
+
f = t._payload, t = t._init;
|
|
282
282
|
try {
|
|
283
|
-
return
|
|
283
|
+
return u(t(f));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
return "";
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
var
|
|
291
|
-
return
|
|
289
|
+
function m() {
|
|
290
|
+
var t = _.A;
|
|
291
|
+
return t === null ? null : t.getOwner();
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
-
if (
|
|
293
|
+
function k(t) {
|
|
294
|
+
if (U.call(t, "key")) {
|
|
295
|
+
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
296
|
+
if (f && f.isReactWarning) return !1;
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return t.key !== void 0;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
function
|
|
302
|
-
|
|
300
|
+
function b(t, f) {
|
|
301
|
+
function d() {
|
|
302
|
+
Ie || (Ie = !0, console.error(
|
|
303
303
|
"%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)",
|
|
304
|
-
|
|
304
|
+
f
|
|
305
305
|
));
|
|
306
306
|
}
|
|
307
|
-
|
|
308
|
-
get:
|
|
307
|
+
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
308
|
+
get: d,
|
|
309
309
|
configurable: !0
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
var
|
|
314
|
-
return
|
|
312
|
+
function O() {
|
|
313
|
+
var t = e(this.type);
|
|
314
|
+
return ze[t] || (ze[t] = !0, console.error(
|
|
315
315
|
"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."
|
|
316
|
-
)),
|
|
316
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
return
|
|
320
|
-
$$typeof:
|
|
321
|
-
type:
|
|
322
|
-
key:
|
|
323
|
-
props:
|
|
324
|
-
_owner:
|
|
325
|
-
}, (
|
|
318
|
+
function x(t, f, d, C, Y, N) {
|
|
319
|
+
return d = N.ref, t = {
|
|
320
|
+
$$typeof: R,
|
|
321
|
+
type: t,
|
|
322
|
+
key: f,
|
|
323
|
+
props: N,
|
|
324
|
+
_owner: Y
|
|
325
|
+
}, (d !== void 0 ? d : null) !== null ? Object.defineProperty(t, "ref", {
|
|
326
326
|
enumerable: !1,
|
|
327
|
-
get:
|
|
328
|
-
}) : Object.defineProperty(
|
|
327
|
+
get: O
|
|
328
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
329
329
|
configurable: !1,
|
|
330
330
|
enumerable: !1,
|
|
331
331
|
writable: !0,
|
|
332
332
|
value: 0
|
|
333
|
-
}), Object.defineProperty(
|
|
333
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
334
334
|
configurable: !1,
|
|
335
335
|
enumerable: !1,
|
|
336
336
|
writable: !0,
|
|
337
337
|
value: null
|
|
338
|
-
}), Object.freeze && (Object.freeze(
|
|
338
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
if (typeof
|
|
342
|
-
var
|
|
343
|
-
if (
|
|
344
|
-
if (
|
|
345
|
-
if (
|
|
346
|
-
for (
|
|
347
|
-
|
|
348
|
-
Object.freeze && Object.freeze(
|
|
340
|
+
function h(t, f, d, C, Y, N) {
|
|
341
|
+
if (typeof t == "string" || typeof t == "function" || t === G || t === M || t === p || t === z || t === y || t === A || typeof t == "object" && t !== null && (t.$$typeof === W || t.$$typeof === B || t.$$typeof === E || t.$$typeof === D || t.$$typeof === L || t.$$typeof === Z || t.getModuleId !== void 0)) {
|
|
342
|
+
var v = f.children;
|
|
343
|
+
if (v !== void 0)
|
|
344
|
+
if (C)
|
|
345
|
+
if (q(v)) {
|
|
346
|
+
for (C = 0; C < v.length; C++)
|
|
347
|
+
j(v[C], t);
|
|
348
|
+
Object.freeze && Object.freeze(v);
|
|
349
349
|
} else
|
|
350
350
|
console.error(
|
|
351
351
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
352
352
|
);
|
|
353
|
-
else
|
|
353
|
+
else j(v, t);
|
|
354
354
|
} else
|
|
355
|
-
|
|
355
|
+
v = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? C = "null" : q(t) ? C = "array" : t !== void 0 && t.$$typeof === R ? (C = "<" + (e(t.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : C = typeof t, console.error(
|
|
356
356
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
C,
|
|
358
|
+
v
|
|
359
359
|
);
|
|
360
|
-
if (
|
|
361
|
-
|
|
362
|
-
var
|
|
363
|
-
return
|
|
360
|
+
if (U.call(f, "key")) {
|
|
361
|
+
v = e(t);
|
|
362
|
+
var Q = Object.keys(f).filter(function(F) {
|
|
363
|
+
return F !== "key";
|
|
364
364
|
});
|
|
365
|
-
|
|
365
|
+
C = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Be[v + C] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
366
366
|
`A props object containing a "key" prop is being spread into JSX:
|
|
367
367
|
let props = %s;
|
|
368
368
|
<%s {...props} />
|
|
369
369
|
React keys must be passed directly to JSX without using spread:
|
|
370
370
|
let props = %s;
|
|
371
371
|
<%s key={someKey} {...props} />`,
|
|
372
|
+
C,
|
|
372
373
|
v,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
), Pe[m + v] = !0);
|
|
374
|
+
Q,
|
|
375
|
+
v
|
|
376
|
+
), Be[v + C] = !0);
|
|
377
377
|
}
|
|
378
|
-
if (
|
|
379
|
-
|
|
380
|
-
for (var
|
|
381
|
-
|
|
382
|
-
} else
|
|
383
|
-
return
|
|
384
|
-
|
|
385
|
-
typeof
|
|
386
|
-
),
|
|
378
|
+
if (v = null, d !== void 0 && (o(d), v = "" + d), k(f) && (o(f.key), v = "" + f.key), "key" in f) {
|
|
379
|
+
d = {};
|
|
380
|
+
for (var ce in f)
|
|
381
|
+
ce !== "key" && (d[ce] = f[ce]);
|
|
382
|
+
} else d = f;
|
|
383
|
+
return v && b(
|
|
384
|
+
d,
|
|
385
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
386
|
+
), x(t, v, N, Y, m(), d);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
if (typeof
|
|
390
|
-
if (
|
|
391
|
-
for (var
|
|
392
|
-
var
|
|
393
|
-
|
|
388
|
+
function j(t, f) {
|
|
389
|
+
if (typeof t == "object" && t && t.$$typeof !== st) {
|
|
390
|
+
if (q(t))
|
|
391
|
+
for (var d = 0; d < t.length; d++) {
|
|
392
|
+
var C = t[d];
|
|
393
|
+
T(C) && g(C, f);
|
|
394
394
|
}
|
|
395
|
-
else if (
|
|
396
|
-
|
|
397
|
-
else if (
|
|
398
|
-
for (; !(
|
|
399
|
-
|
|
395
|
+
else if (T(t))
|
|
396
|
+
t._store && (t._store.validated = 1);
|
|
397
|
+
else if (t === null || typeof t != "object" ? d = null : (d = K && t[K] || t["@@iterator"], d = typeof d == "function" ? d : null), typeof d == "function" && d !== t.entries && (d = d.call(t), d !== t))
|
|
398
|
+
for (; !(t = d.next()).done; )
|
|
399
|
+
T(t.value) && g(t.value, f);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return typeof
|
|
402
|
+
function T(t) {
|
|
403
|
+
return typeof t == "object" && t !== null && t.$$typeof === R;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
if (
|
|
407
|
-
|
|
408
|
-
var
|
|
409
|
-
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
var
|
|
413
|
-
return
|
|
405
|
+
function g(t, f) {
|
|
406
|
+
if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, f = V(f), !Le[f])) {
|
|
407
|
+
Le[f] = !0;
|
|
408
|
+
var d = "";
|
|
409
|
+
t && t._owner != null && t._owner !== m() && (d = null, typeof t._owner.tag == "number" ? d = e(t._owner.type) : typeof t._owner.name == "string" && (d = t._owner.name), d = " It was passed a child from " + d + ".");
|
|
410
|
+
var C = _.getCurrentStack;
|
|
411
|
+
_.getCurrentStack = function() {
|
|
412
|
+
var Y = u(t.type);
|
|
413
|
+
return C && (Y += C() || ""), Y;
|
|
414
414
|
}, console.error(
|
|
415
415
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
),
|
|
416
|
+
f,
|
|
417
|
+
d
|
|
418
|
+
), _.getCurrentStack = C;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
return
|
|
421
|
+
function V(t) {
|
|
422
|
+
var f = "", d = m();
|
|
423
|
+
return d && (d = e(d.type)) && (f = `
|
|
424
424
|
|
|
425
|
-
Check the render method of \`` +
|
|
425
|
+
Check the render method of \`` + d + "`."), f || (t = e(t)) && (f = `
|
|
426
426
|
|
|
427
|
-
Check the top-level render call using <` +
|
|
427
|
+
Check the top-level render call using <` + t + ">."), f;
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
return
|
|
434
|
-
},
|
|
435
|
-
return
|
|
429
|
+
var $ = at, R = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), E = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), K = Symbol.iterator, J = Symbol.for("react.client.reference"), _ = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, P = Object.assign, Z = Symbol.for("react.client.reference"), q = Array.isArray, X = 0, Ae, $e, Ne, Ve, Ge, De, We;
|
|
430
|
+
r.__reactDisabledLog = !0;
|
|
431
|
+
var ye, He, xe = !1, Se = new (typeof WeakMap == "function" ? WeakMap : Map)(), st = Symbol.for("react.client.reference"), Ie, ze = {}, Be = {}, Le = {};
|
|
432
|
+
be.Fragment = G, be.jsx = function(t, f, d, C, Y) {
|
|
433
|
+
return h(t, f, d, !1, C, Y);
|
|
434
|
+
}, be.jsxs = function(t, f, d, C, Y) {
|
|
435
|
+
return h(t, f, d, !0, C, Y);
|
|
436
436
|
};
|
|
437
|
-
}()),
|
|
437
|
+
}()), be;
|
|
438
438
|
}
|
|
439
|
-
var
|
|
440
|
-
function
|
|
441
|
-
return
|
|
439
|
+
var Fe;
|
|
440
|
+
function ut() {
|
|
441
|
+
return Fe || (Fe = 1, process.env.NODE_ENV === "production" ? ge.exports = lt() : ge.exports = ct()), ge.exports;
|
|
442
442
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
445
|
-
const n =
|
|
443
|
+
var S = ut();
|
|
444
|
+
function ft(e) {
|
|
445
|
+
const n = e.trim().match(/^([+-]?[\d.]+)([a-zA-Z%]+)$/);
|
|
446
446
|
if (!n) return null;
|
|
447
|
-
const
|
|
448
|
-
return { value:
|
|
447
|
+
const o = parseFloat(n[1]), r = n[2];
|
|
448
|
+
return { value: o, unit: r };
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
450
|
+
function H(e, n) {
|
|
451
|
+
return e === void 0 && n !== void 0 ? `${n}px` : e === "auto" || typeof e == "string" && /^(auto|100%|0|.*(fr|vh|vw|vmin|vmax|rem))$/.test(e) ? String(e) : typeof e == "number" ? `${e}px` : e ?? "";
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const dt = {
|
|
454
454
|
parentSize: 0,
|
|
455
455
|
viewportWidth: typeof window < "u" ? window.innerWidth : 1920,
|
|
456
456
|
viewportHeight: typeof window < "u" ? window.innerHeight : 1080,
|
|
457
457
|
rootFontSize: 16,
|
|
458
458
|
parentFontSize: 16
|
|
459
|
-
},
|
|
459
|
+
}, Ce = {
|
|
460
460
|
px: 1,
|
|
461
461
|
in: 96,
|
|
462
462
|
// 1in = 96px
|
|
@@ -469,275 +469,329 @@ const ft = {
|
|
|
469
469
|
pc: 16
|
|
470
470
|
// 1pc = 16px
|
|
471
471
|
}, Qe = ["em", "rem", "vh", "vw", "vmin", "vmax", "%"];
|
|
472
|
-
function
|
|
473
|
-
if (typeof
|
|
474
|
-
if (typeof
|
|
475
|
-
const
|
|
476
|
-
if (!
|
|
477
|
-
const { value:
|
|
478
|
-
if (
|
|
479
|
-
return
|
|
480
|
-
if (
|
|
481
|
-
if (Qe.includes(
|
|
482
|
-
const
|
|
483
|
-
switch (
|
|
472
|
+
function _e(e, n) {
|
|
473
|
+
if (typeof e == "number") return e;
|
|
474
|
+
if (typeof e != "string") return null;
|
|
475
|
+
const o = ft(e);
|
|
476
|
+
if (!o) return null;
|
|
477
|
+
const { value: r, unit: s } = o;
|
|
478
|
+
if (s in Ce)
|
|
479
|
+
return r * Ce[s];
|
|
480
|
+
if (s === "auto") return null;
|
|
481
|
+
if (Qe.includes(s)) {
|
|
482
|
+
const a = { ...dt, ...n };
|
|
483
|
+
switch (s) {
|
|
484
484
|
case "em":
|
|
485
|
-
return
|
|
485
|
+
return r * a.parentFontSize;
|
|
486
486
|
case "rem":
|
|
487
|
-
return
|
|
487
|
+
return r * a.rootFontSize;
|
|
488
488
|
case "vh":
|
|
489
|
-
return
|
|
489
|
+
return r / 100 * a.viewportHeight;
|
|
490
490
|
case "vw":
|
|
491
|
-
return
|
|
491
|
+
return r / 100 * a.viewportWidth;
|
|
492
492
|
case "vmin":
|
|
493
|
-
return
|
|
493
|
+
return r / 100 * Math.min(a.viewportWidth, a.viewportHeight);
|
|
494
494
|
case "vmax":
|
|
495
|
-
return
|
|
495
|
+
return r / 100 * Math.max(a.viewportWidth, a.viewportHeight);
|
|
496
496
|
case "%":
|
|
497
|
-
return
|
|
497
|
+
return r / 100 * a.parentSize;
|
|
498
498
|
default:
|
|
499
499
|
return null;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
const
|
|
506
|
-
return `${(
|
|
504
|
+
function yn(e, n, o) {
|
|
505
|
+
const r = (o == null ? void 0 : o.round) ?? !0, s = e === void 0 ? 0 : typeof e == "number" ? e : _e(e) ?? 0;
|
|
506
|
+
return `${(r ? Math.round(s) : s) % n}px`;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return Math.min(Math.max(
|
|
508
|
+
function bt(e, n, o) {
|
|
509
|
+
return Math.min(Math.max(e, n), o);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function xn(e, n = 0) {
|
|
512
512
|
if (n >= 0)
|
|
513
|
-
return Number((Math.round(
|
|
513
|
+
return Number((Math.round(e * 10 ** n) / 10 ** n).toFixed(n));
|
|
514
514
|
{
|
|
515
|
-
const
|
|
516
|
-
return Math.round(
|
|
515
|
+
const o = 10 ** Math.abs(n);
|
|
516
|
+
return Math.round(e / o) * o;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function mt(e) {
|
|
520
|
+
const { height: n, top: o, bottom: r, base: s } = e, a = (n ?? 0) - (o + r);
|
|
521
|
+
return Math.max(1, Math.floor(a / s));
|
|
522
|
+
}
|
|
523
|
+
function Re(e, n = {}) {
|
|
520
524
|
const {
|
|
521
|
-
base:
|
|
522
|
-
round:
|
|
523
|
-
clamp:
|
|
524
|
-
suppressWarnings:
|
|
525
|
+
base: o = 8,
|
|
526
|
+
round: r = !0,
|
|
527
|
+
clamp: s,
|
|
528
|
+
suppressWarnings: a = !1
|
|
525
529
|
} = n;
|
|
526
|
-
if (
|
|
527
|
-
let
|
|
528
|
-
if (typeof
|
|
529
|
-
|
|
530
|
-
else if (typeof
|
|
531
|
-
const
|
|
532
|
-
|
|
530
|
+
if (e === "auto") return o;
|
|
531
|
+
let i = null;
|
|
532
|
+
if (typeof e == "number")
|
|
533
|
+
i = e;
|
|
534
|
+
else if (typeof e == "string") {
|
|
535
|
+
const m = _e(e);
|
|
536
|
+
m === null ? (a || console.error(
|
|
537
|
+
`Failed to convert "${e}" to pixels. Falling back to base ${o}.`
|
|
538
|
+
), i = o) : i = m;
|
|
533
539
|
}
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
|
|
540
|
+
i === null && (i = o);
|
|
541
|
+
const l = r ? Math.round(i / o) * o : i, u = s !== void 0 ? bt(
|
|
542
|
+
l,
|
|
543
|
+
s.min ?? -1 / 0,
|
|
544
|
+
s.max ?? 1 / 0
|
|
545
|
+
) : l;
|
|
546
|
+
return !a && u !== i && console.warn(`Normalized ${i} to ${u} to match base ${o}px.`), u;
|
|
537
547
|
}
|
|
538
|
-
function
|
|
539
|
-
if (!
|
|
540
|
-
|
|
541
|
-
|
|
548
|
+
function et(e, n, o) {
|
|
549
|
+
if (!e || e[0] === void 0 && e[1] === void 0)
|
|
550
|
+
return n;
|
|
551
|
+
const r = e[0] !== void 0 ? Re(e[0], o) : n[0], s = e[1] !== void 0 ? Re(e[1], o) : n[1];
|
|
552
|
+
return [r, s];
|
|
542
553
|
}
|
|
543
|
-
function
|
|
544
|
-
if ("padding" in
|
|
545
|
-
return
|
|
546
|
-
const n = "block" in
|
|
554
|
+
function ie(e) {
|
|
555
|
+
if ("padding" in e && e.padding != null)
|
|
556
|
+
return gt(e.padding);
|
|
557
|
+
const n = "block" in e && e.block != null ? ht(e.block) : { top: 0, bottom: 0 }, o = "inline" in e && e.inline != null ? kt(e.inline) : { left: 0, right: 0 };
|
|
547
558
|
return {
|
|
548
559
|
top: n.top,
|
|
549
|
-
right:
|
|
560
|
+
right: o.right,
|
|
550
561
|
bottom: n.bottom,
|
|
551
|
-
left:
|
|
562
|
+
left: o.left
|
|
552
563
|
};
|
|
553
564
|
}
|
|
554
|
-
function
|
|
555
|
-
if (typeof
|
|
556
|
-
return { top:
|
|
557
|
-
if (Array.isArray(
|
|
558
|
-
if (
|
|
559
|
-
const [n,
|
|
560
|
-
return { top: n, right:
|
|
565
|
+
function gt(e) {
|
|
566
|
+
if (typeof e == "number")
|
|
567
|
+
return { top: e, right: e, bottom: e, left: e };
|
|
568
|
+
if (Array.isArray(e)) {
|
|
569
|
+
if (e.length === 2) {
|
|
570
|
+
const [n, o] = e;
|
|
571
|
+
return { top: n, right: o, bottom: n, left: o };
|
|
561
572
|
}
|
|
562
|
-
if (
|
|
563
|
-
const [n, r, s
|
|
573
|
+
if (e.length >= 4) {
|
|
574
|
+
const [n, o, r, s] = e;
|
|
564
575
|
return {
|
|
565
576
|
top: n ?? 0,
|
|
566
|
-
right:
|
|
567
|
-
bottom:
|
|
568
|
-
left:
|
|
577
|
+
right: o ?? 0,
|
|
578
|
+
bottom: r ?? 0,
|
|
579
|
+
left: s ?? 0
|
|
569
580
|
};
|
|
570
581
|
}
|
|
571
582
|
}
|
|
572
|
-
if (typeof
|
|
573
|
-
const n =
|
|
574
|
-
return { top: n, right:
|
|
583
|
+
if (typeof e == "object" && !Array.isArray(e)) {
|
|
584
|
+
const n = e.top ?? 0, o = e.bottom ?? 0, r = e.left ?? 0, s = e.right ?? 0;
|
|
585
|
+
return { top: n, right: s, bottom: o, left: r };
|
|
575
586
|
}
|
|
576
587
|
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
577
588
|
}
|
|
578
|
-
function
|
|
579
|
-
if (typeof
|
|
580
|
-
return { top:
|
|
581
|
-
if (Array.isArray(
|
|
582
|
-
const [n,
|
|
589
|
+
function ht(e) {
|
|
590
|
+
if (typeof e == "number")
|
|
591
|
+
return { top: e, bottom: e };
|
|
592
|
+
if (Array.isArray(e)) {
|
|
593
|
+
const [n, o] = e;
|
|
583
594
|
return {
|
|
584
595
|
top: n ?? 0,
|
|
585
|
-
bottom:
|
|
596
|
+
bottom: o ?? 0
|
|
586
597
|
};
|
|
587
598
|
}
|
|
588
|
-
return typeof
|
|
589
|
-
top:
|
|
590
|
-
bottom:
|
|
599
|
+
return typeof e == "object" ? {
|
|
600
|
+
top: e.start ?? 0,
|
|
601
|
+
bottom: e.end ?? 0
|
|
591
602
|
} : { top: 0, bottom: 0 };
|
|
592
603
|
}
|
|
593
|
-
function
|
|
594
|
-
if (typeof
|
|
595
|
-
return { left:
|
|
596
|
-
if (Array.isArray(
|
|
597
|
-
const [n,
|
|
604
|
+
function kt(e) {
|
|
605
|
+
if (typeof e == "number")
|
|
606
|
+
return { left: e, right: e };
|
|
607
|
+
if (Array.isArray(e)) {
|
|
608
|
+
const [n, o] = e;
|
|
598
609
|
return {
|
|
599
610
|
left: n ?? 0,
|
|
600
|
-
right:
|
|
611
|
+
right: o ?? 0
|
|
601
612
|
};
|
|
602
613
|
}
|
|
603
|
-
return typeof
|
|
604
|
-
left:
|
|
605
|
-
right:
|
|
614
|
+
return typeof e == "object" ? {
|
|
615
|
+
left: e.start ?? 0,
|
|
616
|
+
right: e.end ?? 0
|
|
606
617
|
} : { left: 0, right: 0 };
|
|
607
618
|
}
|
|
608
|
-
function
|
|
609
|
-
const
|
|
610
|
-
if (
|
|
611
|
-
return
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
614
|
-
|
|
619
|
+
function vt(e, n, o, r) {
|
|
620
|
+
const s = ie({ padding: o });
|
|
621
|
+
if (r === "none")
|
|
622
|
+
return s;
|
|
623
|
+
if (r === "height") {
|
|
624
|
+
const a = e % n;
|
|
625
|
+
a !== 0 && (s.bottom += n - a);
|
|
615
626
|
}
|
|
616
|
-
if (
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
627
|
+
if (r === "clamp") {
|
|
628
|
+
s.top = s.top % n;
|
|
629
|
+
const a = e % n;
|
|
630
|
+
a !== 0 && (s.bottom += n - a), s.bottom = s.bottom % n;
|
|
620
631
|
}
|
|
621
|
-
return
|
|
632
|
+
return s;
|
|
622
633
|
}
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
634
|
+
const pt = (e, n, o) => {
|
|
635
|
+
const r = {};
|
|
636
|
+
return e !== void 0 ? (r.gridColumn = `span ${e}`, r.gridRow = `span ${e}`) : (n !== void 0 && (r.gridColumn = `span ${n}`), o !== void 0 && (r.gridRow = `span ${o}`)), r;
|
|
637
|
+
}, ne = (...e) => e.filter(Boolean).join(" ").trim(), oe = (...e) => Object.assign({}, ...e.filter((n) => n !== void 0));
|
|
638
|
+
function yt(e, n) {
|
|
639
|
+
if (e)
|
|
640
|
+
if (typeof e == "function")
|
|
641
|
+
e(n);
|
|
628
642
|
else
|
|
629
643
|
try {
|
|
630
|
-
Object.assign(
|
|
631
|
-
} catch (
|
|
632
|
-
console.error("Error assigning ref:",
|
|
644
|
+
Object.assign(e, { current: n });
|
|
645
|
+
} catch (o) {
|
|
646
|
+
console.error("Error assigning ref:", o);
|
|
633
647
|
}
|
|
634
648
|
}
|
|
635
|
-
function
|
|
649
|
+
function tt(...e) {
|
|
636
650
|
return (n) => {
|
|
637
|
-
|
|
638
|
-
|
|
651
|
+
e.forEach((o) => {
|
|
652
|
+
yt(o, n);
|
|
639
653
|
});
|
|
640
654
|
};
|
|
641
655
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
656
|
+
function w(e, n, o) {
|
|
657
|
+
var l, u, m;
|
|
658
|
+
const r = typeof e == "string" ? e : e.key, s = typeof e == "string" ? n : e.value, a = typeof e == "string" ? o : e.defaultStyles, i = typeof e == "object" ? e.skipDimensions : void 0;
|
|
659
|
+
if (i) {
|
|
660
|
+
if ((l = i.fitContent) != null && l.includes(r) && s === "fit-content")
|
|
661
|
+
return {};
|
|
662
|
+
if ((u = i.auto) != null && u.includes(r) && s === "auto")
|
|
663
|
+
return {};
|
|
664
|
+
if ((m = i.fullSize) != null && m.includes(r) && (s === "100%" || s === "100vh" || s === "100vw"))
|
|
665
|
+
return {};
|
|
666
|
+
}
|
|
667
|
+
return s !== a[r] ? { [r]: s } : {};
|
|
668
|
+
}
|
|
669
|
+
const Sn = (e, n) => {
|
|
670
|
+
let o = null;
|
|
671
|
+
const r = () => {
|
|
672
|
+
o && (clearTimeout(o), o = null);
|
|
646
673
|
};
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
674
|
+
return [(...a) => {
|
|
675
|
+
r(), o = setTimeout(() => e(...a), n);
|
|
676
|
+
}, r];
|
|
677
|
+
}, nt = (e) => {
|
|
678
|
+
let n = null, o = null;
|
|
679
|
+
return (...s) => {
|
|
680
|
+
o = s, n !== null && cancelAnimationFrame(n), n = requestAnimationFrame(() => {
|
|
681
|
+
e(...o), n = null, o = null;
|
|
682
|
+
});
|
|
653
683
|
};
|
|
684
|
+
}, ot = typeof window > "u", xt = {
|
|
685
|
+
width: 1024,
|
|
686
|
+
height: 768
|
|
654
687
|
};
|
|
655
|
-
function
|
|
656
|
-
|
|
657
|
-
|
|
688
|
+
function wn(e, n) {
|
|
689
|
+
if (ot)
|
|
690
|
+
return n;
|
|
691
|
+
try {
|
|
692
|
+
return e();
|
|
693
|
+
} catch {
|
|
694
|
+
return n;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
function re(e, n, o) {
|
|
698
|
+
return !e || ot ? n : o;
|
|
699
|
+
}
|
|
700
|
+
function ve(e) {
|
|
701
|
+
const [n, o] = c.useState({ width: 0, height: 0 }), r = c.useCallback(() => {
|
|
702
|
+
if (e.current)
|
|
658
703
|
try {
|
|
659
|
-
const
|
|
660
|
-
width: Math.round(
|
|
661
|
-
height: Math.round(
|
|
704
|
+
const a = e.current.getBoundingClientRect(), i = {
|
|
705
|
+
width: a ? Math.round(a.width) : 0,
|
|
706
|
+
height: a ? Math.round(a.height) : 0
|
|
662
707
|
};
|
|
663
|
-
(
|
|
664
|
-
|
|
665
|
-
|
|
708
|
+
o(
|
|
709
|
+
(l) => l.width === i.width && l.height === i.height ? l : i
|
|
710
|
+
);
|
|
711
|
+
} catch {
|
|
712
|
+
o({ width: 0, height: 0 });
|
|
666
713
|
}
|
|
667
|
-
}, [
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
714
|
+
}, [e]), s = c.useMemo(() => nt(r), [r]);
|
|
715
|
+
return c.useLayoutEffect(() => {
|
|
716
|
+
r();
|
|
717
|
+
}, [r]), c.useLayoutEffect(() => {
|
|
718
|
+
if (!e.current) return;
|
|
719
|
+
const a = new ResizeObserver(() => {
|
|
720
|
+
s();
|
|
672
721
|
});
|
|
673
|
-
return
|
|
674
|
-
|
|
722
|
+
return a.observe(e.current), () => {
|
|
723
|
+
a.disconnect();
|
|
675
724
|
};
|
|
676
|
-
}, [
|
|
677
|
-
const f = le(() => {
|
|
678
|
-
i.current = !1, o();
|
|
679
|
-
}, [o]);
|
|
680
|
-
return { ...n, refresh: f };
|
|
725
|
+
}, [e, s]), { ...n, refresh: s };
|
|
681
726
|
}
|
|
682
|
-
function
|
|
683
|
-
totalLines:
|
|
727
|
+
function St({
|
|
728
|
+
totalLines: e,
|
|
684
729
|
lineHeight: n,
|
|
685
|
-
containerRef:
|
|
686
|
-
buffer:
|
|
730
|
+
containerRef: o,
|
|
731
|
+
buffer: r = 0
|
|
687
732
|
}) {
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
733
|
+
const s = ke(
|
|
734
|
+
() => typeof r == "number" ? r : parseInt(r, 10) || 0,
|
|
735
|
+
[r]
|
|
736
|
+
), a = Ee(() => {
|
|
737
|
+
const k = o.current;
|
|
738
|
+
if (!k) return { start: 0, end: e };
|
|
739
|
+
if (k.closest(".block"))
|
|
740
|
+
return { start: 0, end: e };
|
|
741
|
+
const O = k.getBoundingClientRect().top + window.scrollY, x = Math.max(0, window.scrollY - O - s), h = x + window.innerHeight + s * 2, j = Math.max(0, Math.floor(x / n)), T = Math.min(e, Math.ceil(h / n));
|
|
742
|
+
return { start: j, end: T };
|
|
743
|
+
}, [e, n, o, s]), [i, l] = it(a);
|
|
744
|
+
wt(["scroll", "resize"], () => {
|
|
745
|
+
m();
|
|
698
746
|
});
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
747
|
+
const u = Ee(() => {
|
|
748
|
+
l((k) => {
|
|
749
|
+
const b = a();
|
|
750
|
+
return k.start !== b.start || k.end !== b.end ? b : k;
|
|
751
|
+
});
|
|
752
|
+
}, [a]), m = ke(() => nt(u), [u]);
|
|
753
|
+
return Ke(() => {
|
|
754
|
+
const k = o.current;
|
|
755
|
+
if (!k) return;
|
|
756
|
+
const b = new IntersectionObserver(m, { threshold: 0 });
|
|
757
|
+
return b.observe(k), m(), () => {
|
|
758
|
+
b.disconnect();
|
|
706
759
|
};
|
|
707
|
-
}, [
|
|
760
|
+
}, [o, a, m]), i;
|
|
708
761
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
762
|
+
function wt(e, n) {
|
|
763
|
+
const o = Ee(n, [n]);
|
|
764
|
+
Ke(() => {
|
|
765
|
+
const r = () => o();
|
|
766
|
+
return e.forEach((s) => window.addEventListener(s, r)), () => e.forEach((s) => window.removeEventListener(s, r));
|
|
767
|
+
}, [e, o]);
|
|
713
768
|
}
|
|
714
|
-
function
|
|
769
|
+
function pe(e, {
|
|
715
770
|
base: n = 8,
|
|
716
|
-
snapping:
|
|
717
|
-
spacing:
|
|
718
|
-
warnOnMisalignment:
|
|
771
|
+
snapping: o = "none",
|
|
772
|
+
spacing: r = {},
|
|
773
|
+
warnOnMisalignment: s = !1
|
|
719
774
|
} = {}) {
|
|
720
775
|
if (n < 1)
|
|
721
776
|
throw new Error("Base must be >= 1 for baseline alignment.");
|
|
722
|
-
const { height:
|
|
723
|
-
return
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}, [n, r, s, o, i]);
|
|
777
|
+
const { height: a } = ve(e), i = c.useRef(!1), l = c.useRef(!1);
|
|
778
|
+
return c.useMemo(() => {
|
|
779
|
+
const u = ie({ padding: r }), m = a % n === 0;
|
|
780
|
+
if (!m && s && process.env.NODE_ENV === "development" && (l.current || (console.warn(
|
|
781
|
+
`[useBaseline] Element height (${a}px) is not aligned with base (${n}px).`
|
|
782
|
+
), l.current = !0)), o === "none")
|
|
783
|
+
return { padding: u, isAligned: m, height: a };
|
|
784
|
+
if (i.current)
|
|
785
|
+
return { padding: u, isAligned: m, height: a };
|
|
786
|
+
const k = vt(a, n, u, o);
|
|
787
|
+
return i.current = !0, { padding: k, isAligned: m, height: a };
|
|
788
|
+
}, [n, o, r, s, a]);
|
|
735
789
|
}
|
|
736
|
-
function
|
|
737
|
-
const { width:
|
|
738
|
-
return
|
|
739
|
-
const s = n.variant ?? "line", i =
|
|
740
|
-
if (!
|
|
790
|
+
function Et(e, n) {
|
|
791
|
+
const { width: o } = ve(e), r = c.useRef(!1);
|
|
792
|
+
return c.useMemo(() => {
|
|
793
|
+
const s = n.variant ?? "line", a = n.base ?? 8, i = Re(n.gap ?? 0, { base: a });
|
|
794
|
+
if (!o)
|
|
741
795
|
return {
|
|
742
796
|
template: "none",
|
|
743
797
|
columnsCount: 0,
|
|
@@ -747,101 +801,101 @@ function yt(t, n) {
|
|
|
747
801
|
try {
|
|
748
802
|
switch (s) {
|
|
749
803
|
case "line": {
|
|
750
|
-
const
|
|
804
|
+
const l = Math.max(1, Math.floor(o / (i + 1)) + 1);
|
|
751
805
|
return {
|
|
752
|
-
template: `repeat(${
|
|
753
|
-
columnsCount:
|
|
806
|
+
template: `repeat(${l}, 1px)`,
|
|
807
|
+
columnsCount: l,
|
|
754
808
|
calculatedGap: i,
|
|
755
809
|
isValid: !0
|
|
756
810
|
};
|
|
757
811
|
}
|
|
758
812
|
case "pattern": {
|
|
759
|
-
if (!
|
|
813
|
+
if (!bn(n.columns))
|
|
760
814
|
throw new Error('Invalid "pattern" columns array');
|
|
761
|
-
const
|
|
762
|
-
return
|
|
815
|
+
const l = n.columns.map((u) => typeof u == "number" ? `${u}px` : u);
|
|
816
|
+
return l.some((u) => u === "0" || u === "0px") ? {
|
|
763
817
|
template: "none",
|
|
764
818
|
columnsCount: 0,
|
|
765
819
|
calculatedGap: 0,
|
|
766
820
|
isValid: !1
|
|
767
821
|
} : {
|
|
768
|
-
template:
|
|
769
|
-
columnsCount:
|
|
822
|
+
template: l.join(" "),
|
|
823
|
+
columnsCount: l.length,
|
|
770
824
|
calculatedGap: i,
|
|
771
825
|
isValid: !0
|
|
772
826
|
};
|
|
773
827
|
}
|
|
774
828
|
case "fixed": {
|
|
775
|
-
const
|
|
776
|
-
if (
|
|
777
|
-
throw new Error(`Invalid columns count: ${
|
|
778
|
-
const
|
|
829
|
+
const l = typeof n.columns == "number" ? n.columns : 0;
|
|
830
|
+
if (l < 1)
|
|
831
|
+
throw new Error(`Invalid columns count: ${l}`);
|
|
832
|
+
const u = n.columnWidth ? H(n.columnWidth) : "1fr";
|
|
779
833
|
return {
|
|
780
|
-
template: `repeat(${
|
|
781
|
-
columnsCount:
|
|
834
|
+
template: `repeat(${l}, ${u})`,
|
|
835
|
+
columnsCount: l,
|
|
782
836
|
calculatedGap: i,
|
|
783
837
|
isValid: !0
|
|
784
838
|
};
|
|
785
839
|
}
|
|
786
840
|
case "auto": {
|
|
787
|
-
const
|
|
788
|
-
if (
|
|
841
|
+
const l = n.columnWidth ?? "auto";
|
|
842
|
+
if (l === "auto")
|
|
789
843
|
return {
|
|
790
844
|
template: "repeat(auto-fit, minmax(0, 1fr))",
|
|
791
845
|
columnsCount: 1,
|
|
792
846
|
calculatedGap: i,
|
|
793
847
|
isValid: !0
|
|
794
848
|
};
|
|
795
|
-
const
|
|
849
|
+
const u = typeof l == "number" ? `${l}px` : l.toString(), m = _e(u) ?? 0, k = m > 0 ? Math.max(1, Math.floor((o + i) / (m + i))) : 1;
|
|
796
850
|
return {
|
|
797
|
-
template: `repeat(auto-fit, minmax(${
|
|
798
|
-
columnsCount:
|
|
851
|
+
template: `repeat(auto-fit, minmax(${u}, 1fr))`,
|
|
852
|
+
columnsCount: k,
|
|
799
853
|
calculatedGap: i,
|
|
800
854
|
isValid: !0
|
|
801
855
|
};
|
|
802
856
|
}
|
|
803
857
|
default: {
|
|
804
|
-
console.warn(
|
|
858
|
+
r.current || (console.warn(
|
|
805
859
|
`[useGuide] Unknown variant "${s}". Falling back to "line".`
|
|
806
|
-
);
|
|
807
|
-
const
|
|
860
|
+
), r.current = !0);
|
|
861
|
+
const l = Math.max(1, Math.floor(o / (i + 1)) + 1);
|
|
808
862
|
return {
|
|
809
|
-
template: `repeat(${
|
|
810
|
-
columnsCount:
|
|
863
|
+
template: `repeat(${l}, 1px)`,
|
|
864
|
+
columnsCount: l,
|
|
811
865
|
calculatedGap: i,
|
|
812
866
|
isValid: !0
|
|
813
867
|
};
|
|
814
868
|
}
|
|
815
869
|
}
|
|
816
|
-
} catch (
|
|
817
|
-
return console.warn("Error in useGuide:",
|
|
870
|
+
} catch (l) {
|
|
871
|
+
return console.warn("Error in useGuide:", l), {
|
|
818
872
|
template: "none",
|
|
819
873
|
columnsCount: 0,
|
|
820
874
|
calculatedGap: 0,
|
|
821
875
|
isValid: !1
|
|
822
876
|
};
|
|
823
877
|
}
|
|
824
|
-
}, [n,
|
|
878
|
+
}, [n, o]);
|
|
825
879
|
}
|
|
826
|
-
function
|
|
827
|
-
const n =
|
|
828
|
-
return
|
|
880
|
+
function se(e) {
|
|
881
|
+
const n = rt();
|
|
882
|
+
return ke(() => Object.assign(
|
|
829
883
|
{ base: n.base },
|
|
830
|
-
n[
|
|
831
|
-
), [n,
|
|
884
|
+
n[e]
|
|
885
|
+
), [n, e]);
|
|
832
886
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
835
|
-
const
|
|
887
|
+
function le(e, n) {
|
|
888
|
+
return ke(() => {
|
|
889
|
+
const o = e ?? n;
|
|
836
890
|
return {
|
|
837
|
-
isShown:
|
|
838
|
-
isHidden:
|
|
839
|
-
isNone:
|
|
840
|
-
debugging:
|
|
891
|
+
isShown: o === "visible",
|
|
892
|
+
isHidden: o === "hidden",
|
|
893
|
+
isNone: o === "none",
|
|
894
|
+
debugging: o
|
|
841
895
|
};
|
|
842
|
-
}, [
|
|
896
|
+
}, [e, n]);
|
|
843
897
|
}
|
|
844
|
-
const
|
|
898
|
+
const Ct = {
|
|
845
899
|
/** Color for single-line guides */
|
|
846
900
|
line: "var(--bk-guide-color-line-theme)",
|
|
847
901
|
/** Color for pattern-based guides */
|
|
@@ -850,439 +904,685 @@ const kt = {
|
|
|
850
904
|
auto: "var(--bk-guide-color-auto-theme)",
|
|
851
905
|
/** Color for fixed-column guides */
|
|
852
906
|
fixed: "var(--bk-guide-color-fixed-theme)"
|
|
853
|
-
},
|
|
907
|
+
}, Rt = {
|
|
854
908
|
/** Color for line variant */
|
|
855
909
|
line: "var(--bk-baseline-color-line-theme)",
|
|
856
910
|
/** Color for flat/block variant */
|
|
857
911
|
flat: "var(--bk-baseline-color-flat-theme)"
|
|
858
|
-
},
|
|
912
|
+
}, _t = {
|
|
859
913
|
/** Color for line-style spacers */
|
|
860
914
|
line: "var(--bk-spacer-color-line-theme)",
|
|
861
915
|
/** Color for flat/block spacers */
|
|
862
916
|
flat: "var(--bk-spacer-color-flat-theme)",
|
|
863
917
|
/** Color for measurement indicators */
|
|
864
|
-
|
|
865
|
-
},
|
|
918
|
+
text: "var(--bk-spacer-color-text-theme)"
|
|
919
|
+
}, jt = {
|
|
866
920
|
/** Border color for debug outline */
|
|
867
921
|
line: "var(--bk-box-color-line-theme)",
|
|
868
922
|
/** Background color for debug mode */
|
|
869
923
|
flat: "var(--bk-box-color-flat-theme)",
|
|
870
924
|
/** Color for measurement indicators */
|
|
871
|
-
|
|
872
|
-
},
|
|
925
|
+
text: "var(--bk-box-color-text-theme)"
|
|
926
|
+
}, Mt = {
|
|
873
927
|
/** Border color for debug outline */
|
|
874
928
|
line: "var(--bk-stack-color-line-theme)",
|
|
875
929
|
/** Background color for debug mode */
|
|
876
930
|
flat: "var(--bk-stack-color-flat-theme)",
|
|
877
931
|
/** Color for measurement indicators */
|
|
878
|
-
|
|
879
|
-
},
|
|
932
|
+
text: "var(--bk-stack-color-text-theme)"
|
|
933
|
+
}, Ot = {
|
|
880
934
|
/** Border color for debug outline */
|
|
881
935
|
line: "var(--bk-layout-color-line-theme)",
|
|
882
936
|
/** Background color for debug mode */
|
|
883
937
|
flat: "var(--bk-layout-color-flat-theme)",
|
|
884
938
|
/** Color for measurement indicators */
|
|
885
|
-
|
|
886
|
-
},
|
|
939
|
+
text: "var(--bk-layout-color-text-theme)"
|
|
940
|
+
}, Tt = "var(--bk-padder-color-theme)", At = {
|
|
887
941
|
/** Base unit for spacing calculations (in pixels) */
|
|
888
942
|
base: 8,
|
|
889
943
|
/** Baseline grid configuration */
|
|
890
944
|
baseline: {
|
|
891
945
|
variant: "line",
|
|
892
946
|
debugging: "hidden",
|
|
893
|
-
colors:
|
|
947
|
+
colors: Rt
|
|
894
948
|
},
|
|
895
949
|
/** Guide overlay configuration */
|
|
896
950
|
guide: {
|
|
897
951
|
variant: "line",
|
|
898
952
|
debugging: "hidden",
|
|
899
|
-
colors:
|
|
953
|
+
colors: Ct
|
|
900
954
|
},
|
|
901
955
|
/** Spacer component configuration */
|
|
902
956
|
spacer: {
|
|
903
957
|
variant: "line",
|
|
904
958
|
debugging: "hidden",
|
|
905
|
-
colors:
|
|
959
|
+
colors: _t
|
|
906
960
|
},
|
|
907
961
|
/** Box component configuration */
|
|
908
962
|
box: {
|
|
909
963
|
debugging: "hidden",
|
|
910
|
-
colors:
|
|
964
|
+
colors: jt
|
|
911
965
|
},
|
|
912
966
|
/** Stack/Flex component configuration */
|
|
913
967
|
stack: {
|
|
914
968
|
debugging: "hidden",
|
|
915
|
-
colors:
|
|
969
|
+
colors: Mt
|
|
916
970
|
},
|
|
917
971
|
/** Layout component configuration */
|
|
918
972
|
layout: {
|
|
919
973
|
debugging: "hidden",
|
|
920
|
-
colors:
|
|
974
|
+
colors: Ot
|
|
921
975
|
},
|
|
922
976
|
/** Padder component configuration */
|
|
923
977
|
padder: {
|
|
924
978
|
debugging: "hidden",
|
|
925
|
-
color:
|
|
979
|
+
color: Tt
|
|
926
980
|
}
|
|
927
|
-
},
|
|
928
|
-
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
981
|
+
}, je = c.createContext(At);
|
|
982
|
+
je.displayName = "ConfigContext";
|
|
983
|
+
const rt = () => c.use(je), En = (e) => {
|
|
984
|
+
const {
|
|
985
|
+
base: n,
|
|
986
|
+
baseline: o,
|
|
987
|
+
guide: r,
|
|
988
|
+
stack: s,
|
|
989
|
+
spacer: a,
|
|
990
|
+
layout: i,
|
|
991
|
+
box: l,
|
|
992
|
+
padder: u
|
|
993
|
+
} = e;
|
|
994
|
+
return {
|
|
995
|
+
"--bkb": `${n}px`,
|
|
996
|
+
// Baseline Colors
|
|
997
|
+
"--bkbcl": o.colors.line,
|
|
998
|
+
"--bkbcf": o.colors.flat,
|
|
999
|
+
// Guide Colors
|
|
1000
|
+
"--bkgcl": r.colors.line,
|
|
1001
|
+
"--bkgcp": r.colors.pattern,
|
|
1002
|
+
"--bkgca": r.colors.auto,
|
|
1003
|
+
"--bkgcf": r.colors.fixed,
|
|
1004
|
+
// Spacer Colors
|
|
1005
|
+
"--bkscl": a.colors.line,
|
|
1006
|
+
"--bkscf": a.colors.flat,
|
|
1007
|
+
"--bksci": a.colors.text,
|
|
1008
|
+
// Box Colors
|
|
1009
|
+
"--bkxcl": l.colors.line,
|
|
1010
|
+
"--bkxcf": l.colors.flat,
|
|
1011
|
+
"--bkxci": l.colors.text,
|
|
1012
|
+
// Flex Colors
|
|
1013
|
+
"--bkkcl": s.colors.line,
|
|
1014
|
+
"--bkkcf": s.colors.flat,
|
|
1015
|
+
"--bkkci": s.colors.text,
|
|
1016
|
+
// Layout Colors
|
|
1017
|
+
"--bklcl": i.colors.line,
|
|
1018
|
+
"--bklcf": i.colors.flat,
|
|
1019
|
+
"--bklci": i.colors.text,
|
|
1020
|
+
// Padder Color
|
|
1021
|
+
"--bkpc": u.color
|
|
1022
|
+
};
|
|
1023
|
+
}, $t = (e) => {
|
|
1024
|
+
const {
|
|
1025
|
+
parentConfig: n,
|
|
1026
|
+
base: o,
|
|
1027
|
+
baseline: r,
|
|
1028
|
+
guide: s,
|
|
1029
|
+
spacer: a,
|
|
1030
|
+
box: i,
|
|
1031
|
+
stack: l,
|
|
1032
|
+
layout: u,
|
|
1033
|
+
padder: m
|
|
1034
|
+
} = e;
|
|
1035
|
+
return {
|
|
1036
|
+
base: o ?? n.base,
|
|
1037
|
+
baseline: { ...n.baseline, ...r },
|
|
1038
|
+
guide: { ...n.guide, ...s },
|
|
1039
|
+
spacer: { ...n.spacer, ...a },
|
|
1040
|
+
box: { ...n.box, ...i },
|
|
1041
|
+
stack: { ...n.stack, ...l },
|
|
1042
|
+
layout: { ...n.layout, ...u },
|
|
1043
|
+
padder: { ...n.padder, ...m }
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
function Me({
|
|
1047
|
+
children: e,
|
|
969
1048
|
base: n,
|
|
970
|
-
stack:
|
|
971
|
-
baseline:
|
|
972
|
-
guide:
|
|
973
|
-
layout:
|
|
974
|
-
spacer:
|
|
975
|
-
box:
|
|
976
|
-
padder:
|
|
1049
|
+
stack: o,
|
|
1050
|
+
baseline: r,
|
|
1051
|
+
guide: s,
|
|
1052
|
+
layout: a,
|
|
1053
|
+
spacer: i,
|
|
1054
|
+
box: l,
|
|
1055
|
+
padder: u
|
|
977
1056
|
}) {
|
|
978
|
-
const
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
...x,
|
|
991
|
-
cssVariables: $t(x)
|
|
992
|
-
};
|
|
993
|
-
}, [
|
|
1057
|
+
const m = rt(), k = c.useMemo(() => $t({
|
|
1058
|
+
parentConfig: m,
|
|
1059
|
+
base: n,
|
|
1060
|
+
baseline: r,
|
|
1061
|
+
guide: s,
|
|
1062
|
+
spacer: i,
|
|
1063
|
+
box: l,
|
|
1064
|
+
stack: o,
|
|
1065
|
+
layout: a,
|
|
1066
|
+
padder: u
|
|
1067
|
+
}), [
|
|
1068
|
+
m,
|
|
994
1069
|
n,
|
|
995
|
-
|
|
996
|
-
l.baseline,
|
|
997
|
-
l.guide,
|
|
998
|
-
l.spacer,
|
|
999
|
-
l.box,
|
|
1000
|
-
l.stack,
|
|
1001
|
-
l.layout,
|
|
1002
|
-
l.padder,
|
|
1070
|
+
r,
|
|
1003
1071
|
s,
|
|
1004
1072
|
i,
|
|
1005
|
-
|
|
1006
|
-
f,
|
|
1007
|
-
r,
|
|
1073
|
+
l,
|
|
1008
1074
|
o,
|
|
1009
|
-
|
|
1075
|
+
a,
|
|
1076
|
+
u
|
|
1010
1077
|
]);
|
|
1011
|
-
return /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ S.jsx(je, { value: k, children: e });
|
|
1012
1079
|
}
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1015
|
-
line:
|
|
1016
|
-
flat:
|
|
1017
|
-
},
|
|
1080
|
+
const Nt = "spr_zbcF6", Vt = "line_qHW69", Gt = "flat_gqixr", Ue = {
|
|
1081
|
+
spr: Nt,
|
|
1082
|
+
line: Vt,
|
|
1083
|
+
flat: Gt
|
|
1084
|
+
}, Dt = (e, n, o, r) => ({
|
|
1085
|
+
"--bksw": "100%",
|
|
1086
|
+
"--bksh": "100%",
|
|
1087
|
+
"--bksb": `${e}px`,
|
|
1088
|
+
"--bksci": n,
|
|
1089
|
+
"--bkscl": r,
|
|
1090
|
+
"--bkscf": o
|
|
1091
|
+
}), Wt = (e, n, o, r) => {
|
|
1092
|
+
if (!e || !n) return null;
|
|
1093
|
+
const s = typeof o == "number" ? o : 0, a = typeof r == "number" ? r : 0;
|
|
1094
|
+
return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
1095
|
+
a !== 0 && /* @__PURE__ */ S.jsx("span", { children: n(a, "height") }, "height"),
|
|
1096
|
+
s !== 0 && /* @__PURE__ */ S.jsx("span", { children: n(s, "width") }, "width")
|
|
1097
|
+
] });
|
|
1098
|
+
}, Ht = c.memo(function({
|
|
1018
1099
|
height: n,
|
|
1019
|
-
width:
|
|
1020
|
-
indicatorNode:
|
|
1021
|
-
debugging:
|
|
1022
|
-
variant:
|
|
1023
|
-
base:
|
|
1024
|
-
color:
|
|
1025
|
-
className:
|
|
1026
|
-
style:
|
|
1027
|
-
|
|
1100
|
+
width: o,
|
|
1101
|
+
indicatorNode: r,
|
|
1102
|
+
debugging: s,
|
|
1103
|
+
variant: a,
|
|
1104
|
+
base: i,
|
|
1105
|
+
color: l,
|
|
1106
|
+
className: u,
|
|
1107
|
+
style: m,
|
|
1108
|
+
children: k,
|
|
1109
|
+
ssrMode: b = !1,
|
|
1110
|
+
...O
|
|
1028
1111
|
}) {
|
|
1029
|
-
const x =
|
|
1030
|
-
|
|
1112
|
+
const x = c.useRef(null), h = se("spacer"), { isShown: j } = le(s, h.debugging), T = a ?? h.variant, g = i ?? h.base, [V, $] = c.useState(!1);
|
|
1113
|
+
c.useEffect(() => {
|
|
1114
|
+
$(!0);
|
|
1115
|
+
}, []);
|
|
1116
|
+
const [R, I] = c.useMemo(() => et(
|
|
1117
|
+
[o, n],
|
|
1031
1118
|
[0, 0],
|
|
1032
|
-
{ base:
|
|
1033
|
-
),
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1119
|
+
{ base: g, suppressWarnings: !0 }
|
|
1120
|
+
), [o, n, g]), G = re(
|
|
1121
|
+
V && !b,
|
|
1122
|
+
!1,
|
|
1123
|
+
// Don't show measurements during SSR
|
|
1124
|
+
j && r !== void 0
|
|
1125
|
+
), p = c.useMemo(() => G ? Wt(
|
|
1126
|
+
j,
|
|
1127
|
+
r,
|
|
1128
|
+
R,
|
|
1129
|
+
I
|
|
1130
|
+
) : null, [G, j, r, R, I]), M = c.useMemo(
|
|
1131
|
+
() => Dt(
|
|
1132
|
+
g,
|
|
1133
|
+
h.colors.text,
|
|
1134
|
+
h.colors.flat,
|
|
1135
|
+
h.colors.line
|
|
1136
|
+
),
|
|
1137
|
+
[g, h.colors]
|
|
1138
|
+
), D = c.useMemo(() => {
|
|
1139
|
+
const E = H(I || "100%"), L = H(R || "100%"), z = `${g}px`, y = ["--bksw", "--bksh"], B = {
|
|
1140
|
+
...w({
|
|
1141
|
+
key: "--bksh",
|
|
1142
|
+
value: E,
|
|
1143
|
+
defaultStyles: M,
|
|
1144
|
+
skipDimensions: { fullSize: y }
|
|
1145
|
+
}),
|
|
1146
|
+
...w({
|
|
1147
|
+
key: "--bksw",
|
|
1148
|
+
value: L,
|
|
1149
|
+
defaultStyles: M,
|
|
1150
|
+
skipDimensions: { fullSize: y }
|
|
1151
|
+
}),
|
|
1152
|
+
// Explicitly set --bksb to ensure it is always applied
|
|
1153
|
+
"--bksb": z,
|
|
1154
|
+
...w({
|
|
1155
|
+
key: "--bksci",
|
|
1156
|
+
value: l ?? h.colors.text,
|
|
1157
|
+
defaultStyles: M
|
|
1158
|
+
}),
|
|
1159
|
+
...w({
|
|
1160
|
+
key: "--bkscl",
|
|
1161
|
+
value: l ?? h.colors.line,
|
|
1162
|
+
defaultStyles: M
|
|
1163
|
+
}),
|
|
1164
|
+
...w({
|
|
1165
|
+
key: "--bkscf",
|
|
1166
|
+
value: l ?? h.colors.flat,
|
|
1167
|
+
defaultStyles: M
|
|
1168
|
+
})
|
|
1044
1169
|
};
|
|
1045
|
-
return
|
|
1046
|
-
}, [
|
|
1047
|
-
|
|
1170
|
+
return oe(B, m);
|
|
1171
|
+
}, [
|
|
1172
|
+
R,
|
|
1173
|
+
I,
|
|
1174
|
+
l,
|
|
1175
|
+
g,
|
|
1176
|
+
h.colors,
|
|
1177
|
+
M,
|
|
1178
|
+
m
|
|
1179
|
+
]);
|
|
1180
|
+
return /* @__PURE__ */ S.jsxs(
|
|
1048
1181
|
"div",
|
|
1049
1182
|
{
|
|
1050
1183
|
ref: x,
|
|
1051
|
-
className: D(
|
|
1052
|
-
Ie.spacer,
|
|
1053
|
-
h && Ie[T],
|
|
1054
|
-
d
|
|
1055
|
-
),
|
|
1056
1184
|
"data-testid": "spacer",
|
|
1185
|
+
className: ne(Ue.spr, j && Ue[T], u),
|
|
1057
1186
|
"data-variant": T,
|
|
1058
|
-
style:
|
|
1059
|
-
...
|
|
1060
|
-
children:
|
|
1187
|
+
style: D,
|
|
1188
|
+
...O,
|
|
1189
|
+
children: [
|
|
1190
|
+
p,
|
|
1191
|
+
k
|
|
1192
|
+
]
|
|
1193
|
+
}
|
|
1194
|
+
);
|
|
1195
|
+
}), It = "pad_w2-sL", zt = "v_lhGBy", we = {
|
|
1196
|
+
pad: It,
|
|
1197
|
+
v: zt
|
|
1198
|
+
}, Bt = (e, n, o, r) => {
|
|
1199
|
+
const s = {};
|
|
1200
|
+
return e !== "fit-content" && (s["--bkpw"] = H(e || "fit-content")), n !== "fit-content" && (s["--bkph"] = H(n || "fit-content")), o !== 8 && (s["--bkpb"] = `${o}px`), r !== "var(--bk-padder-color-theme)" && (s["--bkpc"] = r), s;
|
|
1201
|
+
}, Lt = (e, n) => {
|
|
1202
|
+
const { top: o, right: r, bottom: s, left: a } = n, i = {};
|
|
1203
|
+
return e || ((o > 0 || s > 0) && (i.paddingBlock = `${o}px ${s}px`), (a > 0 || r > 0) && (i.paddingInline = `${a}px ${r}px`)), i;
|
|
1204
|
+
}, Pt = (e, n, o) => {
|
|
1205
|
+
const r = e || "line", s = n || "none", a = (i, l) => /* @__PURE__ */ S.jsx(
|
|
1206
|
+
Ht,
|
|
1207
|
+
{
|
|
1208
|
+
variant: r,
|
|
1209
|
+
debugging: l === 0 || i === 0 ? "none" : s,
|
|
1210
|
+
indicatorNode: o,
|
|
1211
|
+
height: l !== "100%" ? l : void 0,
|
|
1212
|
+
width: i !== "100%" ? i : void 0
|
|
1061
1213
|
}
|
|
1062
1214
|
);
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}, Se = E.memo(
|
|
1067
|
-
E.forwardRef(function({
|
|
1215
|
+
return a.displayName = "PadderSpacer", a;
|
|
1216
|
+
}, Oe = c.memo(
|
|
1217
|
+
c.forwardRef(function({
|
|
1068
1218
|
children: n,
|
|
1069
|
-
className:
|
|
1070
|
-
debugging:
|
|
1071
|
-
height:
|
|
1072
|
-
indicatorNode:
|
|
1073
|
-
style:
|
|
1074
|
-
width:
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1219
|
+
className: o,
|
|
1220
|
+
debugging: r,
|
|
1221
|
+
height: s,
|
|
1222
|
+
indicatorNode: a,
|
|
1223
|
+
style: i,
|
|
1224
|
+
width: l,
|
|
1225
|
+
ssrMode: u = !1,
|
|
1226
|
+
...m
|
|
1227
|
+
}, k) {
|
|
1228
|
+
const b = se("padder"), { variant: O } = se("spacer"), x = c.useMemo(
|
|
1229
|
+
() => ie(m),
|
|
1230
|
+
[m]
|
|
1231
|
+
), { isShown: h, isNone: j, debugging: T } = le(
|
|
1232
|
+
r,
|
|
1233
|
+
b.debugging
|
|
1234
|
+
), g = !j, [V, $] = c.useState(!1);
|
|
1235
|
+
c.useEffect(() => {
|
|
1236
|
+
$(!0);
|
|
1237
|
+
}, []);
|
|
1238
|
+
const R = c.useRef(null), I = pe(R, {
|
|
1239
|
+
base: b.base,
|
|
1082
1240
|
snapping: "height",
|
|
1083
1241
|
spacing: x,
|
|
1084
|
-
warnOnMisalignment: !
|
|
1085
|
-
}),
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
"--bk-padder-color": g.color,
|
|
1092
|
-
...y ? {} : {
|
|
1093
|
-
paddingBlock: `${S}px ${k}px`,
|
|
1094
|
-
paddingInline: `${C}px ${_}px`
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
a
|
|
1098
|
-
),
|
|
1099
|
-
[f, i, g.base, g.color, y, S, _, k, C, a]
|
|
1100
|
-
), $ = (A, W) => /* @__PURE__ */ R.jsx(
|
|
1101
|
-
Nt,
|
|
1102
|
-
{
|
|
1103
|
-
debugging: T,
|
|
1104
|
-
indicatorNode: o,
|
|
1105
|
-
height: W,
|
|
1106
|
-
width: A
|
|
1242
|
+
warnOnMisalignment: !j
|
|
1243
|
+
}), G = {
|
|
1244
|
+
padding: {
|
|
1245
|
+
top: x.top || 0,
|
|
1246
|
+
right: x.right || 0,
|
|
1247
|
+
bottom: x.bottom || 0,
|
|
1248
|
+
left: x.left || 0
|
|
1107
1249
|
}
|
|
1250
|
+
}, { padding: p } = re(
|
|
1251
|
+
V && !u,
|
|
1252
|
+
G,
|
|
1253
|
+
I
|
|
1254
|
+
), M = tt(k, R), D = c.useMemo(() => {
|
|
1255
|
+
const L = Bt(
|
|
1256
|
+
l,
|
|
1257
|
+
s,
|
|
1258
|
+
b.base,
|
|
1259
|
+
b.color
|
|
1260
|
+
), z = Lt(
|
|
1261
|
+
g,
|
|
1262
|
+
{ top: p.top, right: p.right, bottom: p.bottom, left: p.left }
|
|
1263
|
+
);
|
|
1264
|
+
return oe(
|
|
1265
|
+
{ ...L, ...z },
|
|
1266
|
+
i
|
|
1267
|
+
);
|
|
1268
|
+
}, [
|
|
1269
|
+
l,
|
|
1270
|
+
s,
|
|
1271
|
+
b.base,
|
|
1272
|
+
b.color,
|
|
1273
|
+
g,
|
|
1274
|
+
p.top,
|
|
1275
|
+
p.right,
|
|
1276
|
+
p.bottom,
|
|
1277
|
+
p.left,
|
|
1278
|
+
i
|
|
1279
|
+
]), E = c.useMemo(
|
|
1280
|
+
() => Pt(O, T, a),
|
|
1281
|
+
[O, T, a]
|
|
1108
1282
|
);
|
|
1109
|
-
return /* @__PURE__ */
|
|
1283
|
+
return g ? /* @__PURE__ */ S.jsxs(
|
|
1110
1284
|
"div",
|
|
1111
1285
|
{
|
|
1112
|
-
ref:
|
|
1113
|
-
className: D(
|
|
1114
|
-
Fe.padder,
|
|
1115
|
-
b && Fe.visible,
|
|
1116
|
-
r
|
|
1117
|
-
),
|
|
1286
|
+
ref: M,
|
|
1118
1287
|
"data-testid": "padder",
|
|
1119
|
-
|
|
1288
|
+
className: ne(we.pad, h && we.v, o),
|
|
1289
|
+
style: D,
|
|
1120
1290
|
children: [
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1291
|
+
/* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
1292
|
+
p.top >= 0 && /* @__PURE__ */ S.jsx("div", { style: { gridColumn: "1 / -1" }, children: E("100%", p.top) }),
|
|
1293
|
+
p.left >= 0 && /* @__PURE__ */ S.jsx("div", { style: { gridRow: "2 / 3" }, children: E(p.left, "100%") })
|
|
1124
1294
|
] }),
|
|
1125
|
-
n,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1295
|
+
/* @__PURE__ */ S.jsx("div", { style: { gridRow: "2 / 3", gridColumn: "2 / 3" }, children: n }),
|
|
1296
|
+
/* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
1297
|
+
p.right >= 0 && /* @__PURE__ */ S.jsx("div", { style: { gridRow: "2 / 3" }, children: E(p.right, "100%") }),
|
|
1298
|
+
p.bottom >= 0 && /* @__PURE__ */ S.jsx("div", { style: { gridColumn: "1 / -1" }, children: E("100%", p.bottom) })
|
|
1129
1299
|
] })
|
|
1130
1300
|
]
|
|
1131
1301
|
}
|
|
1302
|
+
) : /* @__PURE__ */ S.jsx(
|
|
1303
|
+
"div",
|
|
1304
|
+
{
|
|
1305
|
+
ref: M,
|
|
1306
|
+
"data-testid": "padder",
|
|
1307
|
+
className: ne(we.pad, o),
|
|
1308
|
+
style: D,
|
|
1309
|
+
children: n
|
|
1310
|
+
}
|
|
1132
1311
|
);
|
|
1133
1312
|
})
|
|
1134
|
-
),
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1313
|
+
), Yt = "lay_5cMu5", Ft = "v_dprVE", qe = {
|
|
1314
|
+
lay: Yt,
|
|
1315
|
+
v: Ft
|
|
1316
|
+
}, Ut = (e) => ({
|
|
1317
|
+
"--bklw": "auto",
|
|
1318
|
+
"--bklh": "auto",
|
|
1319
|
+
"--bklcl": e.line,
|
|
1320
|
+
"--bklcf": e.flat,
|
|
1321
|
+
"--bklci": e.text
|
|
1322
|
+
}), Xe = (e) => typeof e == "number" ? `repeat(${e}, 1fr)` : typeof e == "string" ? e : Array.isArray(e) ? e.map((n) => typeof n == "number" ? `${n}px` : n).join(" ") : "repeat(auto-fit, minmax(100px, 1fr))", qt = (e, n, o) => {
|
|
1323
|
+
const r = {};
|
|
1324
|
+
return e !== void 0 && (r.gap = H(e)), n !== void 0 && (r.rowGap = H(n)), o !== void 0 && (r.columnGap = H(o)), r;
|
|
1325
|
+
}, Cn = c.memo(function({
|
|
1326
|
+
alignContent: n,
|
|
1327
|
+
alignItems: o,
|
|
1328
|
+
children: r,
|
|
1329
|
+
className: s,
|
|
1330
|
+
columns: a = "repeat(auto-fit, minmax(100px, 1fr))",
|
|
1331
|
+
columnGap: i,
|
|
1332
|
+
debugging: l,
|
|
1333
|
+
gap: u,
|
|
1334
|
+
height: m,
|
|
1335
|
+
indicatorNode: k,
|
|
1336
|
+
justifyContent: b,
|
|
1337
|
+
justifyItems: O,
|
|
1338
|
+
rowGap: x,
|
|
1339
|
+
rows: h,
|
|
1340
|
+
style: j,
|
|
1341
|
+
variant: T,
|
|
1342
|
+
width: g,
|
|
1343
|
+
ssrMode: V = !1,
|
|
1344
|
+
...$
|
|
1345
|
+
}) {
|
|
1346
|
+
const R = se("layout"), { isShown: I, debugging: G } = le(l, R.debugging), [p, M] = c.useState(!1);
|
|
1347
|
+
c.useEffect(() => {
|
|
1348
|
+
M(!0);
|
|
1349
|
+
}, []);
|
|
1350
|
+
const D = c.useRef(null), E = c.useMemo(
|
|
1351
|
+
() => ie($),
|
|
1352
|
+
[$]
|
|
1353
|
+
), L = pe(D, {
|
|
1354
|
+
base: R.base,
|
|
1355
|
+
snapping: "height",
|
|
1356
|
+
spacing: E,
|
|
1357
|
+
warnOnMisalignment: !0
|
|
1358
|
+
}), z = {
|
|
1359
|
+
padding: {
|
|
1360
|
+
top: E.top || 0,
|
|
1361
|
+
right: E.right || 0,
|
|
1362
|
+
bottom: E.bottom || 0,
|
|
1363
|
+
left: E.left || 0
|
|
1364
|
+
}
|
|
1365
|
+
}, { padding: y } = re(
|
|
1366
|
+
p && !V,
|
|
1367
|
+
z,
|
|
1368
|
+
L
|
|
1369
|
+
), B = c.useMemo(
|
|
1370
|
+
() => Xe(a),
|
|
1371
|
+
[a]
|
|
1372
|
+
), W = c.useMemo(
|
|
1373
|
+
() => h ? Xe(h) : "auto",
|
|
1374
|
+
[h]
|
|
1375
|
+
), A = c.useMemo(
|
|
1376
|
+
() => Ut(R.colors),
|
|
1377
|
+
[R.colors]
|
|
1378
|
+
), K = c.useMemo(
|
|
1379
|
+
() => qt(u, x, i),
|
|
1380
|
+
[u, x, i]
|
|
1381
|
+
), J = c.useMemo(() => {
|
|
1382
|
+
const _ = H(g || "auto"), U = H(m || "auto"), P = ["--bklw", "--bklh"];
|
|
1383
|
+
return oe(
|
|
1181
1384
|
{
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1385
|
+
// Theme overrides
|
|
1386
|
+
...w({
|
|
1387
|
+
key: "--bklw",
|
|
1388
|
+
value: _,
|
|
1389
|
+
defaultStyles: A,
|
|
1390
|
+
skipDimensions: { auto: P }
|
|
1391
|
+
}),
|
|
1392
|
+
...w({
|
|
1393
|
+
key: "--bklh",
|
|
1394
|
+
value: U,
|
|
1395
|
+
defaultStyles: A,
|
|
1396
|
+
skipDimensions: { auto: P }
|
|
1397
|
+
}),
|
|
1398
|
+
...w({
|
|
1399
|
+
key: "--bklcl",
|
|
1400
|
+
value: R.colors.line,
|
|
1401
|
+
defaultStyles: A
|
|
1402
|
+
}),
|
|
1403
|
+
...w({
|
|
1404
|
+
key: "--bklcf",
|
|
1405
|
+
value: R.colors.flat,
|
|
1406
|
+
defaultStyles: A
|
|
1407
|
+
}),
|
|
1408
|
+
...w({
|
|
1409
|
+
key: "--bklci",
|
|
1410
|
+
value: R.colors.text,
|
|
1411
|
+
defaultStyles: A
|
|
1412
|
+
}),
|
|
1413
|
+
// Grid properties - only inject if different from defaults
|
|
1414
|
+
...B !== "repeat(auto-fit, minmax(100px, 1fr))" && { "--bklgtc": B },
|
|
1415
|
+
...W !== "auto" && { "--bklgtr": W },
|
|
1416
|
+
...O && { "--bklji": O },
|
|
1417
|
+
...o && { "--bklai": o },
|
|
1418
|
+
...b && { "--bkljc": b },
|
|
1419
|
+
...n && { "--bklac": n },
|
|
1420
|
+
// Include gap styles
|
|
1421
|
+
...K
|
|
1196
1422
|
},
|
|
1197
|
-
|
|
1198
|
-
)
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1423
|
+
j
|
|
1424
|
+
);
|
|
1425
|
+
}, [
|
|
1426
|
+
B,
|
|
1427
|
+
W,
|
|
1428
|
+
O,
|
|
1429
|
+
o,
|
|
1430
|
+
b,
|
|
1431
|
+
n,
|
|
1432
|
+
g,
|
|
1433
|
+
m,
|
|
1434
|
+
R.colors,
|
|
1435
|
+
A,
|
|
1436
|
+
j,
|
|
1437
|
+
K
|
|
1438
|
+
]);
|
|
1439
|
+
return /* @__PURE__ */ S.jsx(
|
|
1440
|
+
Me,
|
|
1441
|
+
{
|
|
1442
|
+
spacer: { variant: T ?? "line" },
|
|
1443
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1444
|
+
Oe,
|
|
1445
|
+
{
|
|
1446
|
+
ref: D,
|
|
1447
|
+
className: I ? qe.v : "",
|
|
1448
|
+
block: [y.top, y.bottom],
|
|
1449
|
+
...k ? { indicatorNode: k } : {},
|
|
1450
|
+
inline: [y.left, y.right],
|
|
1451
|
+
debugging: G,
|
|
1452
|
+
width: g,
|
|
1453
|
+
height: m,
|
|
1454
|
+
ssrMode: V,
|
|
1455
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1456
|
+
"div",
|
|
1457
|
+
{
|
|
1458
|
+
"data-testid": "layout",
|
|
1459
|
+
className: ne(s, qe.lay),
|
|
1460
|
+
style: J,
|
|
1461
|
+
...$ && Object.keys($).length > 0 ? Object.fromEntries(
|
|
1462
|
+
Object.entries($).filter(([_]) => _ !== "ssrMode")
|
|
1463
|
+
) : {},
|
|
1464
|
+
children: r
|
|
1465
|
+
}
|
|
1466
|
+
)
|
|
1467
|
+
}
|
|
1468
|
+
)
|
|
1469
|
+
}
|
|
1470
|
+
);
|
|
1471
|
+
}), Xt = "box_rDCRX", Jt = "v_0MMHD", Je = {
|
|
1472
|
+
box: Xt,
|
|
1473
|
+
v: Jt
|
|
1474
|
+
}, Zt = (e, n) => ({
|
|
1475
|
+
"--bkxw": "fit-content",
|
|
1476
|
+
"--bkxh": "fit-content",
|
|
1477
|
+
"--bkxb": `${e}px`,
|
|
1478
|
+
"--bkxcl": n
|
|
1479
|
+
}), Kt = ({
|
|
1480
|
+
width: e,
|
|
1481
|
+
height: n,
|
|
1482
|
+
base: o,
|
|
1483
|
+
lineColor: r,
|
|
1484
|
+
defaultStyles: s
|
|
1485
|
+
}) => {
|
|
1486
|
+
const a = H(e || "fit-content"), i = H(n || "fit-content"), l = ["--bkxw", "--bkxh"];
|
|
1487
|
+
return {
|
|
1488
|
+
...w({
|
|
1489
|
+
key: "--bkxw",
|
|
1490
|
+
value: a,
|
|
1491
|
+
defaultStyles: s,
|
|
1492
|
+
skipDimensions: { fitContent: l }
|
|
1493
|
+
}),
|
|
1494
|
+
...w({
|
|
1495
|
+
key: "--bkxh",
|
|
1496
|
+
value: i,
|
|
1497
|
+
defaultStyles: s,
|
|
1498
|
+
skipDimensions: { fitContent: l }
|
|
1499
|
+
}),
|
|
1500
|
+
...w({
|
|
1501
|
+
key: "--bkxb",
|
|
1502
|
+
value: `${o}px`,
|
|
1503
|
+
defaultStyles: s
|
|
1504
|
+
}),
|
|
1505
|
+
...w({
|
|
1506
|
+
key: "--bkxcl",
|
|
1507
|
+
value: r,
|
|
1508
|
+
defaultStyles: s
|
|
1509
|
+
})
|
|
1510
|
+
};
|
|
1511
|
+
}, Rn = c.memo(
|
|
1512
|
+
c.forwardRef(function({
|
|
1230
1513
|
children: n,
|
|
1231
|
-
snapping:
|
|
1232
|
-
debugging:
|
|
1233
|
-
className:
|
|
1234
|
-
colSpan:
|
|
1235
|
-
rowSpan:
|
|
1236
|
-
span:
|
|
1237
|
-
width:
|
|
1238
|
-
height:
|
|
1239
|
-
style:
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1514
|
+
snapping: o = "clamp",
|
|
1515
|
+
debugging: r,
|
|
1516
|
+
className: s,
|
|
1517
|
+
colSpan: a,
|
|
1518
|
+
rowSpan: i,
|
|
1519
|
+
span: l,
|
|
1520
|
+
width: u,
|
|
1521
|
+
height: m,
|
|
1522
|
+
style: k,
|
|
1523
|
+
ssrMode: b = !1,
|
|
1524
|
+
...O
|
|
1525
|
+
}, x) {
|
|
1526
|
+
const h = se("box"), { isShown: j, debugging: T } = le(r, h.debugging), [g, V] = c.useState(!1);
|
|
1527
|
+
c.useEffect(() => {
|
|
1528
|
+
V(!0);
|
|
1529
|
+
}, []);
|
|
1530
|
+
const $ = c.useRef(null), { top: R, bottom: I, left: G, right: p } = ie(O), M = pe($, {
|
|
1243
1531
|
base: h.base,
|
|
1244
|
-
snapping:
|
|
1245
|
-
spacing: { top:
|
|
1246
|
-
warnOnMisalignment:
|
|
1247
|
-
}),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1532
|
+
snapping: o,
|
|
1533
|
+
spacing: { top: R, bottom: I, left: G, right: p },
|
|
1534
|
+
warnOnMisalignment: T !== "none"
|
|
1535
|
+
}), D = {
|
|
1536
|
+
padding: {
|
|
1537
|
+
top: R || 0,
|
|
1538
|
+
right: p || 0,
|
|
1539
|
+
bottom: I || 0,
|
|
1540
|
+
left: G || 0
|
|
1541
|
+
}
|
|
1542
|
+
}, { padding: E } = re(
|
|
1543
|
+
g && !b,
|
|
1544
|
+
D,
|
|
1545
|
+
M
|
|
1546
|
+
), L = c.useMemo(
|
|
1547
|
+
() => pt(l, a, i),
|
|
1548
|
+
[a, i, l]
|
|
1549
|
+
), z = c.useMemo(
|
|
1550
|
+
() => Zt(h.base, h.colors.line),
|
|
1551
|
+
[h.base, h.colors.line]
|
|
1552
|
+
), y = c.useMemo(
|
|
1553
|
+
() => {
|
|
1554
|
+
const B = Kt({
|
|
1555
|
+
width: u,
|
|
1556
|
+
height: m,
|
|
1557
|
+
base: h.base,
|
|
1558
|
+
lineColor: h.colors.line,
|
|
1559
|
+
defaultStyles: z
|
|
1560
|
+
});
|
|
1561
|
+
return oe(B, k);
|
|
1562
|
+
},
|
|
1563
|
+
[h.base, h.colors.line, u, m, z, k]
|
|
1258
1564
|
);
|
|
1259
|
-
return /* @__PURE__ */
|
|
1565
|
+
return /* @__PURE__ */ S.jsx(
|
|
1260
1566
|
"div",
|
|
1261
1567
|
{
|
|
1262
|
-
ref:
|
|
1568
|
+
ref: tt(x, $),
|
|
1263
1569
|
"data-testid": "box",
|
|
1264
|
-
className:
|
|
1265
|
-
style:
|
|
1266
|
-
children: /* @__PURE__ */
|
|
1267
|
-
|
|
1570
|
+
className: ne(Je.box, j && Je.v, s),
|
|
1571
|
+
style: oe(y, L),
|
|
1572
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1573
|
+
Me,
|
|
1268
1574
|
{
|
|
1269
1575
|
base: 1,
|
|
1270
|
-
spacer: {
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
flat: "var(--bk-box-color-flat-theme)",
|
|
1274
|
-
line: "var(--bk-box-color-line-theme)",
|
|
1275
|
-
indice: "var(--bk-box-color-indice-theme)"
|
|
1276
|
-
}
|
|
1277
|
-
},
|
|
1278
|
-
children: /* @__PURE__ */ R.jsx(
|
|
1279
|
-
Se,
|
|
1576
|
+
spacer: { variant: "flat" },
|
|
1577
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1578
|
+
Oe,
|
|
1280
1579
|
{
|
|
1281
|
-
block: [
|
|
1282
|
-
inline: [
|
|
1283
|
-
width:
|
|
1284
|
-
height:
|
|
1285
|
-
debugging:
|
|
1580
|
+
block: [E.top, E.bottom],
|
|
1581
|
+
inline: [E.left, E.right],
|
|
1582
|
+
width: "fit-content",
|
|
1583
|
+
height: m,
|
|
1584
|
+
debugging: T,
|
|
1585
|
+
ssrMode: b,
|
|
1286
1586
|
children: n
|
|
1287
1587
|
}
|
|
1288
1588
|
)
|
|
@@ -1291,302 +1591,567 @@ const tn = E.memo(
|
|
|
1291
1591
|
}
|
|
1292
1592
|
);
|
|
1293
1593
|
})
|
|
1294
|
-
),
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1594
|
+
), Qt = "stk_l-58l", en = "v_-k3qw", Ze = {
|
|
1595
|
+
stk: Qt,
|
|
1596
|
+
v: en
|
|
1597
|
+
}, tn = {
|
|
1598
|
+
x: "row",
|
|
1599
|
+
y: "column",
|
|
1600
|
+
"-x": "row-reverse",
|
|
1601
|
+
"-y": "column-reverse"
|
|
1602
|
+
}, nn = (e) => ({
|
|
1603
|
+
"--bkkw": "auto",
|
|
1604
|
+
"--bkkh": "auto",
|
|
1605
|
+
"--bkkcl": e.line,
|
|
1606
|
+
"--bkkcf": e.flat,
|
|
1607
|
+
"--bkkci": e.text
|
|
1608
|
+
}), on = (e, n, o) => ({
|
|
1609
|
+
rowGap: o !== void 0 ? o : e,
|
|
1610
|
+
columnGap: o !== void 0 ? o : n
|
|
1611
|
+
}), _n = c.memo(function({
|
|
1612
|
+
align: n = "flex-start",
|
|
1613
|
+
children: o,
|
|
1614
|
+
className: r,
|
|
1615
|
+
columnGap: s,
|
|
1616
|
+
debugging: a,
|
|
1617
|
+
direction: i = "row",
|
|
1618
|
+
gap: l,
|
|
1619
|
+
height: u,
|
|
1620
|
+
indicatorNode: m,
|
|
1621
|
+
justify: k = "flex-start",
|
|
1622
|
+
rowGap: b,
|
|
1623
|
+
style: O,
|
|
1624
|
+
variant: x,
|
|
1625
|
+
width: h,
|
|
1626
|
+
ssrMode: j = !1,
|
|
1627
|
+
...T
|
|
1313
1628
|
}) {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1629
|
+
const g = se("stack"), { isShown: V, debugging: $ } = le(a, g.debugging), [R, I] = c.useState(!1);
|
|
1630
|
+
c.useEffect(() => {
|
|
1631
|
+
I(!0);
|
|
1632
|
+
}, []);
|
|
1633
|
+
const G = c.useRef(null), { top: p, right: M, bottom: D, left: E } = ie({
|
|
1634
|
+
...T
|
|
1635
|
+
}), L = pe(G, {
|
|
1636
|
+
base: g.base,
|
|
1316
1637
|
snapping: "height",
|
|
1317
|
-
spacing:
|
|
1318
|
-
warnOnMisalignment:
|
|
1319
|
-
}),
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1638
|
+
spacing: { top: p, right: M, bottom: D, left: E },
|
|
1639
|
+
warnOnMisalignment: $ !== "none"
|
|
1640
|
+
}), z = {
|
|
1641
|
+
padding: {
|
|
1642
|
+
top: p || 0,
|
|
1643
|
+
right: M || 0,
|
|
1644
|
+
bottom: D || 0,
|
|
1645
|
+
left: E || 0
|
|
1646
|
+
}
|
|
1647
|
+
}, { padding: y } = re(
|
|
1648
|
+
R && !j,
|
|
1649
|
+
z,
|
|
1650
|
+
L
|
|
1651
|
+
), B = c.useMemo(() => {
|
|
1652
|
+
const J = b !== void 0 ? Number(b) : void 0, _ = s !== void 0 ? Number(s) : void 0, U = l !== void 0 ? Number(l) : void 0;
|
|
1653
|
+
return on(J, _, U);
|
|
1654
|
+
}, [b, s, l]), W = c.useMemo(
|
|
1655
|
+
() => nn(g.colors),
|
|
1656
|
+
[g.colors]
|
|
1657
|
+
), A = c.useMemo(() => {
|
|
1658
|
+
const J = H(h || "auto"), _ = H(u || "auto"), U = tn[i] || i, P = ["--bkkw", "--bkkh"], Z = {
|
|
1659
|
+
...w({
|
|
1660
|
+
key: "--bkkw",
|
|
1661
|
+
value: J,
|
|
1662
|
+
defaultStyles: W,
|
|
1663
|
+
skipDimensions: { auto: P }
|
|
1664
|
+
}),
|
|
1665
|
+
...w({
|
|
1666
|
+
key: "--bkkh",
|
|
1667
|
+
value: _,
|
|
1668
|
+
defaultStyles: W,
|
|
1669
|
+
skipDimensions: { auto: P }
|
|
1670
|
+
}),
|
|
1671
|
+
...w({
|
|
1672
|
+
key: "--bkkcl",
|
|
1673
|
+
value: g.colors.line,
|
|
1674
|
+
defaultStyles: W
|
|
1675
|
+
}),
|
|
1676
|
+
...w({
|
|
1677
|
+
key: "--bkkcf",
|
|
1678
|
+
value: g.colors.flat,
|
|
1679
|
+
defaultStyles: W
|
|
1680
|
+
}),
|
|
1681
|
+
...w({
|
|
1682
|
+
key: "--bkkci",
|
|
1683
|
+
value: g.colors.text,
|
|
1684
|
+
defaultStyles: W
|
|
1685
|
+
})
|
|
1686
|
+
};
|
|
1687
|
+
return oe({
|
|
1688
|
+
flexDirection: U,
|
|
1689
|
+
justifyContent: k,
|
|
1328
1690
|
alignItems: n,
|
|
1329
|
-
width:
|
|
1330
|
-
height:
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1691
|
+
width: h,
|
|
1692
|
+
height: u
|
|
1693
|
+
}, B, Z, O);
|
|
1694
|
+
}, [
|
|
1695
|
+
i,
|
|
1696
|
+
k,
|
|
1697
|
+
n,
|
|
1698
|
+
h,
|
|
1699
|
+
u,
|
|
1700
|
+
g.colors.line,
|
|
1701
|
+
g.colors.flat,
|
|
1702
|
+
g.colors.text,
|
|
1703
|
+
W,
|
|
1704
|
+
B,
|
|
1705
|
+
O
|
|
1706
|
+
]), K = $ === "none" ? {
|
|
1707
|
+
...A,
|
|
1708
|
+
paddingBlock: `${y.top}px ${y.bottom}px`,
|
|
1709
|
+
paddingInline: `${y.left}px ${y.right}px`
|
|
1710
|
+
} : A;
|
|
1711
|
+
return /* @__PURE__ */ S.jsx(
|
|
1712
|
+
Me,
|
|
1344
1713
|
{
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
inline: [w.left, w.right],
|
|
1349
|
-
debugging: C,
|
|
1350
|
-
indicatorNode: l,
|
|
1351
|
-
width: T,
|
|
1352
|
-
height: d,
|
|
1353
|
-
children: /* @__PURE__ */ R.jsx(
|
|
1354
|
-
"div",
|
|
1714
|
+
spacer: { variant: x ?? "line" },
|
|
1715
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1716
|
+
Oe,
|
|
1355
1717
|
{
|
|
1356
|
-
|
|
1357
|
-
className:
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1718
|
+
ref: G,
|
|
1719
|
+
className: V ? Ze.v : "",
|
|
1720
|
+
block: [y.top, y.bottom],
|
|
1721
|
+
inline: [y.left, y.right],
|
|
1722
|
+
debugging: $,
|
|
1723
|
+
indicatorNode: m,
|
|
1724
|
+
width: h,
|
|
1725
|
+
height: u,
|
|
1726
|
+
ssrMode: j,
|
|
1727
|
+
children: /* @__PURE__ */ S.jsx(
|
|
1728
|
+
"div",
|
|
1729
|
+
{
|
|
1730
|
+
"data-testid": "stack",
|
|
1731
|
+
className: ne(r, Ze.stk),
|
|
1732
|
+
style: K,
|
|
1733
|
+
...T,
|
|
1734
|
+
children: o
|
|
1735
|
+
}
|
|
1736
|
+
)
|
|
1365
1737
|
}
|
|
1366
1738
|
)
|
|
1367
1739
|
}
|
|
1368
|
-
)
|
|
1369
|
-
}),
|
|
1370
|
-
|
|
1371
|
-
line:
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1740
|
+
);
|
|
1741
|
+
}), rn = "gde_-Naxo", sn = "line_-VS-e", an = "cols_8lD6D", ln = "col_rlbsL", ue = {
|
|
1742
|
+
gde: rn,
|
|
1743
|
+
line: sn,
|
|
1744
|
+
cols: an,
|
|
1745
|
+
col: ln
|
|
1746
|
+
}, cn = (e) => {
|
|
1747
|
+
const { variant: n, base: o, gap: r, columns: s, columnWidth: a } = e;
|
|
1748
|
+
return {
|
|
1749
|
+
line: {
|
|
1750
|
+
variant: "line",
|
|
1751
|
+
gap: r - 1,
|
|
1752
|
+
base: o
|
|
1753
|
+
},
|
|
1754
|
+
auto: a ? {
|
|
1755
|
+
variant: "auto",
|
|
1756
|
+
columnWidth: a,
|
|
1757
|
+
gap: r,
|
|
1758
|
+
base: o
|
|
1759
|
+
} : null,
|
|
1760
|
+
pattern: Array.isArray(s) ? {
|
|
1761
|
+
variant: "pattern",
|
|
1762
|
+
columns: s,
|
|
1763
|
+
gap: r,
|
|
1764
|
+
base: o
|
|
1765
|
+
} : null,
|
|
1766
|
+
fixed: typeof s == "number" ? {
|
|
1767
|
+
variant: "fixed",
|
|
1768
|
+
columns: s,
|
|
1769
|
+
columnWidth: a,
|
|
1770
|
+
gap: r,
|
|
1771
|
+
base: o
|
|
1772
|
+
} : null
|
|
1773
|
+
}[n] ?? {
|
|
1774
|
+
variant: "line",
|
|
1775
|
+
gap: r - 1,
|
|
1776
|
+
base: o
|
|
1777
|
+
};
|
|
1778
|
+
}, un = (e, n) => ({
|
|
1779
|
+
"--bkgw": "auto",
|
|
1780
|
+
"--bkgh": "auto",
|
|
1781
|
+
"--bkgmw": "none",
|
|
1782
|
+
"--bkgcw": "60px",
|
|
1783
|
+
"--bkggw": "24px",
|
|
1784
|
+
"--bkgc": "12",
|
|
1785
|
+
"--bkgb": `${e}px`,
|
|
1786
|
+
"--bkgcl": n
|
|
1787
|
+
}), jn = c.memo(function({
|
|
1375
1788
|
className: n,
|
|
1376
|
-
debugging:
|
|
1377
|
-
style:
|
|
1378
|
-
variant:
|
|
1379
|
-
align:
|
|
1380
|
-
gap:
|
|
1381
|
-
height:
|
|
1382
|
-
width:
|
|
1383
|
-
columns:
|
|
1384
|
-
columnWidth:
|
|
1385
|
-
|
|
1789
|
+
debugging: o,
|
|
1790
|
+
style: r,
|
|
1791
|
+
variant: s,
|
|
1792
|
+
align: a = "start",
|
|
1793
|
+
gap: i,
|
|
1794
|
+
height: l,
|
|
1795
|
+
width: u,
|
|
1796
|
+
columns: m,
|
|
1797
|
+
columnWidth: k,
|
|
1798
|
+
gutterWidth: b,
|
|
1799
|
+
maxWidth: O,
|
|
1800
|
+
color: x,
|
|
1801
|
+
children: h,
|
|
1802
|
+
ssrMode: j = !1,
|
|
1803
|
+
...T
|
|
1386
1804
|
}) {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
base: b.base
|
|
1406
|
-
} : null,
|
|
1407
|
-
fixed: typeof l == "number" ? {
|
|
1408
|
-
variant: "fixed",
|
|
1409
|
-
columns: l,
|
|
1410
|
-
columnWidth: g,
|
|
1411
|
-
gap: N,
|
|
1412
|
-
base: b.base
|
|
1413
|
-
} : null
|
|
1414
|
-
}[h] ?? {
|
|
1415
|
-
variant: "line",
|
|
1416
|
-
gap: N - 1,
|
|
1417
|
-
base: b.base
|
|
1418
|
-
};
|
|
1419
|
-
}, [a, b.base, g, l, h]), {
|
|
1420
|
-
template: $,
|
|
1421
|
-
columnsCount: A,
|
|
1805
|
+
const g = se("guide"), V = s ?? g.variant, $ = typeof i == "number" ? i : g.base, [R, I] = c.useState(!1);
|
|
1806
|
+
c.useEffect(() => {
|
|
1807
|
+
I(!0);
|
|
1808
|
+
}, []);
|
|
1809
|
+
const G = c.useRef(null), p = ve(G), M = re(
|
|
1810
|
+
R && !j,
|
|
1811
|
+
{ width: 1024, height: 768, refresh: () => {
|
|
1812
|
+
} },
|
|
1813
|
+
p
|
|
1814
|
+
), { width: D, height: E } = M, { isShown: L } = le(o, g.debugging), z = c.useMemo(() => cn({
|
|
1815
|
+
variant: V,
|
|
1816
|
+
base: g.base,
|
|
1817
|
+
gap: $,
|
|
1818
|
+
columns: m,
|
|
1819
|
+
columnWidth: k
|
|
1820
|
+
}), [V, g.base, $, m, k]), {
|
|
1821
|
+
template: y,
|
|
1822
|
+
columnsCount: B,
|
|
1422
1823
|
calculatedGap: W
|
|
1423
|
-
} =
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1824
|
+
} = Et(G, z), A = c.useMemo(
|
|
1825
|
+
() => un(g.base, g.colors.line),
|
|
1826
|
+
[g.base, g.colors.line]
|
|
1827
|
+
), K = c.useMemo(() => {
|
|
1828
|
+
const J = H(u || D || "auto"), _ = H(l || E || "auto"), U = H(O || "none"), P = H(k || "60px"), Z = H(b || "24px"), q = ["--bkgw", "--bkgh"], X = {
|
|
1829
|
+
...w({
|
|
1830
|
+
key: "--bkgw",
|
|
1831
|
+
value: J,
|
|
1832
|
+
defaultStyles: A,
|
|
1833
|
+
skipDimensions: { auto: q }
|
|
1834
|
+
}),
|
|
1835
|
+
...w({
|
|
1836
|
+
key: "--bkgh",
|
|
1837
|
+
value: _,
|
|
1838
|
+
defaultStyles: A,
|
|
1839
|
+
skipDimensions: { auto: q }
|
|
1840
|
+
}),
|
|
1841
|
+
...w({
|
|
1842
|
+
key: "--bkgmw",
|
|
1843
|
+
value: U,
|
|
1844
|
+
defaultStyles: A
|
|
1845
|
+
}),
|
|
1846
|
+
...w({
|
|
1847
|
+
key: "--bkgcw",
|
|
1848
|
+
value: P,
|
|
1849
|
+
defaultStyles: A
|
|
1850
|
+
}),
|
|
1851
|
+
...w({
|
|
1852
|
+
key: "--bkggw",
|
|
1853
|
+
value: Z,
|
|
1854
|
+
defaultStyles: A
|
|
1855
|
+
}),
|
|
1856
|
+
...w({
|
|
1857
|
+
key: "--bkgc",
|
|
1858
|
+
value: `${B}`,
|
|
1859
|
+
defaultStyles: A
|
|
1860
|
+
}),
|
|
1861
|
+
...w({
|
|
1862
|
+
key: "--bkgb",
|
|
1863
|
+
value: `${g.base}px`,
|
|
1864
|
+
defaultStyles: A
|
|
1865
|
+
}),
|
|
1866
|
+
...w({
|
|
1867
|
+
key: "--bkgcl",
|
|
1868
|
+
value: x ?? g.colors.line,
|
|
1869
|
+
defaultStyles: A
|
|
1870
|
+
}),
|
|
1871
|
+
// Add the CSS variables expected by tests
|
|
1872
|
+
"--bkgg": `${W}px`,
|
|
1873
|
+
...y && y !== "none" ? { "--bkgt": y } : {},
|
|
1874
|
+
// Add grid template if available
|
|
1875
|
+
...y && y !== "none" ? { gridTemplateColumns: y } : {},
|
|
1876
|
+
// Add gap if calculated
|
|
1877
|
+
...W ? { gap: `${W}px` } : {},
|
|
1878
|
+
// Add justifyContent based on align
|
|
1879
|
+
justifyContent: a
|
|
1434
1880
|
};
|
|
1435
|
-
return
|
|
1881
|
+
return oe(X, r);
|
|
1436
1882
|
}, [
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
b.colors.pattern,
|
|
1441
|
-
C,
|
|
1442
|
-
_,
|
|
1443
|
-
w,
|
|
1883
|
+
u,
|
|
1884
|
+
l,
|
|
1885
|
+
O,
|
|
1444
1886
|
k,
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1887
|
+
b,
|
|
1888
|
+
B,
|
|
1889
|
+
x,
|
|
1890
|
+
y,
|
|
1891
|
+
W,
|
|
1892
|
+
D,
|
|
1893
|
+
E,
|
|
1894
|
+
g.base,
|
|
1895
|
+
g.colors.line,
|
|
1896
|
+
A,
|
|
1897
|
+
r,
|
|
1898
|
+
a
|
|
1451
1899
|
]);
|
|
1452
|
-
return /* @__PURE__ */
|
|
1900
|
+
return /* @__PURE__ */ S.jsxs(
|
|
1453
1901
|
"div",
|
|
1454
1902
|
{
|
|
1455
|
-
ref:
|
|
1456
|
-
|
|
1457
|
-
|
|
1903
|
+
ref: G,
|
|
1904
|
+
"data-testid": "guide",
|
|
1905
|
+
className: ne(
|
|
1906
|
+
ue.gde,
|
|
1458
1907
|
n,
|
|
1459
|
-
|
|
1460
|
-
|
|
1908
|
+
L ? ue.v : ue.h,
|
|
1909
|
+
V === "line" && ue.line
|
|
1461
1910
|
),
|
|
1462
|
-
"data-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1911
|
+
"data-variant": V,
|
|
1912
|
+
style: K,
|
|
1913
|
+
...T,
|
|
1914
|
+
children: [
|
|
1915
|
+
L && /* @__PURE__ */ S.jsx("div", { className: ue.cols, "data-variant": V, children: Array.from({ length: B }, (J, _) => {
|
|
1916
|
+
const U = g.colors[V] ?? g.colors.line;
|
|
1917
|
+
return /* @__PURE__ */ S.jsx(
|
|
1918
|
+
"div",
|
|
1919
|
+
{
|
|
1920
|
+
className: ue.col,
|
|
1921
|
+
"data-column-index": _,
|
|
1922
|
+
"data-variant": V,
|
|
1923
|
+
style: { backgroundColor: U }
|
|
1924
|
+
},
|
|
1925
|
+
_
|
|
1926
|
+
);
|
|
1927
|
+
}) }),
|
|
1928
|
+
h
|
|
1929
|
+
]
|
|
1479
1930
|
}
|
|
1480
1931
|
);
|
|
1481
|
-
}),
|
|
1482
|
-
const n = [...Object.keys(
|
|
1483
|
-
return typeof
|
|
1484
|
-
},
|
|
1485
|
-
|
|
1486
|
-
|
|
1932
|
+
}), fn = /^\d*\.?\d+(?:fr|px|%|em|rem|vh|vw|vmin|vmax|pt|pc|in|cm|mm)$/, dn = (e) => typeof e == "number" ? Number.isFinite(e) && e >= 0 : typeof e != "string" ? !1 : e === "auto" || e === "100%" || fn.test(e), bn = (e) => Array.isArray(e) && e.length > 0 && e.every(dn), Mn = (e) => {
|
|
1933
|
+
const n = [...Object.keys(Ce), ...Qe];
|
|
1934
|
+
return typeof e == "number" || typeof e == "string" && n.some((o) => e.endsWith(o));
|
|
1935
|
+
}, On = (e) => typeof e == "string" && vn.includes(e), Te = (e) => typeof e == "object" && e !== null, Tn = (e) => Te(e) && e.variant === "line", An = (e) => Te(e) && "columns" in e && !("variant" in e), $n = (e) => Te(e) && "columnWidth" in e && !("variant" in e) && !("columns" in e), mn = "bas_e-SXr", gn = "row_q-FZb", he = {
|
|
1936
|
+
bas: mn,
|
|
1937
|
+
row: gn
|
|
1938
|
+
}, hn = (e, n, o) => ({
|
|
1939
|
+
"--bkbw": "100%",
|
|
1940
|
+
"--bkbh": "100%",
|
|
1941
|
+
"--bkbb": `${e}px`,
|
|
1942
|
+
"--bkbcl": n,
|
|
1943
|
+
"--bkbcf": o
|
|
1944
|
+
}), kn = (e) => {
|
|
1945
|
+
const { index: n, base: o, variant: r, chosenColor: s, lineColor: a, flatColor: i } = e;
|
|
1946
|
+
return {
|
|
1947
|
+
"--bkrt": n === 0 ? "0px" : `${n * o}px`,
|
|
1948
|
+
"--bkrh": r === "line" ? "1px" : `${o}px`,
|
|
1949
|
+
"--bkbc": s || (r === "line" ? a : i)
|
|
1950
|
+
};
|
|
1951
|
+
}, Nn = c.memo(function({
|
|
1487
1952
|
className: n,
|
|
1488
|
-
debugging:
|
|
1489
|
-
style:
|
|
1490
|
-
variant:
|
|
1491
|
-
height:
|
|
1492
|
-
width:
|
|
1493
|
-
base:
|
|
1494
|
-
|
|
1953
|
+
debugging: o,
|
|
1954
|
+
style: r,
|
|
1955
|
+
variant: s,
|
|
1956
|
+
height: a,
|
|
1957
|
+
width: i,
|
|
1958
|
+
base: l,
|
|
1959
|
+
color: u,
|
|
1960
|
+
ssrMode: m = !1,
|
|
1961
|
+
...k
|
|
1495
1962
|
}) {
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1963
|
+
const b = se("baseline"), O = s ?? b.variant, x = l ?? b.base, { isShown: h } = le(o, b.debugging), j = c.useRef(null), [T, g] = c.useState(!1), V = ve(j);
|
|
1964
|
+
c.useEffect(() => {
|
|
1965
|
+
g(!0);
|
|
1966
|
+
}, []);
|
|
1967
|
+
const $ = re(
|
|
1968
|
+
T,
|
|
1969
|
+
xt,
|
|
1970
|
+
V
|
|
1971
|
+
), { width: R, height: I } = $, [G, p] = c.useMemo(() => et(
|
|
1972
|
+
[i, a],
|
|
1973
|
+
[R, I]
|
|
1974
|
+
), [i, a, R, I]), { top: M, right: D, bottom: E, left: L } = c.useMemo(
|
|
1975
|
+
() => ie(k),
|
|
1976
|
+
[k]
|
|
1977
|
+
), z = c.useMemo(() => {
|
|
1978
|
+
const Z = [M, D, E, L].map((q) => q ? `${q}px` : "0").join(" ");
|
|
1979
|
+
return Z !== "0 0 0 0" ? Z : void 0;
|
|
1980
|
+
}, [M, D, E, L]), y = c.useMemo(() => mt({
|
|
1981
|
+
height: p,
|
|
1982
|
+
top: M,
|
|
1983
|
+
bottom: E,
|
|
1984
|
+
base: x
|
|
1985
|
+
}), [p, M, E, x]), B = St({
|
|
1986
|
+
totalLines: y,
|
|
1504
1987
|
lineHeight: x,
|
|
1505
|
-
containerRef:
|
|
1988
|
+
containerRef: j,
|
|
1506
1989
|
buffer: 160
|
|
1507
|
-
}), W =
|
|
1508
|
-
|
|
1990
|
+
}), W = {
|
|
1991
|
+
start: 0,
|
|
1992
|
+
end: Math.min(10, y)
|
|
1993
|
+
}, { start: A, end: K } = re(
|
|
1994
|
+
T && !m,
|
|
1995
|
+
W,
|
|
1996
|
+
B
|
|
1997
|
+
), J = u || (O === "line" ? b.colors.line : b.colors.flat), _ = c.useMemo(
|
|
1998
|
+
() => hn(
|
|
1999
|
+
x,
|
|
2000
|
+
b.colors.line,
|
|
2001
|
+
b.colors.flat
|
|
2002
|
+
),
|
|
2003
|
+
[x, b.colors.line, b.colors.flat]
|
|
2004
|
+
), U = c.useMemo(() => {
|
|
2005
|
+
const Z = H(i || "100%"), q = H(a || "100%"), X = ["--bkbw", "--bkbh"];
|
|
2006
|
+
return oe(
|
|
1509
2007
|
{
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
2008
|
+
...w({
|
|
2009
|
+
key: "--bkbw",
|
|
2010
|
+
value: Z,
|
|
2011
|
+
defaultStyles: _,
|
|
2012
|
+
skipDimensions: { fullSize: X }
|
|
2013
|
+
}),
|
|
2014
|
+
...w({
|
|
2015
|
+
key: "--bkbh",
|
|
2016
|
+
value: q,
|
|
2017
|
+
defaultStyles: _,
|
|
2018
|
+
skipDimensions: { fullSize: X }
|
|
2019
|
+
}),
|
|
2020
|
+
...w({
|
|
2021
|
+
key: "--bkbb",
|
|
2022
|
+
value: `${x}px`,
|
|
2023
|
+
defaultStyles: _
|
|
2024
|
+
}),
|
|
2025
|
+
...w({
|
|
2026
|
+
key: "--bkbcl",
|
|
2027
|
+
value: u || b.colors.line,
|
|
2028
|
+
defaultStyles: _
|
|
2029
|
+
}),
|
|
2030
|
+
...w({
|
|
2031
|
+
key: "--bkbcf",
|
|
2032
|
+
value: u || b.colors.flat,
|
|
2033
|
+
defaultStyles: _
|
|
2034
|
+
}),
|
|
2035
|
+
...z && { padding: z }
|
|
1517
2036
|
},
|
|
1518
|
-
|
|
1519
|
-
)
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
2037
|
+
r
|
|
2038
|
+
);
|
|
2039
|
+
}, [
|
|
2040
|
+
i,
|
|
2041
|
+
a,
|
|
2042
|
+
x,
|
|
2043
|
+
u,
|
|
2044
|
+
b.colors.line,
|
|
2045
|
+
b.colors.flat,
|
|
2046
|
+
z,
|
|
2047
|
+
_,
|
|
2048
|
+
r
|
|
2049
|
+
]), P = c.useCallback(
|
|
2050
|
+
(Z) => kn({
|
|
2051
|
+
index: Z,
|
|
2052
|
+
base: x,
|
|
2053
|
+
variant: O,
|
|
2054
|
+
chosenColor: J,
|
|
2055
|
+
lineColor: b.colors.line,
|
|
2056
|
+
flatColor: b.colors.flat
|
|
1529
2057
|
}),
|
|
1530
|
-
[x,
|
|
2058
|
+
[x, O, J, b.colors.line, b.colors.flat]
|
|
1531
2059
|
);
|
|
1532
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ S.jsx(
|
|
1533
2061
|
"div",
|
|
1534
2062
|
{
|
|
1535
|
-
ref:
|
|
2063
|
+
ref: j,
|
|
1536
2064
|
"data-testid": "baseline",
|
|
1537
|
-
className:
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
2065
|
+
className: ne(
|
|
2066
|
+
he.bas,
|
|
2067
|
+
h ? he.v : he.h,
|
|
2068
|
+
n
|
|
2069
|
+
),
|
|
2070
|
+
style: U,
|
|
2071
|
+
...k,
|
|
2072
|
+
children: h && Array.from({ length: K - A }, (Z, q) => {
|
|
2073
|
+
const X = q + A;
|
|
2074
|
+
return /* @__PURE__ */ S.jsx(
|
|
2075
|
+
"div",
|
|
2076
|
+
{
|
|
2077
|
+
className: he.row,
|
|
2078
|
+
"data-row-index": X,
|
|
2079
|
+
style: P(X)
|
|
2080
|
+
},
|
|
2081
|
+
X
|
|
2082
|
+
);
|
|
1543
2083
|
})
|
|
1544
2084
|
}
|
|
1545
2085
|
);
|
|
1546
|
-
}),
|
|
2086
|
+
}), vn = ["start", "center", "end"], Vn = ["line", "flat"];
|
|
1547
2087
|
export {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
2088
|
+
Ce as ABSOLUTE_UNIT_CONVERSIONS,
|
|
2089
|
+
Nn as Baseline,
|
|
2090
|
+
Rn as Box,
|
|
2091
|
+
Me as Config,
|
|
2092
|
+
At as DEFAULT_CONFIG,
|
|
2093
|
+
tn as DIRECTION_AXIS,
|
|
2094
|
+
vn as GRID_ALIGNMENTS,
|
|
2095
|
+
jn as Guide,
|
|
2096
|
+
Cn as Layout,
|
|
2097
|
+
Vn as PADD_VARIANTS,
|
|
2098
|
+
Oe as Padder,
|
|
1558
2099
|
Qe as RELATIVE_UNITS,
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
2100
|
+
xt as SSR_DIMENSIONS,
|
|
2101
|
+
Ht as Spacer,
|
|
2102
|
+
_n as Stack,
|
|
2103
|
+
mt as calculateRowCount,
|
|
2104
|
+
vt as calculateSnappedSpacing,
|
|
2105
|
+
bt as clamp,
|
|
2106
|
+
_e as convertValue,
|
|
2107
|
+
kn as createBaselineRowStyle,
|
|
2108
|
+
Kt as createBoxCustomStyles,
|
|
2109
|
+
En as createCSSVariables,
|
|
2110
|
+
hn as createDefaultBaselineStyles,
|
|
2111
|
+
Zt as createDefaultBoxStyles,
|
|
2112
|
+
un as createDefaultGuideStyles,
|
|
2113
|
+
Ut as createDefaultLayoutStyles,
|
|
2114
|
+
Dt as createDefaultSpacerStyles,
|
|
2115
|
+
nn as createDefaultStackStyles,
|
|
2116
|
+
Lt as createDirectPaddingStyles,
|
|
2117
|
+
cn as createGridConfig,
|
|
2118
|
+
qt as createGridGapStyles,
|
|
2119
|
+
pt as createGridSpanStyles,
|
|
2120
|
+
Bt as createPadderContainerStyles,
|
|
2121
|
+
Pt as createRenderSpacerFn,
|
|
2122
|
+
on as createStackGapStyles,
|
|
2123
|
+
w as createStyleOverride,
|
|
2124
|
+
Sn as debounce,
|
|
2125
|
+
H as formatValue,
|
|
2126
|
+
Wt as generateMeasurements,
|
|
2127
|
+
Xe as getGridTemplate,
|
|
2128
|
+
re as hydratedValue,
|
|
2129
|
+
$n as isAutoCalculatedGuide,
|
|
2130
|
+
On as isGuideAlignment,
|
|
2131
|
+
An as isGuideColumnConfig,
|
|
2132
|
+
Tn as isGuideLineConfig,
|
|
2133
|
+
Mn as isGuideValue,
|
|
2134
|
+
ot as isSSR,
|
|
2135
|
+
dn as isValidGuideColumnValue,
|
|
2136
|
+
bn as isValidGuidePattern,
|
|
2137
|
+
ne as mergeClasses,
|
|
2138
|
+
$t as mergeConfig,
|
|
2139
|
+
tt as mergeRefs,
|
|
2140
|
+
oe as mergeStyles,
|
|
2141
|
+
yn as moduloize,
|
|
2142
|
+
Re as normalizeValue,
|
|
2143
|
+
et as normalizeValuePair,
|
|
2144
|
+
ie as parsePadding,
|
|
2145
|
+
ft as parseUnit,
|
|
2146
|
+
nt as rafThrottle,
|
|
2147
|
+
xn as round,
|
|
2148
|
+
wn as safeClientValue,
|
|
2149
|
+
pe as useBaseline,
|
|
2150
|
+
se as useConfig,
|
|
2151
|
+
le as useDebug,
|
|
2152
|
+
rt as useDefaultConfig,
|
|
2153
|
+
Et as useGuide,
|
|
2154
|
+
ve as useMeasure,
|
|
2155
|
+
St as useVirtual
|
|
1591
2156
|
};
|
|
1592
2157
|
//# sourceMappingURL=index.mjs.map
|