@levo-so/studio 0.1.101 → 0.1.103
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/{AuthProvider-56TywIOB.js → AuthProvider-C6bvedwF.js} +16 -16
- package/Beams-DboMUgCv.js +102 -0
- package/{BillingStep-Brc1Mzo3.js → BillingStep-BA3H9BVu.js} +1 -1
- package/{Button-XTKnNIl9.js → Button-CZycqusY.js} +249 -138
- package/Button-lUfKisu8.js +116 -0
- package/CollectionField-xa-jed3_.js +232 -0
- package/CollectionInput-CpNGIXJx.js +147 -0
- package/DateTimeWidget-DP_nMhqe.js +256 -0
- package/Dialog-IrII0ugb.js +130 -0
- package/Dots-a8xSboDv.js +100 -0
- package/{EntryCard-DTcx6wfA.js → EntryCard-CQpKNX7G.js} +4 -4
- package/Grid-BJQvxnks.js +99 -0
- package/{LoginCard-CnHmCKUF.js → LoginCard-Cyvm-y_q.js} +3 -3
- package/{LoginForm-Ck-xFaDg.js → LoginForm-_44FtvWg.js} +207 -206
- package/{LoginModal-BdYM8INu.js → LoginModal-Cyw_XKvz.js} +4 -4
- package/{MessageCard-ChDBqLVG.js → MessageCard-C2lNTxFx.js} +2 -2
- package/{MessageFooter-AzAtJWMo.js → MessageFooter-59Pziq3i.js} +2 -2
- package/{ModalManager-SggxCIno.js → ModalManager-DHkd0Zdb.js} +1 -1
- package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-C8iZjo06.js} +3 -3
- package/PhoneWidget-CxxxDXkz.js +100 -0
- package/{Popover-BdKCElnb.js → Popover-DOvRAGzc.js} +19 -20
- package/PopupRenderer-C7OHYphU-Ct5T6tWM.js +2668 -0
- package/RichTextWidget-BqlcssWt.js +113 -0
- package/RteThemeProvider-Cfepkyer.js +20 -0
- package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DrLMN18M.js} +17 -17
- package/Toolbar-BwxoYWO_.js +738 -0
- package/Tooltip-NEMQqPyr.js +67 -0
- package/VerifyButton-TNkt-SDu.js +177 -0
- package/authentication-hnV1BI8s.js +36 -0
- package/bookingCard-BDyuBC6X.js +636 -0
- package/collection.d.ts +83 -0
- package/collection.js +9 -8
- package/{dialog-Dw6n_36P.js → dialog-C8-iHixJ.js} +32 -32
- package/dist-CG-pwDW0.js +3188 -0
- package/generateRadiusScale-BpcgkGtN.js +71 -0
- package/getFieldValidations-CSkSV2hW.js +90 -0
- package/index.d.ts +96 -9
- package/index.js +6021 -7731
- package/inlineRteTheme-Ajq9PNpQ.js +9 -0
- package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DKCIjzlR.js} +41 -62
- package/package.json +38 -40
- package/studio.css +1 -1
- package/useLogin-B2qE8710.js +127 -0
- package/{utils-kDaDLLGt.js → utils-CZLafTgN.js} +1 -1
- package/{widgets-CWDiqXm9.js → widgets-eu5zXTf-.js} +58 -125
- package/Beams-B0O3uyYF.js +0 -118
- package/CollectionInput-cmJ0RXzG.js +0 -132
- package/DateTimeWidget-B5lBr0_R.js +0 -255
- package/Dots-DjezbpLp.js +0 -137
- package/Grid-C9aUfXM-.js +0 -145
- package/Input-Btdc1Dee.js +0 -293
- package/PhoneWidget-BRIAve47.js +0 -100
- package/RichTextWidget-CjEoGecM.js +0 -1136
- package/Tooltip-BOq5vSOW.js +0 -68
- package/VerifyButton-Bl2QqMpB.js +0 -273
- package/bookingCard-D3ZSjq-P.js +0 -577
- package/dist-DuTd566a.js +0 -3112
- package/getFieldValidations-DZnDgNI0.js +0 -159
- /package/{Gradient-B1K9Yi04.js → Gradient-NacpoDCM.js} +0 -0
- /package/{Waves-BkaAfGqA.js → Waves-DUuT_IFr.js} +0 -0
- /package/{card-BQr9258p.js → card-E2LKF9nT.js} +0 -0
- /package/{theme.cssm-2YTdd8Yh.js → theme.cssm-BXDp-ojp.js} +0 -0
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
|
-
import { f as t, r as n } from "./Input-Btdc1Dee.js";
|
|
3
|
-
import { t as ee } from "./CollectionInput-cmJ0RXzG.js";
|
|
4
|
-
import { a as r, i, n as a, r as o, t as s } from "./Popover-BdKCElnb.js";
|
|
5
|
-
import { useEffect as te, useRef as c, useState as l } from "react";
|
|
6
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
import { FieldInterfaces as f } from "@levo-so/core";
|
|
8
|
-
import p from "dayjs";
|
|
9
|
-
import { c as m } from "react/compiler-runtime";
|
|
10
|
-
import h from "clsx";
|
|
11
|
-
import { DayPicker as ne, getDefaultClassNames as g } from "react-day-picker";
|
|
12
|
-
import { useController as _ } from "react-hook-form";
|
|
13
|
-
import { IconCalendar as re, IconChevronDown as v, IconChevronLeft as y, IconChevronRight as b, IconX as x } from "@tabler/icons-react";
|
|
14
|
-
//#region ../../libraries/react-collection/dist/widgets/dateTimeWidget/DateTimeWidget.cssm.js
|
|
15
|
-
var ie = "rpx4b10", ae = "rpx4b11", oe = "rpx4b12", se = "rpx4b14 _6o7s4x0", ce = "rpx4b15", le = "rpx4b17", ue = "rpx4b18", de = "rpx4b19", fe = "rpx4b1a", pe = "rpx4b1b", me = "rpx4b1c", he = "rpx4b1d", ge = "rpx4b1e", _e = "rpx4b1f", ve = "rpx4b1g", ye = "rpx4b1h", be = "rpx4b1i", xe = "rpx4b1j", Se = "rpx4b1k", Ce = "rpx4b1l", we = "rpx4b1m", Te = "rpx4b1n", Ee = "rpx4b1o", De = "rpx4b1p", Oe = "rpx4b1q", ke = "rpx4b1r", Ae = "rpx4b1s", je = "rpx4b1t", Me = "rpx4b1u", Ne = "rpx4b1v", Pe = (e) => {
|
|
16
|
-
if (e) {
|
|
17
|
-
let t = new Date(e);
|
|
18
|
-
return Number.isNaN(t.getTime()) ? null : t;
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}, Fe = (e, t) => e ? t ? p(e).format("D MMMM, YYYY — h:mm A") : p(e).format("D MMMM, YYYY") : "", Ie = (e) => {
|
|
22
|
-
let t = m(19), { value: n, onChange: ee } = e, [r, i] = l(-1), a = c(null), o;
|
|
23
|
-
t[0] === n ? o = t[1] : (o = () => {
|
|
24
|
-
if (!n) return -1;
|
|
25
|
-
let e = n.getHours(), t = n.getMinutes();
|
|
26
|
-
return e * 4 + Math.floor(t / 15);
|
|
27
|
-
}, t[0] = n, t[1] = o);
|
|
28
|
-
let s = o, f, p;
|
|
29
|
-
t[2] === s ? (f = t[3], p = t[4]) : (f = () => {
|
|
30
|
-
let e = s();
|
|
31
|
-
e >= 0 && a.current && a.current.querySelector(`[data-time-index="${e}"]`)?.scrollIntoView({
|
|
32
|
-
block: "center",
|
|
33
|
-
behavior: "smooth"
|
|
34
|
-
});
|
|
35
|
-
}, p = [s], t[2] = s, t[3] = f, t[4] = p), te(f, p);
|
|
36
|
-
let ne;
|
|
37
|
-
t[5] !== ee || t[6] !== n ? (ne = (e, t) => {
|
|
38
|
-
let r = t * 15, a = n ? new Date(n) : /* @__PURE__ */ new Date();
|
|
39
|
-
a.setHours(e, r, 0, 0), ee(a), i(e * 4 + t);
|
|
40
|
-
}, t[5] = ee, t[6] = n, t[7] = ne) : ne = t[7];
|
|
41
|
-
let g = ne, _;
|
|
42
|
-
t[8] !== r || t[9] !== g ? (_ = (e) => {
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
let t = (e) => {
|
|
45
|
-
let t = a.current?.querySelector(`[data-time-index="${e}"]`);
|
|
46
|
-
t?.scrollIntoView({
|
|
47
|
-
block: "center",
|
|
48
|
-
behavior: "smooth"
|
|
49
|
-
}), t?.focus();
|
|
50
|
-
};
|
|
51
|
-
bb48: switch (e.key) {
|
|
52
|
-
case "ArrowUp": {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
let n = r - 1 < 0 ? 95 : r - 1;
|
|
55
|
-
i(n), t(n);
|
|
56
|
-
break bb48;
|
|
57
|
-
}
|
|
58
|
-
case "ArrowDown": {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
let n = r + 1 >= 96 ? 0 : r + 1;
|
|
61
|
-
i(n), t(n);
|
|
62
|
-
break bb48;
|
|
63
|
-
}
|
|
64
|
-
case "Enter":
|
|
65
|
-
e.preventDefault(), r >= 0 && g(Math.floor(r / 4), r % 4);
|
|
66
|
-
break bb48;
|
|
67
|
-
case "Escape": i(-1);
|
|
68
|
-
}
|
|
69
|
-
}, t[8] = r, t[9] = g, t[10] = _) : _ = t[10];
|
|
70
|
-
let re = _, v = s(), y;
|
|
71
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ u("div", {
|
|
72
|
-
className: je,
|
|
73
|
-
children: "Time"
|
|
74
|
-
}), t[11] = y) : y = t[11];
|
|
75
|
-
let b;
|
|
76
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (b = Array.from({ length: 24 }), t[12] = b) : b = t[12];
|
|
77
|
-
let x;
|
|
78
|
-
t[13] !== v || t[14] !== g ? (x = b.map((e, t) => {
|
|
79
|
-
let n = t === 0 ? 12 : t > 12 ? t - 12 : t, ee = t >= 12 ? "PM" : "AM";
|
|
80
|
-
return Array.from({ length: 4 }).map((e, r) => {
|
|
81
|
-
let i = r * 15, a = t * 4 + r, o = a === v, s = `${n}:${i.toString().padStart(2, "0")} ${ee}`;
|
|
82
|
-
return /* @__PURE__ */ u("button", {
|
|
83
|
-
type: "button",
|
|
84
|
-
role: "option",
|
|
85
|
-
"aria-selected": o,
|
|
86
|
-
"data-time-index": a,
|
|
87
|
-
className: h(Ne, o && "rpx4b1w"),
|
|
88
|
-
onClick: () => g(t, r),
|
|
89
|
-
tabIndex: o ? 0 : -1,
|
|
90
|
-
children: s
|
|
91
|
-
}, a);
|
|
92
|
-
});
|
|
93
|
-
}), t[13] = v, t[14] = g, t[15] = x) : x = t[15];
|
|
94
|
-
let ie;
|
|
95
|
-
return t[16] !== re || t[17] !== x ? (ie = /* @__PURE__ */ d("div", {
|
|
96
|
-
className: Ae,
|
|
97
|
-
children: [y, /* @__PURE__ */ u("div", {
|
|
98
|
-
ref: a,
|
|
99
|
-
className: Me,
|
|
100
|
-
onKeyDown: re,
|
|
101
|
-
tabIndex: 0,
|
|
102
|
-
role: "listbox",
|
|
103
|
-
"aria-label": "Select time",
|
|
104
|
-
children: x
|
|
105
|
-
})]
|
|
106
|
-
}), t[16] = re, t[17] = x, t[18] = ie) : ie = t[18], ie;
|
|
107
|
-
}, Le = (te) => {
|
|
108
|
-
let c = m(160), { field: p } = te, { key: v, label: y, helper_text: b, readonly: Ae } = p, je = v === void 0 ? "" : v, Me = y === void 0 ? "" : y, Ne = b === void 0 ? "" : b, Le = Ae === void 0 ? !1 : Ae, S = je, [ze, Be] = l(!1), C;
|
|
109
|
-
c[0] === p ? C = c[1] : (C = e(p), c[0] = p, c[1] = C);
|
|
110
|
-
let Ve;
|
|
111
|
-
c[2] !== S || c[3] !== C ? (Ve = {
|
|
112
|
-
name: S,
|
|
113
|
-
rules: C
|
|
114
|
-
}, c[2] = S, c[3] = C, c[4] = Ve) : Ve = c[4];
|
|
115
|
-
let { field: He, fieldState: Ue } = _(Ve), w, T, E, D, O;
|
|
116
|
-
c[5] === He ? (w = c[6], T = c[7], E = c[8], D = c[9], O = c[10]) : ({value: O, onBlur: w, onChange: T, ref: E, ...D} = He, c[5] = He, c[6] = w, c[7] = T, c[8] = E, c[9] = D, c[10] = O);
|
|
117
|
-
let We = !!p?.required, Ge = Ue?.error?.message, k = p?.field_interface === f.DateTimeWidget, A, Ke;
|
|
118
|
-
c[11] !== k || c[12] !== O ? (A = Pe(O), Ke = Fe(A, k), c[11] = k, c[12] = O, c[13] = A, c[14] = Ke) : (A = c[13], Ke = c[14]);
|
|
119
|
-
let qe = Ke, j, M, N, P, F, I, L, R, z, B, V, H, U, W, G, Je, K, q, Ye, Xe, Ze, Qe, $e, et, tt, nt, J, Y, rt, X, it, at, ot, st, ct, Z, lt, ut, dt, ft, pt, Q, mt;
|
|
120
|
-
if (c[15] !== qe || c[16] !== k || c[17] !== Ge || c[18] !== Ne || c[19] !== ze || c[20] !== We || c[21] !== Me || c[22] !== S || c[23] !== w || c[24] !== T || c[25] !== Le || c[26] !== E || c[27] !== D || c[28] !== A || c[29] !== O) {
|
|
121
|
-
let e = g(), t;
|
|
122
|
-
c[73] !== k || c[74] !== T || c[75] !== A ? (t = (e) => {
|
|
123
|
-
e && (k && A && e.setHours(A.getHours(), A.getMinutes(), 0, 0), T(e.toISOString()), k || Be(!1));
|
|
124
|
-
}, c[73] = k, c[74] = T, c[75] = A, c[76] = t) : t = c[76];
|
|
125
|
-
let te = t, l;
|
|
126
|
-
c[77] === T ? l = c[78] : (l = (e) => {
|
|
127
|
-
T(e.toISOString());
|
|
128
|
-
}, c[77] = T, c[78] = l), L = l;
|
|
129
|
-
let d;
|
|
130
|
-
c[79] === T ? d = c[80] : (d = (e) => {
|
|
131
|
-
e.preventDefault(), e.stopPropagation(), T(null);
|
|
132
|
-
}, c[79] = T, c[80] = d);
|
|
133
|
-
let f = d;
|
|
134
|
-
I = n, lt = Ne, ut = Le, dt = Ge, ft = S, pt = We, Q = Me, F = a, st = ze, ct = Be;
|
|
135
|
-
let p;
|
|
136
|
-
c[81] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(re, { size: 18 }), c[81] = p) : p = c[81];
|
|
137
|
-
let m;
|
|
138
|
-
c[82] !== f || c[83] !== O ? (m = O ? /* @__PURE__ */ u("button", {
|
|
139
|
-
type: "button",
|
|
140
|
-
onClick: f,
|
|
141
|
-
"aria-label": "Clear date",
|
|
142
|
-
className: oe,
|
|
143
|
-
children: /* @__PURE__ */ u(x, { size: 14 })
|
|
144
|
-
}) : void 0, c[82] = f, c[83] = O, c[84] = m) : m = c[84], c[85] !== qe || c[86] !== S || c[87] !== w || c[88] !== E || c[89] !== D || c[90] !== m ? (Z = /* @__PURE__ */ u(r.Trigger, { render: /* @__PURE__ */ u("div", {
|
|
145
|
-
className: ie,
|
|
146
|
-
children: /* @__PURE__ */ u(ee, {
|
|
147
|
-
id: S,
|
|
148
|
-
ref: E,
|
|
149
|
-
value: qe,
|
|
150
|
-
readOnly: !0,
|
|
151
|
-
leftIcon: p,
|
|
152
|
-
rightIcon: m,
|
|
153
|
-
className: ae,
|
|
154
|
-
autoComplete: "off",
|
|
155
|
-
onBlur: w,
|
|
156
|
-
placeholder: "Select date",
|
|
157
|
-
...D
|
|
158
|
-
})
|
|
159
|
-
}) }), c[85] = qe, c[86] = S, c[87] = w, c[88] = E, c[89] = D, c[90] = m, c[91] = Z) : Z = c[91], P = i, N = o, at = "start", ot = 4, M = s, it = se;
|
|
160
|
-
let _ = k && "rpx4b16";
|
|
161
|
-
c[92] === _ ? X = c[93] : (X = h(ce, _), c[92] = _, c[93] = X), j = ne, $e = "single", et = A || void 0, tt = te, nt = "dropdown", c[94] === Symbol.for("react.memo_cache_sentinel") ? (J = new Date((/* @__PURE__ */ new Date()).getFullYear() - 100, 0), c[94] = J) : J = c[94], c[95] === Symbol.for("react.memo_cache_sentinel") ? (Y = new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11), c[95] = Y) : Y = c[95], rt = !0, mt = h(e.root, ue), R = de, z = fe, B = h(e.month_caption, pe), V = h(me, e.dropdowns), H = h(ge, e.dropdown), U = h(he, e.dropdown_root), W = h(_e, e.caption_label), G = h(ve, e.nav), Je = h(ye, e.button_previous), K = h(be, e.button_next), q = h(xe, e.weekdays), Ye = h(Se, e.weekday), Xe = h(Ce, e.week), Ze = h(we, e.day), Qe = h(Te, e.day_button), c[15] = qe, c[16] = k, c[17] = Ge, c[18] = Ne, c[19] = ze, c[20] = We, c[21] = Me, c[22] = S, c[23] = w, c[24] = T, c[25] = Le, c[26] = E, c[27] = D, c[28] = A, c[29] = O, c[30] = j, c[31] = M, c[32] = N, c[33] = P, c[34] = F, c[35] = I, c[36] = L, c[37] = R, c[38] = z, c[39] = B, c[40] = V, c[41] = H, c[42] = U, c[43] = W, c[44] = G, c[45] = Je, c[46] = K, c[47] = q, c[48] = Ye, c[49] = Xe, c[50] = Ze, c[51] = Qe, c[52] = $e, c[53] = et, c[54] = tt, c[55] = nt, c[56] = J, c[57] = Y, c[58] = rt, c[59] = X, c[60] = it, c[61] = at, c[62] = ot, c[63] = st, c[64] = ct, c[65] = Z, c[66] = lt, c[67] = ut, c[68] = dt, c[69] = ft, c[70] = pt, c[71] = Q, c[72] = mt;
|
|
162
|
-
} else j = c[30], M = c[31], N = c[32], P = c[33], F = c[34], I = c[35], L = c[36], R = c[37], z = c[38], B = c[39], V = c[40], H = c[41], U = c[42], W = c[43], G = c[44], Je = c[45], K = c[46], q = c[47], Ye = c[48], Xe = c[49], Ze = c[50], Qe = c[51], $e = c[52], et = c[53], tt = c[54], nt = c[55], J = c[56], Y = c[57], rt = c[58], X = c[59], it = c[60], at = c[61], ot = c[62], st = c[63], ct = c[64], Z = c[65], lt = c[66], ut = c[67], dt = c[68], ft = c[69], pt = c[70], Q = c[71], mt = c[72];
|
|
163
|
-
let ht;
|
|
164
|
-
c[96] !== R || c[97] !== z || c[98] !== B || c[99] !== V || c[100] !== H || c[101] !== U || c[102] !== W || c[103] !== G || c[104] !== Je || c[105] !== K || c[106] !== q || c[107] !== Ye || c[108] !== Xe || c[109] !== Ze || c[110] !== Qe || c[111] !== mt ? (ht = {
|
|
165
|
-
root: mt,
|
|
166
|
-
months: R,
|
|
167
|
-
month: z,
|
|
168
|
-
month_caption: B,
|
|
169
|
-
dropdowns: V,
|
|
170
|
-
dropdown: H,
|
|
171
|
-
dropdown_root: U,
|
|
172
|
-
caption_label: W,
|
|
173
|
-
nav: G,
|
|
174
|
-
button_previous: Je,
|
|
175
|
-
button_next: K,
|
|
176
|
-
weekdays: q,
|
|
177
|
-
weekday: Ye,
|
|
178
|
-
week: Xe,
|
|
179
|
-
day: Ze,
|
|
180
|
-
day_button: Qe,
|
|
181
|
-
selected: Ee,
|
|
182
|
-
today: De,
|
|
183
|
-
outside: Oe,
|
|
184
|
-
disabled: ke
|
|
185
|
-
}, c[96] = R, c[97] = z, c[98] = B, c[99] = V, c[100] = H, c[101] = U, c[102] = W, c[103] = G, c[104] = Je, c[105] = K, c[106] = q, c[107] = Ye, c[108] = Xe, c[109] = Ze, c[110] = Qe, c[111] = mt, c[112] = ht) : ht = c[112];
|
|
186
|
-
let gt;
|
|
187
|
-
c[113] === Symbol.for("react.memo_cache_sentinel") ? (gt = { Chevron: Re }, c[113] = gt) : gt = c[113];
|
|
188
|
-
let _t;
|
|
189
|
-
c[114] !== j || c[115] !== $e || c[116] !== et || c[117] !== tt || c[118] !== nt || c[119] !== J || c[120] !== Y || c[121] !== rt || c[122] !== ht ? (_t = /* @__PURE__ */ u(j, {
|
|
190
|
-
mode: $e,
|
|
191
|
-
selected: et,
|
|
192
|
-
onSelect: tt,
|
|
193
|
-
captionLayout: nt,
|
|
194
|
-
startMonth: J,
|
|
195
|
-
endMonth: Y,
|
|
196
|
-
showOutsideDays: rt,
|
|
197
|
-
classNames: ht,
|
|
198
|
-
components: gt
|
|
199
|
-
}), c[114] = j, c[115] = $e, c[116] = et, c[117] = tt, c[118] = nt, c[119] = J, c[120] = Y, c[121] = rt, c[122] = ht, c[123] = _t) : _t = c[123];
|
|
200
|
-
let vt;
|
|
201
|
-
c[124] !== k || c[125] !== L || c[126] !== A ? (vt = k && /* @__PURE__ */ u(Ie, {
|
|
202
|
-
value: A,
|
|
203
|
-
onChange: L
|
|
204
|
-
}), c[124] = k, c[125] = L, c[126] = A, c[127] = vt) : vt = c[127];
|
|
205
|
-
let yt;
|
|
206
|
-
c[128] !== X || c[129] !== _t || c[130] !== vt ? (yt = /* @__PURE__ */ d("div", {
|
|
207
|
-
className: X,
|
|
208
|
-
children: [_t, vt]
|
|
209
|
-
}), c[128] = X, c[129] = _t, c[130] = vt, c[131] = yt) : yt = c[131];
|
|
210
|
-
let bt;
|
|
211
|
-
c[132] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ u("div", {
|
|
212
|
-
className: le,
|
|
213
|
-
children: /* @__PURE__ */ u(t, {
|
|
214
|
-
variant: "ghost",
|
|
215
|
-
size: "sm",
|
|
216
|
-
onClick: () => Be(!1),
|
|
217
|
-
children: "Done"
|
|
218
|
-
})
|
|
219
|
-
}), c[132] = bt) : bt = c[132];
|
|
220
|
-
let xt;
|
|
221
|
-
c[133] !== M || c[134] !== it || c[135] !== yt ? (xt = /* @__PURE__ */ d(M, {
|
|
222
|
-
className: it,
|
|
223
|
-
children: [yt, bt]
|
|
224
|
-
}), c[133] = M, c[134] = it, c[135] = yt, c[136] = xt) : xt = c[136];
|
|
225
|
-
let St;
|
|
226
|
-
c[137] !== N || c[138] !== at || c[139] !== ot || c[140] !== xt ? (St = /* @__PURE__ */ u(N, {
|
|
227
|
-
align: at,
|
|
228
|
-
sideOffset: ot,
|
|
229
|
-
children: xt
|
|
230
|
-
}), c[137] = N, c[138] = at, c[139] = ot, c[140] = xt, c[141] = St) : St = c[141];
|
|
231
|
-
let Ct;
|
|
232
|
-
c[142] !== P || c[143] !== St ? (Ct = /* @__PURE__ */ u(P, { children: St }), c[142] = P, c[143] = St, c[144] = Ct) : Ct = c[144];
|
|
233
|
-
let $;
|
|
234
|
-
c[145] !== F || c[146] !== st || c[147] !== ct || c[148] !== Z || c[149] !== Ct ? ($ = /* @__PURE__ */ d(F, {
|
|
235
|
-
open: st,
|
|
236
|
-
onOpenChange: ct,
|
|
237
|
-
children: [Z, Ct]
|
|
238
|
-
}), c[145] = F, c[146] = st, c[147] = ct, c[148] = Z, c[149] = Ct, c[150] = $) : $ = c[150];
|
|
239
|
-
let wt;
|
|
240
|
-
return c[151] !== I || c[152] !== lt || c[153] !== ut || c[154] !== dt || c[155] !== ft || c[156] !== pt || c[157] !== Q || c[158] !== $ ? (wt = /* @__PURE__ */ u(I, {
|
|
241
|
-
helperText: lt,
|
|
242
|
-
readOnly: ut,
|
|
243
|
-
error: dt,
|
|
244
|
-
htmlFor: ft,
|
|
245
|
-
isRequired: pt,
|
|
246
|
-
label: Q,
|
|
247
|
-
children: $
|
|
248
|
-
}), c[151] = I, c[152] = lt, c[153] = ut, c[154] = dt, c[155] = ft, c[156] = pt, c[157] = Q, c[158] = $, c[159] = wt) : wt = c[159], wt;
|
|
249
|
-
};
|
|
250
|
-
function Re(e) {
|
|
251
|
-
let { orientation: t } = e;
|
|
252
|
-
return t === "left" ? /* @__PURE__ */ u(y, { size: 16 }) : t === "right" ? /* @__PURE__ */ u(b, { size: 16 }) : /* @__PURE__ */ u(v, { size: 14 });
|
|
253
|
-
}
|
|
254
|
-
//#endregion
|
|
255
|
-
export { Le as default };
|
package/Dots-DjezbpLp.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
import * as r from "motion/react-m";
|
|
5
|
-
//#region src/components/backgroundPresets/Dots.tsx
|
|
6
|
-
var i = e.memo(({ className: i, dotColor: a, dotSize: o, spacing: s, isAnimated: c = !1, speed: l }) => {
|
|
7
|
-
let u = a ?? "#00ff00", d = Math.max(Number(o) || 2, .1), f = Math.max(Number(s) || 30, 1), p = Math.max(Number(l) || 1, .01), m = e.useMemo(() => ({
|
|
8
|
-
cx: f / 2,
|
|
9
|
-
cy: f / 2,
|
|
10
|
-
r: d,
|
|
11
|
-
width: Math.max(f, 1),
|
|
12
|
-
height: Math.max(f, 1)
|
|
13
|
-
}), [f, d]), h = e.useMemo(() => `dots-pattern-${Math.random().toString(36).substring(2, 11)}`, []), g = e.useMemo(() => {
|
|
14
|
-
if (!c || !f || f <= 0) return [];
|
|
15
|
-
let e = [], t = Math.max(f, 2), n = Math.min(Math.ceil(100 / (t / 10)), 50), r = Math.min(Math.ceil(100 / (t / 10)), 50);
|
|
16
|
-
for (let i = 0; i < n; i++) for (let n = 0; n < r; n++) {
|
|
17
|
-
let r = Math.abs(Math.sin(i * 12.9898 + n * 78.233) * 43758.5453) % 1, a = Math.abs(Math.sin(i * 39.346 + n * 11.135) * 43758.5453) % 1, o = Math.abs(Math.sin(i * 71.123 + n * 23.456) * 43758.5453) % 1, s = Math.abs(Math.sin(i * 15.987 + n * 82.345) * 43758.5453) % 1;
|
|
18
|
-
e.push({
|
|
19
|
-
id: `${i}-${n}`,
|
|
20
|
-
x: Number((n * t / 10 + (r - .5) * 8).toFixed(2)),
|
|
21
|
-
y: Number((i * t / 10 + (a - .5) * 8).toFixed(2)),
|
|
22
|
-
delay: Number((o * 3).toFixed(2)),
|
|
23
|
-
amplitude: Number((2 + s * 3).toFixed(2))
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return e;
|
|
27
|
-
}, [c, f]);
|
|
28
|
-
return c ? /* @__PURE__ */ t("div", {
|
|
29
|
-
className: i,
|
|
30
|
-
style: {
|
|
31
|
-
position: "absolute",
|
|
32
|
-
inset: 0,
|
|
33
|
-
display: "flex",
|
|
34
|
-
height: "100%",
|
|
35
|
-
width: "100%",
|
|
36
|
-
alignItems: "center",
|
|
37
|
-
justifyContent: "center",
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
zIndex: -1
|
|
40
|
-
},
|
|
41
|
-
children: /* @__PURE__ */ n("svg", {
|
|
42
|
-
style: {
|
|
43
|
-
pointerEvents: "none",
|
|
44
|
-
position: "absolute",
|
|
45
|
-
zIndex: 0,
|
|
46
|
-
height: "100%",
|
|
47
|
-
width: "100%"
|
|
48
|
-
},
|
|
49
|
-
width: "100%",
|
|
50
|
-
height: "100%",
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
children: [/* @__PURE__ */ t("title", { children: "Animated Dots" }), g.map((e) => /* @__PURE__ */ t(r.circle, {
|
|
53
|
-
r: d,
|
|
54
|
-
fill: u,
|
|
55
|
-
initial: {
|
|
56
|
-
cx: `${e.x}%`,
|
|
57
|
-
cy: `${e.y}%`,
|
|
58
|
-
opacity: .3
|
|
59
|
-
},
|
|
60
|
-
animate: {
|
|
61
|
-
opacity: [
|
|
62
|
-
.3,
|
|
63
|
-
.8,
|
|
64
|
-
.3
|
|
65
|
-
],
|
|
66
|
-
cx: [
|
|
67
|
-
`${e.x}%`,
|
|
68
|
-
`${e.x + (e.amplitude || 0)}%`,
|
|
69
|
-
`${e.x - (e.amplitude || 0)}%`,
|
|
70
|
-
`${e.x}%`
|
|
71
|
-
],
|
|
72
|
-
cy: [
|
|
73
|
-
`${e.y}%`,
|
|
74
|
-
`${e.y - (e.amplitude || 0)}%`,
|
|
75
|
-
`${e.y + (e.amplitude || 0)}%`,
|
|
76
|
-
`${e.y}%`
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
transition: {
|
|
80
|
-
duration: Math.max(.1, 8 / p),
|
|
81
|
-
repeat: Infinity,
|
|
82
|
-
ease: "easeInOut",
|
|
83
|
-
delay: e.delay || 0
|
|
84
|
-
}
|
|
85
|
-
}, e.id))]
|
|
86
|
-
})
|
|
87
|
-
}) : /* @__PURE__ */ t("div", {
|
|
88
|
-
className: i,
|
|
89
|
-
style: {
|
|
90
|
-
position: "absolute",
|
|
91
|
-
inset: 0,
|
|
92
|
-
display: "flex",
|
|
93
|
-
height: "100%",
|
|
94
|
-
width: "100%",
|
|
95
|
-
alignItems: "center",
|
|
96
|
-
justifyContent: "center",
|
|
97
|
-
zIndex: -1
|
|
98
|
-
},
|
|
99
|
-
children: /* @__PURE__ */ n("svg", {
|
|
100
|
-
style: {
|
|
101
|
-
pointerEvents: "none",
|
|
102
|
-
position: "absolute",
|
|
103
|
-
zIndex: 0,
|
|
104
|
-
height: "100%",
|
|
105
|
-
width: "100%"
|
|
106
|
-
},
|
|
107
|
-
width: "100%",
|
|
108
|
-
height: "100%",
|
|
109
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ t("title", { children: "Static Dots" }),
|
|
112
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
|
|
113
|
-
id: h,
|
|
114
|
-
x: "0",
|
|
115
|
-
y: "0",
|
|
116
|
-
width: m.width,
|
|
117
|
-
height: m.height,
|
|
118
|
-
patternUnits: "userSpaceOnUse",
|
|
119
|
-
children: /* @__PURE__ */ t("circle", {
|
|
120
|
-
cx: m.cx,
|
|
121
|
-
cy: m.cy,
|
|
122
|
-
r: m.r,
|
|
123
|
-
fill: u
|
|
124
|
-
})
|
|
125
|
-
}) }),
|
|
126
|
-
/* @__PURE__ */ t("rect", {
|
|
127
|
-
width: "100%",
|
|
128
|
-
height: "100%",
|
|
129
|
-
fill: `url(#${h})`
|
|
130
|
-
})
|
|
131
|
-
]
|
|
132
|
-
})
|
|
133
|
-
});
|
|
134
|
-
}, (e, t) => e.className === t.className && e.dotColor === t.dotColor && e.dotSize === t.dotSize && e.spacing === t.spacing && e.isAnimated === t.isAnimated && e.speed === t.speed);
|
|
135
|
-
i.displayName = "BackgroundDots";
|
|
136
|
-
//#endregion
|
|
137
|
-
export { i as BackgroundDots };
|
package/Grid-C9aUfXM-.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
import * as r from "motion/react-m";
|
|
5
|
-
//#region src/components/backgroundPresets/Grid.tsx
|
|
6
|
-
var i = e.memo(({ className: i, lineColor: a, lineWidth: o, spacing: s, isInteractive: c = !1, hoverColor: l = "#93c5fd", rows: u, cols: d }) => {
|
|
7
|
-
let f = a ?? "#333333", p = Math.max(o ?? 1, .1), m = Math.max(s ?? 50, 1), h = Math.max(u ?? 150, 1), g = Math.max(d ?? 100, 1), _ = e.useMemo(() => Array(h).fill(1), [h]), v = e.useMemo(() => Array(g).fill(1), [g]), y = e.useMemo(() => ({
|
|
8
|
-
rowStyle: {
|
|
9
|
-
height: `${m}px`,
|
|
10
|
-
width: `${m * 2}px`,
|
|
11
|
-
borderLeft: `${p}px solid ${f}`
|
|
12
|
-
},
|
|
13
|
-
colStyle: {
|
|
14
|
-
height: `${m}px`,
|
|
15
|
-
width: `${m * 2}px`,
|
|
16
|
-
borderTop: `${p}px solid ${f}`,
|
|
17
|
-
borderRight: `${p}px solid ${f}`
|
|
18
|
-
},
|
|
19
|
-
iconStyle: {
|
|
20
|
-
top: `${-m / 3.8}px`,
|
|
21
|
-
left: `${-m / 2.4}px`,
|
|
22
|
-
color: f
|
|
23
|
-
}
|
|
24
|
-
}), [
|
|
25
|
-
m,
|
|
26
|
-
p,
|
|
27
|
-
f
|
|
28
|
-
]), b = e.useMemo(() => ({
|
|
29
|
-
hover: {
|
|
30
|
-
backgroundColor: l,
|
|
31
|
-
transition: { duration: 0 }
|
|
32
|
-
},
|
|
33
|
-
animate: { transition: { duration: 2 } }
|
|
34
|
-
}), [l]);
|
|
35
|
-
return c ? /* @__PURE__ */ t("div", {
|
|
36
|
-
className: i,
|
|
37
|
-
style: {
|
|
38
|
-
position: "absolute",
|
|
39
|
-
inset: 0,
|
|
40
|
-
display: "flex",
|
|
41
|
-
height: "100%",
|
|
42
|
-
width: "100%",
|
|
43
|
-
alignItems: "center",
|
|
44
|
-
justifyContent: "center",
|
|
45
|
-
overflow: "hidden",
|
|
46
|
-
zIndex: -1
|
|
47
|
-
},
|
|
48
|
-
children: /* @__PURE__ */ t("div", {
|
|
49
|
-
style: {
|
|
50
|
-
transform: "translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)",
|
|
51
|
-
position: "absolute",
|
|
52
|
-
top: "-25%",
|
|
53
|
-
left: "25%",
|
|
54
|
-
zIndex: 0,
|
|
55
|
-
display: "flex",
|
|
56
|
-
height: "100%",
|
|
57
|
-
width: "100%",
|
|
58
|
-
padding: "1rem"
|
|
59
|
-
},
|
|
60
|
-
children: _.map((e, i) => /* @__PURE__ */ t(r.div, {
|
|
61
|
-
style: {
|
|
62
|
-
...y.rowStyle,
|
|
63
|
-
position: "relative"
|
|
64
|
-
},
|
|
65
|
-
children: v.map((e, a) => /* @__PURE__ */ t(r.div, {
|
|
66
|
-
whileHover: b.hover,
|
|
67
|
-
animate: b.animate,
|
|
68
|
-
style: {
|
|
69
|
-
...y.colStyle,
|
|
70
|
-
position: "relative"
|
|
71
|
-
},
|
|
72
|
-
children: a % 2 == 0 && i % 2 == 0 ? /* @__PURE__ */ n("svg", {
|
|
73
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
74
|
-
fill: "none",
|
|
75
|
-
viewBox: "0 0 24 24",
|
|
76
|
-
strokeWidth: "1.5",
|
|
77
|
-
stroke: "currentColor",
|
|
78
|
-
style: {
|
|
79
|
-
...y.iconStyle,
|
|
80
|
-
pointerEvents: "none",
|
|
81
|
-
position: "absolute",
|
|
82
|
-
height: "1.5rem",
|
|
83
|
-
width: "2.5rem",
|
|
84
|
-
strokeWidth: "1px"
|
|
85
|
-
},
|
|
86
|
-
children: [/* @__PURE__ */ t("title", { children: "Grid Lines" }), /* @__PURE__ */ t("path", {
|
|
87
|
-
strokeLinecap: "round",
|
|
88
|
-
strokeLinejoin: "round",
|
|
89
|
-
d: "M12 6v12m6-6H6"
|
|
90
|
-
})]
|
|
91
|
-
}) : null
|
|
92
|
-
}, `col-${a}`))
|
|
93
|
-
}, `row-${i}`))
|
|
94
|
-
})
|
|
95
|
-
}) : /* @__PURE__ */ t("div", {
|
|
96
|
-
className: i,
|
|
97
|
-
style: {
|
|
98
|
-
position: "absolute",
|
|
99
|
-
inset: 0,
|
|
100
|
-
display: "flex",
|
|
101
|
-
height: "100%",
|
|
102
|
-
width: "100%",
|
|
103
|
-
alignItems: "center",
|
|
104
|
-
justifyContent: "center",
|
|
105
|
-
zIndex: -1
|
|
106
|
-
},
|
|
107
|
-
children: /* @__PURE__ */ n("svg", {
|
|
108
|
-
style: {
|
|
109
|
-
pointerEvents: "none",
|
|
110
|
-
position: "absolute",
|
|
111
|
-
zIndex: 0,
|
|
112
|
-
height: "100%",
|
|
113
|
-
width: "100%"
|
|
114
|
-
},
|
|
115
|
-
width: "100%",
|
|
116
|
-
height: "100%",
|
|
117
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ t("title", { children: "Grid Lines" }),
|
|
120
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
|
|
121
|
-
id: "grid-pattern",
|
|
122
|
-
x: "0",
|
|
123
|
-
y: "0",
|
|
124
|
-
width: m,
|
|
125
|
-
height: m,
|
|
126
|
-
patternUnits: "userSpaceOnUse",
|
|
127
|
-
children: /* @__PURE__ */ t("path", {
|
|
128
|
-
d: `M ${m} 0 L 0 0 0 ${m}`,
|
|
129
|
-
fill: "none",
|
|
130
|
-
stroke: f,
|
|
131
|
-
strokeWidth: p
|
|
132
|
-
})
|
|
133
|
-
}) }),
|
|
134
|
-
/* @__PURE__ */ t("rect", {
|
|
135
|
-
width: "100%",
|
|
136
|
-
height: "100%",
|
|
137
|
-
fill: "url(#grid-pattern)"
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
})
|
|
141
|
-
});
|
|
142
|
-
}, (e, t) => e.className === t.className && e.lineColor === t.lineColor && e.lineWidth === t.lineWidth && e.spacing === t.spacing && e.isInteractive === t.isInteractive && e.hoverColor === t.hoverColor && e.rows === t.rows && e.cols === t.cols);
|
|
143
|
-
i.displayName = "BackgroundGrid";
|
|
144
|
-
//#endregion
|
|
145
|
-
export { i as BackgroundGrid };
|