@alfadocs/ui-kit 1.56.0 → 1.57.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/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/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-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- 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/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -0
- package/dist/i18n/locales/ar.js +15 -1
- package/dist/i18n/locales/de.d.ts +14 -0
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/el.d.ts +14 -0
- package/dist/i18n/locales/el.js +15 -1
- package/dist/i18n/locales/en.d.ts +14 -0
- package/dist/i18n/locales/en.js +15 -1
- package/dist/i18n/locales/es.d.ts +14 -0
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/fr.d.ts +14 -0
- package/dist/i18n/locales/fr.js +15 -1
- package/dist/i18n/locales/hi.d.ts +14 -0
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/it.d.ts +14 -0
- package/dist/i18n/locales/it.js +15 -1
- package/dist/i18n/locales/ja.d.ts +14 -0
- package/dist/i18n/locales/ja.js +15 -1
- package/dist/i18n/locales/nl.d.ts +14 -0
- package/dist/i18n/locales/nl.js +15 -1
- package/dist/i18n/locales/pl.d.ts +14 -0
- package/dist/i18n/locales/pl.js +15 -1
- package/dist/i18n/locales/pt.d.ts +14 -0
- package/dist/i18n/locales/pt.js +15 -1
- package/dist/i18n/locales/ro.d.ts +14 -0
- package/dist/i18n/locales/ro.js +15 -1
- package/dist/i18n/locales/ru.d.ts +14 -0
- package/dist/i18n/locales/ru.js +15 -1
- package/dist/i18n/locales/sq.d.ts +14 -0
- package/dist/i18n/locales/sq.js +15 -1
- package/dist/i18n/locales/sv.d.ts +14 -0
- package/dist/i18n/locales/sv.js +15 -1
- package/dist/i18n/locales/tr.d.ts +14 -0
- package/dist/i18n/locales/tr.js +15 -1
- package/dist/i18n/locales/zh.d.ts +14 -0
- package/dist/i18n/locales/zh.js +15 -1
- package/dist/index.js +194 -193
- package/dist/locales/ar.json +15 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/el.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/es.json +15 -1
- package/dist/locales/fr.json +15 -1
- package/dist/locales/hi.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/locales/ja.json +15 -1
- package/dist/locales/nl.json +15 -1
- package/dist/locales/pl.json +15 -1
- package/dist/locales/pt.json +15 -1
- package/dist/locales/ro.json +15 -1
- package/dist/locales/ru.json +15 -1
- package/dist/locales/sq.json +15 -1
- package/dist/locales/sv.json +15 -1
- package/dist/locales/tr.json +15 -1
- package/dist/locales/zh.json +15 -1
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
|
@@ -4,7 +4,7 @@ import * as ce from "@radix-ui/react-tabs";
|
|
|
4
4
|
import { a as ne, c as ke } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as Ae } from "react-i18next";
|
|
6
6
|
import { I as le } from "./icon-button-COX76Jdj.js";
|
|
7
|
-
import { P as ue } from "./popover-
|
|
7
|
+
import { P as ue } from "./popover-BG75rYjN.js";
|
|
8
8
|
import { T as ze } from "./text-input-CaG9ApoE.js";
|
|
9
9
|
import { u as Ke } from "./use-direction-Dp8h70PP.js";
|
|
10
10
|
import { u as Me } from "./registry-DvAUVLHh.js";
|
|
@@ -725,4 +725,4 @@ export {
|
|
|
725
725
|
$e as b,
|
|
726
726
|
Le as d
|
|
727
727
|
};
|
|
728
|
-
//# sourceMappingURL=data-table-tabs-
|
|
728
|
+
//# sourceMappingURL=data-table-tabs-CHYAAeHy.js.map
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as r, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as le, useContext as de, useState as b, useRef as A, useEffect as ce, useCallback as K, useMemo as pe, useImperativeHandle as ue } from "react";
|
|
3
|
+
import { useTranslation as fe } from "react-i18next";
|
|
4
4
|
import * as k from "@radix-ui/react-popover";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as we } from "./
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { C as
|
|
14
|
-
import {
|
|
15
|
-
|
|
5
|
+
import { u as me, f as ge } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
6
|
+
import { S as he } from "./spinner-CoflYlEx.js";
|
|
7
|
+
import { u as ve, b as ye, g as be, c as ke, i as Ce, d as De, t as xe, e as Pe, p as Se, D as we, C as Ie, f as Oe, h as Fe } from "./date-picker-variants-BnF-sHzq.js";
|
|
8
|
+
import { u as Ne } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
+
import { u as Ve, F as Te, a as Ae } from "./form-field-context-DtiROUJV.js";
|
|
10
|
+
import { u as Ke } from "./use-dom-value-DTxHhQAN.js";
|
|
11
|
+
import { u as Re } from "./registry-DvAUVLHh.js";
|
|
12
|
+
import { f as R, i as Me, b as Le } from "./format-D-1gTdHF.js";
|
|
13
|
+
import { C as Ee } from "./calendar-days-BGWklvE-.js";
|
|
14
|
+
import { C as je } from "./check-DrFSN__t.js";
|
|
15
|
+
import { p as qe } from "./parse-jZ-i8Xgj.js";
|
|
16
|
+
const Be = {
|
|
16
17
|
id: "date-picker",
|
|
17
18
|
// Persisted single date (value state + set_date) → select_single + set_value,
|
|
18
19
|
// plus open/close of the calendar popover.
|
|
@@ -98,57 +99,57 @@ const je = {
|
|
|
98
99
|
description: "Sourced from the id prop."
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
},
|
|
102
|
+
}, _e = le(
|
|
102
103
|
({
|
|
103
104
|
value: a,
|
|
104
105
|
defaultValue: d,
|
|
105
106
|
onChange: M,
|
|
106
107
|
minDate: m,
|
|
107
|
-
maxDate:
|
|
108
|
+
maxDate: g,
|
|
108
109
|
disabledDates: c,
|
|
109
110
|
weekStartsOn: L,
|
|
110
111
|
presets: C,
|
|
111
|
-
size:
|
|
112
|
-
chrome:
|
|
113
|
-
disabled:
|
|
114
|
-
placeholder:
|
|
115
|
-
className:
|
|
112
|
+
size: w = "md",
|
|
113
|
+
chrome: E = "input",
|
|
114
|
+
disabled: j,
|
|
115
|
+
placeholder: q,
|
|
116
|
+
className: B,
|
|
116
117
|
id: _,
|
|
117
118
|
"aria-label": H,
|
|
118
119
|
"aria-labelledby": W
|
|
119
120
|
}, J) => {
|
|
120
|
-
const { t:
|
|
121
|
+
const { t: I, i18n: D } = fe("ui"), p = Ve(), O = de(Te) !== null, x = Ae(p, _), F = p.disabled || j, z = p.invalid ? "error" : "default", u = ve(D.language), G = ye(), f = be(D.language), Q = q ?? I("inputs.datePicker.placeholder", "Select date"), [U, N] = Ne({
|
|
121
122
|
value: a,
|
|
122
123
|
defaultValue: d,
|
|
123
124
|
onChange: M
|
|
124
125
|
}), n = U, [i, s] = b(!1), [X, P] = b(
|
|
125
|
-
n ?
|
|
126
|
-
), [
|
|
127
|
-
|
|
128
|
-
n ? (P(
|
|
126
|
+
n ? R(n, f, { locale: u }) : ""
|
|
127
|
+
), [V, h] = b(!1), [Y, S] = b(n ?? /* @__PURE__ */ new Date()), v = A(null);
|
|
128
|
+
Ke(v, X), ce(() => {
|
|
129
|
+
n ? (P(R(n, f, { locale: u })), h(!1)) : P("");
|
|
129
130
|
}, [n, f, u]);
|
|
130
|
-
const Z =
|
|
131
|
+
const Z = ke(
|
|
131
132
|
m,
|
|
132
|
-
|
|
133
|
+
g,
|
|
133
134
|
c
|
|
134
|
-
), $ =
|
|
135
|
-
(e) => m &&
|
|
135
|
+
), $ = K(
|
|
136
|
+
(e) => m && Ce(e, m) || g && De(e, g) ? !0 : Array.isArray(c) ? c.some(
|
|
136
137
|
(t) => t.toDateString() === e.toDateString()
|
|
137
138
|
) : typeof c == "function" ? c(e) : !1,
|
|
138
|
-
[m,
|
|
139
|
-
), o =
|
|
139
|
+
[m, g, c]
|
|
140
|
+
), o = K(
|
|
140
141
|
(e) => {
|
|
141
|
-
|
|
142
|
+
N(e);
|
|
142
143
|
},
|
|
143
|
-
[
|
|
144
|
+
[N]
|
|
144
145
|
), ee = (e) => {
|
|
145
146
|
const t = e.target.value;
|
|
146
147
|
if (P(t), t.length === 0) {
|
|
147
|
-
|
|
148
|
+
h(!1), o(void 0);
|
|
148
149
|
return;
|
|
149
150
|
}
|
|
150
|
-
const l =
|
|
151
|
-
|
|
151
|
+
const l = qe(t, f, /* @__PURE__ */ new Date(), { locale: u });
|
|
152
|
+
Me(l) && !$(l) ? (h(!1), o(l), S(l)) : t.length === f.length && h(!0);
|
|
152
153
|
}, te = (e) => {
|
|
153
154
|
e.key === "Enter" && i && (e.preventDefault(), s(!1)), e.key === "Escape" && i && (e.preventDefault(), s(!1)), e.key === "ArrowDown" && !i && (e.preventDefault(), s(!0));
|
|
154
155
|
}, ae = (e) => {
|
|
@@ -157,8 +158,8 @@ const je = {
|
|
|
157
158
|
}, re = (e) => {
|
|
158
159
|
var l;
|
|
159
160
|
const t = e.date();
|
|
160
|
-
o(t),
|
|
161
|
-
}, ne = (e) => n ?
|
|
161
|
+
o(t), S(t), s(!1), (l = v.current) == null || l.focus();
|
|
162
|
+
}, ne = (e) => n ? Le(e.date(), n) : !1, se = I("inputs.datePicker.gridLabel", "Calendar"), ie = pe(
|
|
162
163
|
() => ({
|
|
163
164
|
getValue: () => n,
|
|
164
165
|
setValue: (e) => o(e),
|
|
@@ -168,21 +169,26 @@ const je = {
|
|
|
168
169
|
close: () => s(!1)
|
|
169
170
|
}),
|
|
170
171
|
[n, o, i]
|
|
171
|
-
),
|
|
172
|
-
|
|
172
|
+
), T = A(null);
|
|
173
|
+
ue(J, () => T.current, []), Re(Be, ie, x);
|
|
174
|
+
const oe = me(!0, {
|
|
175
|
+
getAnchor: ge,
|
|
176
|
+
onReturnToTrigger: () => s(!1)
|
|
177
|
+
});
|
|
178
|
+
return /* @__PURE__ */ r(k.Root, { open: i, onOpenChange: s, children: /* @__PURE__ */ y(
|
|
173
179
|
"div",
|
|
174
180
|
{
|
|
175
|
-
ref:
|
|
176
|
-
className:
|
|
181
|
+
ref: T,
|
|
182
|
+
className: B,
|
|
177
183
|
"data-component": "date-picker",
|
|
178
|
-
"data-component-id":
|
|
184
|
+
"data-component-id": x,
|
|
179
185
|
children: [
|
|
180
186
|
/* @__PURE__ */ y("div", { className: "ds:relative", children: [
|
|
181
187
|
/* @__PURE__ */ r(k.Trigger, { asChild: !0, disabled: F, children: /* @__PURE__ */ r(
|
|
182
188
|
"input",
|
|
183
189
|
{
|
|
184
190
|
ref: v,
|
|
185
|
-
id:
|
|
191
|
+
id: x,
|
|
186
192
|
type: "text",
|
|
187
193
|
role: "combobox",
|
|
188
194
|
placeholder: Q,
|
|
@@ -190,29 +196,30 @@ const je = {
|
|
|
190
196
|
"aria-label": O ? void 0 : H,
|
|
191
197
|
"aria-labelledby": O ? void 0 : W,
|
|
192
198
|
"aria-describedby": p.describedBy || void 0,
|
|
193
|
-
"aria-invalid": p.invalid ||
|
|
199
|
+
"aria-invalid": p.invalid || V || void 0,
|
|
194
200
|
"aria-required": p.required || void 0,
|
|
195
201
|
"aria-haspopup": "dialog",
|
|
196
202
|
"aria-expanded": i,
|
|
197
203
|
onChange: ee,
|
|
198
204
|
onKeyDown: te,
|
|
199
205
|
onClick: () => !i && s(!0),
|
|
200
|
-
className:
|
|
201
|
-
size:
|
|
202
|
-
tone:
|
|
203
|
-
chrome:
|
|
206
|
+
className: xe({
|
|
207
|
+
size: w,
|
|
208
|
+
tone: V ? "error" : z,
|
|
209
|
+
chrome: E
|
|
204
210
|
})
|
|
205
211
|
}
|
|
206
212
|
) }),
|
|
207
|
-
/* @__PURE__ */ r("span", { "aria-hidden": "true", className:
|
|
213
|
+
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: Pe({ size: w }), children: /* @__PURE__ */ r(Ee, {}) })
|
|
208
214
|
] }),
|
|
209
215
|
/* @__PURE__ */ r(k.Portal, { children: /* @__PURE__ */ r(
|
|
210
216
|
k.Content,
|
|
211
217
|
{
|
|
212
218
|
sideOffset: 4,
|
|
213
219
|
align: "start",
|
|
220
|
+
onKeyDown: oe,
|
|
214
221
|
"data-component": "date-picker-content",
|
|
215
|
-
className:
|
|
222
|
+
className: Fe(),
|
|
216
223
|
onOpenAutoFocus: (e) => {
|
|
217
224
|
e.preventDefault();
|
|
218
225
|
},
|
|
@@ -225,11 +232,11 @@ const je = {
|
|
|
225
232
|
type: "button",
|
|
226
233
|
"aria-pressed": t,
|
|
227
234
|
onClick: () => re(e),
|
|
228
|
-
className:
|
|
235
|
+
className: Se({ active: t }),
|
|
229
236
|
children: [
|
|
230
237
|
/* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate", children: e.label }),
|
|
231
238
|
t ? /* @__PURE__ */ r(
|
|
232
|
-
|
|
239
|
+
je,
|
|
233
240
|
{
|
|
234
241
|
"aria-hidden": "true",
|
|
235
242
|
className: "ds:size-4 ds:shrink-0 ds:text-primary"
|
|
@@ -241,13 +248,13 @@ const je = {
|
|
|
241
248
|
);
|
|
242
249
|
}) }) : null,
|
|
243
250
|
/* @__PURE__ */ r("div", { role: "region", "aria-label": se, children: u ? /* @__PURE__ */ r(
|
|
244
|
-
|
|
251
|
+
we,
|
|
245
252
|
{
|
|
246
253
|
mode: "single",
|
|
247
254
|
selected: n,
|
|
248
255
|
onSelect: ae,
|
|
249
256
|
month: Y,
|
|
250
|
-
onMonthChange:
|
|
257
|
+
onMonthChange: S,
|
|
251
258
|
disabled: Z,
|
|
252
259
|
weekStartsOn: L,
|
|
253
260
|
locale: u,
|
|
@@ -255,10 +262,10 @@ const je = {
|
|
|
255
262
|
dir: D.dir(),
|
|
256
263
|
showOutsideDays: !0,
|
|
257
264
|
fixedWeeks: !0,
|
|
258
|
-
classNames:
|
|
259
|
-
components: { Chevron:
|
|
265
|
+
classNames: Oe,
|
|
266
|
+
components: { Chevron: Ie }
|
|
260
267
|
}
|
|
261
|
-
) : /* @__PURE__ */ r(
|
|
268
|
+
) : /* @__PURE__ */ r(he, {}) })
|
|
262
269
|
] })
|
|
263
270
|
}
|
|
264
271
|
) })
|
|
@@ -267,9 +274,9 @@ const je = {
|
|
|
267
274
|
) });
|
|
268
275
|
}
|
|
269
276
|
);
|
|
270
|
-
|
|
277
|
+
_e.displayName = "DatePicker";
|
|
271
278
|
export {
|
|
272
|
-
|
|
273
|
-
|
|
279
|
+
_e as D,
|
|
280
|
+
Be as d
|
|
274
281
|
};
|
|
275
|
-
//# sourceMappingURL=date-picker-
|
|
282
|
+
//# sourceMappingURL=date-picker-BSZuKo13.js.map
|