@alfadocs/ui-kit 0.25.0 → 0.25.2
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-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
- package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
- package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
- package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
- package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
- package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
- package/dist/_chunks/booking-CXngC-1u.js +1743 -0
- package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-9eOXumpH.js} +113 -142
- package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
- package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
- package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
- package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
- package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
- package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-CeEfEAxh.js} +2 -2
- package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
- package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
- package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
- package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
- package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
- package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
- package/dist/_chunks/eye-LHlSU38h.js +21 -0
- package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
- package/dist/_chunks/{header-DqmKROIY.js → header-B8V_sNPy.js} +2 -2
- package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
- package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
- package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
- package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
- package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
- package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
- package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
- package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
- package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
- package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
- package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
- package/dist/_chunks/patient-shell-Bq8CjRYF.js +173 -0
- package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
- package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
- package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
- package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
- package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
- package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
- package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
- package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
- package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
- package/dist/_chunks/{slot-grid-CgpYgBkW.js → slot-grid-DoodeQGZ.js} +4 -4
- package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
- package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
- package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
- package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
- package/dist/_chunks/stethoscope-B8kpbtjh.js +35 -0
- package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
- package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
- package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
- package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
- package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
- package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
- package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
- package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
- package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
- package/dist/agent-catalog.json +56 -51
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking.agent.d.ts +4 -0
- package/dist/components/booking/booking.d.ts +91 -0
- package/dist/components/booking/index.d.ts +4 -0
- package/dist/components/booking/index.js +6 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/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/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +60 -48
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +4 -3
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/i18n/config.js +1090 -46
- package/dist/i18n/locales/ar.d.ts +58 -0
- package/dist/i18n/locales/de.d.ts +58 -0
- package/dist/i18n/locales/el.d.ts +58 -0
- package/dist/i18n/locales/es.d.ts +58 -0
- package/dist/i18n/locales/fr.d.ts +58 -0
- package/dist/i18n/locales/hi.d.ts +58 -0
- package/dist/i18n/locales/ja.d.ts +58 -0
- package/dist/i18n/locales/nl.d.ts +58 -0
- package/dist/i18n/locales/pl.d.ts +58 -0
- package/dist/i18n/locales/pt.d.ts +58 -0
- package/dist/i18n/locales/ro.d.ts +58 -0
- package/dist/i18n/locales/ru.d.ts +58 -0
- package/dist/i18n/locales/sq.d.ts +58 -0
- package/dist/i18n/locales/sv.d.ts +58 -0
- package/dist/i18n/locales/tr.d.ts +58 -0
- package/dist/i18n/locales/zh.d.ts +58 -0
- package/dist/i18n/resources.d.ts +116 -0
- package/dist/index.js +270 -269
- package/dist/locales/ar.json +59 -1
- package/dist/locales/de.json +59 -1
- package/dist/locales/el.json +59 -1
- package/dist/locales/en.json +59 -1
- package/dist/locales/es.json +59 -1
- package/dist/locales/fr.json +59 -1
- package/dist/locales/hi.json +59 -1
- package/dist/locales/it.json +59 -1
- package/dist/locales/ja.json +59 -1
- package/dist/locales/nl.json +59 -1
- package/dist/locales/pl.json +59 -1
- package/dist/locales/pt.json +59 -1
- package/dist/locales/ro.json +59 -1
- package/dist/locales/ru.json +59 -1
- package/dist/locales/sq.json +59 -1
- package/dist/locales/sv.json +59 -1
- package/dist/locales/tr.json +59 -1
- package/dist/locales/zh.json +59 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
- package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
- package/dist/_chunks/patient-shell-B164drIa.js +0 -173
- package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
- package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
- package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
- package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
- package/dist/components/stepper-calendar/index.d.ts +0 -4
- package/dist/components/stepper-calendar/index.js +0 -6
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
|
@@ -18,7 +18,7 @@ const u = _({
|
|
|
18
18
|
variant: {
|
|
19
19
|
default: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)]",
|
|
20
20
|
outlined: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--border)]",
|
|
21
|
-
elevated: "ds:bg-[var(--card)] ds:shadow-[var(--shadow-card)]"
|
|
21
|
+
elevated: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)]"
|
|
22
22
|
},
|
|
23
23
|
interactive: {
|
|
24
24
|
true: [
|
|
@@ -122,7 +122,7 @@ const p = t(
|
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
p.displayName = "Card.Header";
|
|
125
|
-
const
|
|
125
|
+
const b = t(
|
|
126
126
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
127
127
|
"div",
|
|
128
128
|
{
|
|
@@ -135,8 +135,8 @@ const g = t(
|
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
|
-
|
|
139
|
-
const
|
|
138
|
+
b.displayName = "Card.Media";
|
|
139
|
+
const g = t(
|
|
140
140
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
141
141
|
"div",
|
|
142
142
|
{
|
|
@@ -146,8 +146,8 @@ const h = t(
|
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
);
|
|
149
|
-
|
|
150
|
-
const
|
|
149
|
+
g.displayName = "Card.Body";
|
|
150
|
+
const h = t(
|
|
151
151
|
({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
@@ -160,14 +160,14 @@ const b = t(
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
);
|
|
163
|
-
|
|
163
|
+
h.displayName = "Card.Footer";
|
|
164
164
|
const O = Object.assign(m, {
|
|
165
165
|
Header: p,
|
|
166
|
-
Media:
|
|
167
|
-
Body:
|
|
168
|
-
Footer:
|
|
166
|
+
Media: b,
|
|
167
|
+
Body: g,
|
|
168
|
+
Footer: h
|
|
169
169
|
});
|
|
170
170
|
export {
|
|
171
171
|
O as C
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=card-
|
|
173
|
+
//# sourceMappingURL=card-DKTMLVrw.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as F, jsxs as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as De, useState as ne, useCallback as le, useEffect as fe, forwardRef as xe, useId as xt, useMemo as Qe, useImperativeHandle as yt, Children as et, isValidElement as tt, createContext as It, useContext as Ct } from "react";
|
|
3
3
|
import { c as nt } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ye } from "react-i18next";
|
|
5
|
-
import { I as Je } from "./icon-button-
|
|
5
|
+
import { I as Je } from "./icon-button-BRHSSFmZ.js";
|
|
6
6
|
import { C as Lt } from "./chevron-left-CX1jqD2M.js";
|
|
7
7
|
import { C as wt } from "./chevron-right-BrpYejk0.js";
|
|
8
8
|
function Et(e) {
|
|
@@ -1730,4 +1730,4 @@ export {
|
|
|
1730
1730
|
yn as C,
|
|
1731
1731
|
In as c
|
|
1732
1732
|
};
|
|
1733
|
-
//# sourceMappingURL=carousel.agent-
|
|
1733
|
+
//# sourceMappingURL=carousel.agent-C9swH-Uf.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as r, Fragment as ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ve, useId as be, useRef as v, useCallback as $, useLayoutEffect as ye, useImperativeHandle as xe, useMemo as Ie } from "react";
|
|
3
3
|
import { c as ke } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Ce } from "react-i18next";
|
|
5
|
-
import { I as W } from "./icon-button-
|
|
5
|
+
import { I as W } from "./icon-button-BRHSSFmZ.js";
|
|
6
6
|
import { u as we } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as Ne } from "./registry-C9nwlNyL.js";
|
|
8
8
|
import { c as Ve } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
Re as C,
|
|
335
335
|
Te as c
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=chat-input-
|
|
337
|
+
//# sourceMappingURL=chat-input-BfDcz1Yi.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as C, useMemo as j, Fragment as g } from "react";
|
|
|
3
3
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as T } from "react-i18next";
|
|
5
5
|
import { B as z } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { A as M } from "./avatar-
|
|
6
|
+
import { A as M } from "./avatar-D_H4emLo.js";
|
|
7
7
|
import { T as I } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { s as A } from "./safe-image-src-DstKgCo7.js";
|
|
9
9
|
import { c as F } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -236,4 +236,4 @@ H.displayName = "ChatMessage";
|
|
|
236
236
|
export {
|
|
237
237
|
H as C
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=chat-message-
|
|
239
|
+
//# sourceMappingURL=chat-message-fg221-yx.js.map
|
|
@@ -264,7 +264,7 @@ function ae(e, t) {
|
|
|
264
264
|
}
|
|
265
265
|
const se = [
|
|
266
266
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
267
|
-
"ds:bg-[var(--
|
|
267
|
+
"ds:bg-[var(--background)]/70 ds:backdrop-blur-sm",
|
|
268
268
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
269
269
|
"ds:data-[state=open]:fade-in ds:data-[state=closed]:fade-out",
|
|
270
270
|
"ds:motion-reduce:animate-none"
|
|
@@ -445,4 +445,4 @@ export {
|
|
|
445
445
|
ae as k,
|
|
446
446
|
me as u
|
|
447
447
|
};
|
|
448
|
-
//# sourceMappingURL=command-palette-
|
|
448
|
+
//# sourceMappingURL=command-palette-11BieSNq.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i, Fragment as b } from "react";
|
|
3
3
|
import { useTranslation as k } from "react-i18next";
|
|
4
|
-
import { C as o } from "./card-
|
|
4
|
+
import { C as o } from "./card-DKTMLVrw.js";
|
|
5
5
|
import { L as p } from "./link-DmM5IevO.js";
|
|
6
6
|
import { M as v } from "./map-pin-B8STOPMJ.js";
|
|
7
7
|
function L(s) {
|
|
@@ -118,4 +118,4 @@ const M = Object.assign(f, {
|
|
|
118
118
|
export {
|
|
119
119
|
M as C
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=contact-card-
|
|
121
|
+
//# sourceMappingURL=contact-card-CeEfEAxh.js.map
|
|
@@ -7,10 +7,9 @@ import { useTranslation as Ee } from "react-i18next";
|
|
|
7
7
|
import * as Z from "@radix-ui/react-popover";
|
|
8
8
|
import { u as He } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as qe } from "./form-field-context-B3APVHKx.js";
|
|
10
|
-
import {
|
|
11
|
-
import { g as ce, e as Ke, b as S, h as ue, j as ze, k as Ze, c as le, l as de, m as je, n as ae, o as $e, w as ie, p as Ue, f as oe, q as Je } from "./isSameMonth-5wNF2f4I.js";
|
|
10
|
+
import { r as ce, u as Ce, s as S, v as ue, w as Le, x as Ne, a as le, y as de, z as Re, A as ae, B as Qe, E as ie, F as We, g as Ae, G as Fe, h as oe, c as Be, m as Ge, n as Ve, t as Xe, C as Ke, j as ze, p as Ze, D as $e, k as je, l as Ue, H as Je } from "./react-day-picker-D3yzgvDB.js";
|
|
12
11
|
import { u as Se } from "./registry-C9nwlNyL.js";
|
|
13
|
-
import { t as E, c as O, m as et, a as tt,
|
|
12
|
+
import { t as E, c as O, m as et, a as tt, b as rt } from "./isSameDay-DHG8Xade.js";
|
|
14
13
|
function nt() {
|
|
15
14
|
return Object.assign({}, ce());
|
|
16
15
|
}
|
|
@@ -196,7 +195,7 @@ function w(n, s) {
|
|
|
196
195
|
return f(new RegExp("^\\d{1," + n + "}"), s);
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function $(n, s) {
|
|
200
199
|
switch (n) {
|
|
201
200
|
case 1:
|
|
202
201
|
return f(h.singleDigitSigned, s);
|
|
@@ -325,7 +324,7 @@ class ft extends l {
|
|
|
325
324
|
return t.isTwoDigitYear || t.year > 0;
|
|
326
325
|
}
|
|
327
326
|
set(e, t, r, a) {
|
|
328
|
-
const o =
|
|
327
|
+
const o = Ce(e, a);
|
|
329
328
|
if (r.isTwoDigitYear) {
|
|
330
329
|
const m = he(
|
|
331
330
|
r.year,
|
|
@@ -364,7 +363,7 @@ class wt extends l {
|
|
|
364
363
|
]);
|
|
365
364
|
}
|
|
366
365
|
parse(e, t) {
|
|
367
|
-
return
|
|
366
|
+
return $(t === "R" ? 4 : t.length, e);
|
|
368
367
|
}
|
|
369
368
|
set(e, t, r) {
|
|
370
369
|
const a = O(e, 0);
|
|
@@ -378,7 +377,7 @@ class ht extends l {
|
|
|
378
377
|
i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
379
378
|
}
|
|
380
379
|
parse(e, t) {
|
|
381
|
-
return
|
|
380
|
+
return $(t === "u" ? 4 : t.length, e);
|
|
382
381
|
}
|
|
383
382
|
set(e, t, r) {
|
|
384
383
|
return e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
@@ -655,7 +654,7 @@ class mt extends l {
|
|
|
655
654
|
}
|
|
656
655
|
}
|
|
657
656
|
function xt(n, s, e) {
|
|
658
|
-
const t = E(n, e == null ? void 0 : e.in), r =
|
|
657
|
+
const t = E(n, e == null ? void 0 : e.in), r = Le(t, e) - s;
|
|
659
658
|
return t.setDate(t.getDate() - r * 7), E(t, e == null ? void 0 : e.in);
|
|
660
659
|
}
|
|
661
660
|
class gt extends l {
|
|
@@ -696,7 +695,7 @@ class gt extends l {
|
|
|
696
695
|
}
|
|
697
696
|
}
|
|
698
697
|
function kt(n, s, e) {
|
|
699
|
-
const t = E(n, e == null ? void 0 : e.in), r =
|
|
698
|
+
const t = E(n, e == null ? void 0 : e.in), r = Ne(t, e) - s;
|
|
700
699
|
return t.setDate(t.getDate() - r * 7), t;
|
|
701
700
|
}
|
|
702
701
|
class Tt extends l {
|
|
@@ -1528,10 +1527,10 @@ const Kt = {
|
|
|
1528
1527
|
x: new Gt(),
|
|
1529
1528
|
t: new Vt(),
|
|
1530
1529
|
T: new Xt()
|
|
1531
|
-
}, zt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
|
|
1530
|
+
}, zt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $t = /^'([^]*?)'?$/, jt = /''/g, Ut = /\S/, Jt = /[a-zA-Z]/;
|
|
1532
1531
|
function St(n, s, e, t) {
|
|
1533
1532
|
var M, R, A, G, I, Y, V, X;
|
|
1534
|
-
const r = () => O((t == null ? void 0 : t.in) || e, NaN), a = nt(), o = (t == null ? void 0 : t.locale) ?? a.locale ??
|
|
1533
|
+
const r = () => O((t == null ? void 0 : t.in) || e, NaN), a = nt(), o = (t == null ? void 0 : t.locale) ?? a.locale ?? Re, b = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((R = (M = t == null ? void 0 : t.locale) == null ? void 0 : M.options) == null ? void 0 : R.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((G = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : G.firstWeekContainsDate) ?? 1, m = (t == null ? void 0 : t.weekStartsOn) ?? ((Y = (I = t == null ? void 0 : t.locale) == null ? void 0 : I.options) == null ? void 0 : Y.weekStartsOn) ?? a.weekStartsOn ?? ((X = (V = a.locale) == null ? void 0 : V.options) == null ? void 0 : X.weekStartsOn) ?? 0;
|
|
1535
1534
|
if (!s)
|
|
1536
1535
|
return n ? r() : E(e, t == null ? void 0 : t.in);
|
|
1537
1536
|
const v = {
|
|
@@ -1547,7 +1546,7 @@ function St(n, s, e, t) {
|
|
|
1547
1546
|
return c;
|
|
1548
1547
|
}).join("").match(zt), _ = [];
|
|
1549
1548
|
for (let c of L) {
|
|
1550
|
-
!(t != null && t.useAdditionalWeekYearTokens) &&
|
|
1549
|
+
!(t != null && t.useAdditionalWeekYearTokens) && Qe(c) && ie(c, s, n), !(t != null && t.useAdditionalDayOfYearTokens) && We(c) && ie(c, s, n);
|
|
1551
1550
|
const u = c[0], p = Kt[u];
|
|
1552
1551
|
if (p) {
|
|
1553
1552
|
const { incompatibleTokens: g } = p;
|
|
@@ -1601,7 +1600,7 @@ function St(n, s, e, t) {
|
|
|
1601
1600
|
return x;
|
|
1602
1601
|
}
|
|
1603
1602
|
function er(n) {
|
|
1604
|
-
return n.match(
|
|
1603
|
+
return n.match($t)[1].replace(jt, "'");
|
|
1605
1604
|
}
|
|
1606
1605
|
const tr = {
|
|
1607
1606
|
id: "date-picker",
|
|
@@ -1686,22 +1685,22 @@ const tr = {
|
|
|
1686
1685
|
className: L,
|
|
1687
1686
|
id: _
|
|
1688
1687
|
}, N) => {
|
|
1689
|
-
const { t: x, i18n: W } = Ee(), M = qe(), R = _ ?? M.id, A = M.disabled || v, G = M.invalid ? "error" : "default", I =
|
|
1688
|
+
const { t: x, i18n: W } = Ee(), M = qe(), R = _ ?? M.id, A = M.disabled || v, G = M.invalid ? "error" : "default", I = Ae(W.language), Y = Fe(W.language), V = H ?? x("inputs.datePicker.placeholder", "Select date"), [X, c] = He({
|
|
1690
1689
|
value: n,
|
|
1691
1690
|
defaultValue: s,
|
|
1692
1691
|
onChange: e
|
|
1693
1692
|
}), u = X, [p, g] = z(!1), [F, Q] = z(
|
|
1694
1693
|
u ? oe(u, Y, { locale: I }) : ""
|
|
1695
|
-
), [B, K] = z(!1), [pe,
|
|
1694
|
+
), [B, K] = z(!1), [pe, j] = z(u ?? /* @__PURE__ */ new Date()), U = ne(null);
|
|
1696
1695
|
_e(() => {
|
|
1697
1696
|
u ? (Q(oe(u, Y, { locale: I })), K(!1)) : Q("");
|
|
1698
1697
|
}, [u, Y, I]);
|
|
1699
|
-
const be =
|
|
1698
|
+
const be = Be(
|
|
1700
1699
|
t,
|
|
1701
1700
|
r,
|
|
1702
1701
|
a
|
|
1703
1702
|
), me = se(
|
|
1704
|
-
(d) => t &&
|
|
1703
|
+
(d) => t && Ge(d, t) || r && Ve(d, r) ? !0 : Array.isArray(a) ? a.some(
|
|
1705
1704
|
(k) => k.toDateString() === d.toDateString()
|
|
1706
1705
|
) : typeof a == "function" ? a(d) : !1,
|
|
1707
1706
|
[t, r, a]
|
|
@@ -1717,7 +1716,7 @@ const tr = {
|
|
|
1717
1716
|
return;
|
|
1718
1717
|
}
|
|
1719
1718
|
const C = St(k, Y, /* @__PURE__ */ new Date(), { locale: I });
|
|
1720
|
-
Je(C) && !me(C) ? (K(!1), q(C),
|
|
1719
|
+
Je(C) && !me(C) ? (K(!1), q(C), j(C)) : k.length === Y.length && K(!0);
|
|
1721
1720
|
}, ge = (d) => {
|
|
1722
1721
|
d.key === "Enter" && p && (d.preventDefault(), g(!1)), d.key === "Escape" && p && (d.preventDefault(), g(!1)), d.key === "ArrowDown" && !p && (d.preventDefault(), g(!0));
|
|
1723
1722
|
}, ke = (d) => {
|
|
@@ -1726,7 +1725,7 @@ const tr = {
|
|
|
1726
1725
|
}, Te = (d) => {
|
|
1727
1726
|
var C;
|
|
1728
1727
|
const k = d.date();
|
|
1729
|
-
q(k),
|
|
1728
|
+
q(k), j(k), g(!1), (C = U.current) == null || C.focus();
|
|
1730
1729
|
}, De = x("inputs.datePicker.gridLabel", "Calendar"), Pe = Ie(
|
|
1731
1730
|
() => ({
|
|
1732
1731
|
getValue: () => u,
|
|
@@ -1765,20 +1764,20 @@ const tr = {
|
|
|
1765
1764
|
onChange: xe,
|
|
1766
1765
|
onKeyDown: ge,
|
|
1767
1766
|
onClick: () => !p && g(!0),
|
|
1768
|
-
className:
|
|
1767
|
+
className: Xe({
|
|
1769
1768
|
size: m,
|
|
1770
1769
|
tone: B ? "error" : G
|
|
1771
1770
|
})
|
|
1772
1771
|
}
|
|
1773
1772
|
) }),
|
|
1774
|
-
/* @__PURE__ */ T("span", { "aria-hidden": "true", className:
|
|
1773
|
+
/* @__PURE__ */ T("span", { "aria-hidden": "true", className: ze({ size: m }), children: /* @__PURE__ */ T(Ke, {}) })
|
|
1775
1774
|
] }),
|
|
1776
1775
|
/* @__PURE__ */ T(Z.Portal, { children: /* @__PURE__ */ T(
|
|
1777
1776
|
Z.Content,
|
|
1778
1777
|
{
|
|
1779
1778
|
sideOffset: 4,
|
|
1780
1779
|
align: "start",
|
|
1781
|
-
className:
|
|
1780
|
+
className: Ue(),
|
|
1782
1781
|
onOpenAutoFocus: (d) => {
|
|
1783
1782
|
d.preventDefault();
|
|
1784
1783
|
},
|
|
@@ -1788,25 +1787,25 @@ const tr = {
|
|
|
1788
1787
|
{
|
|
1789
1788
|
type: "button",
|
|
1790
1789
|
onClick: () => Te(d),
|
|
1791
|
-
className:
|
|
1790
|
+
className: Ze(),
|
|
1792
1791
|
children: d.label
|
|
1793
1792
|
},
|
|
1794
1793
|
d.label
|
|
1795
1794
|
)) }) : null,
|
|
1796
1795
|
/* @__PURE__ */ T("div", { role: "region", "aria-label": De, children: /* @__PURE__ */ T(
|
|
1797
|
-
|
|
1796
|
+
$e,
|
|
1798
1797
|
{
|
|
1799
1798
|
mode: "single",
|
|
1800
1799
|
selected: u,
|
|
1801
1800
|
onSelect: ke,
|
|
1802
1801
|
month: pe,
|
|
1803
|
-
onMonthChange:
|
|
1802
|
+
onMonthChange: j,
|
|
1804
1803
|
disabled: be,
|
|
1805
1804
|
weekStartsOn: o,
|
|
1806
1805
|
locale: I,
|
|
1807
1806
|
showOutsideDays: !0,
|
|
1808
1807
|
fixedWeeks: !0,
|
|
1809
|
-
components: { Chevron:
|
|
1808
|
+
components: { Chevron: je }
|
|
1810
1809
|
}
|
|
1811
1810
|
) })
|
|
1812
1811
|
] })
|
|
@@ -1822,4 +1821,4 @@ export {
|
|
|
1822
1821
|
rr as D,
|
|
1823
1822
|
tr as d
|
|
1824
1823
|
};
|
|
1825
|
-
//# sourceMappingURL=date-picker-
|
|
1824
|
+
//# sourceMappingURL=date-picker-D0Ry1dMz.js.map
|
|
@@ -4,14 +4,13 @@ import { useTranslation as z } from "react-i18next";
|
|
|
4
4
|
import * as m from "@radix-ui/react-popover";
|
|
5
5
|
import { u as ee } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
6
|
import { u as te } from "./form-field-context-B3APVHKx.js";
|
|
7
|
-
import { a as ae,
|
|
8
|
-
import { c as ue, b as I, s as fe, f as b, d as me } from "./isSameMonth-5wNF2f4I.js";
|
|
7
|
+
import { a as ae, b as ne, g as re, c as se, e as N, s as I, d as oe, f as ie, h as b, i as de, C as ce, j as le, t as pe, p as ge, D as ue, k as fe, l as me } from "./react-day-picker-D3yzgvDB.js";
|
|
9
8
|
import { u as ye } from "./registry-C9nwlNyL.js";
|
|
10
9
|
function v(t, r, o) {
|
|
11
|
-
return
|
|
10
|
+
return ae(t, -r, o);
|
|
12
11
|
}
|
|
13
12
|
function he(t, r, o) {
|
|
14
|
-
return
|
|
13
|
+
return ne(t, -1, o);
|
|
15
14
|
}
|
|
16
15
|
const ke = {
|
|
17
16
|
id: "date-range-picker",
|
|
@@ -97,9 +96,9 @@ const ke = {
|
|
|
97
96
|
disabled: V,
|
|
98
97
|
placeholder: K,
|
|
99
98
|
className: L,
|
|
100
|
-
id:
|
|
101
|
-
},
|
|
102
|
-
const { t: s, i18n: A } = z(), c = te(), h =
|
|
99
|
+
id: j
|
|
100
|
+
}, F) => {
|
|
101
|
+
const { t: s, i18n: A } = z(), c = te(), h = j ?? c.id, D = c.disabled || V, B = c.invalid ? "error" : "default", i = re(A.language), H = K ?? s("inputs.dateRangePicker.placeholder", "Select date range"), [_, P] = ee({
|
|
103
102
|
value: t,
|
|
104
103
|
defaultValue: r ?? {},
|
|
105
104
|
onChange: o
|
|
@@ -108,7 +107,7 @@ const ke = {
|
|
|
108
107
|
P(e);
|
|
109
108
|
},
|
|
110
109
|
[P]
|
|
111
|
-
), q =
|
|
110
|
+
), q = se(l, T), M = [
|
|
112
111
|
{
|
|
113
112
|
label: s("inputs.dateRangePicker.presets.today", "Today"),
|
|
114
113
|
range: () => {
|
|
@@ -150,8 +149,8 @@ const ke = {
|
|
|
150
149
|
{
|
|
151
150
|
label: s("inputs.dateRangePicker.presets.thisMonth", "This month"),
|
|
152
151
|
range: () => ({
|
|
153
|
-
from:
|
|
154
|
-
to:
|
|
152
|
+
from: ie(/* @__PURE__ */ new Date()),
|
|
153
|
+
to: oe(/* @__PURE__ */ new Date())
|
|
155
154
|
})
|
|
156
155
|
},
|
|
157
156
|
{
|
|
@@ -174,7 +173,7 @@ const ke = {
|
|
|
174
173
|
return a.from ? b(a.from, "MMM d, yyyy", { locale: i }) : "";
|
|
175
174
|
})(), x = (() => {
|
|
176
175
|
if (a.from && a.to) {
|
|
177
|
-
const e =
|
|
176
|
+
const e = de(a.to, a.from) + 1;
|
|
178
177
|
return s("inputs.dateRangePicker.days", "{{count}} days", {
|
|
179
178
|
count: e
|
|
180
179
|
});
|
|
@@ -191,7 +190,7 @@ const ke = {
|
|
|
191
190
|
}),
|
|
192
191
|
[a, d, p]
|
|
193
192
|
);
|
|
194
|
-
return Z(
|
|
193
|
+
return Z(F, () => k, [k]), ye(ke, k, h), /* @__PURE__ */ n(m.Root, { open: p, onOpenChange: g, children: /* @__PURE__ */ f(
|
|
195
194
|
"div",
|
|
196
195
|
{
|
|
197
196
|
className: L,
|
|
@@ -209,7 +208,7 @@ const ke = {
|
|
|
209
208
|
"aria-invalid": c.invalid || void 0,
|
|
210
209
|
"aria-haspopup": "dialog",
|
|
211
210
|
"aria-expanded": p,
|
|
212
|
-
className:
|
|
211
|
+
className: pe({ size: R, tone: B }),
|
|
213
212
|
children: [
|
|
214
213
|
/* @__PURE__ */ n(
|
|
215
214
|
"span",
|
|
@@ -222,8 +221,8 @@ const ke = {
|
|
|
222
221
|
"span",
|
|
223
222
|
{
|
|
224
223
|
"aria-hidden": "true",
|
|
225
|
-
className:
|
|
226
|
-
children: /* @__PURE__ */ n(
|
|
224
|
+
className: le({ size: R }),
|
|
225
|
+
children: /* @__PURE__ */ n(ce, {})
|
|
227
226
|
}
|
|
228
227
|
)
|
|
229
228
|
]
|
|
@@ -234,21 +233,21 @@ const ke = {
|
|
|
234
233
|
{
|
|
235
234
|
sideOffset: 4,
|
|
236
235
|
align: "start",
|
|
237
|
-
className:
|
|
236
|
+
className: me(),
|
|
238
237
|
children: /* @__PURE__ */ f("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
239
238
|
C.length > 0 ? /* @__PURE__ */ n("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: C.map((e) => /* @__PURE__ */ n(
|
|
240
239
|
"button",
|
|
241
240
|
{
|
|
242
241
|
type: "button",
|
|
243
242
|
onClick: () => G(e),
|
|
244
|
-
className:
|
|
243
|
+
className: ge(),
|
|
245
244
|
children: e.label
|
|
246
245
|
},
|
|
247
246
|
e.label
|
|
248
247
|
)) }) : null,
|
|
249
248
|
/* @__PURE__ */ f("div", { children: [
|
|
250
249
|
/* @__PURE__ */ n(
|
|
251
|
-
|
|
250
|
+
ue,
|
|
252
251
|
{
|
|
253
252
|
mode: "range",
|
|
254
253
|
selected: a.from ? { from: a.from, to: a.to } : void 0,
|
|
@@ -261,7 +260,7 @@ const ke = {
|
|
|
261
260
|
showOutsideDays: !0,
|
|
262
261
|
fixedWeeks: !0,
|
|
263
262
|
pagedNavigation: !0,
|
|
264
|
-
components: { Chevron:
|
|
263
|
+
components: { Chevron: fe }
|
|
265
264
|
}
|
|
266
265
|
),
|
|
267
266
|
x ? /* @__PURE__ */ n(
|
|
@@ -287,4 +286,4 @@ export {
|
|
|
287
286
|
be as D,
|
|
288
287
|
ke as d
|
|
289
288
|
};
|
|
290
|
-
//# sourceMappingURL=date-range-picker-
|
|
289
|
+
//# sourceMappingURL=date-range-picker-DYgHzMOo.js.map
|
|
@@ -6,10 +6,9 @@ import * as k from "@radix-ui/react-popover";
|
|
|
6
6
|
import { u as me } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as pe } from "./form-field-context-B3APVHKx.js";
|
|
8
8
|
import { T as fe } from "./time-picker-DeVZkIY2.js";
|
|
9
|
-
import { g as ge,
|
|
10
|
-
import { f as Pe } from "./isSameMonth-5wNF2f4I.js";
|
|
9
|
+
import { g as ge, c as he, m as ve, n as be, h as ye, C as Te, j as ke, t as we, D as De, k as Ce, l as Pe } from "./react-day-picker-D3yzgvDB.js";
|
|
11
10
|
import { u as xe } from "./registry-C9nwlNyL.js";
|
|
12
|
-
import { t as j } from "./isSameDay-
|
|
11
|
+
import { t as j } from "./isSameDay-DHG8Xade.js";
|
|
13
12
|
function K(e, t, r) {
|
|
14
13
|
const i = j(e, r == null ? void 0 : r.in);
|
|
15
14
|
return i.setHours(t), i;
|
|
@@ -179,7 +178,7 @@ const Ve = ce(
|
|
|
179
178
|
}
|
|
180
179
|
b(o), v(!1), (a = L.current) == null || a.focus();
|
|
181
180
|
}
|
|
182
|
-
}, H = n ?
|
|
181
|
+
}, H = n ? ye(n, "MMM d, yyyy HH:mm", { locale: V }) : "", re = l("inputs.datePicker.gridLabel", "Calendar"), ie = l("inputs.timePicker.groupLabel", "Time"), x = de(
|
|
183
182
|
() => ({
|
|
184
183
|
getValue: () => n,
|
|
185
184
|
setValue: (a) => b(a),
|
|
@@ -211,7 +210,7 @@ const Ve = ce(
|
|
|
211
210
|
"aria-invalid": c.invalid || void 0,
|
|
212
211
|
"aria-haspopup": "dialog",
|
|
213
212
|
"aria-expanded": h,
|
|
214
|
-
className:
|
|
213
|
+
className: we({ size: f, tone: q }),
|
|
215
214
|
children: [
|
|
216
215
|
/* @__PURE__ */ s(
|
|
217
216
|
"span",
|
|
@@ -224,8 +223,8 @@ const Ve = ce(
|
|
|
224
223
|
"span",
|
|
225
224
|
{
|
|
226
225
|
"aria-hidden": "true",
|
|
227
|
-
className:
|
|
228
|
-
children: /* @__PURE__ */ s(
|
|
226
|
+
className: ke({ size: f }),
|
|
227
|
+
children: /* @__PURE__ */ s(Te, {})
|
|
229
228
|
}
|
|
230
229
|
)
|
|
231
230
|
]
|
|
@@ -236,10 +235,10 @@ const Ve = ce(
|
|
|
236
235
|
{
|
|
237
236
|
sideOffset: 4,
|
|
238
237
|
align: "start",
|
|
239
|
-
className:
|
|
238
|
+
className: Pe(),
|
|
240
239
|
children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:sm:flex-row ds:gap-[var(--spacing-md)]", children: [
|
|
241
240
|
/* @__PURE__ */ s("div", { role: "region", "aria-label": re, children: /* @__PURE__ */ s(
|
|
242
|
-
|
|
241
|
+
De,
|
|
243
242
|
{
|
|
244
243
|
mode: "single",
|
|
245
244
|
selected: o,
|
|
@@ -250,7 +249,7 @@ const Ve = ce(
|
|
|
250
249
|
locale: V,
|
|
251
250
|
showOutsideDays: !0,
|
|
252
251
|
fixedWeeks: !0,
|
|
253
|
-
components: { Chevron:
|
|
252
|
+
components: { Chevron: Ce }
|
|
254
253
|
}
|
|
255
254
|
) }),
|
|
256
255
|
/* @__PURE__ */ y(
|
|
@@ -308,4 +307,4 @@ export {
|
|
|
308
307
|
Se as D,
|
|
309
308
|
Oe as d
|
|
310
309
|
};
|
|
311
|
-
//# sourceMappingURL=date-time-picker-
|
|
310
|
+
//# sourceMappingURL=date-time-picker-CGmGtcyc.js.map
|