@homlista-devs/ui 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system.cjs.js +20 -15
- package/dist/design-system.cjs.js.map +1 -1
- package/dist/design-system.es.js +873 -853
- package/dist/design-system.es.js.map +1 -1
- package/dist/index.css +38 -0
- package/package.json +1 -1
package/dist/design-system.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as f, Fragment as xe } from "react/jsx-runtime";
|
|
2
|
+
import * as w from "react";
|
|
3
|
+
import Ae, { useEffect as we, forwardRef as qe, createElement as Pe, useState as ae, useMemo as ke, useCallback as Ve, useContext as wt } from "react";
|
|
4
4
|
import { useUnit as kt } from "effector-react";
|
|
5
5
|
import { createEvent as Re, createStore as Nt } from "effector";
|
|
6
6
|
function Fe(e, t) {
|
|
@@ -11,60 +11,60 @@ function Fe(e, t) {
|
|
|
11
11
|
function Ct(...e) {
|
|
12
12
|
return (t) => {
|
|
13
13
|
let r = !1;
|
|
14
|
-
const o = e.map((
|
|
15
|
-
const s = Fe(
|
|
14
|
+
const o = e.map((n) => {
|
|
15
|
+
const s = Fe(n, t);
|
|
16
16
|
return !r && typeof s == "function" && (r = !0), s;
|
|
17
17
|
});
|
|
18
18
|
if (r)
|
|
19
19
|
return () => {
|
|
20
|
-
for (let
|
|
21
|
-
const s = o[
|
|
22
|
-
typeof s == "function" ? s() : Fe(e[
|
|
20
|
+
for (let n = 0; n < o.length; n++) {
|
|
21
|
+
const s = o[n];
|
|
22
|
+
typeof s == "function" ? s() : Fe(e[n], null);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
// @__NO_SIDE_EFFECTS__
|
|
28
28
|
function Mt(e) {
|
|
29
|
-
const t = /* @__PURE__ */ Pt(e), r =
|
|
30
|
-
const { children: s, ...l } = o, i =
|
|
29
|
+
const t = /* @__PURE__ */ Pt(e), r = w.forwardRef((o, n) => {
|
|
30
|
+
const { children: s, ...l } = o, i = w.Children.toArray(s), c = i.find(Et);
|
|
31
31
|
if (c) {
|
|
32
|
-
const d = c.props.children, m = i.map((u) => u === c ?
|
|
33
|
-
return /* @__PURE__ */
|
|
32
|
+
const d = c.props.children, m = i.map((u) => u === c ? w.Children.count(d) > 1 ? w.Children.only(null) : w.isValidElement(d) ? d.props.children : null : u);
|
|
33
|
+
return /* @__PURE__ */ a(t, { ...l, ref: n, children: w.isValidElement(d) ? w.cloneElement(d, void 0, m) : null });
|
|
34
34
|
}
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ a(t, { ...l, ref: n, children: s });
|
|
36
36
|
});
|
|
37
37
|
return r.displayName = `${e}.Slot`, r;
|
|
38
38
|
}
|
|
39
39
|
var St = /* @__PURE__ */ Mt("Slot");
|
|
40
40
|
// @__NO_SIDE_EFFECTS__
|
|
41
41
|
function Pt(e) {
|
|
42
|
-
const t =
|
|
43
|
-
const { children:
|
|
44
|
-
if (
|
|
45
|
-
const l =
|
|
46
|
-
return
|
|
42
|
+
const t = w.forwardRef((r, o) => {
|
|
43
|
+
const { children: n, ...s } = r;
|
|
44
|
+
if (w.isValidElement(n)) {
|
|
45
|
+
const l = At(n), i = zt(s, n.props);
|
|
46
|
+
return n.type !== w.Fragment && (i.ref = o ? Ct(o, l) : l), w.cloneElement(n, i);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return w.Children.count(n) > 1 ? w.Children.only(null) : null;
|
|
49
49
|
});
|
|
50
50
|
return t.displayName = `${e}.SlotClone`, t;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
54
|
-
return
|
|
52
|
+
var It = Symbol("radix.slottable");
|
|
53
|
+
function Et(e) {
|
|
54
|
+
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === It;
|
|
55
55
|
}
|
|
56
56
|
function zt(e, t) {
|
|
57
57
|
const r = { ...t };
|
|
58
58
|
for (const o in t) {
|
|
59
|
-
const
|
|
60
|
-
/^on[A-Z]/.test(o) ?
|
|
59
|
+
const n = e[o], s = t[o];
|
|
60
|
+
/^on[A-Z]/.test(o) ? n && s ? r[o] = (...i) => {
|
|
61
61
|
const c = s(...i);
|
|
62
|
-
return
|
|
63
|
-
} :
|
|
62
|
+
return n(...i), c;
|
|
63
|
+
} : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...s } : o === "className" && (r[o] = [n, s].filter(Boolean).join(" "));
|
|
64
64
|
}
|
|
65
65
|
return { ...e, ...r };
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function At(e) {
|
|
68
68
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
69
69
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
70
70
|
}
|
|
@@ -72,23 +72,23 @@ function Xe(e) {
|
|
|
72
72
|
var t, r, o = "";
|
|
73
73
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
74
74
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
75
|
-
var
|
|
76
|
-
for (t = 0; t <
|
|
75
|
+
var n = e.length;
|
|
76
|
+
for (t = 0; t < n; t++) e[t] && (r = Xe(e[t])) && (o && (o += " "), o += r);
|
|
77
77
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
78
78
|
return o;
|
|
79
79
|
}
|
|
80
80
|
function Ze() {
|
|
81
|
-
for (var e, t, r = 0, o = "",
|
|
81
|
+
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = Xe(e)) && (o && (o += " "), o += t);
|
|
82
82
|
return o;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const Le = "-", Rt = (e) => {
|
|
85
85
|
const t = Tt(e), {
|
|
86
86
|
conflictingClassGroups: r,
|
|
87
87
|
conflictingClassGroupModifiers: o
|
|
88
88
|
} = e;
|
|
89
89
|
return {
|
|
90
90
|
getClassGroupId: (l) => {
|
|
91
|
-
const i = l.split(
|
|
91
|
+
const i = l.split(Le);
|
|
92
92
|
return i[0] === "" && i.length !== 1 && i.shift(), Ke(i, t) || Lt(l);
|
|
93
93
|
},
|
|
94
94
|
getConflictingClassGroupIds: (l, i) => {
|
|
@@ -99,12 +99,12 @@ const Ae = "-", At = (e) => {
|
|
|
99
99
|
}, Ke = (e, t) => {
|
|
100
100
|
if (e.length === 0)
|
|
101
101
|
return t.classGroupId;
|
|
102
|
-
const r = e[0], o = t.nextPart.get(r),
|
|
103
|
-
if (
|
|
104
|
-
return
|
|
102
|
+
const r = e[0], o = t.nextPart.get(r), n = o ? Ke(e.slice(1), o) : void 0;
|
|
103
|
+
if (n)
|
|
104
|
+
return n;
|
|
105
105
|
if (t.validators.length === 0)
|
|
106
106
|
return;
|
|
107
|
-
const s = e.join(
|
|
107
|
+
const s = e.join(Le);
|
|
108
108
|
return t.validators.find(({
|
|
109
109
|
validator: l
|
|
110
110
|
}) => l(s))?.classGroupId;
|
|
@@ -122,34 +122,34 @@ const Ae = "-", At = (e) => {
|
|
|
122
122
|
nextPart: /* @__PURE__ */ new Map(),
|
|
123
123
|
validators: []
|
|
124
124
|
};
|
|
125
|
-
for (const
|
|
126
|
-
|
|
125
|
+
for (const n in r)
|
|
126
|
+
Ie(r[n], o, n, t);
|
|
127
127
|
return o;
|
|
128
|
-
},
|
|
129
|
-
e.forEach((
|
|
130
|
-
if (typeof
|
|
131
|
-
const s =
|
|
128
|
+
}, Ie = (e, t, r, o) => {
|
|
129
|
+
e.forEach((n) => {
|
|
130
|
+
if (typeof n == "string") {
|
|
131
|
+
const s = n === "" ? t : De(t, n);
|
|
132
132
|
s.classGroupId = r;
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
|
-
if (typeof
|
|
136
|
-
if (jt(
|
|
137
|
-
|
|
135
|
+
if (typeof n == "function") {
|
|
136
|
+
if (jt(n)) {
|
|
137
|
+
Ie(n(o), t, r, o);
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
140
|
t.validators.push({
|
|
141
|
-
validator:
|
|
141
|
+
validator: n,
|
|
142
142
|
classGroupId: r
|
|
143
143
|
});
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
Object.entries(
|
|
147
|
-
|
|
146
|
+
Object.entries(n).forEach(([s, l]) => {
|
|
147
|
+
Ie(l, De(t, s), r, o);
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
}, De = (e, t) => {
|
|
151
151
|
let r = e;
|
|
152
|
-
return t.split(
|
|
152
|
+
return t.split(Le).forEach((o) => {
|
|
153
153
|
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
154
154
|
nextPart: /* @__PURE__ */ new Map(),
|
|
155
155
|
validators: []
|
|
@@ -164,7 +164,7 @@ const Ae = "-", At = (e) => {
|
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
167
|
-
const
|
|
167
|
+
const n = (s, l) => {
|
|
168
168
|
r.set(s, l), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
|
|
169
169
|
};
|
|
170
170
|
return {
|
|
@@ -173,45 +173,45 @@ const Ae = "-", At = (e) => {
|
|
|
173
173
|
if (l !== void 0)
|
|
174
174
|
return l;
|
|
175
175
|
if ((l = o.get(s)) !== void 0)
|
|
176
|
-
return
|
|
176
|
+
return n(s, l), l;
|
|
177
177
|
},
|
|
178
178
|
set(s, l) {
|
|
179
|
-
r.has(s) ? r.set(s, l) :
|
|
179
|
+
r.has(s) ? r.set(s, l) : n(s, l);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
}, Ee = "!",
|
|
182
|
+
}, Ee = "!", ze = ":", Vt = ze.length, Ft = (e) => {
|
|
183
183
|
const {
|
|
184
184
|
prefix: t,
|
|
185
185
|
experimentalParseClassName: r
|
|
186
186
|
} = e;
|
|
187
|
-
let o = (
|
|
187
|
+
let o = (n) => {
|
|
188
188
|
const s = [];
|
|
189
189
|
let l = 0, i = 0, c = 0, d;
|
|
190
|
-
for (let
|
|
191
|
-
let N =
|
|
190
|
+
for (let v = 0; v < n.length; v++) {
|
|
191
|
+
let N = n[v];
|
|
192
192
|
if (l === 0 && i === 0) {
|
|
193
|
-
if (N ===
|
|
194
|
-
s.push(
|
|
193
|
+
if (N === ze) {
|
|
194
|
+
s.push(n.slice(c, v)), c = v + Vt;
|
|
195
195
|
continue;
|
|
196
196
|
}
|
|
197
197
|
if (N === "/") {
|
|
198
|
-
d =
|
|
198
|
+
d = v;
|
|
199
199
|
continue;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
N === "[" ? l++ : N === "]" ? l-- : N === "(" ? i++ : N === ")" && i--;
|
|
203
203
|
}
|
|
204
|
-
const m = s.length === 0 ?
|
|
204
|
+
const m = s.length === 0 ? n : n.substring(c), u = _t(m), b = u !== m, S = d && d > c ? d - c : void 0;
|
|
205
205
|
return {
|
|
206
206
|
modifiers: s,
|
|
207
207
|
hasImportantModifier: b,
|
|
208
208
|
baseClassName: u,
|
|
209
|
-
maybePostfixModifierPosition:
|
|
209
|
+
maybePostfixModifierPosition: S
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
if (t) {
|
|
213
|
-
const
|
|
214
|
-
o = (l) => l.startsWith(
|
|
213
|
+
const n = t + ze, s = o;
|
|
214
|
+
o = (l) => l.startsWith(n) ? s(l.substring(n.length)) : {
|
|
215
215
|
isExternal: !0,
|
|
216
216
|
modifiers: [],
|
|
217
217
|
hasImportantModifier: !1,
|
|
@@ -220,10 +220,10 @@ const Ae = "-", At = (e) => {
|
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
if (r) {
|
|
223
|
-
const
|
|
223
|
+
const n = o;
|
|
224
224
|
o = (s) => r({
|
|
225
225
|
className: s,
|
|
226
|
-
parseClassName:
|
|
226
|
+
parseClassName: n
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
return o;
|
|
@@ -232,22 +232,22 @@ const Ae = "-", At = (e) => {
|
|
|
232
232
|
return (o) => {
|
|
233
233
|
if (o.length <= 1)
|
|
234
234
|
return o;
|
|
235
|
-
const
|
|
235
|
+
const n = [];
|
|
236
236
|
let s = [];
|
|
237
237
|
return o.forEach((l) => {
|
|
238
|
-
l[0] === "[" || t[l] ? (
|
|
239
|
-
}),
|
|
238
|
+
l[0] === "[" || t[l] ? (n.push(...s.sort(), l), s = []) : s.push(l);
|
|
239
|
+
}), n.push(...s.sort()), n;
|
|
240
240
|
};
|
|
241
241
|
}, Gt = (e) => ({
|
|
242
242
|
cache: $t(e.cacheSize),
|
|
243
243
|
parseClassName: Ft(e),
|
|
244
244
|
sortModifiers: Dt(e),
|
|
245
|
-
...
|
|
245
|
+
...Rt(e)
|
|
246
246
|
}), Wt = /\s+/, Bt = (e, t) => {
|
|
247
247
|
const {
|
|
248
248
|
parseClassName: r,
|
|
249
249
|
getClassGroupId: o,
|
|
250
|
-
getConflictingClassGroupIds:
|
|
250
|
+
getConflictingClassGroupIds: n,
|
|
251
251
|
sortModifiers: s
|
|
252
252
|
} = t, l = [], i = e.trim().split(Wt);
|
|
253
253
|
let c = "";
|
|
@@ -255,40 +255,40 @@ const Ae = "-", At = (e) => {
|
|
|
255
255
|
const m = i[d], {
|
|
256
256
|
isExternal: u,
|
|
257
257
|
modifiers: b,
|
|
258
|
-
hasImportantModifier:
|
|
259
|
-
baseClassName:
|
|
258
|
+
hasImportantModifier: S,
|
|
259
|
+
baseClassName: v,
|
|
260
260
|
maybePostfixModifierPosition: N
|
|
261
261
|
} = r(m);
|
|
262
262
|
if (u) {
|
|
263
263
|
c = m + (c.length > 0 ? " " + c : c);
|
|
264
264
|
continue;
|
|
265
265
|
}
|
|
266
|
-
let E = !!N,
|
|
267
|
-
if (!
|
|
266
|
+
let E = !!N, z = o(E ? v.substring(0, N) : v);
|
|
267
|
+
if (!z) {
|
|
268
268
|
if (!E) {
|
|
269
269
|
c = m + (c.length > 0 ? " " + c : c);
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
|
-
if (
|
|
272
|
+
if (z = o(v), !z) {
|
|
273
273
|
c = m + (c.length > 0 ? " " + c : c);
|
|
274
274
|
continue;
|
|
275
275
|
}
|
|
276
276
|
E = !1;
|
|
277
277
|
}
|
|
278
|
-
const R = s(b).join(":"),
|
|
279
|
-
if (l.includes(
|
|
278
|
+
const R = s(b).join(":"), k = S ? R + Ee : R, I = k + z;
|
|
279
|
+
if (l.includes(I))
|
|
280
280
|
continue;
|
|
281
|
-
l.push(
|
|
282
|
-
const
|
|
283
|
-
for (let F = 0; F <
|
|
284
|
-
const
|
|
285
|
-
l.push(
|
|
281
|
+
l.push(I);
|
|
282
|
+
const P = n(z, E);
|
|
283
|
+
for (let F = 0; F < P.length; ++F) {
|
|
284
|
+
const L = P[F];
|
|
285
|
+
l.push(k + L);
|
|
286
286
|
}
|
|
287
287
|
c = m + (c.length > 0 ? " " + c : c);
|
|
288
288
|
}
|
|
289
289
|
return c;
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ht() {
|
|
292
292
|
let e = 0, t, r, o = "";
|
|
293
293
|
for (; e < arguments.length; )
|
|
294
294
|
(t = arguments[e++]) && (r = Qe(t)) && (o && (o += " "), o += r);
|
|
@@ -302,39 +302,39 @@ const Qe = (e) => {
|
|
|
302
302
|
e[o] && (t = Qe(e[o])) && (r && (r += " "), r += t);
|
|
303
303
|
return r;
|
|
304
304
|
};
|
|
305
|
-
function
|
|
306
|
-
let r, o,
|
|
305
|
+
function Ot(e, ...t) {
|
|
306
|
+
let r, o, n, s = l;
|
|
307
307
|
function l(c) {
|
|
308
308
|
const d = t.reduce((m, u) => u(m), e());
|
|
309
|
-
return r = Gt(d), o = r.cache.get,
|
|
309
|
+
return r = Gt(d), o = r.cache.get, n = r.cache.set, s = i, i(c);
|
|
310
310
|
}
|
|
311
311
|
function i(c) {
|
|
312
312
|
const d = o(c);
|
|
313
313
|
if (d)
|
|
314
314
|
return d;
|
|
315
315
|
const m = Bt(c, r);
|
|
316
|
-
return
|
|
316
|
+
return n(c, m), m;
|
|
317
317
|
}
|
|
318
318
|
return function() {
|
|
319
|
-
return s(
|
|
319
|
+
return s(Ht.apply(null, arguments));
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
const T = (e) => {
|
|
323
323
|
const t = (r) => r[e] || [];
|
|
324
324
|
return t.isThemeGetter = !0, t;
|
|
325
|
-
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ut = /^\d+\/\d+$/, qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Kt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
325
|
+
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ut = /^\d+\/\d+$/, qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Kt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, re = (e) => Ut.test(e), M = (e) => !!e && !Number.isNaN(Number(e)), X = (e) => !!e && Number.isInteger(Number(e)), Ne = (e) => e.endsWith("%") && M(e.slice(0, -1)), U = (e) => qt.test(e), Jt = () => !0, Yt = (e) => (
|
|
326
326
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
327
327
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
328
328
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
329
329
|
Xt.test(e) && !Zt.test(e)
|
|
330
|
-
), et = () => !1, er = (e) => Kt.test(e), tr = (e) => Qt.test(e), rr = (e) => !p(e) && !g(e), or = (e) =>
|
|
330
|
+
), et = () => !1, er = (e) => Kt.test(e), tr = (e) => Qt.test(e), rr = (e) => !p(e) && !g(e), or = (e) => ne(e, ot, et), p = (e) => Je.test(e), Q = (e) => ne(e, at, Yt), Ce = (e) => ne(e, lr, M), Ge = (e) => ne(e, tt, et), ar = (e) => ne(e, rt, tr), ge = (e) => ne(e, nt, er), g = (e) => Ye.test(e), ce = (e) => se(e, at), nr = (e) => se(e, cr), We = (e) => se(e, tt), sr = (e) => se(e, ot), ir = (e) => se(e, rt), he = (e) => se(e, nt, !0), ne = (e, t, r) => {
|
|
331
331
|
const o = Je.exec(e);
|
|
332
332
|
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
333
333
|
}, se = (e, t, r = !1) => {
|
|
334
334
|
const o = Ye.exec(e);
|
|
335
335
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
336
|
-
}, tt = (e) => e === "position" || e === "percentage", rt = (e) => e === "image" || e === "url", ot = (e) => e === "length" || e === "size" || e === "bg-size",
|
|
337
|
-
const e = T("color"), t = T("font"), r = T("text"), o = T("font-weight"),
|
|
336
|
+
}, tt = (e) => e === "position" || e === "percentage", rt = (e) => e === "image" || e === "url", ot = (e) => e === "length" || e === "size" || e === "bg-size", at = (e) => e === "length", lr = (e) => e === "number", cr = (e) => e === "family-name", nt = (e) => e === "shadow", dr = () => {
|
|
337
|
+
const e = T("color"), t = T("font"), r = T("text"), o = T("font-weight"), n = T("tracking"), s = T("leading"), l = T("breakpoint"), i = T("container"), c = T("spacing"), d = T("radius"), m = T("shadow"), u = T("inset-shadow"), b = T("text-shadow"), S = T("drop-shadow"), v = T("blur"), N = T("perspective"), E = T("aspect"), z = T("ease"), R = T("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
338
338
|
"center",
|
|
339
339
|
"top",
|
|
340
340
|
"bottom",
|
|
@@ -352,15 +352,15 @@ const T = (e) => {
|
|
|
352
352
|
"bottom-left",
|
|
353
353
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
354
354
|
"left-bottom"
|
|
355
|
-
],
|
|
356
|
-
span: ["full",
|
|
357
|
-
},
|
|
355
|
+
], P = () => [...I(), g, p], F = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], y = () => [g, p, c], _ = () => [re, "full", "auto", ...y()], H = () => [X, "none", "subgrid", g, p], ee = () => ["auto", {
|
|
356
|
+
span: ["full", X, g, p]
|
|
357
|
+
}, X, g, p], q = () => [X, "auto", g, p], te = () => ["auto", "min", "max", "fr", g, p], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...y()], G = () => [re, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], x = () => [e, g, p], ue = () => [...I(), We, Ge, {
|
|
358
358
|
position: [g, p]
|
|
359
|
-
}],
|
|
359
|
+
}], ye = () => ["no-repeat", {
|
|
360
360
|
repeat: ["", "x", "y", "space", "round"]
|
|
361
|
-
}],
|
|
361
|
+
}], ie = () => ["auto", "cover", "contain", sr, or, {
|
|
362
362
|
size: [g, p]
|
|
363
|
-
}],
|
|
363
|
+
}], le = () => [Ne, ce, Q], j = () => [
|
|
364
364
|
// Deprecated since Tailwind CSS v4.0.0
|
|
365
365
|
"",
|
|
366
366
|
"none",
|
|
@@ -368,14 +368,14 @@ const T = (e) => {
|
|
|
368
368
|
d,
|
|
369
369
|
g,
|
|
370
370
|
p
|
|
371
|
-
],
|
|
371
|
+
], C = () => ["", M, ce, Q], $ = () => ["solid", "dashed", "dotted", "double"], O = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [M, Ne, We, Ge], $e = () => [
|
|
372
372
|
// Deprecated since Tailwind CSS v4.0.0
|
|
373
373
|
"",
|
|
374
374
|
"none",
|
|
375
|
-
|
|
375
|
+
v,
|
|
376
376
|
g,
|
|
377
377
|
p
|
|
378
|
-
],
|
|
378
|
+
], me = () => ["none", M, g, p], fe = () => ["none", M, g, p], ve = () => [M, g, p], pe = () => [re, "full", ...y()];
|
|
379
379
|
return {
|
|
380
380
|
cacheSize: 500,
|
|
381
381
|
theme: {
|
|
@@ -394,7 +394,7 @@ const T = (e) => {
|
|
|
394
394
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
395
395
|
radius: [U],
|
|
396
396
|
shadow: [U],
|
|
397
|
-
spacing: ["px",
|
|
397
|
+
spacing: ["px", M],
|
|
398
398
|
text: [U],
|
|
399
399
|
"text-shadow": [U],
|
|
400
400
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -408,7 +408,7 @@ const T = (e) => {
|
|
|
408
408
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
409
409
|
*/
|
|
410
410
|
aspect: [{
|
|
411
|
-
aspect: ["auto", "square",
|
|
411
|
+
aspect: ["auto", "square", re, p, g, E]
|
|
412
412
|
}],
|
|
413
413
|
/**
|
|
414
414
|
* Container
|
|
@@ -421,21 +421,21 @@ const T = (e) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/columns
|
|
422
422
|
*/
|
|
423
423
|
columns: [{
|
|
424
|
-
columns: [
|
|
424
|
+
columns: [M, p, g, i]
|
|
425
425
|
}],
|
|
426
426
|
/**
|
|
427
427
|
* Break After
|
|
428
428
|
* @see https://tailwindcss.com/docs/break-after
|
|
429
429
|
*/
|
|
430
430
|
"break-after": [{
|
|
431
|
-
"break-after":
|
|
431
|
+
"break-after": k()
|
|
432
432
|
}],
|
|
433
433
|
/**
|
|
434
434
|
* Break Before
|
|
435
435
|
* @see https://tailwindcss.com/docs/break-before
|
|
436
436
|
*/
|
|
437
437
|
"break-before": [{
|
|
438
|
-
"break-before":
|
|
438
|
+
"break-before": k()
|
|
439
439
|
}],
|
|
440
440
|
/**
|
|
441
441
|
* Break Inside
|
|
@@ -499,7 +499,7 @@ const T = (e) => {
|
|
|
499
499
|
* @see https://tailwindcss.com/docs/object-position
|
|
500
500
|
*/
|
|
501
501
|
"object-position": [{
|
|
502
|
-
object:
|
|
502
|
+
object: P()
|
|
503
503
|
}],
|
|
504
504
|
/**
|
|
505
505
|
* Overflow
|
|
@@ -527,21 +527,21 @@ const T = (e) => {
|
|
|
527
527
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
528
528
|
*/
|
|
529
529
|
overscroll: [{
|
|
530
|
-
overscroll:
|
|
530
|
+
overscroll: L()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Overscroll Behavior X
|
|
534
534
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
535
535
|
*/
|
|
536
536
|
"overscroll-x": [{
|
|
537
|
-
"overscroll-x":
|
|
537
|
+
"overscroll-x": L()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Overscroll Behavior Y
|
|
541
541
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
542
542
|
*/
|
|
543
543
|
"overscroll-y": [{
|
|
544
|
-
"overscroll-y":
|
|
544
|
+
"overscroll-y": L()
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* Position
|
|
@@ -553,63 +553,63 @@ const T = (e) => {
|
|
|
553
553
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
554
554
|
*/
|
|
555
555
|
inset: [{
|
|
556
|
-
inset:
|
|
556
|
+
inset: _()
|
|
557
557
|
}],
|
|
558
558
|
/**
|
|
559
559
|
* Right / Left
|
|
560
560
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
561
561
|
*/
|
|
562
562
|
"inset-x": [{
|
|
563
|
-
"inset-x":
|
|
563
|
+
"inset-x": _()
|
|
564
564
|
}],
|
|
565
565
|
/**
|
|
566
566
|
* Top / Bottom
|
|
567
567
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
568
568
|
*/
|
|
569
569
|
"inset-y": [{
|
|
570
|
-
"inset-y":
|
|
570
|
+
"inset-y": _()
|
|
571
571
|
}],
|
|
572
572
|
/**
|
|
573
573
|
* Start
|
|
574
574
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
575
575
|
*/
|
|
576
576
|
start: [{
|
|
577
|
-
start:
|
|
577
|
+
start: _()
|
|
578
578
|
}],
|
|
579
579
|
/**
|
|
580
580
|
* End
|
|
581
581
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
582
582
|
*/
|
|
583
583
|
end: [{
|
|
584
|
-
end:
|
|
584
|
+
end: _()
|
|
585
585
|
}],
|
|
586
586
|
/**
|
|
587
587
|
* Top
|
|
588
588
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
589
589
|
*/
|
|
590
590
|
top: [{
|
|
591
|
-
top:
|
|
591
|
+
top: _()
|
|
592
592
|
}],
|
|
593
593
|
/**
|
|
594
594
|
* Right
|
|
595
595
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
596
596
|
*/
|
|
597
597
|
right: [{
|
|
598
|
-
right:
|
|
598
|
+
right: _()
|
|
599
599
|
}],
|
|
600
600
|
/**
|
|
601
601
|
* Bottom
|
|
602
602
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
603
603
|
*/
|
|
604
604
|
bottom: [{
|
|
605
|
-
bottom:
|
|
605
|
+
bottom: _()
|
|
606
606
|
}],
|
|
607
607
|
/**
|
|
608
608
|
* Left
|
|
609
609
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
610
610
|
*/
|
|
611
611
|
left: [{
|
|
612
|
-
left:
|
|
612
|
+
left: _()
|
|
613
613
|
}],
|
|
614
614
|
/**
|
|
615
615
|
* Visibility
|
|
@@ -621,7 +621,7 @@ const T = (e) => {
|
|
|
621
621
|
* @see https://tailwindcss.com/docs/z-index
|
|
622
622
|
*/
|
|
623
623
|
z: [{
|
|
624
|
-
z: [
|
|
624
|
+
z: [X, "auto", g, p]
|
|
625
625
|
}],
|
|
626
626
|
// ------------------------
|
|
627
627
|
// --- Flexbox and Grid ---
|
|
@@ -631,7 +631,7 @@ const T = (e) => {
|
|
|
631
631
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
632
632
|
*/
|
|
633
633
|
basis: [{
|
|
634
|
-
basis: [
|
|
634
|
+
basis: [re, "full", "auto", i, ...y()]
|
|
635
635
|
}],
|
|
636
636
|
/**
|
|
637
637
|
* Flex Direction
|
|
@@ -652,84 +652,84 @@ const T = (e) => {
|
|
|
652
652
|
* @see https://tailwindcss.com/docs/flex
|
|
653
653
|
*/
|
|
654
654
|
flex: [{
|
|
655
|
-
flex: [
|
|
655
|
+
flex: [M, re, "auto", "initial", "none", p]
|
|
656
656
|
}],
|
|
657
657
|
/**
|
|
658
658
|
* Flex Grow
|
|
659
659
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
660
660
|
*/
|
|
661
661
|
grow: [{
|
|
662
|
-
grow: ["",
|
|
662
|
+
grow: ["", M, g, p]
|
|
663
663
|
}],
|
|
664
664
|
/**
|
|
665
665
|
* Flex Shrink
|
|
666
666
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
667
667
|
*/
|
|
668
668
|
shrink: [{
|
|
669
|
-
shrink: ["",
|
|
669
|
+
shrink: ["", M, g, p]
|
|
670
670
|
}],
|
|
671
671
|
/**
|
|
672
672
|
* Order
|
|
673
673
|
* @see https://tailwindcss.com/docs/order
|
|
674
674
|
*/
|
|
675
675
|
order: [{
|
|
676
|
-
order: [
|
|
676
|
+
order: [X, "first", "last", "none", g, p]
|
|
677
677
|
}],
|
|
678
678
|
/**
|
|
679
679
|
* Grid Template Columns
|
|
680
680
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
681
681
|
*/
|
|
682
682
|
"grid-cols": [{
|
|
683
|
-
"grid-cols":
|
|
683
|
+
"grid-cols": H()
|
|
684
684
|
}],
|
|
685
685
|
/**
|
|
686
686
|
* Grid Column Start / End
|
|
687
687
|
* @see https://tailwindcss.com/docs/grid-column
|
|
688
688
|
*/
|
|
689
689
|
"col-start-end": [{
|
|
690
|
-
col:
|
|
690
|
+
col: ee()
|
|
691
691
|
}],
|
|
692
692
|
/**
|
|
693
693
|
* Grid Column Start
|
|
694
694
|
* @see https://tailwindcss.com/docs/grid-column
|
|
695
695
|
*/
|
|
696
696
|
"col-start": [{
|
|
697
|
-
"col-start":
|
|
697
|
+
"col-start": q()
|
|
698
698
|
}],
|
|
699
699
|
/**
|
|
700
700
|
* Grid Column End
|
|
701
701
|
* @see https://tailwindcss.com/docs/grid-column
|
|
702
702
|
*/
|
|
703
703
|
"col-end": [{
|
|
704
|
-
"col-end":
|
|
704
|
+
"col-end": q()
|
|
705
705
|
}],
|
|
706
706
|
/**
|
|
707
707
|
* Grid Template Rows
|
|
708
708
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
709
709
|
*/
|
|
710
710
|
"grid-rows": [{
|
|
711
|
-
"grid-rows":
|
|
711
|
+
"grid-rows": H()
|
|
712
712
|
}],
|
|
713
713
|
/**
|
|
714
714
|
* Grid Row Start / End
|
|
715
715
|
* @see https://tailwindcss.com/docs/grid-row
|
|
716
716
|
*/
|
|
717
717
|
"row-start-end": [{
|
|
718
|
-
row:
|
|
718
|
+
row: ee()
|
|
719
719
|
}],
|
|
720
720
|
/**
|
|
721
721
|
* Grid Row Start
|
|
722
722
|
* @see https://tailwindcss.com/docs/grid-row
|
|
723
723
|
*/
|
|
724
724
|
"row-start": [{
|
|
725
|
-
"row-start":
|
|
725
|
+
"row-start": q()
|
|
726
726
|
}],
|
|
727
727
|
/**
|
|
728
728
|
* Grid Row End
|
|
729
729
|
* @see https://tailwindcss.com/docs/grid-row
|
|
730
730
|
*/
|
|
731
731
|
"row-end": [{
|
|
732
|
-
"row-end":
|
|
732
|
+
"row-end": q()
|
|
733
733
|
}],
|
|
734
734
|
/**
|
|
735
735
|
* Grid Auto Flow
|
|
@@ -743,14 +743,14 @@ const T = (e) => {
|
|
|
743
743
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
744
744
|
*/
|
|
745
745
|
"auto-cols": [{
|
|
746
|
-
"auto-cols":
|
|
746
|
+
"auto-cols": te()
|
|
747
747
|
}],
|
|
748
748
|
/**
|
|
749
749
|
* Grid Auto Rows
|
|
750
750
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
751
751
|
*/
|
|
752
752
|
"auto-rows": [{
|
|
753
|
-
"auto-rows":
|
|
753
|
+
"auto-rows": te()
|
|
754
754
|
}],
|
|
755
755
|
/**
|
|
756
756
|
* Gap
|
|
@@ -778,35 +778,35 @@ const T = (e) => {
|
|
|
778
778
|
* @see https://tailwindcss.com/docs/justify-content
|
|
779
779
|
*/
|
|
780
780
|
"justify-content": [{
|
|
781
|
-
justify: [...
|
|
781
|
+
justify: [...K(), "normal"]
|
|
782
782
|
}],
|
|
783
783
|
/**
|
|
784
784
|
* Justify Items
|
|
785
785
|
* @see https://tailwindcss.com/docs/justify-items
|
|
786
786
|
*/
|
|
787
787
|
"justify-items": [{
|
|
788
|
-
"justify-items": [...
|
|
788
|
+
"justify-items": [...B(), "normal"]
|
|
789
789
|
}],
|
|
790
790
|
/**
|
|
791
791
|
* Justify Self
|
|
792
792
|
* @see https://tailwindcss.com/docs/justify-self
|
|
793
793
|
*/
|
|
794
794
|
"justify-self": [{
|
|
795
|
-
"justify-self": ["auto", ...
|
|
795
|
+
"justify-self": ["auto", ...B()]
|
|
796
796
|
}],
|
|
797
797
|
/**
|
|
798
798
|
* Align Content
|
|
799
799
|
* @see https://tailwindcss.com/docs/align-content
|
|
800
800
|
*/
|
|
801
801
|
"align-content": [{
|
|
802
|
-
content: ["normal", ...
|
|
802
|
+
content: ["normal", ...K()]
|
|
803
803
|
}],
|
|
804
804
|
/**
|
|
805
805
|
* Align Items
|
|
806
806
|
* @see https://tailwindcss.com/docs/align-items
|
|
807
807
|
*/
|
|
808
808
|
"align-items": [{
|
|
809
|
-
items: [...
|
|
809
|
+
items: [...B(), {
|
|
810
810
|
baseline: ["", "last"]
|
|
811
811
|
}]
|
|
812
812
|
}],
|
|
@@ -815,7 +815,7 @@ const T = (e) => {
|
|
|
815
815
|
* @see https://tailwindcss.com/docs/align-self
|
|
816
816
|
*/
|
|
817
817
|
"align-self": [{
|
|
818
|
-
self: ["auto", ...
|
|
818
|
+
self: ["auto", ...B(), {
|
|
819
819
|
baseline: ["", "last"]
|
|
820
820
|
}]
|
|
821
821
|
}],
|
|
@@ -824,21 +824,21 @@ const T = (e) => {
|
|
|
824
824
|
* @see https://tailwindcss.com/docs/place-content
|
|
825
825
|
*/
|
|
826
826
|
"place-content": [{
|
|
827
|
-
"place-content":
|
|
827
|
+
"place-content": K()
|
|
828
828
|
}],
|
|
829
829
|
/**
|
|
830
830
|
* Place Items
|
|
831
831
|
* @see https://tailwindcss.com/docs/place-items
|
|
832
832
|
*/
|
|
833
833
|
"place-items": [{
|
|
834
|
-
"place-items": [...
|
|
834
|
+
"place-items": [...B(), "baseline"]
|
|
835
835
|
}],
|
|
836
836
|
/**
|
|
837
837
|
* Place Self
|
|
838
838
|
* @see https://tailwindcss.com/docs/place-self
|
|
839
839
|
*/
|
|
840
840
|
"place-self": [{
|
|
841
|
-
"place-self": ["auto", ...
|
|
841
|
+
"place-self": ["auto", ...B()]
|
|
842
842
|
}],
|
|
843
843
|
// Spacing
|
|
844
844
|
/**
|
|
@@ -909,63 +909,63 @@ const T = (e) => {
|
|
|
909
909
|
* @see https://tailwindcss.com/docs/margin
|
|
910
910
|
*/
|
|
911
911
|
m: [{
|
|
912
|
-
m:
|
|
912
|
+
m: D()
|
|
913
913
|
}],
|
|
914
914
|
/**
|
|
915
915
|
* Margin X
|
|
916
916
|
* @see https://tailwindcss.com/docs/margin
|
|
917
917
|
*/
|
|
918
918
|
mx: [{
|
|
919
|
-
mx:
|
|
919
|
+
mx: D()
|
|
920
920
|
}],
|
|
921
921
|
/**
|
|
922
922
|
* Margin Y
|
|
923
923
|
* @see https://tailwindcss.com/docs/margin
|
|
924
924
|
*/
|
|
925
925
|
my: [{
|
|
926
|
-
my:
|
|
926
|
+
my: D()
|
|
927
927
|
}],
|
|
928
928
|
/**
|
|
929
929
|
* Margin Start
|
|
930
930
|
* @see https://tailwindcss.com/docs/margin
|
|
931
931
|
*/
|
|
932
932
|
ms: [{
|
|
933
|
-
ms:
|
|
933
|
+
ms: D()
|
|
934
934
|
}],
|
|
935
935
|
/**
|
|
936
936
|
* Margin End
|
|
937
937
|
* @see https://tailwindcss.com/docs/margin
|
|
938
938
|
*/
|
|
939
939
|
me: [{
|
|
940
|
-
me:
|
|
940
|
+
me: D()
|
|
941
941
|
}],
|
|
942
942
|
/**
|
|
943
943
|
* Margin Top
|
|
944
944
|
* @see https://tailwindcss.com/docs/margin
|
|
945
945
|
*/
|
|
946
946
|
mt: [{
|
|
947
|
-
mt:
|
|
947
|
+
mt: D()
|
|
948
948
|
}],
|
|
949
949
|
/**
|
|
950
950
|
* Margin Right
|
|
951
951
|
* @see https://tailwindcss.com/docs/margin
|
|
952
952
|
*/
|
|
953
953
|
mr: [{
|
|
954
|
-
mr:
|
|
954
|
+
mr: D()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Margin Bottom
|
|
958
958
|
* @see https://tailwindcss.com/docs/margin
|
|
959
959
|
*/
|
|
960
960
|
mb: [{
|
|
961
|
-
mb:
|
|
961
|
+
mb: D()
|
|
962
962
|
}],
|
|
963
963
|
/**
|
|
964
964
|
* Margin Left
|
|
965
965
|
* @see https://tailwindcss.com/docs/margin
|
|
966
966
|
*/
|
|
967
967
|
ml: [{
|
|
968
|
-
ml:
|
|
968
|
+
ml: D()
|
|
969
969
|
}],
|
|
970
970
|
/**
|
|
971
971
|
* Space Between X
|
|
@@ -999,14 +999,14 @@ const T = (e) => {
|
|
|
999
999
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1000
1000
|
*/
|
|
1001
1001
|
size: [{
|
|
1002
|
-
size:
|
|
1002
|
+
size: G()
|
|
1003
1003
|
}],
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Width
|
|
1006
1006
|
* @see https://tailwindcss.com/docs/width
|
|
1007
1007
|
*/
|
|
1008
1008
|
w: [{
|
|
1009
|
-
w: [i, "screen", ...
|
|
1009
|
+
w: [i, "screen", ...G()]
|
|
1010
1010
|
}],
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Min-Width
|
|
@@ -1018,7 +1018,7 @@ const T = (e) => {
|
|
|
1018
1018
|
"screen",
|
|
1019
1019
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1020
1020
|
"none",
|
|
1021
|
-
...
|
|
1021
|
+
...G()
|
|
1022
1022
|
]
|
|
1023
1023
|
}],
|
|
1024
1024
|
/**
|
|
@@ -1036,7 +1036,7 @@ const T = (e) => {
|
|
|
1036
1036
|
{
|
|
1037
1037
|
screen: [l]
|
|
1038
1038
|
},
|
|
1039
|
-
...
|
|
1039
|
+
...G()
|
|
1040
1040
|
]
|
|
1041
1041
|
}],
|
|
1042
1042
|
/**
|
|
@@ -1044,21 +1044,21 @@ const T = (e) => {
|
|
|
1044
1044
|
* @see https://tailwindcss.com/docs/height
|
|
1045
1045
|
*/
|
|
1046
1046
|
h: [{
|
|
1047
|
-
h: ["screen", "lh", ...
|
|
1047
|
+
h: ["screen", "lh", ...G()]
|
|
1048
1048
|
}],
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Min-Height
|
|
1051
1051
|
* @see https://tailwindcss.com/docs/min-height
|
|
1052
1052
|
*/
|
|
1053
1053
|
"min-h": [{
|
|
1054
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1054
|
+
"min-h": ["screen", "lh", "none", ...G()]
|
|
1055
1055
|
}],
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Max-Height
|
|
1058
1058
|
* @see https://tailwindcss.com/docs/max-height
|
|
1059
1059
|
*/
|
|
1060
1060
|
"max-h": [{
|
|
1061
|
-
"max-h": ["screen", "lh", ...
|
|
1061
|
+
"max-h": ["screen", "lh", ...G()]
|
|
1062
1062
|
}],
|
|
1063
1063
|
// ------------------
|
|
1064
1064
|
// --- Typography ---
|
|
@@ -1068,7 +1068,7 @@ const T = (e) => {
|
|
|
1068
1068
|
* @see https://tailwindcss.com/docs/font-size
|
|
1069
1069
|
*/
|
|
1070
1070
|
"font-size": [{
|
|
1071
|
-
text: ["base", r,
|
|
1071
|
+
text: ["base", r, ce, Q]
|
|
1072
1072
|
}],
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Font Smoothing
|
|
@@ -1085,21 +1085,21 @@ const T = (e) => {
|
|
|
1085
1085
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1086
1086
|
*/
|
|
1087
1087
|
"font-weight": [{
|
|
1088
|
-
font: [o, g,
|
|
1088
|
+
font: [o, g, Ce]
|
|
1089
1089
|
}],
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Font Stretch
|
|
1092
1092
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1093
1093
|
*/
|
|
1094
1094
|
"font-stretch": [{
|
|
1095
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1095
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ne, p]
|
|
1096
1096
|
}],
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Font Family
|
|
1099
1099
|
* @see https://tailwindcss.com/docs/font-family
|
|
1100
1100
|
*/
|
|
1101
1101
|
"font-family": [{
|
|
1102
|
-
font: [
|
|
1102
|
+
font: [nr, p, t]
|
|
1103
1103
|
}],
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Font Variant Numeric
|
|
@@ -1136,14 +1136,14 @@ const T = (e) => {
|
|
|
1136
1136
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1137
1137
|
*/
|
|
1138
1138
|
tracking: [{
|
|
1139
|
-
tracking: [
|
|
1139
|
+
tracking: [n, g, p]
|
|
1140
1140
|
}],
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Line Clamp
|
|
1143
1143
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1144
1144
|
*/
|
|
1145
1145
|
"line-clamp": [{
|
|
1146
|
-
"line-clamp": [
|
|
1146
|
+
"line-clamp": [M, "none", g, Ce]
|
|
1147
1147
|
}],
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Line Height
|
|
@@ -1209,14 +1209,14 @@ const T = (e) => {
|
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1210
1210
|
*/
|
|
1211
1211
|
"text-decoration-style": [{
|
|
1212
|
-
decoration: [
|
|
1212
|
+
decoration: [...$(), "wavy"]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Text Decoration Thickness
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1217
1217
|
*/
|
|
1218
1218
|
"text-decoration-thickness": [{
|
|
1219
|
-
decoration: [
|
|
1219
|
+
decoration: [M, "from-font", "auto", g, Q]
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Text Decoration Color
|
|
@@ -1230,7 +1230,7 @@ const T = (e) => {
|
|
|
1230
1230
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1231
1231
|
*/
|
|
1232
1232
|
"underline-offset": [{
|
|
1233
|
-
"underline-offset": [
|
|
1233
|
+
"underline-offset": [M, "auto", g, p]
|
|
1234
1234
|
}],
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Text Transform
|
|
@@ -1327,21 +1327,21 @@ const T = (e) => {
|
|
|
1327
1327
|
* @see https://tailwindcss.com/docs/background-position
|
|
1328
1328
|
*/
|
|
1329
1329
|
"bg-position": [{
|
|
1330
|
-
bg:
|
|
1330
|
+
bg: ue()
|
|
1331
1331
|
}],
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Background Repeat
|
|
1334
1334
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1335
1335
|
*/
|
|
1336
1336
|
"bg-repeat": [{
|
|
1337
|
-
bg:
|
|
1337
|
+
bg: ye()
|
|
1338
1338
|
}],
|
|
1339
1339
|
/**
|
|
1340
1340
|
* Background Size
|
|
1341
1341
|
* @see https://tailwindcss.com/docs/background-size
|
|
1342
1342
|
*/
|
|
1343
1343
|
"bg-size": [{
|
|
1344
|
-
bg:
|
|
1344
|
+
bg: ie()
|
|
1345
1345
|
}],
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Background Image
|
|
@@ -1351,10 +1351,10 @@ const T = (e) => {
|
|
|
1351
1351
|
bg: ["none", {
|
|
1352
1352
|
linear: [{
|
|
1353
1353
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1354
|
-
},
|
|
1354
|
+
}, X, g, p],
|
|
1355
1355
|
radial: ["", g, p],
|
|
1356
|
-
conic: [
|
|
1357
|
-
}, ir,
|
|
1356
|
+
conic: [X, g, p]
|
|
1357
|
+
}, ir, ar]
|
|
1358
1358
|
}],
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Background Color
|
|
@@ -1368,21 +1368,21 @@ const T = (e) => {
|
|
|
1368
1368
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1369
1369
|
*/
|
|
1370
1370
|
"gradient-from-pos": [{
|
|
1371
|
-
from:
|
|
1371
|
+
from: le()
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Gradient Color Stops Via Position
|
|
1375
1375
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1376
1376
|
*/
|
|
1377
1377
|
"gradient-via-pos": [{
|
|
1378
|
-
via:
|
|
1378
|
+
via: le()
|
|
1379
1379
|
}],
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Gradient Color Stops To Position
|
|
1382
1382
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1383
1383
|
*/
|
|
1384
1384
|
"gradient-to-pos": [{
|
|
1385
|
-
to:
|
|
1385
|
+
to: le()
|
|
1386
1386
|
}],
|
|
1387
1387
|
/**
|
|
1388
1388
|
* Gradient Color Stops From
|
|
@@ -1413,175 +1413,175 @@ const T = (e) => {
|
|
|
1413
1413
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1414
1414
|
*/
|
|
1415
1415
|
rounded: [{
|
|
1416
|
-
rounded:
|
|
1416
|
+
rounded: j()
|
|
1417
1417
|
}],
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Border Radius Start
|
|
1420
1420
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1421
1421
|
*/
|
|
1422
1422
|
"rounded-s": [{
|
|
1423
|
-
"rounded-s":
|
|
1423
|
+
"rounded-s": j()
|
|
1424
1424
|
}],
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Border Radius End
|
|
1427
1427
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1428
1428
|
*/
|
|
1429
1429
|
"rounded-e": [{
|
|
1430
|
-
"rounded-e":
|
|
1430
|
+
"rounded-e": j()
|
|
1431
1431
|
}],
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Border Radius Top
|
|
1434
1434
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1435
1435
|
*/
|
|
1436
1436
|
"rounded-t": [{
|
|
1437
|
-
"rounded-t":
|
|
1437
|
+
"rounded-t": j()
|
|
1438
1438
|
}],
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Border Radius Right
|
|
1441
1441
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1442
1442
|
*/
|
|
1443
1443
|
"rounded-r": [{
|
|
1444
|
-
"rounded-r":
|
|
1444
|
+
"rounded-r": j()
|
|
1445
1445
|
}],
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Border Radius Bottom
|
|
1448
1448
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1449
1449
|
*/
|
|
1450
1450
|
"rounded-b": [{
|
|
1451
|
-
"rounded-b":
|
|
1451
|
+
"rounded-b": j()
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Border Radius Left
|
|
1455
1455
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1456
1456
|
*/
|
|
1457
1457
|
"rounded-l": [{
|
|
1458
|
-
"rounded-l":
|
|
1458
|
+
"rounded-l": j()
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Border Radius Start Start
|
|
1462
1462
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1463
1463
|
*/
|
|
1464
1464
|
"rounded-ss": [{
|
|
1465
|
-
"rounded-ss":
|
|
1465
|
+
"rounded-ss": j()
|
|
1466
1466
|
}],
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Border Radius Start End
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1470
1470
|
*/
|
|
1471
1471
|
"rounded-se": [{
|
|
1472
|
-
"rounded-se":
|
|
1472
|
+
"rounded-se": j()
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Border Radius End End
|
|
1476
1476
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1477
1477
|
*/
|
|
1478
1478
|
"rounded-ee": [{
|
|
1479
|
-
"rounded-ee":
|
|
1479
|
+
"rounded-ee": j()
|
|
1480
1480
|
}],
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Border Radius End Start
|
|
1483
1483
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1484
1484
|
*/
|
|
1485
1485
|
"rounded-es": [{
|
|
1486
|
-
"rounded-es":
|
|
1486
|
+
"rounded-es": j()
|
|
1487
1487
|
}],
|
|
1488
1488
|
/**
|
|
1489
1489
|
* Border Radius Top Left
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1491
1491
|
*/
|
|
1492
1492
|
"rounded-tl": [{
|
|
1493
|
-
"rounded-tl":
|
|
1493
|
+
"rounded-tl": j()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Border Radius Top Right
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1498
1498
|
*/
|
|
1499
1499
|
"rounded-tr": [{
|
|
1500
|
-
"rounded-tr":
|
|
1500
|
+
"rounded-tr": j()
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Border Radius Bottom Right
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1505
1505
|
*/
|
|
1506
1506
|
"rounded-br": [{
|
|
1507
|
-
"rounded-br":
|
|
1507
|
+
"rounded-br": j()
|
|
1508
1508
|
}],
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Border Radius Bottom Left
|
|
1511
1511
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1512
1512
|
*/
|
|
1513
1513
|
"rounded-bl": [{
|
|
1514
|
-
"rounded-bl":
|
|
1514
|
+
"rounded-bl": j()
|
|
1515
1515
|
}],
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Border Width
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/border-width
|
|
1519
1519
|
*/
|
|
1520
1520
|
"border-w": [{
|
|
1521
|
-
border:
|
|
1521
|
+
border: C()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Border Width X
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/border-width
|
|
1526
1526
|
*/
|
|
1527
1527
|
"border-w-x": [{
|
|
1528
|
-
"border-x":
|
|
1528
|
+
"border-x": C()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Border Width Y
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/border-width
|
|
1533
1533
|
*/
|
|
1534
1534
|
"border-w-y": [{
|
|
1535
|
-
"border-y":
|
|
1535
|
+
"border-y": C()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Border Width Start
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/border-width
|
|
1540
1540
|
*/
|
|
1541
1541
|
"border-w-s": [{
|
|
1542
|
-
"border-s":
|
|
1542
|
+
"border-s": C()
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Border Width End
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/border-width
|
|
1547
1547
|
*/
|
|
1548
1548
|
"border-w-e": [{
|
|
1549
|
-
"border-e":
|
|
1549
|
+
"border-e": C()
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Border Width Top
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/border-width
|
|
1554
1554
|
*/
|
|
1555
1555
|
"border-w-t": [{
|
|
1556
|
-
"border-t":
|
|
1556
|
+
"border-t": C()
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Border Width Right
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/border-width
|
|
1561
1561
|
*/
|
|
1562
1562
|
"border-w-r": [{
|
|
1563
|
-
"border-r":
|
|
1563
|
+
"border-r": C()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Border Width Bottom
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/border-width
|
|
1568
1568
|
*/
|
|
1569
1569
|
"border-w-b": [{
|
|
1570
|
-
"border-b":
|
|
1570
|
+
"border-b": C()
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Border Width Left
|
|
1574
1574
|
* @see https://tailwindcss.com/docs/border-width
|
|
1575
1575
|
*/
|
|
1576
1576
|
"border-w-l": [{
|
|
1577
|
-
"border-l":
|
|
1577
|
+
"border-l": C()
|
|
1578
1578
|
}],
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Divide Width X
|
|
1581
1581
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1582
1582
|
*/
|
|
1583
1583
|
"divide-x": [{
|
|
1584
|
-
"divide-x":
|
|
1584
|
+
"divide-x": C()
|
|
1585
1585
|
}],
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Divide Width X Reverse
|
|
@@ -1593,7 +1593,7 @@ const T = (e) => {
|
|
|
1593
1593
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1594
1594
|
*/
|
|
1595
1595
|
"divide-y": [{
|
|
1596
|
-
"divide-y":
|
|
1596
|
+
"divide-y": C()
|
|
1597
1597
|
}],
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Divide Width Y Reverse
|
|
@@ -1605,14 +1605,14 @@ const T = (e) => {
|
|
|
1605
1605
|
* @see https://tailwindcss.com/docs/border-style
|
|
1606
1606
|
*/
|
|
1607
1607
|
"border-style": [{
|
|
1608
|
-
border: [
|
|
1608
|
+
border: [...$(), "hidden", "none"]
|
|
1609
1609
|
}],
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Divide Style
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1613
1613
|
*/
|
|
1614
1614
|
"divide-style": [{
|
|
1615
|
-
divide: [
|
|
1615
|
+
divide: [...$(), "hidden", "none"]
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Border Color
|
|
@@ -1689,21 +1689,21 @@ const T = (e) => {
|
|
|
1689
1689
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1690
1690
|
*/
|
|
1691
1691
|
"outline-style": [{
|
|
1692
|
-
outline: [
|
|
1692
|
+
outline: [...$(), "none", "hidden"]
|
|
1693
1693
|
}],
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Outline Offset
|
|
1696
1696
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1697
1697
|
*/
|
|
1698
1698
|
"outline-offset": [{
|
|
1699
|
-
"outline-offset": [
|
|
1699
|
+
"outline-offset": [M, g, p]
|
|
1700
1700
|
}],
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Outline Width
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1704
1704
|
*/
|
|
1705
1705
|
"outline-w": [{
|
|
1706
|
-
outline: ["",
|
|
1706
|
+
outline: ["", M, ce, Q]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Outline Color
|
|
@@ -1725,8 +1725,8 @@ const T = (e) => {
|
|
|
1725
1725
|
"",
|
|
1726
1726
|
"none",
|
|
1727
1727
|
m,
|
|
1728
|
-
|
|
1729
|
-
|
|
1728
|
+
he,
|
|
1729
|
+
ge
|
|
1730
1730
|
]
|
|
1731
1731
|
}],
|
|
1732
1732
|
/**
|
|
@@ -1741,7 +1741,7 @@ const T = (e) => {
|
|
|
1741
1741
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1742
1742
|
*/
|
|
1743
1743
|
"inset-shadow": [{
|
|
1744
|
-
"inset-shadow": ["none", u,
|
|
1744
|
+
"inset-shadow": ["none", u, he, ge]
|
|
1745
1745
|
}],
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Inset Box Shadow Color
|
|
@@ -1755,7 +1755,7 @@ const T = (e) => {
|
|
|
1755
1755
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1756
1756
|
*/
|
|
1757
1757
|
"ring-w": [{
|
|
1758
|
-
ring:
|
|
1758
|
+
ring: C()
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Ring Width Inset
|
|
@@ -1778,7 +1778,7 @@ const T = (e) => {
|
|
|
1778
1778
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1779
1779
|
*/
|
|
1780
1780
|
"ring-offset-w": [{
|
|
1781
|
-
"ring-offset": [
|
|
1781
|
+
"ring-offset": [M, Q]
|
|
1782
1782
|
}],
|
|
1783
1783
|
/**
|
|
1784
1784
|
* Ring Offset Color
|
|
@@ -1794,7 +1794,7 @@ const T = (e) => {
|
|
|
1794
1794
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1795
1795
|
*/
|
|
1796
1796
|
"inset-ring-w": [{
|
|
1797
|
-
"inset-ring":
|
|
1797
|
+
"inset-ring": C()
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Inset Ring Color
|
|
@@ -1808,7 +1808,7 @@ const T = (e) => {
|
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1809
1809
|
*/
|
|
1810
1810
|
"text-shadow": [{
|
|
1811
|
-
"text-shadow": ["none", b,
|
|
1811
|
+
"text-shadow": ["none", b, he, ge]
|
|
1812
1812
|
}],
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Text Shadow Color
|
|
@@ -1822,21 +1822,21 @@ const T = (e) => {
|
|
|
1822
1822
|
* @see https://tailwindcss.com/docs/opacity
|
|
1823
1823
|
*/
|
|
1824
1824
|
opacity: [{
|
|
1825
|
-
opacity: [
|
|
1825
|
+
opacity: [M, g, p]
|
|
1826
1826
|
}],
|
|
1827
1827
|
/**
|
|
1828
1828
|
* Mix Blend Mode
|
|
1829
1829
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1830
1830
|
*/
|
|
1831
1831
|
"mix-blend": [{
|
|
1832
|
-
"mix-blend": [...
|
|
1832
|
+
"mix-blend": [...O(), "plus-darker", "plus-lighter"]
|
|
1833
1833
|
}],
|
|
1834
1834
|
/**
|
|
1835
1835
|
* Background Blend Mode
|
|
1836
1836
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1837
1837
|
*/
|
|
1838
1838
|
"bg-blend": [{
|
|
1839
|
-
"bg-blend":
|
|
1839
|
+
"bg-blend": O()
|
|
1840
1840
|
}],
|
|
1841
1841
|
/**
|
|
1842
1842
|
* Mask Clip
|
|
@@ -1857,13 +1857,13 @@ const T = (e) => {
|
|
|
1857
1857
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1858
1858
|
*/
|
|
1859
1859
|
"mask-image-linear-pos": [{
|
|
1860
|
-
"mask-linear": [
|
|
1860
|
+
"mask-linear": [M]
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-linear-from-pos": [{
|
|
1863
|
-
"mask-linear-from":
|
|
1863
|
+
"mask-linear-from": V()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-linear-to-pos": [{
|
|
1866
|
-
"mask-linear-to":
|
|
1866
|
+
"mask-linear-to": V()
|
|
1867
1867
|
}],
|
|
1868
1868
|
"mask-image-linear-from-color": [{
|
|
1869
1869
|
"mask-linear-from": x()
|
|
@@ -1872,10 +1872,10 @@ const T = (e) => {
|
|
|
1872
1872
|
"mask-linear-to": x()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-t-from-pos": [{
|
|
1875
|
-
"mask-t-from":
|
|
1875
|
+
"mask-t-from": V()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-t-to-pos": [{
|
|
1878
|
-
"mask-t-to":
|
|
1878
|
+
"mask-t-to": V()
|
|
1879
1879
|
}],
|
|
1880
1880
|
"mask-image-t-from-color": [{
|
|
1881
1881
|
"mask-t-from": x()
|
|
@@ -1884,10 +1884,10 @@ const T = (e) => {
|
|
|
1884
1884
|
"mask-t-to": x()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-r-from-pos": [{
|
|
1887
|
-
"mask-r-from":
|
|
1887
|
+
"mask-r-from": V()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-r-to-pos": [{
|
|
1890
|
-
"mask-r-to":
|
|
1890
|
+
"mask-r-to": V()
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-r-from-color": [{
|
|
1893
1893
|
"mask-r-from": x()
|
|
@@ -1896,10 +1896,10 @@ const T = (e) => {
|
|
|
1896
1896
|
"mask-r-to": x()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-b-from-pos": [{
|
|
1899
|
-
"mask-b-from":
|
|
1899
|
+
"mask-b-from": V()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-b-to-pos": [{
|
|
1902
|
-
"mask-b-to":
|
|
1902
|
+
"mask-b-to": V()
|
|
1903
1903
|
}],
|
|
1904
1904
|
"mask-image-b-from-color": [{
|
|
1905
1905
|
"mask-b-from": x()
|
|
@@ -1908,10 +1908,10 @@ const T = (e) => {
|
|
|
1908
1908
|
"mask-b-to": x()
|
|
1909
1909
|
}],
|
|
1910
1910
|
"mask-image-l-from-pos": [{
|
|
1911
|
-
"mask-l-from":
|
|
1911
|
+
"mask-l-from": V()
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-l-to-pos": [{
|
|
1914
|
-
"mask-l-to":
|
|
1914
|
+
"mask-l-to": V()
|
|
1915
1915
|
}],
|
|
1916
1916
|
"mask-image-l-from-color": [{
|
|
1917
1917
|
"mask-l-from": x()
|
|
@@ -1920,10 +1920,10 @@ const T = (e) => {
|
|
|
1920
1920
|
"mask-l-to": x()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-x-from-pos": [{
|
|
1923
|
-
"mask-x-from":
|
|
1923
|
+
"mask-x-from": V()
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-x-to-pos": [{
|
|
1926
|
-
"mask-x-to":
|
|
1926
|
+
"mask-x-to": V()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-x-from-color": [{
|
|
1929
1929
|
"mask-x-from": x()
|
|
@@ -1932,10 +1932,10 @@ const T = (e) => {
|
|
|
1932
1932
|
"mask-x-to": x()
|
|
1933
1933
|
}],
|
|
1934
1934
|
"mask-image-y-from-pos": [{
|
|
1935
|
-
"mask-y-from":
|
|
1935
|
+
"mask-y-from": V()
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-y-to-pos": [{
|
|
1938
|
-
"mask-y-to":
|
|
1938
|
+
"mask-y-to": V()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-y-from-color": [{
|
|
1941
1941
|
"mask-y-from": x()
|
|
@@ -1947,10 +1947,10 @@ const T = (e) => {
|
|
|
1947
1947
|
"mask-radial": [g, p]
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-radial-from-pos": [{
|
|
1950
|
-
"mask-radial-from":
|
|
1950
|
+
"mask-radial-from": V()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-radial-to-pos": [{
|
|
1953
|
-
"mask-radial-to":
|
|
1953
|
+
"mask-radial-to": V()
|
|
1954
1954
|
}],
|
|
1955
1955
|
"mask-image-radial-from-color": [{
|
|
1956
1956
|
"mask-radial-from": x()
|
|
@@ -1968,16 +1968,16 @@ const T = (e) => {
|
|
|
1968
1968
|
}]
|
|
1969
1969
|
}],
|
|
1970
1970
|
"mask-image-radial-pos": [{
|
|
1971
|
-
"mask-radial-at":
|
|
1971
|
+
"mask-radial-at": I()
|
|
1972
1972
|
}],
|
|
1973
1973
|
"mask-image-conic-pos": [{
|
|
1974
|
-
"mask-conic": [
|
|
1974
|
+
"mask-conic": [M]
|
|
1975
1975
|
}],
|
|
1976
1976
|
"mask-image-conic-from-pos": [{
|
|
1977
|
-
"mask-conic-from":
|
|
1977
|
+
"mask-conic-from": V()
|
|
1978
1978
|
}],
|
|
1979
1979
|
"mask-image-conic-to-pos": [{
|
|
1980
|
-
"mask-conic-to":
|
|
1980
|
+
"mask-conic-to": V()
|
|
1981
1981
|
}],
|
|
1982
1982
|
"mask-image-conic-from-color": [{
|
|
1983
1983
|
"mask-conic-from": x()
|
|
@@ -2004,21 +2004,21 @@ const T = (e) => {
|
|
|
2004
2004
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2005
2005
|
*/
|
|
2006
2006
|
"mask-position": [{
|
|
2007
|
-
mask:
|
|
2007
|
+
mask: ue()
|
|
2008
2008
|
}],
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Mask Repeat
|
|
2011
2011
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2012
2012
|
*/
|
|
2013
2013
|
"mask-repeat": [{
|
|
2014
|
-
mask:
|
|
2014
|
+
mask: ye()
|
|
2015
2015
|
}],
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Mask Size
|
|
2018
2018
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2019
2019
|
*/
|
|
2020
2020
|
"mask-size": [{
|
|
2021
|
-
mask:
|
|
2021
|
+
mask: ie()
|
|
2022
2022
|
}],
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Mask Type
|
|
@@ -2062,14 +2062,14 @@ const T = (e) => {
|
|
|
2062
2062
|
* @see https://tailwindcss.com/docs/brightness
|
|
2063
2063
|
*/
|
|
2064
2064
|
brightness: [{
|
|
2065
|
-
brightness: [
|
|
2065
|
+
brightness: [M, g, p]
|
|
2066
2066
|
}],
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Contrast
|
|
2069
2069
|
* @see https://tailwindcss.com/docs/contrast
|
|
2070
2070
|
*/
|
|
2071
2071
|
contrast: [{
|
|
2072
|
-
contrast: [
|
|
2072
|
+
contrast: [M, g, p]
|
|
2073
2073
|
}],
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Drop Shadow
|
|
@@ -2080,9 +2080,9 @@ const T = (e) => {
|
|
|
2080
2080
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2081
2081
|
"",
|
|
2082
2082
|
"none",
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2083
|
+
S,
|
|
2084
|
+
he,
|
|
2085
|
+
ge
|
|
2086
2086
|
]
|
|
2087
2087
|
}],
|
|
2088
2088
|
/**
|
|
@@ -2097,35 +2097,35 @@ const T = (e) => {
|
|
|
2097
2097
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2098
2098
|
*/
|
|
2099
2099
|
grayscale: [{
|
|
2100
|
-
grayscale: ["",
|
|
2100
|
+
grayscale: ["", M, g, p]
|
|
2101
2101
|
}],
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Hue Rotate
|
|
2104
2104
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2105
2105
|
*/
|
|
2106
2106
|
"hue-rotate": [{
|
|
2107
|
-
"hue-rotate": [
|
|
2107
|
+
"hue-rotate": [M, g, p]
|
|
2108
2108
|
}],
|
|
2109
2109
|
/**
|
|
2110
2110
|
* Invert
|
|
2111
2111
|
* @see https://tailwindcss.com/docs/invert
|
|
2112
2112
|
*/
|
|
2113
2113
|
invert: [{
|
|
2114
|
-
invert: ["",
|
|
2114
|
+
invert: ["", M, g, p]
|
|
2115
2115
|
}],
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Saturate
|
|
2118
2118
|
* @see https://tailwindcss.com/docs/saturate
|
|
2119
2119
|
*/
|
|
2120
2120
|
saturate: [{
|
|
2121
|
-
saturate: [
|
|
2121
|
+
saturate: [M, g, p]
|
|
2122
2122
|
}],
|
|
2123
2123
|
/**
|
|
2124
2124
|
* Sepia
|
|
2125
2125
|
* @see https://tailwindcss.com/docs/sepia
|
|
2126
2126
|
*/
|
|
2127
2127
|
sepia: [{
|
|
2128
|
-
sepia: ["",
|
|
2128
|
+
sepia: ["", M, g, p]
|
|
2129
2129
|
}],
|
|
2130
2130
|
/**
|
|
2131
2131
|
* Backdrop Filter
|
|
@@ -2152,56 +2152,56 @@ const T = (e) => {
|
|
|
2152
2152
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2153
2153
|
*/
|
|
2154
2154
|
"backdrop-brightness": [{
|
|
2155
|
-
"backdrop-brightness": [
|
|
2155
|
+
"backdrop-brightness": [M, g, p]
|
|
2156
2156
|
}],
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Backdrop Contrast
|
|
2159
2159
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2160
2160
|
*/
|
|
2161
2161
|
"backdrop-contrast": [{
|
|
2162
|
-
"backdrop-contrast": [
|
|
2162
|
+
"backdrop-contrast": [M, g, p]
|
|
2163
2163
|
}],
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Backdrop Grayscale
|
|
2166
2166
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2167
2167
|
*/
|
|
2168
2168
|
"backdrop-grayscale": [{
|
|
2169
|
-
"backdrop-grayscale": ["",
|
|
2169
|
+
"backdrop-grayscale": ["", M, g, p]
|
|
2170
2170
|
}],
|
|
2171
2171
|
/**
|
|
2172
2172
|
* Backdrop Hue Rotate
|
|
2173
2173
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2174
2174
|
*/
|
|
2175
2175
|
"backdrop-hue-rotate": [{
|
|
2176
|
-
"backdrop-hue-rotate": [
|
|
2176
|
+
"backdrop-hue-rotate": [M, g, p]
|
|
2177
2177
|
}],
|
|
2178
2178
|
/**
|
|
2179
2179
|
* Backdrop Invert
|
|
2180
2180
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2181
2181
|
*/
|
|
2182
2182
|
"backdrop-invert": [{
|
|
2183
|
-
"backdrop-invert": ["",
|
|
2183
|
+
"backdrop-invert": ["", M, g, p]
|
|
2184
2184
|
}],
|
|
2185
2185
|
/**
|
|
2186
2186
|
* Backdrop Opacity
|
|
2187
2187
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2188
2188
|
*/
|
|
2189
2189
|
"backdrop-opacity": [{
|
|
2190
|
-
"backdrop-opacity": [
|
|
2190
|
+
"backdrop-opacity": [M, g, p]
|
|
2191
2191
|
}],
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Backdrop Saturate
|
|
2194
2194
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2195
2195
|
*/
|
|
2196
2196
|
"backdrop-saturate": [{
|
|
2197
|
-
"backdrop-saturate": [
|
|
2197
|
+
"backdrop-saturate": [M, g, p]
|
|
2198
2198
|
}],
|
|
2199
2199
|
/**
|
|
2200
2200
|
* Backdrop Sepia
|
|
2201
2201
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2202
2202
|
*/
|
|
2203
2203
|
"backdrop-sepia": [{
|
|
2204
|
-
"backdrop-sepia": ["",
|
|
2204
|
+
"backdrop-sepia": ["", M, g, p]
|
|
2205
2205
|
}],
|
|
2206
2206
|
// --------------
|
|
2207
2207
|
// --- Tables ---
|
|
@@ -2270,21 +2270,21 @@ const T = (e) => {
|
|
|
2270
2270
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2271
2271
|
*/
|
|
2272
2272
|
duration: [{
|
|
2273
|
-
duration: [
|
|
2273
|
+
duration: [M, "initial", g, p]
|
|
2274
2274
|
}],
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Transition Timing Function
|
|
2277
2277
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2278
2278
|
*/
|
|
2279
2279
|
ease: [{
|
|
2280
|
-
ease: ["linear", "initial",
|
|
2280
|
+
ease: ["linear", "initial", z, g, p]
|
|
2281
2281
|
}],
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Transition Delay
|
|
2284
2284
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2285
2285
|
*/
|
|
2286
2286
|
delay: [{
|
|
2287
|
-
delay: [
|
|
2287
|
+
delay: [M, g, p]
|
|
2288
2288
|
}],
|
|
2289
2289
|
/**
|
|
2290
2290
|
* Animation
|
|
@@ -2315,63 +2315,63 @@ const T = (e) => {
|
|
|
2315
2315
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2316
2316
|
*/
|
|
2317
2317
|
"perspective-origin": [{
|
|
2318
|
-
"perspective-origin":
|
|
2318
|
+
"perspective-origin": P()
|
|
2319
2319
|
}],
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Rotate
|
|
2322
2322
|
* @see https://tailwindcss.com/docs/rotate
|
|
2323
2323
|
*/
|
|
2324
2324
|
rotate: [{
|
|
2325
|
-
rotate:
|
|
2325
|
+
rotate: me()
|
|
2326
2326
|
}],
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Rotate X
|
|
2329
2329
|
* @see https://tailwindcss.com/docs/rotate
|
|
2330
2330
|
*/
|
|
2331
2331
|
"rotate-x": [{
|
|
2332
|
-
"rotate-x":
|
|
2332
|
+
"rotate-x": me()
|
|
2333
2333
|
}],
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Rotate Y
|
|
2336
2336
|
* @see https://tailwindcss.com/docs/rotate
|
|
2337
2337
|
*/
|
|
2338
2338
|
"rotate-y": [{
|
|
2339
|
-
"rotate-y":
|
|
2339
|
+
"rotate-y": me()
|
|
2340
2340
|
}],
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Rotate Z
|
|
2343
2343
|
* @see https://tailwindcss.com/docs/rotate
|
|
2344
2344
|
*/
|
|
2345
2345
|
"rotate-z": [{
|
|
2346
|
-
"rotate-z":
|
|
2346
|
+
"rotate-z": me()
|
|
2347
2347
|
}],
|
|
2348
2348
|
/**
|
|
2349
2349
|
* Scale
|
|
2350
2350
|
* @see https://tailwindcss.com/docs/scale
|
|
2351
2351
|
*/
|
|
2352
2352
|
scale: [{
|
|
2353
|
-
scale:
|
|
2353
|
+
scale: fe()
|
|
2354
2354
|
}],
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Scale X
|
|
2357
2357
|
* @see https://tailwindcss.com/docs/scale
|
|
2358
2358
|
*/
|
|
2359
2359
|
"scale-x": [{
|
|
2360
|
-
"scale-x":
|
|
2360
|
+
"scale-x": fe()
|
|
2361
2361
|
}],
|
|
2362
2362
|
/**
|
|
2363
2363
|
* Scale Y
|
|
2364
2364
|
* @see https://tailwindcss.com/docs/scale
|
|
2365
2365
|
*/
|
|
2366
2366
|
"scale-y": [{
|
|
2367
|
-
"scale-y":
|
|
2367
|
+
"scale-y": fe()
|
|
2368
2368
|
}],
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Scale Z
|
|
2371
2371
|
* @see https://tailwindcss.com/docs/scale
|
|
2372
2372
|
*/
|
|
2373
2373
|
"scale-z": [{
|
|
2374
|
-
"scale-z":
|
|
2374
|
+
"scale-z": fe()
|
|
2375
2375
|
}],
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Scale 3D
|
|
@@ -2383,21 +2383,21 @@ const T = (e) => {
|
|
|
2383
2383
|
* @see https://tailwindcss.com/docs/skew
|
|
2384
2384
|
*/
|
|
2385
2385
|
skew: [{
|
|
2386
|
-
skew:
|
|
2386
|
+
skew: ve()
|
|
2387
2387
|
}],
|
|
2388
2388
|
/**
|
|
2389
2389
|
* Skew X
|
|
2390
2390
|
* @see https://tailwindcss.com/docs/skew
|
|
2391
2391
|
*/
|
|
2392
2392
|
"skew-x": [{
|
|
2393
|
-
"skew-x":
|
|
2393
|
+
"skew-x": ve()
|
|
2394
2394
|
}],
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Skew Y
|
|
2397
2397
|
* @see https://tailwindcss.com/docs/skew
|
|
2398
2398
|
*/
|
|
2399
2399
|
"skew-y": [{
|
|
2400
|
-
"skew-y":
|
|
2400
|
+
"skew-y": ve()
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Transform
|
|
@@ -2411,7 +2411,7 @@ const T = (e) => {
|
|
|
2411
2411
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2412
2412
|
*/
|
|
2413
2413
|
"transform-origin": [{
|
|
2414
|
-
origin:
|
|
2414
|
+
origin: P()
|
|
2415
2415
|
}],
|
|
2416
2416
|
/**
|
|
2417
2417
|
* Transform Style
|
|
@@ -2425,28 +2425,28 @@ const T = (e) => {
|
|
|
2425
2425
|
* @see https://tailwindcss.com/docs/translate
|
|
2426
2426
|
*/
|
|
2427
2427
|
translate: [{
|
|
2428
|
-
translate:
|
|
2428
|
+
translate: pe()
|
|
2429
2429
|
}],
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Translate X
|
|
2432
2432
|
* @see https://tailwindcss.com/docs/translate
|
|
2433
2433
|
*/
|
|
2434
2434
|
"translate-x": [{
|
|
2435
|
-
"translate-x":
|
|
2435
|
+
"translate-x": pe()
|
|
2436
2436
|
}],
|
|
2437
2437
|
/**
|
|
2438
2438
|
* Translate Y
|
|
2439
2439
|
* @see https://tailwindcss.com/docs/translate
|
|
2440
2440
|
*/
|
|
2441
2441
|
"translate-y": [{
|
|
2442
|
-
"translate-y":
|
|
2442
|
+
"translate-y": pe()
|
|
2443
2443
|
}],
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Translate Z
|
|
2446
2446
|
* @see https://tailwindcss.com/docs/translate
|
|
2447
2447
|
*/
|
|
2448
2448
|
"translate-z": [{
|
|
2449
|
-
"translate-z":
|
|
2449
|
+
"translate-z": pe()
|
|
2450
2450
|
}],
|
|
2451
2451
|
/**
|
|
2452
2452
|
* Translate None
|
|
@@ -2728,7 +2728,7 @@ const T = (e) => {
|
|
|
2728
2728
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2729
2729
|
*/
|
|
2730
2730
|
"stroke-w": [{
|
|
2731
|
-
stroke: [
|
|
2731
|
+
stroke: [M, ce, Q, Ce]
|
|
2732
2732
|
}],
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Stroke
|
|
@@ -2803,25 +2803,25 @@ const T = (e) => {
|
|
|
2803
2803
|
},
|
|
2804
2804
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2805
2805
|
};
|
|
2806
|
-
}, ur = /* @__PURE__ */
|
|
2806
|
+
}, ur = /* @__PURE__ */ Ot(dr);
|
|
2807
2807
|
function h(...e) {
|
|
2808
2808
|
return ur(Ze(e));
|
|
2809
2809
|
}
|
|
2810
|
-
const Be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e,
|
|
2810
|
+
const Be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, He = Ze, Z = (e, t) => (r) => {
|
|
2811
2811
|
var o;
|
|
2812
|
-
if (t?.variants == null) return
|
|
2813
|
-
const { variants:
|
|
2812
|
+
if (t?.variants == null) return He(e, r?.class, r?.className);
|
|
2813
|
+
const { variants: n, defaultVariants: s } = t, l = Object.keys(n).map((d) => {
|
|
2814
2814
|
const m = r?.[d], u = s?.[d];
|
|
2815
2815
|
if (m === null) return null;
|
|
2816
2816
|
const b = Be(m) || Be(u);
|
|
2817
|
-
return
|
|
2817
|
+
return n[d][b];
|
|
2818
2818
|
}), i = r && Object.entries(r).reduce((d, m) => {
|
|
2819
2819
|
let [u, b] = m;
|
|
2820
2820
|
return b === void 0 || (d[u] = b), d;
|
|
2821
2821
|
}, {}), c = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, m) => {
|
|
2822
|
-
let { class: u, className: b, ...
|
|
2823
|
-
return Object.entries(
|
|
2824
|
-
let [N, E] =
|
|
2822
|
+
let { class: u, className: b, ...S } = m;
|
|
2823
|
+
return Object.entries(S).every((v) => {
|
|
2824
|
+
let [N, E] = v;
|
|
2825
2825
|
return Array.isArray(E) ? E.includes({
|
|
2826
2826
|
...s,
|
|
2827
2827
|
...i
|
|
@@ -2835,8 +2835,8 @@ const Be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oe = Ze, K
|
|
|
2835
2835
|
b
|
|
2836
2836
|
] : d;
|
|
2837
2837
|
}, []);
|
|
2838
|
-
return
|
|
2839
|
-
}, mr =
|
|
2838
|
+
return He(e, l, c, r?.class, r?.className);
|
|
2839
|
+
}, mr = Z(
|
|
2840
2840
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2841
2841
|
{
|
|
2842
2842
|
variants: {
|
|
@@ -2860,20 +2860,20 @@ const Be = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Oe = Ze, K
|
|
|
2860
2860
|
size: "default"
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
|
-
),
|
|
2864
|
-
({ className: e, variant: t, size: r, asChild: o = !1, disabled:
|
|
2863
|
+
), J = w.forwardRef(
|
|
2864
|
+
({ className: e, variant: t, size: r, asChild: o = !1, disabled: n, ...s }, l) => /* @__PURE__ */ a(
|
|
2865
2865
|
o ? St : "button",
|
|
2866
2866
|
{
|
|
2867
2867
|
className: h(mr({ variant: t, size: r, className: e })),
|
|
2868
2868
|
ref: l,
|
|
2869
2869
|
type: s.type || "button",
|
|
2870
|
-
disabled:
|
|
2871
|
-
"aria-disabled":
|
|
2870
|
+
disabled: n,
|
|
2871
|
+
"aria-disabled": n ? "true" : void 0,
|
|
2872
2872
|
...s
|
|
2873
2873
|
}
|
|
2874
2874
|
)
|
|
2875
2875
|
);
|
|
2876
|
-
|
|
2876
|
+
J.displayName = "Button";
|
|
2877
2877
|
const fr = (e) => {
|
|
2878
2878
|
switch (e) {
|
|
2879
2879
|
case "h1":
|
|
@@ -2946,12 +2946,12 @@ const fr = (e) => {
|
|
|
2946
2946
|
default:
|
|
2947
2947
|
return "text-left";
|
|
2948
2948
|
}
|
|
2949
|
-
},
|
|
2949
|
+
}, A = ({
|
|
2950
2950
|
variant: e = "body",
|
|
2951
2951
|
color: t = "primary",
|
|
2952
2952
|
weight: r,
|
|
2953
2953
|
align: o = "left",
|
|
2954
|
-
truncate:
|
|
2954
|
+
truncate: n = !1,
|
|
2955
2955
|
children: s,
|
|
2956
2956
|
className: l,
|
|
2957
2957
|
as: i,
|
|
@@ -2963,10 +2963,10 @@ const fr = (e) => {
|
|
|
2963
2963
|
pr(t),
|
|
2964
2964
|
gr(r),
|
|
2965
2965
|
hr(o),
|
|
2966
|
-
|
|
2966
|
+
n && "truncate",
|
|
2967
2967
|
l
|
|
2968
2968
|
);
|
|
2969
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ a(d, { className: m, ...c, children: s });
|
|
2970
2970
|
};
|
|
2971
2971
|
function br(e) {
|
|
2972
2972
|
switch (e) {
|
|
@@ -3024,14 +3024,14 @@ const xr = (e) => {
|
|
|
3024
3024
|
title: t,
|
|
3025
3025
|
subtitle: r,
|
|
3026
3026
|
className: o,
|
|
3027
|
-
padding:
|
|
3027
|
+
padding: n = "md",
|
|
3028
3028
|
shadow: s = "md",
|
|
3029
3029
|
borderRadius: l = "md",
|
|
3030
3030
|
onClick: i
|
|
3031
3031
|
}) => {
|
|
3032
3032
|
const c = !!i, d = h(
|
|
3033
3033
|
"bg-card",
|
|
3034
|
-
xr(
|
|
3034
|
+
xr(n),
|
|
3035
3035
|
yr(s),
|
|
3036
3036
|
vr(l),
|
|
3037
3037
|
"transition-all duration-200 ease-in-out",
|
|
@@ -3040,14 +3040,14 @@ const xr = (e) => {
|
|
|
3040
3040
|
);
|
|
3041
3041
|
return /* @__PURE__ */ f("div", { className: d, onClick: i, children: [
|
|
3042
3042
|
(t || r) && /* @__PURE__ */ f("div", { className: "mb-4", children: [
|
|
3043
|
-
t && /* @__PURE__ */
|
|
3044
|
-
r && /* @__PURE__ */
|
|
3043
|
+
t && /* @__PURE__ */ a("div", { className: "mb-2", children: /* @__PURE__ */ a(A, { variant: "h3", children: t }) }),
|
|
3044
|
+
r && /* @__PURE__ */ a("div", { className: "text-muted-foreground", children: /* @__PURE__ */ a(A, { variant: "body-sm", color: "muted", children: r }) })
|
|
3045
3045
|
] }),
|
|
3046
|
-
/* @__PURE__ */
|
|
3046
|
+
/* @__PURE__ */ a("div", { className: "flex-1", children: e })
|
|
3047
3047
|
] });
|
|
3048
3048
|
}, wr = ({
|
|
3049
3049
|
children: e
|
|
3050
|
-
}) => /* @__PURE__ */
|
|
3050
|
+
}) => /* @__PURE__ */ a("div", { className: "mt-4 pt-4 border-t border-border", children: e }), Ro = Object.assign(st, {
|
|
3051
3051
|
Footer: wr
|
|
3052
3052
|
}), kr = (e) => {
|
|
3053
3053
|
switch (e) {
|
|
@@ -3067,34 +3067,34 @@ const xr = (e) => {
|
|
|
3067
3067
|
onClose: t,
|
|
3068
3068
|
title: r,
|
|
3069
3069
|
children: o,
|
|
3070
|
-
size:
|
|
3070
|
+
size: n = "md",
|
|
3071
3071
|
showCloseButton: s = !0,
|
|
3072
3072
|
closeOnOverlayClick: l = !0,
|
|
3073
3073
|
closeOnEscape: i = !0
|
|
3074
3074
|
}) => {
|
|
3075
|
-
const c =
|
|
3076
|
-
if (
|
|
3075
|
+
const c = Ae.useRef(null);
|
|
3076
|
+
if (we(() => {
|
|
3077
3077
|
if (!e || !i) return;
|
|
3078
|
-
const
|
|
3078
|
+
const v = (N) => {
|
|
3079
3079
|
N.key === "Escape" && t();
|
|
3080
3080
|
};
|
|
3081
|
-
return document.addEventListener("keydown",
|
|
3082
|
-
}, [e, i, t]),
|
|
3081
|
+
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
3082
|
+
}, [e, i, t]), we(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3083
3083
|
document.body.style.overflow = "unset";
|
|
3084
|
-
}), [e]),
|
|
3084
|
+
}), [e]), we(() => {
|
|
3085
3085
|
e && c.current && c.current.focus();
|
|
3086
3086
|
}, [e]), !e) return null;
|
|
3087
3087
|
const d = h(
|
|
3088
3088
|
"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"
|
|
3089
3089
|
), m = h(
|
|
3090
3090
|
"bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",
|
|
3091
|
-
kr(
|
|
3091
|
+
kr(n)
|
|
3092
3092
|
), u = h(
|
|
3093
3093
|
"p-6 border-b border-border flex items-center justify-between"
|
|
3094
|
-
), b = h("p-6 overflow-y-auto flex-1"),
|
|
3094
|
+
), b = h("p-6 overflow-y-auto flex-1"), S = h(
|
|
3095
3095
|
"bg-none border-none text-xl cursor-pointer text-muted-foreground p-1 rounded-sm flex items-center justify-center hover:bg-accent hover:text-accent-foreground focus:outline-2 focus:outline-primary focus:outline-offset-2"
|
|
3096
3096
|
);
|
|
3097
|
-
return /* @__PURE__ */
|
|
3097
|
+
return /* @__PURE__ */ a(
|
|
3098
3098
|
"div",
|
|
3099
3099
|
{
|
|
3100
3100
|
className: d,
|
|
@@ -3104,25 +3104,25 @@ const xr = (e) => {
|
|
|
3104
3104
|
{
|
|
3105
3105
|
ref: c,
|
|
3106
3106
|
className: m,
|
|
3107
|
-
onClick: (
|
|
3107
|
+
onClick: (v) => v.stopPropagation(),
|
|
3108
3108
|
tabIndex: -1,
|
|
3109
3109
|
role: "dialog",
|
|
3110
3110
|
"aria-modal": "true",
|
|
3111
3111
|
"aria-labelledby": r ? "modal-title" : void 0,
|
|
3112
3112
|
children: [
|
|
3113
3113
|
(r || s) && /* @__PURE__ */ f("div", { className: u, children: [
|
|
3114
|
-
r && /* @__PURE__ */
|
|
3115
|
-
s && /* @__PURE__ */
|
|
3114
|
+
r && /* @__PURE__ */ a(A, { variant: "h3", className: "text-foreground", children: r }),
|
|
3115
|
+
s && /* @__PURE__ */ a(
|
|
3116
3116
|
"button",
|
|
3117
3117
|
{
|
|
3118
3118
|
onClick: t,
|
|
3119
3119
|
"aria-label": "Close modal",
|
|
3120
|
-
className:
|
|
3120
|
+
className: S,
|
|
3121
3121
|
children: "×"
|
|
3122
3122
|
}
|
|
3123
3123
|
)
|
|
3124
3124
|
] }),
|
|
3125
|
-
/* @__PURE__ */
|
|
3125
|
+
/* @__PURE__ */ a("div", { className: b, children: o })
|
|
3126
3126
|
]
|
|
3127
3127
|
}
|
|
3128
3128
|
)
|
|
@@ -3133,29 +3133,29 @@ const xr = (e) => {
|
|
|
3133
3133
|
actions: t,
|
|
3134
3134
|
...r
|
|
3135
3135
|
}) => /* @__PURE__ */ f(Nr, { ...r, children: [
|
|
3136
|
-
/* @__PURE__ */
|
|
3137
|
-
t && /* @__PURE__ */
|
|
3138
|
-
] }),
|
|
3136
|
+
/* @__PURE__ */ a("div", { className: "p-6 overflow-y-auto flex-1", children: e }),
|
|
3137
|
+
t && /* @__PURE__ */ a("div", { className: "p-6 border-t border-border flex justify-end gap-3", children: t })
|
|
3138
|
+
] }), Lo = ({
|
|
3139
3139
|
isOpen: e,
|
|
3140
3140
|
onClose: t,
|
|
3141
3141
|
onConfirm: r,
|
|
3142
3142
|
title: o,
|
|
3143
|
-
message:
|
|
3143
|
+
message: n,
|
|
3144
3144
|
confirmText: s = "Confirm",
|
|
3145
3145
|
cancelText: l = "Cancel"
|
|
3146
|
-
}) => /* @__PURE__ */
|
|
3146
|
+
}) => /* @__PURE__ */ a(
|
|
3147
3147
|
Cr,
|
|
3148
3148
|
{
|
|
3149
3149
|
isOpen: e,
|
|
3150
3150
|
onClose: t,
|
|
3151
3151
|
title: o,
|
|
3152
|
-
actions: /* @__PURE__ */ f(
|
|
3153
|
-
/* @__PURE__ */
|
|
3154
|
-
/* @__PURE__ */
|
|
3152
|
+
actions: /* @__PURE__ */ f(xe, { children: [
|
|
3153
|
+
/* @__PURE__ */ a(J, { variant: "secondary", onClick: t, children: l }),
|
|
3154
|
+
/* @__PURE__ */ a(J, { variant: "default", onClick: r, children: s })
|
|
3155
3155
|
] }),
|
|
3156
|
-
children: /* @__PURE__ */
|
|
3156
|
+
children: /* @__PURE__ */ a(A, { children: n })
|
|
3157
3157
|
}
|
|
3158
|
-
), Mr =
|
|
3158
|
+
), Mr = Z(
|
|
3159
3159
|
[
|
|
3160
3160
|
// Base styles
|
|
3161
3161
|
"flex w-full rounded-md border bg-background px-3 py-2",
|
|
@@ -3183,7 +3183,7 @@ const xr = (e) => {
|
|
|
3183
3183
|
inputSize: "default"
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
|
-
), Sr =
|
|
3186
|
+
), Sr = Z(
|
|
3187
3187
|
["block text-sm font-medium mb-1.5", "transition-colors"],
|
|
3188
3188
|
{
|
|
3189
3189
|
variants: {
|
|
@@ -3202,7 +3202,7 @@ const xr = (e) => {
|
|
|
3202
3202
|
required: !1
|
|
3203
3203
|
}
|
|
3204
3204
|
}
|
|
3205
|
-
), Pr =
|
|
3205
|
+
), Pr = Z("mt-1.5 text-sm", {
|
|
3206
3206
|
variants: {
|
|
3207
3207
|
variant: {
|
|
3208
3208
|
default: "text-muted-foreground",
|
|
@@ -3213,13 +3213,13 @@ const xr = (e) => {
|
|
|
3213
3213
|
defaultVariants: {
|
|
3214
3214
|
variant: "default"
|
|
3215
3215
|
}
|
|
3216
|
-
}),
|
|
3216
|
+
}), oe = w.forwardRef(
|
|
3217
3217
|
({
|
|
3218
3218
|
className: e,
|
|
3219
3219
|
containerClassName: t,
|
|
3220
3220
|
labelClassName: r,
|
|
3221
3221
|
variant: o,
|
|
3222
|
-
inputSize:
|
|
3222
|
+
inputSize: n,
|
|
3223
3223
|
label: s,
|
|
3224
3224
|
helperText: l,
|
|
3225
3225
|
error: i,
|
|
@@ -3228,10 +3228,10 @@ const xr = (e) => {
|
|
|
3228
3228
|
suffix: m,
|
|
3229
3229
|
id: u,
|
|
3230
3230
|
...b
|
|
3231
|
-
},
|
|
3232
|
-
const
|
|
3231
|
+
}, S) => {
|
|
3232
|
+
const v = w.useId(), N = u || v, E = `${N}-helper`, z = `${N}-error`, R = i ? "error" : o, k = i || l;
|
|
3233
3233
|
return /* @__PURE__ */ f("div", { className: h("w-full", t), children: [
|
|
3234
|
-
s && /* @__PURE__ */
|
|
3234
|
+
s && /* @__PURE__ */ a(
|
|
3235
3235
|
"label",
|
|
3236
3236
|
{
|
|
3237
3237
|
htmlFor: N,
|
|
@@ -3243,49 +3243,49 @@ const xr = (e) => {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
),
|
|
3245
3245
|
/* @__PURE__ */ f("div", { className: "relative", children: [
|
|
3246
|
-
d && /* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3246
|
+
d && /* @__PURE__ */ a("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: d }),
|
|
3247
|
+
/* @__PURE__ */ a(
|
|
3248
3248
|
"input",
|
|
3249
3249
|
{
|
|
3250
3250
|
id: N,
|
|
3251
|
-
ref:
|
|
3251
|
+
ref: S,
|
|
3252
3252
|
className: h(
|
|
3253
|
-
Mr({ variant: R, inputSize:
|
|
3253
|
+
Mr({ variant: R, inputSize: n }),
|
|
3254
3254
|
d && "pl-10",
|
|
3255
3255
|
m && "pr-10",
|
|
3256
3256
|
e
|
|
3257
3257
|
),
|
|
3258
3258
|
"aria-invalid": i ? "true" : "false",
|
|
3259
|
-
"aria-describedby":
|
|
3259
|
+
"aria-describedby": k ? i ? z : E : void 0,
|
|
3260
3260
|
...b
|
|
3261
3261
|
}
|
|
3262
3262
|
),
|
|
3263
|
-
m && /* @__PURE__ */
|
|
3263
|
+
m && /* @__PURE__ */ a("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: m })
|
|
3264
3264
|
] }),
|
|
3265
|
-
|
|
3265
|
+
k && /* @__PURE__ */ a(
|
|
3266
3266
|
"p",
|
|
3267
3267
|
{
|
|
3268
|
-
id: i ?
|
|
3268
|
+
id: i ? z : E,
|
|
3269
3269
|
className: Pr({ variant: R }),
|
|
3270
3270
|
role: i ? "alert" : void 0,
|
|
3271
|
-
children:
|
|
3271
|
+
children: k
|
|
3272
3272
|
}
|
|
3273
3273
|
)
|
|
3274
3274
|
] });
|
|
3275
3275
|
}
|
|
3276
3276
|
);
|
|
3277
|
-
|
|
3277
|
+
oe.displayName = "Input";
|
|
3278
3278
|
/**
|
|
3279
3279
|
* @license lucide-react v0.547.0 - ISC
|
|
3280
3280
|
*
|
|
3281
3281
|
* This source code is licensed under the ISC license.
|
|
3282
3282
|
* See the LICENSE file in the root directory of this source tree.
|
|
3283
3283
|
*/
|
|
3284
|
-
const
|
|
3284
|
+
const Ir = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (e) => e.replace(
|
|
3285
3285
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3286
3286
|
(t, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
3287
|
-
),
|
|
3288
|
-
const t =
|
|
3287
|
+
), Oe = (e) => {
|
|
3288
|
+
const t = Er(e);
|
|
3289
3289
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3290
3290
|
}, it = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim(), zr = (e) => {
|
|
3291
3291
|
for (const t in e)
|
|
@@ -3298,7 +3298,7 @@ const Er = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ir = (
|
|
|
3298
3298
|
* This source code is licensed under the ISC license.
|
|
3299
3299
|
* See the LICENSE file in the root directory of this source tree.
|
|
3300
3300
|
*/
|
|
3301
|
-
var
|
|
3301
|
+
var Ar = {
|
|
3302
3302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3303
3303
|
width: 24,
|
|
3304
3304
|
height: 24,
|
|
@@ -3315,31 +3315,31 @@ var Rr = {
|
|
|
3315
3315
|
* This source code is licensed under the ISC license.
|
|
3316
3316
|
* See the LICENSE file in the root directory of this source tree.
|
|
3317
3317
|
*/
|
|
3318
|
-
const
|
|
3318
|
+
const Rr = qe(
|
|
3319
3319
|
({
|
|
3320
3320
|
color: e = "currentColor",
|
|
3321
3321
|
size: t = 24,
|
|
3322
3322
|
strokeWidth: r = 2,
|
|
3323
3323
|
absoluteStrokeWidth: o,
|
|
3324
|
-
className:
|
|
3324
|
+
className: n = "",
|
|
3325
3325
|
children: s,
|
|
3326
3326
|
iconNode: l,
|
|
3327
3327
|
...i
|
|
3328
|
-
}, c) =>
|
|
3328
|
+
}, c) => Pe(
|
|
3329
3329
|
"svg",
|
|
3330
3330
|
{
|
|
3331
3331
|
ref: c,
|
|
3332
|
-
...
|
|
3332
|
+
...Ar,
|
|
3333
3333
|
width: t,
|
|
3334
3334
|
height: t,
|
|
3335
3335
|
stroke: e,
|
|
3336
3336
|
strokeWidth: o ? Number(r) * 24 / Number(t) : r,
|
|
3337
|
-
className: it("lucide",
|
|
3337
|
+
className: it("lucide", n),
|
|
3338
3338
|
...!s && !zr(i) && { "aria-hidden": "true" },
|
|
3339
3339
|
...i
|
|
3340
3340
|
},
|
|
3341
3341
|
[
|
|
3342
|
-
...l.map(([d, m]) =>
|
|
3342
|
+
...l.map(([d, m]) => Pe(d, m)),
|
|
3343
3343
|
...Array.isArray(s) ? s : [s]
|
|
3344
3344
|
]
|
|
3345
3345
|
)
|
|
@@ -3350,20 +3350,20 @@ const Ar = qe(
|
|
|
3350
3350
|
* This source code is licensed under the ISC license.
|
|
3351
3351
|
* See the LICENSE file in the root directory of this source tree.
|
|
3352
3352
|
*/
|
|
3353
|
-
const
|
|
3353
|
+
const W = (e, t) => {
|
|
3354
3354
|
const r = qe(
|
|
3355
|
-
({ className: o, ...
|
|
3355
|
+
({ className: o, ...n }, s) => Pe(Rr, {
|
|
3356
3356
|
ref: s,
|
|
3357
3357
|
iconNode: t,
|
|
3358
3358
|
className: it(
|
|
3359
|
-
`lucide-${
|
|
3359
|
+
`lucide-${Ir(Oe(e))}`,
|
|
3360
3360
|
`lucide-${e}`,
|
|
3361
3361
|
o
|
|
3362
3362
|
),
|
|
3363
|
-
...
|
|
3363
|
+
...n
|
|
3364
3364
|
})
|
|
3365
3365
|
);
|
|
3366
|
-
return r.displayName =
|
|
3366
|
+
return r.displayName = Oe(e), r;
|
|
3367
3367
|
};
|
|
3368
3368
|
/**
|
|
3369
3369
|
* @license lucide-react v0.547.0 - ISC
|
|
@@ -3383,7 +3383,7 @@ const Lr = [
|
|
|
3383
3383
|
key: "14ym8i"
|
|
3384
3384
|
}
|
|
3385
3385
|
]
|
|
3386
|
-
], Tr =
|
|
3386
|
+
], Tr = W("bath", Lr);
|
|
3387
3387
|
/**
|
|
3388
3388
|
* @license lucide-react v0.547.0 - ISC
|
|
3389
3389
|
*
|
|
@@ -3395,7 +3395,7 @@ const jr = [
|
|
|
3395
3395
|
["path", { d: "M2 8h18a2 2 0 0 1 2 2v10", key: "1dgv2r" }],
|
|
3396
3396
|
["path", { d: "M2 17h20", key: "18nfp3" }],
|
|
3397
3397
|
["path", { d: "M6 8v9", key: "1yriud" }]
|
|
3398
|
-
], $r =
|
|
3398
|
+
], $r = W("bed", jr);
|
|
3399
3399
|
/**
|
|
3400
3400
|
* @license lucide-react v0.547.0 - ISC
|
|
3401
3401
|
*
|
|
@@ -3413,41 +3413,41 @@ const Vr = [
|
|
|
3413
3413
|
["circle", { cx: "7", cy: "17", r: "2", key: "u2ysq9" }],
|
|
3414
3414
|
["path", { d: "M9 17h6", key: "r8uit2" }],
|
|
3415
3415
|
["circle", { cx: "17", cy: "17", r: "2", key: "axvx0g" }]
|
|
3416
|
-
], Fr =
|
|
3416
|
+
], Fr = W("car", Vr);
|
|
3417
3417
|
/**
|
|
3418
3418
|
* @license lucide-react v0.547.0 - ISC
|
|
3419
3419
|
*
|
|
3420
3420
|
* This source code is licensed under the ISC license.
|
|
3421
3421
|
* See the LICENSE file in the root directory of this source tree.
|
|
3422
3422
|
*/
|
|
3423
|
-
const _r = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Dr =
|
|
3423
|
+
const _r = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Dr = W("chevron-down", _r);
|
|
3424
3424
|
/**
|
|
3425
3425
|
* @license lucide-react v0.547.0 - ISC
|
|
3426
3426
|
*
|
|
3427
3427
|
* This source code is licensed under the ISC license.
|
|
3428
3428
|
* See the LICENSE file in the root directory of this source tree.
|
|
3429
3429
|
*/
|
|
3430
|
-
const Gr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Wr =
|
|
3430
|
+
const Gr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Wr = W("chevron-left", Gr);
|
|
3431
3431
|
/**
|
|
3432
3432
|
* @license lucide-react v0.547.0 - ISC
|
|
3433
3433
|
*
|
|
3434
3434
|
* This source code is licensed under the ISC license.
|
|
3435
3435
|
* See the LICENSE file in the root directory of this source tree.
|
|
3436
3436
|
*/
|
|
3437
|
-
const Br = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
3437
|
+
const Br = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Hr = W("chevron-right", Br);
|
|
3438
3438
|
/**
|
|
3439
3439
|
* @license lucide-react v0.547.0 - ISC
|
|
3440
3440
|
*
|
|
3441
3441
|
* This source code is licensed under the ISC license.
|
|
3442
3442
|
* See the LICENSE file in the root directory of this source tree.
|
|
3443
3443
|
*/
|
|
3444
|
-
const
|
|
3444
|
+
const Or = [
|
|
3445
3445
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3446
3446
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
3447
3447
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
3448
3448
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
3449
3449
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
3450
|
-
], Ur =
|
|
3450
|
+
], Ur = W("grid-3x3", Or);
|
|
3451
3451
|
/**
|
|
3452
3452
|
* @license lucide-react v0.547.0 - ISC
|
|
3453
3453
|
*
|
|
@@ -3462,7 +3462,7 @@ const qr = [
|
|
|
3462
3462
|
key: "mvr1a0"
|
|
3463
3463
|
}
|
|
3464
3464
|
]
|
|
3465
|
-
], Xr =
|
|
3465
|
+
], Xr = W("heart", qr);
|
|
3466
3466
|
/**
|
|
3467
3467
|
* @license lucide-react v0.547.0 - ISC
|
|
3468
3468
|
*
|
|
@@ -3470,6 +3470,22 @@ const qr = [
|
|
|
3470
3470
|
* See the LICENSE file in the root directory of this source tree.
|
|
3471
3471
|
*/
|
|
3472
3472
|
const Zr = [
|
|
3473
|
+
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
3474
|
+
[
|
|
3475
|
+
"path",
|
|
3476
|
+
{
|
|
3477
|
+
d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
3478
|
+
key: "r6nss1"
|
|
3479
|
+
}
|
|
3480
|
+
]
|
|
3481
|
+
], Kr = W("house", Zr);
|
|
3482
|
+
/**
|
|
3483
|
+
* @license lucide-react v0.547.0 - ISC
|
|
3484
|
+
*
|
|
3485
|
+
* This source code is licensed under the ISC license.
|
|
3486
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3487
|
+
*/
|
|
3488
|
+
const Qr = [
|
|
3473
3489
|
[
|
|
3474
3490
|
"path",
|
|
3475
3491
|
{
|
|
@@ -3478,29 +3494,29 @@ const Zr = [
|
|
|
3478
3494
|
}
|
|
3479
3495
|
],
|
|
3480
3496
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
3481
|
-
],
|
|
3497
|
+
], Jr = W("map-pin", Qr);
|
|
3482
3498
|
/**
|
|
3483
3499
|
* @license lucide-react v0.547.0 - ISC
|
|
3484
3500
|
*
|
|
3485
3501
|
* This source code is licensed under the ISC license.
|
|
3486
3502
|
* See the LICENSE file in the root directory of this source tree.
|
|
3487
3503
|
*/
|
|
3488
|
-
const
|
|
3504
|
+
const Yr = [
|
|
3489
3505
|
["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
|
|
3490
3506
|
["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
|
|
3491
3507
|
["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }],
|
|
3492
3508
|
["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3", key: "18trek" }]
|
|
3493
|
-
],
|
|
3509
|
+
], eo = W("maximize", Yr);
|
|
3494
3510
|
/**
|
|
3495
3511
|
* @license lucide-react v0.547.0 - ISC
|
|
3496
3512
|
*
|
|
3497
3513
|
* This source code is licensed under the ISC license.
|
|
3498
3514
|
* See the LICENSE file in the root directory of this source tree.
|
|
3499
3515
|
*/
|
|
3500
|
-
const
|
|
3516
|
+
const to = [
|
|
3501
3517
|
["path", { d: "M16 7h6v6", key: "box55l" }],
|
|
3502
3518
|
["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
|
|
3503
|
-
],
|
|
3519
|
+
], ro = W("trending-up", to), oo = Z(
|
|
3504
3520
|
[
|
|
3505
3521
|
// Base styles
|
|
3506
3522
|
"flex w-full rounded-md border bg-background px-3 py-2",
|
|
@@ -3527,7 +3543,7 @@ const Yr = [
|
|
|
3527
3543
|
selectSize: "default"
|
|
3528
3544
|
}
|
|
3529
3545
|
}
|
|
3530
|
-
),
|
|
3546
|
+
), ao = Z(
|
|
3531
3547
|
["block text-sm font-medium mb-1.5", "transition-colors"],
|
|
3532
3548
|
{
|
|
3533
3549
|
variants: {
|
|
@@ -3546,7 +3562,7 @@ const Yr = [
|
|
|
3546
3562
|
required: !1
|
|
3547
3563
|
}
|
|
3548
3564
|
}
|
|
3549
|
-
),
|
|
3565
|
+
), no = Z("mt-1.5 text-sm", {
|
|
3550
3566
|
variants: {
|
|
3551
3567
|
variant: {
|
|
3552
3568
|
default: "text-muted-foreground",
|
|
@@ -3557,13 +3573,13 @@ const Yr = [
|
|
|
3557
3573
|
defaultVariants: {
|
|
3558
3574
|
variant: "default"
|
|
3559
3575
|
}
|
|
3560
|
-
}), lt =
|
|
3576
|
+
}), lt = w.forwardRef(
|
|
3561
3577
|
({
|
|
3562
3578
|
className: e,
|
|
3563
3579
|
containerClassName: t,
|
|
3564
3580
|
labelClassName: r,
|
|
3565
3581
|
variant: o,
|
|
3566
|
-
selectSize:
|
|
3582
|
+
selectSize: n,
|
|
3567
3583
|
label: s,
|
|
3568
3584
|
helperText: l,
|
|
3569
3585
|
error: i,
|
|
@@ -3572,15 +3588,15 @@ const Yr = [
|
|
|
3572
3588
|
placeholder: m,
|
|
3573
3589
|
id: u,
|
|
3574
3590
|
...b
|
|
3575
|
-
},
|
|
3576
|
-
const
|
|
3591
|
+
}, S) => {
|
|
3592
|
+
const v = w.useId(), N = u || v, E = `${N}-helper`, z = `${N}-error`, R = i ? "error" : o, k = i || l;
|
|
3577
3593
|
return /* @__PURE__ */ f("div", { className: h("w-full", t), children: [
|
|
3578
|
-
s && /* @__PURE__ */
|
|
3594
|
+
s && /* @__PURE__ */ a(
|
|
3579
3595
|
"label",
|
|
3580
3596
|
{
|
|
3581
3597
|
htmlFor: N,
|
|
3582
3598
|
className: h(
|
|
3583
|
-
|
|
3599
|
+
ao({ variant: R, required: c }),
|
|
3584
3600
|
r
|
|
3585
3601
|
),
|
|
3586
3602
|
children: s
|
|
@@ -3591,74 +3607,74 @@ const Yr = [
|
|
|
3591
3607
|
"select",
|
|
3592
3608
|
{
|
|
3593
3609
|
id: N,
|
|
3594
|
-
ref:
|
|
3610
|
+
ref: S,
|
|
3595
3611
|
className: h(
|
|
3596
|
-
|
|
3612
|
+
oo({ variant: R, selectSize: n }),
|
|
3597
3613
|
"pr-10",
|
|
3598
3614
|
// Space for chevron icon
|
|
3599
3615
|
e
|
|
3600
3616
|
),
|
|
3601
3617
|
"aria-invalid": i ? "true" : "false",
|
|
3602
|
-
"aria-describedby":
|
|
3618
|
+
"aria-describedby": k ? i ? z : E : void 0,
|
|
3603
3619
|
...b,
|
|
3604
3620
|
children: [
|
|
3605
|
-
m && /* @__PURE__ */
|
|
3606
|
-
d.map((
|
|
3621
|
+
m && /* @__PURE__ */ a("option", { value: "", disabled: !0, children: m }),
|
|
3622
|
+
d.map((I) => /* @__PURE__ */ a(
|
|
3607
3623
|
"option",
|
|
3608
3624
|
{
|
|
3609
|
-
value:
|
|
3610
|
-
disabled:
|
|
3611
|
-
children:
|
|
3625
|
+
value: I.value,
|
|
3626
|
+
disabled: I.disabled,
|
|
3627
|
+
children: I.label
|
|
3612
3628
|
},
|
|
3613
|
-
|
|
3629
|
+
I.value
|
|
3614
3630
|
))
|
|
3615
3631
|
]
|
|
3616
3632
|
}
|
|
3617
3633
|
),
|
|
3618
|
-
/* @__PURE__ */
|
|
3634
|
+
/* @__PURE__ */ a("div", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ a(Dr, { className: "h-4 w-4" }) })
|
|
3619
3635
|
] }),
|
|
3620
|
-
|
|
3636
|
+
k && /* @__PURE__ */ a(
|
|
3621
3637
|
"p",
|
|
3622
3638
|
{
|
|
3623
|
-
id: i ?
|
|
3624
|
-
className:
|
|
3639
|
+
id: i ? z : E,
|
|
3640
|
+
className: no({ variant: R }),
|
|
3625
3641
|
role: i ? "alert" : void 0,
|
|
3626
|
-
children:
|
|
3642
|
+
children: k
|
|
3627
3643
|
}
|
|
3628
3644
|
)
|
|
3629
3645
|
] });
|
|
3630
3646
|
}
|
|
3631
3647
|
);
|
|
3632
3648
|
lt.displayName = "Select";
|
|
3633
|
-
function
|
|
3634
|
-
const l = (e - 90) * Math.PI / 180, i = (t - 90) * Math.PI / 180, c =
|
|
3649
|
+
function so(e, t, r, o, n, s) {
|
|
3650
|
+
const l = (e - 90) * Math.PI / 180, i = (t - 90) * Math.PI / 180, c = n + r * Math.cos(l), d = s + r * Math.sin(l), m = n + r * Math.cos(i), u = s + r * Math.sin(i), b = n + o * Math.cos(i), S = s + o * Math.sin(i), v = n + o * Math.cos(l), N = s + o * Math.sin(l), E = t - e > 180 ? 1 : 0;
|
|
3635
3651
|
return [
|
|
3636
3652
|
`M ${c} ${d}`,
|
|
3637
3653
|
// Move to start point on outer arc
|
|
3638
3654
|
`A ${r} ${r} 0 ${E} 1 ${m} ${u}`,
|
|
3639
3655
|
// Outer arc
|
|
3640
|
-
`L ${b} ${
|
|
3656
|
+
`L ${b} ${S}`,
|
|
3641
3657
|
// Line to inner arc
|
|
3642
|
-
`A ${o} ${o} 0 ${E} 0 ${
|
|
3658
|
+
`A ${o} ${o} 0 ${E} 0 ${v} ${N}`,
|
|
3643
3659
|
// Inner arc (reverse)
|
|
3644
3660
|
"Z"
|
|
3645
3661
|
// Close path
|
|
3646
3662
|
].join(" ");
|
|
3647
3663
|
}
|
|
3648
|
-
function
|
|
3664
|
+
function io(e, t, r, o, n) {
|
|
3649
3665
|
const s = e.reduce((c, d) => c + d.value, 0);
|
|
3650
3666
|
if (s === 0)
|
|
3651
3667
|
return [];
|
|
3652
3668
|
let l = 0;
|
|
3653
3669
|
const i = [];
|
|
3654
3670
|
return e.forEach((c) => {
|
|
3655
|
-
const d = c.value / s * 360, m = l, u = l + d, b =
|
|
3671
|
+
const d = c.value / s * 360, m = l, u = l + d, b = so(
|
|
3656
3672
|
m,
|
|
3657
3673
|
u,
|
|
3658
3674
|
t,
|
|
3659
3675
|
r,
|
|
3660
3676
|
o,
|
|
3661
|
-
|
|
3677
|
+
n
|
|
3662
3678
|
);
|
|
3663
3679
|
i.push({
|
|
3664
3680
|
path: b,
|
|
@@ -3666,34 +3682,34 @@ function ao(e, t, r, o, a) {
|
|
|
3666
3682
|
}), l = u;
|
|
3667
3683
|
}), i;
|
|
3668
3684
|
}
|
|
3669
|
-
const ct =
|
|
3685
|
+
const ct = w.forwardRef(
|
|
3670
3686
|
({
|
|
3671
3687
|
segments: e,
|
|
3672
3688
|
size: t = 300,
|
|
3673
3689
|
innerRadiusRatio: r = 0.6,
|
|
3674
3690
|
centerContent: o,
|
|
3675
|
-
showLegend:
|
|
3691
|
+
showLegend: n = !1,
|
|
3676
3692
|
legendPosition: s = "bottom",
|
|
3677
3693
|
className: l,
|
|
3678
3694
|
onSegmentClick: i,
|
|
3679
3695
|
onSegmentHover: c
|
|
3680
3696
|
}, d) => {
|
|
3681
|
-
const [m, u] =
|
|
3697
|
+
const [m, u] = w.useState(null), b = t / 2, S = t / 2, v = 2, N = t / 2 - v, E = N * r, z = io(
|
|
3682
3698
|
e,
|
|
3683
3699
|
N,
|
|
3684
3700
|
E,
|
|
3685
3701
|
b,
|
|
3686
|
-
|
|
3687
|
-
), R = (
|
|
3688
|
-
u(
|
|
3689
|
-
},
|
|
3702
|
+
S
|
|
3703
|
+
), R = (I) => {
|
|
3704
|
+
u(I), c?.(I);
|
|
3705
|
+
}, k = s === "left" || s === "right";
|
|
3690
3706
|
return /* @__PURE__ */ f(
|
|
3691
3707
|
"div",
|
|
3692
3708
|
{
|
|
3693
3709
|
ref: d,
|
|
3694
3710
|
className: h(
|
|
3695
3711
|
"flex gap-4",
|
|
3696
|
-
|
|
3712
|
+
k ? "flex-row items-center" : "flex-col items-center",
|
|
3697
3713
|
s === "right" && "flex-row-reverse",
|
|
3698
3714
|
s === "top" && "flex-col-reverse",
|
|
3699
3715
|
l
|
|
@@ -3705,25 +3721,25 @@ const ct = k.forwardRef(
|
|
|
3705
3721
|
className: "relative inline-block",
|
|
3706
3722
|
style: { width: t, height: t },
|
|
3707
3723
|
children: [
|
|
3708
|
-
/* @__PURE__ */
|
|
3724
|
+
/* @__PURE__ */ a("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children: z.map(({ path: I, segment: P }, F) => /* @__PURE__ */ a(
|
|
3709
3725
|
"path",
|
|
3710
3726
|
{
|
|
3711
|
-
d:
|
|
3712
|
-
fill:
|
|
3727
|
+
d: I,
|
|
3728
|
+
fill: P.color,
|
|
3713
3729
|
stroke: "white",
|
|
3714
|
-
strokeWidth:
|
|
3730
|
+
strokeWidth: v,
|
|
3715
3731
|
className: h(
|
|
3716
3732
|
"transition-opacity duration-200",
|
|
3717
|
-
m && m !==
|
|
3733
|
+
m && m !== P && "opacity-50",
|
|
3718
3734
|
i && "cursor-pointer"
|
|
3719
3735
|
),
|
|
3720
|
-
onMouseEnter: () => R(
|
|
3736
|
+
onMouseEnter: () => R(P),
|
|
3721
3737
|
onMouseLeave: () => R(null),
|
|
3722
|
-
onClick: () => i?.(
|
|
3738
|
+
onClick: () => i?.(P)
|
|
3723
3739
|
},
|
|
3724
|
-
`${
|
|
3740
|
+
`${P.label}-${F}`
|
|
3725
3741
|
)) }),
|
|
3726
|
-
o && /* @__PURE__ */
|
|
3742
|
+
o && /* @__PURE__ */ a(
|
|
3727
3743
|
"div",
|
|
3728
3744
|
{
|
|
3729
3745
|
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center",
|
|
@@ -3734,36 +3750,36 @@ const ct = k.forwardRef(
|
|
|
3734
3750
|
]
|
|
3735
3751
|
}
|
|
3736
3752
|
),
|
|
3737
|
-
|
|
3753
|
+
n && /* @__PURE__ */ a(
|
|
3738
3754
|
"div",
|
|
3739
3755
|
{
|
|
3740
3756
|
className: h(
|
|
3741
3757
|
"flex gap-2",
|
|
3742
|
-
|
|
3758
|
+
k ? "flex-col" : "flex-row flex-wrap justify-center"
|
|
3743
3759
|
),
|
|
3744
|
-
children: e.map((
|
|
3760
|
+
children: e.map((I, P) => /* @__PURE__ */ f(
|
|
3745
3761
|
"div",
|
|
3746
3762
|
{
|
|
3747
3763
|
className: h(
|
|
3748
3764
|
"flex items-center gap-2 text-sm transition-opacity duration-200",
|
|
3749
|
-
m && m !==
|
|
3765
|
+
m && m !== I && "opacity-50",
|
|
3750
3766
|
i && "cursor-pointer"
|
|
3751
3767
|
),
|
|
3752
|
-
onMouseEnter: () => R(
|
|
3768
|
+
onMouseEnter: () => R(I),
|
|
3753
3769
|
onMouseLeave: () => R(null),
|
|
3754
|
-
onClick: () => i?.(
|
|
3770
|
+
onClick: () => i?.(I),
|
|
3755
3771
|
children: [
|
|
3756
|
-
/* @__PURE__ */
|
|
3772
|
+
/* @__PURE__ */ a(
|
|
3757
3773
|
"div",
|
|
3758
3774
|
{
|
|
3759
3775
|
className: "h-3 w-3 rounded-sm flex-shrink-0",
|
|
3760
|
-
style: { backgroundColor:
|
|
3776
|
+
style: { backgroundColor: I.color }
|
|
3761
3777
|
}
|
|
3762
3778
|
),
|
|
3763
|
-
/* @__PURE__ */
|
|
3779
|
+
/* @__PURE__ */ a("span", { className: "text-muted-foreground", children: I.label })
|
|
3764
3780
|
]
|
|
3765
3781
|
},
|
|
3766
|
-
`${
|
|
3782
|
+
`${I.label}-${P}`
|
|
3767
3783
|
))
|
|
3768
3784
|
}
|
|
3769
3785
|
)
|
|
@@ -3773,14 +3789,14 @@ const ct = k.forwardRef(
|
|
|
3773
3789
|
}
|
|
3774
3790
|
);
|
|
3775
3791
|
ct.displayName = "DonutChart";
|
|
3776
|
-
function
|
|
3792
|
+
function lo(e, t) {
|
|
3777
3793
|
return !t || t === "all" ? e : e.filter((r) => r.categoryId === t);
|
|
3778
3794
|
}
|
|
3779
|
-
function
|
|
3795
|
+
function co(e, t) {
|
|
3780
3796
|
const r = [...e];
|
|
3781
|
-
return r.sort((o,
|
|
3797
|
+
return r.sort((o, n) => {
|
|
3782
3798
|
let s = "", l = "";
|
|
3783
|
-
return t.column === "title" ? (s = o.title.toLowerCase(), l =
|
|
3799
|
+
return t.column === "title" ? (s = o.title.toLowerCase(), l = n.title.toLowerCase()) : t.column === "metric" && (s = Ue(o.metricValue), l = Ue(n.metricValue)), s < l ? t.direction === "asc" ? -1 : 1 : s > l ? t.direction === "asc" ? 1 : -1 : 0;
|
|
3784
3800
|
}), r;
|
|
3785
3801
|
}
|
|
3786
3802
|
function Ue(e) {
|
|
@@ -3788,29 +3804,29 @@ function Ue(e) {
|
|
|
3788
3804
|
const t = e.match(/[\d.]+/);
|
|
3789
3805
|
return t ? parseFloat(t[0]) : 0;
|
|
3790
3806
|
}
|
|
3791
|
-
function
|
|
3807
|
+
function uo(e, t) {
|
|
3792
3808
|
return t === "all" ? e.length : e.filter((r) => r.categoryId === t).length;
|
|
3793
3809
|
}
|
|
3794
|
-
function
|
|
3810
|
+
function To(e, t, r = {}) {
|
|
3795
3811
|
const {
|
|
3796
3812
|
initialCategory: o = null,
|
|
3797
|
-
initialSort:
|
|
3813
|
+
initialSort: n = null,
|
|
3798
3814
|
enableSearch: s = !1
|
|
3799
|
-
} = r, [l, i] =
|
|
3815
|
+
} = r, [l, i] = ae(
|
|
3800
3816
|
o
|
|
3801
|
-
), [c, d] =
|
|
3817
|
+
), [c, d] = ae(n), [m, u] = ae(""), b = ke(() => lo(e, l), [e, l]), S = ke(() => {
|
|
3802
3818
|
if (!s || !m.trim())
|
|
3803
3819
|
return b;
|
|
3804
|
-
const
|
|
3820
|
+
const z = m.toLowerCase();
|
|
3805
3821
|
return b.filter(
|
|
3806
|
-
(R) => R.title.toLowerCase().includes(
|
|
3822
|
+
(R) => R.title.toLowerCase().includes(z) || R.subtitle?.toLowerCase().includes(z)
|
|
3807
3823
|
);
|
|
3808
|
-
}, [b, m, s]),
|
|
3809
|
-
(
|
|
3824
|
+
}, [b, m, s]), v = ke(() => c ? co(S, c) : S, [S, c]), N = Ve(
|
|
3825
|
+
(z) => uo(e, z),
|
|
3810
3826
|
[e]
|
|
3811
3827
|
), E = Ve(() => {
|
|
3812
|
-
i(o), d(
|
|
3813
|
-
}, [o,
|
|
3828
|
+
i(o), d(n), u("");
|
|
3829
|
+
}, [o, n]);
|
|
3814
3830
|
return {
|
|
3815
3831
|
activeCategory: l,
|
|
3816
3832
|
setActiveCategory: i,
|
|
@@ -3818,12 +3834,12 @@ function Ao(e, t, r = {}) {
|
|
|
3818
3834
|
setSort: d,
|
|
3819
3835
|
searchQuery: m,
|
|
3820
3836
|
setSearchQuery: u,
|
|
3821
|
-
filteredEntities:
|
|
3837
|
+
filteredEntities: v,
|
|
3822
3838
|
getCategoryCount: N,
|
|
3823
3839
|
resetFilters: E
|
|
3824
3840
|
};
|
|
3825
3841
|
}
|
|
3826
|
-
const
|
|
3842
|
+
const mo = Z(
|
|
3827
3843
|
"inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
3828
3844
|
{
|
|
3829
3845
|
variants: {
|
|
@@ -3845,13 +3861,13 @@ const co = K(
|
|
|
3845
3861
|
size: "default"
|
|
3846
3862
|
}
|
|
3847
3863
|
}
|
|
3848
|
-
),
|
|
3864
|
+
), Te = w.forwardRef(
|
|
3849
3865
|
({
|
|
3850
3866
|
className: e,
|
|
3851
3867
|
variant: t,
|
|
3852
3868
|
size: r,
|
|
3853
3869
|
icon: o,
|
|
3854
|
-
selected:
|
|
3870
|
+
selected: n,
|
|
3855
3871
|
dismissible: s,
|
|
3856
3872
|
onDismiss: l,
|
|
3857
3873
|
children: i,
|
|
@@ -3861,16 +3877,16 @@ const co = K(
|
|
|
3861
3877
|
"button",
|
|
3862
3878
|
{
|
|
3863
3879
|
type: "button",
|
|
3864
|
-
className: h(
|
|
3880
|
+
className: h(mo({ variant: n ? "selected" : t, size: r, className: e })),
|
|
3865
3881
|
ref: m,
|
|
3866
3882
|
disabled: c,
|
|
3867
3883
|
"aria-disabled": c ? "true" : void 0,
|
|
3868
|
-
"aria-pressed":
|
|
3884
|
+
"aria-pressed": n ? "true" : "false",
|
|
3869
3885
|
...d,
|
|
3870
3886
|
children: [
|
|
3871
|
-
o && /* @__PURE__ */
|
|
3872
|
-
/* @__PURE__ */
|
|
3873
|
-
s && l && /* @__PURE__ */
|
|
3887
|
+
o && /* @__PURE__ */ a("span", { className: "mr-1.5 inline-flex items-center", "aria-hidden": "true", children: o }),
|
|
3888
|
+
/* @__PURE__ */ a("span", { children: i }),
|
|
3889
|
+
s && l && /* @__PURE__ */ a(
|
|
3874
3890
|
"button",
|
|
3875
3891
|
{
|
|
3876
3892
|
type: "button",
|
|
@@ -3886,16 +3902,16 @@ const co = K(
|
|
|
3886
3902
|
}
|
|
3887
3903
|
)
|
|
3888
3904
|
);
|
|
3889
|
-
|
|
3890
|
-
const dt =
|
|
3905
|
+
Te.displayName = "Chip";
|
|
3906
|
+
const dt = w.forwardRef(
|
|
3891
3907
|
({
|
|
3892
3908
|
categories: e,
|
|
3893
3909
|
activeCategory: t,
|
|
3894
3910
|
onCategoryChange: r,
|
|
3895
3911
|
showCount: o,
|
|
3896
|
-
getCategoryCount:
|
|
3912
|
+
getCategoryCount: n,
|
|
3897
3913
|
className: s
|
|
3898
|
-
}, l) => /* @__PURE__ */
|
|
3914
|
+
}, l) => /* @__PURE__ */ a(
|
|
3899
3915
|
"div",
|
|
3900
3916
|
{
|
|
3901
3917
|
ref: l,
|
|
@@ -3906,16 +3922,16 @@ const dt = k.forwardRef(
|
|
|
3906
3922
|
s
|
|
3907
3923
|
),
|
|
3908
3924
|
children: e.map((i) => {
|
|
3909
|
-
const c = t === i.id, d = o &&
|
|
3925
|
+
const c = t === i.id, d = o && n ? n(i.id) : void 0;
|
|
3910
3926
|
return /* @__PURE__ */ f(
|
|
3911
|
-
|
|
3927
|
+
Te,
|
|
3912
3928
|
{
|
|
3913
3929
|
role: "tab",
|
|
3914
3930
|
"aria-selected": c,
|
|
3915
3931
|
"aria-controls": `entities-panel-${i.id}`,
|
|
3916
3932
|
selected: c,
|
|
3917
3933
|
variant: c ? "selected" : "outline",
|
|
3918
|
-
icon: typeof i.icon == "string" ? i.icon : i.icon ?
|
|
3934
|
+
icon: typeof i.icon == "string" ? i.icon : i.icon ? w.createElement(i.icon) : void 0,
|
|
3919
3935
|
onClick: () => r(c ? null : i.id),
|
|
3920
3936
|
children: [
|
|
3921
3937
|
i.label,
|
|
@@ -3933,10 +3949,10 @@ const dt = k.forwardRef(
|
|
|
3933
3949
|
)
|
|
3934
3950
|
);
|
|
3935
3951
|
dt.displayName = "CategoryChips";
|
|
3936
|
-
const
|
|
3952
|
+
const fo = (e, t) => {
|
|
3937
3953
|
if (t)
|
|
3938
3954
|
return "text-accent";
|
|
3939
|
-
switch (e.variant ||
|
|
3955
|
+
switch (e.variant || po(e.type)) {
|
|
3940
3956
|
case "primary":
|
|
3941
3957
|
return "bg-primary text-primary-foreground";
|
|
3942
3958
|
case "secondary":
|
|
@@ -3952,7 +3968,7 @@ const uo = (e, t) => {
|
|
|
3952
3968
|
default:
|
|
3953
3969
|
return "bg-secondary text-secondary-foreground";
|
|
3954
3970
|
}
|
|
3955
|
-
},
|
|
3971
|
+
}, po = (e) => {
|
|
3956
3972
|
switch (e) {
|
|
3957
3973
|
case "Venta":
|
|
3958
3974
|
return "primary";
|
|
@@ -3965,107 +3981,111 @@ const uo = (e, t) => {
|
|
|
3965
3981
|
default:
|
|
3966
3982
|
return "secondary";
|
|
3967
3983
|
}
|
|
3968
|
-
},
|
|
3984
|
+
}, jo = ({
|
|
3969
3985
|
property: e,
|
|
3970
3986
|
className: t,
|
|
3971
3987
|
onLike: r,
|
|
3972
3988
|
onImageClick: o,
|
|
3973
|
-
showLikeButton:
|
|
3989
|
+
showLikeButton: n = !0,
|
|
3974
3990
|
showNavigation: s = !0,
|
|
3975
3991
|
variant: l = "default",
|
|
3976
3992
|
badgeColors: i
|
|
3977
3993
|
}) => {
|
|
3978
|
-
const [c, d] =
|
|
3994
|
+
const [c, d] = ae(0), [m, u] = ae(!1), [b, S] = ae(!1), v = () => {
|
|
3979
3995
|
d(
|
|
3980
|
-
(
|
|
3981
|
-
);
|
|
3982
|
-
},
|
|
3996
|
+
(C) => C === e.images.length - 1 ? 0 : C + 1
|
|
3997
|
+
), S(!1);
|
|
3998
|
+
}, N = () => {
|
|
3983
3999
|
d(
|
|
3984
|
-
(
|
|
3985
|
-
);
|
|
3986
|
-
},
|
|
3987
|
-
|
|
3988
|
-
const
|
|
3989
|
-
u(
|
|
3990
|
-
},
|
|
3991
|
-
|
|
3992
|
-
},
|
|
4000
|
+
(C) => C === 0 ? e.images.length - 1 : C - 1
|
|
4001
|
+
), S(!1);
|
|
4002
|
+
}, E = (C) => {
|
|
4003
|
+
C.preventDefault(), C.stopPropagation();
|
|
4004
|
+
const $ = !m;
|
|
4005
|
+
u($), r?.(e.id, $);
|
|
4006
|
+
}, z = (C) => {
|
|
4007
|
+
C.preventDefault(), C.stopPropagation(), o?.(c, e.id);
|
|
4008
|
+
}, R = (C, $) => !C || !$ ? "Price not available" : `$${C.toLocaleString()} ${$}`, k = l === "compact", I = h(
|
|
3993
4009
|
"relative overflow-hidden bg-card shadow-md transition-all duration-300 ease-out cursor-pointer",
|
|
3994
|
-
|
|
3995
|
-
|
|
4010
|
+
k ? "rounded-xl hover:shadow-lg" : "rounded-2xl hover:-translate-y-1 hover:shadow-xl",
|
|
4011
|
+
k && "border px-4",
|
|
3996
4012
|
t
|
|
3997
|
-
), L = h(
|
|
3998
|
-
"relative overflow-hidden",
|
|
3999
|
-
v && "rounded-xl px-4 shadow-md bg-primary-foreground"
|
|
4000
4013
|
), P = h(
|
|
4014
|
+
"relative overflow-hidden",
|
|
4015
|
+
k && "rounded-xl px-4 shadow-md"
|
|
4016
|
+
), F = h(
|
|
4001
4017
|
"w-full h-full object-cover",
|
|
4002
|
-
!
|
|
4003
|
-
),
|
|
4018
|
+
!k && "transition-transform duration-300 hover:scale-105"
|
|
4019
|
+
), L = h(
|
|
4004
4020
|
"absolute z-10 flex flex-wrap gap-2",
|
|
4005
|
-
|
|
4006
|
-
),
|
|
4021
|
+
k ? "top-3 left-3" : "top-4 left-4"
|
|
4022
|
+
), y = h(
|
|
4007
4023
|
"text-xs font-semibold",
|
|
4008
|
-
|
|
4009
|
-
),
|
|
4024
|
+
k ? "rounded-full px-3 py-1" : "px-2 py-1 rounded-lg font-medium uppercase tracking-wide"
|
|
4025
|
+
), _ = h(
|
|
4010
4026
|
"absolute z-10 rounded-full cursor-pointer transition-all duration-200",
|
|
4011
|
-
|
|
4012
|
-
),
|
|
4027
|
+
k ? "top-3 right-3 p-1 shadow-md" : "top-4 right-4 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 flex items-center justify-center hover:bg-background hover:scale-105"
|
|
4028
|
+
), H = h(
|
|
4013
4029
|
"absolute top-1/2 -translate-y-1/2 z-10 bg-background/90 backdrop-blur-sm border border-border/20 text-foreground w-10 h-10 rounded-full p-0 flex items-center justify-center cursor-pointer transition-all duration-200 hover:bg-background hover:scale-105"
|
|
4014
|
-
),
|
|
4030
|
+
), ee = h(
|
|
4015
4031
|
"absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1 z-10"
|
|
4016
4032
|
), q = h(
|
|
4017
4033
|
"w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"
|
|
4018
|
-
), te = h(
|
|
4034
|
+
), te = h(k ? "p-2" : "p-6"), K = h(
|
|
4019
4035
|
"font-semibold text-foreground mb-2 line-clamp-2 leading-tight",
|
|
4020
|
-
|
|
4021
|
-
),
|
|
4036
|
+
k ? "text-base" : "text-lg font-bold"
|
|
4037
|
+
), B = h(
|
|
4022
4038
|
"font-bold text-primary mb-2",
|
|
4023
|
-
|
|
4024
|
-
),
|
|
4039
|
+
k ? "text-lg" : "text-xl"
|
|
4040
|
+
), D = h(
|
|
4025
4041
|
"text-muted-foreground mb-4",
|
|
4026
|
-
|
|
4027
|
-
),
|
|
4042
|
+
k ? "text-sm flex items-center gap-1" : "text-base"
|
|
4043
|
+
), G = h(
|
|
4028
4044
|
"flex items-center mb-4",
|
|
4029
|
-
|
|
4030
|
-
),
|
|
4045
|
+
k ? "justify-between mt-3" : "gap-4"
|
|
4046
|
+
), x = h(
|
|
4031
4047
|
"flex items-center gap-1 text-muted-foreground",
|
|
4032
4048
|
"text-sm"
|
|
4033
|
-
),
|
|
4049
|
+
), ue = h(
|
|
4034
4050
|
"text-sm text-muted-foreground line-clamp-2",
|
|
4035
|
-
|
|
4036
|
-
),
|
|
4037
|
-
/* @__PURE__ */
|
|
4038
|
-
|
|
4051
|
+
k && "mt-2"
|
|
4052
|
+
), ie = !(e.images && e.images.length > 0) || b, le = () => /* @__PURE__ */ f("div", { className: "w-full h-full bg-gradient-to-br from-primary/10 via-primary/5 to-secondary/10 flex flex-col items-center justify-center gap-3", children: [
|
|
4053
|
+
/* @__PURE__ */ a("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ a(Kr, { size: k ? 32 : 48, className: "text-primary/40" }) }),
|
|
4054
|
+
/* @__PURE__ */ a("p", { className: "text-sm text-muted-foreground", children: "No image available" })
|
|
4055
|
+
] }), j = /* @__PURE__ */ f("div", { className: I, children: [
|
|
4056
|
+
/* @__PURE__ */ f("div", { className: h(P, k ? "h-52" : "aspect-[4/3]"), children: [
|
|
4057
|
+
ie ? /* @__PURE__ */ a(le, {}) : /* @__PURE__ */ a(
|
|
4039
4058
|
"img",
|
|
4040
4059
|
{
|
|
4041
4060
|
src: e.images[c],
|
|
4042
4061
|
alt: e.title,
|
|
4043
|
-
className:
|
|
4044
|
-
onClick: o ?
|
|
4062
|
+
className: F,
|
|
4063
|
+
onClick: o ? z : void 0,
|
|
4064
|
+
onError: () => S(!0)
|
|
4045
4065
|
}
|
|
4046
4066
|
),
|
|
4047
|
-
/* @__PURE__ */
|
|
4048
|
-
const
|
|
4049
|
-
return /* @__PURE__ */
|
|
4067
|
+
/* @__PURE__ */ a("div", { className: L, children: e.transactionTypes.map((C, $) => {
|
|
4068
|
+
const O = i?.[C.type];
|
|
4069
|
+
return /* @__PURE__ */ a(
|
|
4050
4070
|
"span",
|
|
4051
4071
|
{
|
|
4052
4072
|
className: h(
|
|
4053
|
-
|
|
4054
|
-
|
|
4073
|
+
y,
|
|
4074
|
+
fo(C, O)
|
|
4055
4075
|
),
|
|
4056
|
-
style:
|
|
4057
|
-
children:
|
|
4076
|
+
style: O ? { backgroundColor: O } : void 0,
|
|
4077
|
+
children: C.type
|
|
4058
4078
|
},
|
|
4059
|
-
|
|
4079
|
+
$
|
|
4060
4080
|
);
|
|
4061
4081
|
}) }),
|
|
4062
|
-
|
|
4082
|
+
n && /* @__PURE__ */ a(
|
|
4063
4083
|
"button",
|
|
4064
4084
|
{
|
|
4065
|
-
onClick:
|
|
4066
|
-
className:
|
|
4085
|
+
onClick: E,
|
|
4086
|
+
className: _,
|
|
4067
4087
|
"aria-label": m ? "Unlike property" : "Like property",
|
|
4068
|
-
children:
|
|
4088
|
+
children: k ? /* @__PURE__ */ a(
|
|
4069
4089
|
"svg",
|
|
4070
4090
|
{
|
|
4071
4091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4074,7 +4094,7 @@ const uo = (e, t) => {
|
|
|
4074
4094
|
strokeWidth: 2,
|
|
4075
4095
|
stroke: m ? "red" : "currentColor",
|
|
4076
4096
|
className: "h-5 w-5",
|
|
4077
|
-
children: /* @__PURE__ */
|
|
4097
|
+
children: /* @__PURE__ */ a(
|
|
4078
4098
|
"path",
|
|
4079
4099
|
{
|
|
4080
4100
|
strokeLinecap: "round",
|
|
@@ -4083,7 +4103,7 @@ const uo = (e, t) => {
|
|
|
4083
4103
|
}
|
|
4084
4104
|
)
|
|
4085
4105
|
}
|
|
4086
|
-
) : /* @__PURE__ */
|
|
4106
|
+
) : /* @__PURE__ */ a(
|
|
4087
4107
|
Xr,
|
|
4088
4108
|
{
|
|
4089
4109
|
size: 20,
|
|
@@ -4093,91 +4113,91 @@ const uo = (e, t) => {
|
|
|
4093
4113
|
)
|
|
4094
4114
|
}
|
|
4095
4115
|
),
|
|
4096
|
-
!
|
|
4097
|
-
/* @__PURE__ */
|
|
4098
|
-
|
|
4116
|
+
!k && s && !ie && e.images.length > 1 && /* @__PURE__ */ f(xe, { children: [
|
|
4117
|
+
/* @__PURE__ */ a(
|
|
4118
|
+
J,
|
|
4099
4119
|
{
|
|
4100
|
-
onClick: (
|
|
4101
|
-
|
|
4120
|
+
onClick: (C) => {
|
|
4121
|
+
C.preventDefault(), C.stopPropagation(), N();
|
|
4102
4122
|
},
|
|
4103
|
-
className: h(
|
|
4123
|
+
className: h(H, "left-4"),
|
|
4104
4124
|
"aria-label": "Previous image",
|
|
4105
|
-
children: /* @__PURE__ */
|
|
4125
|
+
children: /* @__PURE__ */ a(Wr, { size: 20 })
|
|
4106
4126
|
}
|
|
4107
4127
|
),
|
|
4108
|
-
/* @__PURE__ */
|
|
4109
|
-
|
|
4128
|
+
/* @__PURE__ */ a(
|
|
4129
|
+
J,
|
|
4110
4130
|
{
|
|
4111
|
-
onClick: (
|
|
4112
|
-
|
|
4131
|
+
onClick: (C) => {
|
|
4132
|
+
C.preventDefault(), C.stopPropagation(), v();
|
|
4113
4133
|
},
|
|
4114
|
-
className: h(
|
|
4134
|
+
className: h(H, "right-4"),
|
|
4115
4135
|
"aria-label": "Next image",
|
|
4116
|
-
children: /* @__PURE__ */
|
|
4136
|
+
children: /* @__PURE__ */ a(Hr, { size: 20 })
|
|
4117
4137
|
}
|
|
4118
4138
|
),
|
|
4119
|
-
/* @__PURE__ */
|
|
4139
|
+
/* @__PURE__ */ a("div", { className: ee, children: e.images.map((C, $) => /* @__PURE__ */ a(
|
|
4120
4140
|
"button",
|
|
4121
4141
|
{
|
|
4122
4142
|
className: h(
|
|
4123
4143
|
q,
|
|
4124
|
-
|
|
4144
|
+
$ === c ? "bg-background" : "bg-background/50"
|
|
4125
4145
|
),
|
|
4126
|
-
onClick: (
|
|
4127
|
-
|
|
4146
|
+
onClick: (O) => {
|
|
4147
|
+
O.preventDefault(), O.stopPropagation(), d($);
|
|
4128
4148
|
},
|
|
4129
|
-
"aria-label": `Go to image ${
|
|
4130
|
-
"aria-current":
|
|
4149
|
+
"aria-label": `Go to image ${$ + 1}`,
|
|
4150
|
+
"aria-current": $ === c
|
|
4131
4151
|
},
|
|
4132
|
-
|
|
4152
|
+
$
|
|
4133
4153
|
)) })
|
|
4134
4154
|
] })
|
|
4135
4155
|
] }),
|
|
4136
4156
|
/* @__PURE__ */ f("div", { className: te, children: [
|
|
4137
|
-
/* @__PURE__ */
|
|
4138
|
-
/* @__PURE__ */
|
|
4139
|
-
/* @__PURE__ */ f("p", { className:
|
|
4140
|
-
|
|
4157
|
+
/* @__PURE__ */ a("h3", { className: K, children: e.title }),
|
|
4158
|
+
/* @__PURE__ */ a("p", { className: B, children: R(e.price?.amount, e.price?.currency) }),
|
|
4159
|
+
/* @__PURE__ */ f("p", { className: D, children: [
|
|
4160
|
+
k && /* @__PURE__ */ a(Jr, { size: 14 }),
|
|
4141
4161
|
e.location.city,
|
|
4142
4162
|
", ",
|
|
4143
4163
|
e.location.state
|
|
4144
4164
|
] }),
|
|
4145
|
-
/* @__PURE__ */ f("div", { className:
|
|
4146
|
-
/* @__PURE__ */ f("div", { className:
|
|
4147
|
-
/* @__PURE__ */
|
|
4148
|
-
/* @__PURE__ */
|
|
4165
|
+
/* @__PURE__ */ f("div", { className: G, children: [
|
|
4166
|
+
/* @__PURE__ */ f("div", { className: x, children: [
|
|
4167
|
+
/* @__PURE__ */ a($r, { size: 16 }),
|
|
4168
|
+
/* @__PURE__ */ a("span", { children: e.features.bedrooms })
|
|
4149
4169
|
] }),
|
|
4150
|
-
/* @__PURE__ */ f("div", { className:
|
|
4151
|
-
/* @__PURE__ */
|
|
4152
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ f("div", { className: x, children: [
|
|
4171
|
+
/* @__PURE__ */ a(Tr, { size: 16 }),
|
|
4172
|
+
/* @__PURE__ */ a("span", { children: e.features.bathrooms })
|
|
4153
4173
|
] }),
|
|
4154
|
-
/* @__PURE__ */ f("div", { className:
|
|
4155
|
-
/* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4174
|
+
/* @__PURE__ */ f("div", { className: x, children: [
|
|
4175
|
+
/* @__PURE__ */ a(Fr, { size: 16 }),
|
|
4176
|
+
/* @__PURE__ */ a("span", { children: e.features.parking })
|
|
4157
4177
|
] }),
|
|
4158
|
-
/* @__PURE__ */ f("div", { className:
|
|
4159
|
-
/* @__PURE__ */
|
|
4178
|
+
/* @__PURE__ */ f("div", { className: x, children: [
|
|
4179
|
+
/* @__PURE__ */ a(eo, { size: 16 }),
|
|
4160
4180
|
/* @__PURE__ */ f("span", { children: [
|
|
4161
4181
|
e.features.area,
|
|
4162
4182
|
" m²"
|
|
4163
4183
|
] })
|
|
4164
4184
|
] })
|
|
4165
4185
|
] }),
|
|
4166
|
-
e.amenities.length > 0 && /* @__PURE__ */
|
|
4186
|
+
e.amenities.length > 0 && /* @__PURE__ */ a("p", { className: ue, children: e.amenities.join(", ") })
|
|
4167
4187
|
] })
|
|
4168
4188
|
] });
|
|
4169
|
-
return e.href ? /* @__PURE__ */
|
|
4170
|
-
},
|
|
4189
|
+
return e.href ? /* @__PURE__ */ a("a", { href: e.href, className: "no-underline text-inherit", children: j }) : j;
|
|
4190
|
+
}, go = Ae.forwardRef(
|
|
4171
4191
|
({
|
|
4172
4192
|
images: e,
|
|
4173
4193
|
transactionType: t,
|
|
4174
4194
|
totalPhotos: r,
|
|
4175
4195
|
onViewAllClick: o,
|
|
4176
|
-
onImageClick:
|
|
4196
|
+
onImageClick: n,
|
|
4177
4197
|
className: s
|
|
4178
4198
|
}, l) => {
|
|
4179
4199
|
const i = e.slice(0, 5), c = (d) => {
|
|
4180
|
-
|
|
4200
|
+
n?.(d);
|
|
4181
4201
|
};
|
|
4182
4202
|
return /* @__PURE__ */ f(
|
|
4183
4203
|
"div",
|
|
@@ -4185,8 +4205,8 @@ const uo = (e, t) => {
|
|
|
4185
4205
|
ref: l,
|
|
4186
4206
|
className: h("w-full h-full grid grid-cols-2 gap-2", s),
|
|
4187
4207
|
children: [
|
|
4188
|
-
/* @__PURE__ */
|
|
4189
|
-
/* @__PURE__ */
|
|
4208
|
+
/* @__PURE__ */ a("div", { className: "relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer", children: i[0] ? /* @__PURE__ */ f(xe, { children: [
|
|
4209
|
+
/* @__PURE__ */ a(
|
|
4190
4210
|
"img",
|
|
4191
4211
|
{
|
|
4192
4212
|
src: i[0],
|
|
@@ -4195,9 +4215,9 @@ const uo = (e, t) => {
|
|
|
4195
4215
|
onClick: () => c(0)
|
|
4196
4216
|
}
|
|
4197
4217
|
),
|
|
4198
|
-
t && /* @__PURE__ */
|
|
4199
|
-
] }) : /* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */
|
|
4218
|
+
t && /* @__PURE__ */ a("div", { className: "absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md", children: /* @__PURE__ */ a("span", { className: "text-sm font-medium text-foreground", children: t }) })
|
|
4219
|
+
] }) : /* @__PURE__ */ a("div", { className: "w-full h-full bg-muted flex items-center justify-center", children: /* @__PURE__ */ a("span", { className: "text-muted-foreground", children: "No image" }) }) }),
|
|
4220
|
+
/* @__PURE__ */ a("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: i[1] ? /* @__PURE__ */ a(
|
|
4201
4221
|
"img",
|
|
4202
4222
|
{
|
|
4203
4223
|
src: i[1],
|
|
@@ -4205,8 +4225,8 @@ const uo = (e, t) => {
|
|
|
4205
4225
|
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
|
|
4206
4226
|
onClick: () => c(1)
|
|
4207
4227
|
}
|
|
4208
|
-
) : /* @__PURE__ */
|
|
4209
|
-
/* @__PURE__ */
|
|
4228
|
+
) : /* @__PURE__ */ a("div", { className: "w-full h-full bg-muted" }) }),
|
|
4229
|
+
/* @__PURE__ */ a("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: i[2] ? /* @__PURE__ */ a(
|
|
4210
4230
|
"img",
|
|
4211
4231
|
{
|
|
4212
4232
|
src: i[2],
|
|
@@ -4214,8 +4234,8 @@ const uo = (e, t) => {
|
|
|
4214
4234
|
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
|
|
4215
4235
|
onClick: () => c(2)
|
|
4216
4236
|
}
|
|
4217
|
-
) : /* @__PURE__ */
|
|
4218
|
-
/* @__PURE__ */
|
|
4237
|
+
) : /* @__PURE__ */ a("div", { className: "w-full h-full bg-muted" }) }),
|
|
4238
|
+
/* @__PURE__ */ a("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: i[3] ? /* @__PURE__ */ a(
|
|
4219
4239
|
"img",
|
|
4220
4240
|
{
|
|
4221
4241
|
src: i[3],
|
|
@@ -4223,9 +4243,9 @@ const uo = (e, t) => {
|
|
|
4223
4243
|
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
|
|
4224
4244
|
onClick: () => c(3)
|
|
4225
4245
|
}
|
|
4226
|
-
) : /* @__PURE__ */
|
|
4227
|
-
/* @__PURE__ */
|
|
4228
|
-
/* @__PURE__ */
|
|
4246
|
+
) : /* @__PURE__ */ a("div", { className: "w-full h-full bg-muted" }) }),
|
|
4247
|
+
/* @__PURE__ */ a("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: i[4] ? /* @__PURE__ */ f(xe, { children: [
|
|
4248
|
+
/* @__PURE__ */ a(
|
|
4229
4249
|
"img",
|
|
4230
4250
|
{
|
|
4231
4251
|
src: i[4],
|
|
@@ -4234,7 +4254,7 @@ const uo = (e, t) => {
|
|
|
4234
4254
|
onClick: () => c(4)
|
|
4235
4255
|
}
|
|
4236
4256
|
),
|
|
4237
|
-
r && r > 5 && /* @__PURE__ */
|
|
4257
|
+
r && r > 5 && /* @__PURE__ */ a("div", { className: "absolute bottom-4 right-4", children: /* @__PURE__ */ f(
|
|
4238
4258
|
"button",
|
|
4239
4259
|
{
|
|
4240
4260
|
onClick: (d) => {
|
|
@@ -4242,7 +4262,7 @@ const uo = (e, t) => {
|
|
|
4242
4262
|
},
|
|
4243
4263
|
className: "flex items-center gap-2 bg-white rounded-full px-4 py-2 shadow-md hover:shadow-lg transition-all duration-200 hover:scale-105",
|
|
4244
4264
|
children: [
|
|
4245
|
-
/* @__PURE__ */
|
|
4265
|
+
/* @__PURE__ */ a(Ur, { className: "w-4 h-4 text-foreground" }),
|
|
4246
4266
|
/* @__PURE__ */ f("span", { className: "text-sm font-medium text-foreground", children: [
|
|
4247
4267
|
"Ver las ",
|
|
4248
4268
|
r,
|
|
@@ -4251,25 +4271,25 @@ const uo = (e, t) => {
|
|
|
4251
4271
|
]
|
|
4252
4272
|
}
|
|
4253
4273
|
) })
|
|
4254
|
-
] }) : /* @__PURE__ */
|
|
4274
|
+
] }) : /* @__PURE__ */ a("div", { className: "w-full h-full bg-muted" }) })
|
|
4255
4275
|
]
|
|
4256
4276
|
}
|
|
4257
4277
|
);
|
|
4258
4278
|
}
|
|
4259
4279
|
);
|
|
4260
|
-
|
|
4261
|
-
const ut =
|
|
4262
|
-
/* @__PURE__ */
|
|
4263
|
-
t && /* @__PURE__ */
|
|
4280
|
+
go.displayName = "PropertyGallery";
|
|
4281
|
+
const ut = w.forwardRef(({ title: e, description: t, className: r }, o) => /* @__PURE__ */ f("div", { ref: o, className: h("space-y-1.5", r), children: [
|
|
4282
|
+
/* @__PURE__ */ a(A, { variant: "h2", className: "font-bold", children: e }),
|
|
4283
|
+
t && /* @__PURE__ */ a(A, { variant: "body", className: "text-muted-foreground", children: t })
|
|
4264
4284
|
] }));
|
|
4265
4285
|
ut.displayName = "EntityDirectoryHeader";
|
|
4266
|
-
const mt =
|
|
4286
|
+
const mt = w.forwardRef(
|
|
4267
4287
|
({
|
|
4268
4288
|
entity: e,
|
|
4269
4289
|
categories: t,
|
|
4270
4290
|
showIcon: r = !0,
|
|
4271
4291
|
showCategoryBadge: o = !0,
|
|
4272
|
-
showMetric:
|
|
4292
|
+
showMetric: n = !0,
|
|
4273
4293
|
compact: s = !1,
|
|
4274
4294
|
className: l
|
|
4275
4295
|
}, i) => {
|
|
@@ -4295,7 +4315,7 @@ const mt = k.forwardRef(
|
|
|
4295
4315
|
l
|
|
4296
4316
|
),
|
|
4297
4317
|
children: [
|
|
4298
|
-
r && /* @__PURE__ */
|
|
4318
|
+
r && /* @__PURE__ */ a(
|
|
4299
4319
|
"div",
|
|
4300
4320
|
{
|
|
4301
4321
|
className: h(
|
|
@@ -4303,20 +4323,20 @@ const mt = k.forwardRef(
|
|
|
4303
4323
|
s ? "w-8 h-8 text-lg" : "w-10 h-10 text-xl"
|
|
4304
4324
|
),
|
|
4305
4325
|
"aria-hidden": "true",
|
|
4306
|
-
children: typeof e.icon == "string" ? /* @__PURE__ */
|
|
4326
|
+
children: typeof e.icon == "string" ? /* @__PURE__ */ a("span", { children: e.icon }) : e.icon ? w.createElement(e.icon) : /* @__PURE__ */ a("span", { className: "text-muted-foreground", children: "•" })
|
|
4307
4327
|
}
|
|
4308
4328
|
),
|
|
4309
4329
|
/* @__PURE__ */ f("div", { className: "flex-1 min-w-0", children: [
|
|
4310
|
-
/* @__PURE__ */
|
|
4311
|
-
|
|
4330
|
+
/* @__PURE__ */ a(
|
|
4331
|
+
A,
|
|
4312
4332
|
{
|
|
4313
4333
|
variant: s ? "body-sm" : "body",
|
|
4314
4334
|
className: "font-semibold truncate",
|
|
4315
4335
|
children: e.title
|
|
4316
4336
|
}
|
|
4317
4337
|
),
|
|
4318
|
-
e.subtitle && /* @__PURE__ */
|
|
4319
|
-
|
|
4338
|
+
e.subtitle && /* @__PURE__ */ a(
|
|
4339
|
+
A,
|
|
4320
4340
|
{
|
|
4321
4341
|
variant: s ? "caption" : "body-sm",
|
|
4322
4342
|
className: "text-muted-foreground truncate",
|
|
@@ -4324,8 +4344,8 @@ const mt = k.forwardRef(
|
|
|
4324
4344
|
}
|
|
4325
4345
|
)
|
|
4326
4346
|
] }),
|
|
4327
|
-
o && c && /* @__PURE__ */
|
|
4328
|
-
|
|
4347
|
+
o && c && /* @__PURE__ */ a(
|
|
4348
|
+
Te,
|
|
4329
4349
|
{
|
|
4330
4350
|
variant: "secondary",
|
|
4331
4351
|
size: s ? "sm" : "default",
|
|
@@ -4334,16 +4354,16 @@ const mt = k.forwardRef(
|
|
|
4334
4354
|
children: c.label
|
|
4335
4355
|
}
|
|
4336
4356
|
),
|
|
4337
|
-
|
|
4338
|
-
/* @__PURE__ */
|
|
4339
|
-
|
|
4357
|
+
n && e.metricValue && /* @__PURE__ */ f("div", { className: "flex-shrink-0 text-right min-w-[4rem]", children: [
|
|
4358
|
+
/* @__PURE__ */ a(
|
|
4359
|
+
A,
|
|
4340
4360
|
{
|
|
4341
4361
|
variant: s ? "body-sm" : "body",
|
|
4342
4362
|
className: "font-medium",
|
|
4343
4363
|
children: e.metricValue
|
|
4344
4364
|
}
|
|
4345
4365
|
),
|
|
4346
|
-
e.metricLabel && /* @__PURE__ */
|
|
4366
|
+
e.metricLabel && /* @__PURE__ */ a(A, { variant: "caption", className: "text-muted-foreground", children: e.metricLabel })
|
|
4347
4367
|
] })
|
|
4348
4368
|
]
|
|
4349
4369
|
}
|
|
@@ -4351,7 +4371,7 @@ const mt = k.forwardRef(
|
|
|
4351
4371
|
}
|
|
4352
4372
|
);
|
|
4353
4373
|
mt.displayName = "EntityDirectoryListItem";
|
|
4354
|
-
const ft =
|
|
4374
|
+
const ft = w.forwardRef(({ columns: e, showIcon: t, sort: r, onSortChange: o, compact: n, className: s }, l) => {
|
|
4355
4375
|
const i = (u) => {
|
|
4356
4376
|
if (!o) return;
|
|
4357
4377
|
const b = r?.column === u && r?.direction === "asc" ? "desc" : "asc";
|
|
@@ -4363,7 +4383,7 @@ const ft = k.forwardRef(({ columns: e, showIcon: t, sort: r, onSortChange: o, co
|
|
|
4363
4383
|
i(u);
|
|
4364
4384
|
}, d = (u, b) => {
|
|
4365
4385
|
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), i(b));
|
|
4366
|
-
}, m = (u) => u !== "title" && u !== "metric" ? null : !r || r.column !== u ? /* @__PURE__ */
|
|
4386
|
+
}, m = (u) => u !== "title" && u !== "metric" ? null : !r || r.column !== u ? /* @__PURE__ */ a("span", { className: "ml-1 text-muted-foreground opacity-50", "aria-hidden": "true", children: "⇅" }) : /* @__PURE__ */ a("span", { className: "ml-1", "aria-hidden": "true", children: r.direction === "asc" ? "↑" : "↓" });
|
|
4367
4387
|
return /* @__PURE__ */ f(
|
|
4368
4388
|
"div",
|
|
4369
4389
|
{
|
|
@@ -4371,18 +4391,18 @@ const ft = k.forwardRef(({ columns: e, showIcon: t, sort: r, onSortChange: o, co
|
|
|
4371
4391
|
role: "row",
|
|
4372
4392
|
className: h(
|
|
4373
4393
|
"flex items-center gap-4 bg-background border-b border-border font-medium text-sm text-muted-foreground",
|
|
4374
|
-
|
|
4394
|
+
n ? "px-3 py-2" : "px-4 py-3",
|
|
4375
4395
|
s
|
|
4376
4396
|
),
|
|
4377
4397
|
children: [
|
|
4378
|
-
t && /* @__PURE__ */
|
|
4398
|
+
t && /* @__PURE__ */ a("div", { className: n ? "w-8" : "w-10" }),
|
|
4379
4399
|
e.map((u) => {
|
|
4380
|
-
const b = u.sortable && (u.key === "title" || u.key === "metric"),
|
|
4400
|
+
const b = u.sortable && (u.key === "title" || u.key === "metric"), S = r?.column === u.key;
|
|
4381
4401
|
return /* @__PURE__ */ f(
|
|
4382
4402
|
"div",
|
|
4383
4403
|
{
|
|
4384
4404
|
role: "columnheader",
|
|
4385
|
-
"aria-sort":
|
|
4405
|
+
"aria-sort": S ? r?.direction === "asc" ? "ascending" : "descending" : void 0,
|
|
4386
4406
|
className: h(
|
|
4387
4407
|
u.key === "title" && "flex-1",
|
|
4388
4408
|
u.key === "category" && "w-40",
|
|
@@ -4390,12 +4410,12 @@ const ft = k.forwardRef(({ columns: e, showIcon: t, sort: r, onSortChange: o, co
|
|
|
4390
4410
|
u.align === "center" && "text-center",
|
|
4391
4411
|
u.align === "right" && "text-right",
|
|
4392
4412
|
b && "cursor-pointer hover:text-foreground transition-colors select-none",
|
|
4393
|
-
|
|
4413
|
+
S && "text-foreground"
|
|
4394
4414
|
),
|
|
4395
4415
|
style: u.width ? { width: u.width } : void 0,
|
|
4396
4416
|
onClick: b && (u.key === "title" || u.key === "metric") ? () => c(u.key) : void 0,
|
|
4397
4417
|
tabIndex: b ? 0 : void 0,
|
|
4398
|
-
onKeyDown: b && (u.key === "title" || u.key === "metric") ? (
|
|
4418
|
+
onKeyDown: b && (u.key === "title" || u.key === "metric") ? (v) => d(v, u.key) : void 0,
|
|
4399
4419
|
children: [
|
|
4400
4420
|
u.label,
|
|
4401
4421
|
b && m(u.key)
|
|
@@ -4409,13 +4429,13 @@ const ft = k.forwardRef(({ columns: e, showIcon: t, sort: r, onSortChange: o, co
|
|
|
4409
4429
|
);
|
|
4410
4430
|
});
|
|
4411
4431
|
ft.displayName = "EntityDirectoryTableHeader";
|
|
4412
|
-
const pt =
|
|
4432
|
+
const pt = w.forwardRef(
|
|
4413
4433
|
({
|
|
4414
4434
|
entities: e,
|
|
4415
4435
|
categories: t,
|
|
4416
4436
|
showIcons: r = !0,
|
|
4417
4437
|
showCategoryBadges: o = !0,
|
|
4418
|
-
showMetric:
|
|
4438
|
+
showMetric: n = !0,
|
|
4419
4439
|
metricLabel: s,
|
|
4420
4440
|
sortable: l = !1,
|
|
4421
4441
|
sort: i,
|
|
@@ -4424,14 +4444,14 @@ const pt = k.forwardRef(
|
|
|
4424
4444
|
renderItem: m,
|
|
4425
4445
|
className: u
|
|
4426
4446
|
}, b) => {
|
|
4427
|
-
const
|
|
4447
|
+
const S = [
|
|
4428
4448
|
{
|
|
4429
4449
|
key: "title",
|
|
4430
4450
|
label: s ? "Nombre" : "Name",
|
|
4431
4451
|
sortable: l
|
|
4432
4452
|
},
|
|
4433
4453
|
...o ? [{ key: "category", label: "Categoría", sortable: !1 }] : [],
|
|
4434
|
-
...
|
|
4454
|
+
...n && s ? [
|
|
4435
4455
|
{
|
|
4436
4456
|
key: "metric",
|
|
4437
4457
|
label: s,
|
|
@@ -4448,28 +4468,28 @@ const pt = k.forwardRef(
|
|
|
4448
4468
|
"aria-label": "Entity directory",
|
|
4449
4469
|
className: h("border border-border rounded-lg overflow-hidden", u),
|
|
4450
4470
|
children: [
|
|
4451
|
-
/* @__PURE__ */
|
|
4471
|
+
/* @__PURE__ */ a(
|
|
4452
4472
|
ft,
|
|
4453
4473
|
{
|
|
4454
|
-
columns:
|
|
4474
|
+
columns: S,
|
|
4455
4475
|
showIcon: r,
|
|
4456
4476
|
sort: i,
|
|
4457
4477
|
onSortChange: c,
|
|
4458
4478
|
compact: d
|
|
4459
4479
|
}
|
|
4460
4480
|
),
|
|
4461
|
-
/* @__PURE__ */
|
|
4462
|
-
(
|
|
4481
|
+
/* @__PURE__ */ a("div", { role: "rowgroup", children: e.map(
|
|
4482
|
+
(v) => m ? /* @__PURE__ */ a(w.Fragment, { children: m(v) }, v.id) : /* @__PURE__ */ a(
|
|
4463
4483
|
mt,
|
|
4464
4484
|
{
|
|
4465
|
-
entity:
|
|
4485
|
+
entity: v,
|
|
4466
4486
|
categories: t,
|
|
4467
4487
|
showIcon: r,
|
|
4468
4488
|
showCategoryBadge: o,
|
|
4469
|
-
showMetric:
|
|
4489
|
+
showMetric: n,
|
|
4470
4490
|
compact: d
|
|
4471
4491
|
},
|
|
4472
|
-
|
|
4492
|
+
v.id
|
|
4473
4493
|
)
|
|
4474
4494
|
) })
|
|
4475
4495
|
]
|
|
@@ -4478,10 +4498,10 @@ const pt = k.forwardRef(
|
|
|
4478
4498
|
}
|
|
4479
4499
|
);
|
|
4480
4500
|
pt.displayName = "EntityDirectoryList";
|
|
4481
|
-
const gt =
|
|
4501
|
+
const gt = w.forwardRef(({ message: e = "No entities found", icon: t, action: r, className: o }, n) => /* @__PURE__ */ f(
|
|
4482
4502
|
"div",
|
|
4483
4503
|
{
|
|
4484
|
-
ref:
|
|
4504
|
+
ref: n,
|
|
4485
4505
|
role: "status",
|
|
4486
4506
|
"aria-live": "polite",
|
|
4487
4507
|
className: h(
|
|
@@ -4489,15 +4509,15 @@ const gt = k.forwardRef(({ message: e = "No entities found", icon: t, action: r,
|
|
|
4489
4509
|
o
|
|
4490
4510
|
),
|
|
4491
4511
|
children: [
|
|
4492
|
-
t && /* @__PURE__ */
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
r && /* @__PURE__ */
|
|
4512
|
+
t && /* @__PURE__ */ a("div", { className: "mb-4 text-4xl opacity-50", "aria-hidden": "true", children: t }),
|
|
4513
|
+
/* @__PURE__ */ a(A, { variant: "body-lg", className: "text-muted-foreground mb-4", children: e }),
|
|
4514
|
+
r && /* @__PURE__ */ a(J, { variant: "outline", onClick: r.onClick, children: r.label })
|
|
4495
4515
|
]
|
|
4496
4516
|
}
|
|
4497
4517
|
));
|
|
4498
4518
|
gt.displayName = "EntityDirectoryEmptyState";
|
|
4499
|
-
const ht =
|
|
4500
|
-
const
|
|
4519
|
+
const ht = w.forwardRef(({ error: e, onRetry: t, className: r }, o) => {
|
|
4520
|
+
const n = typeof e == "string" ? e : e.message;
|
|
4501
4521
|
return /* @__PURE__ */ f(
|
|
4502
4522
|
"div",
|
|
4503
4523
|
{
|
|
@@ -4509,16 +4529,16 @@ const ht = k.forwardRef(({ error: e, onRetry: t, className: r }, o) => {
|
|
|
4509
4529
|
r
|
|
4510
4530
|
),
|
|
4511
4531
|
children: [
|
|
4512
|
-
/* @__PURE__ */
|
|
4513
|
-
/* @__PURE__ */
|
|
4514
|
-
/* @__PURE__ */
|
|
4515
|
-
t && /* @__PURE__ */
|
|
4532
|
+
/* @__PURE__ */ a("div", { className: "mb-4 text-4xl", "aria-hidden": "true", children: "⚠️" }),
|
|
4533
|
+
/* @__PURE__ */ a(A, { variant: "body-lg", className: "text-destructive mb-2 font-semibold", children: "Error" }),
|
|
4534
|
+
/* @__PURE__ */ a(A, { variant: "body", className: "text-muted-foreground mb-4", children: n }),
|
|
4535
|
+
t && /* @__PURE__ */ a(J, { variant: "outline", onClick: t, children: "Try Again" })
|
|
4516
4536
|
]
|
|
4517
4537
|
}
|
|
4518
4538
|
);
|
|
4519
4539
|
});
|
|
4520
4540
|
ht.displayName = "EntityDirectoryErrorState";
|
|
4521
|
-
const bt =
|
|
4541
|
+
const bt = w.forwardRef(({ rows: e = 5, className: t }, r) => /* @__PURE__ */ f(
|
|
4522
4542
|
"div",
|
|
4523
4543
|
{
|
|
4524
4544
|
ref: r,
|
|
@@ -4527,29 +4547,29 @@ const bt = k.forwardRef(({ rows: e = 5, className: t }, r) => /* @__PURE__ */ f(
|
|
|
4527
4547
|
"aria-label": "Loading entities",
|
|
4528
4548
|
className: h("space-y-3", t),
|
|
4529
4549
|
children: [
|
|
4530
|
-
Array.from({ length: e }).map((o,
|
|
4550
|
+
Array.from({ length: e }).map((o, n) => /* @__PURE__ */ f(
|
|
4531
4551
|
"div",
|
|
4532
4552
|
{
|
|
4533
4553
|
className: "flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",
|
|
4534
4554
|
children: [
|
|
4535
|
-
/* @__PURE__ */
|
|
4555
|
+
/* @__PURE__ */ a("div", { className: "w-10 h-10 bg-muted rounded-full flex-shrink-0" }),
|
|
4536
4556
|
/* @__PURE__ */ f("div", { className: "flex-1 space-y-2", children: [
|
|
4537
|
-
/* @__PURE__ */
|
|
4538
|
-
/* @__PURE__ */
|
|
4557
|
+
/* @__PURE__ */ a("div", { className: "h-4 bg-muted rounded w-1/3" }),
|
|
4558
|
+
/* @__PURE__ */ a("div", { className: "h-3 bg-muted rounded w-1/2" })
|
|
4539
4559
|
] }),
|
|
4540
|
-
/* @__PURE__ */
|
|
4541
|
-
/* @__PURE__ */
|
|
4560
|
+
/* @__PURE__ */ a("div", { className: "h-6 bg-muted rounded-full w-24 flex-shrink-0" }),
|
|
4561
|
+
/* @__PURE__ */ a("div", { className: "h-4 bg-muted rounded w-16 flex-shrink-0" })
|
|
4542
4562
|
]
|
|
4543
4563
|
},
|
|
4544
|
-
|
|
4564
|
+
n
|
|
4545
4565
|
)),
|
|
4546
|
-
/* @__PURE__ */
|
|
4566
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Loading..." })
|
|
4547
4567
|
]
|
|
4548
4568
|
}
|
|
4549
4569
|
));
|
|
4550
4570
|
bt.displayName = "EntityDirectoryLoadingState";
|
|
4551
|
-
const xt =
|
|
4552
|
-
/* @__PURE__ */
|
|
4571
|
+
const xt = w.forwardRef(({ value: e, onChange: t, placeholder: r = "Search entities...", className: o }, n) => /* @__PURE__ */ f("div", { className: h("relative", o), children: [
|
|
4572
|
+
/* @__PURE__ */ a("div", { className: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none", children: /* @__PURE__ */ a(
|
|
4553
4573
|
"svg",
|
|
4554
4574
|
{
|
|
4555
4575
|
className: "w-4 h-4 text-muted-foreground",
|
|
@@ -4557,7 +4577,7 @@ const xt = k.forwardRef(({ value: e, onChange: t, placeholder: r = "Search entit
|
|
|
4557
4577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4558
4578
|
fill: "none",
|
|
4559
4579
|
viewBox: "0 0 20 20",
|
|
4560
|
-
children: /* @__PURE__ */
|
|
4580
|
+
children: /* @__PURE__ */ a(
|
|
4561
4581
|
"path",
|
|
4562
4582
|
{
|
|
4563
4583
|
stroke: "currentColor",
|
|
@@ -4569,10 +4589,10 @@ const xt = k.forwardRef(({ value: e, onChange: t, placeholder: r = "Search entit
|
|
|
4569
4589
|
)
|
|
4570
4590
|
}
|
|
4571
4591
|
) }),
|
|
4572
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ a(
|
|
4573
4593
|
"input",
|
|
4574
4594
|
{
|
|
4575
|
-
ref:
|
|
4595
|
+
ref: n,
|
|
4576
4596
|
type: "search",
|
|
4577
4597
|
value: e,
|
|
4578
4598
|
onChange: (s) => t(s.target.value),
|
|
@@ -4586,21 +4606,21 @@ const xt = k.forwardRef(({ value: e, onChange: t, placeholder: r = "Search entit
|
|
|
4586
4606
|
"aria-label": "Search entities"
|
|
4587
4607
|
}
|
|
4588
4608
|
),
|
|
4589
|
-
e && /* @__PURE__ */
|
|
4609
|
+
e && /* @__PURE__ */ a(
|
|
4590
4610
|
"button",
|
|
4591
4611
|
{
|
|
4592
4612
|
type: "button",
|
|
4593
4613
|
onClick: () => t(""),
|
|
4594
4614
|
className: "absolute inset-y-0 right-0 flex items-center pr-3 text-muted-foreground hover:text-foreground",
|
|
4595
4615
|
"aria-label": "Clear search",
|
|
4596
|
-
children: /* @__PURE__ */
|
|
4616
|
+
children: /* @__PURE__ */ a(
|
|
4597
4617
|
"svg",
|
|
4598
4618
|
{
|
|
4599
4619
|
className: "w-4 h-4",
|
|
4600
4620
|
fill: "none",
|
|
4601
4621
|
stroke: "currentColor",
|
|
4602
4622
|
viewBox: "0 0 24 24",
|
|
4603
|
-
children: /* @__PURE__ */
|
|
4623
|
+
children: /* @__PURE__ */ a(
|
|
4604
4624
|
"path",
|
|
4605
4625
|
{
|
|
4606
4626
|
strokeLinecap: "round",
|
|
@@ -4615,13 +4635,13 @@ const xt = k.forwardRef(({ value: e, onChange: t, placeholder: r = "Search entit
|
|
|
4615
4635
|
)
|
|
4616
4636
|
] }));
|
|
4617
4637
|
xt.displayName = "EntityDirectorySearchFilter";
|
|
4618
|
-
const
|
|
4638
|
+
const ho = w.forwardRef(
|
|
4619
4639
|
({
|
|
4620
4640
|
entities: e,
|
|
4621
4641
|
categories: t,
|
|
4622
4642
|
title: r,
|
|
4623
4643
|
description: o,
|
|
4624
|
-
activeCategory:
|
|
4644
|
+
activeCategory: n,
|
|
4625
4645
|
onCategoryChange: s,
|
|
4626
4646
|
showCategoryCount: l,
|
|
4627
4647
|
getCategoryCount: i,
|
|
@@ -4630,44 +4650,44 @@ const po = k.forwardRef(
|
|
|
4630
4650
|
onSearchChange: m,
|
|
4631
4651
|
searchPlaceholder: u,
|
|
4632
4652
|
sortable: b = !1,
|
|
4633
|
-
sort:
|
|
4634
|
-
onSortChange:
|
|
4653
|
+
sort: S,
|
|
4654
|
+
onSortChange: v,
|
|
4635
4655
|
showIcons: N = !0,
|
|
4636
4656
|
showCategoryBadges: E = !0,
|
|
4637
|
-
showMetric:
|
|
4657
|
+
showMetric: z = !0,
|
|
4638
4658
|
metricLabel: R,
|
|
4639
|
-
compact:
|
|
4640
|
-
loading:
|
|
4641
|
-
error:
|
|
4659
|
+
compact: k = !1,
|
|
4660
|
+
loading: I = !1,
|
|
4661
|
+
error: P,
|
|
4642
4662
|
emptyMessage: F,
|
|
4643
|
-
onRetry:
|
|
4663
|
+
onRetry: L,
|
|
4644
4664
|
emptyState: y,
|
|
4645
|
-
errorState:
|
|
4646
|
-
loadingState:
|
|
4647
|
-
renderItem:
|
|
4648
|
-
className:
|
|
4649
|
-
style:
|
|
4650
|
-
},
|
|
4651
|
-
const
|
|
4665
|
+
errorState: _,
|
|
4666
|
+
loadingState: H,
|
|
4667
|
+
renderItem: ee,
|
|
4668
|
+
className: q,
|
|
4669
|
+
style: te
|
|
4670
|
+
}, K) => {
|
|
4671
|
+
const B = t && t.length > 0, D = !I && !P && e.length === 0, G = !I && !!P;
|
|
4652
4672
|
return /* @__PURE__ */ f(
|
|
4653
4673
|
"div",
|
|
4654
4674
|
{
|
|
4655
|
-
ref:
|
|
4656
|
-
className: h("space-y-6",
|
|
4657
|
-
style:
|
|
4675
|
+
ref: K,
|
|
4676
|
+
className: h("space-y-6", q),
|
|
4677
|
+
style: te,
|
|
4658
4678
|
children: [
|
|
4659
|
-
/* @__PURE__ */
|
|
4660
|
-
|
|
4679
|
+
/* @__PURE__ */ a(ut, { title: r, description: o }),
|
|
4680
|
+
B && s && /* @__PURE__ */ a(
|
|
4661
4681
|
dt,
|
|
4662
4682
|
{
|
|
4663
4683
|
categories: t,
|
|
4664
|
-
activeCategory:
|
|
4684
|
+
activeCategory: n,
|
|
4665
4685
|
onCategoryChange: s,
|
|
4666
4686
|
showCount: l,
|
|
4667
4687
|
getCategoryCount: i
|
|
4668
4688
|
}
|
|
4669
4689
|
),
|
|
4670
|
-
c && m && /* @__PURE__ */
|
|
4690
|
+
c && m && /* @__PURE__ */ a(
|
|
4671
4691
|
xt,
|
|
4672
4692
|
{
|
|
4673
4693
|
value: d,
|
|
@@ -4675,23 +4695,23 @@ const po = k.forwardRef(
|
|
|
4675
4695
|
placeholder: u
|
|
4676
4696
|
}
|
|
4677
4697
|
),
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
!
|
|
4698
|
+
I && (H || /* @__PURE__ */ a(bt, {})),
|
|
4699
|
+
G && (_ || /* @__PURE__ */ a(ht, { error: P, onRetry: L })),
|
|
4700
|
+
D && (y || /* @__PURE__ */ a(gt, { message: F })),
|
|
4701
|
+
!I && !G && !D && /* @__PURE__ */ a(
|
|
4682
4702
|
pt,
|
|
4683
4703
|
{
|
|
4684
4704
|
entities: e,
|
|
4685
4705
|
categories: t,
|
|
4686
4706
|
showIcons: N,
|
|
4687
4707
|
showCategoryBadges: E,
|
|
4688
|
-
showMetric:
|
|
4708
|
+
showMetric: z,
|
|
4689
4709
|
metricLabel: R,
|
|
4690
4710
|
sortable: b,
|
|
4691
|
-
sort:
|
|
4692
|
-
onSortChange:
|
|
4693
|
-
compact:
|
|
4694
|
-
renderItem:
|
|
4711
|
+
sort: S,
|
|
4712
|
+
onSortChange: v,
|
|
4713
|
+
compact: k,
|
|
4714
|
+
renderItem: ee
|
|
4695
4715
|
}
|
|
4696
4716
|
)
|
|
4697
4717
|
]
|
|
@@ -4699,27 +4719,27 @@ const po = k.forwardRef(
|
|
|
4699
4719
|
);
|
|
4700
4720
|
}
|
|
4701
4721
|
);
|
|
4702
|
-
|
|
4703
|
-
function
|
|
4722
|
+
ho.displayName = "EntityDirectory";
|
|
4723
|
+
function bo(e) {
|
|
4704
4724
|
const {
|
|
4705
4725
|
propertyPrice: t,
|
|
4706
4726
|
downPayment: r,
|
|
4707
4727
|
loanTerm: o,
|
|
4708
|
-
interestRate:
|
|
4728
|
+
interestRate: n,
|
|
4709
4729
|
propertyTax: s = 0,
|
|
4710
4730
|
hoaFees: l = 0
|
|
4711
|
-
} = e, i = t - r, c =
|
|
4731
|
+
} = e, i = t - r, c = n / 100 / 12, d = o * 12;
|
|
4712
4732
|
let m;
|
|
4713
4733
|
if (c === 0)
|
|
4714
4734
|
m = i / d;
|
|
4715
4735
|
else {
|
|
4716
|
-
const
|
|
4717
|
-
m = i * (c *
|
|
4736
|
+
const v = Math.pow(1 + c, d);
|
|
4737
|
+
m = i * (c * v) / (v - 1);
|
|
4718
4738
|
}
|
|
4719
|
-
const u = m * d, b = u - i,
|
|
4739
|
+
const u = m * d, b = u - i, S = m + s + l;
|
|
4720
4740
|
return {
|
|
4721
4741
|
monthlyPayment: Math.round(m * 100) / 100,
|
|
4722
|
-
totalMonthlyPayment: Math.round(
|
|
4742
|
+
totalMonthlyPayment: Math.round(S * 100) / 100,
|
|
4723
4743
|
totalAmount: Math.round(u * 100) / 100,
|
|
4724
4744
|
totalInterest: Math.round(b * 100) / 100,
|
|
4725
4745
|
loanPrincipal: Math.round(i * 100) / 100,
|
|
@@ -4730,7 +4750,7 @@ function go(e) {
|
|
|
4730
4750
|
}
|
|
4731
4751
|
};
|
|
4732
4752
|
}
|
|
4733
|
-
function
|
|
4753
|
+
function de(e, t = "MXN") {
|
|
4734
4754
|
return new Intl.NumberFormat("es-MX", {
|
|
4735
4755
|
style: "currency",
|
|
4736
4756
|
currency: t,
|
|
@@ -4738,10 +4758,10 @@ function le(e, t = "MXN") {
|
|
|
4738
4758
|
maximumFractionDigits: 0
|
|
4739
4759
|
}).format(e);
|
|
4740
4760
|
}
|
|
4741
|
-
function
|
|
4761
|
+
function $o(e, t = 3) {
|
|
4742
4762
|
return `${e.toFixed(t)} %`;
|
|
4743
4763
|
}
|
|
4744
|
-
function
|
|
4764
|
+
function Vo(e) {
|
|
4745
4765
|
const t = {};
|
|
4746
4766
|
return (!e.propertyPrice || e.propertyPrice <= 0) && (t.propertyPrice = "El precio de la propiedad debe ser mayor a 0"), (!e.downPayment || e.downPayment < 0) && (t.downPayment = "El enganche debe ser mayor o igual a 0"), e.propertyPrice && e.downPayment && e.downPayment >= e.propertyPrice && (t.downPayment = "El enganche debe ser menor al precio de la propiedad"), (!e.loanTerm || e.loanTerm <= 0) && (t.loanTerm = "El plazo del préstamo debe ser mayor a 0"), (e.interestRate === void 0 || e.interestRate < 0) && (t.interestRate = "La tasa de interés debe ser mayor o igual a 0"), {
|
|
4747
4767
|
isValid: Object.keys(t).length === 0,
|
|
@@ -4753,125 +4773,125 @@ const yt = [
|
|
|
4753
4773
|
{ value: "20-years", label: "20 años fijos", years: 20 },
|
|
4754
4774
|
{ value: "30-years", label: "30 años fijos", years: 30 },
|
|
4755
4775
|
{ value: "40-years", label: "40 años fijos", years: 40 }
|
|
4756
|
-
],
|
|
4776
|
+
], xo = yt.map(
|
|
4757
4777
|
(e) => ({
|
|
4758
4778
|
value: e.value,
|
|
4759
4779
|
label: e.label
|
|
4760
4780
|
})
|
|
4761
|
-
),
|
|
4781
|
+
), be = {
|
|
4762
4782
|
propertyPrice: 2e7,
|
|
4763
4783
|
downPayment: 2e5,
|
|
4764
4784
|
loanProgram: "30-years",
|
|
4765
4785
|
interestRate: 6.5
|
|
4766
|
-
},
|
|
4786
|
+
}, Me = {
|
|
4767
4787
|
principalAndInterest: "#0a2540",
|
|
4768
4788
|
// Dark blue/navy
|
|
4769
4789
|
propertyTax: "#4da6c7",
|
|
4770
4790
|
// Light blue
|
|
4771
4791
|
hoaFees: "#7fc9e3"
|
|
4772
4792
|
// Very light blue
|
|
4773
|
-
},
|
|
4793
|
+
}, yo = w.forwardRef(
|
|
4774
4794
|
({
|
|
4775
|
-
initialPropertyPrice: e =
|
|
4776
|
-
initialDownPayment: t =
|
|
4777
|
-
initialLoanProgram: r =
|
|
4778
|
-
initialInterestRate: o =
|
|
4779
|
-
showPropertyTax:
|
|
4795
|
+
initialPropertyPrice: e = be.propertyPrice,
|
|
4796
|
+
initialDownPayment: t = be.downPayment,
|
|
4797
|
+
initialLoanProgram: r = be.loanProgram,
|
|
4798
|
+
initialInterestRate: o = be.interestRate,
|
|
4799
|
+
showPropertyTax: n = !1,
|
|
4780
4800
|
showHoaFees: s = !1,
|
|
4781
4801
|
className: l,
|
|
4782
4802
|
onCalculationChange: i
|
|
4783
4803
|
}, c) => {
|
|
4784
|
-
const [d, m] =
|
|
4804
|
+
const [d, m] = w.useState(e), [u, b] = w.useState(t), [S, v] = w.useState(r), [N, E] = w.useState(o), [z, R] = w.useState(0), [k, I] = w.useState(0), P = w.useMemo(() => {
|
|
4785
4805
|
const y = yt.find(
|
|
4786
|
-
(
|
|
4806
|
+
(H) => H.value === S
|
|
4787
4807
|
)?.years || 30;
|
|
4788
|
-
return
|
|
4808
|
+
return bo({
|
|
4789
4809
|
propertyPrice: d,
|
|
4790
4810
|
downPayment: u,
|
|
4791
4811
|
loanTerm: y,
|
|
4792
4812
|
interestRate: N,
|
|
4793
|
-
propertyTax:
|
|
4794
|
-
hoaFees: s ?
|
|
4813
|
+
propertyTax: n ? z : void 0,
|
|
4814
|
+
hoaFees: s ? k : void 0
|
|
4795
4815
|
});
|
|
4796
4816
|
}, [
|
|
4797
4817
|
d,
|
|
4798
4818
|
u,
|
|
4799
|
-
|
|
4819
|
+
S,
|
|
4800
4820
|
N,
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4821
|
+
z,
|
|
4822
|
+
k,
|
|
4823
|
+
n,
|
|
4804
4824
|
s
|
|
4805
4825
|
]);
|
|
4806
|
-
|
|
4807
|
-
i?.(
|
|
4808
|
-
}, [
|
|
4809
|
-
const F =
|
|
4810
|
-
const
|
|
4826
|
+
w.useEffect(() => {
|
|
4827
|
+
i?.(P);
|
|
4828
|
+
}, [P, i]);
|
|
4829
|
+
const F = w.useMemo(() => {
|
|
4830
|
+
const L = [
|
|
4811
4831
|
{
|
|
4812
4832
|
label: "Principal e Intereses",
|
|
4813
|
-
value:
|
|
4814
|
-
color:
|
|
4833
|
+
value: P.breakdown.principalAndInterest,
|
|
4834
|
+
color: Me.principalAndInterest
|
|
4815
4835
|
}
|
|
4816
4836
|
];
|
|
4817
|
-
return
|
|
4837
|
+
return n && P.breakdown.propertyTax > 0 && L.push({
|
|
4818
4838
|
label: "Impuesto Predial",
|
|
4819
|
-
value:
|
|
4820
|
-
color:
|
|
4821
|
-
}), s &&
|
|
4839
|
+
value: P.breakdown.propertyTax,
|
|
4840
|
+
color: Me.propertyTax
|
|
4841
|
+
}), s && P.breakdown.hoaFees > 0 && L.push({
|
|
4822
4842
|
label: "Cuota HOA",
|
|
4823
|
-
value:
|
|
4824
|
-
color:
|
|
4825
|
-
}),
|
|
4826
|
-
}, [
|
|
4827
|
-
return /* @__PURE__ */
|
|
4843
|
+
value: P.breakdown.hoaFees,
|
|
4844
|
+
color: Me.hoaFees
|
|
4845
|
+
}), L;
|
|
4846
|
+
}, [P, n, s]);
|
|
4847
|
+
return /* @__PURE__ */ a("div", { ref: c, className: h("w-full", l), children: /* @__PURE__ */ a(st, { padding: "lg", className: "w-full", children: /* @__PURE__ */ f("div", { className: "space-y-6", children: [
|
|
4828
4848
|
/* @__PURE__ */ f("div", { children: [
|
|
4829
|
-
/* @__PURE__ */
|
|
4830
|
-
/* @__PURE__ */
|
|
4849
|
+
/* @__PURE__ */ a(A, { variant: "h2", className: "mb-2", children: "Calculadora de Hipotecas" }),
|
|
4850
|
+
/* @__PURE__ */ a(A, { variant: "body", color: "secondary", className: "max-w-2xl", children: "Calcule el pago mensual de su hipoteca, incluyendo capital e intereses, impuestos prediales y cuota de la asociación de propietarios. Ajuste los valores para obtener una tasa más precisa." })
|
|
4831
4851
|
] }),
|
|
4832
4852
|
/* @__PURE__ */ f("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
4833
4853
|
/* @__PURE__ */ f("div", { className: "space-y-4", children: [
|
|
4834
|
-
/* @__PURE__ */
|
|
4835
|
-
|
|
4854
|
+
/* @__PURE__ */ a(
|
|
4855
|
+
oe,
|
|
4836
4856
|
{
|
|
4837
4857
|
label: "Precio de la propiedad",
|
|
4838
4858
|
type: "number",
|
|
4839
4859
|
value: d,
|
|
4840
|
-
onChange: (
|
|
4860
|
+
onChange: (L) => m(Number(L.target.value)),
|
|
4841
4861
|
suffix: "MXN",
|
|
4842
4862
|
min: 0,
|
|
4843
4863
|
step: 1e4
|
|
4844
4864
|
}
|
|
4845
4865
|
),
|
|
4846
|
-
/* @__PURE__ */
|
|
4847
|
-
|
|
4866
|
+
/* @__PURE__ */ a(
|
|
4867
|
+
oe,
|
|
4848
4868
|
{
|
|
4849
4869
|
label: "Enganche",
|
|
4850
4870
|
type: "number",
|
|
4851
4871
|
value: u,
|
|
4852
|
-
onChange: (
|
|
4872
|
+
onChange: (L) => b(Number(L.target.value)),
|
|
4853
4873
|
suffix: "MXN",
|
|
4854
4874
|
min: 0,
|
|
4855
4875
|
step: 1e4
|
|
4856
4876
|
}
|
|
4857
4877
|
),
|
|
4858
4878
|
/* @__PURE__ */ f("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
4859
|
-
/* @__PURE__ */
|
|
4879
|
+
/* @__PURE__ */ a(
|
|
4860
4880
|
lt,
|
|
4861
4881
|
{
|
|
4862
4882
|
label: "Programa de préstamos",
|
|
4863
|
-
value:
|
|
4864
|
-
onChange: (
|
|
4865
|
-
options:
|
|
4883
|
+
value: S,
|
|
4884
|
+
onChange: (L) => v(L.target.value),
|
|
4885
|
+
options: xo
|
|
4866
4886
|
}
|
|
4867
4887
|
),
|
|
4868
|
-
/* @__PURE__ */
|
|
4869
|
-
|
|
4888
|
+
/* @__PURE__ */ a(
|
|
4889
|
+
oe,
|
|
4870
4890
|
{
|
|
4871
4891
|
label: "Tasa de interés",
|
|
4872
4892
|
type: "number",
|
|
4873
4893
|
value: N,
|
|
4874
|
-
onChange: (
|
|
4894
|
+
onChange: (L) => E(Number(L.target.value)),
|
|
4875
4895
|
suffix: "%",
|
|
4876
4896
|
min: 0,
|
|
4877
4897
|
max: 100,
|
|
@@ -4879,25 +4899,25 @@ const yt = [
|
|
|
4879
4899
|
}
|
|
4880
4900
|
)
|
|
4881
4901
|
] }),
|
|
4882
|
-
|
|
4883
|
-
|
|
4902
|
+
n && /* @__PURE__ */ a(
|
|
4903
|
+
oe,
|
|
4884
4904
|
{
|
|
4885
4905
|
label: "Impuesto predial mensual",
|
|
4886
4906
|
type: "number",
|
|
4887
|
-
value:
|
|
4888
|
-
onChange: (
|
|
4907
|
+
value: z,
|
|
4908
|
+
onChange: (L) => R(Number(L.target.value)),
|
|
4889
4909
|
suffix: "MXN",
|
|
4890
4910
|
min: 0,
|
|
4891
4911
|
step: 100
|
|
4892
4912
|
}
|
|
4893
4913
|
),
|
|
4894
|
-
s && /* @__PURE__ */
|
|
4895
|
-
|
|
4914
|
+
s && /* @__PURE__ */ a(
|
|
4915
|
+
oe,
|
|
4896
4916
|
{
|
|
4897
4917
|
label: "Cuota HOA mensual",
|
|
4898
4918
|
type: "number",
|
|
4899
|
-
value:
|
|
4900
|
-
onChange: (
|
|
4919
|
+
value: k,
|
|
4920
|
+
onChange: (L) => I(Number(L.target.value)),
|
|
4901
4921
|
suffix: "MXN",
|
|
4902
4922
|
min: 0,
|
|
4903
4923
|
step: 100
|
|
@@ -4905,15 +4925,15 @@ const yt = [
|
|
|
4905
4925
|
)
|
|
4906
4926
|
] }),
|
|
4907
4927
|
/* @__PURE__ */ f("div", { className: "flex flex-col items-center justify-center", children: [
|
|
4908
|
-
/* @__PURE__ */
|
|
4928
|
+
/* @__PURE__ */ a(
|
|
4909
4929
|
ct,
|
|
4910
4930
|
{
|
|
4911
4931
|
segments: F,
|
|
4912
4932
|
size: 320,
|
|
4913
4933
|
innerRadiusRatio: 0.65,
|
|
4914
4934
|
centerContent: /* @__PURE__ */ f("div", { className: "text-center", children: [
|
|
4915
|
-
/* @__PURE__ */
|
|
4916
|
-
/* @__PURE__ */
|
|
4935
|
+
/* @__PURE__ */ a(A, { variant: "h1", className: "font-bold mb-1", children: de(P.totalMonthlyPayment) }),
|
|
4936
|
+
/* @__PURE__ */ a(A, { variant: "body-sm", color: "secondary", children: "Tu Pago" })
|
|
4917
4937
|
] }),
|
|
4918
4938
|
showLegend: !0,
|
|
4919
4939
|
legendPosition: "bottom"
|
|
@@ -4921,36 +4941,36 @@ const yt = [
|
|
|
4921
4941
|
),
|
|
4922
4942
|
/* @__PURE__ */ f("div", { className: "mt-6 text-center space-y-1", children: [
|
|
4923
4943
|
/* @__PURE__ */ f("div", { className: "flex items-center justify-center gap-2 text-sm text-success", children: [
|
|
4924
|
-
/* @__PURE__ */
|
|
4925
|
-
/* @__PURE__ */
|
|
4944
|
+
/* @__PURE__ */ a(ro, { className: "h-4 w-4" }),
|
|
4945
|
+
/* @__PURE__ */ a("span", { className: "font-medium", children: "Trending up by 5.2% this month" })
|
|
4926
4946
|
] }),
|
|
4927
|
-
/* @__PURE__ */
|
|
4947
|
+
/* @__PURE__ */ a(A, { variant: "caption", color: "secondary", children: "Showing total visitors for the last 6 months" })
|
|
4928
4948
|
] })
|
|
4929
4949
|
] })
|
|
4930
4950
|
] }),
|
|
4931
4951
|
/* @__PURE__ */ f("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t", children: [
|
|
4932
4952
|
/* @__PURE__ */ f("div", { children: [
|
|
4933
|
-
/* @__PURE__ */
|
|
4934
|
-
/* @__PURE__ */
|
|
4953
|
+
/* @__PURE__ */ a(A, { variant: "caption", color: "secondary", className: "mb-1", children: "Monto del préstamo" }),
|
|
4954
|
+
/* @__PURE__ */ a(A, { variant: "body", weight: "semibold", children: de(P.loanPrincipal) })
|
|
4935
4955
|
] }),
|
|
4936
4956
|
/* @__PURE__ */ f("div", { children: [
|
|
4937
|
-
/* @__PURE__ */
|
|
4938
|
-
/* @__PURE__ */
|
|
4957
|
+
/* @__PURE__ */ a(A, { variant: "caption", color: "secondary", className: "mb-1", children: "Pago mensual" }),
|
|
4958
|
+
/* @__PURE__ */ a(A, { variant: "body", weight: "semibold", children: de(P.monthlyPayment) })
|
|
4939
4959
|
] }),
|
|
4940
4960
|
/* @__PURE__ */ f("div", { children: [
|
|
4941
|
-
/* @__PURE__ */
|
|
4942
|
-
/* @__PURE__ */
|
|
4961
|
+
/* @__PURE__ */ a(A, { variant: "caption", color: "secondary", className: "mb-1", children: "Interés total" }),
|
|
4962
|
+
/* @__PURE__ */ a(A, { variant: "body", weight: "semibold", children: de(P.totalInterest) })
|
|
4943
4963
|
] }),
|
|
4944
4964
|
/* @__PURE__ */ f("div", { children: [
|
|
4945
|
-
/* @__PURE__ */
|
|
4946
|
-
/* @__PURE__ */
|
|
4965
|
+
/* @__PURE__ */ a(A, { variant: "caption", color: "secondary", className: "mb-1", children: "Total a pagar" }),
|
|
4966
|
+
/* @__PURE__ */ a(A, { variant: "body", weight: "semibold", children: de(P.totalAmount) })
|
|
4947
4967
|
] })
|
|
4948
4968
|
] })
|
|
4949
4969
|
] }) }) });
|
|
4950
4970
|
}
|
|
4951
4971
|
);
|
|
4952
|
-
|
|
4953
|
-
const
|
|
4972
|
+
yo.displayName = "MortgageCalculator";
|
|
4973
|
+
const vo = (e) => {
|
|
4954
4974
|
switch (e) {
|
|
4955
4975
|
case "sm":
|
|
4956
4976
|
return "p-4";
|
|
@@ -4961,32 +4981,32 @@ const xo = (e) => {
|
|
|
4961
4981
|
default:
|
|
4962
4982
|
return "p-0";
|
|
4963
4983
|
}
|
|
4964
|
-
},
|
|
4984
|
+
}, je = ({
|
|
4965
4985
|
children: e,
|
|
4966
4986
|
header: t,
|
|
4967
4987
|
sidebar: r,
|
|
4968
4988
|
footer: o,
|
|
4969
|
-
padding:
|
|
4989
|
+
padding: n = "md"
|
|
4970
4990
|
}) => {
|
|
4971
4991
|
const s = h("min-h-screen flex flex-col"), l = h("bg-card border-b border-border z-10"), i = h("flex flex-1"), c = h("w-70 bg-card border-r border-border p-6"), d = h("flex-1 flex flex-col"), m = h(
|
|
4972
4992
|
"flex-1 mx-auto w-full max-w-7xl",
|
|
4973
|
-
|
|
4993
|
+
vo(n)
|
|
4974
4994
|
);
|
|
4975
4995
|
return /* @__PURE__ */ f("div", { className: s, children: [
|
|
4976
|
-
t && /* @__PURE__ */
|
|
4996
|
+
t && /* @__PURE__ */ a("header", { className: l, children: t }),
|
|
4977
4997
|
/* @__PURE__ */ f("div", { className: i, children: [
|
|
4978
|
-
r && /* @__PURE__ */
|
|
4979
|
-
/* @__PURE__ */
|
|
4998
|
+
r && /* @__PURE__ */ a("aside", { className: c, children: r }),
|
|
4999
|
+
/* @__PURE__ */ a("div", { className: d, children: /* @__PURE__ */ a("main", { className: m, children: e }) })
|
|
4980
5000
|
] }),
|
|
4981
|
-
o && /* @__PURE__ */
|
|
5001
|
+
o && /* @__PURE__ */ a("footer", { className: "bg-card border-t border-border mt-auto", children: o })
|
|
4982
5002
|
] });
|
|
4983
|
-
},
|
|
5003
|
+
}, Fo = ({ children: e, header: t, sidebar: r }) => /* @__PURE__ */ a(je, { header: t, sidebar: r, padding: "lg", children: /* @__PURE__ */ a("div", { className: "max-w-screen-2xl", children: e }) }), _o = ({ children: e, title: t, subtitle: r }) => /* @__PURE__ */ a(je, { padding: "lg", children: /* @__PURE__ */ f("div", { className: "max-w-md mx-auto", children: [
|
|
4984
5004
|
/* @__PURE__ */ f("div", { className: "text-center mb-8", children: [
|
|
4985
|
-
t && /* @__PURE__ */
|
|
4986
|
-
r && /* @__PURE__ */
|
|
5005
|
+
t && /* @__PURE__ */ a(A, { variant: "h2", className: "mb-2", children: t }),
|
|
5006
|
+
r && /* @__PURE__ */ a(A, { variant: "body", color: "muted", children: r })
|
|
4987
5007
|
] }),
|
|
4988
5008
|
e
|
|
4989
|
-
] }) }),
|
|
5009
|
+
] }) }), Do = ({ children: e, header: t, footer: r }) => /* @__PURE__ */ a(je, { header: t, footer: r, padding: "none", children: e }), wo = {
|
|
4990
5010
|
name: "light",
|
|
4991
5011
|
colors: {
|
|
4992
5012
|
primary: "#007bff",
|
|
@@ -5052,7 +5072,7 @@ const xo = (e) => {
|
|
|
5052
5072
|
large: "0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10)",
|
|
5053
5073
|
xl: "0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05)"
|
|
5054
5074
|
}
|
|
5055
|
-
},
|
|
5075
|
+
}, ko = {
|
|
5056
5076
|
name: "dark",
|
|
5057
5077
|
colors: {
|
|
5058
5078
|
primary: "#0d6efd",
|
|
@@ -5118,7 +5138,7 @@ const xo = (e) => {
|
|
|
5118
5138
|
large: "0 10px 20px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3)",
|
|
5119
5139
|
xl: "0 15px 25px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.3)"
|
|
5120
5140
|
}
|
|
5121
|
-
},
|
|
5141
|
+
}, No = {
|
|
5122
5142
|
name: "corporate",
|
|
5123
5143
|
colors: {
|
|
5124
5144
|
primary: "#1a365d",
|
|
@@ -5184,7 +5204,7 @@ const xo = (e) => {
|
|
|
5184
5204
|
large: "0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05)",
|
|
5185
5205
|
xl: "0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04)"
|
|
5186
5206
|
}
|
|
5187
|
-
},
|
|
5207
|
+
}, Co = {
|
|
5188
5208
|
name: "minimal",
|
|
5189
5209
|
colors: {
|
|
5190
5210
|
primary: "#000000",
|
|
@@ -5250,27 +5270,27 @@ const xo = (e) => {
|
|
|
5250
5270
|
large: "none",
|
|
5251
5271
|
xl: "none"
|
|
5252
5272
|
}
|
|
5253
|
-
},
|
|
5254
|
-
light:
|
|
5255
|
-
dark:
|
|
5256
|
-
corporate:
|
|
5257
|
-
minimal:
|
|
5258
|
-
},
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
const vt =
|
|
5273
|
+
}, Se = {
|
|
5274
|
+
light: wo,
|
|
5275
|
+
dark: ko,
|
|
5276
|
+
corporate: No,
|
|
5277
|
+
minimal: Co
|
|
5278
|
+
}, Mo = Re(), So = Re(), Po = Re(), Y = Nt(Se.light).on(Mo, (e, t) => Se[t] || e).on(So, (e, t) => t).on(Po, () => Se.light), Go = Y.map((e) => e.name), Wo = Y.map((e) => e.colors);
|
|
5279
|
+
Y.map((e) => e.shapes);
|
|
5280
|
+
Y.map((e) => e.typography);
|
|
5281
|
+
Y.map((e) => e.spacing);
|
|
5282
|
+
Y.map((e) => e.shadows);
|
|
5283
|
+
const vt = Ae.createContext(null), Bo = () => {
|
|
5264
5284
|
const e = wt(vt);
|
|
5265
5285
|
if (!e)
|
|
5266
5286
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
5267
5287
|
return e;
|
|
5268
|
-
},
|
|
5288
|
+
}, Ho = ({ children: e }) => {
|
|
5269
5289
|
const r = {
|
|
5270
|
-
theme: kt(
|
|
5290
|
+
theme: kt(Y)
|
|
5271
5291
|
};
|
|
5272
|
-
return /* @__PURE__ */
|
|
5273
|
-
},
|
|
5292
|
+
return /* @__PURE__ */ a(vt.Provider, { value: r, children: e });
|
|
5293
|
+
}, Oo = {
|
|
5274
5294
|
// Spacing scale (in rem)
|
|
5275
5295
|
spacing: {
|
|
5276
5296
|
xs: "0.25rem",
|
|
@@ -5365,7 +5385,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5365
5385
|
out: "ease-out",
|
|
5366
5386
|
inOut: "ease-in-out"
|
|
5367
5387
|
}
|
|
5368
|
-
},
|
|
5388
|
+
}, Uo = {
|
|
5369
5389
|
button: {
|
|
5370
5390
|
size: {
|
|
5371
5391
|
sm: "h-9 px-3 text-sm",
|
|
@@ -5396,13 +5416,13 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5396
5416
|
outlined: "bg-card text-card-foreground border-2"
|
|
5397
5417
|
}
|
|
5398
5418
|
}
|
|
5399
|
-
},
|
|
5419
|
+
}, qo = {
|
|
5400
5420
|
sm: "640px",
|
|
5401
5421
|
md: "768px",
|
|
5402
5422
|
lg: "1024px",
|
|
5403
5423
|
xl: "1280px",
|
|
5404
5424
|
"2xl": "1536px"
|
|
5405
|
-
},
|
|
5425
|
+
}, Xo = {
|
|
5406
5426
|
/**
|
|
5407
5427
|
* Get a color value with opacity support
|
|
5408
5428
|
*/
|
|
@@ -5411,7 +5431,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5411
5431
|
* Get a color from the design system palette
|
|
5412
5432
|
*/
|
|
5413
5433
|
get: (e) => `hsl(var(--${e}))`
|
|
5414
|
-
},
|
|
5434
|
+
}, Zo = {
|
|
5415
5435
|
/**
|
|
5416
5436
|
* Generate a unique ID for form elements and their labels
|
|
5417
5437
|
*/
|
|
@@ -5430,7 +5450,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5430
5450
|
only: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0",
|
|
5431
5451
|
not: "not-sr-only"
|
|
5432
5452
|
}
|
|
5433
|
-
},
|
|
5453
|
+
}, Ko = {
|
|
5434
5454
|
icon: {
|
|
5435
5455
|
xs: "w-3 h-3",
|
|
5436
5456
|
sm: "w-4 h-4",
|
|
@@ -5445,7 +5465,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5445
5465
|
lg: "w-12 h-12",
|
|
5446
5466
|
xl: "w-16 h-16"
|
|
5447
5467
|
}
|
|
5448
|
-
},
|
|
5468
|
+
}, Qo = {
|
|
5449
5469
|
/**
|
|
5450
5470
|
* Fade animations
|
|
5451
5471
|
*/
|
|
@@ -5469,7 +5489,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5469
5489
|
in: "animate-in scale-in duration-200",
|
|
5470
5490
|
out: "animate-out scale-out duration-200"
|
|
5471
5491
|
}
|
|
5472
|
-
},
|
|
5492
|
+
}, Jo = {
|
|
5473
5493
|
/**
|
|
5474
5494
|
* Container utilities
|
|
5475
5495
|
*/
|
|
@@ -5503,7 +5523,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5503
5523
|
col: "flex flex-col",
|
|
5504
5524
|
colCenter: "flex flex-col items-center justify-center"
|
|
5505
5525
|
}
|
|
5506
|
-
},
|
|
5526
|
+
}, Yo = {
|
|
5507
5527
|
/**
|
|
5508
5528
|
* Check if dark mode is active
|
|
5509
5529
|
*/
|
|
@@ -5520,7 +5540,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5520
5540
|
set: (e) => {
|
|
5521
5541
|
typeof window > "u" || document.documentElement.classList.toggle("dark", e === "dark");
|
|
5522
5542
|
}
|
|
5523
|
-
},
|
|
5543
|
+
}, ea = {
|
|
5524
5544
|
/**
|
|
5525
5545
|
* Debounce function for performance optimization
|
|
5526
5546
|
*/
|
|
@@ -5539,7 +5559,7 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5539
5559
|
r || (e(...o), r = !0, setTimeout(() => r = !1, t));
|
|
5540
5560
|
};
|
|
5541
5561
|
}
|
|
5542
|
-
},
|
|
5562
|
+
}, ta = ({ href: e, children: t }) => /* @__PURE__ */ a(
|
|
5543
5563
|
"a",
|
|
5544
5564
|
{
|
|
5545
5565
|
href: e,
|
|
@@ -5548,62 +5568,62 @@ const vt = ze.createContext(null), Go = () => {
|
|
|
5548
5568
|
}
|
|
5549
5569
|
);
|
|
5550
5570
|
export {
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5571
|
+
Y as $theme,
|
|
5572
|
+
Wo as $themeColors,
|
|
5573
|
+
Go as $themeName,
|
|
5574
|
+
_o as AuthLayout,
|
|
5575
|
+
J as Button,
|
|
5556
5576
|
st as Card,
|
|
5557
5577
|
dt as CategoryChips,
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5578
|
+
Te as Chip,
|
|
5579
|
+
Ro as CompoundCard,
|
|
5580
|
+
Lo as ConfirmModal,
|
|
5581
|
+
Fo as DashboardLayout,
|
|
5562
5582
|
ct as DonutChart,
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5583
|
+
ho as EntityDirectory,
|
|
5584
|
+
oe as Input,
|
|
5585
|
+
Do as MarketingLayout,
|
|
5566
5586
|
Nr as Modal,
|
|
5567
5587
|
Cr as ModalWithActions,
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5588
|
+
yo as MortgageCalculator,
|
|
5589
|
+
je as PageLayout,
|
|
5590
|
+
jo as PropertyCard,
|
|
5591
|
+
go as PropertyGallery,
|
|
5572
5592
|
lt as Select,
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5593
|
+
ta as SkipLink,
|
|
5594
|
+
A as Text,
|
|
5595
|
+
Ho as ThemeProvider,
|
|
5596
|
+
Zo as a11y,
|
|
5597
|
+
Zo as accessibilityUtils,
|
|
5598
|
+
Qo as animationUtils,
|
|
5599
|
+
Qo as animations,
|
|
5600
|
+
qo as breakpoints,
|
|
5601
|
+
bo as calculateMortgage,
|
|
5582
5602
|
h as cn,
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5603
|
+
Xo as colorUtils,
|
|
5604
|
+
Xo as colors,
|
|
5605
|
+
Ko as componentSizes,
|
|
5606
|
+
Uo as componentVariants,
|
|
5607
|
+
uo as countEntitiesByCategory,
|
|
5608
|
+
Oo as designSystem,
|
|
5609
|
+
lo as filterEntitiesByCategory,
|
|
5610
|
+
de as formatCurrency,
|
|
5611
|
+
$o as formatPercentage,
|
|
5612
|
+
Jo as layout,
|
|
5613
|
+
Jo as layoutUtils,
|
|
5614
|
+
ea as performance,
|
|
5615
|
+
ea as performanceUtils,
|
|
5616
|
+
Po as resetTheme,
|
|
5617
|
+
qo as responsiveBreakpoints,
|
|
5618
|
+
So as setCustomTheme,
|
|
5619
|
+
Mo as setTheme,
|
|
5620
|
+
Ko as sizes,
|
|
5621
|
+
co as sortEntities,
|
|
5622
|
+
Yo as theme,
|
|
5623
|
+
Yo as themeUtils,
|
|
5624
|
+
To as useEntityFilter,
|
|
5625
|
+
Bo as useTheme,
|
|
5626
|
+
Vo as validateMortgageInput,
|
|
5627
|
+
Uo as variants
|
|
5608
5628
|
};
|
|
5609
5629
|
//# sourceMappingURL=design-system.es.js.map
|