@homlista-devs/ui 1.6.2 → 1.6.3
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 +9 -9
- package/dist/design-system.cjs.js.map +1 -1
- package/dist/design-system.es.js +1068 -1013
- package/dist/design-system.es.js.map +1 -1
- package/dist/index.css +18 -0
- package/dist/types/widgets/header/index.d.ts +24 -5
- package/dist/types/widgets/header/index.d.ts.map +1 -1
- package/dist/types/widgets/header/model/create-header-model.d.ts +13 -0
- package/dist/types/widgets/header/model/create-header-model.d.ts.map +1 -0
- package/dist/types/widgets/header/model/index.d.ts +7 -0
- package/dist/types/widgets/header/model/index.d.ts.map +1 -0
- package/dist/types/widgets/header/model/types.d.ts +62 -0
- package/dist/types/widgets/header/model/types.d.ts.map +1 -0
- package/dist/types/widgets/header/ui/header.d.ts +32 -38
- package/dist/types/widgets/header/ui/header.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/design-system.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import Ae, { useState as ee, useMemo as Ne, useCallback as
|
|
4
|
-
import { createEvent as Le, createStore as
|
|
5
|
-
import { useUnit as
|
|
6
|
-
function Et(e, t) {
|
|
7
|
-
return !t || t === "all" ? e : e.filter((a) => a.categoryId === t);
|
|
8
|
-
}
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import Ae, { useState as ee, useMemo as Ne, useCallback as He, useEffect as Ce, forwardRef as we, createElement as Pe, useContext as Tt } from "react";
|
|
4
|
+
import { createEvent as Le, createStore as zt } from "effector";
|
|
5
|
+
import { useUnit as Pt } from "effector-react";
|
|
9
6
|
function It(e, t) {
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
return !t || t === "all" ? e : e.filter((o) => o.categoryId === t);
|
|
8
|
+
}
|
|
9
|
+
function Et(e, t) {
|
|
10
|
+
const o = [...e];
|
|
11
|
+
return o.sort((a, n) => {
|
|
12
12
|
let s = "", l = "";
|
|
13
|
-
return t.column === "title" ? (s =
|
|
14
|
-
}),
|
|
13
|
+
return t.column === "title" ? (s = a.title.toLowerCase(), l = n.title.toLowerCase()) : t.column === "metric" && (s = Ge(a.metricValue), l = Ge(n.metricValue)), s < l ? t.direction === "asc" ? -1 : 1 : s > l ? t.direction === "asc" ? 1 : -1 : 0;
|
|
14
|
+
}), o;
|
|
15
15
|
}
|
|
16
16
|
function Ge(e) {
|
|
17
17
|
if (!e) return 0;
|
|
@@ -19,28 +19,28 @@ function Ge(e) {
|
|
|
19
19
|
return t ? parseFloat(t[0]) : 0;
|
|
20
20
|
}
|
|
21
21
|
function Rt(e, t) {
|
|
22
|
-
return t === "all" ? e.length : e.filter((
|
|
22
|
+
return t === "all" ? e.length : e.filter((o) => o.categoryId === t).length;
|
|
23
23
|
}
|
|
24
24
|
function jt(e) {
|
|
25
25
|
const {
|
|
26
26
|
propertyPrice: t,
|
|
27
|
-
downPayment:
|
|
28
|
-
loanTerm:
|
|
27
|
+
downPayment: o,
|
|
28
|
+
loanTerm: a,
|
|
29
29
|
interestRate: n,
|
|
30
30
|
propertyTax: s = 0,
|
|
31
31
|
hoaFees: l = 0
|
|
32
|
-
} = e, i = t -
|
|
32
|
+
} = e, i = t - o, c = n / 100 / 12, m = a * 12;
|
|
33
33
|
let u;
|
|
34
34
|
if (c === 0)
|
|
35
35
|
u = i / m;
|
|
36
36
|
else {
|
|
37
|
-
const
|
|
38
|
-
u = i * (c *
|
|
37
|
+
const y = Math.pow(1 + c, m);
|
|
38
|
+
u = i * (c * y) / (y - 1);
|
|
39
39
|
}
|
|
40
|
-
const d = u * m, h = d - i,
|
|
40
|
+
const d = u * m, h = d - i, M = u + s + l;
|
|
41
41
|
return {
|
|
42
42
|
monthlyPayment: Math.round(u * 100) / 100,
|
|
43
|
-
totalMonthlyPayment: Math.round(
|
|
43
|
+
totalMonthlyPayment: Math.round(M * 100) / 100,
|
|
44
44
|
totalAmount: Math.round(d * 100) / 100,
|
|
45
45
|
totalInterest: Math.round(h * 100) / 100,
|
|
46
46
|
loanPrincipal: Math.round(i * 100) / 100,
|
|
@@ -59,10 +59,10 @@ function me(e, t = "MXN") {
|
|
|
59
59
|
maximumFractionDigits: 0
|
|
60
60
|
}).format(e);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Jo(e, t = 3) {
|
|
63
63
|
return `${e.toFixed(t)} %`;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Qo(e) {
|
|
66
66
|
const t = {};
|
|
67
67
|
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"), {
|
|
68
68
|
isValid: Object.keys(t).length === 0,
|
|
@@ -70,47 +70,47 @@ function Ka(e) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function tt(e) {
|
|
73
|
-
var t,
|
|
74
|
-
if (typeof e == "string" || typeof e == "number")
|
|
73
|
+
var t, o, a = "";
|
|
74
|
+
if (typeof e == "string" || typeof e == "number") a += e;
|
|
75
75
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
76
76
|
var n = e.length;
|
|
77
|
-
for (t = 0; t < n; t++) e[t] && (
|
|
78
|
-
} else for (
|
|
79
|
-
return
|
|
77
|
+
for (t = 0; t < n; t++) e[t] && (o = tt(e[t])) && (a && (a += " "), a += o);
|
|
78
|
+
} else for (o in e) e[o] && (a && (a += " "), a += o);
|
|
79
|
+
return a;
|
|
80
80
|
}
|
|
81
81
|
function rt() {
|
|
82
|
-
for (var e, t,
|
|
83
|
-
return
|
|
82
|
+
for (var e, t, o = 0, a = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = tt(e)) && (a && (a += " "), a += t);
|
|
83
|
+
return a;
|
|
84
84
|
}
|
|
85
|
-
const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = rt, J = (e, t) => (
|
|
86
|
-
var
|
|
87
|
-
if (t?.variants == null) return Ue(e,
|
|
85
|
+
const We = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ue = rt, J = (e, t) => (o) => {
|
|
86
|
+
var a;
|
|
87
|
+
if (t?.variants == null) return Ue(e, o?.class, o?.className);
|
|
88
88
|
const { variants: n, defaultVariants: s } = t, l = Object.keys(n).map((m) => {
|
|
89
|
-
const u =
|
|
89
|
+
const u = o?.[m], d = s?.[m];
|
|
90
90
|
if (u === null) return null;
|
|
91
91
|
const h = We(u) || We(d);
|
|
92
92
|
return n[m][h];
|
|
93
|
-
}), i =
|
|
93
|
+
}), i = o && Object.entries(o).reduce((m, u) => {
|
|
94
94
|
let [d, h] = u;
|
|
95
95
|
return h === void 0 || (m[d] = h), m;
|
|
96
|
-
}, {}), c = t == null || (
|
|
97
|
-
let { class: d, className: h, ...
|
|
98
|
-
return Object.entries(
|
|
99
|
-
let [
|
|
100
|
-
return Array.isArray(
|
|
96
|
+
}, {}), c = t == null || (a = t.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((m, u) => {
|
|
97
|
+
let { class: d, className: h, ...M } = u;
|
|
98
|
+
return Object.entries(M).every((y) => {
|
|
99
|
+
let [C, g] = y;
|
|
100
|
+
return Array.isArray(g) ? g.includes({
|
|
101
101
|
...s,
|
|
102
102
|
...i
|
|
103
|
-
}[
|
|
103
|
+
}[C]) : {
|
|
104
104
|
...s,
|
|
105
105
|
...i
|
|
106
|
-
}[
|
|
106
|
+
}[C] === g;
|
|
107
107
|
}) ? [
|
|
108
108
|
...m,
|
|
109
109
|
d,
|
|
110
110
|
h
|
|
111
111
|
] : m;
|
|
112
112
|
}, []);
|
|
113
|
-
return Ue(e, l, c,
|
|
113
|
+
return Ue(e, l, c, o?.class, o?.className);
|
|
114
114
|
}, At = J(
|
|
115
115
|
"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",
|
|
116
116
|
{
|
|
@@ -143,15 +143,15 @@ function qe(e, t) {
|
|
|
143
143
|
}
|
|
144
144
|
function Lt(...e) {
|
|
145
145
|
return (t) => {
|
|
146
|
-
let
|
|
147
|
-
const
|
|
146
|
+
let o = !1;
|
|
147
|
+
const a = e.map((n) => {
|
|
148
148
|
const s = qe(n, t);
|
|
149
|
-
return !
|
|
149
|
+
return !o && typeof s == "function" && (o = !0), s;
|
|
150
150
|
});
|
|
151
|
-
if (
|
|
151
|
+
if (o)
|
|
152
152
|
return () => {
|
|
153
|
-
for (let n = 0; n <
|
|
154
|
-
const s =
|
|
153
|
+
for (let n = 0; n < a.length; n++) {
|
|
154
|
+
const s = a[n];
|
|
155
155
|
typeof s == "function" ? s() : qe(e[n], null);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
@@ -159,67 +159,67 @@ function Lt(...e) {
|
|
|
159
159
|
}
|
|
160
160
|
// @__NO_SIDE_EFFECTS__
|
|
161
161
|
function $t(e) {
|
|
162
|
-
const t = /* @__PURE__ */ Vt(e),
|
|
163
|
-
const { children: s, ...l } =
|
|
162
|
+
const t = /* @__PURE__ */ Vt(e), o = v.forwardRef((a, n) => {
|
|
163
|
+
const { children: s, ...l } = a, i = v.Children.toArray(s), c = i.find(_t);
|
|
164
164
|
if (c) {
|
|
165
|
-
const m = c.props.children, u = i.map((d) => d === c ?
|
|
166
|
-
return /* @__PURE__ */ r(t, { ...l, ref: n, children:
|
|
165
|
+
const m = c.props.children, u = i.map((d) => d === c ? v.Children.count(m) > 1 ? v.Children.only(null) : v.isValidElement(m) ? m.props.children : null : d);
|
|
166
|
+
return /* @__PURE__ */ r(t, { ...l, ref: n, children: v.isValidElement(m) ? v.cloneElement(m, void 0, u) : null });
|
|
167
167
|
}
|
|
168
168
|
return /* @__PURE__ */ r(t, { ...l, ref: n, children: s });
|
|
169
169
|
});
|
|
170
|
-
return
|
|
170
|
+
return o.displayName = `${e}.Slot`, o;
|
|
171
171
|
}
|
|
172
172
|
var Ot = /* @__PURE__ */ $t("Slot");
|
|
173
173
|
// @__NO_SIDE_EFFECTS__
|
|
174
174
|
function Vt(e) {
|
|
175
|
-
const t =
|
|
176
|
-
const { children: n, ...s } =
|
|
177
|
-
if (
|
|
178
|
-
const l =
|
|
179
|
-
return n.type !==
|
|
175
|
+
const t = v.forwardRef((o, a) => {
|
|
176
|
+
const { children: n, ...s } = o;
|
|
177
|
+
if (v.isValidElement(n)) {
|
|
178
|
+
const l = Bt(n), i = Dt(s, n.props);
|
|
179
|
+
return n.type !== v.Fragment && (i.ref = a ? Lt(a, l) : l), v.cloneElement(n, i);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return v.Children.count(n) > 1 ? v.Children.only(null) : null;
|
|
182
182
|
});
|
|
183
183
|
return t.displayName = `${e}.SlotClone`, t;
|
|
184
184
|
}
|
|
185
185
|
var Ft = Symbol("radix.slottable");
|
|
186
186
|
function _t(e) {
|
|
187
|
-
return
|
|
187
|
+
return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ft;
|
|
188
188
|
}
|
|
189
189
|
function Dt(e, t) {
|
|
190
|
-
const
|
|
191
|
-
for (const
|
|
192
|
-
const n = e[
|
|
193
|
-
/^on[A-Z]/.test(
|
|
190
|
+
const o = { ...t };
|
|
191
|
+
for (const a in t) {
|
|
192
|
+
const n = e[a], s = t[a];
|
|
193
|
+
/^on[A-Z]/.test(a) ? n && s ? o[a] = (...i) => {
|
|
194
194
|
const c = s(...i);
|
|
195
195
|
return n(...i), c;
|
|
196
|
-
} : n && (a
|
|
196
|
+
} : n && (o[a] = n) : a === "style" ? o[a] = { ...n, ...s } : a === "className" && (o[a] = [n, s].filter(Boolean).join(" "));
|
|
197
197
|
}
|
|
198
|
-
return { ...e, ...
|
|
198
|
+
return { ...e, ...o };
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get,
|
|
202
|
-
return
|
|
200
|
+
function Bt(e) {
|
|
201
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
202
|
+
return o ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
203
203
|
}
|
|
204
|
-
const $e = "-",
|
|
204
|
+
const $e = "-", Ht = (e) => {
|
|
205
205
|
const t = Wt(e), {
|
|
206
|
-
conflictingClassGroups:
|
|
207
|
-
conflictingClassGroupModifiers:
|
|
206
|
+
conflictingClassGroups: o,
|
|
207
|
+
conflictingClassGroupModifiers: a
|
|
208
208
|
} = e;
|
|
209
209
|
return {
|
|
210
210
|
getClassGroupId: (l) => {
|
|
211
211
|
const i = l.split($e);
|
|
212
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
212
|
+
return i[0] === "" && i.length !== 1 && i.shift(), ot(i, t) || Gt(l);
|
|
213
213
|
},
|
|
214
214
|
getConflictingClassGroupIds: (l, i) => {
|
|
215
|
-
const c =
|
|
216
|
-
return i &&
|
|
215
|
+
const c = o[l] || [];
|
|
216
|
+
return i && a[l] ? [...c, ...a[l]] : c;
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
-
},
|
|
219
|
+
}, ot = (e, t) => {
|
|
220
220
|
if (e.length === 0)
|
|
221
221
|
return t.classGroupId;
|
|
222
|
-
const
|
|
222
|
+
const o = e[0], a = t.nextPart.get(o), n = a ? ot(e.slice(1), a) : void 0;
|
|
223
223
|
if (n)
|
|
224
224
|
return n;
|
|
225
225
|
if (t.validators.length === 0)
|
|
@@ -230,51 +230,51 @@ const $e = "-", Bt = (e) => {
|
|
|
230
230
|
}) => l(s))?.classGroupId;
|
|
231
231
|
}, Xe = /^\[(.+)\]$/, Gt = (e) => {
|
|
232
232
|
if (Xe.test(e)) {
|
|
233
|
-
const t = Xe.exec(e)[1],
|
|
234
|
-
if (
|
|
235
|
-
return "arbitrary.." +
|
|
233
|
+
const t = Xe.exec(e)[1], o = t?.substring(0, t.indexOf(":"));
|
|
234
|
+
if (o)
|
|
235
|
+
return "arbitrary.." + o;
|
|
236
236
|
}
|
|
237
237
|
}, Wt = (e) => {
|
|
238
238
|
const {
|
|
239
239
|
theme: t,
|
|
240
|
-
classGroups:
|
|
241
|
-
} = e,
|
|
240
|
+
classGroups: o
|
|
241
|
+
} = e, a = {
|
|
242
242
|
nextPart: /* @__PURE__ */ new Map(),
|
|
243
243
|
validators: []
|
|
244
244
|
};
|
|
245
|
-
for (const n in
|
|
246
|
-
|
|
247
|
-
return
|
|
248
|
-
},
|
|
245
|
+
for (const n in o)
|
|
246
|
+
Ie(o[n], a, n, t);
|
|
247
|
+
return a;
|
|
248
|
+
}, Ie = (e, t, o, a) => {
|
|
249
249
|
e.forEach((n) => {
|
|
250
250
|
if (typeof n == "string") {
|
|
251
251
|
const s = n === "" ? t : Ze(t, n);
|
|
252
|
-
s.classGroupId =
|
|
252
|
+
s.classGroupId = o;
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (typeof n == "function") {
|
|
256
256
|
if (Ut(n)) {
|
|
257
|
-
|
|
257
|
+
Ie(n(a), t, o, a);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
t.validators.push({
|
|
261
261
|
validator: n,
|
|
262
|
-
classGroupId:
|
|
262
|
+
classGroupId: o
|
|
263
263
|
});
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
266
|
Object.entries(n).forEach(([s, l]) => {
|
|
267
|
-
|
|
267
|
+
Ie(l, Ze(t, s), o, a);
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}, Ze = (e, t) => {
|
|
271
|
-
let
|
|
272
|
-
return t.split($e).forEach((
|
|
273
|
-
|
|
271
|
+
let o = e;
|
|
272
|
+
return t.split($e).forEach((a) => {
|
|
273
|
+
o.nextPart.has(a) || o.nextPart.set(a, {
|
|
274
274
|
nextPart: /* @__PURE__ */ new Map(),
|
|
275
275
|
validators: []
|
|
276
|
-
}),
|
|
277
|
-
}),
|
|
276
|
+
}), o = o.nextPart.get(a);
|
|
277
|
+
}), o;
|
|
278
278
|
}, Ut = (e) => e.isThemeGetter, qt = (e) => {
|
|
279
279
|
if (e < 1)
|
|
280
280
|
return {
|
|
@@ -283,55 +283,55 @@ const $e = "-", Bt = (e) => {
|
|
|
283
283
|
set: () => {
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
let t = 0,
|
|
286
|
+
let t = 0, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
287
287
|
const n = (s, l) => {
|
|
288
|
-
|
|
288
|
+
o.set(s, l), t++, t > e && (t = 0, a = o, o = /* @__PURE__ */ new Map());
|
|
289
289
|
};
|
|
290
290
|
return {
|
|
291
291
|
get(s) {
|
|
292
|
-
let l =
|
|
292
|
+
let l = o.get(s);
|
|
293
293
|
if (l !== void 0)
|
|
294
294
|
return l;
|
|
295
|
-
if ((l =
|
|
295
|
+
if ((l = a.get(s)) !== void 0)
|
|
296
296
|
return n(s, l), l;
|
|
297
297
|
},
|
|
298
298
|
set(s, l) {
|
|
299
|
-
|
|
299
|
+
o.has(s) ? o.set(s, l) : n(s, l);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
},
|
|
302
|
+
}, Ee = "!", Re = ":", Xt = Re.length, Zt = (e) => {
|
|
303
303
|
const {
|
|
304
304
|
prefix: t,
|
|
305
|
-
experimentalParseClassName:
|
|
305
|
+
experimentalParseClassName: o
|
|
306
306
|
} = e;
|
|
307
|
-
let
|
|
307
|
+
let a = (n) => {
|
|
308
308
|
const s = [];
|
|
309
309
|
let l = 0, i = 0, c = 0, m;
|
|
310
|
-
for (let
|
|
311
|
-
let
|
|
310
|
+
for (let y = 0; y < n.length; y++) {
|
|
311
|
+
let C = n[y];
|
|
312
312
|
if (l === 0 && i === 0) {
|
|
313
|
-
if (
|
|
314
|
-
s.push(n.slice(c,
|
|
313
|
+
if (C === Re) {
|
|
314
|
+
s.push(n.slice(c, y)), c = y + Xt;
|
|
315
315
|
continue;
|
|
316
316
|
}
|
|
317
|
-
if (
|
|
318
|
-
m =
|
|
317
|
+
if (C === "/") {
|
|
318
|
+
m = y;
|
|
319
319
|
continue;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
C === "[" ? l++ : C === "]" ? l-- : C === "(" ? i++ : C === ")" && i--;
|
|
323
323
|
}
|
|
324
|
-
const u = s.length === 0 ? n : n.substring(c), d = Kt(u), h = d !== u,
|
|
324
|
+
const u = s.length === 0 ? n : n.substring(c), d = Kt(u), h = d !== u, M = m && m > c ? m - c : void 0;
|
|
325
325
|
return {
|
|
326
326
|
modifiers: s,
|
|
327
327
|
hasImportantModifier: h,
|
|
328
328
|
baseClassName: d,
|
|
329
|
-
maybePostfixModifierPosition:
|
|
329
|
+
maybePostfixModifierPosition: M
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (t) {
|
|
333
|
-
const n = t + Re, s =
|
|
334
|
-
|
|
333
|
+
const n = t + Re, s = a;
|
|
334
|
+
a = (l) => l.startsWith(n) ? s(l.substring(n.length)) : {
|
|
335
335
|
isExternal: !0,
|
|
336
336
|
modifiers: [],
|
|
337
337
|
hasImportantModifier: !1,
|
|
@@ -339,22 +339,22 @@ const $e = "-", Bt = (e) => {
|
|
|
339
339
|
maybePostfixModifierPosition: void 0
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
if (
|
|
343
|
-
const n =
|
|
344
|
-
|
|
342
|
+
if (o) {
|
|
343
|
+
const n = a;
|
|
344
|
+
a = (s) => o({
|
|
345
345
|
className: s,
|
|
346
346
|
parseClassName: n
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
return
|
|
350
|
-
}, Kt = (e) => e.endsWith(
|
|
351
|
-
const t = Object.fromEntries(e.orderSensitiveModifiers.map((
|
|
352
|
-
return (
|
|
353
|
-
if (
|
|
354
|
-
return
|
|
349
|
+
return a;
|
|
350
|
+
}, Kt = (e) => e.endsWith(Ee) ? e.substring(0, e.length - 1) : e.startsWith(Ee) ? e.substring(1) : e, Jt = (e) => {
|
|
351
|
+
const t = Object.fromEntries(e.orderSensitiveModifiers.map((a) => [a, !0]));
|
|
352
|
+
return (a) => {
|
|
353
|
+
if (a.length <= 1)
|
|
354
|
+
return a;
|
|
355
355
|
const n = [];
|
|
356
356
|
let s = [];
|
|
357
|
-
return
|
|
357
|
+
return a.forEach((l) => {
|
|
358
358
|
l[0] === "[" || t[l] ? (n.push(...s.sort(), l), s = []) : s.push(l);
|
|
359
359
|
}), n.push(...s.sort()), n;
|
|
360
360
|
};
|
|
@@ -362,11 +362,11 @@ const $e = "-", Bt = (e) => {
|
|
|
362
362
|
cache: qt(e.cacheSize),
|
|
363
363
|
parseClassName: Zt(e),
|
|
364
364
|
sortModifiers: Jt(e),
|
|
365
|
-
...
|
|
365
|
+
...Ht(e)
|
|
366
366
|
}), Yt = /\s+/, er = (e, t) => {
|
|
367
367
|
const {
|
|
368
|
-
parseClassName:
|
|
369
|
-
getClassGroupId:
|
|
368
|
+
parseClassName: o,
|
|
369
|
+
getClassGroupId: a,
|
|
370
370
|
getConflictingClassGroupIds: n,
|
|
371
371
|
sortModifiers: s
|
|
372
372
|
} = t, l = [], i = e.trim().split(Yt);
|
|
@@ -375,64 +375,64 @@ const $e = "-", Bt = (e) => {
|
|
|
375
375
|
const u = i[m], {
|
|
376
376
|
isExternal: d,
|
|
377
377
|
modifiers: h,
|
|
378
|
-
hasImportantModifier:
|
|
379
|
-
baseClassName:
|
|
380
|
-
maybePostfixModifierPosition:
|
|
381
|
-
} =
|
|
378
|
+
hasImportantModifier: M,
|
|
379
|
+
baseClassName: y,
|
|
380
|
+
maybePostfixModifierPosition: C
|
|
381
|
+
} = o(u);
|
|
382
382
|
if (d) {
|
|
383
383
|
c = u + (c.length > 0 ? " " + c : c);
|
|
384
384
|
continue;
|
|
385
385
|
}
|
|
386
|
-
let
|
|
387
|
-
if (!
|
|
388
|
-
if (!
|
|
386
|
+
let g = !!C, w = a(g ? y.substring(0, C) : y);
|
|
387
|
+
if (!w) {
|
|
388
|
+
if (!g) {
|
|
389
389
|
c = u + (c.length > 0 ? " " + c : c);
|
|
390
390
|
continue;
|
|
391
391
|
}
|
|
392
|
-
if (
|
|
392
|
+
if (w = a(y), !w) {
|
|
393
393
|
c = u + (c.length > 0 ? " " + c : c);
|
|
394
394
|
continue;
|
|
395
395
|
}
|
|
396
|
-
|
|
396
|
+
g = !1;
|
|
397
397
|
}
|
|
398
|
-
const
|
|
398
|
+
const z = s(h).join(":"), S = M ? z + Ee : z, P = S + w;
|
|
399
399
|
if (l.includes(P))
|
|
400
400
|
continue;
|
|
401
401
|
l.push(P);
|
|
402
|
-
const
|
|
403
|
-
for (let V = 0; V <
|
|
404
|
-
const
|
|
405
|
-
l.push(
|
|
402
|
+
const I = n(w, g);
|
|
403
|
+
for (let V = 0; V < I.length; ++V) {
|
|
404
|
+
const E = I[V];
|
|
405
|
+
l.push(S + E);
|
|
406
406
|
}
|
|
407
407
|
c = u + (c.length > 0 ? " " + c : c);
|
|
408
408
|
}
|
|
409
409
|
return c;
|
|
410
410
|
};
|
|
411
411
|
function tr() {
|
|
412
|
-
let e = 0, t,
|
|
412
|
+
let e = 0, t, o, a = "";
|
|
413
413
|
for (; e < arguments.length; )
|
|
414
|
-
(t = arguments[e++]) && (
|
|
415
|
-
return
|
|
414
|
+
(t = arguments[e++]) && (o = at(t)) && (a && (a += " "), a += o);
|
|
415
|
+
return a;
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
const at = (e) => {
|
|
418
418
|
if (typeof e == "string")
|
|
419
419
|
return e;
|
|
420
|
-
let t,
|
|
421
|
-
for (let
|
|
422
|
-
e[
|
|
423
|
-
return
|
|
420
|
+
let t, o = "";
|
|
421
|
+
for (let a = 0; a < e.length; a++)
|
|
422
|
+
e[a] && (t = at(e[a])) && (o && (o += " "), o += t);
|
|
423
|
+
return o;
|
|
424
424
|
};
|
|
425
425
|
function rr(e, ...t) {
|
|
426
|
-
let
|
|
426
|
+
let o, a, n, s = l;
|
|
427
427
|
function l(c) {
|
|
428
428
|
const m = t.reduce((u, d) => d(u), e());
|
|
429
|
-
return
|
|
429
|
+
return o = Qt(m), a = o.cache.get, n = o.cache.set, s = i, i(c);
|
|
430
430
|
}
|
|
431
431
|
function i(c) {
|
|
432
|
-
const m =
|
|
432
|
+
const m = a(c);
|
|
433
433
|
if (m)
|
|
434
434
|
return m;
|
|
435
|
-
const u = er(c,
|
|
435
|
+
const u = er(c, o);
|
|
436
436
|
return n(c, u), u;
|
|
437
437
|
}
|
|
438
438
|
return function() {
|
|
@@ -440,21 +440,21 @@ function rr(e, ...t) {
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
const A = (e) => {
|
|
443
|
-
const t = (
|
|
443
|
+
const t = (o) => o[e] || [];
|
|
444
444
|
return t.isThemeGetter = !0, t;
|
|
445
|
-
}, nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, st = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
445
|
+
}, nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, st = /^\((?:(\w[\w-]*):)?(.+)\)$/i, or = /^\d+\/\d+$/, ar = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nr = /\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$/, sr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, lr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ir = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ae = (e) => or.test(e), T = (e) => !!e && !Number.isNaN(Number(e)), Z = (e) => !!e && Number.isInteger(Number(e)), Me = (e) => e.endsWith("%") && T(e.slice(0, -1)), U = (e) => ar.test(e), cr = () => !0, dr = (e) => (
|
|
446
446
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
447
447
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
448
448
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
449
449
|
nr.test(e) && !sr.test(e)
|
|
450
|
-
), lt = () => !1, mr = (e) => lr.test(e), ur = (e) => ir.test(e), pr = (e) => !
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
}, ce = (e, t,
|
|
454
|
-
const
|
|
455
|
-
return
|
|
450
|
+
), lt = () => !1, mr = (e) => lr.test(e), ur = (e) => ir.test(e), pr = (e) => !b(e) && !x(e), fr = (e) => ie(e, dt, lt), b = (e) => nt.test(e), Y = (e) => ie(e, mt, dr), Se = (e) => ie(e, yr, T), Ke = (e) => ie(e, it, lt), hr = (e) => ie(e, ct, ur), xe = (e) => ie(e, ut, mr), x = (e) => st.test(e), ue = (e) => ce(e, mt), gr = (e) => ce(e, vr), Je = (e) => ce(e, it), br = (e) => ce(e, dt), xr = (e) => ce(e, ct), ye = (e) => ce(e, ut, !0), ie = (e, t, o) => {
|
|
451
|
+
const a = nt.exec(e);
|
|
452
|
+
return a ? a[1] ? t(a[1]) : o(a[2]) : !1;
|
|
453
|
+
}, ce = (e, t, o = !1) => {
|
|
454
|
+
const a = st.exec(e);
|
|
455
|
+
return a ? a[1] ? t(a[1]) : o : !1;
|
|
456
456
|
}, it = (e) => e === "position" || e === "percentage", ct = (e) => e === "image" || e === "url", dt = (e) => e === "length" || e === "size" || e === "bg-size", mt = (e) => e === "length", yr = (e) => e === "number", vr = (e) => e === "family-name", ut = (e) => e === "shadow", wr = () => {
|
|
457
|
-
const e = A("color"), t = A("font"),
|
|
457
|
+
const e = A("color"), t = A("font"), o = A("text"), a = A("font-weight"), n = A("tracking"), s = A("leading"), l = A("breakpoint"), i = A("container"), c = A("spacing"), m = A("radius"), u = A("shadow"), d = A("inset-shadow"), h = A("text-shadow"), M = A("drop-shadow"), y = A("blur"), C = A("perspective"), g = A("aspect"), w = A("ease"), z = A("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
458
458
|
"center",
|
|
459
459
|
"top",
|
|
460
460
|
"bottom",
|
|
@@ -472,30 +472,30 @@ const A = (e) => {
|
|
|
472
472
|
"bottom-left",
|
|
473
473
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
474
474
|
"left-bottom"
|
|
475
|
-
],
|
|
476
|
-
span: ["full", Z,
|
|
477
|
-
}, Z,
|
|
478
|
-
position: [
|
|
475
|
+
], I = () => [...P(), x, b], V = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], k = () => [x, b, c], L = () => [ae, "full", "auto", ...k()], q = () => [Z, "none", "subgrid", x, b], re = () => ["auto", {
|
|
476
|
+
span: ["full", Z, x, b]
|
|
477
|
+
}, Z, x, b], X = () => [Z, "auto", x, b], oe = () => ["auto", "min", "max", "fr", x, b], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...k()], W = () => [ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], N = () => [e, x, b], pe = () => [...P(), Je, Ke, {
|
|
478
|
+
position: [x, b]
|
|
479
479
|
}], de = () => ["no-repeat", {
|
|
480
480
|
repeat: ["", "x", "y", "space", "round"]
|
|
481
481
|
}], _ = () => ["auto", "cover", "contain", br, fr, {
|
|
482
|
-
size: [
|
|
483
|
-
}], F = () => [
|
|
482
|
+
size: [x, b]
|
|
483
|
+
}], F = () => [Me, ue, Y], j = () => [
|
|
484
484
|
// Deprecated since Tailwind CSS v4.0.0
|
|
485
485
|
"",
|
|
486
486
|
"none",
|
|
487
487
|
"full",
|
|
488
488
|
m,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
],
|
|
489
|
+
x,
|
|
490
|
+
b
|
|
491
|
+
], H = () => ["", T, ue, Y], fe = () => ["solid", "dashed", "dotted", "double"], De = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [T, Me, Je, Ke], Be = () => [
|
|
492
492
|
// Deprecated since Tailwind CSS v4.0.0
|
|
493
493
|
"",
|
|
494
494
|
"none",
|
|
495
|
+
y,
|
|
495
496
|
x,
|
|
496
|
-
b
|
|
497
|
-
|
|
498
|
-
], he = () => ["none", M, b, g], ge = () => ["none", M, b, g], ke = () => [M, b, g], be = () => [oe, "full", ...v()];
|
|
497
|
+
b
|
|
498
|
+
], he = () => ["none", T, x, b], ge = () => ["none", T, x, b], ke = () => [T, x, b], be = () => [ae, "full", ...k()];
|
|
499
499
|
return {
|
|
500
500
|
cacheSize: 500,
|
|
501
501
|
theme: {
|
|
@@ -514,7 +514,7 @@ const A = (e) => {
|
|
|
514
514
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
515
515
|
radius: [U],
|
|
516
516
|
shadow: [U],
|
|
517
|
-
spacing: ["px",
|
|
517
|
+
spacing: ["px", T],
|
|
518
518
|
text: [U],
|
|
519
519
|
"text-shadow": [U],
|
|
520
520
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -528,7 +528,7 @@ const A = (e) => {
|
|
|
528
528
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
529
529
|
*/
|
|
530
530
|
aspect: [{
|
|
531
|
-
aspect: ["auto", "square",
|
|
531
|
+
aspect: ["auto", "square", ae, b, x, g]
|
|
532
532
|
}],
|
|
533
533
|
/**
|
|
534
534
|
* Container
|
|
@@ -541,21 +541,21 @@ const A = (e) => {
|
|
|
541
541
|
* @see https://tailwindcss.com/docs/columns
|
|
542
542
|
*/
|
|
543
543
|
columns: [{
|
|
544
|
-
columns: [
|
|
544
|
+
columns: [T, b, x, i]
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* Break After
|
|
548
548
|
* @see https://tailwindcss.com/docs/break-after
|
|
549
549
|
*/
|
|
550
550
|
"break-after": [{
|
|
551
|
-
"break-after":
|
|
551
|
+
"break-after": S()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Break Before
|
|
555
555
|
* @see https://tailwindcss.com/docs/break-before
|
|
556
556
|
*/
|
|
557
557
|
"break-before": [{
|
|
558
|
-
"break-before":
|
|
558
|
+
"break-before": S()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Break Inside
|
|
@@ -619,7 +619,7 @@ const A = (e) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/object-position
|
|
620
620
|
*/
|
|
621
621
|
"object-position": [{
|
|
622
|
-
object:
|
|
622
|
+
object: I()
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Overflow
|
|
@@ -647,21 +647,21 @@ const A = (e) => {
|
|
|
647
647
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
648
648
|
*/
|
|
649
649
|
overscroll: [{
|
|
650
|
-
overscroll:
|
|
650
|
+
overscroll: E()
|
|
651
651
|
}],
|
|
652
652
|
/**
|
|
653
653
|
* Overscroll Behavior X
|
|
654
654
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
655
655
|
*/
|
|
656
656
|
"overscroll-x": [{
|
|
657
|
-
"overscroll-x":
|
|
657
|
+
"overscroll-x": E()
|
|
658
658
|
}],
|
|
659
659
|
/**
|
|
660
660
|
* Overscroll Behavior Y
|
|
661
661
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
662
662
|
*/
|
|
663
663
|
"overscroll-y": [{
|
|
664
|
-
"overscroll-y":
|
|
664
|
+
"overscroll-y": E()
|
|
665
665
|
}],
|
|
666
666
|
/**
|
|
667
667
|
* Position
|
|
@@ -741,7 +741,7 @@ const A = (e) => {
|
|
|
741
741
|
* @see https://tailwindcss.com/docs/z-index
|
|
742
742
|
*/
|
|
743
743
|
z: [{
|
|
744
|
-
z: [Z, "auto",
|
|
744
|
+
z: [Z, "auto", x, b]
|
|
745
745
|
}],
|
|
746
746
|
// ------------------------
|
|
747
747
|
// --- Flexbox and Grid ---
|
|
@@ -751,7 +751,7 @@ const A = (e) => {
|
|
|
751
751
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
752
752
|
*/
|
|
753
753
|
basis: [{
|
|
754
|
-
basis: [
|
|
754
|
+
basis: [ae, "full", "auto", i, ...k()]
|
|
755
755
|
}],
|
|
756
756
|
/**
|
|
757
757
|
* Flex Direction
|
|
@@ -772,28 +772,28 @@ const A = (e) => {
|
|
|
772
772
|
* @see https://tailwindcss.com/docs/flex
|
|
773
773
|
*/
|
|
774
774
|
flex: [{
|
|
775
|
-
flex: [
|
|
775
|
+
flex: [T, ae, "auto", "initial", "none", b]
|
|
776
776
|
}],
|
|
777
777
|
/**
|
|
778
778
|
* Flex Grow
|
|
779
779
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
780
780
|
*/
|
|
781
781
|
grow: [{
|
|
782
|
-
grow: ["",
|
|
782
|
+
grow: ["", T, x, b]
|
|
783
783
|
}],
|
|
784
784
|
/**
|
|
785
785
|
* Flex Shrink
|
|
786
786
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
787
787
|
*/
|
|
788
788
|
shrink: [{
|
|
789
|
-
shrink: ["",
|
|
789
|
+
shrink: ["", T, x, b]
|
|
790
790
|
}],
|
|
791
791
|
/**
|
|
792
792
|
* Order
|
|
793
793
|
* @see https://tailwindcss.com/docs/order
|
|
794
794
|
*/
|
|
795
795
|
order: [{
|
|
796
|
-
order: [Z, "first", "last", "none",
|
|
796
|
+
order: [Z, "first", "last", "none", x, b]
|
|
797
797
|
}],
|
|
798
798
|
/**
|
|
799
799
|
* Grid Template Columns
|
|
@@ -863,35 +863,35 @@ const A = (e) => {
|
|
|
863
863
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
864
864
|
*/
|
|
865
865
|
"auto-cols": [{
|
|
866
|
-
"auto-cols":
|
|
866
|
+
"auto-cols": oe()
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Grid Auto Rows
|
|
870
870
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
871
871
|
*/
|
|
872
872
|
"auto-rows": [{
|
|
873
|
-
"auto-rows":
|
|
873
|
+
"auto-rows": oe()
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Gap
|
|
877
877
|
* @see https://tailwindcss.com/docs/gap
|
|
878
878
|
*/
|
|
879
879
|
gap: [{
|
|
880
|
-
gap:
|
|
880
|
+
gap: k()
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Gap X
|
|
884
884
|
* @see https://tailwindcss.com/docs/gap
|
|
885
885
|
*/
|
|
886
886
|
"gap-x": [{
|
|
887
|
-
"gap-x":
|
|
887
|
+
"gap-x": k()
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Gap Y
|
|
891
891
|
* @see https://tailwindcss.com/docs/gap
|
|
892
892
|
*/
|
|
893
893
|
"gap-y": [{
|
|
894
|
-
"gap-y":
|
|
894
|
+
"gap-y": k()
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Justify Content
|
|
@@ -905,14 +905,14 @@ const A = (e) => {
|
|
|
905
905
|
* @see https://tailwindcss.com/docs/justify-items
|
|
906
906
|
*/
|
|
907
907
|
"justify-items": [{
|
|
908
|
-
"justify-items": [...
|
|
908
|
+
"justify-items": [...B(), "normal"]
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Justify Self
|
|
912
912
|
* @see https://tailwindcss.com/docs/justify-self
|
|
913
913
|
*/
|
|
914
914
|
"justify-self": [{
|
|
915
|
-
"justify-self": ["auto", ...
|
|
915
|
+
"justify-self": ["auto", ...B()]
|
|
916
916
|
}],
|
|
917
917
|
/**
|
|
918
918
|
* Align Content
|
|
@@ -926,7 +926,7 @@ const A = (e) => {
|
|
|
926
926
|
* @see https://tailwindcss.com/docs/align-items
|
|
927
927
|
*/
|
|
928
928
|
"align-items": [{
|
|
929
|
-
items: [...
|
|
929
|
+
items: [...B(), {
|
|
930
930
|
baseline: ["", "last"]
|
|
931
931
|
}]
|
|
932
932
|
}],
|
|
@@ -935,7 +935,7 @@ const A = (e) => {
|
|
|
935
935
|
* @see https://tailwindcss.com/docs/align-self
|
|
936
936
|
*/
|
|
937
937
|
"align-self": [{
|
|
938
|
-
self: ["auto", ...
|
|
938
|
+
self: ["auto", ...B(), {
|
|
939
939
|
baseline: ["", "last"]
|
|
940
940
|
}]
|
|
941
941
|
}],
|
|
@@ -951,14 +951,14 @@ const A = (e) => {
|
|
|
951
951
|
* @see https://tailwindcss.com/docs/place-items
|
|
952
952
|
*/
|
|
953
953
|
"place-items": [{
|
|
954
|
-
"place-items": [...
|
|
954
|
+
"place-items": [...B(), "baseline"]
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Place Self
|
|
958
958
|
* @see https://tailwindcss.com/docs/place-self
|
|
959
959
|
*/
|
|
960
960
|
"place-self": [{
|
|
961
|
-
"place-self": ["auto", ...
|
|
961
|
+
"place-self": ["auto", ...B()]
|
|
962
962
|
}],
|
|
963
963
|
// Spacing
|
|
964
964
|
/**
|
|
@@ -966,63 +966,63 @@ const A = (e) => {
|
|
|
966
966
|
* @see https://tailwindcss.com/docs/padding
|
|
967
967
|
*/
|
|
968
968
|
p: [{
|
|
969
|
-
p:
|
|
969
|
+
p: k()
|
|
970
970
|
}],
|
|
971
971
|
/**
|
|
972
972
|
* Padding X
|
|
973
973
|
* @see https://tailwindcss.com/docs/padding
|
|
974
974
|
*/
|
|
975
975
|
px: [{
|
|
976
|
-
px:
|
|
976
|
+
px: k()
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Padding Y
|
|
980
980
|
* @see https://tailwindcss.com/docs/padding
|
|
981
981
|
*/
|
|
982
982
|
py: [{
|
|
983
|
-
py:
|
|
983
|
+
py: k()
|
|
984
984
|
}],
|
|
985
985
|
/**
|
|
986
986
|
* Padding Start
|
|
987
987
|
* @see https://tailwindcss.com/docs/padding
|
|
988
988
|
*/
|
|
989
989
|
ps: [{
|
|
990
|
-
ps:
|
|
990
|
+
ps: k()
|
|
991
991
|
}],
|
|
992
992
|
/**
|
|
993
993
|
* Padding End
|
|
994
994
|
* @see https://tailwindcss.com/docs/padding
|
|
995
995
|
*/
|
|
996
996
|
pe: [{
|
|
997
|
-
pe:
|
|
997
|
+
pe: k()
|
|
998
998
|
}],
|
|
999
999
|
/**
|
|
1000
1000
|
* Padding Top
|
|
1001
1001
|
* @see https://tailwindcss.com/docs/padding
|
|
1002
1002
|
*/
|
|
1003
1003
|
pt: [{
|
|
1004
|
-
pt:
|
|
1004
|
+
pt: k()
|
|
1005
1005
|
}],
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Padding Right
|
|
1008
1008
|
* @see https://tailwindcss.com/docs/padding
|
|
1009
1009
|
*/
|
|
1010
1010
|
pr: [{
|
|
1011
|
-
pr:
|
|
1011
|
+
pr: k()
|
|
1012
1012
|
}],
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Padding Bottom
|
|
1015
1015
|
* @see https://tailwindcss.com/docs/padding
|
|
1016
1016
|
*/
|
|
1017
1017
|
pb: [{
|
|
1018
|
-
pb:
|
|
1018
|
+
pb: k()
|
|
1019
1019
|
}],
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Padding Left
|
|
1022
1022
|
* @see https://tailwindcss.com/docs/padding
|
|
1023
1023
|
*/
|
|
1024
1024
|
pl: [{
|
|
1025
|
-
pl:
|
|
1025
|
+
pl: k()
|
|
1026
1026
|
}],
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Margin
|
|
@@ -1092,7 +1092,7 @@ const A = (e) => {
|
|
|
1092
1092
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1093
1093
|
*/
|
|
1094
1094
|
"space-x": [{
|
|
1095
|
-
"space-x":
|
|
1095
|
+
"space-x": k()
|
|
1096
1096
|
}],
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Space Between X Reverse
|
|
@@ -1104,7 +1104,7 @@ const A = (e) => {
|
|
|
1104
1104
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1105
1105
|
*/
|
|
1106
1106
|
"space-y": [{
|
|
1107
|
-
"space-y":
|
|
1107
|
+
"space-y": k()
|
|
1108
1108
|
}],
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Space Between Y Reverse
|
|
@@ -1188,7 +1188,7 @@ const A = (e) => {
|
|
|
1188
1188
|
* @see https://tailwindcss.com/docs/font-size
|
|
1189
1189
|
*/
|
|
1190
1190
|
"font-size": [{
|
|
1191
|
-
text: ["base",
|
|
1191
|
+
text: ["base", o, ue, Y]
|
|
1192
1192
|
}],
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Font Smoothing
|
|
@@ -1205,21 +1205,21 @@ const A = (e) => {
|
|
|
1205
1205
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1206
1206
|
*/
|
|
1207
1207
|
"font-weight": [{
|
|
1208
|
-
font: [
|
|
1208
|
+
font: [a, x, Se]
|
|
1209
1209
|
}],
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Font Stretch
|
|
1212
1212
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1213
1213
|
*/
|
|
1214
1214
|
"font-stretch": [{
|
|
1215
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1215
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Me, b]
|
|
1216
1216
|
}],
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Font Family
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/font-family
|
|
1220
1220
|
*/
|
|
1221
1221
|
"font-family": [{
|
|
1222
|
-
font: [gr,
|
|
1222
|
+
font: [gr, b, t]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Font Variant Numeric
|
|
@@ -1256,14 +1256,14 @@ const A = (e) => {
|
|
|
1256
1256
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1257
1257
|
*/
|
|
1258
1258
|
tracking: [{
|
|
1259
|
-
tracking: [n,
|
|
1259
|
+
tracking: [n, x, b]
|
|
1260
1260
|
}],
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Line Clamp
|
|
1263
1263
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1264
1264
|
*/
|
|
1265
1265
|
"line-clamp": [{
|
|
1266
|
-
"line-clamp": [
|
|
1266
|
+
"line-clamp": [T, "none", x, Se]
|
|
1267
1267
|
}],
|
|
1268
1268
|
/**
|
|
1269
1269
|
* Line Height
|
|
@@ -1273,7 +1273,7 @@ const A = (e) => {
|
|
|
1273
1273
|
leading: [
|
|
1274
1274
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1275
1275
|
s,
|
|
1276
|
-
...
|
|
1276
|
+
...k()
|
|
1277
1277
|
]
|
|
1278
1278
|
}],
|
|
1279
1279
|
/**
|
|
@@ -1281,7 +1281,7 @@ const A = (e) => {
|
|
|
1281
1281
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1282
1282
|
*/
|
|
1283
1283
|
"list-image": [{
|
|
1284
|
-
"list-image": ["none",
|
|
1284
|
+
"list-image": ["none", x, b]
|
|
1285
1285
|
}],
|
|
1286
1286
|
/**
|
|
1287
1287
|
* List Style Position
|
|
@@ -1295,7 +1295,7 @@ const A = (e) => {
|
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1296
1296
|
*/
|
|
1297
1297
|
"list-style-type": [{
|
|
1298
|
-
list: ["disc", "decimal", "none",
|
|
1298
|
+
list: ["disc", "decimal", "none", x, b]
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Text Alignment
|
|
@@ -1310,14 +1310,14 @@ const A = (e) => {
|
|
|
1310
1310
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1311
1311
|
*/
|
|
1312
1312
|
"placeholder-color": [{
|
|
1313
|
-
placeholder:
|
|
1313
|
+
placeholder: N()
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Text Color
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/text-color
|
|
1318
1318
|
*/
|
|
1319
1319
|
"text-color": [{
|
|
1320
|
-
text:
|
|
1320
|
+
text: N()
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Text Decoration
|
|
@@ -1336,21 +1336,21 @@ const A = (e) => {
|
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1337
1337
|
*/
|
|
1338
1338
|
"text-decoration-thickness": [{
|
|
1339
|
-
decoration: [
|
|
1339
|
+
decoration: [T, "from-font", "auto", x, Y]
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Text Decoration Color
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1344
1344
|
*/
|
|
1345
1345
|
"text-decoration-color": [{
|
|
1346
|
-
decoration:
|
|
1346
|
+
decoration: N()
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Text Underline Offset
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1351
1351
|
*/
|
|
1352
1352
|
"underline-offset": [{
|
|
1353
|
-
"underline-offset": [
|
|
1353
|
+
"underline-offset": [T, "auto", x, b]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Text Transform
|
|
@@ -1374,14 +1374,14 @@ const A = (e) => {
|
|
|
1374
1374
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1375
1375
|
*/
|
|
1376
1376
|
indent: [{
|
|
1377
|
-
indent:
|
|
1377
|
+
indent: k()
|
|
1378
1378
|
}],
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Vertical Alignment
|
|
1381
1381
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1382
1382
|
*/
|
|
1383
1383
|
"vertical-align": [{
|
|
1384
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1384
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", x, b]
|
|
1385
1385
|
}],
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Whitespace
|
|
@@ -1416,7 +1416,7 @@ const A = (e) => {
|
|
|
1416
1416
|
* @see https://tailwindcss.com/docs/content
|
|
1417
1417
|
*/
|
|
1418
1418
|
content: [{
|
|
1419
|
-
content: ["none",
|
|
1419
|
+
content: ["none", x, b]
|
|
1420
1420
|
}],
|
|
1421
1421
|
// -------------------
|
|
1422
1422
|
// --- Backgrounds ---
|
|
@@ -1471,9 +1471,9 @@ const A = (e) => {
|
|
|
1471
1471
|
bg: ["none", {
|
|
1472
1472
|
linear: [{
|
|
1473
1473
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1474
|
-
}, Z,
|
|
1475
|
-
radial: ["",
|
|
1476
|
-
conic: [Z,
|
|
1474
|
+
}, Z, x, b],
|
|
1475
|
+
radial: ["", x, b],
|
|
1476
|
+
conic: [Z, x, b]
|
|
1477
1477
|
}, xr, hr]
|
|
1478
1478
|
}],
|
|
1479
1479
|
/**
|
|
@@ -1481,7 +1481,7 @@ const A = (e) => {
|
|
|
1481
1481
|
* @see https://tailwindcss.com/docs/background-color
|
|
1482
1482
|
*/
|
|
1483
1483
|
"bg-color": [{
|
|
1484
|
-
bg:
|
|
1484
|
+
bg: N()
|
|
1485
1485
|
}],
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Gradient Color Stops From Position
|
|
@@ -1509,21 +1509,21 @@ const A = (e) => {
|
|
|
1509
1509
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1510
1510
|
*/
|
|
1511
1511
|
"gradient-from": [{
|
|
1512
|
-
from:
|
|
1512
|
+
from: N()
|
|
1513
1513
|
}],
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Gradient Color Stops Via
|
|
1516
1516
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1517
1517
|
*/
|
|
1518
1518
|
"gradient-via": [{
|
|
1519
|
-
via:
|
|
1519
|
+
via: N()
|
|
1520
1520
|
}],
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Gradient Color Stops To
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1524
1524
|
*/
|
|
1525
1525
|
"gradient-to": [{
|
|
1526
|
-
to:
|
|
1526
|
+
to: N()
|
|
1527
1527
|
}],
|
|
1528
1528
|
// ---------------
|
|
1529
1529
|
// --- Borders ---
|
|
@@ -1638,70 +1638,70 @@ const A = (e) => {
|
|
|
1638
1638
|
* @see https://tailwindcss.com/docs/border-width
|
|
1639
1639
|
*/
|
|
1640
1640
|
"border-w": [{
|
|
1641
|
-
border:
|
|
1641
|
+
border: H()
|
|
1642
1642
|
}],
|
|
1643
1643
|
/**
|
|
1644
1644
|
* Border Width X
|
|
1645
1645
|
* @see https://tailwindcss.com/docs/border-width
|
|
1646
1646
|
*/
|
|
1647
1647
|
"border-w-x": [{
|
|
1648
|
-
"border-x":
|
|
1648
|
+
"border-x": H()
|
|
1649
1649
|
}],
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Border Width Y
|
|
1652
1652
|
* @see https://tailwindcss.com/docs/border-width
|
|
1653
1653
|
*/
|
|
1654
1654
|
"border-w-y": [{
|
|
1655
|
-
"border-y":
|
|
1655
|
+
"border-y": H()
|
|
1656
1656
|
}],
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Border Width Start
|
|
1659
1659
|
* @see https://tailwindcss.com/docs/border-width
|
|
1660
1660
|
*/
|
|
1661
1661
|
"border-w-s": [{
|
|
1662
|
-
"border-s":
|
|
1662
|
+
"border-s": H()
|
|
1663
1663
|
}],
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Border Width End
|
|
1666
1666
|
* @see https://tailwindcss.com/docs/border-width
|
|
1667
1667
|
*/
|
|
1668
1668
|
"border-w-e": [{
|
|
1669
|
-
"border-e":
|
|
1669
|
+
"border-e": H()
|
|
1670
1670
|
}],
|
|
1671
1671
|
/**
|
|
1672
1672
|
* Border Width Top
|
|
1673
1673
|
* @see https://tailwindcss.com/docs/border-width
|
|
1674
1674
|
*/
|
|
1675
1675
|
"border-w-t": [{
|
|
1676
|
-
"border-t":
|
|
1676
|
+
"border-t": H()
|
|
1677
1677
|
}],
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Border Width Right
|
|
1680
1680
|
* @see https://tailwindcss.com/docs/border-width
|
|
1681
1681
|
*/
|
|
1682
1682
|
"border-w-r": [{
|
|
1683
|
-
"border-r":
|
|
1683
|
+
"border-r": H()
|
|
1684
1684
|
}],
|
|
1685
1685
|
/**
|
|
1686
1686
|
* Border Width Bottom
|
|
1687
1687
|
* @see https://tailwindcss.com/docs/border-width
|
|
1688
1688
|
*/
|
|
1689
1689
|
"border-w-b": [{
|
|
1690
|
-
"border-b":
|
|
1690
|
+
"border-b": H()
|
|
1691
1691
|
}],
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Border Width Left
|
|
1694
1694
|
* @see https://tailwindcss.com/docs/border-width
|
|
1695
1695
|
*/
|
|
1696
1696
|
"border-w-l": [{
|
|
1697
|
-
"border-l":
|
|
1697
|
+
"border-l": H()
|
|
1698
1698
|
}],
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Divide Width X
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1702
1702
|
*/
|
|
1703
1703
|
"divide-x": [{
|
|
1704
|
-
"divide-x":
|
|
1704
|
+
"divide-x": H()
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Divide Width X Reverse
|
|
@@ -1713,7 +1713,7 @@ const A = (e) => {
|
|
|
1713
1713
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1714
1714
|
*/
|
|
1715
1715
|
"divide-y": [{
|
|
1716
|
-
"divide-y":
|
|
1716
|
+
"divide-y": H()
|
|
1717
1717
|
}],
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Divide Width Y Reverse
|
|
@@ -1739,70 +1739,70 @@ const A = (e) => {
|
|
|
1739
1739
|
* @see https://tailwindcss.com/docs/border-color
|
|
1740
1740
|
*/
|
|
1741
1741
|
"border-color": [{
|
|
1742
|
-
border:
|
|
1742
|
+
border: N()
|
|
1743
1743
|
}],
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Border Color X
|
|
1746
1746
|
* @see https://tailwindcss.com/docs/border-color
|
|
1747
1747
|
*/
|
|
1748
1748
|
"border-color-x": [{
|
|
1749
|
-
"border-x":
|
|
1749
|
+
"border-x": N()
|
|
1750
1750
|
}],
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Border Color Y
|
|
1753
1753
|
* @see https://tailwindcss.com/docs/border-color
|
|
1754
1754
|
*/
|
|
1755
1755
|
"border-color-y": [{
|
|
1756
|
-
"border-y":
|
|
1756
|
+
"border-y": N()
|
|
1757
1757
|
}],
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Border Color S
|
|
1760
1760
|
* @see https://tailwindcss.com/docs/border-color
|
|
1761
1761
|
*/
|
|
1762
1762
|
"border-color-s": [{
|
|
1763
|
-
"border-s":
|
|
1763
|
+
"border-s": N()
|
|
1764
1764
|
}],
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Border Color E
|
|
1767
1767
|
* @see https://tailwindcss.com/docs/border-color
|
|
1768
1768
|
*/
|
|
1769
1769
|
"border-color-e": [{
|
|
1770
|
-
"border-e":
|
|
1770
|
+
"border-e": N()
|
|
1771
1771
|
}],
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Border Color Top
|
|
1774
1774
|
* @see https://tailwindcss.com/docs/border-color
|
|
1775
1775
|
*/
|
|
1776
1776
|
"border-color-t": [{
|
|
1777
|
-
"border-t":
|
|
1777
|
+
"border-t": N()
|
|
1778
1778
|
}],
|
|
1779
1779
|
/**
|
|
1780
1780
|
* Border Color Right
|
|
1781
1781
|
* @see https://tailwindcss.com/docs/border-color
|
|
1782
1782
|
*/
|
|
1783
1783
|
"border-color-r": [{
|
|
1784
|
-
"border-r":
|
|
1784
|
+
"border-r": N()
|
|
1785
1785
|
}],
|
|
1786
1786
|
/**
|
|
1787
1787
|
* Border Color Bottom
|
|
1788
1788
|
* @see https://tailwindcss.com/docs/border-color
|
|
1789
1789
|
*/
|
|
1790
1790
|
"border-color-b": [{
|
|
1791
|
-
"border-b":
|
|
1791
|
+
"border-b": N()
|
|
1792
1792
|
}],
|
|
1793
1793
|
/**
|
|
1794
1794
|
* Border Color Left
|
|
1795
1795
|
* @see https://tailwindcss.com/docs/border-color
|
|
1796
1796
|
*/
|
|
1797
1797
|
"border-color-l": [{
|
|
1798
|
-
"border-l":
|
|
1798
|
+
"border-l": N()
|
|
1799
1799
|
}],
|
|
1800
1800
|
/**
|
|
1801
1801
|
* Divide Color
|
|
1802
1802
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1803
1803
|
*/
|
|
1804
1804
|
"divide-color": [{
|
|
1805
|
-
divide:
|
|
1805
|
+
divide: N()
|
|
1806
1806
|
}],
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Outline Style
|
|
@@ -1816,21 +1816,21 @@ const A = (e) => {
|
|
|
1816
1816
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1817
1817
|
*/
|
|
1818
1818
|
"outline-offset": [{
|
|
1819
|
-
"outline-offset": [
|
|
1819
|
+
"outline-offset": [T, x, b]
|
|
1820
1820
|
}],
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Outline Width
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1824
1824
|
*/
|
|
1825
1825
|
"outline-w": [{
|
|
1826
|
-
outline: ["",
|
|
1826
|
+
outline: ["", T, ue, Y]
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Outline Color
|
|
1830
1830
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1831
1831
|
*/
|
|
1832
1832
|
"outline-color": [{
|
|
1833
|
-
outline:
|
|
1833
|
+
outline: N()
|
|
1834
1834
|
}],
|
|
1835
1835
|
// ---------------
|
|
1836
1836
|
// --- Effects ---
|
|
@@ -1854,7 +1854,7 @@ const A = (e) => {
|
|
|
1854
1854
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1855
1855
|
*/
|
|
1856
1856
|
"shadow-color": [{
|
|
1857
|
-
shadow:
|
|
1857
|
+
shadow: N()
|
|
1858
1858
|
}],
|
|
1859
1859
|
/**
|
|
1860
1860
|
* Inset Box Shadow
|
|
@@ -1868,14 +1868,14 @@ const A = (e) => {
|
|
|
1868
1868
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1869
1869
|
*/
|
|
1870
1870
|
"inset-shadow-color": [{
|
|
1871
|
-
"inset-shadow":
|
|
1871
|
+
"inset-shadow": N()
|
|
1872
1872
|
}],
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Ring Width
|
|
1875
1875
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1876
1876
|
*/
|
|
1877
1877
|
"ring-w": [{
|
|
1878
|
-
ring:
|
|
1878
|
+
ring: H()
|
|
1879
1879
|
}],
|
|
1880
1880
|
/**
|
|
1881
1881
|
* Ring Width Inset
|
|
@@ -1889,7 +1889,7 @@ const A = (e) => {
|
|
|
1889
1889
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1890
1890
|
*/
|
|
1891
1891
|
"ring-color": [{
|
|
1892
|
-
ring:
|
|
1892
|
+
ring: N()
|
|
1893
1893
|
}],
|
|
1894
1894
|
/**
|
|
1895
1895
|
* Ring Offset Width
|
|
@@ -1898,7 +1898,7 @@ const A = (e) => {
|
|
|
1898
1898
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1899
1899
|
*/
|
|
1900
1900
|
"ring-offset-w": [{
|
|
1901
|
-
"ring-offset": [
|
|
1901
|
+
"ring-offset": [T, Y]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Ring Offset Color
|
|
@@ -1907,21 +1907,21 @@ const A = (e) => {
|
|
|
1907
1907
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1908
1908
|
*/
|
|
1909
1909
|
"ring-offset-color": [{
|
|
1910
|
-
"ring-offset":
|
|
1910
|
+
"ring-offset": N()
|
|
1911
1911
|
}],
|
|
1912
1912
|
/**
|
|
1913
1913
|
* Inset Ring Width
|
|
1914
1914
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1915
1915
|
*/
|
|
1916
1916
|
"inset-ring-w": [{
|
|
1917
|
-
"inset-ring":
|
|
1917
|
+
"inset-ring": H()
|
|
1918
1918
|
}],
|
|
1919
1919
|
/**
|
|
1920
1920
|
* Inset Ring Color
|
|
1921
1921
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1922
1922
|
*/
|
|
1923
1923
|
"inset-ring-color": [{
|
|
1924
|
-
"inset-ring":
|
|
1924
|
+
"inset-ring": N()
|
|
1925
1925
|
}],
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Text Shadow
|
|
@@ -1935,14 +1935,14 @@ const A = (e) => {
|
|
|
1935
1935
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1936
1936
|
*/
|
|
1937
1937
|
"text-shadow-color": [{
|
|
1938
|
-
"text-shadow":
|
|
1938
|
+
"text-shadow": N()
|
|
1939
1939
|
}],
|
|
1940
1940
|
/**
|
|
1941
1941
|
* Opacity
|
|
1942
1942
|
* @see https://tailwindcss.com/docs/opacity
|
|
1943
1943
|
*/
|
|
1944
1944
|
opacity: [{
|
|
1945
|
-
opacity: [
|
|
1945
|
+
opacity: [T, x, b]
|
|
1946
1946
|
}],
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Mix Blend Mode
|
|
@@ -1977,7 +1977,7 @@ const A = (e) => {
|
|
|
1977
1977
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1978
1978
|
*/
|
|
1979
1979
|
"mask-image-linear-pos": [{
|
|
1980
|
-
"mask-linear": [
|
|
1980
|
+
"mask-linear": [T]
|
|
1981
1981
|
}],
|
|
1982
1982
|
"mask-image-linear-from-pos": [{
|
|
1983
1983
|
"mask-linear-from": $()
|
|
@@ -1986,10 +1986,10 @@ const A = (e) => {
|
|
|
1986
1986
|
"mask-linear-to": $()
|
|
1987
1987
|
}],
|
|
1988
1988
|
"mask-image-linear-from-color": [{
|
|
1989
|
-
"mask-linear-from":
|
|
1989
|
+
"mask-linear-from": N()
|
|
1990
1990
|
}],
|
|
1991
1991
|
"mask-image-linear-to-color": [{
|
|
1992
|
-
"mask-linear-to":
|
|
1992
|
+
"mask-linear-to": N()
|
|
1993
1993
|
}],
|
|
1994
1994
|
"mask-image-t-from-pos": [{
|
|
1995
1995
|
"mask-t-from": $()
|
|
@@ -1998,10 +1998,10 @@ const A = (e) => {
|
|
|
1998
1998
|
"mask-t-to": $()
|
|
1999
1999
|
}],
|
|
2000
2000
|
"mask-image-t-from-color": [{
|
|
2001
|
-
"mask-t-from":
|
|
2001
|
+
"mask-t-from": N()
|
|
2002
2002
|
}],
|
|
2003
2003
|
"mask-image-t-to-color": [{
|
|
2004
|
-
"mask-t-to":
|
|
2004
|
+
"mask-t-to": N()
|
|
2005
2005
|
}],
|
|
2006
2006
|
"mask-image-r-from-pos": [{
|
|
2007
2007
|
"mask-r-from": $()
|
|
@@ -2010,10 +2010,10 @@ const A = (e) => {
|
|
|
2010
2010
|
"mask-r-to": $()
|
|
2011
2011
|
}],
|
|
2012
2012
|
"mask-image-r-from-color": [{
|
|
2013
|
-
"mask-r-from":
|
|
2013
|
+
"mask-r-from": N()
|
|
2014
2014
|
}],
|
|
2015
2015
|
"mask-image-r-to-color": [{
|
|
2016
|
-
"mask-r-to":
|
|
2016
|
+
"mask-r-to": N()
|
|
2017
2017
|
}],
|
|
2018
2018
|
"mask-image-b-from-pos": [{
|
|
2019
2019
|
"mask-b-from": $()
|
|
@@ -2022,10 +2022,10 @@ const A = (e) => {
|
|
|
2022
2022
|
"mask-b-to": $()
|
|
2023
2023
|
}],
|
|
2024
2024
|
"mask-image-b-from-color": [{
|
|
2025
|
-
"mask-b-from":
|
|
2025
|
+
"mask-b-from": N()
|
|
2026
2026
|
}],
|
|
2027
2027
|
"mask-image-b-to-color": [{
|
|
2028
|
-
"mask-b-to":
|
|
2028
|
+
"mask-b-to": N()
|
|
2029
2029
|
}],
|
|
2030
2030
|
"mask-image-l-from-pos": [{
|
|
2031
2031
|
"mask-l-from": $()
|
|
@@ -2034,10 +2034,10 @@ const A = (e) => {
|
|
|
2034
2034
|
"mask-l-to": $()
|
|
2035
2035
|
}],
|
|
2036
2036
|
"mask-image-l-from-color": [{
|
|
2037
|
-
"mask-l-from":
|
|
2037
|
+
"mask-l-from": N()
|
|
2038
2038
|
}],
|
|
2039
2039
|
"mask-image-l-to-color": [{
|
|
2040
|
-
"mask-l-to":
|
|
2040
|
+
"mask-l-to": N()
|
|
2041
2041
|
}],
|
|
2042
2042
|
"mask-image-x-from-pos": [{
|
|
2043
2043
|
"mask-x-from": $()
|
|
@@ -2046,10 +2046,10 @@ const A = (e) => {
|
|
|
2046
2046
|
"mask-x-to": $()
|
|
2047
2047
|
}],
|
|
2048
2048
|
"mask-image-x-from-color": [{
|
|
2049
|
-
"mask-x-from":
|
|
2049
|
+
"mask-x-from": N()
|
|
2050
2050
|
}],
|
|
2051
2051
|
"mask-image-x-to-color": [{
|
|
2052
|
-
"mask-x-to":
|
|
2052
|
+
"mask-x-to": N()
|
|
2053
2053
|
}],
|
|
2054
2054
|
"mask-image-y-from-pos": [{
|
|
2055
2055
|
"mask-y-from": $()
|
|
@@ -2058,13 +2058,13 @@ const A = (e) => {
|
|
|
2058
2058
|
"mask-y-to": $()
|
|
2059
2059
|
}],
|
|
2060
2060
|
"mask-image-y-from-color": [{
|
|
2061
|
-
"mask-y-from":
|
|
2061
|
+
"mask-y-from": N()
|
|
2062
2062
|
}],
|
|
2063
2063
|
"mask-image-y-to-color": [{
|
|
2064
|
-
"mask-y-to":
|
|
2064
|
+
"mask-y-to": N()
|
|
2065
2065
|
}],
|
|
2066
2066
|
"mask-image-radial": [{
|
|
2067
|
-
"mask-radial": [
|
|
2067
|
+
"mask-radial": [x, b]
|
|
2068
2068
|
}],
|
|
2069
2069
|
"mask-image-radial-from-pos": [{
|
|
2070
2070
|
"mask-radial-from": $()
|
|
@@ -2073,10 +2073,10 @@ const A = (e) => {
|
|
|
2073
2073
|
"mask-radial-to": $()
|
|
2074
2074
|
}],
|
|
2075
2075
|
"mask-image-radial-from-color": [{
|
|
2076
|
-
"mask-radial-from":
|
|
2076
|
+
"mask-radial-from": N()
|
|
2077
2077
|
}],
|
|
2078
2078
|
"mask-image-radial-to-color": [{
|
|
2079
|
-
"mask-radial-to":
|
|
2079
|
+
"mask-radial-to": N()
|
|
2080
2080
|
}],
|
|
2081
2081
|
"mask-image-radial-shape": [{
|
|
2082
2082
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2091,7 +2091,7 @@ const A = (e) => {
|
|
|
2091
2091
|
"mask-radial-at": P()
|
|
2092
2092
|
}],
|
|
2093
2093
|
"mask-image-conic-pos": [{
|
|
2094
|
-
"mask-conic": [
|
|
2094
|
+
"mask-conic": [T]
|
|
2095
2095
|
}],
|
|
2096
2096
|
"mask-image-conic-from-pos": [{
|
|
2097
2097
|
"mask-conic-from": $()
|
|
@@ -2100,10 +2100,10 @@ const A = (e) => {
|
|
|
2100
2100
|
"mask-conic-to": $()
|
|
2101
2101
|
}],
|
|
2102
2102
|
"mask-image-conic-from-color": [{
|
|
2103
|
-
"mask-conic-from":
|
|
2103
|
+
"mask-conic-from": N()
|
|
2104
2104
|
}],
|
|
2105
2105
|
"mask-image-conic-to-color": [{
|
|
2106
|
-
"mask-conic-to":
|
|
2106
|
+
"mask-conic-to": N()
|
|
2107
2107
|
}],
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Mask Mode
|
|
@@ -2152,7 +2152,7 @@ const A = (e) => {
|
|
|
2152
2152
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2153
2153
|
*/
|
|
2154
2154
|
"mask-image": [{
|
|
2155
|
-
mask: ["none",
|
|
2155
|
+
mask: ["none", x, b]
|
|
2156
2156
|
}],
|
|
2157
2157
|
// ---------------
|
|
2158
2158
|
// --- Filters ---
|
|
@@ -2166,8 +2166,8 @@ const A = (e) => {
|
|
|
2166
2166
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2167
2167
|
"",
|
|
2168
2168
|
"none",
|
|
2169
|
-
|
|
2170
|
-
|
|
2169
|
+
x,
|
|
2170
|
+
b
|
|
2171
2171
|
]
|
|
2172
2172
|
}],
|
|
2173
2173
|
/**
|
|
@@ -2175,21 +2175,21 @@ const A = (e) => {
|
|
|
2175
2175
|
* @see https://tailwindcss.com/docs/blur
|
|
2176
2176
|
*/
|
|
2177
2177
|
blur: [{
|
|
2178
|
-
blur:
|
|
2178
|
+
blur: Be()
|
|
2179
2179
|
}],
|
|
2180
2180
|
/**
|
|
2181
2181
|
* Brightness
|
|
2182
2182
|
* @see https://tailwindcss.com/docs/brightness
|
|
2183
2183
|
*/
|
|
2184
2184
|
brightness: [{
|
|
2185
|
-
brightness: [
|
|
2185
|
+
brightness: [T, x, b]
|
|
2186
2186
|
}],
|
|
2187
2187
|
/**
|
|
2188
2188
|
* Contrast
|
|
2189
2189
|
* @see https://tailwindcss.com/docs/contrast
|
|
2190
2190
|
*/
|
|
2191
2191
|
contrast: [{
|
|
2192
|
-
contrast: [
|
|
2192
|
+
contrast: [T, x, b]
|
|
2193
2193
|
}],
|
|
2194
2194
|
/**
|
|
2195
2195
|
* Drop Shadow
|
|
@@ -2200,7 +2200,7 @@ const A = (e) => {
|
|
|
2200
2200
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2201
2201
|
"",
|
|
2202
2202
|
"none",
|
|
2203
|
-
|
|
2203
|
+
M,
|
|
2204
2204
|
ye,
|
|
2205
2205
|
xe
|
|
2206
2206
|
]
|
|
@@ -2210,42 +2210,42 @@ const A = (e) => {
|
|
|
2210
2210
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2211
2211
|
*/
|
|
2212
2212
|
"drop-shadow-color": [{
|
|
2213
|
-
"drop-shadow":
|
|
2213
|
+
"drop-shadow": N()
|
|
2214
2214
|
}],
|
|
2215
2215
|
/**
|
|
2216
2216
|
* Grayscale
|
|
2217
2217
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2218
2218
|
*/
|
|
2219
2219
|
grayscale: [{
|
|
2220
|
-
grayscale: ["",
|
|
2220
|
+
grayscale: ["", T, x, b]
|
|
2221
2221
|
}],
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Hue Rotate
|
|
2224
2224
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2225
2225
|
*/
|
|
2226
2226
|
"hue-rotate": [{
|
|
2227
|
-
"hue-rotate": [
|
|
2227
|
+
"hue-rotate": [T, x, b]
|
|
2228
2228
|
}],
|
|
2229
2229
|
/**
|
|
2230
2230
|
* Invert
|
|
2231
2231
|
* @see https://tailwindcss.com/docs/invert
|
|
2232
2232
|
*/
|
|
2233
2233
|
invert: [{
|
|
2234
|
-
invert: ["",
|
|
2234
|
+
invert: ["", T, x, b]
|
|
2235
2235
|
}],
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Saturate
|
|
2238
2238
|
* @see https://tailwindcss.com/docs/saturate
|
|
2239
2239
|
*/
|
|
2240
2240
|
saturate: [{
|
|
2241
|
-
saturate: [
|
|
2241
|
+
saturate: [T, x, b]
|
|
2242
2242
|
}],
|
|
2243
2243
|
/**
|
|
2244
2244
|
* Sepia
|
|
2245
2245
|
* @see https://tailwindcss.com/docs/sepia
|
|
2246
2246
|
*/
|
|
2247
2247
|
sepia: [{
|
|
2248
|
-
sepia: ["",
|
|
2248
|
+
sepia: ["", T, x, b]
|
|
2249
2249
|
}],
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Backdrop Filter
|
|
@@ -2256,8 +2256,8 @@ const A = (e) => {
|
|
|
2256
2256
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2257
2257
|
"",
|
|
2258
2258
|
"none",
|
|
2259
|
-
|
|
2260
|
-
|
|
2259
|
+
x,
|
|
2260
|
+
b
|
|
2261
2261
|
]
|
|
2262
2262
|
}],
|
|
2263
2263
|
/**
|
|
@@ -2265,63 +2265,63 @@ const A = (e) => {
|
|
|
2265
2265
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2266
2266
|
*/
|
|
2267
2267
|
"backdrop-blur": [{
|
|
2268
|
-
"backdrop-blur":
|
|
2268
|
+
"backdrop-blur": Be()
|
|
2269
2269
|
}],
|
|
2270
2270
|
/**
|
|
2271
2271
|
* Backdrop Brightness
|
|
2272
2272
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2273
2273
|
*/
|
|
2274
2274
|
"backdrop-brightness": [{
|
|
2275
|
-
"backdrop-brightness": [
|
|
2275
|
+
"backdrop-brightness": [T, x, b]
|
|
2276
2276
|
}],
|
|
2277
2277
|
/**
|
|
2278
2278
|
* Backdrop Contrast
|
|
2279
2279
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2280
2280
|
*/
|
|
2281
2281
|
"backdrop-contrast": [{
|
|
2282
|
-
"backdrop-contrast": [
|
|
2282
|
+
"backdrop-contrast": [T, x, b]
|
|
2283
2283
|
}],
|
|
2284
2284
|
/**
|
|
2285
2285
|
* Backdrop Grayscale
|
|
2286
2286
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2287
2287
|
*/
|
|
2288
2288
|
"backdrop-grayscale": [{
|
|
2289
|
-
"backdrop-grayscale": ["",
|
|
2289
|
+
"backdrop-grayscale": ["", T, x, b]
|
|
2290
2290
|
}],
|
|
2291
2291
|
/**
|
|
2292
2292
|
* Backdrop Hue Rotate
|
|
2293
2293
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2294
2294
|
*/
|
|
2295
2295
|
"backdrop-hue-rotate": [{
|
|
2296
|
-
"backdrop-hue-rotate": [
|
|
2296
|
+
"backdrop-hue-rotate": [T, x, b]
|
|
2297
2297
|
}],
|
|
2298
2298
|
/**
|
|
2299
2299
|
* Backdrop Invert
|
|
2300
2300
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2301
2301
|
*/
|
|
2302
2302
|
"backdrop-invert": [{
|
|
2303
|
-
"backdrop-invert": ["",
|
|
2303
|
+
"backdrop-invert": ["", T, x, b]
|
|
2304
2304
|
}],
|
|
2305
2305
|
/**
|
|
2306
2306
|
* Backdrop Opacity
|
|
2307
2307
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2308
2308
|
*/
|
|
2309
2309
|
"backdrop-opacity": [{
|
|
2310
|
-
"backdrop-opacity": [
|
|
2310
|
+
"backdrop-opacity": [T, x, b]
|
|
2311
2311
|
}],
|
|
2312
2312
|
/**
|
|
2313
2313
|
* Backdrop Saturate
|
|
2314
2314
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2315
2315
|
*/
|
|
2316
2316
|
"backdrop-saturate": [{
|
|
2317
|
-
"backdrop-saturate": [
|
|
2317
|
+
"backdrop-saturate": [T, x, b]
|
|
2318
2318
|
}],
|
|
2319
2319
|
/**
|
|
2320
2320
|
* Backdrop Sepia
|
|
2321
2321
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2322
2322
|
*/
|
|
2323
2323
|
"backdrop-sepia": [{
|
|
2324
|
-
"backdrop-sepia": ["",
|
|
2324
|
+
"backdrop-sepia": ["", T, x, b]
|
|
2325
2325
|
}],
|
|
2326
2326
|
// --------------
|
|
2327
2327
|
// --- Tables ---
|
|
@@ -2338,21 +2338,21 @@ const A = (e) => {
|
|
|
2338
2338
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2339
2339
|
*/
|
|
2340
2340
|
"border-spacing": [{
|
|
2341
|
-
"border-spacing":
|
|
2341
|
+
"border-spacing": k()
|
|
2342
2342
|
}],
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Border Spacing X
|
|
2345
2345
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2346
2346
|
*/
|
|
2347
2347
|
"border-spacing-x": [{
|
|
2348
|
-
"border-spacing-x":
|
|
2348
|
+
"border-spacing-x": k()
|
|
2349
2349
|
}],
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Border Spacing Y
|
|
2352
2352
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2353
2353
|
*/
|
|
2354
2354
|
"border-spacing-y": [{
|
|
2355
|
-
"border-spacing-y":
|
|
2355
|
+
"border-spacing-y": k()
|
|
2356
2356
|
}],
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Table Layout
|
|
@@ -2376,7 +2376,7 @@ const A = (e) => {
|
|
|
2376
2376
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2377
2377
|
*/
|
|
2378
2378
|
transition: [{
|
|
2379
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2379
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", x, b]
|
|
2380
2380
|
}],
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Transition Behavior
|
|
@@ -2390,28 +2390,28 @@ const A = (e) => {
|
|
|
2390
2390
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2391
2391
|
*/
|
|
2392
2392
|
duration: [{
|
|
2393
|
-
duration: [
|
|
2393
|
+
duration: [T, "initial", x, b]
|
|
2394
2394
|
}],
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Transition Timing Function
|
|
2397
2397
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2398
2398
|
*/
|
|
2399
2399
|
ease: [{
|
|
2400
|
-
ease: ["linear", "initial",
|
|
2400
|
+
ease: ["linear", "initial", w, x, b]
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Transition Delay
|
|
2404
2404
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2405
2405
|
*/
|
|
2406
2406
|
delay: [{
|
|
2407
|
-
delay: [
|
|
2407
|
+
delay: [T, x, b]
|
|
2408
2408
|
}],
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Animation
|
|
2411
2411
|
* @see https://tailwindcss.com/docs/animation
|
|
2412
2412
|
*/
|
|
2413
2413
|
animate: [{
|
|
2414
|
-
animate: ["none",
|
|
2414
|
+
animate: ["none", z, x, b]
|
|
2415
2415
|
}],
|
|
2416
2416
|
// ------------------
|
|
2417
2417
|
// --- Transforms ---
|
|
@@ -2428,14 +2428,14 @@ const A = (e) => {
|
|
|
2428
2428
|
* @see https://tailwindcss.com/docs/perspective
|
|
2429
2429
|
*/
|
|
2430
2430
|
perspective: [{
|
|
2431
|
-
perspective: [
|
|
2431
|
+
perspective: [C, x, b]
|
|
2432
2432
|
}],
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Perspective Origin
|
|
2435
2435
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2436
2436
|
*/
|
|
2437
2437
|
"perspective-origin": [{
|
|
2438
|
-
"perspective-origin":
|
|
2438
|
+
"perspective-origin": I()
|
|
2439
2439
|
}],
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Rotate
|
|
@@ -2524,14 +2524,14 @@ const A = (e) => {
|
|
|
2524
2524
|
* @see https://tailwindcss.com/docs/transform
|
|
2525
2525
|
*/
|
|
2526
2526
|
transform: [{
|
|
2527
|
-
transform: [
|
|
2527
|
+
transform: [x, b, "", "none", "gpu", "cpu"]
|
|
2528
2528
|
}],
|
|
2529
2529
|
/**
|
|
2530
2530
|
* Transform Origin
|
|
2531
2531
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2532
2532
|
*/
|
|
2533
2533
|
"transform-origin": [{
|
|
2534
|
-
origin:
|
|
2534
|
+
origin: I()
|
|
2535
2535
|
}],
|
|
2536
2536
|
/**
|
|
2537
2537
|
* Transform Style
|
|
@@ -2581,7 +2581,7 @@ const A = (e) => {
|
|
|
2581
2581
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2582
2582
|
*/
|
|
2583
2583
|
accent: [{
|
|
2584
|
-
accent:
|
|
2584
|
+
accent: N()
|
|
2585
2585
|
}],
|
|
2586
2586
|
/**
|
|
2587
2587
|
* Appearance
|
|
@@ -2595,7 +2595,7 @@ const A = (e) => {
|
|
|
2595
2595
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2596
2596
|
*/
|
|
2597
2597
|
"caret-color": [{
|
|
2598
|
-
caret:
|
|
2598
|
+
caret: N()
|
|
2599
2599
|
}],
|
|
2600
2600
|
/**
|
|
2601
2601
|
* Color Scheme
|
|
@@ -2609,7 +2609,7 @@ const A = (e) => {
|
|
|
2609
2609
|
* @see https://tailwindcss.com/docs/cursor
|
|
2610
2610
|
*/
|
|
2611
2611
|
cursor: [{
|
|
2612
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2612
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", x, b]
|
|
2613
2613
|
}],
|
|
2614
2614
|
/**
|
|
2615
2615
|
* Field Sizing
|
|
@@ -2644,126 +2644,126 @@ const A = (e) => {
|
|
|
2644
2644
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2645
2645
|
*/
|
|
2646
2646
|
"scroll-m": [{
|
|
2647
|
-
"scroll-m":
|
|
2647
|
+
"scroll-m": k()
|
|
2648
2648
|
}],
|
|
2649
2649
|
/**
|
|
2650
2650
|
* Scroll Margin X
|
|
2651
2651
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2652
2652
|
*/
|
|
2653
2653
|
"scroll-mx": [{
|
|
2654
|
-
"scroll-mx":
|
|
2654
|
+
"scroll-mx": k()
|
|
2655
2655
|
}],
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Scroll Margin Y
|
|
2658
2658
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2659
2659
|
*/
|
|
2660
2660
|
"scroll-my": [{
|
|
2661
|
-
"scroll-my":
|
|
2661
|
+
"scroll-my": k()
|
|
2662
2662
|
}],
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Scroll Margin Start
|
|
2665
2665
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2666
2666
|
*/
|
|
2667
2667
|
"scroll-ms": [{
|
|
2668
|
-
"scroll-ms":
|
|
2668
|
+
"scroll-ms": k()
|
|
2669
2669
|
}],
|
|
2670
2670
|
/**
|
|
2671
2671
|
* Scroll Margin End
|
|
2672
2672
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2673
2673
|
*/
|
|
2674
2674
|
"scroll-me": [{
|
|
2675
|
-
"scroll-me":
|
|
2675
|
+
"scroll-me": k()
|
|
2676
2676
|
}],
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Scroll Margin Top
|
|
2679
2679
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2680
2680
|
*/
|
|
2681
2681
|
"scroll-mt": [{
|
|
2682
|
-
"scroll-mt":
|
|
2682
|
+
"scroll-mt": k()
|
|
2683
2683
|
}],
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Scroll Margin Right
|
|
2686
2686
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2687
2687
|
*/
|
|
2688
2688
|
"scroll-mr": [{
|
|
2689
|
-
"scroll-mr":
|
|
2689
|
+
"scroll-mr": k()
|
|
2690
2690
|
}],
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Scroll Margin Bottom
|
|
2693
2693
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2694
2694
|
*/
|
|
2695
2695
|
"scroll-mb": [{
|
|
2696
|
-
"scroll-mb":
|
|
2696
|
+
"scroll-mb": k()
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Scroll Margin Left
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2701
2701
|
*/
|
|
2702
2702
|
"scroll-ml": [{
|
|
2703
|
-
"scroll-ml":
|
|
2703
|
+
"scroll-ml": k()
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Scroll Padding
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2708
2708
|
*/
|
|
2709
2709
|
"scroll-p": [{
|
|
2710
|
-
"scroll-p":
|
|
2710
|
+
"scroll-p": k()
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Scroll Padding X
|
|
2714
2714
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2715
2715
|
*/
|
|
2716
2716
|
"scroll-px": [{
|
|
2717
|
-
"scroll-px":
|
|
2717
|
+
"scroll-px": k()
|
|
2718
2718
|
}],
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Scroll Padding Y
|
|
2721
2721
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2722
2722
|
*/
|
|
2723
2723
|
"scroll-py": [{
|
|
2724
|
-
"scroll-py":
|
|
2724
|
+
"scroll-py": k()
|
|
2725
2725
|
}],
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Scroll Padding Start
|
|
2728
2728
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2729
2729
|
*/
|
|
2730
2730
|
"scroll-ps": [{
|
|
2731
|
-
"scroll-ps":
|
|
2731
|
+
"scroll-ps": k()
|
|
2732
2732
|
}],
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Scroll Padding End
|
|
2735
2735
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2736
2736
|
*/
|
|
2737
2737
|
"scroll-pe": [{
|
|
2738
|
-
"scroll-pe":
|
|
2738
|
+
"scroll-pe": k()
|
|
2739
2739
|
}],
|
|
2740
2740
|
/**
|
|
2741
2741
|
* Scroll Padding Top
|
|
2742
2742
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2743
2743
|
*/
|
|
2744
2744
|
"scroll-pt": [{
|
|
2745
|
-
"scroll-pt":
|
|
2745
|
+
"scroll-pt": k()
|
|
2746
2746
|
}],
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Scroll Padding Right
|
|
2749
2749
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2750
2750
|
*/
|
|
2751
2751
|
"scroll-pr": [{
|
|
2752
|
-
"scroll-pr":
|
|
2752
|
+
"scroll-pr": k()
|
|
2753
2753
|
}],
|
|
2754
2754
|
/**
|
|
2755
2755
|
* Scroll Padding Bottom
|
|
2756
2756
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2757
2757
|
*/
|
|
2758
2758
|
"scroll-pb": [{
|
|
2759
|
-
"scroll-pb":
|
|
2759
|
+
"scroll-pb": k()
|
|
2760
2760
|
}],
|
|
2761
2761
|
/**
|
|
2762
2762
|
* Scroll Padding Left
|
|
2763
2763
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2764
2764
|
*/
|
|
2765
2765
|
"scroll-pl": [{
|
|
2766
|
-
"scroll-pl":
|
|
2766
|
+
"scroll-pl": k()
|
|
2767
2767
|
}],
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Scroll Snap Align
|
|
@@ -2831,7 +2831,7 @@ const A = (e) => {
|
|
|
2831
2831
|
* @see https://tailwindcss.com/docs/will-change
|
|
2832
2832
|
*/
|
|
2833
2833
|
"will-change": [{
|
|
2834
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2834
|
+
"will-change": ["auto", "scroll", "contents", "transform", x, b]
|
|
2835
2835
|
}],
|
|
2836
2836
|
// -----------
|
|
2837
2837
|
// --- SVG ---
|
|
@@ -2841,21 +2841,21 @@ const A = (e) => {
|
|
|
2841
2841
|
* @see https://tailwindcss.com/docs/fill
|
|
2842
2842
|
*/
|
|
2843
2843
|
fill: [{
|
|
2844
|
-
fill: ["none", ...
|
|
2844
|
+
fill: ["none", ...N()]
|
|
2845
2845
|
}],
|
|
2846
2846
|
/**
|
|
2847
2847
|
* Stroke Width
|
|
2848
2848
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2849
2849
|
*/
|
|
2850
2850
|
"stroke-w": [{
|
|
2851
|
-
stroke: [
|
|
2851
|
+
stroke: [T, ue, Y, Se]
|
|
2852
2852
|
}],
|
|
2853
2853
|
/**
|
|
2854
2854
|
* Stroke
|
|
2855
2855
|
* @see https://tailwindcss.com/docs/stroke
|
|
2856
2856
|
*/
|
|
2857
2857
|
stroke: [{
|
|
2858
|
-
stroke: ["none", ...
|
|
2858
|
+
stroke: ["none", ...N()]
|
|
2859
2859
|
}],
|
|
2860
2860
|
// ---------------------
|
|
2861
2861
|
// --- Accessibility ---
|
|
@@ -2927,11 +2927,11 @@ const A = (e) => {
|
|
|
2927
2927
|
function f(...e) {
|
|
2928
2928
|
return kr(rt(e));
|
|
2929
2929
|
}
|
|
2930
|
-
const K =
|
|
2931
|
-
({ className: e, variant: t, size:
|
|
2932
|
-
|
|
2930
|
+
const K = v.forwardRef(
|
|
2931
|
+
({ className: e, variant: t, size: o, asChild: a = !1, disabled: n, ...s }, l) => /* @__PURE__ */ r(
|
|
2932
|
+
a ? Ot : "button",
|
|
2933
2933
|
{
|
|
2934
|
-
className: f(At({ variant: t, size:
|
|
2934
|
+
className: f(At({ variant: t, size: o, className: e })),
|
|
2935
2935
|
ref: l,
|
|
2936
2936
|
type: s.type || "button",
|
|
2937
2937
|
disabled: n,
|
|
@@ -2985,7 +2985,7 @@ const Nr = (e) => {
|
|
|
2985
2985
|
default:
|
|
2986
2986
|
return "text-foreground";
|
|
2987
2987
|
}
|
|
2988
|
-
},
|
|
2988
|
+
}, Mr = (e) => {
|
|
2989
2989
|
switch (e) {
|
|
2990
2990
|
case "light":
|
|
2991
2991
|
return "font-light";
|
|
@@ -3000,7 +3000,7 @@ const Nr = (e) => {
|
|
|
3000
3000
|
default:
|
|
3001
3001
|
return "";
|
|
3002
3002
|
}
|
|
3003
|
-
},
|
|
3003
|
+
}, Sr = (e) => {
|
|
3004
3004
|
switch (e) {
|
|
3005
3005
|
case "left":
|
|
3006
3006
|
return "text-left";
|
|
@@ -3013,11 +3013,11 @@ const Nr = (e) => {
|
|
|
3013
3013
|
default:
|
|
3014
3014
|
return "text-left";
|
|
3015
3015
|
}
|
|
3016
|
-
},
|
|
3016
|
+
}, R = ({
|
|
3017
3017
|
variant: e = "body",
|
|
3018
3018
|
color: t = "primary",
|
|
3019
|
-
weight:
|
|
3020
|
-
align:
|
|
3019
|
+
weight: o,
|
|
3020
|
+
align: a = "left",
|
|
3021
3021
|
truncate: n = !1,
|
|
3022
3022
|
children: s,
|
|
3023
3023
|
className: l,
|
|
@@ -3028,8 +3028,8 @@ const Nr = (e) => {
|
|
|
3028
3028
|
"m-0",
|
|
3029
3029
|
Nr(e),
|
|
3030
3030
|
Cr(t),
|
|
3031
|
-
Sr(a),
|
|
3032
3031
|
Mr(o),
|
|
3032
|
+
Sr(a),
|
|
3033
3033
|
n && "truncate",
|
|
3034
3034
|
l
|
|
3035
3035
|
);
|
|
@@ -3053,7 +3053,7 @@ function Tr(e) {
|
|
|
3053
3053
|
return "p";
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
const
|
|
3056
|
+
const zr = (e) => {
|
|
3057
3057
|
switch (e) {
|
|
3058
3058
|
case "sm":
|
|
3059
3059
|
return "p-4";
|
|
@@ -3064,7 +3064,7 @@ const Pr = (e) => {
|
|
|
3064
3064
|
default:
|
|
3065
3065
|
return "p-0";
|
|
3066
3066
|
}
|
|
3067
|
-
},
|
|
3067
|
+
}, Pr = (e) => {
|
|
3068
3068
|
switch (e) {
|
|
3069
3069
|
case "sm":
|
|
3070
3070
|
return "shadow-sm";
|
|
@@ -3075,7 +3075,7 @@ const Pr = (e) => {
|
|
|
3075
3075
|
default:
|
|
3076
3076
|
return "shadow-none";
|
|
3077
3077
|
}
|
|
3078
|
-
},
|
|
3078
|
+
}, Ir = (e) => {
|
|
3079
3079
|
switch (e) {
|
|
3080
3080
|
case "sm":
|
|
3081
3081
|
return "rounded-sm";
|
|
@@ -3089,8 +3089,8 @@ const Pr = (e) => {
|
|
|
3089
3089
|
}, pt = ({
|
|
3090
3090
|
children: e,
|
|
3091
3091
|
title: t,
|
|
3092
|
-
subtitle:
|
|
3093
|
-
className:
|
|
3092
|
+
subtitle: o,
|
|
3093
|
+
className: a,
|
|
3094
3094
|
padding: n = "md",
|
|
3095
3095
|
shadow: s = "md",
|
|
3096
3096
|
borderRadius: l = "md",
|
|
@@ -3098,41 +3098,41 @@ const Pr = (e) => {
|
|
|
3098
3098
|
}) => {
|
|
3099
3099
|
const c = !!i, m = f(
|
|
3100
3100
|
"bg-card",
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3101
|
+
zr(n),
|
|
3102
|
+
Pr(s),
|
|
3103
|
+
Ir(l),
|
|
3104
3104
|
"transition-all duration-200 ease-in-out",
|
|
3105
3105
|
c && "cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",
|
|
3106
|
-
|
|
3106
|
+
a
|
|
3107
3107
|
);
|
|
3108
3108
|
return /* @__PURE__ */ p("div", { className: m, onClick: i, children: [
|
|
3109
|
-
(t ||
|
|
3110
|
-
t && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(
|
|
3111
|
-
|
|
3109
|
+
(t || o) && /* @__PURE__ */ p("div", { className: "mb-4", children: [
|
|
3110
|
+
t && /* @__PURE__ */ r("div", { className: "mb-2", children: /* @__PURE__ */ r(R, { variant: "h3", children: t }) }),
|
|
3111
|
+
o && /* @__PURE__ */ r("div", { className: "text-muted-foreground", children: /* @__PURE__ */ r(R, { variant: "body-sm", color: "muted", children: o }) })
|
|
3112
3112
|
] }),
|
|
3113
3113
|
/* @__PURE__ */ r("div", { className: "flex-1", children: e })
|
|
3114
3114
|
] });
|
|
3115
|
-
},
|
|
3115
|
+
}, Er = ({
|
|
3116
3116
|
children: e
|
|
3117
|
-
}) => /* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: e }),
|
|
3118
|
-
Footer:
|
|
3117
|
+
}) => /* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-border", children: e }), Yo = Object.assign(pt, {
|
|
3118
|
+
Footer: Er
|
|
3119
3119
|
});
|
|
3120
|
-
function Rr(e, t,
|
|
3121
|
-
const l = (e - 90) * Math.PI / 180, i = (t - 90) * Math.PI / 180, c = n +
|
|
3120
|
+
function Rr(e, t, o, a, n, s) {
|
|
3121
|
+
const l = (e - 90) * Math.PI / 180, i = (t - 90) * Math.PI / 180, c = n + o * Math.cos(l), m = s + o * Math.sin(l), u = n + o * Math.cos(i), d = s + o * Math.sin(i), h = n + a * Math.cos(i), M = s + a * Math.sin(i), y = n + a * Math.cos(l), C = s + a * Math.sin(l), g = t - e > 180 ? 1 : 0;
|
|
3122
3122
|
return [
|
|
3123
3123
|
`M ${c} ${m}`,
|
|
3124
3124
|
// Move to start point on outer arc
|
|
3125
|
-
`A ${
|
|
3125
|
+
`A ${o} ${o} 0 ${g} 1 ${u} ${d}`,
|
|
3126
3126
|
// Outer arc
|
|
3127
|
-
`L ${h} ${
|
|
3127
|
+
`L ${h} ${M}`,
|
|
3128
3128
|
// Line to inner arc
|
|
3129
|
-
`A ${
|
|
3129
|
+
`A ${a} ${a} 0 ${g} 0 ${y} ${C}`,
|
|
3130
3130
|
// Inner arc (reverse)
|
|
3131
3131
|
"Z"
|
|
3132
3132
|
// Close path
|
|
3133
3133
|
].join(" ");
|
|
3134
3134
|
}
|
|
3135
|
-
function jr(e, t,
|
|
3135
|
+
function jr(e, t, o, a, n) {
|
|
3136
3136
|
const s = e.reduce((c, m) => c + m.value, 0);
|
|
3137
3137
|
if (s === 0)
|
|
3138
3138
|
return [];
|
|
@@ -3143,8 +3143,8 @@ function jr(e, t, a, o, n) {
|
|
|
3143
3143
|
u,
|
|
3144
3144
|
d,
|
|
3145
3145
|
t,
|
|
3146
|
-
a,
|
|
3147
3146
|
o,
|
|
3147
|
+
a,
|
|
3148
3148
|
n
|
|
3149
3149
|
);
|
|
3150
3150
|
i.push({
|
|
@@ -3153,34 +3153,34 @@ function jr(e, t, a, o, n) {
|
|
|
3153
3153
|
}), l = d;
|
|
3154
3154
|
}), i;
|
|
3155
3155
|
}
|
|
3156
|
-
const ft =
|
|
3156
|
+
const ft = v.forwardRef(
|
|
3157
3157
|
({
|
|
3158
3158
|
segments: e,
|
|
3159
3159
|
size: t = 300,
|
|
3160
|
-
innerRadiusRatio:
|
|
3161
|
-
centerContent:
|
|
3160
|
+
innerRadiusRatio: o = 0.6,
|
|
3161
|
+
centerContent: a,
|
|
3162
3162
|
showLegend: n = !1,
|
|
3163
3163
|
legendPosition: s = "bottom",
|
|
3164
3164
|
className: l,
|
|
3165
3165
|
onSegmentClick: i,
|
|
3166
3166
|
onSegmentHover: c
|
|
3167
3167
|
}, m) => {
|
|
3168
|
-
const [u, d] =
|
|
3168
|
+
const [u, d] = v.useState(null), h = t / 2, M = t / 2, y = 2, C = t / 2 - y, g = C * o, w = jr(
|
|
3169
3169
|
e,
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
C,
|
|
3171
|
+
g,
|
|
3172
3172
|
h,
|
|
3173
|
-
|
|
3174
|
-
),
|
|
3173
|
+
M
|
|
3174
|
+
), z = (P) => {
|
|
3175
3175
|
d(P), c?.(P);
|
|
3176
|
-
},
|
|
3176
|
+
}, S = s === "left" || s === "right";
|
|
3177
3177
|
return /* @__PURE__ */ p(
|
|
3178
3178
|
"div",
|
|
3179
3179
|
{
|
|
3180
3180
|
ref: m,
|
|
3181
3181
|
className: f(
|
|
3182
3182
|
"flex gap-4",
|
|
3183
|
-
|
|
3183
|
+
S ? "flex-row items-center" : "flex-col items-center",
|
|
3184
3184
|
s === "right" && "flex-row-reverse",
|
|
3185
3185
|
s === "top" && "flex-col-reverse",
|
|
3186
3186
|
l
|
|
@@ -3192,30 +3192,30 @@ const ft = y.forwardRef(
|
|
|
3192
3192
|
className: "relative inline-block",
|
|
3193
3193
|
style: { width: t, height: t },
|
|
3194
3194
|
children: [
|
|
3195
|
-
/* @__PURE__ */ r("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children:
|
|
3195
|
+
/* @__PURE__ */ r("svg", { width: t, height: t, viewBox: `0 0 ${t} ${t}`, children: w.map(({ path: P, segment: I }, V) => /* @__PURE__ */ r(
|
|
3196
3196
|
"path",
|
|
3197
3197
|
{
|
|
3198
3198
|
d: P,
|
|
3199
|
-
fill:
|
|
3199
|
+
fill: I.color,
|
|
3200
3200
|
stroke: "white",
|
|
3201
|
-
strokeWidth:
|
|
3201
|
+
strokeWidth: y,
|
|
3202
3202
|
className: f(
|
|
3203
3203
|
"transition-opacity duration-200",
|
|
3204
|
-
u && u !==
|
|
3204
|
+
u && u !== I && "opacity-50",
|
|
3205
3205
|
i && "cursor-pointer"
|
|
3206
3206
|
),
|
|
3207
|
-
onMouseEnter: () =>
|
|
3208
|
-
onMouseLeave: () =>
|
|
3209
|
-
onClick: () => i?.(
|
|
3207
|
+
onMouseEnter: () => z(I),
|
|
3208
|
+
onMouseLeave: () => z(null),
|
|
3209
|
+
onClick: () => i?.(I)
|
|
3210
3210
|
},
|
|
3211
|
-
`${
|
|
3211
|
+
`${I.label}-${V}`
|
|
3212
3212
|
)) }),
|
|
3213
|
-
|
|
3213
|
+
a && /* @__PURE__ */ r(
|
|
3214
3214
|
"div",
|
|
3215
3215
|
{
|
|
3216
3216
|
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-center",
|
|
3217
|
-
style: { maxWidth:
|
|
3218
|
-
children:
|
|
3217
|
+
style: { maxWidth: g * 1.8 },
|
|
3218
|
+
children: a
|
|
3219
3219
|
}
|
|
3220
3220
|
)
|
|
3221
3221
|
]
|
|
@@ -3226,9 +3226,9 @@ const ft = y.forwardRef(
|
|
|
3226
3226
|
{
|
|
3227
3227
|
className: f(
|
|
3228
3228
|
"flex gap-2",
|
|
3229
|
-
|
|
3229
|
+
S ? "flex-col" : "flex-row flex-wrap justify-center"
|
|
3230
3230
|
),
|
|
3231
|
-
children: e.map((P,
|
|
3231
|
+
children: e.map((P, I) => /* @__PURE__ */ p(
|
|
3232
3232
|
"div",
|
|
3233
3233
|
{
|
|
3234
3234
|
className: f(
|
|
@@ -3236,8 +3236,8 @@ const ft = y.forwardRef(
|
|
|
3236
3236
|
u && u !== P && "opacity-50",
|
|
3237
3237
|
i && "cursor-pointer"
|
|
3238
3238
|
),
|
|
3239
|
-
onMouseEnter: () =>
|
|
3240
|
-
onMouseLeave: () =>
|
|
3239
|
+
onMouseEnter: () => z(P),
|
|
3240
|
+
onMouseLeave: () => z(null),
|
|
3241
3241
|
onClick: () => i?.(P),
|
|
3242
3242
|
children: [
|
|
3243
3243
|
/* @__PURE__ */ r(
|
|
@@ -3250,7 +3250,7 @@ const ft = y.forwardRef(
|
|
|
3250
3250
|
/* @__PURE__ */ r("span", { className: "text-muted-foreground", children: P.label })
|
|
3251
3251
|
]
|
|
3252
3252
|
},
|
|
3253
|
-
`${P.label}-${
|
|
3253
|
+
`${P.label}-${I}`
|
|
3254
3254
|
))
|
|
3255
3255
|
}
|
|
3256
3256
|
)
|
|
@@ -3260,26 +3260,26 @@ const ft = y.forwardRef(
|
|
|
3260
3260
|
}
|
|
3261
3261
|
);
|
|
3262
3262
|
ft.displayName = "DonutChart";
|
|
3263
|
-
function
|
|
3263
|
+
function ea(e, t, o = {}) {
|
|
3264
3264
|
const {
|
|
3265
|
-
initialCategory:
|
|
3265
|
+
initialCategory: a = null,
|
|
3266
3266
|
initialSort: n = null,
|
|
3267
3267
|
enableSearch: s = !1
|
|
3268
|
-
} =
|
|
3269
|
-
|
|
3270
|
-
), [c, m] = ee(n), [u, d] = ee(""), h = Ne(() =>
|
|
3268
|
+
} = o, [l, i] = ee(
|
|
3269
|
+
a
|
|
3270
|
+
), [c, m] = ee(n), [u, d] = ee(""), h = Ne(() => It(e, l), [e, l]), M = Ne(() => {
|
|
3271
3271
|
if (!s || !u.trim())
|
|
3272
3272
|
return h;
|
|
3273
|
-
const
|
|
3273
|
+
const w = u.toLowerCase();
|
|
3274
3274
|
return h.filter(
|
|
3275
|
-
(
|
|
3275
|
+
(z) => z.title.toLowerCase().includes(w) || z.subtitle?.toLowerCase().includes(w)
|
|
3276
3276
|
);
|
|
3277
|
-
}, [h, u, s]),
|
|
3278
|
-
(
|
|
3277
|
+
}, [h, u, s]), y = Ne(() => c ? Et(M, c) : M, [M, c]), C = He(
|
|
3278
|
+
(w) => Rt(e, w),
|
|
3279
3279
|
[e]
|
|
3280
|
-
),
|
|
3281
|
-
i(
|
|
3282
|
-
}, [
|
|
3280
|
+
), g = He(() => {
|
|
3281
|
+
i(a), m(n), d("");
|
|
3282
|
+
}, [a, n]);
|
|
3283
3283
|
return {
|
|
3284
3284
|
activeCategory: l,
|
|
3285
3285
|
setActiveCategory: i,
|
|
@@ -3287,9 +3287,9 @@ function Qa(e, t, a = {}) {
|
|
|
3287
3287
|
setSort: m,
|
|
3288
3288
|
searchQuery: u,
|
|
3289
3289
|
setSearchQuery: d,
|
|
3290
|
-
filteredEntities:
|
|
3291
|
-
getCategoryCount:
|
|
3292
|
-
resetFilters:
|
|
3290
|
+
filteredEntities: y,
|
|
3291
|
+
getCategoryCount: C,
|
|
3292
|
+
resetFilters: g
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
3295
|
const Ar = J(
|
|
@@ -3314,12 +3314,12 @@ const Ar = J(
|
|
|
3314
3314
|
size: "default"
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
3317
|
-
), Oe =
|
|
3317
|
+
), Oe = v.forwardRef(
|
|
3318
3318
|
({
|
|
3319
3319
|
className: e,
|
|
3320
3320
|
variant: t,
|
|
3321
|
-
size:
|
|
3322
|
-
icon:
|
|
3321
|
+
size: o,
|
|
3322
|
+
icon: a,
|
|
3323
3323
|
selected: n,
|
|
3324
3324
|
dismissible: s,
|
|
3325
3325
|
onDismiss: l,
|
|
@@ -3331,7 +3331,7 @@ const Ar = J(
|
|
|
3331
3331
|
{
|
|
3332
3332
|
type: "button",
|
|
3333
3333
|
className: f(
|
|
3334
|
-
Ar({ variant: n ? "selected" : t, size:
|
|
3334
|
+
Ar({ variant: n ? "selected" : t, size: o, className: e })
|
|
3335
3335
|
),
|
|
3336
3336
|
ref: u,
|
|
3337
3337
|
disabled: c,
|
|
@@ -3339,7 +3339,7 @@ const Ar = J(
|
|
|
3339
3339
|
"aria-pressed": n ? "true" : "false",
|
|
3340
3340
|
...m,
|
|
3341
3341
|
children: [
|
|
3342
|
-
|
|
3342
|
+
a && /* @__PURE__ */ r("span", { className: "mr-1.5 inline-flex items-center", "aria-hidden": "true", children: a }),
|
|
3343
3343
|
/* @__PURE__ */ r("span", { children: i }),
|
|
3344
3344
|
s && l && /* @__PURE__ */ r(
|
|
3345
3345
|
"button",
|
|
@@ -3358,12 +3358,12 @@ const Ar = J(
|
|
|
3358
3358
|
)
|
|
3359
3359
|
);
|
|
3360
3360
|
Oe.displayName = "Chip";
|
|
3361
|
-
const ht =
|
|
3361
|
+
const ht = v.forwardRef(
|
|
3362
3362
|
({
|
|
3363
3363
|
categories: e,
|
|
3364
3364
|
activeCategory: t,
|
|
3365
|
-
onCategoryChange:
|
|
3366
|
-
showCount:
|
|
3365
|
+
onCategoryChange: o,
|
|
3366
|
+
showCount: a,
|
|
3367
3367
|
getCategoryCount: n,
|
|
3368
3368
|
className: s
|
|
3369
3369
|
}, l) => /* @__PURE__ */ r(
|
|
@@ -3374,7 +3374,7 @@ const ht = y.forwardRef(
|
|
|
3374
3374
|
"aria-label": "Filter by category",
|
|
3375
3375
|
className: f("flex flex-wrap gap-2 overflow-x-auto pb-2", s),
|
|
3376
3376
|
children: e.map((i) => {
|
|
3377
|
-
const c = t === i.id, m =
|
|
3377
|
+
const c = t === i.id, m = a && n ? n(i.id) : void 0;
|
|
3378
3378
|
return /* @__PURE__ */ p(
|
|
3379
3379
|
Oe,
|
|
3380
3380
|
{
|
|
@@ -3383,8 +3383,8 @@ const ht = y.forwardRef(
|
|
|
3383
3383
|
"aria-controls": `entities-panel-${i.id}`,
|
|
3384
3384
|
selected: c,
|
|
3385
3385
|
variant: c ? "selected" : "outline",
|
|
3386
|
-
icon: typeof i.icon == "string" ? i.icon : i.icon ?
|
|
3387
|
-
onClick: () =>
|
|
3386
|
+
icon: typeof i.icon == "string" ? i.icon : i.icon ? v.createElement(i.icon) : void 0,
|
|
3387
|
+
onClick: () => o(c ? null : i.id),
|
|
3388
3388
|
children: [
|
|
3389
3389
|
i.label,
|
|
3390
3390
|
m !== void 0 && /* @__PURE__ */ p("span", { className: "ml-1.5 opacity-70", children: [
|
|
@@ -3459,12 +3459,12 @@ const Lr = J(
|
|
|
3459
3459
|
defaultVariants: {
|
|
3460
3460
|
variant: "default"
|
|
3461
3461
|
}
|
|
3462
|
-
}), ne =
|
|
3462
|
+
}), ne = v.forwardRef(
|
|
3463
3463
|
({
|
|
3464
3464
|
className: e,
|
|
3465
3465
|
containerClassName: t,
|
|
3466
|
-
labelClassName:
|
|
3467
|
-
variant:
|
|
3466
|
+
labelClassName: o,
|
|
3467
|
+
variant: a,
|
|
3468
3468
|
inputSize: n,
|
|
3469
3469
|
label: s,
|
|
3470
3470
|
helperText: l,
|
|
@@ -3474,16 +3474,16 @@ const Lr = J(
|
|
|
3474
3474
|
suffix: u,
|
|
3475
3475
|
id: d,
|
|
3476
3476
|
...h
|
|
3477
|
-
},
|
|
3478
|
-
const
|
|
3477
|
+
}, M) => {
|
|
3478
|
+
const y = v.useId(), C = d || y, g = `${C}-helper`, w = `${C}-error`, z = i ? "error" : a, S = i || l;
|
|
3479
3479
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3480
3480
|
s && /* @__PURE__ */ r(
|
|
3481
3481
|
"label",
|
|
3482
3482
|
{
|
|
3483
|
-
htmlFor:
|
|
3483
|
+
htmlFor: C,
|
|
3484
3484
|
className: f(
|
|
3485
|
-
$r({ variant:
|
|
3486
|
-
|
|
3485
|
+
$r({ variant: z, required: c }),
|
|
3486
|
+
o
|
|
3487
3487
|
),
|
|
3488
3488
|
children: s
|
|
3489
3489
|
}
|
|
@@ -3493,28 +3493,28 @@ const Lr = J(
|
|
|
3493
3493
|
/* @__PURE__ */ r(
|
|
3494
3494
|
"input",
|
|
3495
3495
|
{
|
|
3496
|
-
id:
|
|
3497
|
-
ref:
|
|
3496
|
+
id: C,
|
|
3497
|
+
ref: M,
|
|
3498
3498
|
className: f(
|
|
3499
|
-
Lr({ variant:
|
|
3499
|
+
Lr({ variant: z, inputSize: n }),
|
|
3500
3500
|
m && "pl-10",
|
|
3501
3501
|
u && "pr-10",
|
|
3502
3502
|
e
|
|
3503
3503
|
),
|
|
3504
3504
|
"aria-invalid": i ? "true" : "false",
|
|
3505
|
-
"aria-describedby":
|
|
3505
|
+
"aria-describedby": S ? i ? w : g : void 0,
|
|
3506
3506
|
...h
|
|
3507
3507
|
}
|
|
3508
3508
|
),
|
|
3509
3509
|
u && /* @__PURE__ */ r("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: u })
|
|
3510
3510
|
] }),
|
|
3511
|
-
|
|
3511
|
+
S && /* @__PURE__ */ r(
|
|
3512
3512
|
"p",
|
|
3513
3513
|
{
|
|
3514
|
-
id: i ?
|
|
3515
|
-
className: Or({ variant:
|
|
3514
|
+
id: i ? w : g,
|
|
3515
|
+
className: Or({ variant: z }),
|
|
3516
3516
|
role: i ? "alert" : void 0,
|
|
3517
|
-
children:
|
|
3517
|
+
children: S
|
|
3518
3518
|
}
|
|
3519
3519
|
)
|
|
3520
3520
|
] });
|
|
@@ -3537,8 +3537,8 @@ const Vr = (e) => {
|
|
|
3537
3537
|
}, Fr = ({
|
|
3538
3538
|
isOpen: e,
|
|
3539
3539
|
onClose: t,
|
|
3540
|
-
title:
|
|
3541
|
-
children:
|
|
3540
|
+
title: o,
|
|
3541
|
+
children: a,
|
|
3542
3542
|
size: n = "md",
|
|
3543
3543
|
showCloseButton: s = !0,
|
|
3544
3544
|
closeOnOverlayClick: l = !0,
|
|
@@ -3547,10 +3547,10 @@ const Vr = (e) => {
|
|
|
3547
3547
|
const c = Ae.useRef(null);
|
|
3548
3548
|
if (Ce(() => {
|
|
3549
3549
|
if (!e || !i) return;
|
|
3550
|
-
const
|
|
3551
|
-
|
|
3550
|
+
const y = (C) => {
|
|
3551
|
+
C.key === "Escape" && t();
|
|
3552
3552
|
};
|
|
3553
|
-
return document.addEventListener("keydown",
|
|
3553
|
+
return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
|
|
3554
3554
|
}, [e, i, t]), Ce(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3555
3555
|
document.body.style.overflow = "unset";
|
|
3556
3556
|
}), [e]), Ce(() => {
|
|
@@ -3563,7 +3563,7 @@ const Vr = (e) => {
|
|
|
3563
3563
|
Vr(n)
|
|
3564
3564
|
), d = f(
|
|
3565
3565
|
"p-6 border-b border-border flex items-center justify-between"
|
|
3566
|
-
), h = f("p-6 overflow-y-auto flex-1"),
|
|
3566
|
+
), h = f("p-6 overflow-y-auto flex-1"), M = f(
|
|
3567
3567
|
"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"
|
|
3568
3568
|
);
|
|
3569
3569
|
return /* @__PURE__ */ r(
|
|
@@ -3576,25 +3576,25 @@ const Vr = (e) => {
|
|
|
3576
3576
|
{
|
|
3577
3577
|
ref: c,
|
|
3578
3578
|
className: u,
|
|
3579
|
-
onClick: (
|
|
3579
|
+
onClick: (y) => y.stopPropagation(),
|
|
3580
3580
|
tabIndex: -1,
|
|
3581
3581
|
role: "dialog",
|
|
3582
3582
|
"aria-modal": "true",
|
|
3583
|
-
"aria-labelledby":
|
|
3583
|
+
"aria-labelledby": o ? "modal-title" : void 0,
|
|
3584
3584
|
children: [
|
|
3585
|
-
(
|
|
3586
|
-
|
|
3585
|
+
(o || s) && /* @__PURE__ */ p("div", { className: d, children: [
|
|
3586
|
+
o && /* @__PURE__ */ r(R, { variant: "h3", className: "text-foreground", children: o }),
|
|
3587
3587
|
s && /* @__PURE__ */ r(
|
|
3588
3588
|
"button",
|
|
3589
3589
|
{
|
|
3590
3590
|
onClick: t,
|
|
3591
3591
|
"aria-label": "Close modal",
|
|
3592
|
-
className:
|
|
3592
|
+
className: M,
|
|
3593
3593
|
children: "×"
|
|
3594
3594
|
}
|
|
3595
3595
|
)
|
|
3596
3596
|
] }),
|
|
3597
|
-
/* @__PURE__ */ r("div", { className: h, children:
|
|
3597
|
+
/* @__PURE__ */ r("div", { className: h, children: a })
|
|
3598
3598
|
]
|
|
3599
3599
|
}
|
|
3600
3600
|
)
|
|
@@ -3603,15 +3603,15 @@ const Vr = (e) => {
|
|
|
3603
3603
|
}, _r = ({
|
|
3604
3604
|
children: e,
|
|
3605
3605
|
actions: t,
|
|
3606
|
-
...
|
|
3607
|
-
}) => /* @__PURE__ */ p(Fr, { ...
|
|
3606
|
+
...o
|
|
3607
|
+
}) => /* @__PURE__ */ p(Fr, { ...o, children: [
|
|
3608
3608
|
/* @__PURE__ */ r("div", { className: "p-6 overflow-y-auto flex-1", children: e }),
|
|
3609
3609
|
t && /* @__PURE__ */ r("div", { className: "p-6 border-t border-border flex justify-end gap-3", children: t })
|
|
3610
|
-
] }),
|
|
3610
|
+
] }), ta = ({
|
|
3611
3611
|
isOpen: e,
|
|
3612
3612
|
onClose: t,
|
|
3613
|
-
onConfirm:
|
|
3614
|
-
title:
|
|
3613
|
+
onConfirm: o,
|
|
3614
|
+
title: a,
|
|
3615
3615
|
message: n,
|
|
3616
3616
|
confirmText: s = "Confirm",
|
|
3617
3617
|
cancelText: l = "Cancel"
|
|
@@ -3620,12 +3620,12 @@ const Vr = (e) => {
|
|
|
3620
3620
|
{
|
|
3621
3621
|
isOpen: e,
|
|
3622
3622
|
onClose: t,
|
|
3623
|
-
title:
|
|
3623
|
+
title: a,
|
|
3624
3624
|
actions: /* @__PURE__ */ p(se, { children: [
|
|
3625
3625
|
/* @__PURE__ */ r(K, { variant: "secondary", onClick: t, children: l }),
|
|
3626
|
-
/* @__PURE__ */ r(K, { variant: "default", onClick:
|
|
3626
|
+
/* @__PURE__ */ r(K, { variant: "default", onClick: o, children: s })
|
|
3627
3627
|
] }),
|
|
3628
|
-
children: /* @__PURE__ */ r(
|
|
3628
|
+
children: /* @__PURE__ */ r(R, { children: n })
|
|
3629
3629
|
}
|
|
3630
3630
|
), Dr = J(
|
|
3631
3631
|
[
|
|
@@ -3654,7 +3654,7 @@ const Vr = (e) => {
|
|
|
3654
3654
|
selectSize: "default"
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
),
|
|
3657
|
+
), Br = J(
|
|
3658
3658
|
["block text-sm font-medium mb-1.5", "transition-colors"],
|
|
3659
3659
|
{
|
|
3660
3660
|
variants: {
|
|
@@ -3673,7 +3673,7 @@ const Vr = (e) => {
|
|
|
3673
3673
|
required: !1
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
),
|
|
3676
|
+
), Hr = J("mt-1.5 text-sm", {
|
|
3677
3677
|
variants: {
|
|
3678
3678
|
variant: {
|
|
3679
3679
|
default: "text-muted-foreground",
|
|
@@ -3693,11 +3693,11 @@ const Vr = (e) => {
|
|
|
3693
3693
|
*/
|
|
3694
3694
|
const Gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Wr = (e) => e.replace(
|
|
3695
3695
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3696
|
-
(t,
|
|
3696
|
+
(t, o, a) => a ? a.toUpperCase() : o.toLowerCase()
|
|
3697
3697
|
), Qe = (e) => {
|
|
3698
3698
|
const t = Wr(e);
|
|
3699
3699
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3700
|
-
}, gt = (...e) => e.filter((t,
|
|
3700
|
+
}, gt = (...e) => e.filter((t, o, a) => !!t && t.trim() !== "" && a.indexOf(t) === o).join(" ").trim(), Ur = (e) => {
|
|
3701
3701
|
for (const t in e)
|
|
3702
3702
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3703
3703
|
return !0;
|
|
@@ -3729,13 +3729,13 @@ const Xr = we(
|
|
|
3729
3729
|
({
|
|
3730
3730
|
color: e = "currentColor",
|
|
3731
3731
|
size: t = 24,
|
|
3732
|
-
strokeWidth:
|
|
3733
|
-
absoluteStrokeWidth:
|
|
3732
|
+
strokeWidth: o = 2,
|
|
3733
|
+
absoluteStrokeWidth: a,
|
|
3734
3734
|
className: n = "",
|
|
3735
3735
|
children: s,
|
|
3736
3736
|
iconNode: l,
|
|
3737
3737
|
...i
|
|
3738
|
-
}, c) =>
|
|
3738
|
+
}, c) => Pe(
|
|
3739
3739
|
"svg",
|
|
3740
3740
|
{
|
|
3741
3741
|
ref: c,
|
|
@@ -3743,13 +3743,13 @@ const Xr = we(
|
|
|
3743
3743
|
width: t,
|
|
3744
3744
|
height: t,
|
|
3745
3745
|
stroke: e,
|
|
3746
|
-
strokeWidth:
|
|
3746
|
+
strokeWidth: a ? Number(o) * 24 / Number(t) : o,
|
|
3747
3747
|
className: gt("lucide", n),
|
|
3748
3748
|
...!s && !Ur(i) && { "aria-hidden": "true" },
|
|
3749
3749
|
...i
|
|
3750
3750
|
},
|
|
3751
3751
|
[
|
|
3752
|
-
...l.map(([m, u]) =>
|
|
3752
|
+
...l.map(([m, u]) => Pe(m, u)),
|
|
3753
3753
|
...Array.isArray(s) ? s : [s]
|
|
3754
3754
|
]
|
|
3755
3755
|
)
|
|
@@ -3761,19 +3761,19 @@ const Xr = we(
|
|
|
3761
3761
|
* See the LICENSE file in the root directory of this source tree.
|
|
3762
3762
|
*/
|
|
3763
3763
|
const G = (e, t) => {
|
|
3764
|
-
const
|
|
3765
|
-
({ className:
|
|
3764
|
+
const o = we(
|
|
3765
|
+
({ className: a, ...n }, s) => Pe(Xr, {
|
|
3766
3766
|
ref: s,
|
|
3767
3767
|
iconNode: t,
|
|
3768
3768
|
className: gt(
|
|
3769
3769
|
`lucide-${Gr(Qe(e))}`,
|
|
3770
3770
|
`lucide-${e}`,
|
|
3771
|
-
|
|
3771
|
+
a
|
|
3772
3772
|
),
|
|
3773
3773
|
...n
|
|
3774
3774
|
})
|
|
3775
3775
|
);
|
|
3776
|
-
return
|
|
3776
|
+
return o.displayName = Qe(e), o;
|
|
3777
3777
|
};
|
|
3778
3778
|
/**
|
|
3779
3779
|
* @license lucide-react v0.547.0 - ISC
|
|
@@ -3823,34 +3823,34 @@ const Yr = [
|
|
|
3823
3823
|
["circle", { cx: "7", cy: "17", r: "2", key: "u2ysq9" }],
|
|
3824
3824
|
["path", { d: "M9 17h6", key: "r8uit2" }],
|
|
3825
3825
|
["circle", { cx: "17", cy: "17", r: "2", key: "axvx0g" }]
|
|
3826
|
-
],
|
|
3826
|
+
], eo = G("car", Yr);
|
|
3827
3827
|
/**
|
|
3828
3828
|
* @license lucide-react v0.547.0 - ISC
|
|
3829
3829
|
*
|
|
3830
3830
|
* This source code is licensed under the ISC license.
|
|
3831
3831
|
* See the LICENSE file in the root directory of this source tree.
|
|
3832
3832
|
*/
|
|
3833
|
-
const
|
|
3833
|
+
const to = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ro = G("chevron-down", to);
|
|
3834
3834
|
/**
|
|
3835
3835
|
* @license lucide-react v0.547.0 - ISC
|
|
3836
3836
|
*
|
|
3837
3837
|
* This source code is licensed under the ISC license.
|
|
3838
3838
|
* See the LICENSE file in the root directory of this source tree.
|
|
3839
3839
|
*/
|
|
3840
|
-
const
|
|
3840
|
+
const oo = [
|
|
3841
3841
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3842
3842
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
3843
3843
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
3844
3844
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
3845
3845
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
3846
|
-
],
|
|
3846
|
+
], ao = G("grid-3x3", oo);
|
|
3847
3847
|
/**
|
|
3848
3848
|
* @license lucide-react v0.547.0 - ISC
|
|
3849
3849
|
*
|
|
3850
3850
|
* This source code is licensed under the ISC license.
|
|
3851
3851
|
* See the LICENSE file in the root directory of this source tree.
|
|
3852
3852
|
*/
|
|
3853
|
-
const
|
|
3853
|
+
const no = [
|
|
3854
3854
|
[
|
|
3855
3855
|
"path",
|
|
3856
3856
|
{
|
|
@@ -3858,14 +3858,14 @@ const na = [
|
|
|
3858
3858
|
key: "mvr1a0"
|
|
3859
3859
|
}
|
|
3860
3860
|
]
|
|
3861
|
-
],
|
|
3861
|
+
], so = G("heart", no);
|
|
3862
3862
|
/**
|
|
3863
3863
|
* @license lucide-react v0.547.0 - ISC
|
|
3864
3864
|
*
|
|
3865
3865
|
* This source code is licensed under the ISC license.
|
|
3866
3866
|
* See the LICENSE file in the root directory of this source tree.
|
|
3867
3867
|
*/
|
|
3868
|
-
const
|
|
3868
|
+
const lo = [
|
|
3869
3869
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
3870
3870
|
[
|
|
3871
3871
|
"path",
|
|
@@ -3874,14 +3874,14 @@ const la = [
|
|
|
3874
3874
|
key: "r6nss1"
|
|
3875
3875
|
}
|
|
3876
3876
|
]
|
|
3877
|
-
],
|
|
3877
|
+
], io = G("house", lo);
|
|
3878
3878
|
/**
|
|
3879
3879
|
* @license lucide-react v0.547.0 - ISC
|
|
3880
3880
|
*
|
|
3881
3881
|
* This source code is licensed under the ISC license.
|
|
3882
3882
|
* See the LICENSE file in the root directory of this source tree.
|
|
3883
3883
|
*/
|
|
3884
|
-
const
|
|
3884
|
+
const co = [
|
|
3885
3885
|
[
|
|
3886
3886
|
"path",
|
|
3887
3887
|
{
|
|
@@ -3890,65 +3890,65 @@ const ca = [
|
|
|
3890
3890
|
}
|
|
3891
3891
|
],
|
|
3892
3892
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
3893
|
-
],
|
|
3893
|
+
], mo = G("map-pin", co);
|
|
3894
3894
|
/**
|
|
3895
3895
|
* @license lucide-react v0.547.0 - ISC
|
|
3896
3896
|
*
|
|
3897
3897
|
* This source code is licensed under the ISC license.
|
|
3898
3898
|
* See the LICENSE file in the root directory of this source tree.
|
|
3899
3899
|
*/
|
|
3900
|
-
const
|
|
3900
|
+
const uo = [
|
|
3901
3901
|
["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
|
|
3902
3902
|
["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
|
|
3903
3903
|
["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }],
|
|
3904
3904
|
["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3", key: "18trek" }]
|
|
3905
|
-
],
|
|
3905
|
+
], po = G("maximize", uo);
|
|
3906
3906
|
/**
|
|
3907
3907
|
* @license lucide-react v0.547.0 - ISC
|
|
3908
3908
|
*
|
|
3909
3909
|
* This source code is licensed under the ISC license.
|
|
3910
3910
|
* See the LICENSE file in the root directory of this source tree.
|
|
3911
3911
|
*/
|
|
3912
|
-
const
|
|
3912
|
+
const fo = [
|
|
3913
3913
|
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
3914
3914
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
3915
3915
|
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
3916
|
-
],
|
|
3916
|
+
], ho = G("menu", fo);
|
|
3917
3917
|
/**
|
|
3918
3918
|
* @license lucide-react v0.547.0 - ISC
|
|
3919
3919
|
*
|
|
3920
3920
|
* This source code is licensed under the ISC license.
|
|
3921
3921
|
* See the LICENSE file in the root directory of this source tree.
|
|
3922
3922
|
*/
|
|
3923
|
-
const
|
|
3923
|
+
const go = [
|
|
3924
3924
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
3925
3925
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
3926
|
-
], je = G("search",
|
|
3926
|
+
], je = G("search", go);
|
|
3927
3927
|
/**
|
|
3928
3928
|
* @license lucide-react v0.547.0 - ISC
|
|
3929
3929
|
*
|
|
3930
3930
|
* This source code is licensed under the ISC license.
|
|
3931
3931
|
* See the LICENSE file in the root directory of this source tree.
|
|
3932
3932
|
*/
|
|
3933
|
-
const
|
|
3933
|
+
const bo = [
|
|
3934
3934
|
["path", { d: "M16 7h6v6", key: "box55l" }],
|
|
3935
3935
|
["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
|
|
3936
|
-
],
|
|
3936
|
+
], xo = G("trending-up", bo);
|
|
3937
3937
|
/**
|
|
3938
3938
|
* @license lucide-react v0.547.0 - ISC
|
|
3939
3939
|
*
|
|
3940
3940
|
* This source code is licensed under the ISC license.
|
|
3941
3941
|
* See the LICENSE file in the root directory of this source tree.
|
|
3942
3942
|
*/
|
|
3943
|
-
const
|
|
3943
|
+
const yo = [
|
|
3944
3944
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3945
3945
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3946
|
-
], Ye = G("x",
|
|
3946
|
+
], Ye = G("x", yo), Ve = v.forwardRef(
|
|
3947
3947
|
({
|
|
3948
3948
|
className: e,
|
|
3949
3949
|
containerClassName: t,
|
|
3950
|
-
labelClassName:
|
|
3951
|
-
variant:
|
|
3950
|
+
labelClassName: o,
|
|
3951
|
+
variant: a,
|
|
3952
3952
|
selectSize: n,
|
|
3953
3953
|
label: s,
|
|
3954
3954
|
helperText: l,
|
|
@@ -3958,16 +3958,16 @@ const xa = [
|
|
|
3958
3958
|
placeholder: u,
|
|
3959
3959
|
id: d,
|
|
3960
3960
|
...h
|
|
3961
|
-
},
|
|
3962
|
-
const
|
|
3961
|
+
}, M) => {
|
|
3962
|
+
const y = v.useId(), C = d || y, g = `${C}-helper`, w = `${C}-error`, z = i ? "error" : a, S = i || l;
|
|
3963
3963
|
return /* @__PURE__ */ p("div", { className: f("w-full", t), children: [
|
|
3964
3964
|
s && /* @__PURE__ */ r(
|
|
3965
3965
|
"label",
|
|
3966
3966
|
{
|
|
3967
|
-
htmlFor:
|
|
3967
|
+
htmlFor: C,
|
|
3968
3968
|
className: f(
|
|
3969
|
-
|
|
3970
|
-
|
|
3969
|
+
Br({ variant: z, required: c }),
|
|
3970
|
+
o
|
|
3971
3971
|
),
|
|
3972
3972
|
children: s
|
|
3973
3973
|
}
|
|
@@ -3976,16 +3976,16 @@ const xa = [
|
|
|
3976
3976
|
/* @__PURE__ */ p(
|
|
3977
3977
|
"select",
|
|
3978
3978
|
{
|
|
3979
|
-
id:
|
|
3980
|
-
ref:
|
|
3979
|
+
id: C,
|
|
3980
|
+
ref: M,
|
|
3981
3981
|
className: f(
|
|
3982
|
-
Dr({ variant:
|
|
3982
|
+
Dr({ variant: z, selectSize: n }),
|
|
3983
3983
|
"pr-10",
|
|
3984
3984
|
// Space for chevron icon
|
|
3985
3985
|
e
|
|
3986
3986
|
),
|
|
3987
3987
|
"aria-invalid": i ? "true" : "false",
|
|
3988
|
-
"aria-describedby":
|
|
3988
|
+
"aria-describedby": S ? i ? w : g : void 0,
|
|
3989
3989
|
...h,
|
|
3990
3990
|
children: [
|
|
3991
3991
|
u && /* @__PURE__ */ r("option", { value: "", disabled: !0, children: u }),
|
|
@@ -4001,22 +4001,22 @@ const xa = [
|
|
|
4001
4001
|
]
|
|
4002
4002
|
}
|
|
4003
4003
|
),
|
|
4004
|
-
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ r(
|
|
4004
|
+
/* @__PURE__ */ r("div", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ r(ro, { className: "h-4 w-4" }) })
|
|
4005
4005
|
] }),
|
|
4006
|
-
|
|
4006
|
+
S && /* @__PURE__ */ r(
|
|
4007
4007
|
"p",
|
|
4008
4008
|
{
|
|
4009
|
-
id: i ?
|
|
4010
|
-
className:
|
|
4009
|
+
id: i ? w : g,
|
|
4010
|
+
className: Hr({ variant: z }),
|
|
4011
4011
|
role: i ? "alert" : void 0,
|
|
4012
|
-
children:
|
|
4012
|
+
children: S
|
|
4013
4013
|
}
|
|
4014
4014
|
)
|
|
4015
4015
|
] });
|
|
4016
4016
|
}
|
|
4017
4017
|
);
|
|
4018
4018
|
Ve.displayName = "Select";
|
|
4019
|
-
const
|
|
4019
|
+
const vo = (e) => {
|
|
4020
4020
|
switch (e) {
|
|
4021
4021
|
case "sm":
|
|
4022
4022
|
return "p-4";
|
|
@@ -4030,29 +4030,29 @@ const ya = (e) => {
|
|
|
4030
4030
|
}, Fe = ({
|
|
4031
4031
|
children: e,
|
|
4032
4032
|
header: t,
|
|
4033
|
-
sidebar:
|
|
4034
|
-
footer:
|
|
4033
|
+
sidebar: o,
|
|
4034
|
+
footer: a,
|
|
4035
4035
|
padding: n = "md"
|
|
4036
4036
|
}) => {
|
|
4037
4037
|
const s = f("min-h-screen flex flex-col"), l = f("bg-card border-b border-border z-10"), i = f("flex flex-1"), c = f("w-70 bg-card border-r border-border p-6"), m = f("flex-1 flex flex-col"), u = f(
|
|
4038
4038
|
"flex-1 mx-auto w-full max-w-7xl",
|
|
4039
|
-
|
|
4039
|
+
vo(n)
|
|
4040
4040
|
);
|
|
4041
4041
|
return /* @__PURE__ */ p("div", { className: s, children: [
|
|
4042
4042
|
t && /* @__PURE__ */ r("header", { className: l, children: t }),
|
|
4043
4043
|
/* @__PURE__ */ p("div", { className: i, children: [
|
|
4044
|
-
|
|
4044
|
+
o && /* @__PURE__ */ r("aside", { className: c, children: o }),
|
|
4045
4045
|
/* @__PURE__ */ r("div", { className: m, children: /* @__PURE__ */ r("main", { className: u, children: e }) })
|
|
4046
4046
|
] }),
|
|
4047
|
-
|
|
4047
|
+
a && /* @__PURE__ */ r("footer", { className: "bg-card border-t border-border mt-auto", children: a })
|
|
4048
4048
|
] });
|
|
4049
|
-
},
|
|
4049
|
+
}, ra = ({ children: e, header: t, sidebar: o }) => /* @__PURE__ */ r(Fe, { header: t, sidebar: o, padding: "lg", children: /* @__PURE__ */ r("div", { className: "max-w-screen-2xl", children: e }) }), oa = ({ children: e, title: t, subtitle: o }) => /* @__PURE__ */ r(Fe, { padding: "lg", children: /* @__PURE__ */ p("div", { className: "max-w-md mx-auto", children: [
|
|
4050
4050
|
/* @__PURE__ */ p("div", { className: "text-center mb-8", children: [
|
|
4051
|
-
t && /* @__PURE__ */ r(
|
|
4052
|
-
|
|
4051
|
+
t && /* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: t }),
|
|
4052
|
+
o && /* @__PURE__ */ r(R, { variant: "body", color: "muted", children: o })
|
|
4053
4053
|
] }),
|
|
4054
4054
|
e
|
|
4055
|
-
] }) }),
|
|
4055
|
+
] }) }), aa = ({ children: e, header: t, footer: o }) => /* @__PURE__ */ r(Fe, { header: t, footer: o, padding: "none", children: e }), bt = v.forwardRef(({ message: e = "No entities found", icon: t, action: o, className: a }, n) => /* @__PURE__ */ p(
|
|
4056
4056
|
"div",
|
|
4057
4057
|
{
|
|
4058
4058
|
ref: n,
|
|
@@ -4060,49 +4060,49 @@ const ya = (e) => {
|
|
|
4060
4060
|
"aria-live": "polite",
|
|
4061
4061
|
className: f(
|
|
4062
4062
|
"flex flex-col items-center justify-center py-12 px-4 text-center",
|
|
4063
|
-
|
|
4063
|
+
a
|
|
4064
4064
|
),
|
|
4065
4065
|
children: [
|
|
4066
4066
|
t && /* @__PURE__ */ r("div", { className: "mb-4 text-4xl opacity-50", "aria-hidden": "true", children: t }),
|
|
4067
|
-
/* @__PURE__ */ r(
|
|
4068
|
-
|
|
4067
|
+
/* @__PURE__ */ r(R, { variant: "body-lg", className: "text-muted-foreground mb-4", children: e }),
|
|
4068
|
+
o && /* @__PURE__ */ r(K, { variant: "outline", onClick: o.onClick, children: o.label })
|
|
4069
4069
|
]
|
|
4070
4070
|
}
|
|
4071
4071
|
));
|
|
4072
4072
|
bt.displayName = "EntityDirectoryEmptyState";
|
|
4073
|
-
const xt =
|
|
4073
|
+
const xt = v.forwardRef(({ error: e, onRetry: t, className: o }, a) => {
|
|
4074
4074
|
const n = typeof e == "string" ? e : e.message;
|
|
4075
4075
|
return /* @__PURE__ */ p(
|
|
4076
4076
|
"div",
|
|
4077
4077
|
{
|
|
4078
|
-
ref:
|
|
4078
|
+
ref: a,
|
|
4079
4079
|
role: "alert",
|
|
4080
4080
|
"aria-live": "assertive",
|
|
4081
4081
|
className: f(
|
|
4082
4082
|
"flex flex-col items-center justify-center py-12 px-4 text-center",
|
|
4083
|
-
|
|
4083
|
+
o
|
|
4084
4084
|
),
|
|
4085
4085
|
children: [
|
|
4086
4086
|
/* @__PURE__ */ r("div", { className: "mb-4 text-4xl", "aria-hidden": "true", children: "⚠️" }),
|
|
4087
|
-
/* @__PURE__ */ r(
|
|
4088
|
-
/* @__PURE__ */ r(
|
|
4087
|
+
/* @__PURE__ */ r(R, { variant: "body-lg", className: "text-destructive mb-2 font-semibold", children: "Error" }),
|
|
4088
|
+
/* @__PURE__ */ r(R, { variant: "body", className: "text-muted-foreground mb-4", children: n }),
|
|
4089
4089
|
t && /* @__PURE__ */ r(K, { variant: "outline", onClick: t, children: "Try Again" })
|
|
4090
4090
|
]
|
|
4091
4091
|
}
|
|
4092
4092
|
);
|
|
4093
4093
|
});
|
|
4094
4094
|
xt.displayName = "EntityDirectoryErrorState";
|
|
4095
|
-
const yt =
|
|
4096
|
-
/* @__PURE__ */ r(
|
|
4097
|
-
t && /* @__PURE__ */ r(
|
|
4095
|
+
const yt = v.forwardRef(({ title: e, description: t, className: o }, a) => /* @__PURE__ */ p("div", { ref: a, className: f("space-y-1.5", o), children: [
|
|
4096
|
+
/* @__PURE__ */ r(R, { variant: "h2", className: "font-bold", children: e }),
|
|
4097
|
+
t && /* @__PURE__ */ r(R, { variant: "body", className: "text-muted-foreground", children: t })
|
|
4098
4098
|
] }));
|
|
4099
4099
|
yt.displayName = "EntityDirectoryHeader";
|
|
4100
|
-
const vt =
|
|
4100
|
+
const vt = v.forwardRef(
|
|
4101
4101
|
({
|
|
4102
4102
|
entity: e,
|
|
4103
4103
|
categories: t,
|
|
4104
|
-
showIcon:
|
|
4105
|
-
showCategoryBadge:
|
|
4104
|
+
showIcon: o = !0,
|
|
4105
|
+
showCategoryBadge: a = !0,
|
|
4106
4106
|
showMetric: n = !0,
|
|
4107
4107
|
compact: s = !1,
|
|
4108
4108
|
className: l
|
|
@@ -4129,7 +4129,7 @@ const vt = y.forwardRef(
|
|
|
4129
4129
|
l
|
|
4130
4130
|
),
|
|
4131
4131
|
children: [
|
|
4132
|
-
|
|
4132
|
+
o && /* @__PURE__ */ r(
|
|
4133
4133
|
"div",
|
|
4134
4134
|
{
|
|
4135
4135
|
className: f(
|
|
@@ -4137,12 +4137,12 @@ const vt = y.forwardRef(
|
|
|
4137
4137
|
s ? "w-8 h-8 text-lg" : "w-10 h-10 text-xl"
|
|
4138
4138
|
),
|
|
4139
4139
|
"aria-hidden": "true",
|
|
4140
|
-
children: typeof e.icon == "string" ? /* @__PURE__ */ r("span", { children: e.icon }) : e.icon ?
|
|
4140
|
+
children: typeof e.icon == "string" ? /* @__PURE__ */ r("span", { children: e.icon }) : e.icon ? v.createElement(e.icon) : /* @__PURE__ */ r("span", { className: "text-muted-foreground", children: "•" })
|
|
4141
4141
|
}
|
|
4142
4142
|
),
|
|
4143
4143
|
/* @__PURE__ */ p("div", { className: "flex-1 min-w-0", children: [
|
|
4144
4144
|
/* @__PURE__ */ r(
|
|
4145
|
-
|
|
4145
|
+
R,
|
|
4146
4146
|
{
|
|
4147
4147
|
variant: s ? "body-sm" : "body",
|
|
4148
4148
|
className: "font-semibold truncate",
|
|
@@ -4150,7 +4150,7 @@ const vt = y.forwardRef(
|
|
|
4150
4150
|
}
|
|
4151
4151
|
),
|
|
4152
4152
|
e.subtitle && /* @__PURE__ */ r(
|
|
4153
|
-
|
|
4153
|
+
R,
|
|
4154
4154
|
{
|
|
4155
4155
|
variant: s ? "caption" : "body-sm",
|
|
4156
4156
|
className: "text-muted-foreground truncate",
|
|
@@ -4158,7 +4158,7 @@ const vt = y.forwardRef(
|
|
|
4158
4158
|
}
|
|
4159
4159
|
)
|
|
4160
4160
|
] }),
|
|
4161
|
-
|
|
4161
|
+
a && c && /* @__PURE__ */ r(
|
|
4162
4162
|
Oe,
|
|
4163
4163
|
{
|
|
4164
4164
|
variant: "secondary",
|
|
@@ -4170,14 +4170,14 @@ const vt = y.forwardRef(
|
|
|
4170
4170
|
),
|
|
4171
4171
|
n && e.metricValue && /* @__PURE__ */ p("div", { className: "flex-shrink-0 text-right min-w-[4rem]", children: [
|
|
4172
4172
|
/* @__PURE__ */ r(
|
|
4173
|
-
|
|
4173
|
+
R,
|
|
4174
4174
|
{
|
|
4175
4175
|
variant: s ? "body-sm" : "body",
|
|
4176
4176
|
className: "font-medium",
|
|
4177
4177
|
children: e.metricValue
|
|
4178
4178
|
}
|
|
4179
4179
|
),
|
|
4180
|
-
e.metricLabel && /* @__PURE__ */ r(
|
|
4180
|
+
e.metricLabel && /* @__PURE__ */ r(R, { variant: "caption", className: "text-muted-foreground", children: e.metricLabel })
|
|
4181
4181
|
] })
|
|
4182
4182
|
]
|
|
4183
4183
|
}
|
|
@@ -4185,11 +4185,11 @@ const vt = y.forwardRef(
|
|
|
4185
4185
|
}
|
|
4186
4186
|
);
|
|
4187
4187
|
vt.displayName = "EntityDirectoryListItem";
|
|
4188
|
-
const wt =
|
|
4188
|
+
const wt = v.forwardRef(({ columns: e, showIcon: t, sort: o, onSortChange: a, compact: n, className: s }, l) => {
|
|
4189
4189
|
const i = (d) => {
|
|
4190
|
-
if (!
|
|
4191
|
-
const h =
|
|
4192
|
-
|
|
4190
|
+
if (!a) return;
|
|
4191
|
+
const h = o?.column === d && o?.direction === "asc" ? "desc" : "asc";
|
|
4192
|
+
a({
|
|
4193
4193
|
column: d,
|
|
4194
4194
|
direction: h
|
|
4195
4195
|
});
|
|
@@ -4197,14 +4197,14 @@ const wt = y.forwardRef(({ columns: e, showIcon: t, sort: a, onSortChange: o, co
|
|
|
4197
4197
|
i(d);
|
|
4198
4198
|
}, m = (d, h) => {
|
|
4199
4199
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), i(h));
|
|
4200
|
-
}, u = (d) => d !== "title" && d !== "metric" ? null : !
|
|
4200
|
+
}, u = (d) => d !== "title" && d !== "metric" ? null : !o || o.column !== d ? /* @__PURE__ */ r(
|
|
4201
4201
|
"span",
|
|
4202
4202
|
{
|
|
4203
4203
|
className: "ml-1 text-muted-foreground opacity-50",
|
|
4204
4204
|
"aria-hidden": "true",
|
|
4205
4205
|
children: "⇅"
|
|
4206
4206
|
}
|
|
4207
|
-
) : /* @__PURE__ */ r("span", { className: "ml-1", "aria-hidden": "true", children:
|
|
4207
|
+
) : /* @__PURE__ */ r("span", { className: "ml-1", "aria-hidden": "true", children: o.direction === "asc" ? "↑" : "↓" });
|
|
4208
4208
|
return /* @__PURE__ */ p(
|
|
4209
4209
|
"div",
|
|
4210
4210
|
{
|
|
@@ -4218,12 +4218,12 @@ const wt = y.forwardRef(({ columns: e, showIcon: t, sort: a, onSortChange: o, co
|
|
|
4218
4218
|
children: [
|
|
4219
4219
|
t && /* @__PURE__ */ r("div", { className: n ? "w-8" : "w-10" }),
|
|
4220
4220
|
e.map((d) => {
|
|
4221
|
-
const h = d.sortable && (d.key === "title" || d.key === "metric"),
|
|
4221
|
+
const h = d.sortable && (d.key === "title" || d.key === "metric"), M = o?.column === d.key;
|
|
4222
4222
|
return /* @__PURE__ */ p(
|
|
4223
4223
|
"div",
|
|
4224
4224
|
{
|
|
4225
4225
|
role: "columnheader",
|
|
4226
|
-
"aria-sort":
|
|
4226
|
+
"aria-sort": M ? o?.direction === "asc" ? "ascending" : "descending" : void 0,
|
|
4227
4227
|
className: f(
|
|
4228
4228
|
d.key === "title" && "flex-1",
|
|
4229
4229
|
d.key === "category" && "w-40",
|
|
@@ -4231,12 +4231,12 @@ const wt = y.forwardRef(({ columns: e, showIcon: t, sort: a, onSortChange: o, co
|
|
|
4231
4231
|
d.align === "center" && "text-center",
|
|
4232
4232
|
d.align === "right" && "text-right",
|
|
4233
4233
|
h && "cursor-pointer hover:text-foreground transition-colors select-none",
|
|
4234
|
-
|
|
4234
|
+
M && "text-foreground"
|
|
4235
4235
|
),
|
|
4236
4236
|
style: d.width ? { width: d.width } : void 0,
|
|
4237
4237
|
onClick: h && (d.key === "title" || d.key === "metric") ? () => c(d.key) : void 0,
|
|
4238
4238
|
tabIndex: h ? 0 : void 0,
|
|
4239
|
-
onKeyDown: h && (d.key === "title" || d.key === "metric") ? (
|
|
4239
|
+
onKeyDown: h && (d.key === "title" || d.key === "metric") ? (y) => m(y, d.key) : void 0,
|
|
4240
4240
|
children: [
|
|
4241
4241
|
d.label,
|
|
4242
4242
|
h && u(d.key)
|
|
@@ -4250,12 +4250,12 @@ const wt = y.forwardRef(({ columns: e, showIcon: t, sort: a, onSortChange: o, co
|
|
|
4250
4250
|
);
|
|
4251
4251
|
});
|
|
4252
4252
|
wt.displayName = "EntityDirectoryTableHeader";
|
|
4253
|
-
const kt =
|
|
4253
|
+
const kt = v.forwardRef(
|
|
4254
4254
|
({
|
|
4255
4255
|
entities: e,
|
|
4256
4256
|
categories: t,
|
|
4257
|
-
showIcons:
|
|
4258
|
-
showCategoryBadges:
|
|
4257
|
+
showIcons: o = !0,
|
|
4258
|
+
showCategoryBadges: a = !0,
|
|
4259
4259
|
showMetric: n = !0,
|
|
4260
4260
|
metricLabel: s,
|
|
4261
4261
|
sortable: l = !1,
|
|
@@ -4265,13 +4265,13 @@ const kt = y.forwardRef(
|
|
|
4265
4265
|
renderItem: u,
|
|
4266
4266
|
className: d
|
|
4267
4267
|
}, h) => {
|
|
4268
|
-
const
|
|
4268
|
+
const M = [
|
|
4269
4269
|
{
|
|
4270
4270
|
key: "title",
|
|
4271
4271
|
label: s ? "Nombre" : "Name",
|
|
4272
4272
|
sortable: l
|
|
4273
4273
|
},
|
|
4274
|
-
...
|
|
4274
|
+
...a ? [{ key: "category", label: "Categoría", sortable: !1 }] : [],
|
|
4275
4275
|
...n && s ? [
|
|
4276
4276
|
{
|
|
4277
4277
|
key: "metric",
|
|
@@ -4295,25 +4295,25 @@ const kt = y.forwardRef(
|
|
|
4295
4295
|
/* @__PURE__ */ r(
|
|
4296
4296
|
wt,
|
|
4297
4297
|
{
|
|
4298
|
-
columns:
|
|
4299
|
-
showIcon:
|
|
4298
|
+
columns: M,
|
|
4299
|
+
showIcon: o,
|
|
4300
4300
|
sort: i,
|
|
4301
4301
|
onSortChange: c,
|
|
4302
4302
|
compact: m
|
|
4303
4303
|
}
|
|
4304
4304
|
),
|
|
4305
4305
|
/* @__PURE__ */ r("div", { role: "rowgroup", children: e.map(
|
|
4306
|
-
(
|
|
4306
|
+
(y) => u ? /* @__PURE__ */ r(v.Fragment, { children: u(y) }, y.id) : /* @__PURE__ */ r(
|
|
4307
4307
|
vt,
|
|
4308
4308
|
{
|
|
4309
|
-
entity:
|
|
4309
|
+
entity: y,
|
|
4310
4310
|
categories: t,
|
|
4311
|
-
showIcon:
|
|
4312
|
-
showCategoryBadge:
|
|
4311
|
+
showIcon: o,
|
|
4312
|
+
showCategoryBadge: a,
|
|
4313
4313
|
showMetric: n,
|
|
4314
4314
|
compact: m
|
|
4315
4315
|
},
|
|
4316
|
-
|
|
4316
|
+
y.id
|
|
4317
4317
|
)
|
|
4318
4318
|
) })
|
|
4319
4319
|
]
|
|
@@ -4322,16 +4322,16 @@ const kt = y.forwardRef(
|
|
|
4322
4322
|
}
|
|
4323
4323
|
);
|
|
4324
4324
|
kt.displayName = "EntityDirectoryList";
|
|
4325
|
-
const Nt =
|
|
4325
|
+
const Nt = v.forwardRef(({ rows: e = 5, className: t }, o) => /* @__PURE__ */ p(
|
|
4326
4326
|
"div",
|
|
4327
4327
|
{
|
|
4328
|
-
ref:
|
|
4328
|
+
ref: o,
|
|
4329
4329
|
role: "status",
|
|
4330
4330
|
"aria-live": "polite",
|
|
4331
4331
|
"aria-label": "Loading entities",
|
|
4332
4332
|
className: f("space-y-3", t),
|
|
4333
4333
|
children: [
|
|
4334
|
-
Array.from({ length: e }).map((
|
|
4334
|
+
Array.from({ length: e }).map((a, n) => /* @__PURE__ */ p(
|
|
4335
4335
|
"div",
|
|
4336
4336
|
{
|
|
4337
4337
|
className: "flex items-center gap-4 p-4 border border-border rounded-lg animate-pulse",
|
|
@@ -4352,7 +4352,7 @@ const Nt = y.forwardRef(({ rows: e = 5, className: t }, a) => /* @__PURE__ */ p(
|
|
|
4352
4352
|
}
|
|
4353
4353
|
));
|
|
4354
4354
|
Nt.displayName = "EntityDirectoryLoadingState";
|
|
4355
|
-
const Ct =
|
|
4355
|
+
const Ct = v.forwardRef(({ value: e, onChange: t, placeholder: o = "Search entities...", className: a }, n) => /* @__PURE__ */ p("div", { className: f("relative", a), children: [
|
|
4356
4356
|
/* @__PURE__ */ r("div", { className: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none", children: /* @__PURE__ */ r(
|
|
4357
4357
|
"svg",
|
|
4358
4358
|
{
|
|
@@ -4380,7 +4380,7 @@ const Ct = y.forwardRef(({ value: e, onChange: t, placeholder: a = "Search entit
|
|
|
4380
4380
|
type: "search",
|
|
4381
4381
|
value: e,
|
|
4382
4382
|
onChange: (s) => t(s.target.value),
|
|
4383
|
-
placeholder:
|
|
4383
|
+
placeholder: o,
|
|
4384
4384
|
className: f(
|
|
4385
4385
|
"block w-full pl-10 pr-3 py-2 border border-input rounded-md",
|
|
4386
4386
|
"bg-background text-foreground placeholder:text-muted-foreground",
|
|
@@ -4419,12 +4419,12 @@ const Ct = y.forwardRef(({ value: e, onChange: t, placeholder: a = "Search entit
|
|
|
4419
4419
|
)
|
|
4420
4420
|
] }));
|
|
4421
4421
|
Ct.displayName = "EntityDirectorySearchFilter";
|
|
4422
|
-
const
|
|
4422
|
+
const wo = v.forwardRef(
|
|
4423
4423
|
({
|
|
4424
4424
|
entities: e,
|
|
4425
4425
|
categories: t,
|
|
4426
|
-
title:
|
|
4427
|
-
description:
|
|
4426
|
+
title: o,
|
|
4427
|
+
description: a,
|
|
4428
4428
|
activeCategory: n,
|
|
4429
4429
|
onCategoryChange: s,
|
|
4430
4430
|
showCategoryCount: l,
|
|
@@ -4434,28 +4434,28 @@ const va = y.forwardRef(
|
|
|
4434
4434
|
onSearchChange: u,
|
|
4435
4435
|
searchPlaceholder: d,
|
|
4436
4436
|
sortable: h = !1,
|
|
4437
|
-
sort:
|
|
4438
|
-
onSortChange:
|
|
4439
|
-
showIcons:
|
|
4440
|
-
showCategoryBadges:
|
|
4441
|
-
showMetric:
|
|
4442
|
-
metricLabel:
|
|
4443
|
-
compact:
|
|
4437
|
+
sort: M,
|
|
4438
|
+
onSortChange: y,
|
|
4439
|
+
showIcons: C = !0,
|
|
4440
|
+
showCategoryBadges: g = !0,
|
|
4441
|
+
showMetric: w = !0,
|
|
4442
|
+
metricLabel: z,
|
|
4443
|
+
compact: S = !1,
|
|
4444
4444
|
loading: P = !1,
|
|
4445
|
-
error:
|
|
4445
|
+
error: I,
|
|
4446
4446
|
emptyMessage: V,
|
|
4447
|
-
onRetry:
|
|
4448
|
-
emptyState:
|
|
4447
|
+
onRetry: E,
|
|
4448
|
+
emptyState: k,
|
|
4449
4449
|
errorState: L,
|
|
4450
4450
|
loadingState: q,
|
|
4451
4451
|
renderItem: re,
|
|
4452
4452
|
className: X,
|
|
4453
|
-
style:
|
|
4453
|
+
style: oe
|
|
4454
4454
|
}, Q) => {
|
|
4455
|
-
const
|
|
4456
|
-
return /* @__PURE__ */ p("div", { ref: Q, className: f("space-y-6", X), style:
|
|
4457
|
-
/* @__PURE__ */ r(yt, { title:
|
|
4458
|
-
|
|
4455
|
+
const B = t && t.length > 0, D = !P && !I && e.length === 0, W = !P && !!I;
|
|
4456
|
+
return /* @__PURE__ */ p("div", { ref: Q, className: f("space-y-6", X), style: oe, children: [
|
|
4457
|
+
/* @__PURE__ */ r(yt, { title: o, description: a }),
|
|
4458
|
+
B && s && /* @__PURE__ */ r(
|
|
4459
4459
|
ht,
|
|
4460
4460
|
{
|
|
4461
4461
|
categories: t,
|
|
@@ -4474,129 +4474,184 @@ const va = y.forwardRef(
|
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
4476
|
P && (q || /* @__PURE__ */ r(Nt, {})),
|
|
4477
|
-
W && (L || /* @__PURE__ */ r(xt, { error:
|
|
4478
|
-
D && (
|
|
4477
|
+
W && (L || /* @__PURE__ */ r(xt, { error: I, onRetry: E })),
|
|
4478
|
+
D && (k || /* @__PURE__ */ r(bt, { message: V })),
|
|
4479
4479
|
!P && !W && !D && /* @__PURE__ */ r(
|
|
4480
4480
|
kt,
|
|
4481
4481
|
{
|
|
4482
4482
|
entities: e,
|
|
4483
4483
|
categories: t,
|
|
4484
|
-
showIcons:
|
|
4485
|
-
showCategoryBadges:
|
|
4486
|
-
showMetric:
|
|
4487
|
-
metricLabel:
|
|
4484
|
+
showIcons: C,
|
|
4485
|
+
showCategoryBadges: g,
|
|
4486
|
+
showMetric: w,
|
|
4487
|
+
metricLabel: z,
|
|
4488
4488
|
sortable: h,
|
|
4489
|
-
sort:
|
|
4490
|
-
onSortChange:
|
|
4491
|
-
compact:
|
|
4489
|
+
sort: M,
|
|
4490
|
+
onSortChange: y,
|
|
4491
|
+
compact: S,
|
|
4492
4492
|
renderItem: re
|
|
4493
4493
|
}
|
|
4494
4494
|
)
|
|
4495
4495
|
] });
|
|
4496
4496
|
}
|
|
4497
4497
|
);
|
|
4498
|
-
|
|
4499
|
-
|
|
4498
|
+
wo.displayName = "EntityDirectory";
|
|
4499
|
+
function ko(e) {
|
|
4500
|
+
return {
|
|
4501
|
+
variant: e.variant || "minimal",
|
|
4502
|
+
logo: e.logo,
|
|
4503
|
+
navigationItems: e.navigationItems || [],
|
|
4504
|
+
loginButtonText: e.loginButtonText || "Iniciar Sesión",
|
|
4505
|
+
showMobileMenu: e.showMobileMenu ?? !0
|
|
4506
|
+
};
|
|
4507
|
+
}
|
|
4508
|
+
const No = we(
|
|
4500
4509
|
({
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4510
|
+
variant: e,
|
|
4511
|
+
logo: t,
|
|
4512
|
+
navigationItems: o,
|
|
4513
|
+
loginButtonText: a,
|
|
4514
|
+
showMobileMenu: n,
|
|
4515
|
+
className: s,
|
|
4516
|
+
logoClassName: l,
|
|
4517
|
+
navigationClassName: i,
|
|
4518
|
+
navigationItemClassName: c,
|
|
4519
|
+
loginButtonClassName: m,
|
|
4520
|
+
mobileMenuButtonClassName: u,
|
|
4521
|
+
id: d,
|
|
4522
|
+
"aria-label": h
|
|
4523
|
+
}, M) => {
|
|
4524
|
+
const [y, C] = ee(!1), g = ko({
|
|
4525
|
+
variant: e,
|
|
4526
|
+
logo: t,
|
|
4527
|
+
navigationItems: o,
|
|
4528
|
+
loginButtonText: a,
|
|
4529
|
+
showMobileMenu: n
|
|
4530
|
+
}), w = g.variant === "modern", z = g.variant === "luxury";
|
|
4515
4531
|
return /* @__PURE__ */ p(se, { children: [
|
|
4516
4532
|
/* @__PURE__ */ p(
|
|
4517
4533
|
"header",
|
|
4518
4534
|
{
|
|
4519
|
-
ref:
|
|
4520
|
-
id:
|
|
4535
|
+
ref: M,
|
|
4536
|
+
id: d,
|
|
4521
4537
|
role: "banner",
|
|
4522
|
-
"aria-label":
|
|
4538
|
+
"aria-label": h || "Site header",
|
|
4523
4539
|
className: f(
|
|
4524
|
-
"flex items-center justify-between
|
|
4525
|
-
|
|
4540
|
+
"flex items-center justify-between relative w-full",
|
|
4541
|
+
// Luxury: Minimal padding, Modern/Minimal: Standard compact padding
|
|
4542
|
+
z ? "px-6 py-4" : "px-6 py-1",
|
|
4543
|
+
s
|
|
4526
4544
|
),
|
|
4527
4545
|
children: [
|
|
4528
|
-
|
|
4546
|
+
g.logo && /* @__PURE__ */ r("div", { className: "shrink-0", children: typeof g.logo == "string" ? /* @__PURE__ */ r(
|
|
4529
4547
|
"p",
|
|
4530
4548
|
{
|
|
4531
4549
|
className: f(
|
|
4532
|
-
"font-black
|
|
4533
|
-
|
|
4550
|
+
"font-black tracking-wider leading-normal",
|
|
4551
|
+
// Luxury: Smaller, uppercase, Modern/Minimal: Larger
|
|
4552
|
+
z ? "text-sm uppercase" : "text-xl",
|
|
4553
|
+
// Variant-default text color (can be overridden)
|
|
4554
|
+
w ? "text-zinc-900" : "text-white",
|
|
4555
|
+
l
|
|
4534
4556
|
),
|
|
4535
|
-
children:
|
|
4557
|
+
children: g.logo
|
|
4536
4558
|
}
|
|
4537
|
-
) :
|
|
4538
|
-
|
|
4559
|
+
) : g.logo }),
|
|
4560
|
+
g.navigationItems.length > 0 && /* @__PURE__ */ r(
|
|
4539
4561
|
"nav",
|
|
4540
4562
|
{
|
|
4541
4563
|
className: f(
|
|
4542
|
-
"hidden md:flex items-center
|
|
4543
|
-
|
|
4564
|
+
"hidden md:flex items-center",
|
|
4565
|
+
// Luxury: Simple spacing, Modern: transparent row, Minimal: pill navigation
|
|
4566
|
+
z ? "gap-8" : w ? "gap-4 bg-transparent border-0 shadow-none" : "gap-4 px-6 py-2 bg-white border border-gray-200 rounded-full shadow-sm",
|
|
4567
|
+
i
|
|
4544
4568
|
),
|
|
4545
4569
|
"aria-label": "Main navigation",
|
|
4546
|
-
children:
|
|
4547
|
-
|
|
4548
|
-
|
|
4570
|
+
children: z ? (
|
|
4571
|
+
// Luxury: Simple text links without dividers
|
|
4572
|
+
g.navigationItems.map((S) => /* @__PURE__ */ r(
|
|
4573
|
+
"a",
|
|
4574
|
+
{
|
|
4575
|
+
href: S.href,
|
|
4576
|
+
className: f(
|
|
4577
|
+
"text-sm font-medium uppercase tracking-wide leading-5 transition-colors",
|
|
4578
|
+
// Default white text (can be overridden)
|
|
4579
|
+
"text-white hover:text-white/80",
|
|
4580
|
+
c
|
|
4581
|
+
),
|
|
4582
|
+
children: S.label
|
|
4583
|
+
},
|
|
4584
|
+
S.id
|
|
4585
|
+
))
|
|
4586
|
+
) : (
|
|
4587
|
+
// Minimal and Modern: text links with dividers
|
|
4588
|
+
g.navigationItems.map((S, P) => /* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: [
|
|
4589
|
+
P > 0 && /* @__PURE__ */ r(
|
|
4590
|
+
"div",
|
|
4591
|
+
{
|
|
4592
|
+
className: "flex items-center justify-center h-6 w-0",
|
|
4593
|
+
"aria-hidden": "true",
|
|
4594
|
+
children: /* @__PURE__ */ r("div", { className: "h-0 w-6 rotate-90", children: /* @__PURE__ */ r("div", { className: "h-px w-full bg-gray-200" }) })
|
|
4595
|
+
}
|
|
4596
|
+
),
|
|
4597
|
+
/* @__PURE__ */ r(
|
|
4598
|
+
"a",
|
|
4599
|
+
{
|
|
4600
|
+
href: S.href,
|
|
4601
|
+
className: f(
|
|
4602
|
+
"text-gray-900 text-sm font-medium leading-5 hover:text-black transition-colors",
|
|
4603
|
+
c
|
|
4604
|
+
),
|
|
4605
|
+
children: S.label
|
|
4606
|
+
}
|
|
4607
|
+
)
|
|
4608
|
+
] }, S.id))
|
|
4609
|
+
)
|
|
4610
|
+
}
|
|
4611
|
+
),
|
|
4612
|
+
/* @__PURE__ */ p(
|
|
4613
|
+
"div",
|
|
4614
|
+
{
|
|
4615
|
+
className: f(
|
|
4616
|
+
"flex items-center shrink-0",
|
|
4617
|
+
z ? "gap-3" : "gap-6 p-4"
|
|
4618
|
+
),
|
|
4619
|
+
children: [
|
|
4620
|
+
/* @__PURE__ */ r(
|
|
4621
|
+
"button",
|
|
4549
4622
|
{
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4623
|
+
type: "button",
|
|
4624
|
+
className: f(
|
|
4625
|
+
"hidden md:flex items-center justify-center px-4 py-2 text-sm font-medium leading-5 transition-colors",
|
|
4626
|
+
// Luxury: simple white button, Modern: dark rectangular CTA, Minimal: white pill
|
|
4627
|
+
z ? "h-10 bg-white text-zinc-900 rounded hover:bg-gray-100" : w ? "h-10 bg-zinc-900 text-white border-0 rounded-md hover:bg-zinc-800" : "h-9 bg-white border border-gray-200 text-zinc-900 rounded-full hover:bg-zinc-200",
|
|
4628
|
+
m
|
|
4629
|
+
),
|
|
4630
|
+
children: g.loginButtonText
|
|
4553
4631
|
}
|
|
4554
4632
|
),
|
|
4555
|
-
/* @__PURE__ */ r(
|
|
4556
|
-
"
|
|
4633
|
+
g.showMobileMenu && /* @__PURE__ */ r(
|
|
4634
|
+
"button",
|
|
4557
4635
|
{
|
|
4558
|
-
|
|
4636
|
+
type: "button",
|
|
4637
|
+
onClick: () => C(!y),
|
|
4638
|
+
"aria-label": y ? "Close menu" : "Open menu",
|
|
4639
|
+
"aria-expanded": y,
|
|
4559
4640
|
className: f(
|
|
4560
|
-
"
|
|
4561
|
-
|
|
4641
|
+
"flex md:hidden items-center justify-center px-3 py-2 bg-white transition-colors",
|
|
4642
|
+
z ? "h-10 w-10 rounded hover:bg-gray-100" : w ? "rounded-xl border border-zinc-200 hover:bg-gray-50" : "rounded-full hover:bg-gray-50",
|
|
4643
|
+
u
|
|
4562
4644
|
),
|
|
4563
|
-
children: w
|
|
4645
|
+
children: y ? /* @__PURE__ */ r(Ye, { className: "h-4 w-4 text-gray-900" }) : /* @__PURE__ */ r(ho, { className: "h-4 w-4 text-gray-900" })
|
|
4564
4646
|
}
|
|
4565
4647
|
)
|
|
4566
|
-
]
|
|
4648
|
+
]
|
|
4567
4649
|
}
|
|
4568
|
-
)
|
|
4569
|
-
/* @__PURE__ */ p("div", { className: "flex items-center gap-6 p-4 shrink-0", children: [
|
|
4570
|
-
/* @__PURE__ */ r(
|
|
4571
|
-
"button",
|
|
4572
|
-
{
|
|
4573
|
-
type: "button",
|
|
4574
|
-
className: f(
|
|
4575
|
-
"hidden md:flex items-center justify-center h-9 px-4 py-2 bg-white border border-gray-200 text-zinc-900 text-sm font-medium leading-5 rounded-full hover:bg-zinc-200 transition-colors",
|
|
4576
|
-
c
|
|
4577
|
-
),
|
|
4578
|
-
children: a
|
|
4579
|
-
}
|
|
4580
|
-
),
|
|
4581
|
-
o && /* @__PURE__ */ r(
|
|
4582
|
-
"button",
|
|
4583
|
-
{
|
|
4584
|
-
type: "button",
|
|
4585
|
-
onClick: () => x(!N),
|
|
4586
|
-
"aria-label": N ? "Close menu" : "Open menu",
|
|
4587
|
-
"aria-expanded": N,
|
|
4588
|
-
className: f(
|
|
4589
|
-
"flex md:hidden items-center justify-center px-3 py-2 bg-white rounded-full hover:bg-gray-50 transition-colors",
|
|
4590
|
-
m
|
|
4591
|
-
),
|
|
4592
|
-
children: N ? /* @__PURE__ */ r(Ye, { className: "h-4 w-4 text-gray-900" }) : /* @__PURE__ */ r(fa, { className: "h-4 w-4 text-gray-900" })
|
|
4593
|
-
}
|
|
4594
|
-
)
|
|
4595
|
-
] })
|
|
4650
|
+
)
|
|
4596
4651
|
]
|
|
4597
4652
|
}
|
|
4598
4653
|
),
|
|
4599
|
-
|
|
4654
|
+
y && g.showMobileMenu && /* @__PURE__ */ p(
|
|
4600
4655
|
"div",
|
|
4601
4656
|
{
|
|
4602
4657
|
className: "fixed inset-0 z-40 md:hidden",
|
|
@@ -4608,7 +4663,7 @@ const wa = we(
|
|
|
4608
4663
|
"div",
|
|
4609
4664
|
{
|
|
4610
4665
|
className: "fixed inset-0 bg-black/50",
|
|
4611
|
-
onClick: () =>
|
|
4666
|
+
onClick: () => C(!1),
|
|
4612
4667
|
"aria-hidden": "true"
|
|
4613
4668
|
}
|
|
4614
4669
|
),
|
|
@@ -4617,29 +4672,29 @@ const wa = we(
|
|
|
4617
4672
|
"button",
|
|
4618
4673
|
{
|
|
4619
4674
|
type: "button",
|
|
4620
|
-
onClick: () =>
|
|
4675
|
+
onClick: () => C(!1),
|
|
4621
4676
|
"aria-label": "Close menu",
|
|
4622
4677
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-zinc-100 text-zinc-900 hover:bg-zinc-200",
|
|
4623
4678
|
children: /* @__PURE__ */ r(Ye, { className: "h-5 w-5" })
|
|
4624
4679
|
}
|
|
4625
4680
|
) }),
|
|
4626
4681
|
/* @__PURE__ */ r("nav", { className: "flex-1 overflow-y-auto px-6 py-4", children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-4", children: [
|
|
4627
|
-
|
|
4682
|
+
g.navigationItems.map((S) => /* @__PURE__ */ r(
|
|
4628
4683
|
"a",
|
|
4629
4684
|
{
|
|
4630
|
-
href:
|
|
4685
|
+
href: S.href,
|
|
4631
4686
|
className: "block text-base font-medium text-zinc-900 hover:text-zinc-600 transition-colors py-2",
|
|
4632
|
-
onClick: () =>
|
|
4633
|
-
children:
|
|
4687
|
+
onClick: () => C(!1),
|
|
4688
|
+
children: S.label
|
|
4634
4689
|
},
|
|
4635
|
-
|
|
4690
|
+
S.id
|
|
4636
4691
|
)),
|
|
4637
4692
|
/* @__PURE__ */ r("div", { className: "mt-4 pt-4 border-t border-zinc-200", children: /* @__PURE__ */ r(
|
|
4638
4693
|
"button",
|
|
4639
4694
|
{
|
|
4640
4695
|
type: "button",
|
|
4641
4696
|
className: "w-full h-12 flex items-center justify-center rounded-full bg-zinc-100 text-zinc-900 font-semibold",
|
|
4642
|
-
children:
|
|
4697
|
+
children: g.loginButtonText
|
|
4643
4698
|
}
|
|
4644
4699
|
) })
|
|
4645
4700
|
] }) })
|
|
@@ -4650,13 +4705,13 @@ const wa = we(
|
|
|
4650
4705
|
] });
|
|
4651
4706
|
}
|
|
4652
4707
|
);
|
|
4653
|
-
|
|
4654
|
-
const
|
|
4708
|
+
No.displayName = "Header";
|
|
4709
|
+
const Co = (e) => ({
|
|
4655
4710
|
content: e.content,
|
|
4656
4711
|
theme: e.theme || {},
|
|
4657
4712
|
template: e.template || "modern",
|
|
4658
4713
|
layout: e.layout || "centered"
|
|
4659
|
-
}),
|
|
4714
|
+
}), Mo = {
|
|
4660
4715
|
center: "object-center",
|
|
4661
4716
|
top: "object-top",
|
|
4662
4717
|
bottom: "object-bottom",
|
|
@@ -4666,12 +4721,12 @@ const ka = (e) => ({
|
|
|
4666
4721
|
"left-bottom": "object-left-bottom",
|
|
4667
4722
|
"right-top": "object-right-top",
|
|
4668
4723
|
"right-bottom": "object-right-bottom"
|
|
4669
|
-
},
|
|
4724
|
+
}, So = we(
|
|
4670
4725
|
({
|
|
4671
4726
|
content: e,
|
|
4672
4727
|
theme: t,
|
|
4673
|
-
template:
|
|
4674
|
-
layout:
|
|
4728
|
+
template: o = "modern",
|
|
4729
|
+
layout: a = "centered",
|
|
4675
4730
|
searchForm: n,
|
|
4676
4731
|
logo: s,
|
|
4677
4732
|
navigation: l,
|
|
@@ -4679,11 +4734,11 @@ const ka = (e) => ({
|
|
|
4679
4734
|
id: c,
|
|
4680
4735
|
"aria-label": m
|
|
4681
4736
|
}, u) => {
|
|
4682
|
-
const d =
|
|
4737
|
+
const d = Co({
|
|
4683
4738
|
content: e,
|
|
4684
4739
|
theme: t,
|
|
4685
|
-
template:
|
|
4686
|
-
layout:
|
|
4740
|
+
template: o,
|
|
4741
|
+
layout: a
|
|
4687
4742
|
}), h = d.template === "modern" || d.template === "luxury";
|
|
4688
4743
|
return /* @__PURE__ */ r(
|
|
4689
4744
|
"section",
|
|
@@ -4716,7 +4771,7 @@ const ka = (e) => ({
|
|
|
4716
4771
|
alt: "",
|
|
4717
4772
|
className: f(
|
|
4718
4773
|
"h-full w-full object-cover",
|
|
4719
|
-
d.theme.backgroundPosition &&
|
|
4774
|
+
d.theme.backgroundPosition && Mo[d.theme.backgroundPosition] || "object-center"
|
|
4720
4775
|
),
|
|
4721
4776
|
loading: "eager",
|
|
4722
4777
|
decoding: "async"
|
|
@@ -4731,16 +4786,16 @@ const ka = (e) => ({
|
|
|
4731
4786
|
/* @__PURE__ */ r("h1", { className: "text-4xl font-bold tracking-wide text-white sm:text-5xl lg:text-6xl", children: d.content.title }),
|
|
4732
4787
|
d.content.subtitle && /* @__PURE__ */ r("p", { className: "mt-4 text-xl text-white/90 sm:text-2xl", children: d.content.subtitle })
|
|
4733
4788
|
] }),
|
|
4734
|
-
d.template === "minimal" && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "mb-16", children: /* @__PURE__ */ r("div", { className: "mx-auto grid max-w-4xl grid-cols-1 gap-8 md:grid-cols-3", children: d.content.metrics.map((
|
|
4735
|
-
/* @__PURE__ */ r("div", { className: "mb-2 text-3xl font-bold text-white md:text-4xl", children:
|
|
4736
|
-
/* @__PURE__ */ r("div", { className: "text-sm text-white/80 md:text-base", children:
|
|
4737
|
-
] },
|
|
4789
|
+
d.template === "minimal" && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "mb-16", children: /* @__PURE__ */ r("div", { className: "mx-auto grid max-w-4xl grid-cols-1 gap-8 md:grid-cols-3", children: d.content.metrics.map((M, y) => /* @__PURE__ */ p("div", { className: "text-center", children: [
|
|
4790
|
+
/* @__PURE__ */ r("div", { className: "mb-2 text-3xl font-bold text-white md:text-4xl", children: M.value }),
|
|
4791
|
+
/* @__PURE__ */ r("div", { className: "text-sm text-white/80 md:text-base", children: M.label })
|
|
4792
|
+
] }, y)) }) }),
|
|
4738
4793
|
n && /* @__PURE__ */ r("div", { className: "relative z-20 mx-auto w-full max-w-4xl", children: n })
|
|
4739
4794
|
] }) }),
|
|
4740
|
-
h && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "absolute bottom-0 right-0 z-10 hidden md:block", children: /* @__PURE__ */ r("div", { className: "flex h-20 w-full max-w-4xl items-center gap-6 rounded-tl-2xl bg-white px-8 py-4 text-zinc-900 md:h-24 md:gap-12 md:px-12 md:py-6", children: d.content.metrics.map((
|
|
4741
|
-
/* @__PURE__ */ r("div", { className: "text-xl font-semibold leading-tight md:text-2xl", children:
|
|
4742
|
-
/* @__PURE__ */ r("div", { className: "text-xs leading-tight text-zinc-600 md:text-sm", children:
|
|
4743
|
-
] },
|
|
4795
|
+
h && d.content.metrics && d.content.metrics.length > 0 && /* @__PURE__ */ r("div", { className: "absolute bottom-0 right-0 z-10 hidden md:block", children: /* @__PURE__ */ r("div", { className: "flex h-20 w-full max-w-4xl items-center gap-6 rounded-tl-2xl bg-white px-8 py-4 text-zinc-900 md:h-24 md:gap-12 md:px-12 md:py-6", children: d.content.metrics.map((M, y) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
|
|
4796
|
+
/* @__PURE__ */ r("div", { className: "text-xl font-semibold leading-tight md:text-2xl", children: M.value }),
|
|
4797
|
+
/* @__PURE__ */ r("div", { className: "text-xs leading-tight text-zinc-600 md:text-sm", children: M.label })
|
|
4798
|
+
] }, y)) }) }),
|
|
4744
4799
|
d.template === "minimal" && /* @__PURE__ */ r("div", { className: "relative z-10 pb-8", children: /* @__PURE__ */ r("div", { className: "flex justify-center", children: /* @__PURE__ */ r(
|
|
4745
4800
|
"div",
|
|
4746
4801
|
{
|
|
@@ -4755,13 +4810,13 @@ const ka = (e) => ({
|
|
|
4755
4810
|
);
|
|
4756
4811
|
}
|
|
4757
4812
|
);
|
|
4758
|
-
|
|
4759
|
-
const
|
|
4813
|
+
So.displayName = "HeroBanner";
|
|
4814
|
+
const Mt = [
|
|
4760
4815
|
{ value: "15-years", label: "15 años fijos", years: 15 },
|
|
4761
4816
|
{ value: "20-years", label: "20 años fijos", years: 20 },
|
|
4762
4817
|
{ value: "30-years", label: "30 años fijos", years: 30 },
|
|
4763
4818
|
{ value: "40-years", label: "40 años fijos", years: 40 }
|
|
4764
|
-
],
|
|
4819
|
+
], To = Mt.map(
|
|
4765
4820
|
(e) => ({
|
|
4766
4821
|
value: e.value,
|
|
4767
4822
|
label: e.label
|
|
@@ -4778,64 +4833,64 @@ const St = [
|
|
|
4778
4833
|
// Light blue
|
|
4779
4834
|
hoaFees: "#7fc9e3"
|
|
4780
4835
|
// Very light blue
|
|
4781
|
-
},
|
|
4836
|
+
}, zo = v.forwardRef(
|
|
4782
4837
|
({
|
|
4783
4838
|
initialPropertyPrice: e = ve.propertyPrice,
|
|
4784
4839
|
initialDownPayment: t = ve.downPayment,
|
|
4785
|
-
initialLoanProgram:
|
|
4786
|
-
initialInterestRate:
|
|
4840
|
+
initialLoanProgram: o = ve.loanProgram,
|
|
4841
|
+
initialInterestRate: a = ve.interestRate,
|
|
4787
4842
|
showPropertyTax: n = !1,
|
|
4788
4843
|
showHoaFees: s = !1,
|
|
4789
4844
|
className: l,
|
|
4790
4845
|
onCalculationChange: i
|
|
4791
4846
|
}, c) => {
|
|
4792
|
-
const [m, u] =
|
|
4793
|
-
const
|
|
4794
|
-
(q) => q.value ===
|
|
4847
|
+
const [m, u] = v.useState(e), [d, h] = v.useState(t), [M, y] = v.useState(o), [C, g] = v.useState(a), [w, z] = v.useState(0), [S, P] = v.useState(0), I = v.useMemo(() => {
|
|
4848
|
+
const k = Mt.find(
|
|
4849
|
+
(q) => q.value === M
|
|
4795
4850
|
)?.years || 30;
|
|
4796
4851
|
return jt({
|
|
4797
4852
|
propertyPrice: m,
|
|
4798
4853
|
downPayment: d,
|
|
4799
|
-
loanTerm:
|
|
4800
|
-
interestRate:
|
|
4801
|
-
propertyTax: n ?
|
|
4802
|
-
hoaFees: s ?
|
|
4854
|
+
loanTerm: k,
|
|
4855
|
+
interestRate: C,
|
|
4856
|
+
propertyTax: n ? w : void 0,
|
|
4857
|
+
hoaFees: s ? S : void 0
|
|
4803
4858
|
});
|
|
4804
4859
|
}, [
|
|
4805
4860
|
m,
|
|
4806
4861
|
d,
|
|
4807
|
-
|
|
4808
|
-
w,
|
|
4862
|
+
M,
|
|
4809
4863
|
C,
|
|
4810
|
-
|
|
4864
|
+
w,
|
|
4865
|
+
S,
|
|
4811
4866
|
n,
|
|
4812
4867
|
s
|
|
4813
4868
|
]);
|
|
4814
|
-
|
|
4815
|
-
i?.(
|
|
4816
|
-
}, [
|
|
4817
|
-
const V =
|
|
4818
|
-
const
|
|
4869
|
+
v.useEffect(() => {
|
|
4870
|
+
i?.(I);
|
|
4871
|
+
}, [I, i]);
|
|
4872
|
+
const V = v.useMemo(() => {
|
|
4873
|
+
const E = [
|
|
4819
4874
|
{
|
|
4820
4875
|
label: "Principal e Intereses",
|
|
4821
|
-
value:
|
|
4876
|
+
value: I.breakdown.principalAndInterest,
|
|
4822
4877
|
color: Te.principalAndInterest
|
|
4823
4878
|
}
|
|
4824
4879
|
];
|
|
4825
|
-
return n &&
|
|
4880
|
+
return n && I.breakdown.propertyTax > 0 && E.push({
|
|
4826
4881
|
label: "Impuesto Predial",
|
|
4827
|
-
value:
|
|
4882
|
+
value: I.breakdown.propertyTax,
|
|
4828
4883
|
color: Te.propertyTax
|
|
4829
|
-
}), s &&
|
|
4884
|
+
}), s && I.breakdown.hoaFees > 0 && E.push({
|
|
4830
4885
|
label: "Cuota HOA",
|
|
4831
|
-
value:
|
|
4886
|
+
value: I.breakdown.hoaFees,
|
|
4832
4887
|
color: Te.hoaFees
|
|
4833
|
-
}),
|
|
4834
|
-
}, [
|
|
4888
|
+
}), E;
|
|
4889
|
+
}, [I, n, s]);
|
|
4835
4890
|
return /* @__PURE__ */ r("div", { ref: c, className: f("w-full", l), children: /* @__PURE__ */ r(pt, { padding: "lg", className: "w-full", children: /* @__PURE__ */ p("div", { className: "space-y-6", children: [
|
|
4836
4891
|
/* @__PURE__ */ p("div", { children: [
|
|
4837
|
-
/* @__PURE__ */ r(
|
|
4838
|
-
/* @__PURE__ */ r(
|
|
4892
|
+
/* @__PURE__ */ r(R, { variant: "h2", className: "mb-2", children: "Calculadora de Hipotecas" }),
|
|
4893
|
+
/* @__PURE__ */ r(R, { 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." })
|
|
4839
4894
|
] }),
|
|
4840
4895
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
4841
4896
|
/* @__PURE__ */ p("div", { className: "space-y-4", children: [
|
|
@@ -4845,7 +4900,7 @@ const St = [
|
|
|
4845
4900
|
label: "Precio de la propiedad",
|
|
4846
4901
|
type: "number",
|
|
4847
4902
|
value: m,
|
|
4848
|
-
onChange: (
|
|
4903
|
+
onChange: (E) => u(Number(E.target.value)),
|
|
4849
4904
|
suffix: "MXN",
|
|
4850
4905
|
min: 0,
|
|
4851
4906
|
step: 1e4
|
|
@@ -4857,7 +4912,7 @@ const St = [
|
|
|
4857
4912
|
label: "Enganche",
|
|
4858
4913
|
type: "number",
|
|
4859
4914
|
value: d,
|
|
4860
|
-
onChange: (
|
|
4915
|
+
onChange: (E) => h(Number(E.target.value)),
|
|
4861
4916
|
suffix: "MXN",
|
|
4862
4917
|
min: 0,
|
|
4863
4918
|
step: 1e4
|
|
@@ -4868,9 +4923,9 @@ const St = [
|
|
|
4868
4923
|
Ve,
|
|
4869
4924
|
{
|
|
4870
4925
|
label: "Programa de préstamos",
|
|
4871
|
-
value:
|
|
4872
|
-
onChange: (
|
|
4873
|
-
options:
|
|
4926
|
+
value: M,
|
|
4927
|
+
onChange: (E) => y(E.target.value),
|
|
4928
|
+
options: To
|
|
4874
4929
|
}
|
|
4875
4930
|
),
|
|
4876
4931
|
/* @__PURE__ */ r(
|
|
@@ -4878,8 +4933,8 @@ const St = [
|
|
|
4878
4933
|
{
|
|
4879
4934
|
label: "Tasa de interés",
|
|
4880
4935
|
type: "number",
|
|
4881
|
-
value:
|
|
4882
|
-
onChange: (
|
|
4936
|
+
value: C,
|
|
4937
|
+
onChange: (E) => g(Number(E.target.value)),
|
|
4883
4938
|
suffix: "%",
|
|
4884
4939
|
min: 0,
|
|
4885
4940
|
max: 100,
|
|
@@ -4892,8 +4947,8 @@ const St = [
|
|
|
4892
4947
|
{
|
|
4893
4948
|
label: "Impuesto predial mensual",
|
|
4894
4949
|
type: "number",
|
|
4895
|
-
value:
|
|
4896
|
-
onChange: (
|
|
4950
|
+
value: w,
|
|
4951
|
+
onChange: (E) => z(Number(E.target.value)),
|
|
4897
4952
|
suffix: "MXN",
|
|
4898
4953
|
min: 0,
|
|
4899
4954
|
step: 100
|
|
@@ -4904,8 +4959,8 @@ const St = [
|
|
|
4904
4959
|
{
|
|
4905
4960
|
label: "Cuota HOA mensual",
|
|
4906
4961
|
type: "number",
|
|
4907
|
-
value:
|
|
4908
|
-
onChange: (
|
|
4962
|
+
value: S,
|
|
4963
|
+
onChange: (E) => P(Number(E.target.value)),
|
|
4909
4964
|
suffix: "MXN",
|
|
4910
4965
|
min: 0,
|
|
4911
4966
|
step: 100
|
|
@@ -4920,8 +4975,8 @@ const St = [
|
|
|
4920
4975
|
size: 320,
|
|
4921
4976
|
innerRadiusRatio: 0.65,
|
|
4922
4977
|
centerContent: /* @__PURE__ */ p("div", { className: "text-center", children: [
|
|
4923
|
-
/* @__PURE__ */ r(
|
|
4924
|
-
/* @__PURE__ */ r(
|
|
4978
|
+
/* @__PURE__ */ r(R, { variant: "h1", className: "font-bold mb-1", children: me(I.totalMonthlyPayment) }),
|
|
4979
|
+
/* @__PURE__ */ r(R, { variant: "body-sm", color: "secondary", children: "Tu Pago" })
|
|
4925
4980
|
] }),
|
|
4926
4981
|
showLegend: !0,
|
|
4927
4982
|
legendPosition: "bottom"
|
|
@@ -4929,39 +4984,39 @@ const St = [
|
|
|
4929
4984
|
),
|
|
4930
4985
|
/* @__PURE__ */ p("div", { className: "mt-6 text-center space-y-1", children: [
|
|
4931
4986
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center gap-2 text-sm text-success", children: [
|
|
4932
|
-
/* @__PURE__ */ r(
|
|
4987
|
+
/* @__PURE__ */ r(xo, { className: "h-4 w-4" }),
|
|
4933
4988
|
/* @__PURE__ */ r("span", { className: "font-medium", children: "Trending up by 5.2% this month" })
|
|
4934
4989
|
] }),
|
|
4935
|
-
/* @__PURE__ */ r(
|
|
4990
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", children: "Showing total visitors for the last 6 months" })
|
|
4936
4991
|
] })
|
|
4937
4992
|
] })
|
|
4938
4993
|
] }),
|
|
4939
4994
|
/* @__PURE__ */ p("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 pt-4 border-t", children: [
|
|
4940
4995
|
/* @__PURE__ */ p("div", { children: [
|
|
4941
|
-
/* @__PURE__ */ r(
|
|
4942
|
-
/* @__PURE__ */ r(
|
|
4996
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Monto del préstamo" }),
|
|
4997
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(I.loanPrincipal) })
|
|
4943
4998
|
] }),
|
|
4944
4999
|
/* @__PURE__ */ p("div", { children: [
|
|
4945
|
-
/* @__PURE__ */ r(
|
|
4946
|
-
/* @__PURE__ */ r(
|
|
5000
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Pago mensual" }),
|
|
5001
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(I.monthlyPayment) })
|
|
4947
5002
|
] }),
|
|
4948
5003
|
/* @__PURE__ */ p("div", { children: [
|
|
4949
|
-
/* @__PURE__ */ r(
|
|
4950
|
-
/* @__PURE__ */ r(
|
|
5004
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Interés total" }),
|
|
5005
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(I.totalInterest) })
|
|
4951
5006
|
] }),
|
|
4952
5007
|
/* @__PURE__ */ p("div", { children: [
|
|
4953
|
-
/* @__PURE__ */ r(
|
|
4954
|
-
/* @__PURE__ */ r(
|
|
5008
|
+
/* @__PURE__ */ r(R, { variant: "caption", color: "secondary", className: "mb-1", children: "Total a pagar" }),
|
|
5009
|
+
/* @__PURE__ */ r(R, { variant: "body", weight: "semibold", children: me(I.totalAmount) })
|
|
4955
5010
|
] })
|
|
4956
5011
|
] })
|
|
4957
5012
|
] }) }) });
|
|
4958
5013
|
}
|
|
4959
5014
|
);
|
|
4960
|
-
|
|
4961
|
-
const
|
|
5015
|
+
zo.displayName = "MortgageCalculator";
|
|
5016
|
+
const Po = (e, t, o) => {
|
|
4962
5017
|
if (t)
|
|
4963
5018
|
return "text-white";
|
|
4964
|
-
if (
|
|
5019
|
+
if (o)
|
|
4965
5020
|
switch (e.type) {
|
|
4966
5021
|
case "Venta":
|
|
4967
5022
|
return "bg-stone-950 text-white";
|
|
@@ -4974,7 +5029,7 @@ const Ta = (e, t, a) => {
|
|
|
4974
5029
|
default:
|
|
4975
5030
|
return "bg-stone-950 text-white";
|
|
4976
5031
|
}
|
|
4977
|
-
switch (e.variant ||
|
|
5032
|
+
switch (e.variant || Io(e.type)) {
|
|
4978
5033
|
case "primary":
|
|
4979
5034
|
return "bg-primary text-primary-foreground";
|
|
4980
5035
|
case "secondary":
|
|
@@ -4990,7 +5045,7 @@ const Ta = (e, t, a) => {
|
|
|
4990
5045
|
default:
|
|
4991
5046
|
return "bg-secondary text-secondary-foreground";
|
|
4992
5047
|
}
|
|
4993
|
-
},
|
|
5048
|
+
}, Io = (e) => {
|
|
4994
5049
|
switch (e) {
|
|
4995
5050
|
case "Venta":
|
|
4996
5051
|
return "primary";
|
|
@@ -5003,101 +5058,101 @@ const Ta = (e, t, a) => {
|
|
|
5003
5058
|
default:
|
|
5004
5059
|
return "secondary";
|
|
5005
5060
|
}
|
|
5006
|
-
},
|
|
5061
|
+
}, na = ({
|
|
5007
5062
|
property: e,
|
|
5008
5063
|
className: t,
|
|
5009
|
-
onLike:
|
|
5010
|
-
onImageClick:
|
|
5064
|
+
onLike: o,
|
|
5065
|
+
onImageClick: a,
|
|
5011
5066
|
showLikeButton: n = !0,
|
|
5012
5067
|
variant: s = "default",
|
|
5013
5068
|
badgeColors: l
|
|
5014
5069
|
}) => {
|
|
5015
|
-
const [i, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1),
|
|
5070
|
+
const [i, c] = ee(0), [m, u] = ee(!1), [d, h] = ee(!1), M = (_) => {
|
|
5016
5071
|
_.preventDefault(), _.stopPropagation();
|
|
5017
5072
|
const F = !m;
|
|
5018
|
-
u(F),
|
|
5019
|
-
},
|
|
5020
|
-
_.preventDefault(), _.stopPropagation(),
|
|
5021
|
-
},
|
|
5073
|
+
u(F), o?.(e.id, F);
|
|
5074
|
+
}, y = (_) => {
|
|
5075
|
+
_.preventDefault(), _.stopPropagation(), a?.(i, e.id);
|
|
5076
|
+
}, C = (_, F) => !_ || !F ? "Price not available" : `$${_.toLocaleString()} ${F}`, g = s === "compact", w = s === "minimal", z = f(
|
|
5022
5077
|
"relative overflow-hidden bg-card transition-all duration-300 ease-out cursor-pointer",
|
|
5023
|
-
|
|
5078
|
+
g ? "rounded-xl hover:shadow-lg border px-4 shadow-md" : w ? "rounded-2xl w-[454px] flex flex-col gap-4" : "rounded-2xl hover:-translate-y-1 hover:shadow-xl shadow-md",
|
|
5024
5079
|
t
|
|
5025
|
-
),
|
|
5080
|
+
), S = f(
|
|
5026
5081
|
"relative overflow-hidden",
|
|
5027
|
-
|
|
5082
|
+
g ? "rounded-xl px-4 shadow-md" : w ? "rounded-2xl" : ""
|
|
5028
5083
|
), P = f(
|
|
5029
5084
|
"w-full h-full object-cover",
|
|
5030
|
-
|
|
5031
|
-
),
|
|
5085
|
+
g ? "" : w ? "rounded-2xl" : "transition-transform duration-300 hover:scale-105"
|
|
5086
|
+
), I = f(
|
|
5032
5087
|
"absolute z-10 flex flex-wrap gap-2",
|
|
5033
|
-
|
|
5088
|
+
g ? "top-3 left-3" : "top-4 left-4"
|
|
5034
5089
|
), V = f(
|
|
5035
5090
|
"font-semibold",
|
|
5036
|
-
|
|
5037
|
-
),
|
|
5091
|
+
g ? "rounded-full px-3 py-1 text-xs" : w ? "rounded-full px-3 h-7 flex items-center justify-center text-base" : "px-2 py-1 rounded-lg font-medium uppercase tracking-wide text-xs"
|
|
5092
|
+
), E = f(
|
|
5038
5093
|
"absolute z-10 cursor-pointer transition-all duration-200",
|
|
5039
|
-
|
|
5040
|
-
),
|
|
5094
|
+
g ? "top-3 right-3 p-1 shadow-md rounded-full" : w ? "top-4 right-4 w-7 h-7 flex items-center justify-center hover:scale-105" : "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 rounded-full hover:bg-background hover:scale-105"
|
|
5095
|
+
), k = f(
|
|
5041
5096
|
"absolute left-1/2 -translate-x-1/2 flex z-10",
|
|
5042
|
-
|
|
5097
|
+
w ? "bottom-4 gap-2 p-4" : "bottom-4 gap-1"
|
|
5043
5098
|
), L = f(
|
|
5044
5099
|
"w-2 h-2 rounded-full border-none cursor-pointer transition-all duration-200 hover:scale-120"
|
|
5045
5100
|
), q = f(
|
|
5046
|
-
|
|
5101
|
+
g ? "p-2" : w ? "flex flex-col gap-2" : "p-6"
|
|
5047
5102
|
), re = f(
|
|
5048
5103
|
"font-semibold text-foreground line-clamp-2 leading-tight",
|
|
5049
|
-
|
|
5104
|
+
g ? "text-base mb-2" : w ? "text-base" : "text-lg font-bold mb-2"
|
|
5050
5105
|
), X = f(
|
|
5051
5106
|
"font-bold",
|
|
5052
|
-
|
|
5053
|
-
),
|
|
5107
|
+
g ? "text-lg text-primary mb-2" : w ? "text-lg text-foreground" : "text-xl text-primary mb-2"
|
|
5108
|
+
), oe = f(
|
|
5054
5109
|
"text-muted-foreground",
|
|
5055
|
-
|
|
5110
|
+
g ? "text-sm flex items-center gap-1 mb-4" : w ? "text-base" : "text-base mb-4"
|
|
5056
5111
|
), Q = f(
|
|
5057
5112
|
"flex items-center",
|
|
5058
|
-
|
|
5059
|
-
),
|
|
5113
|
+
g ? "justify-between mt-3 mb-4" : w ? "gap-3" : "gap-4 mb-4"
|
|
5114
|
+
), B = f(
|
|
5060
5115
|
"flex items-center gap-1 text-muted-foreground",
|
|
5061
5116
|
"text-sm"
|
|
5062
5117
|
), D = f(
|
|
5063
5118
|
"text-sm text-muted-foreground line-clamp-2",
|
|
5064
|
-
|
|
5065
|
-
),
|
|
5066
|
-
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(
|
|
5119
|
+
g ? "mt-2" : ""
|
|
5120
|
+
), N = !(e.images && e.images.length > 0) || d, pe = () => /* @__PURE__ */ p("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: [
|
|
5121
|
+
/* @__PURE__ */ r("div", { className: "rounded-full bg-primary/10 p-6", children: /* @__PURE__ */ r(io, { size: g ? 32 : 48, className: "text-primary/40" }) }),
|
|
5067
5122
|
/* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children: "No image available" })
|
|
5068
|
-
] }), de = /* @__PURE__ */ p("div", { className:
|
|
5123
|
+
] }), de = /* @__PURE__ */ p("div", { className: z, children: [
|
|
5069
5124
|
/* @__PURE__ */ p(
|
|
5070
5125
|
"div",
|
|
5071
5126
|
{
|
|
5072
5127
|
className: f(
|
|
5073
|
-
|
|
5074
|
-
|
|
5128
|
+
S,
|
|
5129
|
+
g ? "h-52" : w ? "h-[481px]" : "aspect-[4/3]"
|
|
5075
5130
|
),
|
|
5076
5131
|
children: [
|
|
5077
|
-
|
|
5132
|
+
N ? /* @__PURE__ */ r(pe, {}) : /* @__PURE__ */ p("div", { className: "relative w-full h-full", "aria-hidden": "true", children: [
|
|
5078
5133
|
/* @__PURE__ */ r(
|
|
5079
5134
|
"img",
|
|
5080
5135
|
{
|
|
5081
5136
|
src: e.images[i],
|
|
5082
5137
|
alt: e.title,
|
|
5083
5138
|
className: P,
|
|
5084
|
-
onClick:
|
|
5139
|
+
onClick: a ? y : void 0,
|
|
5085
5140
|
onError: () => h(!0)
|
|
5086
5141
|
}
|
|
5087
5142
|
),
|
|
5088
5143
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-black/40 pointer-events-none rounded-2xl" })
|
|
5089
5144
|
] }),
|
|
5090
|
-
/* @__PURE__ */ r("div", { className:
|
|
5145
|
+
/* @__PURE__ */ r("div", { className: I, children: e.transactionTypes.map((_, F) => {
|
|
5091
5146
|
const j = l?.[_.type];
|
|
5092
5147
|
return /* @__PURE__ */ r(
|
|
5093
5148
|
"span",
|
|
5094
5149
|
{
|
|
5095
5150
|
className: f(
|
|
5096
5151
|
V,
|
|
5097
|
-
|
|
5152
|
+
Po(
|
|
5098
5153
|
_,
|
|
5099
5154
|
j,
|
|
5100
|
-
|
|
5155
|
+
w
|
|
5101
5156
|
)
|
|
5102
5157
|
),
|
|
5103
5158
|
style: j ? { backgroundColor: j } : void 0,
|
|
@@ -5109,10 +5164,10 @@ const Ta = (e, t, a) => {
|
|
|
5109
5164
|
n && /* @__PURE__ */ r(
|
|
5110
5165
|
"button",
|
|
5111
5166
|
{
|
|
5112
|
-
onClick:
|
|
5113
|
-
className:
|
|
5167
|
+
onClick: M,
|
|
5168
|
+
className: E,
|
|
5114
5169
|
"aria-label": m ? "Unlike property" : "Like property",
|
|
5115
|
-
children:
|
|
5170
|
+
children: g ? /* @__PURE__ */ r(
|
|
5116
5171
|
"svg",
|
|
5117
5172
|
{
|
|
5118
5173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5131,17 +5186,17 @@ const Ta = (e, t, a) => {
|
|
|
5131
5186
|
)
|
|
5132
5187
|
}
|
|
5133
5188
|
) : /* @__PURE__ */ r(
|
|
5134
|
-
|
|
5189
|
+
so,
|
|
5135
5190
|
{
|
|
5136
5191
|
size: 20,
|
|
5137
5192
|
fill: m ? "currentColor" : "none",
|
|
5138
|
-
className:
|
|
5139
|
-
strokeWidth:
|
|
5193
|
+
className: w ? "text-white" : m ? "text-destructive" : "",
|
|
5194
|
+
strokeWidth: w ? 1.5 : 2
|
|
5140
5195
|
}
|
|
5141
5196
|
)
|
|
5142
5197
|
}
|
|
5143
5198
|
),
|
|
5144
|
-
!
|
|
5199
|
+
!g && !N && e.images.length > 1 && /* @__PURE__ */ r("div", { className: k, children: e.images.map((_, F) => /* @__PURE__ */ r(
|
|
5145
5200
|
"button",
|
|
5146
5201
|
{
|
|
5147
5202
|
className: f(
|
|
@@ -5161,28 +5216,28 @@ const Ta = (e, t, a) => {
|
|
|
5161
5216
|
),
|
|
5162
5217
|
/* @__PURE__ */ p("div", { className: q, children: [
|
|
5163
5218
|
/* @__PURE__ */ r("h3", { className: re, children: e.title }),
|
|
5164
|
-
/* @__PURE__ */ r("p", { className: X, children:
|
|
5165
|
-
/* @__PURE__ */ p("p", { className:
|
|
5166
|
-
|
|
5219
|
+
/* @__PURE__ */ r("p", { className: X, children: C(e.price?.amount, e.price?.currency) }),
|
|
5220
|
+
/* @__PURE__ */ p("p", { className: oe, children: [
|
|
5221
|
+
g && /* @__PURE__ */ r(mo, { size: 14 }),
|
|
5167
5222
|
e.location.city,
|
|
5168
5223
|
", ",
|
|
5169
5224
|
e.location.state
|
|
5170
5225
|
] }),
|
|
5171
5226
|
/* @__PURE__ */ p("div", { className: Q, children: [
|
|
5172
|
-
/* @__PURE__ */ p("div", { className:
|
|
5173
|
-
/* @__PURE__ */ r(Qr, { size:
|
|
5227
|
+
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5228
|
+
/* @__PURE__ */ r(Qr, { size: w ? 20 : 16 }),
|
|
5174
5229
|
/* @__PURE__ */ r("span", { children: e.features.bedrooms })
|
|
5175
5230
|
] }),
|
|
5176
|
-
/* @__PURE__ */ p("div", { className:
|
|
5177
|
-
/* @__PURE__ */ r(Kr, { size:
|
|
5231
|
+
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5232
|
+
/* @__PURE__ */ r(Kr, { size: w ? 20 : 16 }),
|
|
5178
5233
|
/* @__PURE__ */ r("span", { children: e.features.bathrooms })
|
|
5179
5234
|
] }),
|
|
5180
|
-
/* @__PURE__ */ p("div", { className:
|
|
5181
|
-
/* @__PURE__ */ r(
|
|
5235
|
+
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5236
|
+
/* @__PURE__ */ r(eo, { size: w ? 20 : 16 }),
|
|
5182
5237
|
/* @__PURE__ */ r("span", { children: e.features.parking })
|
|
5183
5238
|
] }),
|
|
5184
|
-
/* @__PURE__ */ p("div", { className:
|
|
5185
|
-
/* @__PURE__ */ r(
|
|
5239
|
+
/* @__PURE__ */ p("div", { className: B, children: [
|
|
5240
|
+
/* @__PURE__ */ r(po, { size: w ? 20 : 16 }),
|
|
5186
5241
|
/* @__PURE__ */ p("span", { children: [
|
|
5187
5242
|
e.features.area,
|
|
5188
5243
|
" m²"
|
|
@@ -5193,12 +5248,12 @@ const Ta = (e, t, a) => {
|
|
|
5193
5248
|
] })
|
|
5194
5249
|
] });
|
|
5195
5250
|
return e.href ? /* @__PURE__ */ r("a", { href: e.href, className: "no-underline text-inherit", children: de }) : de;
|
|
5196
|
-
},
|
|
5251
|
+
}, Eo = Ae.forwardRef(
|
|
5197
5252
|
({
|
|
5198
5253
|
images: e,
|
|
5199
5254
|
transactionType: t,
|
|
5200
|
-
totalPhotos:
|
|
5201
|
-
onViewAllClick:
|
|
5255
|
+
totalPhotos: o,
|
|
5256
|
+
onViewAllClick: a,
|
|
5202
5257
|
onImageClick: n,
|
|
5203
5258
|
className: s
|
|
5204
5259
|
}, l) => {
|
|
@@ -5260,18 +5315,18 @@ const Ta = (e, t, a) => {
|
|
|
5260
5315
|
onClick: () => c(4)
|
|
5261
5316
|
}
|
|
5262
5317
|
),
|
|
5263
|
-
|
|
5318
|
+
o && o > 5 && /* @__PURE__ */ r("div", { className: "absolute bottom-4 right-4", children: /* @__PURE__ */ p(
|
|
5264
5319
|
"button",
|
|
5265
5320
|
{
|
|
5266
5321
|
onClick: (m) => {
|
|
5267
|
-
m.stopPropagation(),
|
|
5322
|
+
m.stopPropagation(), a?.();
|
|
5268
5323
|
},
|
|
5269
5324
|
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",
|
|
5270
5325
|
children: [
|
|
5271
|
-
/* @__PURE__ */ r(
|
|
5326
|
+
/* @__PURE__ */ r(ao, { className: "w-4 h-4 text-foreground" }),
|
|
5272
5327
|
/* @__PURE__ */ p("span", { className: "text-sm font-medium text-foreground", children: [
|
|
5273
5328
|
"Ver las ",
|
|
5274
|
-
|
|
5329
|
+
o,
|
|
5275
5330
|
" fotos"
|
|
5276
5331
|
] })
|
|
5277
5332
|
]
|
|
@@ -5283,27 +5338,27 @@ const Ta = (e, t, a) => {
|
|
|
5283
5338
|
);
|
|
5284
5339
|
}
|
|
5285
5340
|
);
|
|
5286
|
-
|
|
5287
|
-
function
|
|
5341
|
+
Eo.displayName = "PropertyGallery";
|
|
5342
|
+
function Ro({
|
|
5288
5343
|
onSubmit: e,
|
|
5289
5344
|
defaultValues: t,
|
|
5290
|
-
propertyTypeOptions:
|
|
5291
|
-
transactionTypeOptions:
|
|
5345
|
+
propertyTypeOptions: o,
|
|
5346
|
+
transactionTypeOptions: a,
|
|
5292
5347
|
locationOptions: n
|
|
5293
5348
|
}) {
|
|
5294
|
-
const s =
|
|
5349
|
+
const s = v.useMemo(
|
|
5295
5350
|
() => ({
|
|
5296
|
-
propertyType: t?.propertyType ||
|
|
5297
|
-
transactionType: t?.transactionType ||
|
|
5351
|
+
propertyType: t?.propertyType || o[0]?.value || "",
|
|
5352
|
+
transactionType: t?.transactionType || a[0]?.value || "",
|
|
5298
5353
|
location: t?.location || n[0]?.value || ""
|
|
5299
5354
|
}),
|
|
5300
5355
|
[
|
|
5301
5356
|
t,
|
|
5302
|
-
a,
|
|
5303
5357
|
o,
|
|
5358
|
+
a,
|
|
5304
5359
|
n
|
|
5305
5360
|
]
|
|
5306
|
-
), [l, i] =
|
|
5361
|
+
), [l, i] = v.useState(s), c = v.useCallback(
|
|
5307
5362
|
(u) => {
|
|
5308
5363
|
i((d) => {
|
|
5309
5364
|
const h = typeof u == "function" ? u(d) : u;
|
|
@@ -5311,7 +5366,7 @@ function Ea({
|
|
|
5311
5366
|
});
|
|
5312
5367
|
},
|
|
5313
5368
|
[]
|
|
5314
|
-
), m =
|
|
5369
|
+
), m = v.useCallback(
|
|
5315
5370
|
(u) => {
|
|
5316
5371
|
u.preventDefault(), e?.({
|
|
5317
5372
|
propertyType: l.propertyType,
|
|
@@ -5325,18 +5380,18 @@ function Ea({
|
|
|
5325
5380
|
formData: l,
|
|
5326
5381
|
setFormData: c,
|
|
5327
5382
|
handleSubmit: m,
|
|
5328
|
-
propertyTypeOptions:
|
|
5329
|
-
transactionTypeOptions:
|
|
5383
|
+
propertyTypeOptions: o,
|
|
5384
|
+
transactionTypeOptions: a,
|
|
5330
5385
|
locationOptions: n
|
|
5331
5386
|
};
|
|
5332
5387
|
}
|
|
5333
5388
|
const _e = ({
|
|
5334
5389
|
variant: e = "pill",
|
|
5335
5390
|
isSubmitting: t,
|
|
5336
|
-
className:
|
|
5391
|
+
className: o
|
|
5337
5392
|
}) => {
|
|
5338
|
-
const
|
|
5339
|
-
return e === "mobile" ? /* @__PURE__ */ p(K, { type: "submit", className: f(n,
|
|
5393
|
+
const a = "relative size-12 rounded-full bg-black text-white transition-all duration-200 hover:bg-black/90 hover:shadow-md flex items-center justify-center", n = "w-full";
|
|
5394
|
+
return e === "mobile" ? /* @__PURE__ */ p(K, { type: "submit", className: f(n, o), children: [
|
|
5340
5395
|
/* @__PURE__ */ r(je, { className: "h-4 w-4" }),
|
|
5341
5396
|
t ? "Searching..." : "Search"
|
|
5342
5397
|
] }) : /* @__PURE__ */ r(
|
|
@@ -5346,7 +5401,7 @@ const _e = ({
|
|
|
5346
5401
|
size: "icon",
|
|
5347
5402
|
variant: "ghost",
|
|
5348
5403
|
"aria-label": t ? "Searching..." : "Search properties",
|
|
5349
|
-
className: f(
|
|
5404
|
+
className: f(a, o),
|
|
5350
5405
|
disabled: t,
|
|
5351
5406
|
children: /* @__PURE__ */ r(je, { className: "h-6 w-6" })
|
|
5352
5407
|
}
|
|
@@ -5354,29 +5409,29 @@ const _e = ({
|
|
|
5354
5409
|
}, O = ({
|
|
5355
5410
|
label: e,
|
|
5356
5411
|
options: t,
|
|
5357
|
-
value:
|
|
5358
|
-
onChange:
|
|
5412
|
+
value: o,
|
|
5413
|
+
onChange: a,
|
|
5359
5414
|
className: n,
|
|
5360
5415
|
containerClassName: s
|
|
5361
5416
|
}) => {
|
|
5362
|
-
const l =
|
|
5417
|
+
const l = v.useMemo(
|
|
5363
5418
|
() => t.map((c) => ({
|
|
5364
5419
|
value: c.value,
|
|
5365
5420
|
label: c.label
|
|
5366
5421
|
})),
|
|
5367
5422
|
[t]
|
|
5368
|
-
), i =
|
|
5423
|
+
), i = v.useCallback(
|
|
5369
5424
|
(c) => {
|
|
5370
|
-
|
|
5425
|
+
a(c.target.value);
|
|
5371
5426
|
},
|
|
5372
|
-
[
|
|
5427
|
+
[a]
|
|
5373
5428
|
);
|
|
5374
5429
|
return /* @__PURE__ */ r("div", { className: f("flex min-w-0 flex-1 items-center", s), children: /* @__PURE__ */ r("div", { className: "flex-1 px-6 py-3.5", children: /* @__PURE__ */ r(
|
|
5375
5430
|
Ve,
|
|
5376
5431
|
{
|
|
5377
5432
|
label: e,
|
|
5378
5433
|
options: l,
|
|
5379
|
-
value:
|
|
5434
|
+
value: o,
|
|
5380
5435
|
className: f(
|
|
5381
5436
|
"w-full border-none bg-transparent focus:outline-none focus:ring-0 text-base text-muted-foreground h-auto p-0",
|
|
5382
5437
|
n
|
|
@@ -5385,11 +5440,11 @@ const _e = ({
|
|
|
5385
5440
|
onChange: i
|
|
5386
5441
|
}
|
|
5387
5442
|
) }) });
|
|
5388
|
-
},
|
|
5443
|
+
}, jo = ({
|
|
5389
5444
|
formData: e,
|
|
5390
5445
|
options: t,
|
|
5391
|
-
onFieldChange:
|
|
5392
|
-
isSubmitting:
|
|
5446
|
+
onFieldChange: o,
|
|
5447
|
+
isSubmitting: a,
|
|
5393
5448
|
onSubmit: n,
|
|
5394
5449
|
error: s,
|
|
5395
5450
|
className: l
|
|
@@ -5403,7 +5458,7 @@ const _e = ({
|
|
|
5403
5458
|
value: e.propertyType,
|
|
5404
5459
|
containerClassName: "flex items-center",
|
|
5405
5460
|
className: "placeholder:text-muted-foreground",
|
|
5406
|
-
onChange:
|
|
5461
|
+
onChange: o("propertyType")
|
|
5407
5462
|
}
|
|
5408
5463
|
),
|
|
5409
5464
|
/* @__PURE__ */ r(
|
|
@@ -5414,7 +5469,7 @@ const _e = ({
|
|
|
5414
5469
|
value: e.transactionType,
|
|
5415
5470
|
containerClassName: "flex items-center",
|
|
5416
5471
|
className: "placeholder:text-muted-foreground",
|
|
5417
|
-
onChange:
|
|
5472
|
+
onChange: o("transactionType")
|
|
5418
5473
|
}
|
|
5419
5474
|
),
|
|
5420
5475
|
/* @__PURE__ */ r(
|
|
@@ -5425,7 +5480,7 @@ const _e = ({
|
|
|
5425
5480
|
value: e.location,
|
|
5426
5481
|
containerClassName: "flex items-center",
|
|
5427
5482
|
className: "placeholder:text-muted-foreground",
|
|
5428
|
-
onChange:
|
|
5483
|
+
onChange: o("location")
|
|
5429
5484
|
}
|
|
5430
5485
|
)
|
|
5431
5486
|
] }),
|
|
@@ -5435,10 +5490,10 @@ const _e = ({
|
|
|
5435
5490
|
type: "submit",
|
|
5436
5491
|
className: "w-full",
|
|
5437
5492
|
size: "lg",
|
|
5438
|
-
disabled:
|
|
5493
|
+
disabled: a,
|
|
5439
5494
|
children: [
|
|
5440
5495
|
/* @__PURE__ */ r(je, { className: "h-4 w-4 mr-2" }),
|
|
5441
|
-
|
|
5496
|
+
a ? "Searching..." : "Search Properties"
|
|
5442
5497
|
]
|
|
5443
5498
|
}
|
|
5444
5499
|
),
|
|
@@ -5450,11 +5505,11 @@ const _e = ({
|
|
|
5450
5505
|
children: s
|
|
5451
5506
|
}
|
|
5452
5507
|
)
|
|
5453
|
-
] }) }),
|
|
5508
|
+
] }) }), Ao = ({
|
|
5454
5509
|
formData: e,
|
|
5455
5510
|
options: t,
|
|
5456
|
-
onFieldChange:
|
|
5457
|
-
isSubmitting:
|
|
5511
|
+
onFieldChange: o,
|
|
5512
|
+
isSubmitting: a,
|
|
5458
5513
|
onSubmit: n,
|
|
5459
5514
|
className: s
|
|
5460
5515
|
}) => /* @__PURE__ */ r(
|
|
@@ -5471,7 +5526,7 @@ const _e = ({
|
|
|
5471
5526
|
options: t.propertyTypeOptions,
|
|
5472
5527
|
value: e.propertyType,
|
|
5473
5528
|
containerClassName: "flex items-center",
|
|
5474
|
-
onChange:
|
|
5529
|
+
onChange: o("propertyType")
|
|
5475
5530
|
}
|
|
5476
5531
|
),
|
|
5477
5532
|
/* @__PURE__ */ r(
|
|
@@ -5481,7 +5536,7 @@ const _e = ({
|
|
|
5481
5536
|
options: t.transactionTypeOptions,
|
|
5482
5537
|
value: e.transactionType,
|
|
5483
5538
|
containerClassName: "flex items-center",
|
|
5484
|
-
onChange:
|
|
5539
|
+
onChange: o("transactionType")
|
|
5485
5540
|
}
|
|
5486
5541
|
),
|
|
5487
5542
|
/* @__PURE__ */ r(
|
|
@@ -5491,17 +5546,17 @@ const _e = ({
|
|
|
5491
5546
|
options: t.locationOptions,
|
|
5492
5547
|
value: e.location,
|
|
5493
5548
|
containerClassName: "flex items-center",
|
|
5494
|
-
onChange:
|
|
5549
|
+
onChange: o("location")
|
|
5495
5550
|
}
|
|
5496
5551
|
),
|
|
5497
|
-
/* @__PURE__ */ r(_e, { variant: "mobile", isSubmitting:
|
|
5552
|
+
/* @__PURE__ */ r(_e, { variant: "mobile", isSubmitting: a })
|
|
5498
5553
|
] })
|
|
5499
5554
|
}
|
|
5500
|
-
), le = ({ className: e }) => /* @__PURE__ */ r("div", { className: f("w-px self-stretch bg-gray-300 mx-6", e) }),
|
|
5555
|
+
), le = ({ className: e }) => /* @__PURE__ */ r("div", { className: f("w-px self-stretch bg-gray-300 mx-6", e) }), Lo = ({
|
|
5501
5556
|
formData: e,
|
|
5502
5557
|
options: t,
|
|
5503
|
-
onFieldChange:
|
|
5504
|
-
isSubmitting:
|
|
5558
|
+
onFieldChange: o,
|
|
5559
|
+
isSubmitting: a,
|
|
5505
5560
|
onSubmit: n,
|
|
5506
5561
|
className: s,
|
|
5507
5562
|
buttonLabel: l = "Conoce Más"
|
|
@@ -5518,7 +5573,7 @@ const _e = ({
|
|
|
5518
5573
|
label: "Tipo de propiedad",
|
|
5519
5574
|
options: t.propertyTypeOptions,
|
|
5520
5575
|
value: e.propertyType,
|
|
5521
|
-
onChange:
|
|
5576
|
+
onChange: o("propertyType")
|
|
5522
5577
|
}
|
|
5523
5578
|
),
|
|
5524
5579
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5528,7 +5583,7 @@ const _e = ({
|
|
|
5528
5583
|
label: "Transacción",
|
|
5529
5584
|
options: t.transactionTypeOptions,
|
|
5530
5585
|
value: e.transactionType,
|
|
5531
|
-
onChange:
|
|
5586
|
+
onChange: o("transactionType")
|
|
5532
5587
|
}
|
|
5533
5588
|
),
|
|
5534
5589
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5539,26 +5594,26 @@ const _e = ({
|
|
|
5539
5594
|
options: t.locationOptions,
|
|
5540
5595
|
value: e.location,
|
|
5541
5596
|
containerClassName: "flex min-w-0 flex-[1.2] items-center",
|
|
5542
|
-
onChange:
|
|
5597
|
+
onChange: o("location")
|
|
5543
5598
|
}
|
|
5544
5599
|
),
|
|
5545
5600
|
/* @__PURE__ */ r("div", { className: "flex items-center py-3", children: /* @__PURE__ */ r(
|
|
5546
5601
|
"button",
|
|
5547
5602
|
{
|
|
5548
5603
|
type: "submit",
|
|
5549
|
-
disabled:
|
|
5604
|
+
disabled: a,
|
|
5550
5605
|
className: "h-10 px-4 py-2 bg-zinc-900 text-white text-sm font-medium rounded-md hover:bg-zinc-800 transition-colors disabled:opacity-50 whitespace-nowrap",
|
|
5551
|
-
"aria-label":
|
|
5552
|
-
children:
|
|
5606
|
+
"aria-label": a ? "Buscando propiedades..." : l,
|
|
5607
|
+
children: a ? "Buscando..." : l
|
|
5553
5608
|
}
|
|
5554
5609
|
) })
|
|
5555
5610
|
] })
|
|
5556
5611
|
}
|
|
5557
|
-
),
|
|
5612
|
+
), $o = ({
|
|
5558
5613
|
formData: e,
|
|
5559
5614
|
options: t,
|
|
5560
|
-
onFieldChange:
|
|
5561
|
-
isSubmitting:
|
|
5615
|
+
onFieldChange: o,
|
|
5616
|
+
isSubmitting: a,
|
|
5562
5617
|
onSubmit: n,
|
|
5563
5618
|
className: s
|
|
5564
5619
|
}) => /* @__PURE__ */ r(
|
|
@@ -5574,7 +5629,7 @@ const _e = ({
|
|
|
5574
5629
|
label: "Property Type",
|
|
5575
5630
|
options: t.propertyTypeOptions,
|
|
5576
5631
|
value: e.propertyType,
|
|
5577
|
-
onChange:
|
|
5632
|
+
onChange: o("propertyType")
|
|
5578
5633
|
}
|
|
5579
5634
|
),
|
|
5580
5635
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5584,7 +5639,7 @@ const _e = ({
|
|
|
5584
5639
|
label: "Transaction",
|
|
5585
5640
|
options: t.transactionTypeOptions,
|
|
5586
5641
|
value: e.transactionType,
|
|
5587
|
-
onChange:
|
|
5642
|
+
onChange: o("transactionType")
|
|
5588
5643
|
}
|
|
5589
5644
|
),
|
|
5590
5645
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5595,24 +5650,24 @@ const _e = ({
|
|
|
5595
5650
|
options: t.locationOptions,
|
|
5596
5651
|
value: e.location,
|
|
5597
5652
|
containerClassName: "flex min-w-0 flex-[1.2] items-center",
|
|
5598
|
-
onChange:
|
|
5653
|
+
onChange: o("location")
|
|
5599
5654
|
}
|
|
5600
5655
|
),
|
|
5601
5656
|
/* @__PURE__ */ r("div", { className: "flex items-center", children: /* @__PURE__ */ r(
|
|
5602
5657
|
_e,
|
|
5603
5658
|
{
|
|
5604
5659
|
variant: "pill",
|
|
5605
|
-
isSubmitting:
|
|
5660
|
+
isSubmitting: a,
|
|
5606
5661
|
className: "bg-black"
|
|
5607
5662
|
}
|
|
5608
5663
|
) })
|
|
5609
5664
|
] })
|
|
5610
5665
|
}
|
|
5611
|
-
),
|
|
5666
|
+
), Oo = ({
|
|
5612
5667
|
formData: e,
|
|
5613
5668
|
options: t,
|
|
5614
|
-
onFieldChange:
|
|
5615
|
-
isSubmitting:
|
|
5669
|
+
onFieldChange: o,
|
|
5670
|
+
isSubmitting: a,
|
|
5616
5671
|
onSubmit: n
|
|
5617
5672
|
}) => /* @__PURE__ */ r(
|
|
5618
5673
|
"form",
|
|
@@ -5628,7 +5683,7 @@ const _e = ({
|
|
|
5628
5683
|
options: t.propertyTypeOptions,
|
|
5629
5684
|
value: e.propertyType,
|
|
5630
5685
|
containerClassName: "flex items-center",
|
|
5631
|
-
onChange:
|
|
5686
|
+
onChange: o("propertyType")
|
|
5632
5687
|
}
|
|
5633
5688
|
),
|
|
5634
5689
|
/* @__PURE__ */ r(
|
|
@@ -5638,7 +5693,7 @@ const _e = ({
|
|
|
5638
5693
|
options: t.transactionTypeOptions,
|
|
5639
5694
|
value: e.transactionType,
|
|
5640
5695
|
containerClassName: "flex items-center",
|
|
5641
|
-
onChange:
|
|
5696
|
+
onChange: o("transactionType")
|
|
5642
5697
|
}
|
|
5643
5698
|
),
|
|
5644
5699
|
/* @__PURE__ */ r(
|
|
@@ -5648,17 +5703,17 @@ const _e = ({
|
|
|
5648
5703
|
options: t.locationOptions,
|
|
5649
5704
|
value: e.location,
|
|
5650
5705
|
containerClassName: "flex items-center",
|
|
5651
|
-
onChange:
|
|
5706
|
+
onChange: o("location")
|
|
5652
5707
|
}
|
|
5653
5708
|
),
|
|
5654
|
-
/* @__PURE__ */ r(_e, { variant: "mobile", isSubmitting:
|
|
5709
|
+
/* @__PURE__ */ r(_e, { variant: "mobile", isSubmitting: a })
|
|
5655
5710
|
] })
|
|
5656
5711
|
}
|
|
5657
|
-
),
|
|
5712
|
+
), Vo = ({
|
|
5658
5713
|
formData: e,
|
|
5659
5714
|
options: t,
|
|
5660
|
-
onFieldChange:
|
|
5661
|
-
isSubmitting:
|
|
5715
|
+
onFieldChange: o,
|
|
5716
|
+
isSubmitting: a,
|
|
5662
5717
|
onSubmit: n,
|
|
5663
5718
|
className: s,
|
|
5664
5719
|
buttonLabel: l = "Conoce Más"
|
|
@@ -5676,7 +5731,7 @@ const _e = ({
|
|
|
5676
5731
|
options: t.propertyTypeOptions,
|
|
5677
5732
|
value: e.propertyType,
|
|
5678
5733
|
containerClassName: "rounded-tl-full rounded-bl-full",
|
|
5679
|
-
onChange:
|
|
5734
|
+
onChange: o("propertyType")
|
|
5680
5735
|
}
|
|
5681
5736
|
),
|
|
5682
5737
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5686,7 +5741,7 @@ const _e = ({
|
|
|
5686
5741
|
label: "Transacción",
|
|
5687
5742
|
options: t.transactionTypeOptions,
|
|
5688
5743
|
value: e.transactionType,
|
|
5689
|
-
onChange:
|
|
5744
|
+
onChange: o("transactionType")
|
|
5690
5745
|
}
|
|
5691
5746
|
),
|
|
5692
5747
|
/* @__PURE__ */ r(le, {}),
|
|
@@ -5697,111 +5752,111 @@ const _e = ({
|
|
|
5697
5752
|
options: t.locationOptions,
|
|
5698
5753
|
value: e.location,
|
|
5699
5754
|
containerClassName: "flex min-w-0 flex-[1.2] items-center",
|
|
5700
|
-
onChange:
|
|
5755
|
+
onChange: o("location")
|
|
5701
5756
|
}
|
|
5702
5757
|
),
|
|
5703
5758
|
/* @__PURE__ */ r("div", { className: "flex items-center py-3", children: /* @__PURE__ */ r(
|
|
5704
5759
|
"button",
|
|
5705
5760
|
{
|
|
5706
5761
|
type: "submit",
|
|
5707
|
-
disabled:
|
|
5762
|
+
disabled: a,
|
|
5708
5763
|
className: "h-10 px-4 py-2 bg-zinc-900 text-white text-sm font-medium rounded-md hover:bg-zinc-800 transition-colors disabled:opacity-50 whitespace-nowrap",
|
|
5709
|
-
"aria-label":
|
|
5710
|
-
children:
|
|
5764
|
+
"aria-label": a ? "Buscando propiedades..." : l,
|
|
5765
|
+
children: a ? "Buscando..." : l
|
|
5711
5766
|
}
|
|
5712
5767
|
) })
|
|
5713
5768
|
] })
|
|
5714
5769
|
}
|
|
5715
5770
|
), et = {
|
|
5716
|
-
minimal:
|
|
5717
|
-
modern:
|
|
5718
|
-
luxury:
|
|
5719
|
-
compact:
|
|
5720
|
-
card:
|
|
5721
|
-
},
|
|
5771
|
+
minimal: $o,
|
|
5772
|
+
modern: Vo,
|
|
5773
|
+
luxury: Lo,
|
|
5774
|
+
compact: Ao,
|
|
5775
|
+
card: jo
|
|
5776
|
+
}, Fo = ({
|
|
5722
5777
|
onSubmit: e,
|
|
5723
5778
|
defaultValues: t,
|
|
5724
|
-
className:
|
|
5725
|
-
variant:
|
|
5779
|
+
className: o,
|
|
5780
|
+
variant: a = "minimal",
|
|
5726
5781
|
propertyTypeOptions: n,
|
|
5727
5782
|
transactionTypeOptions: s,
|
|
5728
5783
|
locationOptions: l,
|
|
5729
5784
|
buttonLabel: i
|
|
5730
5785
|
}) => {
|
|
5731
|
-
const [c, m] =
|
|
5786
|
+
const [c, m] = v.useState(!1), [u, d] = v.useState(null), h = Ro({
|
|
5732
5787
|
onSubmit: e,
|
|
5733
5788
|
defaultValues: t,
|
|
5734
5789
|
propertyTypeOptions: n,
|
|
5735
5790
|
transactionTypeOptions: s,
|
|
5736
5791
|
locationOptions: l
|
|
5737
5792
|
}), {
|
|
5738
|
-
formData:
|
|
5739
|
-
setFormData:
|
|
5740
|
-
handleSubmit:
|
|
5741
|
-
propertyTypeOptions:
|
|
5742
|
-
transactionTypeOptions:
|
|
5743
|
-
locationOptions:
|
|
5744
|
-
} = h,
|
|
5745
|
-
async (
|
|
5746
|
-
|
|
5793
|
+
formData: M,
|
|
5794
|
+
setFormData: y,
|
|
5795
|
+
handleSubmit: C,
|
|
5796
|
+
propertyTypeOptions: g,
|
|
5797
|
+
transactionTypeOptions: w,
|
|
5798
|
+
locationOptions: z
|
|
5799
|
+
} = h, S = v.useCallback(
|
|
5800
|
+
async (E) => {
|
|
5801
|
+
E.preventDefault(), d(null), m(!0);
|
|
5747
5802
|
try {
|
|
5748
|
-
await
|
|
5749
|
-
} catch (
|
|
5750
|
-
const L =
|
|
5751
|
-
d(L), console.error("Search error:",
|
|
5803
|
+
await C(E);
|
|
5804
|
+
} catch (k) {
|
|
5805
|
+
const L = k instanceof Error ? k.message : "Search failed. Please try again.";
|
|
5806
|
+
d(L), console.error("Search error:", k);
|
|
5752
5807
|
} finally {
|
|
5753
5808
|
m(!1);
|
|
5754
5809
|
}
|
|
5755
5810
|
},
|
|
5756
|
-
[
|
|
5757
|
-
), P =
|
|
5758
|
-
(
|
|
5759
|
-
d(null),
|
|
5811
|
+
[C]
|
|
5812
|
+
), P = v.useCallback(
|
|
5813
|
+
(E) => (k) => {
|
|
5814
|
+
d(null), y((L) => ({ ...L, [E]: k }));
|
|
5760
5815
|
},
|
|
5761
|
-
[
|
|
5762
|
-
),
|
|
5816
|
+
[y]
|
|
5817
|
+
), I = v.useMemo(
|
|
5763
5818
|
() => ({
|
|
5764
|
-
propertyTypeOptions:
|
|
5765
|
-
transactionTypeOptions:
|
|
5766
|
-
locationOptions:
|
|
5819
|
+
propertyTypeOptions: g,
|
|
5820
|
+
transactionTypeOptions: w,
|
|
5821
|
+
locationOptions: z
|
|
5767
5822
|
}),
|
|
5768
|
-
[
|
|
5769
|
-
), V = et[
|
|
5823
|
+
[g, w, z]
|
|
5824
|
+
), V = et[a] || et.minimal;
|
|
5770
5825
|
return /* @__PURE__ */ p(se, { children: [
|
|
5771
5826
|
/* @__PURE__ */ r(
|
|
5772
5827
|
V,
|
|
5773
5828
|
{
|
|
5774
|
-
formData:
|
|
5775
|
-
options:
|
|
5829
|
+
formData: M,
|
|
5830
|
+
options: I,
|
|
5776
5831
|
isSubmitting: c,
|
|
5777
5832
|
error: u,
|
|
5778
|
-
className:
|
|
5833
|
+
className: o,
|
|
5779
5834
|
onFieldChange: P,
|
|
5780
|
-
onSubmit:
|
|
5781
|
-
...(
|
|
5835
|
+
onSubmit: S,
|
|
5836
|
+
...(a === "modern" || a === "luxury") && { buttonLabel: i }
|
|
5782
5837
|
}
|
|
5783
5838
|
),
|
|
5784
|
-
|
|
5785
|
-
|
|
5839
|
+
a === "minimal" && /* @__PURE__ */ r(
|
|
5840
|
+
Oo,
|
|
5786
5841
|
{
|
|
5787
|
-
formData:
|
|
5788
|
-
options:
|
|
5842
|
+
formData: M,
|
|
5843
|
+
options: I,
|
|
5789
5844
|
isSubmitting: c,
|
|
5790
5845
|
onFieldChange: P,
|
|
5791
|
-
onSubmit:
|
|
5846
|
+
onSubmit: S
|
|
5792
5847
|
}
|
|
5793
5848
|
)
|
|
5794
5849
|
] });
|
|
5795
5850
|
};
|
|
5796
|
-
|
|
5797
|
-
const
|
|
5851
|
+
Fo.displayName = "SearchFeature";
|
|
5852
|
+
const sa = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
5798
5853
|
"a",
|
|
5799
5854
|
{
|
|
5800
5855
|
href: e,
|
|
5801
5856
|
className: "sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary focus:text-white focus:rounded",
|
|
5802
5857
|
children: t
|
|
5803
5858
|
}
|
|
5804
|
-
),
|
|
5859
|
+
), la = {
|
|
5805
5860
|
// Spacing scale (in rem)
|
|
5806
5861
|
spacing: {
|
|
5807
5862
|
xs: "0.25rem",
|
|
@@ -5896,7 +5951,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
5896
5951
|
out: "ease-out",
|
|
5897
5952
|
inOut: "ease-in-out"
|
|
5898
5953
|
}
|
|
5899
|
-
},
|
|
5954
|
+
}, ia = {
|
|
5900
5955
|
button: {
|
|
5901
5956
|
size: {
|
|
5902
5957
|
sm: "h-9 px-3 text-sm",
|
|
@@ -5927,13 +5982,13 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
5927
5982
|
outlined: "bg-card text-card-foreground border-2"
|
|
5928
5983
|
}
|
|
5929
5984
|
}
|
|
5930
|
-
},
|
|
5985
|
+
}, ca = {
|
|
5931
5986
|
sm: "640px",
|
|
5932
5987
|
md: "768px",
|
|
5933
5988
|
lg: "1024px",
|
|
5934
5989
|
xl: "1280px",
|
|
5935
5990
|
"2xl": "1536px"
|
|
5936
|
-
},
|
|
5991
|
+
}, da = {
|
|
5937
5992
|
/**
|
|
5938
5993
|
* Get a color value with opacity support
|
|
5939
5994
|
*/
|
|
@@ -5942,7 +5997,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
5942
5997
|
* Get a color from the design system palette
|
|
5943
5998
|
*/
|
|
5944
5999
|
get: (e) => `hsl(var(--${e}))`
|
|
5945
|
-
},
|
|
6000
|
+
}, ma = {
|
|
5946
6001
|
/**
|
|
5947
6002
|
* Generate a unique ID for form elements and their labels
|
|
5948
6003
|
*/
|
|
@@ -5961,7 +6016,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
5961
6016
|
only: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0",
|
|
5962
6017
|
not: "not-sr-only"
|
|
5963
6018
|
}
|
|
5964
|
-
},
|
|
6019
|
+
}, ua = {
|
|
5965
6020
|
icon: {
|
|
5966
6021
|
xs: "w-3 h-3",
|
|
5967
6022
|
sm: "w-4 h-4",
|
|
@@ -5976,7 +6031,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
5976
6031
|
lg: "w-12 h-12",
|
|
5977
6032
|
xl: "w-16 h-16"
|
|
5978
6033
|
}
|
|
5979
|
-
},
|
|
6034
|
+
}, pa = {
|
|
5980
6035
|
/**
|
|
5981
6036
|
* Fade animations
|
|
5982
6037
|
*/
|
|
@@ -6000,7 +6055,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6000
6055
|
in: "animate-in scale-in duration-200",
|
|
6001
6056
|
out: "animate-out scale-out duration-200"
|
|
6002
6057
|
}
|
|
6003
|
-
},
|
|
6058
|
+
}, fa = {
|
|
6004
6059
|
/**
|
|
6005
6060
|
* Container utilities
|
|
6006
6061
|
*/
|
|
@@ -6034,7 +6089,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6034
6089
|
col: "flex flex-col",
|
|
6035
6090
|
colCenter: "flex flex-col items-center justify-center"
|
|
6036
6091
|
}
|
|
6037
|
-
},
|
|
6092
|
+
}, ha = {
|
|
6038
6093
|
/**
|
|
6039
6094
|
* Check if dark mode is active
|
|
6040
6095
|
*/
|
|
@@ -6051,31 +6106,31 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6051
6106
|
set: (e) => {
|
|
6052
6107
|
typeof window > "u" || document.documentElement.classList.toggle("dark", e === "dark");
|
|
6053
6108
|
}
|
|
6054
|
-
},
|
|
6109
|
+
}, ga = {
|
|
6055
6110
|
/**
|
|
6056
6111
|
* Debounce function for performance optimization
|
|
6057
6112
|
*/
|
|
6058
6113
|
debounce: (e, t) => {
|
|
6059
|
-
let
|
|
6060
|
-
return (...
|
|
6061
|
-
clearTimeout(
|
|
6114
|
+
let o;
|
|
6115
|
+
return (...a) => {
|
|
6116
|
+
clearTimeout(o), o = setTimeout(() => e(...a), t);
|
|
6062
6117
|
};
|
|
6063
6118
|
},
|
|
6064
6119
|
/**
|
|
6065
6120
|
* Throttle function for performance optimization
|
|
6066
6121
|
*/
|
|
6067
6122
|
throttle: (e, t) => {
|
|
6068
|
-
let
|
|
6069
|
-
return (...
|
|
6070
|
-
|
|
6123
|
+
let o;
|
|
6124
|
+
return (...a) => {
|
|
6125
|
+
o || (e(...a), o = !0, setTimeout(() => o = !1, t));
|
|
6071
6126
|
};
|
|
6072
6127
|
}
|
|
6073
|
-
},
|
|
6074
|
-
const e = Tt(
|
|
6128
|
+
}, St = Ae.createContext(null), ba = () => {
|
|
6129
|
+
const e = Tt(St);
|
|
6075
6130
|
if (!e)
|
|
6076
6131
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
6077
6132
|
return e;
|
|
6078
|
-
},
|
|
6133
|
+
}, _o = {
|
|
6079
6134
|
name: "light",
|
|
6080
6135
|
colors: {
|
|
6081
6136
|
primary: "#007bff",
|
|
@@ -6141,7 +6196,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6141
6196
|
large: "0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10)",
|
|
6142
6197
|
xl: "0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05)"
|
|
6143
6198
|
}
|
|
6144
|
-
},
|
|
6199
|
+
}, Do = {
|
|
6145
6200
|
name: "dark",
|
|
6146
6201
|
colors: {
|
|
6147
6202
|
primary: "#0d6efd",
|
|
@@ -6207,7 +6262,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6207
6262
|
large: "0 10px 20px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3)",
|
|
6208
6263
|
xl: "0 15px 25px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.3)"
|
|
6209
6264
|
}
|
|
6210
|
-
},
|
|
6265
|
+
}, Bo = {
|
|
6211
6266
|
name: "corporate",
|
|
6212
6267
|
colors: {
|
|
6213
6268
|
primary: "#1a365d",
|
|
@@ -6273,7 +6328,7 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6273
6328
|
large: "0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05)",
|
|
6274
6329
|
xl: "0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04)"
|
|
6275
6330
|
}
|
|
6276
|
-
},
|
|
6331
|
+
}, Ho = {
|
|
6277
6332
|
name: "minimal",
|
|
6278
6333
|
colors: {
|
|
6279
6334
|
primary: "#000000",
|
|
@@ -6339,82 +6394,82 @@ const oo = ({ href: e, children: t }) => /* @__PURE__ */ r(
|
|
|
6339
6394
|
large: "none",
|
|
6340
6395
|
xl: "none"
|
|
6341
6396
|
}
|
|
6342
|
-
},
|
|
6343
|
-
light:
|
|
6344
|
-
dark:
|
|
6345
|
-
corporate:
|
|
6346
|
-
minimal:
|
|
6347
|
-
},
|
|
6397
|
+
}, ze = {
|
|
6398
|
+
light: _o,
|
|
6399
|
+
dark: Do,
|
|
6400
|
+
corporate: Bo,
|
|
6401
|
+
minimal: Ho
|
|
6402
|
+
}, Go = Le(), Wo = Le(), Uo = Le(), te = zt(ze.light).on(Go, (e, t) => ze[t] || e).on(Wo, (e, t) => t).on(Uo, () => ze.light), xa = te.map((e) => e.name), ya = te.map((e) => e.colors);
|
|
6348
6403
|
te.map((e) => e.shapes);
|
|
6349
6404
|
te.map((e) => e.typography);
|
|
6350
6405
|
te.map((e) => e.spacing);
|
|
6351
6406
|
te.map((e) => e.shadows);
|
|
6352
|
-
const
|
|
6353
|
-
const
|
|
6354
|
-
theme:
|
|
6407
|
+
const va = ({ children: e }) => {
|
|
6408
|
+
const o = {
|
|
6409
|
+
theme: Pt(te)
|
|
6355
6410
|
};
|
|
6356
|
-
return /* @__PURE__ */ r(
|
|
6411
|
+
return /* @__PURE__ */ r(St.Provider, { value: o, children: e });
|
|
6357
6412
|
};
|
|
6358
6413
|
export {
|
|
6359
6414
|
te as $theme,
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6415
|
+
ya as $themeColors,
|
|
6416
|
+
xa as $themeName,
|
|
6417
|
+
oa as AuthLayout,
|
|
6363
6418
|
K as Button,
|
|
6364
6419
|
pt as Card,
|
|
6365
6420
|
ht as CategoryChips,
|
|
6366
6421
|
Oe as Chip,
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6422
|
+
Yo as CompoundCard,
|
|
6423
|
+
ta as ConfirmModal,
|
|
6424
|
+
ra as DashboardLayout,
|
|
6370
6425
|
ft as DonutChart,
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6426
|
+
wo as EntityDirectory,
|
|
6427
|
+
No as Header,
|
|
6428
|
+
So as HeroBanner,
|
|
6374
6429
|
ne as Input,
|
|
6375
|
-
|
|
6430
|
+
aa as MarketingLayout,
|
|
6376
6431
|
Fr as Modal,
|
|
6377
6432
|
_r as ModalWithActions,
|
|
6378
|
-
|
|
6433
|
+
zo as MortgageCalculator,
|
|
6379
6434
|
Fe as PageLayout,
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6435
|
+
na as PropertyCard,
|
|
6436
|
+
Eo as PropertyGallery,
|
|
6437
|
+
Fo as SearchFeature,
|
|
6383
6438
|
Ve as Select,
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6439
|
+
sa as SkipLink,
|
|
6440
|
+
R as Text,
|
|
6441
|
+
va as ThemeProvider,
|
|
6442
|
+
ma as a11y,
|
|
6443
|
+
ma as accessibilityUtils,
|
|
6444
|
+
pa as animationUtils,
|
|
6445
|
+
pa as animations,
|
|
6446
|
+
ca as breakpoints,
|
|
6392
6447
|
jt as calculateMortgage,
|
|
6393
6448
|
f as cn,
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6449
|
+
da as colorUtils,
|
|
6450
|
+
da as colors,
|
|
6451
|
+
ua as componentSizes,
|
|
6452
|
+
ia as componentVariants,
|
|
6398
6453
|
Rt as countEntitiesByCategory,
|
|
6399
|
-
|
|
6400
|
-
|
|
6454
|
+
la as designSystem,
|
|
6455
|
+
It as filterEntitiesByCategory,
|
|
6401
6456
|
me as formatCurrency,
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6457
|
+
Jo as formatPercentage,
|
|
6458
|
+
fa as layout,
|
|
6459
|
+
fa as layoutUtils,
|
|
6460
|
+
ga as performance,
|
|
6461
|
+
ga as performanceUtils,
|
|
6462
|
+
Uo as resetTheme,
|
|
6463
|
+
ca as responsiveBreakpoints,
|
|
6464
|
+
Wo as setCustomTheme,
|
|
6465
|
+
Go as setTheme,
|
|
6466
|
+
ua as sizes,
|
|
6467
|
+
Et as sortEntities,
|
|
6468
|
+
ha as theme,
|
|
6469
|
+
ha as themeUtils,
|
|
6470
|
+
ea as useEntityFilter,
|
|
6471
|
+
ba as useTheme,
|
|
6472
|
+
Qo as validateMortgageInput,
|
|
6473
|
+
ia as variants
|
|
6419
6474
|
};
|
|
6420
6475
|
//# sourceMappingURL=design-system.es.js.map
|