docthub-core-components 3.2.4 → 3.2.6
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/components/overrides/ui/footer/footer-routes.js +2 -0
- package/dist/components/overrides/ui/footer/presets.js +4 -0
- package/dist/components/overrides/ui/navigation-menu/organization-nav-routes.js +2 -0
- package/dist/components/overrides/ui/navigation-menu/presets.js +10 -4
- package/dist/components/overrides/ui/pickers/date-picker-field.js +55 -55
- package/dist/src/components/overrides/ui/footer/footer-routes.d.ts +1 -0
- package/dist/src/components/overrides/ui/navigation-menu/organization-nav-routes.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ const t = {
|
|
|
14
14
|
instituteSolution: "https://dev.dochub.in/institute/",
|
|
15
15
|
eventOrganizerSolution: "https://dev.dochub.in/event-organizer/",
|
|
16
16
|
membershipManagement: "https://dev.dochub.in/membership-management/",
|
|
17
|
+
marketingSolution: "https://dev.dochub.in/marketing-solution/",
|
|
17
18
|
qrCheckInApp: "https://dev.dochub.in/qr-check-in-app/",
|
|
18
19
|
enterpriseSolutions: "https://dev.dochub.in/enterprise-solutions/",
|
|
19
20
|
aboutUs: "https://dev.dochub.in/about-us/",
|
|
@@ -52,6 +53,7 @@ const t = {
|
|
|
52
53
|
instituteSolution: "https://www.docthub.com/institute",
|
|
53
54
|
eventOrganizerSolution: "https://www.docthub.com/event-organizer",
|
|
54
55
|
membershipManagement: "https://www.docthub.com/membership-management",
|
|
56
|
+
marketingSolution: "https://www.docthub.com/marketing-solution",
|
|
55
57
|
qrCheckInApp: "https://www.docthub.com/qr-check-in-app",
|
|
56
58
|
enterpriseSolutions: "https://www.docthub.com/enterprise-solutions",
|
|
57
59
|
aboutUs: "https://www.docthub.com/about-us",
|
|
@@ -141,6 +141,10 @@ function a() {
|
|
|
141
141
|
id: "membership-management",
|
|
142
142
|
label: "Membership Management",
|
|
143
143
|
href: e.membershipManagement
|
|
144
|
+
}, {
|
|
145
|
+
id: "marketing-solution",
|
|
146
|
+
label: "Marketing Solution",
|
|
147
|
+
href: e.marketingSolution
|
|
144
148
|
}, {
|
|
145
149
|
id: "qr-check-in-app",
|
|
146
150
|
label: "QR Check-In App",
|
|
@@ -5,6 +5,7 @@ const e = {
|
|
|
5
5
|
"institute-solution": "https://dev.dochub.in/institute",
|
|
6
6
|
"events-organizer-solution": "https://dev.dochub.in/event-organizer",
|
|
7
7
|
"membership-management": "https://dev.dochub.in/membership-management",
|
|
8
|
+
"marketing-solution": "https://dev.dochub.in/marketing-solution",
|
|
8
9
|
"qr-check-in-app": "https://dev.dochub.in/qr-check-in-app",
|
|
9
10
|
"what-is-enterprise": "https://dev.dochub.in/enterprise-solutions",
|
|
10
11
|
"request-demo": "https://dev.dochub.in/contact-us",
|
|
@@ -18,6 +19,7 @@ const e = {
|
|
|
18
19
|
"institute-solution": "https://www.docthub.com/institute",
|
|
19
20
|
"events-organizer-solution": "https://www.docthub.com/event-organizer",
|
|
20
21
|
"membership-management": "https://www.docthub.com/membership-management",
|
|
22
|
+
"marketing-solution": "https://www.docthub.com/marketing-solution",
|
|
21
23
|
"qr-check-in-app": "https://www.docthub.com/qr-check-in-app",
|
|
22
24
|
"what-is-enterprise": "https://www.docthub.com/enterprise-solutions",
|
|
23
25
|
"request-demo": "https://www.docthub.com/contact-us",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
3
|
import { INDIVIDUAL_NAV_ROUTES as i } from "./individual-nav-routes.js";
|
|
4
4
|
import { ORGANIZATION_NAV_ROUTES as s } from "./organization-nav-routes.js";
|
|
5
|
-
const
|
|
5
|
+
const n = [{
|
|
6
6
|
id: "for-individuals-explore",
|
|
7
7
|
title: "Explore",
|
|
8
8
|
sections: [{
|
|
@@ -125,7 +125,7 @@ const l = [{
|
|
|
125
125
|
/* @__PURE__ */ e("p", { className: "text-[11px] font-medium leading-4 text-neutral-56", children: "Available on iOS and Android" })
|
|
126
126
|
] })
|
|
127
127
|
] }) })
|
|
128
|
-
}],
|
|
128
|
+
}], l = [{
|
|
129
129
|
id: "for-organizations-business-solutions",
|
|
130
130
|
title: "Solutions",
|
|
131
131
|
sections: [{
|
|
@@ -155,6 +155,12 @@ const l = [{
|
|
|
155
155
|
description: "A Cloud Office for Professional Associations",
|
|
156
156
|
href: s["membership-management"],
|
|
157
157
|
icon: /* @__PURE__ */ e("img", { src: "/products/organization/membership-management.svg", alt: "Membership Management", className: "h-8 w-8 shrink-0", loading: "lazy" })
|
|
158
|
+
}, {
|
|
159
|
+
id: "marketing-solution",
|
|
160
|
+
label: "Marketing Solution",
|
|
161
|
+
description: "Reach the Right Audience",
|
|
162
|
+
href: s["marketing-solution"],
|
|
163
|
+
icon: /* @__PURE__ */ e("img", { src: "/products/organization/marketing-solution.svg", alt: "Marketing Solution", className: "h-10 w-10 shrink-0", loading: "lazy" })
|
|
158
164
|
}]
|
|
159
165
|
}]
|
|
160
166
|
}, {
|
|
@@ -233,6 +239,6 @@ const l = [{
|
|
|
233
239
|
] })
|
|
234
240
|
}];
|
|
235
241
|
export {
|
|
236
|
-
|
|
237
|
-
|
|
242
|
+
n as individualNavigationGroups,
|
|
243
|
+
l as organizationNavigationGroups
|
|
238
244
|
};
|
|
@@ -10,22 +10,22 @@ import { DayPicker as Fe } from "react-day-picker";
|
|
|
10
10
|
import { Input as Le } from "../../../ui/input.js";
|
|
11
11
|
import { Label as Re } from "../../../ui/label.js";
|
|
12
12
|
import { Popover as Te, PopoverTrigger as Oe, PopoverContent as Be } from "../../../ui/popover.js";
|
|
13
|
-
import { SelectContent as me, Select as pe, SelectItem as Ye, SelectTrigger as
|
|
13
|
+
import { SelectContent as me, Select as pe, SelectItem as Ye, SelectTrigger as he, SelectValue as ge } from "../../../ui/select.js";
|
|
14
14
|
import { cn as S } from "../../../../lib/utils.js";
|
|
15
15
|
import { mergeDisabledMatchers as Ke, minMaxDisabledMatchers as ze, calendarMonthAnchor as be, isDateWithinMinMaxLocalDay as Ue } from "./day-picker-bounds.js";
|
|
16
16
|
H.extend(Ae);
|
|
17
17
|
H.extend(Ce);
|
|
18
18
|
const oe = 100;
|
|
19
|
-
function de(
|
|
19
|
+
function de(h, D, e = /* @__PURE__ */ new Date()) {
|
|
20
20
|
const n = e.getFullYear();
|
|
21
21
|
let s = n - oe, a = n + oe;
|
|
22
|
-
return
|
|
22
|
+
return h && (s = Math.max(s, h.getFullYear())), D && (a = Math.min(a, D.getFullYear())), s > a && (s = n - oe, a = n + oe), {
|
|
23
23
|
minYear: s,
|
|
24
24
|
maxYear: a
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function ye(
|
|
28
|
-
const n =
|
|
27
|
+
function ye(h, D, e) {
|
|
28
|
+
const n = h.getFullYear(), {
|
|
29
29
|
minYear: s,
|
|
30
30
|
maxYear: a
|
|
31
31
|
} = de(D, e);
|
|
@@ -38,14 +38,14 @@ const We = o.memo(function(D) {
|
|
|
38
38
|
locale: a,
|
|
39
39
|
minDate: c,
|
|
40
40
|
maxDate: ee
|
|
41
|
-
} = D,
|
|
41
|
+
} = D, g = a === void 0 ? "en" : a, u = n.getFullYear(), L = n.getMonth();
|
|
42
42
|
let A;
|
|
43
|
-
e[0] !==
|
|
43
|
+
e[0] !== g ? (A = Array.from({
|
|
44
44
|
length: 12
|
|
45
45
|
}, (d, m) => {
|
|
46
46
|
const U = new Date(2024, m, 1);
|
|
47
|
-
return H(U).locale(
|
|
48
|
-
}), e[0] =
|
|
47
|
+
return H(U).locale(g).format("MMMM");
|
|
48
|
+
}), e[0] = g, e[1] = A) : A = e[1];
|
|
49
49
|
const I = A;
|
|
50
50
|
let X;
|
|
51
51
|
e[2] !== ee || e[3] !== c ? (X = de(c, ee), e[2] = ee, e[3] = c, e[4] = X) : X = e[4];
|
|
@@ -79,7 +79,7 @@ const We = o.memo(function(D) {
|
|
|
79
79
|
const d = new Date(n);
|
|
80
80
|
d.setMonth(d.getMonth() - 1), s(d);
|
|
81
81
|
}, e[16] = n, e[17] = s, e[18] = q) : q = e[18];
|
|
82
|
-
const
|
|
82
|
+
const w = q;
|
|
83
83
|
let J;
|
|
84
84
|
e[19] !== n || e[20] !== s ? (J = () => {
|
|
85
85
|
const d = new Date(n);
|
|
@@ -100,27 +100,27 @@ const We = o.memo(function(D) {
|
|
|
100
100
|
let se;
|
|
101
101
|
e[27] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ l(Ve, { className: "h-4 w-4" }), e[27] = se) : se = e[27];
|
|
102
102
|
let V;
|
|
103
|
-
e[28] !==
|
|
103
|
+
e[28] !== w ? (V = /* @__PURE__ */ l("button", { type: "button", onClick: w, className: "h-7 w-7 p-0 border border-gray-300 bg-white text-gray-700 hover:bg-gray-100 rounded-md flex items-center justify-center", children: se }), e[28] = w, e[29] = V) : V = e[29];
|
|
104
104
|
const le = "flex items-center gap-2", O = L.toString(), ae = I[L];
|
|
105
105
|
let j;
|
|
106
|
-
e[30] !== ae ? (j = /* @__PURE__ */ l(
|
|
106
|
+
e[30] !== ae ? (j = /* @__PURE__ */ l(he, { className: "w-32 h-8 text-sm", children: /* @__PURE__ */ l(ge, { children: ae }) }), e[30] = ae, e[31] = j) : j = e[31];
|
|
107
107
|
let Y;
|
|
108
|
-
e[32] !== I ? (Y = /* @__PURE__ */ l(me, { children: I.map(Xe) }), e[32] = I, e[33] = Y) : Y = e[33];
|
|
108
|
+
e[32] !== I ? (Y = /* @__PURE__ */ l(me, { className: "w-32 overflow-x-hidden", children: I.map(Xe) }), e[32] = I, e[33] = Y) : Y = e[33];
|
|
109
109
|
let v;
|
|
110
110
|
e[34] !== _ || e[35] !== O || e[36] !== j || e[37] !== Y ? (v = /* @__PURE__ */ C(pe, { value: O, onValueChange: _, children: [
|
|
111
111
|
j,
|
|
112
112
|
Y
|
|
113
113
|
] }), e[34] = _, e[35] = O, e[36] = j, e[37] = Y, e[38] = v) : v = e[38];
|
|
114
114
|
const B = pe, k = u.toString();
|
|
115
|
-
let w;
|
|
116
|
-
e[39] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ l(ge, { className: "w-20 h-8 text-sm", children: /* @__PURE__ */ l(he, {}) }), e[39] = w) : w = e[39];
|
|
117
115
|
let x;
|
|
118
|
-
e[
|
|
116
|
+
e[39] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ l(he, { className: "h-8 w-20 shrink-0 px-2 text-sm", children: /* @__PURE__ */ l(ge, {}) }), e[39] = x) : x = e[39];
|
|
117
|
+
let M;
|
|
118
|
+
e[40] !== N ? (M = /* @__PURE__ */ l(me, { className: "max-h-[200px] w-20 overflow-x-hidden", children: N.map(Ze) }), e[40] = N, e[41] = M) : M = e[41];
|
|
119
119
|
let $;
|
|
120
|
-
e[42] !== B || e[43] !== te || e[44] !== k || e[45] !==
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
] }), e[42] = B, e[43] = te, e[44] = k, e[45] =
|
|
120
|
+
e[42] !== B || e[43] !== te || e[44] !== k || e[45] !== M ? ($ = /* @__PURE__ */ C(B, { value: k, onValueChange: te, children: [
|
|
121
|
+
x,
|
|
122
|
+
M
|
|
123
|
+
] }), e[42] = B, e[43] = te, e[44] = k, e[45] = M, e[46] = $) : $ = e[46];
|
|
124
124
|
let b;
|
|
125
125
|
e[47] !== v || e[48] !== $ ? (b = /* @__PURE__ */ C("div", { className: le, children: [
|
|
126
126
|
v,
|
|
@@ -158,7 +158,7 @@ const We = o.memo(function(D) {
|
|
|
158
158
|
pattern: /^[0-9a-zA-Z\s]$/
|
|
159
159
|
}
|
|
160
160
|
}, He = o.memo(({
|
|
161
|
-
label:
|
|
161
|
+
label: h,
|
|
162
162
|
placeholder: D,
|
|
163
163
|
helperText: e,
|
|
164
164
|
required: n,
|
|
@@ -166,7 +166,7 @@ const We = o.memo(function(D) {
|
|
|
166
166
|
onSelect: a,
|
|
167
167
|
onChange: c,
|
|
168
168
|
className: ee,
|
|
169
|
-
minDate:
|
|
169
|
+
minDate: g,
|
|
170
170
|
maxDate: u,
|
|
171
171
|
disabled: L,
|
|
172
172
|
readOnly: A,
|
|
@@ -181,7 +181,7 @@ const We = o.memo(function(D) {
|
|
|
181
181
|
open: R,
|
|
182
182
|
onOpenChange: te,
|
|
183
183
|
dayPickerProps: q,
|
|
184
|
-
manual:
|
|
184
|
+
manual: w = !1,
|
|
185
185
|
// Default to true for backward compatibility
|
|
186
186
|
popoverAlign: J = "end",
|
|
187
187
|
...re
|
|
@@ -193,7 +193,7 @@ const We = o.memo(function(D) {
|
|
|
193
193
|
startMonth: V,
|
|
194
194
|
endMonth: le,
|
|
195
195
|
...O
|
|
196
|
-
} = q ?? {}, [ae, j] = o.useState(!1), Y = R !== void 0 ? R : ae, v = te || j, [B, k] = o.useState(""), [
|
|
196
|
+
} = q ?? {}, [ae, j] = o.useState(!1), Y = R !== void 0 ? R : ae, v = te || j, [B, k] = o.useState(""), [x, M] = o.useState(s), [$, b] = o.useState(), [K, P] = o.useState(y ?? s ?? /* @__PURE__ */ new Date()), z = o.useMemo(() => y ?? K, [y, K]), d = o.useCallback((t) => {
|
|
197
197
|
_ ? _(t) : P(t);
|
|
198
198
|
}, [_]), m = o.useMemo(() => {
|
|
199
199
|
const t = Ge[f];
|
|
@@ -201,7 +201,7 @@ const We = o.memo(function(D) {
|
|
|
201
201
|
separator: "",
|
|
202
202
|
pattern: /.*/
|
|
203
203
|
};
|
|
204
|
-
}, [f]), U = o.useMemo(() => D || (
|
|
204
|
+
}, [f]), U = o.useMemo(() => D || (w ? f.toLowerCase() : "Click to select date"), [D, f, w]), ne = o.useCallback((t) => {
|
|
205
205
|
const r = t.replace(/\D/g, ""), {
|
|
206
206
|
separator: i
|
|
207
207
|
} = m;
|
|
@@ -249,15 +249,15 @@ const We = o.memo(function(D) {
|
|
|
249
249
|
day_disabled: "text-muted-foreground opacity-40 grayscale pointer-events-none cursor-not-allowed",
|
|
250
250
|
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
251
251
|
day_hidden: "invisible"
|
|
252
|
-
}), []),
|
|
252
|
+
}), []), we = o.useMemo(() => Ke(ze(g, u), T), [g, u, T]), xe = g ? be(g) : V, Me = u ? be(u) : le;
|
|
253
253
|
o.useEffect(() => {
|
|
254
|
-
k(s ? W(s) : ""),
|
|
254
|
+
k(s ? W(s) : ""), M(s), b(void 0), s && !y && P(s), H.locale(I);
|
|
255
255
|
}, [s, I, W, y]);
|
|
256
256
|
const fe = o.useRef(!1);
|
|
257
257
|
o.useLayoutEffect(() => {
|
|
258
258
|
const t = Y && !fe.current;
|
|
259
259
|
if (fe.current = Y, !t) return;
|
|
260
|
-
const r = s ??
|
|
260
|
+
const r = s ?? x;
|
|
261
261
|
if (!r) return;
|
|
262
262
|
const i = new Date(r.getFullYear(), r.getMonth(), 1), p = i.getFullYear(), F = i.getMonth();
|
|
263
263
|
if (y !== void 0) {
|
|
@@ -265,13 +265,13 @@ const We = o.memo(function(D) {
|
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
267
|
P(i);
|
|
268
|
-
}, [Y, y, s,
|
|
269
|
-
const Q = o.useCallback((t) => ye(t,
|
|
270
|
-
if (!
|
|
268
|
+
}, [Y, y, s, x, _]);
|
|
269
|
+
const Q = o.useCallback((t) => ye(t, g, u) && Ue(t, g, u), [g, u]), De = o.useCallback((t) => {
|
|
270
|
+
if (!w) return;
|
|
271
271
|
b(void 0);
|
|
272
272
|
let r = t.target.value;
|
|
273
273
|
if (k(r), !r.trim()) {
|
|
274
|
-
|
|
274
|
+
M(void 0), a == null || a(void 0), c == null || c(void 0);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
277
|
const i = ne(r);
|
|
@@ -279,34 +279,34 @@ const We = o.memo(function(D) {
|
|
|
279
279
|
const p = ie(r);
|
|
280
280
|
if (p != null && p.isValid()) {
|
|
281
281
|
const F = p.toDate();
|
|
282
|
-
Q(F) && (
|
|
282
|
+
Q(F) && (M(F), a == null || a(F), c == null || c(F));
|
|
283
283
|
}
|
|
284
|
-
}, [
|
|
285
|
-
const t = B.trim(), r = s ??
|
|
284
|
+
}, [w, ne, ie, a, c, Q]), ce = o.useCallback(() => {
|
|
285
|
+
const t = B.trim(), r = s ?? x;
|
|
286
286
|
if (!t) {
|
|
287
287
|
k(""), b(void 0);
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
const i = ie(t), p = i != null && i.isValid() ? i.toDate() : void 0;
|
|
291
291
|
if (p && Q(p)) {
|
|
292
|
-
k(W(p)), b(void 0), (!
|
|
292
|
+
k(W(p)), b(void 0), (!x || x.getTime() !== p.getTime()) && (M(p), a == null || a(p), c == null || c(p));
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
if (i != null && i.isValid() && p) {
|
|
296
296
|
const {
|
|
297
297
|
minYear: F,
|
|
298
298
|
maxYear: _e
|
|
299
|
-
} = de(
|
|
300
|
-
ye(p,
|
|
299
|
+
} = de(g, u);
|
|
300
|
+
ye(p, g, u) ? b("Date is outside the allowed range.") : b(`Enter a year between ${F} and ${_e}.`);
|
|
301
301
|
} else
|
|
302
302
|
b(void 0);
|
|
303
303
|
k(r ? W(r) : "");
|
|
304
|
-
}, [B, s,
|
|
305
|
-
t && Q(t) && (k(W(t)),
|
|
304
|
+
}, [B, s, x, ie, W, Q, g, u, a, c]), Ne = o.useCallback((t) => {
|
|
305
|
+
t && Q(t) && (k(W(t)), M(t), b(void 0), a == null || a(t), c == null || c(t), v(!1));
|
|
306
306
|
}, [Q, a, c, W, v]), ke = o.useCallback((t) => {
|
|
307
|
-
t.stopPropagation(), k(""),
|
|
307
|
+
t.stopPropagation(), k(""), M(void 0), a == null || a(void 0), c == null || c(void 0);
|
|
308
308
|
}, [a, c]), G = !!(L || A), $e = o.useCallback((t) => {
|
|
309
|
-
if (!
|
|
309
|
+
if (!w) {
|
|
310
310
|
!G && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), v(!Y));
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
@@ -315,20 +315,20 @@ const We = o.memo(function(D) {
|
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
t.key === "Enter" && (t.preventDefault(), ce());
|
|
318
|
-
}, [
|
|
318
|
+
}, [w, m.pattern, ce, v, Y, G]);
|
|
319
319
|
return /* @__PURE__ */ C("div", { className: S("space-y-1", ee), ...re, children: [
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
h && /* @__PURE__ */ C(Re, { className: "text-sm font-medium text-gray-700", children: [
|
|
321
|
+
h,
|
|
322
322
|
n && /* @__PURE__ */ l("span", { className: "text-red-500 ml-1", children: "*" })
|
|
323
323
|
] }),
|
|
324
324
|
/* @__PURE__ */ C(Te, { open: Y, onOpenChange: (t) => {
|
|
325
325
|
G && t || v(t);
|
|
326
326
|
}, children: [
|
|
327
327
|
/* @__PURE__ */ C("div", { className: S("w-60 relative", X), children: [
|
|
328
|
-
/* @__PURE__ */ l(Le, { type: "text", value: B, onChange: De, onBlur: ce, onKeyDown: $e, placeholder: U, disabled: L, readOnly: A || !
|
|
329
|
-
!
|
|
330
|
-
}, className: S("w-full pr-12", (E || $) && "border border-destructive focus-visible:ring-destructive", !
|
|
331
|
-
N && (s ??
|
|
328
|
+
/* @__PURE__ */ l(Le, { type: "text", value: B, onChange: De, onBlur: ce, onKeyDown: $e, placeholder: U, disabled: L, readOnly: A || !w, onClick: () => {
|
|
329
|
+
!w && !L && !A && v(!0);
|
|
330
|
+
}, className: S("w-full pr-12", (E || $) && "border border-destructive focus-visible:ring-destructive", !w && !G && "cursor-pointer") }),
|
|
331
|
+
N && (s ?? x) && !L && !A && /* @__PURE__ */ l("button", { type: "button", onClick: ke, className: "absolute right-10 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring", "aria-label": "Clear date", children: /* @__PURE__ */ l(Ie, { className: "h-4 w-4 text-muted-foreground" }) }),
|
|
332
332
|
/* @__PURE__ */ l(Oe, { asChild: !0, children: /* @__PURE__ */ l("button", { type: "button", className: S("absolute right-1 top-1/2 -translate-y-1/2 border-0 bg-transparent outline-none", G ? "cursor-default text-muted-foreground" : "cursor-pointer text-black hover:text-black"), style: {
|
|
333
333
|
height: "1.75rem",
|
|
334
334
|
width: "1.75rem"
|
|
@@ -337,8 +337,8 @@ const We = o.memo(function(D) {
|
|
|
337
337
|
}, disabled: G, "aria-label": "Open calendar", children: /* @__PURE__ */ l(Ee, { strokeWidth: 1, className: "h-5 w-5" }) }) })
|
|
338
338
|
] }),
|
|
339
339
|
/* @__PURE__ */ l(Be, { className: "w-auto p-0 mt-2", align: J, children: /* @__PURE__ */ C("div", { className: "bg-white rounded-md border shadow-md", children: [
|
|
340
|
-
/* @__PURE__ */ l(We, { month: z, onMonthChange: d, locale: I, minDate:
|
|
341
|
-
/* @__PURE__ */ l("div", { className: "p-3", children: /* @__PURE__ */ l(Fe, { ...O, mode: "single", selected:
|
|
340
|
+
/* @__PURE__ */ l(We, { month: z, onMonthChange: d, locale: I, minDate: g, maxDate: u }),
|
|
341
|
+
/* @__PURE__ */ l("div", { className: "p-3", children: /* @__PURE__ */ l(Fe, { ...O, mode: "single", selected: x, onSelect: Ne, month: z, onMonthChange: d, startMonth: xe, endMonth: Me, disabled: we, showOutsideDays: Z, className: S("p-0", O.className), classNames: {
|
|
342
342
|
...ve,
|
|
343
343
|
...O.classNames
|
|
344
344
|
} }) })
|
|
@@ -348,11 +348,11 @@ const We = o.memo(function(D) {
|
|
|
348
348
|
] });
|
|
349
349
|
});
|
|
350
350
|
He.displayName = "DatePickerField";
|
|
351
|
-
function Xe(
|
|
352
|
-
return /* @__PURE__ */ l(Ye, { value: D.toString(), children:
|
|
351
|
+
function Xe(h, D) {
|
|
352
|
+
return /* @__PURE__ */ l(Ye, { value: D.toString(), className: "px-3", children: h }, h);
|
|
353
353
|
}
|
|
354
|
-
function Ze(
|
|
355
|
-
return /* @__PURE__ */ l(Ye, { value:
|
|
354
|
+
function Ze(h) {
|
|
355
|
+
return /* @__PURE__ */ l(Ye, { value: h.toString(), className: "justify-center px-2", children: h }, h);
|
|
356
356
|
}
|
|
357
357
|
export {
|
|
358
358
|
oe as CALENDAR_YEAR_HALF_SPAN,
|