rently-components 0.1.30 → 0.1.31
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.
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
1
2
|
interface Props {
|
|
2
3
|
locale?: "en" | "es";
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
date?: Date | undefined;
|
|
5
|
+
setDate: Dispatch<SetStateAction<Date | undefined>>;
|
|
5
6
|
rootClassName?: string;
|
|
6
7
|
buttonDayClassName?: string;
|
|
7
8
|
containerMonthDaysClassName?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const Calendar: ({ locale,
|
|
10
|
+
declare const Calendar: ({ locale, date, setDate, rootClassName, buttonDayClassName, containerMonthDaysClassName, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default Calendar;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType, type SVGProps } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentType, type Dispatch, type SetStateAction, type SVGProps } from "react";
|
|
2
2
|
import "dayjs/locale/es";
|
|
3
3
|
import "dayjs/locale/en";
|
|
4
4
|
interface Props extends ComponentProps<"button"> {
|
|
5
5
|
placeholder: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
setDate: Dispatch<SetStateAction<Date | undefined>>;
|
|
7
|
+
date?: Date;
|
|
8
8
|
Icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
9
9
|
locale?: "en" | "es";
|
|
10
|
+
error?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const DatePicker: ({ placeholder, locale, className, Icon,
|
|
12
|
+
declare const DatePicker: ({ placeholder, locale, className, Icon, date, setDate, error, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default DatePicker;
|
|
@@ -2,7 +2,8 @@ import type { ComponentProps, ComponentType, SVGProps } from "react";
|
|
|
2
2
|
interface Props extends ComponentProps<"input"> {
|
|
3
3
|
Icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
4
4
|
containerClassName?: string;
|
|
5
|
+
inputClassName?: string;
|
|
5
6
|
error?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const Input: ({ Icon, error,
|
|
8
|
+
declare const Input: ({ Icon, error, inputClassName, className, ...other }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default Input;
|
package/dist/index.es.js
CHANGED
|
@@ -204,8 +204,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
204
204
|
}
|
|
205
205
|
if (k = null, F !== void 0 && (n(F), k = "" + F), i(D) && (n(D.key), k = "" + D.key), "key" in D) {
|
|
206
206
|
F = {};
|
|
207
|
-
for (var
|
|
208
|
-
|
|
207
|
+
for (var J in D)
|
|
208
|
+
J !== "key" && (F[J] = D[J]);
|
|
209
209
|
} else F = D;
|
|
210
210
|
return k && a(
|
|
211
211
|
F,
|
|
@@ -605,7 +605,7 @@ const ti = (e, t) => {
|
|
|
605
605
|
b,
|
|
606
606
|
L,
|
|
607
607
|
$
|
|
608
|
-
],
|
|
608
|
+
], J = () => ["none", U, L, $], V = () => ["none", U, L, $], q = () => [U, L, $], Z = () => [We, "full", ...O()];
|
|
609
609
|
return {
|
|
610
610
|
cacheSize: 500,
|
|
611
611
|
theme: {
|
|
@@ -2552,28 +2552,28 @@ const ti = (e, t) => {
|
|
|
2552
2552
|
* @see https://tailwindcss.com/docs/rotate
|
|
2553
2553
|
*/
|
|
2554
2554
|
rotate: [{
|
|
2555
|
-
rotate:
|
|
2555
|
+
rotate: J()
|
|
2556
2556
|
}],
|
|
2557
2557
|
/**
|
|
2558
2558
|
* Rotate X
|
|
2559
2559
|
* @see https://tailwindcss.com/docs/rotate
|
|
2560
2560
|
*/
|
|
2561
2561
|
"rotate-x": [{
|
|
2562
|
-
"rotate-x":
|
|
2562
|
+
"rotate-x": J()
|
|
2563
2563
|
}],
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Rotate Y
|
|
2566
2566
|
* @see https://tailwindcss.com/docs/rotate
|
|
2567
2567
|
*/
|
|
2568
2568
|
"rotate-y": [{
|
|
2569
|
-
"rotate-y":
|
|
2569
|
+
"rotate-y": J()
|
|
2570
2570
|
}],
|
|
2571
2571
|
/**
|
|
2572
2572
|
* Rotate Z
|
|
2573
2573
|
* @see https://tailwindcss.com/docs/rotate
|
|
2574
2574
|
*/
|
|
2575
2575
|
"rotate-z": [{
|
|
2576
|
-
"rotate-z":
|
|
2576
|
+
"rotate-z": J()
|
|
2577
2577
|
}],
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Scale
|
|
@@ -3033,30 +3033,31 @@ const ti = (e, t) => {
|
|
|
3033
3033
|
},
|
|
3034
3034
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3035
3035
|
};
|
|
3036
|
-
}, zi = /* @__PURE__ */ wi(Bi),
|
|
3036
|
+
}, zi = /* @__PURE__ */ wi(Bi), X = (...e) => zi(Dr(e)), Id = ({ Icon: e, error: t, inputClassName: n, className: r, ...o }) => /* @__PURE__ */ p.jsxs(
|
|
3037
3037
|
"div",
|
|
3038
3038
|
{
|
|
3039
|
-
className:
|
|
3039
|
+
className: X(
|
|
3040
3040
|
"rounded-lg border-border-1 border flex justify-between items-center h-10 bg-bg-1 pr-3 focus-within:ring-border-1/80 focus-within:ring-2",
|
|
3041
3041
|
t && "border-danger focus-within:ring-danger/80",
|
|
3042
|
-
|
|
3042
|
+
r
|
|
3043
3043
|
),
|
|
3044
3044
|
children: [
|
|
3045
3045
|
/* @__PURE__ */ p.jsx(
|
|
3046
3046
|
"input",
|
|
3047
3047
|
{
|
|
3048
3048
|
type: "text",
|
|
3049
|
-
className:
|
|
3049
|
+
className: X(
|
|
3050
3050
|
"border-none outline-none flex-1 h-full w-full text-sm pl-3 placeholder:text-text-2 text-text-1",
|
|
3051
|
-
t && "placeholder:text-danger/80"
|
|
3051
|
+
t && "placeholder:text-danger/80",
|
|
3052
|
+
n
|
|
3052
3053
|
),
|
|
3053
|
-
...
|
|
3054
|
+
...o
|
|
3054
3055
|
}
|
|
3055
3056
|
),
|
|
3056
3057
|
e && /* @__PURE__ */ p.jsx(
|
|
3057
3058
|
e,
|
|
3058
3059
|
{
|
|
3059
|
-
className:
|
|
3060
|
+
className: X("w-5 h-5 text-text-2", t && "text-danger/80")
|
|
3060
3061
|
}
|
|
3061
3062
|
)
|
|
3062
3063
|
]
|
|
@@ -5849,9 +5850,9 @@ var Wn = "PopperContent", [zl, Hl] = $o(Wn), zo = u.forwardRef(
|
|
|
5849
5850
|
c && jl({ ...K }),
|
|
5850
5851
|
Il({
|
|
5851
5852
|
...K,
|
|
5852
|
-
apply: ({ elements: k, rects: G, availableWidth:
|
|
5853
|
+
apply: ({ elements: k, rects: G, availableWidth: J, availableHeight: V }) => {
|
|
5853
5854
|
const { width: q, height: Z } = G.reference, se = k.floating.style;
|
|
5854
|
-
se.setProperty("--radix-popper-available-width", `${
|
|
5855
|
+
se.setProperty("--radix-popper-available-width", `${J}px`), se.setProperty("--radix-popper-available-height", `${V}px`), se.setProperty("--radix-popper-anchor-width", `${q}px`), se.setProperty("--radix-popper-anchor-height", `${Z}px`);
|
|
5855
5856
|
}
|
|
5856
5857
|
}),
|
|
5857
5858
|
P && Ll({ element: P, padding: a }),
|
|
@@ -6405,7 +6406,7 @@ var le = 10, [ps, Oe] = tt(Le), hu = "SelectContentImpl", gu = /* @__PURE__ */ U
|
|
|
6405
6406
|
}, [C]), kn();
|
|
6406
6407
|
const E = u.useCallback(
|
|
6407
6408
|
(k) => {
|
|
6408
|
-
const [G, ...
|
|
6409
|
+
const [G, ...J] = Y().map((Z) => Z.ref.current), [V] = J.slice(-1), q = document.activeElement;
|
|
6409
6410
|
for (const Z of k)
|
|
6410
6411
|
if (Z === q || (Z?.scrollIntoView({ block: "nearest" }), Z === G && _ && (_.scrollTop = 0), Z === V && _ && (_.scrollTop = _.scrollHeight), Z?.focus(), document.activeElement !== q)) return;
|
|
6411
6412
|
},
|
|
@@ -6426,11 +6427,11 @@ var le = 10, [ps, Oe] = tt(Le), hu = "SelectContentImpl", gu = /* @__PURE__ */ U
|
|
|
6426
6427
|
x: Math.abs(Math.round(V.pageX) - (M.current?.x ?? 0)),
|
|
6427
6428
|
y: Math.abs(Math.round(V.pageY) - (M.current?.y ?? 0))
|
|
6428
6429
|
};
|
|
6429
|
-
},
|
|
6430
|
+
}, J = (V) => {
|
|
6430
6431
|
k.x <= 10 && k.y <= 10 ? V.preventDefault() : C.contains(V.target) || x(!1), document.removeEventListener("pointermove", G), M.current = null;
|
|
6431
6432
|
};
|
|
6432
|
-
return M.current !== null && (document.addEventListener("pointermove", G), document.addEventListener("pointerup",
|
|
6433
|
-
document.removeEventListener("pointermove", G), document.removeEventListener("pointerup",
|
|
6433
|
+
return M.current !== null && (document.addEventListener("pointermove", G), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
|
|
6434
|
+
document.removeEventListener("pointermove", G), document.removeEventListener("pointerup", J, { capture: !0 });
|
|
6434
6435
|
};
|
|
6435
6436
|
}
|
|
6436
6437
|
}, [C, x, M]), u.useEffect(() => {
|
|
@@ -6440,17 +6441,17 @@ var le = 10, [ps, Oe] = tt(Le), hu = "SelectContentImpl", gu = /* @__PURE__ */ U
|
|
|
6440
6441
|
};
|
|
6441
6442
|
}, [x]);
|
|
6442
6443
|
const [W, y] = _s((k) => {
|
|
6443
|
-
const G = Y().filter((q) => !q.disabled),
|
|
6444
|
+
const G = Y().filter((q) => !q.disabled), J = G.find((q) => q.ref.current === document.activeElement), V = Os(G, k, J);
|
|
6444
6445
|
V && setTimeout(() => V.ref.current.focus());
|
|
6445
6446
|
}), D = u.useCallback(
|
|
6446
|
-
(k, G,
|
|
6447
|
-
const V = !R.current && !
|
|
6447
|
+
(k, G, J) => {
|
|
6448
|
+
const V = !R.current && !J;
|
|
6448
6449
|
(w.value !== void 0 && w.value === G || V) && (H(k), V && (R.current = !0));
|
|
6449
6450
|
},
|
|
6450
6451
|
[w.value]
|
|
6451
6452
|
), F = u.useCallback(() => C?.focus(), [C]), B = u.useCallback(
|
|
6452
|
-
(k, G,
|
|
6453
|
-
const V = !R.current && !
|
|
6453
|
+
(k, G, J) => {
|
|
6454
|
+
const V = !R.current && !J;
|
|
6454
6455
|
(w.value !== void 0 && w.value === G || V) && I(k);
|
|
6455
6456
|
},
|
|
6456
6457
|
[w.value]
|
|
@@ -6566,7 +6567,7 @@ var vu = "SelectItemAlignedPosition", hs = u.forwardRef((e, t) => {
|
|
|
6566
6567
|
]);
|
|
6567
6568
|
a.style.minWidth = Te + "px", a.style.right = en + "px";
|
|
6568
6569
|
}
|
|
6569
|
-
const I = h(), Y = window.innerHeight - le * 2, K = d.scrollHeight, N = window.getComputedStyle(l), R = parseInt(N.borderTopWidth, 10), E = parseInt(N.paddingTop, 10), A = parseInt(N.borderBottomWidth, 10), x = parseInt(N.paddingBottom, 10), M = R + E + K + x + A, W = Math.min(v.offsetHeight * 5, M), y = window.getComputedStyle(d), D = parseInt(y.paddingTop, 10), F = parseInt(y.paddingBottom, 10), B = T.top + T.height / 2 - le, te = Y - B, re = v.offsetHeight / 2, k = v.offsetTop + re, G = R + E + k,
|
|
6570
|
+
const I = h(), Y = window.innerHeight - le * 2, K = d.scrollHeight, N = window.getComputedStyle(l), R = parseInt(N.borderTopWidth, 10), E = parseInt(N.paddingTop, 10), A = parseInt(N.borderBottomWidth, 10), x = parseInt(N.paddingBottom, 10), M = R + E + K + x + A, W = Math.min(v.offsetHeight * 5, M), y = window.getComputedStyle(d), D = parseInt(y.paddingTop, 10), F = parseInt(y.paddingBottom, 10), B = T.top + T.height / 2 - le, te = Y - B, re = v.offsetHeight / 2, k = v.offsetTop + re, G = R + E + k, J = M - G;
|
|
6570
6571
|
if (G <= B) {
|
|
6571
6572
|
const q = I.length > 0 && v === I[I.length - 1].ref.current;
|
|
6572
6573
|
a.style.bottom = "0px";
|
|
@@ -6583,7 +6584,7 @@ var vu = "SelectItemAlignedPosition", hs = u.forwardRef((e, t) => {
|
|
|
6583
6584
|
B,
|
|
6584
6585
|
R + d.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
6585
6586
|
(q ? D : 0) + re
|
|
6586
|
-
) +
|
|
6587
|
+
) + J;
|
|
6587
6588
|
a.style.height = se + "px", d.scrollTop = G - B + d.offsetTop;
|
|
6588
6589
|
}
|
|
6589
6590
|
a.style.margin = `${le}px 0`, a.style.minHeight = W + "px", a.style.maxHeight = Y + "px", r?.(), requestAnimationFrame(() => g.current = !0);
|
|
@@ -7193,7 +7194,7 @@ const cd = [
|
|
|
7193
7194
|
}) => /* @__PURE__ */ p.jsxs(
|
|
7194
7195
|
$u,
|
|
7195
7196
|
{
|
|
7196
|
-
className:
|
|
7197
|
+
className: X(
|
|
7197
7198
|
"text-sm px-3 py-2 rounded-lg bg-bg-1 text-text-1 cursor-pointer hover:bg-bg-2 outline-none",
|
|
7198
7199
|
t
|
|
7199
7200
|
),
|
|
@@ -7211,7 +7212,7 @@ const cd = [
|
|
|
7211
7212
|
}) => /* @__PURE__ */ p.jsxs(
|
|
7212
7213
|
Tu,
|
|
7213
7214
|
{
|
|
7214
|
-
className:
|
|
7215
|
+
className: X(
|
|
7215
7216
|
"bg-bg-1 *:data-[slot=select-value]:overflow-hidden whitespace-nowrap justify-between data-placeholder:text-text-2 text-text-1 flex items-center gap-3 rounded-lg text-sm cursor-pointer px-3 h-10 border border-border-1 outline-none",
|
|
7216
7217
|
"data-[state=open]:ring-2 data-[state=open]:ring-border-1/80",
|
|
7217
7218
|
e,
|
|
@@ -7224,7 +7225,7 @@ const cd = [
|
|
|
7224
7225
|
/* @__PURE__ */ p.jsx(Mu, { asChild: !0, children: /* @__PURE__ */ p.jsx(
|
|
7225
7226
|
Dt,
|
|
7226
7227
|
{
|
|
7227
|
-
className:
|
|
7228
|
+
className: X("w-5 h-5 text-text-2", t && "text-danger/80")
|
|
7228
7229
|
}
|
|
7229
7230
|
) })
|
|
7230
7231
|
]
|
|
@@ -7245,7 +7246,7 @@ const cd = [
|
|
|
7245
7246
|
ju,
|
|
7246
7247
|
{
|
|
7247
7248
|
"data-slot": "select-content",
|
|
7248
|
-
className:
|
|
7249
|
+
className: X(
|
|
7249
7250
|
"rounded-lg z-999 overflow-y-auto min-w-[var(--radix-select-trigger-width)] bg-bg-1 border border-border-2 data-[state=open]:animate-popover-in shadow-sm",
|
|
7250
7251
|
"p-px",
|
|
7251
7252
|
n === "popper" && "max-h-82 w-full min-w-(--radix-select-trigger-width) scroll-my-1",
|
|
@@ -7291,7 +7292,7 @@ const cd = [
|
|
|
7291
7292
|
}) => /* @__PURE__ */ p.jsxs(
|
|
7292
7293
|
"div",
|
|
7293
7294
|
{
|
|
7294
|
-
className:
|
|
7295
|
+
className: X(
|
|
7295
7296
|
"fixed top-0 left-0 inset-0 shrink-0 overflow-y-auto overflow-x-hidden z-999 transition-all",
|
|
7296
7297
|
r ? "pointer-events-auto lg:w-72" : "pointer-events-none lg:pointer-events-auto lg:w-21",
|
|
7297
7298
|
t
|
|
@@ -7300,7 +7301,7 @@ const cd = [
|
|
|
7300
7301
|
/* @__PURE__ */ p.jsx(
|
|
7301
7302
|
"div",
|
|
7302
7303
|
{
|
|
7303
|
-
className:
|
|
7304
|
+
className: X(
|
|
7304
7305
|
"bg-overlay w-full h-full transition-opacity lg:hidden backdrop-blur-xs",
|
|
7305
7306
|
r ? "opacity-100" : "opacity-0"
|
|
7306
7307
|
),
|
|
@@ -7310,7 +7311,7 @@ const cd = [
|
|
|
7310
7311
|
/* @__PURE__ */ p.jsxs(
|
|
7311
7312
|
"nav",
|
|
7312
7313
|
{
|
|
7313
|
-
className:
|
|
7314
|
+
className: X(
|
|
7314
7315
|
"absolute px-5 w-72 py-5 top-0 shrink-0 transition-all left-0 h-full bg-bg-1 lg:border-r lg:border-r-border-2",
|
|
7315
7316
|
r ? "translate-x-0" : "-translate-x-full lg:translate-x-0 lg:w-21"
|
|
7316
7317
|
),
|
|
@@ -7320,7 +7321,7 @@ const cd = [
|
|
|
7320
7321
|
/* @__PURE__ */ p.jsx(
|
|
7321
7322
|
"span",
|
|
7322
7323
|
{
|
|
7323
|
-
className:
|
|
7324
|
+
className: X(
|
|
7324
7325
|
"text-text-1 transition-opacity font-bold text-2xl",
|
|
7325
7326
|
r ? "opacity-100" : "opacity-0"
|
|
7326
7327
|
),
|
|
@@ -7332,7 +7333,7 @@ const cd = [
|
|
|
7332
7333
|
/* @__PURE__ */ p.jsx(
|
|
7333
7334
|
"p",
|
|
7334
7335
|
{
|
|
7335
|
-
className:
|
|
7336
|
+
className: X(
|
|
7336
7337
|
"mb-2 text-text-2 text-sm transition-opacity",
|
|
7337
7338
|
r ? "opacity-100" : "opacity-0"
|
|
7338
7339
|
),
|
|
@@ -7345,7 +7346,7 @@ const cd = [
|
|
|
7345
7346
|
"button",
|
|
7346
7347
|
{
|
|
7347
7348
|
onClick: g,
|
|
7348
|
-
className:
|
|
7349
|
+
className: X(
|
|
7349
7350
|
"h-10 w-full group transition-[width] rounded-lg overflow-hidden text-sm text-text-2 px-3 cursor-pointer flex items-center gap-3",
|
|
7350
7351
|
"hover:text-text-1 transition-[color]",
|
|
7351
7352
|
d && "bg-primary-500 text-text-3 hover:text-text-3",
|
|
@@ -7355,7 +7356,7 @@ const cd = [
|
|
|
7355
7356
|
/* @__PURE__ */ p.jsx(
|
|
7356
7357
|
h,
|
|
7357
7358
|
{
|
|
7358
|
-
className:
|
|
7359
|
+
className: X(
|
|
7359
7360
|
"w-5 h-5 text-text-2 group-hover:text-text-1 transition-colors shrink-0",
|
|
7360
7361
|
d && "text-text-3 group-hover:text-text-3"
|
|
7361
7362
|
)
|
|
@@ -7364,7 +7365,7 @@ const cd = [
|
|
|
7364
7365
|
/* @__PURE__ */ p.jsx(
|
|
7365
7366
|
"p",
|
|
7366
7367
|
{
|
|
7367
|
-
className:
|
|
7368
|
+
className: X(
|
|
7368
7369
|
"transition-opacity",
|
|
7369
7370
|
r ? "opacity-100" : "opacity-0"
|
|
7370
7371
|
),
|
|
@@ -7387,13 +7388,13 @@ const cd = [
|
|
|
7387
7388
|
currentStep: t = 0,
|
|
7388
7389
|
className: n,
|
|
7389
7390
|
labelClassName: r
|
|
7390
|
-
}) => /* @__PURE__ */ p.jsx("div", { className:
|
|
7391
|
+
}) => /* @__PURE__ */ p.jsx("div", { className: X("flex items-center gap-4", n), children: e.map((o, s) => {
|
|
7391
7392
|
const i = t >= s;
|
|
7392
7393
|
return /* @__PURE__ */ p.jsxs(qs, { children: [
|
|
7393
7394
|
/* @__PURE__ */ p.jsx("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ p.jsxs(
|
|
7394
7395
|
"button",
|
|
7395
7396
|
{
|
|
7396
|
-
className:
|
|
7397
|
+
className: X(
|
|
7397
7398
|
"relative w-10 h-10 rounded-lg cursor-pointer bg-bg-1 text-text-2 border border-border-2 font-bold",
|
|
7398
7399
|
i && "bg-primary-500 border-none text-text-3"
|
|
7399
7400
|
),
|
|
@@ -7402,7 +7403,7 @@ const cd = [
|
|
|
7402
7403
|
/* @__PURE__ */ p.jsx(
|
|
7403
7404
|
"p",
|
|
7404
7405
|
{
|
|
7405
|
-
className:
|
|
7406
|
+
className: X(
|
|
7406
7407
|
"absolute left-1/2 -translate-x-1/2 top-full text-center w-fit text-sm font-normal translate-y-px",
|
|
7407
7408
|
i && "text-text-1",
|
|
7408
7409
|
r
|
|
@@ -7462,7 +7463,7 @@ const cd = [
|
|
|
7462
7463
|
className: t,
|
|
7463
7464
|
children: n,
|
|
7464
7465
|
...r
|
|
7465
|
-
}) => /* @__PURE__ */ p.jsx("button", { className:
|
|
7466
|
+
}) => /* @__PURE__ */ p.jsx("button", { className: X(gd({ variant: e, className: t })), ...r, children: n }), pn = Xs(vd), Bd = (e) => /* @__PURE__ */ p.jsx(
|
|
7466
7467
|
Vu,
|
|
7467
7468
|
{
|
|
7468
7469
|
className: "h-6 w-10 bg-bg-1 rounded-full relative cursor-pointer data-[state=checked]:bg-primary-500 border-border-2 border",
|
|
@@ -7478,7 +7479,7 @@ const cd = [
|
|
|
7478
7479
|
return /* @__PURE__ */ p.jsx(
|
|
7479
7480
|
"div",
|
|
7480
7481
|
{
|
|
7481
|
-
className:
|
|
7482
|
+
className: X(
|
|
7482
7483
|
"text-sm px-3 w-fit py-1 rounded-lg border outline-none",
|
|
7483
7484
|
n[t]
|
|
7484
7485
|
),
|
|
@@ -7577,11 +7578,11 @@ function $s() {
|
|
|
7577
7578
|
}, R.valueOf = function() {
|
|
7578
7579
|
return this.$d.getTime();
|
|
7579
7580
|
}, R.startOf = function(E, A) {
|
|
7580
|
-
var x = this, M = !!I.u(A) || A, W = I.p(E), y = function(
|
|
7581
|
-
var q = I.w(x.$u ? Date.UTC(x.$y, V,
|
|
7581
|
+
var x = this, M = !!I.u(A) || A, W = I.p(E), y = function(J, V) {
|
|
7582
|
+
var q = I.w(x.$u ? Date.UTC(x.$y, V, J) : new Date(x.$y, V, J), x);
|
|
7582
7583
|
return M ? q : q.endOf(l);
|
|
7583
|
-
}, D = function(
|
|
7584
|
-
return I.w(x.toDate()[
|
|
7584
|
+
}, D = function(J, V) {
|
|
7585
|
+
return I.w(x.toDate()[J].apply(x.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), x);
|
|
7585
7586
|
}, F = this.$W, B = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
|
7586
7587
|
switch (W) {
|
|
7587
7588
|
case g:
|
|
@@ -7638,7 +7639,7 @@ function $s() {
|
|
|
7638
7639
|
return V && (V[q] || V(A, M)) || Z[q].slice(0, se);
|
|
7639
7640
|
}, G = function(V) {
|
|
7640
7641
|
return I.s(y % 12 || 12, V, "0");
|
|
7641
|
-
},
|
|
7642
|
+
}, J = re || function(V, q, Z) {
|
|
7642
7643
|
var se = V < 12 ? "AM" : "PM";
|
|
7643
7644
|
return Z ? se.toLowerCase() : se;
|
|
7644
7645
|
};
|
|
@@ -7678,9 +7679,9 @@ function $s() {
|
|
|
7678
7679
|
case "hh":
|
|
7679
7680
|
return G(2);
|
|
7680
7681
|
case "a":
|
|
7681
|
-
return
|
|
7682
|
+
return J(y, D, !0);
|
|
7682
7683
|
case "A":
|
|
7683
|
-
return
|
|
7684
|
+
return J(y, D, !1);
|
|
7684
7685
|
case "m":
|
|
7685
7686
|
return String(D);
|
|
7686
7687
|
case "mm":
|
|
@@ -7943,8 +7944,8 @@ const Ed = (e, t) => {
|
|
|
7943
7944
|
}
|
|
7944
7945
|
], _d = ({
|
|
7945
7946
|
locale: e = "en",
|
|
7946
|
-
|
|
7947
|
-
|
|
7947
|
+
date: t,
|
|
7948
|
+
setDate: n,
|
|
7948
7949
|
rootClassName: r,
|
|
7949
7950
|
buttonDayClassName: o,
|
|
7950
7951
|
containerMonthDaysClassName: s
|
|
@@ -7956,7 +7957,7 @@ const Ed = (e, t) => {
|
|
|
7956
7957
|
return /* @__PURE__ */ p.jsxs(
|
|
7957
7958
|
"div",
|
|
7958
7959
|
{
|
|
7959
|
-
className:
|
|
7960
|
+
className: X(
|
|
7960
7961
|
"border-border-2 border py-3 px-4 bg-bg-1 rounded-lg w-fit",
|
|
7961
7962
|
r
|
|
7962
7963
|
),
|
|
@@ -8024,7 +8025,7 @@ const Ed = (e, t) => {
|
|
|
8024
8025
|
/* @__PURE__ */ p.jsxs(
|
|
8025
8026
|
"div",
|
|
8026
8027
|
{
|
|
8027
|
-
className:
|
|
8028
|
+
className: X("grid grid-cols-7 gap-y-2", s),
|
|
8028
8029
|
children: [
|
|
8029
8030
|
kd.map((h) => /* @__PURE__ */ p.jsx(
|
|
8030
8031
|
"p",
|
|
@@ -8041,7 +8042,7 @@ const Ed = (e, t) => {
|
|
|
8041
8042
|
{
|
|
8042
8043
|
variant: "ghost",
|
|
8043
8044
|
onClick: () => n(h.toDate()),
|
|
8044
|
-
className:
|
|
8045
|
+
className: X(
|
|
8045
8046
|
"text-center outline-none text-text-1 justify-self-center text-sm w-full justify-center w-8 h-8 font-normal",
|
|
8046
8047
|
!g && "text-text-2",
|
|
8047
8048
|
b && "bg-bg-2 text-text-1 font-medium",
|
|
@@ -8068,7 +8069,7 @@ const Ed = (e, t) => {
|
|
|
8068
8069
|
}) => /* @__PURE__ */ p.jsx(
|
|
8069
8070
|
Ec,
|
|
8070
8071
|
{
|
|
8071
|
-
className:
|
|
8072
|
+
className: X(
|
|
8072
8073
|
"fixed inset-0 z-50 bg-overlay",
|
|
8073
8074
|
"data-[state=open]:animate-overlay-in data-[state=closed]:animate-overlay-out",
|
|
8074
8075
|
e
|
|
@@ -8084,7 +8085,7 @@ const Ed = (e, t) => {
|
|
|
8084
8085
|
/* @__PURE__ */ p.jsx(
|
|
8085
8086
|
Rc,
|
|
8086
8087
|
{
|
|
8087
|
-
className:
|
|
8088
|
+
className: X(
|
|
8088
8089
|
"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2",
|
|
8089
8090
|
"bg-bg-1 border border-border-2 rounded-xl p-6 shadow-lg",
|
|
8090
8091
|
"data-[state=open]:animate-dialog-in data-[state=closed]:animate-dialog-out",
|
|
@@ -8095,10 +8096,10 @@ const Ed = (e, t) => {
|
|
|
8095
8096
|
children: t
|
|
8096
8097
|
}
|
|
8097
8098
|
)
|
|
8098
|
-
] }), Hs = ({ className: e, ...t }) => /* @__PURE__ */ p.jsx("div", { className:
|
|
8099
|
+
] }), Hs = ({ className: e, ...t }) => /* @__PURE__ */ p.jsx("div", { className: X("flex flex-col gap-1.5 mb-4", e), ...t }), Vs = ({ className: e, ...t }) => /* @__PURE__ */ p.jsx("div", { className: X("flex justify-end gap-3 mt-6", e), ...t }), Ys = ({ className: e, ...t }) => /* @__PURE__ */ p.jsx(
|
|
8099
8100
|
Pc,
|
|
8100
8101
|
{
|
|
8101
|
-
className:
|
|
8102
|
+
className: X("text-lg font-semibold text-text-1", e),
|
|
8102
8103
|
...t
|
|
8103
8104
|
}
|
|
8104
8105
|
), Us = ({
|
|
@@ -8107,7 +8108,7 @@ const Ed = (e, t) => {
|
|
|
8107
8108
|
}) => /* @__PURE__ */ p.jsx(
|
|
8108
8109
|
Ac,
|
|
8109
8110
|
{
|
|
8110
|
-
className:
|
|
8111
|
+
className: X("text-sm text-text-2", e),
|
|
8111
8112
|
...t
|
|
8112
8113
|
}
|
|
8113
8114
|
), Gs = ({
|
|
@@ -8117,7 +8118,7 @@ const Ed = (e, t) => {
|
|
|
8117
8118
|
}) => /* @__PURE__ */ p.jsx(
|
|
8118
8119
|
kc,
|
|
8119
8120
|
{
|
|
8120
|
-
className:
|
|
8121
|
+
className: X(
|
|
8121
8122
|
"absolute right-4 top-4 rounded-md p-1 text-text-2 hover:text-text-1 hover:bg-bg-2 transition-colors",
|
|
8122
8123
|
"focus:outline-none focus:ring-2 focus:ring-border-1/80",
|
|
8123
8124
|
e
|
|
@@ -8193,24 +8194,31 @@ const Hd = ({
|
|
|
8193
8194
|
locale: t = "es",
|
|
8194
8195
|
className: n,
|
|
8195
8196
|
Icon: r,
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8197
|
+
date: o,
|
|
8198
|
+
setDate: s,
|
|
8199
|
+
error: i,
|
|
8200
|
+
...a
|
|
8199
8201
|
}) => {
|
|
8200
|
-
const
|
|
8202
|
+
const c = ye(o).locale(t).format("DD-MM-YYYY");
|
|
8201
8203
|
return /* @__PURE__ */ p.jsxs(ru, { children: [
|
|
8202
8204
|
/* @__PURE__ */ p.jsx(ou, { asChild: !0, children: /* @__PURE__ */ p.jsxs(
|
|
8203
8205
|
"button",
|
|
8204
8206
|
{
|
|
8205
|
-
className:
|
|
8207
|
+
className: X(
|
|
8206
8208
|
"h-10 px-3 flex items-center bg-bg-1 gap-3 rounded-lg border border-border-1 text-sm text-text-2 min-w-sm justify-between cursor-pointer",
|
|
8207
8209
|
o && "text-text-1",
|
|
8210
|
+
i && "border-danger",
|
|
8208
8211
|
n
|
|
8209
8212
|
),
|
|
8210
|
-
...
|
|
8213
|
+
...a,
|
|
8211
8214
|
children: [
|
|
8212
|
-
o ?
|
|
8213
|
-
r ? /* @__PURE__ */ p.jsx(r, { className: "text-text-2 w-5 h-5" }) : /* @__PURE__ */ p.jsx(
|
|
8215
|
+
o ? c : e,
|
|
8216
|
+
r ? /* @__PURE__ */ p.jsx(r, { className: "text-text-2 w-5 h-5" }) : /* @__PURE__ */ p.jsx(
|
|
8217
|
+
Zu,
|
|
8218
|
+
{
|
|
8219
|
+
className: X("text-text-2 w-5 h-5", i && "text-danger")
|
|
8220
|
+
}
|
|
8221
|
+
)
|
|
8214
8222
|
]
|
|
8215
8223
|
}
|
|
8216
8224
|
) }),
|
|
@@ -8219,14 +8227,14 @@ const Hd = ({
|
|
|
8219
8227
|
{
|
|
8220
8228
|
sideOffset: 8,
|
|
8221
8229
|
align: "start",
|
|
8222
|
-
className:
|
|
8230
|
+
className: X(
|
|
8223
8231
|
"p-2 z-999 border-border-2 rounded-lg border bg-bg-1 data-[state=open]:animate-popover-in"
|
|
8224
8232
|
),
|
|
8225
8233
|
children: /* @__PURE__ */ p.jsx(
|
|
8226
8234
|
_d,
|
|
8227
8235
|
{
|
|
8228
|
-
|
|
8229
|
-
|
|
8236
|
+
date: o,
|
|
8237
|
+
setDate: s,
|
|
8230
8238
|
rootClassName: "border-none p-0"
|
|
8231
8239
|
}
|
|
8232
8240
|
)
|