@alfadocs/ui-kit 1.3.12 → 1.4.0
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/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
- package/dist/_chunks/{anamnesis-i18n-9OrXTNS3.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
- package/dist/_chunks/{appointment-timeline-BB-c1LeR.js → appointment-timeline-Bqf1sTU5.js} +2 -2
- package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
- package/dist/_chunks/{booking-BxFV0hT5.js → booking-BjsA7j1-.js} +699 -688
- package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
- package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
- package/dist/_chunks/{date-picker-BP_W6VtE.js → date-picker-Bp64zk2p.js} +86 -82
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
- package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
- package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
- package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
- package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
- package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
- package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
- package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
- package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
- package/dist/_chunks/format-4HNwNGrN.js +1315 -0
- package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
- package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
- package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
- package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
- package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
- package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
- package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
- package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
- package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
- package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
- package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
- package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
- package/dist/_chunks/{patient-details-D7D3f9dy.js → patient-details-CpunD0qx.js} +3 -3
- package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
- package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
- package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
- package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
- package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
- package/dist/_chunks/progress-CK8otcQ-.js +343 -0
- package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
- package/dist/_chunks/{radiograph-panel.agent-AsXJBr1p.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
- package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
- package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
- package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
- package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
- package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
- package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
- package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
- package/dist/_chunks/subDays-CAUv47M1.js +8 -0
- package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
- package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
- package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
- package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
- package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
- package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
- package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
- package/dist/agent-catalog.json +6426 -3382
- package/dist/agent-i18n/en.json +234 -15
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +14 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
- package/dist/components/cycle-calculator/index.d.ts +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +8 -0
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
- package/dist/components/fetal-weight/index.d.ts +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
- package/dist/components/gestational-age-calculator/index.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
- package/dist/components/hcg-doubling/index.d.ts +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +13 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +9 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +22 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +32 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.d.ts +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
- package/dist/components/pregnancy-weight-gain/index.js +6 -5
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.d.ts +13 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/slot-grid/index.d.ts +2 -1
- package/dist/components/slot-grid/index.js +5 -4
- package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
- package/dist/components/slot-grid/slot-grid.d.ts +34 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +10 -0
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +13 -0
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/index.js +630 -627
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
- package/dist/patterns/anamnesis/index.d.ts +3 -2
- package/dist/patterns/anamnesis/index.js +7 -6
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
- package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
- package/dist/_chunks/cycle-calculator-DrdC2hPj.js +0 -252
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
- package/dist/_chunks/due-date-calculator-DzNMFyOU.js +0 -256
- package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
- package/dist/_chunks/gestational-age-calculator-CuGkVqKp.js +0 -311
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
- package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
- package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
- package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
- package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
- package/dist/_chunks/pregnancy-dating-C3WvXHee.js +0 -421
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
- package/dist/_chunks/progress-DA413-zn.js +0 -299
- package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
- package/dist/_chunks/subDays-BcNi04uf.js +0 -8
- package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import * as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { C as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
const
|
|
2
|
+
import { forwardRef as se, useContext as ie, useState as y, useRef as K, useEffect as oe, useCallback as R, useMemo as le, useImperativeHandle as de } from "react";
|
|
3
|
+
import { useTranslation as ce } from "react-i18next";
|
|
4
|
+
import * as b from "@radix-ui/react-popover";
|
|
5
|
+
import { u as pe } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
+
import { u as ue, F as fe } from "./form-field-context-B3APVHKx.js";
|
|
7
|
+
import { u as me } from "./registry-DvAUVLHh.js";
|
|
8
|
+
import { u as he, g as ge, b as ve, i as ye, c as be, t as ke, d as Ce, p as De, D as Pe, C as Se, e as xe, f as we } from "./date-picker-variants-pKAJfnWr.js";
|
|
9
|
+
import { f as T, i as Ie, b as Oe } from "./format-4HNwNGrN.js";
|
|
10
|
+
import { C as Ne } from "./calendar-days-BGWklvE-.js";
|
|
11
|
+
import { C as Ve } from "./check-DrFSN__t.js";
|
|
12
|
+
import { p as Fe } from "./parse-JqixfsU0.js";
|
|
13
|
+
const Ae = {
|
|
14
14
|
id: "date-picker",
|
|
15
15
|
// Persisted single date (value state + set_date) → select_single + set_value,
|
|
16
16
|
// plus open/close of the calendar popover.
|
|
@@ -21,8 +21,8 @@ const Ie = {
|
|
|
21
21
|
descriptionKey: "ui.agent.datePicker.state.value",
|
|
22
22
|
description: "Currently-selected ISO date, or null.",
|
|
23
23
|
read: (a) => {
|
|
24
|
-
var
|
|
25
|
-
return ((
|
|
24
|
+
var d;
|
|
25
|
+
return ((d = a.getValue()) == null ? void 0 : d.toISOString()) ?? null;
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
isOpen: {
|
|
@@ -51,8 +51,8 @@ const Ie = {
|
|
|
51
51
|
descriptionKey: "ui.agent.datePicker.actions.setDate",
|
|
52
52
|
description: "Select a specific date (ISO yyyy-mm-dd).",
|
|
53
53
|
examples: [{ args: { date: "2026-06-23" }, note: "Select 23 Jun 2026." }],
|
|
54
|
-
invoke: (a,
|
|
55
|
-
a.setValue(new Date(
|
|
54
|
+
invoke: (a, d) => {
|
|
55
|
+
a.setValue(new Date(d.date));
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
clear: {
|
|
@@ -96,64 +96,66 @@ const Ie = {
|
|
|
96
96
|
description: "Sourced from the id prop."
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, Ke = se(
|
|
100
100
|
({
|
|
101
101
|
value: a,
|
|
102
|
-
defaultValue:
|
|
103
|
-
onChange:
|
|
102
|
+
defaultValue: d,
|
|
103
|
+
onChange: M,
|
|
104
104
|
minDate: m,
|
|
105
105
|
maxDate: h,
|
|
106
|
-
disabledDates:
|
|
107
|
-
weekStartsOn:
|
|
108
|
-
presets:
|
|
106
|
+
disabledDates: c,
|
|
107
|
+
weekStartsOn: j,
|
|
108
|
+
presets: k,
|
|
109
109
|
size: x = "md",
|
|
110
|
-
disabled:
|
|
111
|
-
placeholder:
|
|
112
|
-
className:
|
|
113
|
-
id:
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
disabled: q,
|
|
111
|
+
placeholder: B,
|
|
112
|
+
className: E,
|
|
113
|
+
id: L,
|
|
114
|
+
"aria-label": _,
|
|
115
|
+
"aria-labelledby": H
|
|
116
|
+
}, W) => {
|
|
117
|
+
const { t: w, i18n: I } = ce(), p = ue(), O = ie(fe) !== null, C = L ?? p.id, N = p.disabled || q, J = p.invalid ? "error" : "default", u = he(I.language), f = ge(I.language), z = B ?? w("inputs.datePicker.placeholder", "Select date"), [G, V] = pe({
|
|
116
118
|
value: a,
|
|
117
|
-
defaultValue:
|
|
118
|
-
onChange:
|
|
119
|
-
}), n =
|
|
119
|
+
defaultValue: d,
|
|
120
|
+
onChange: M
|
|
121
|
+
}), n = G, [i, s] = y(!1), [Q, D] = y(
|
|
120
122
|
n ? T(n, f, { locale: u }) : ""
|
|
121
|
-
), [
|
|
122
|
-
|
|
123
|
+
), [F, g] = y(!1), [U, P] = y(n ?? /* @__PURE__ */ new Date()), S = K(null);
|
|
124
|
+
oe(() => {
|
|
123
125
|
n ? (D(T(n, f, { locale: u })), g(!1)) : D("");
|
|
124
126
|
}, [n, f, u]);
|
|
125
|
-
const
|
|
127
|
+
const X = ve(
|
|
126
128
|
m,
|
|
127
129
|
h,
|
|
128
|
-
|
|
129
|
-
),
|
|
130
|
-
(e) => m &&
|
|
130
|
+
c
|
|
131
|
+
), Y = R(
|
|
132
|
+
(e) => m && ye(e, m) || h && be(e, h) ? !0 : Array.isArray(c) ? c.some(
|
|
131
133
|
(t) => t.toDateString() === e.toDateString()
|
|
132
|
-
) : typeof
|
|
133
|
-
[m, h,
|
|
134
|
+
) : typeof c == "function" ? c(e) : !1,
|
|
135
|
+
[m, h, c]
|
|
134
136
|
), o = R(
|
|
135
137
|
(e) => {
|
|
136
|
-
|
|
138
|
+
V(e);
|
|
137
139
|
},
|
|
138
|
-
[
|
|
139
|
-
),
|
|
140
|
+
[V]
|
|
141
|
+
), Z = (e) => {
|
|
140
142
|
const t = e.target.value;
|
|
141
143
|
if (D(t), t.length === 0) {
|
|
142
144
|
g(!1), o(void 0);
|
|
143
145
|
return;
|
|
144
146
|
}
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
},
|
|
147
|
+
const l = Fe(t, f, /* @__PURE__ */ new Date(), { locale: u });
|
|
148
|
+
Ie(l) && !Y(l) ? (g(!1), o(l), P(l)) : t.length === f.length && g(!0);
|
|
149
|
+
}, $ = (e) => {
|
|
148
150
|
e.key === "Enter" && i && (e.preventDefault(), s(!1)), e.key === "Escape" && i && (e.preventDefault(), s(!1)), e.key === "ArrowDown" && !i && (e.preventDefault(), s(!0));
|
|
149
|
-
},
|
|
151
|
+
}, ee = (e) => {
|
|
150
152
|
var t;
|
|
151
153
|
e && (o(e), s(!1), (t = S.current) == null || t.focus());
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
+
}, te = (e) => {
|
|
155
|
+
var l;
|
|
154
156
|
const t = e.date();
|
|
155
|
-
o(t), P(t), s(!1), (
|
|
156
|
-
},
|
|
157
|
+
o(t), P(t), s(!1), (l = S.current) == null || l.focus();
|
|
158
|
+
}, ae = (e) => n ? Oe(e.date(), n) : !1, re = w("inputs.datePicker.gridLabel", "Calendar"), ne = le(
|
|
157
159
|
() => ({
|
|
158
160
|
getValue: () => n,
|
|
159
161
|
setValue: (e) => o(e),
|
|
@@ -164,64 +166,66 @@ const Ie = {
|
|
|
164
166
|
}),
|
|
165
167
|
[n, o, i]
|
|
166
168
|
), A = K(null);
|
|
167
|
-
return
|
|
169
|
+
return de(W, () => A.current, []), me(Ae, ne, C), /* @__PURE__ */ r(b.Root, { open: i, onOpenChange: s, children: /* @__PURE__ */ v(
|
|
168
170
|
"div",
|
|
169
171
|
{
|
|
170
172
|
ref: A,
|
|
171
|
-
className:
|
|
173
|
+
className: E,
|
|
172
174
|
"data-component": "date-picker",
|
|
173
175
|
"data-component-id": C,
|
|
174
176
|
children: [
|
|
175
177
|
/* @__PURE__ */ v("div", { className: "ds:relative", children: [
|
|
176
|
-
/* @__PURE__ */ r(
|
|
178
|
+
/* @__PURE__ */ r(b.Trigger, { asChild: !0, disabled: N, children: /* @__PURE__ */ r(
|
|
177
179
|
"input",
|
|
178
180
|
{
|
|
179
181
|
ref: S,
|
|
180
182
|
id: C,
|
|
181
183
|
type: "text",
|
|
182
184
|
role: "combobox",
|
|
183
|
-
value:
|
|
184
|
-
placeholder:
|
|
185
|
-
disabled:
|
|
185
|
+
value: Q,
|
|
186
|
+
placeholder: z,
|
|
187
|
+
disabled: N,
|
|
188
|
+
"aria-label": O ? void 0 : _,
|
|
189
|
+
"aria-labelledby": O ? void 0 : H,
|
|
186
190
|
"aria-describedby": p.describedBy || void 0,
|
|
187
|
-
"aria-invalid": p.invalid ||
|
|
191
|
+
"aria-invalid": p.invalid || F || void 0,
|
|
188
192
|
"aria-required": p.required || void 0,
|
|
189
193
|
"aria-haspopup": "dialog",
|
|
190
194
|
"aria-expanded": i,
|
|
191
|
-
onChange:
|
|
192
|
-
onKeyDown:
|
|
195
|
+
onChange: Z,
|
|
196
|
+
onKeyDown: $,
|
|
193
197
|
onClick: () => !i && s(!0),
|
|
194
|
-
className:
|
|
198
|
+
className: ke({
|
|
195
199
|
size: x,
|
|
196
|
-
tone:
|
|
200
|
+
tone: F ? "error" : J
|
|
197
201
|
})
|
|
198
202
|
}
|
|
199
203
|
) }),
|
|
200
|
-
/* @__PURE__ */ r("span", { "aria-hidden": "true", className:
|
|
204
|
+
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: Ce({ size: x }), children: /* @__PURE__ */ r(Ne, {}) })
|
|
201
205
|
] }),
|
|
202
|
-
/* @__PURE__ */ r(
|
|
203
|
-
|
|
206
|
+
/* @__PURE__ */ r(b.Portal, { children: /* @__PURE__ */ r(
|
|
207
|
+
b.Content,
|
|
204
208
|
{
|
|
205
209
|
sideOffset: 4,
|
|
206
210
|
align: "start",
|
|
207
|
-
className:
|
|
211
|
+
className: we(),
|
|
208
212
|
onOpenAutoFocus: (e) => {
|
|
209
213
|
e.preventDefault();
|
|
210
214
|
},
|
|
211
215
|
children: /* @__PURE__ */ v("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
212
|
-
|
|
213
|
-
const t =
|
|
216
|
+
k && k.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: k.map((e) => {
|
|
217
|
+
const t = ae(e);
|
|
214
218
|
return /* @__PURE__ */ v(
|
|
215
219
|
"button",
|
|
216
220
|
{
|
|
217
221
|
type: "button",
|
|
218
222
|
"aria-pressed": t,
|
|
219
|
-
onClick: () =>
|
|
220
|
-
className:
|
|
223
|
+
onClick: () => te(e),
|
|
224
|
+
className: De({ active: t }),
|
|
221
225
|
children: [
|
|
222
226
|
/* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate", children: e.label }),
|
|
223
227
|
t ? /* @__PURE__ */ r(
|
|
224
|
-
|
|
228
|
+
Ve,
|
|
225
229
|
{
|
|
226
230
|
"aria-hidden": "true",
|
|
227
231
|
className: "ds:size-4 ds:shrink-0 ds:text-primary"
|
|
@@ -232,21 +236,21 @@ const Ie = {
|
|
|
232
236
|
e.label
|
|
233
237
|
);
|
|
234
238
|
}) }) : null,
|
|
235
|
-
/* @__PURE__ */ r("div", { role: "region", "aria-label":
|
|
236
|
-
|
|
239
|
+
/* @__PURE__ */ r("div", { role: "region", "aria-label": re, children: /* @__PURE__ */ r(
|
|
240
|
+
Pe,
|
|
237
241
|
{
|
|
238
242
|
mode: "single",
|
|
239
243
|
selected: n,
|
|
240
|
-
onSelect:
|
|
241
|
-
month:
|
|
244
|
+
onSelect: ee,
|
|
245
|
+
month: U,
|
|
242
246
|
onMonthChange: P,
|
|
243
|
-
disabled:
|
|
244
|
-
weekStartsOn:
|
|
247
|
+
disabled: X,
|
|
248
|
+
weekStartsOn: j,
|
|
245
249
|
locale: u,
|
|
246
250
|
showOutsideDays: !0,
|
|
247
251
|
fixedWeeks: !0,
|
|
248
|
-
classNames:
|
|
249
|
-
components: { Chevron:
|
|
252
|
+
classNames: xe,
|
|
253
|
+
components: { Chevron: Se }
|
|
250
254
|
}
|
|
251
255
|
) })
|
|
252
256
|
] })
|
|
@@ -257,9 +261,9 @@ const Ie = {
|
|
|
257
261
|
) });
|
|
258
262
|
}
|
|
259
263
|
);
|
|
260
|
-
|
|
264
|
+
Ke.displayName = "DatePicker";
|
|
261
265
|
export {
|
|
262
|
-
|
|
263
|
-
|
|
266
|
+
Ke as D,
|
|
267
|
+
Ae as d
|
|
264
268
|
};
|
|
265
|
-
//# sourceMappingURL=date-picker-
|
|
269
|
+
//# sourceMappingURL=date-picker-Bp64zk2p.js.map
|