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