@alfadocs/ui-kit 0.25.1 → 0.30.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-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-BYuc_8HV.js +2250 -0
- package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -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-DYbp--s-.js} +3 -3
- 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-CkMb1TZS.js} +24 -24
- package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
- 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/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
- 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/parseISO-Dk4xa7q6.js +120 -0
- package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
- package/dist/_chunks/patient-shell-CAXYzbRw.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-footer.agent-CA29gxHJ.js +516 -0
- 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/reviews-panel-CFttsfuC.js +513 -0
- 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-B2zprPcv.js +387 -0
- 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-DT5qCW8Y.js +18 -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 +151 -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-types.d.ts +145 -0
- package/dist/components/booking/booking.agent.d.ts +4 -0
- package/dist/components/booking/booking.d.ts +6 -0
- package/dist/components/booking/cascade.d.ts +96 -0
- package/dist/components/booking/details-form.d.ts +32 -0
- package/dist/components/booking/index.d.ts +5 -0
- package/dist/components/booking/index.js +8 -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/checkbox/checkbox.d.ts +6 -2
- 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 +16 -15
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +7 -0
- 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/patient-search/index.d.ts +4 -0
- package/dist/components/patient-search/index.js +6 -0
- package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
- package/dist/components/patient-search/patient-search.d.ts +103 -0
- 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-footer/index.d.ts +6 -0
- package/dist/components/public-footer/index.js +10 -0
- package/dist/components/public-footer/legal-urls.d.ts +18 -0
- package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
- package/dist/components/public-footer/public-footer.d.ts +51 -0
- package/dist/components/public-footer/socials.d.ts +9 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/reviews-panel/index.d.ts +4 -0
- package/dist/components/reviews-panel/index.js +6 -0
- package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
- package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
- 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 +4923 -49
- package/dist/i18n/locales/ar.d.ts +272 -0
- package/dist/i18n/locales/de.d.ts +272 -0
- package/dist/i18n/locales/el.d.ts +272 -0
- package/dist/i18n/locales/es.d.ts +272 -0
- package/dist/i18n/locales/fr.d.ts +272 -0
- package/dist/i18n/locales/hi.d.ts +272 -0
- package/dist/i18n/locales/ja.d.ts +272 -0
- package/dist/i18n/locales/nl.d.ts +272 -0
- package/dist/i18n/locales/pl.d.ts +272 -0
- package/dist/i18n/locales/pt.d.ts +272 -0
- package/dist/i18n/locales/ro.d.ts +272 -0
- package/dist/i18n/locales/ru.d.ts +272 -0
- package/dist/i18n/locales/sq.d.ts +272 -0
- package/dist/i18n/locales/sv.d.ts +272 -0
- package/dist/i18n/locales/tr.d.ts +272 -0
- package/dist/i18n/locales/zh.d.ts +272 -0
- package/dist/i18n/resources.d.ts +544 -0
- package/dist/index.js +364 -348
- package/dist/locales/ar.json +273 -1
- package/dist/locales/de.json +273 -1
- package/dist/locales/el.json +273 -1
- package/dist/locales/en.json +273 -1
- package/dist/locales/es.json +273 -1
- package/dist/locales/fr.json +273 -1
- package/dist/locales/hi.json +273 -1
- package/dist/locales/it.json +273 -1
- package/dist/locales/ja.json +273 -1
- package/dist/locales/nl.json +273 -1
- package/dist/locales/pl.json +273 -1
- package/dist/locales/pt.json +273 -1
- package/dist/locales/ro.json +273 -1
- package/dist/locales/ru.json +273 -1
- package/dist/locales/sq.json +273 -1
- package/dist/locales/sv.json +273 -1
- package/dist/locales/tr.json +273 -1
- package/dist/locales/zh.json +273 -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 +17 -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/slot-grid-CgpYgBkW.js +0 -502
- 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
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as i, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as F, useMemo as R, useImperativeHandle as P } from "react";
|
|
3
|
-
import * as p from "@radix-ui/react-accordion";
|
|
4
|
-
import { c as v } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as $ } from "react-i18next";
|
|
6
|
-
import { s as E } from "./stepper-C-sIpRRU.js";
|
|
7
|
-
import { C as H } from "./chevron-down-BX_NP2Yh.js";
|
|
8
|
-
import { c as U } from "./createLucideIcon-CrFbzy84.js";
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v1.8.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
const B = [
|
|
16
|
-
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
17
|
-
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
18
|
-
], D = U("lock", B), N = "step-", x = (e) => `${N}${e}`, G = (e) => Number(e.slice(N.length)), u = [
|
|
19
|
-
"ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]",
|
|
20
|
-
"ds:animate-[stepper-icon-draw_var(--animation-duration)_var(--ease-out)_forwards]",
|
|
21
|
-
"ds:motion-reduce:animate-none ds:motion-reduce:[stroke-dashoffset:0]"
|
|
22
|
-
].join(" ");
|
|
23
|
-
function O() {
|
|
24
|
-
return /* @__PURE__ */ t(
|
|
25
|
-
"svg",
|
|
26
|
-
{
|
|
27
|
-
viewBox: "0 0 24 24",
|
|
28
|
-
fill: "none",
|
|
29
|
-
stroke: "currentColor",
|
|
30
|
-
strokeWidth: "3",
|
|
31
|
-
strokeLinecap: "round",
|
|
32
|
-
strokeLinejoin: "round",
|
|
33
|
-
"aria-hidden": "true",
|
|
34
|
-
className: "ds:size-4",
|
|
35
|
-
children: /* @__PURE__ */ t("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: u })
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
function W() {
|
|
40
|
-
return /* @__PURE__ */ i(
|
|
41
|
-
"svg",
|
|
42
|
-
{
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
fill: "none",
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
strokeWidth: "3",
|
|
47
|
-
strokeLinecap: "round",
|
|
48
|
-
strokeLinejoin: "round",
|
|
49
|
-
"aria-hidden": "true",
|
|
50
|
-
className: "ds:size-4",
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ t("path", { pathLength: "1", d: "M6 6l12 12", className: u }),
|
|
53
|
-
/* @__PURE__ */ t("path", { pathLength: "1", d: "M18 6l-12 12", className: u })
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
const q = [
|
|
59
|
-
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
60
|
-
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
61
|
-
"ds:size-[var(--min-target-size)]",
|
|
62
|
-
"ds:rounded-[var(--radius-full)]",
|
|
63
|
-
"ds:text-[var(--font-size-sm)] ds:font-[var(--font-weight-semibold)]",
|
|
64
|
-
"ds:border ds:border-[var(--border)]",
|
|
65
|
-
"ds:transition-[background-color,border-color,color]",
|
|
66
|
-
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
67
|
-
"ds:motion-reduce:transition-none"
|
|
68
|
-
].join(" "), X = v(q, {
|
|
69
|
-
variants: {
|
|
70
|
-
state: {
|
|
71
|
-
upcoming: "ds:bg-[var(--background)] ds:text-[var(--muted-foreground)]",
|
|
72
|
-
current: [
|
|
73
|
-
"ds:border-[var(--primary)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
|
|
74
|
-
"ds:animate-[stepper-indicator-pop_var(--animation-duration)_var(--ease-out)_both]",
|
|
75
|
-
"ds:motion-reduce:animate-none"
|
|
76
|
-
].join(" "),
|
|
77
|
-
completed: "ds:border-[var(--primary)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
|
|
78
|
-
error: [
|
|
79
|
-
"ds:border-[var(--destructive)] ds:bg-[var(--destructive)] ds:text-[var(--destructive-foreground)]",
|
|
80
|
-
"ds:animate-[stepper-indicator-pop_var(--animation-duration)_var(--ease-out)_both]",
|
|
81
|
-
"ds:motion-reduce:animate-none"
|
|
82
|
-
].join(" ")
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}), Z = v(
|
|
86
|
-
[
|
|
87
|
-
"ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]",
|
|
88
|
-
"ds:border ds:border-[var(--border)] ds:bg-[var(--card)]",
|
|
89
|
-
"ds:data-[state=open]:border-[var(--primary)]",
|
|
90
|
-
"ds:transition-[border-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
91
|
-
"ds:motion-reduce:transition-none"
|
|
92
|
-
].join(" "),
|
|
93
|
-
{
|
|
94
|
-
variants: {
|
|
95
|
-
tone: {
|
|
96
|
-
neutral: "",
|
|
97
|
-
error: "ds:data-[state=open]:border-[var(--destructive)]"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
defaultVariants: { tone: "neutral" }
|
|
101
|
-
}
|
|
102
|
-
), J = [
|
|
103
|
-
"ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
104
|
-
"ds:min-h-[var(--min-target-size)]",
|
|
105
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
106
|
-
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
|
|
107
|
-
"ds:text-start",
|
|
108
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
109
|
-
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
110
|
-
"ds:disabled:cursor-not-allowed",
|
|
111
|
-
"ds:transition-[background-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
112
|
-
"ds:motion-reduce:transition-none",
|
|
113
|
-
"ds:hover:enabled:bg-[var(--muted)]/40"
|
|
114
|
-
].join(" "), Q = (e) => [
|
|
115
|
-
"type-body-sm",
|
|
116
|
-
e === "current" || e === "error" ? "ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]" : e === "completed" ? "ds:text-[var(--foreground)]" : "ds:text-[var(--muted-foreground)]"
|
|
117
|
-
].join(" "), Y = [
|
|
118
|
-
"type-meta ds:text-[var(--muted-foreground)]",
|
|
119
|
-
"ds:mt-[var(--spacing-xs)]"
|
|
120
|
-
].join(" "), k = [
|
|
121
|
-
"type-meta",
|
|
122
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
123
|
-
"ds:text-[var(--muted-foreground)]"
|
|
124
|
-
].join(" "), ee = [
|
|
125
|
-
"ds:size-4 ds:shrink-0 ds:text-[var(--muted-foreground)]",
|
|
126
|
-
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
127
|
-
"ds:motion-reduce:transition-none",
|
|
128
|
-
"ds:group-data-[state=open]/item:rotate-180"
|
|
129
|
-
].join(" "), te = [
|
|
130
|
-
"type-meta ds:text-[var(--muted-foreground)]",
|
|
131
|
-
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
132
|
-
"ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-sm)]",
|
|
133
|
-
"ds:group-data-[state=open]/item:hidden"
|
|
134
|
-
].join(" "), re = [
|
|
135
|
-
"ds:overflow-hidden",
|
|
136
|
-
"ds:data-[state=open]:animate-[accordion-down_var(--animation-duration)_var(--ease-out)]",
|
|
137
|
-
"ds:data-[state=closed]:animate-[accordion-up_var(--animation-duration)_var(--ease-in)]"
|
|
138
|
-
].join(" "), se = [
|
|
139
|
-
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
140
|
-
"ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-md)]"
|
|
141
|
-
].join(" "), ae = v("ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", {
|
|
142
|
-
variants: {}
|
|
143
|
-
}), ne = F(
|
|
144
|
-
({
|
|
145
|
-
activeStep: e,
|
|
146
|
-
steps: l,
|
|
147
|
-
onStepChange: o,
|
|
148
|
-
"aria-label": w,
|
|
149
|
-
id: g,
|
|
150
|
-
className: j,
|
|
151
|
-
...C
|
|
152
|
-
}, _) => {
|
|
153
|
-
const { t: d } = $(), c = l.length, n = Math.max(0, Math.min(e, c - 1)), A = w ?? d("navigation.stepper.label"), f = d("navigation.stepper.edit"), S = d("navigation.stepper.locked"), z = d("navigation.stepper.completed"), L = d("navigation.stepper.error"), M = (s) => {
|
|
154
|
-
if (!s) return;
|
|
155
|
-
const r = G(s);
|
|
156
|
-
Number.isFinite(r) && r !== n && (o == null || o(r));
|
|
157
|
-
}, h = R(
|
|
158
|
-
() => ({
|
|
159
|
-
getCurrentStep: () => n,
|
|
160
|
-
getTotalSteps: () => c,
|
|
161
|
-
getOpenSteps: () => [n],
|
|
162
|
-
gotoStep: (s) => {
|
|
163
|
-
if (!o) return;
|
|
164
|
-
const r = Math.max(0, Math.min(s, Math.max(c - 1, 0)));
|
|
165
|
-
r !== n && o(r);
|
|
166
|
-
},
|
|
167
|
-
next: () => {
|
|
168
|
-
o && n < c - 1 && o(n + 1);
|
|
169
|
-
},
|
|
170
|
-
previous: () => {
|
|
171
|
-
o && n > 0 && o(n - 1);
|
|
172
|
-
}
|
|
173
|
-
}),
|
|
174
|
-
[n, c, o]
|
|
175
|
-
);
|
|
176
|
-
return P(_, () => h, [h]), /* @__PURE__ */ t(
|
|
177
|
-
p.Root,
|
|
178
|
-
{
|
|
179
|
-
type: "single",
|
|
180
|
-
value: x(n),
|
|
181
|
-
onValueChange: M,
|
|
182
|
-
collapsible: !1,
|
|
183
|
-
"aria-label": A,
|
|
184
|
-
id: g,
|
|
185
|
-
"data-component": "stepper-accordion",
|
|
186
|
-
"data-component-id": g,
|
|
187
|
-
className: ae({ className: j }),
|
|
188
|
-
...C,
|
|
189
|
-
children: l.map((s, r) => {
|
|
190
|
-
const a = E(r, n, s.status), m = a === "current" || a === "error", V = a === "upcoming", T = a === "error" ? "error" : "neutral", b = d("navigation.stepper.stepN", { n: r + 1 }), I = a === "completed" ? /* @__PURE__ */ i(y, { children: [
|
|
191
|
-
/* @__PURE__ */ t(O, {}),
|
|
192
|
-
/* @__PURE__ */ t("span", { className: "ds:sr-only", children: z })
|
|
193
|
-
] }) : a === "error" ? /* @__PURE__ */ i(y, { children: [
|
|
194
|
-
/* @__PURE__ */ t(W, {}),
|
|
195
|
-
/* @__PURE__ */ t("span", { className: "ds:sr-only", children: L })
|
|
196
|
-
] }) : /* @__PURE__ */ t("span", { children: r + 1 }), K = a === "completed" ? /* @__PURE__ */ t("span", { className: k, children: f }) : a === "upcoming" ? /* @__PURE__ */ i("span", { className: k, children: [
|
|
197
|
-
/* @__PURE__ */ t(D, { "aria-hidden": "true", className: "ds:size-3" }),
|
|
198
|
-
S
|
|
199
|
-
] }) : null;
|
|
200
|
-
return /* @__PURE__ */ i(
|
|
201
|
-
p.Item,
|
|
202
|
-
{
|
|
203
|
-
value: x(r),
|
|
204
|
-
"data-step-id": String(r),
|
|
205
|
-
className: Z({ tone: T }),
|
|
206
|
-
children: [
|
|
207
|
-
/* @__PURE__ */ t(p.Header, { className: "ds:flex", children: /* @__PURE__ */ i(
|
|
208
|
-
p.Trigger,
|
|
209
|
-
{
|
|
210
|
-
disabled: V,
|
|
211
|
-
"aria-disabled": m || void 0,
|
|
212
|
-
"aria-label": a === "completed" ? `${b}, ${f}` : b,
|
|
213
|
-
"aria-current": m ? "step" : void 0,
|
|
214
|
-
className: J,
|
|
215
|
-
children: [
|
|
216
|
-
/* @__PURE__ */ t(
|
|
217
|
-
"span",
|
|
218
|
-
{
|
|
219
|
-
"aria-hidden": "true",
|
|
220
|
-
className: X({ state: a }),
|
|
221
|
-
children: I
|
|
222
|
-
}
|
|
223
|
-
),
|
|
224
|
-
/* @__PURE__ */ i("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
225
|
-
/* @__PURE__ */ t("span", { className: Q(a), children: s.label }),
|
|
226
|
-
s.description ? /* @__PURE__ */ t("span", { className: Y, children: s.description }) : null
|
|
227
|
-
] }),
|
|
228
|
-
K,
|
|
229
|
-
m ? null : /* @__PURE__ */ t(
|
|
230
|
-
H,
|
|
231
|
-
{
|
|
232
|
-
"aria-hidden": "true",
|
|
233
|
-
className: ee
|
|
234
|
-
}
|
|
235
|
-
)
|
|
236
|
-
]
|
|
237
|
-
}
|
|
238
|
-
) }),
|
|
239
|
-
s.summary && a === "completed" ? /* @__PURE__ */ t("div", { className: te, children: s.summary }) : null,
|
|
240
|
-
/* @__PURE__ */ t(p.Content, { className: re, children: /* @__PURE__ */ t("div", { className: se, children: s.content }) })
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
r
|
|
244
|
-
);
|
|
245
|
-
})
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
ne.displayName = "StepperAccordion";
|
|
251
|
-
const ue = {
|
|
252
|
-
id: "stepper-accordion",
|
|
253
|
-
capabilities: ["expand", "navigate"],
|
|
254
|
-
state: {
|
|
255
|
-
currentStep: {
|
|
256
|
-
type: "number",
|
|
257
|
-
descriptionKey: "ui.agent.stepperAccordion.state.currentStep",
|
|
258
|
-
description: "Zero-indexed active step.",
|
|
259
|
-
read: (e) => e.getCurrentStep()
|
|
260
|
-
},
|
|
261
|
-
totalSteps: {
|
|
262
|
-
type: "number",
|
|
263
|
-
descriptionKey: "ui.agent.stepperAccordion.state.totalSteps",
|
|
264
|
-
description: "Total number of steps in the flow.",
|
|
265
|
-
read: (e) => e.getTotalSteps()
|
|
266
|
-
},
|
|
267
|
-
openSteps: {
|
|
268
|
-
type: "number[]",
|
|
269
|
-
descriptionKey: "ui.agent.stepperAccordion.state.openSteps",
|
|
270
|
-
description: "Indices of currently-open step panels (singleton under Radix single mode).",
|
|
271
|
-
read: (e) => e.getOpenSteps()
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
actions: {
|
|
275
|
-
goto_step: {
|
|
276
|
-
safety: "read",
|
|
277
|
-
argsType: "{ step: number }",
|
|
278
|
-
descriptionKey: "ui.agent.stepperAccordion.actions.gotoStep",
|
|
279
|
-
description: "Activate the given step. Upcoming steps are gated by the consumer’s validation in onStepChange.",
|
|
280
|
-
invoke: (e, l) => {
|
|
281
|
-
e.gotoStep(l.step);
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
next: {
|
|
285
|
-
safety: "read",
|
|
286
|
-
descriptionKey: "ui.agent.stepperAccordion.actions.next",
|
|
287
|
-
description: "Advance to the next step. Subject to the consumer’s onStepChange validation.",
|
|
288
|
-
invoke: (e) => {
|
|
289
|
-
e.next();
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
previous: {
|
|
293
|
-
safety: "read",
|
|
294
|
-
descriptionKey: "ui.agent.stepperAccordion.actions.previous",
|
|
295
|
-
description: "Return to the previous step (re-opens a completed step in edit mode).",
|
|
296
|
-
invoke: (e) => {
|
|
297
|
-
e.previous();
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
domHooks: {
|
|
302
|
-
root: {
|
|
303
|
-
attr: "data-component",
|
|
304
|
-
value: "stepper-accordion",
|
|
305
|
-
description: "Marks the StepperAccordion root."
|
|
306
|
-
},
|
|
307
|
-
instanceId: {
|
|
308
|
-
attr: "data-component-id",
|
|
309
|
-
sourceProp: "id",
|
|
310
|
-
description: "Sourced from the id prop."
|
|
311
|
-
},
|
|
312
|
-
item: {
|
|
313
|
-
attr: "data-step-id",
|
|
314
|
-
description: "Stable opaque id of a step (the zero-indexed step number as a string)."
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
export {
|
|
319
|
-
ne as S,
|
|
320
|
-
ue as s
|
|
321
|
-
};
|
|
322
|
-
//# sourceMappingURL=stepper-accordion.agent-ckKYZCIP.js.map
|