@alfadocs/ui-kit 1.80.0 → 1.82.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/{address-fields-GnoSkvh6.js → address-fields-CfnXK8RT.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-M6u29f87.js → ai-prompt-input-DH_rnV-F.js} +33 -26
- package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js → anamnesis-summary-rows-6gMuu0ZK.js} +2 -2
- package/dist/_chunks/{autocomplete-DosDnGie.js → autocomplete-CnB1mHGc.js} +65 -64
- package/dist/_chunks/{balance-badge-cell-Dzd-Z_5W.js → balance-badge-cell-BHXJS8Ga.js} +2 -2
- package/dist/_chunks/{benefit-card-BWBClvdF.js → benefit-card-BcPtRHgM.js} +37 -36
- package/dist/_chunks/booking-dsgiuhKg.js +4304 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-DhTTWgXw.js → calendar-appointment-editor-dialog-BuumJbcv.js} +4 -4
- package/dist/_chunks/{city-input-3J3bz9EO.js → city-input-CJVGswxp.js} +2 -2
- package/dist/_chunks/{combobox-vF9O-QoG.js → combobox-CDPm_n0p.js} +93 -92
- package/dist/_chunks/{command-palette-D9TBzmOG.js → command-palette-B3dVqm9D.js} +68 -68
- package/dist/_chunks/{contact-profile-card-DKk94l-d.js → contact-profile-card-Da1vmJQI.js} +115 -102
- package/dist/_chunks/{country-select-CSE2Zm_s.js → country-select-DQ8q7ypA.js} +2 -2
- package/dist/_chunks/{face-scheme-BIPJqw9f.js → face-scheme-BgJGFDTa.js} +2 -2
- package/dist/_chunks/{header-settings-BYpVmLip.js → header-settings-CifwJEKB.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-B0riA_h_.js → link-cell-renderer-C0ynDik7.js} +3 -3
- package/dist/_chunks/{locale-picker-DzdGDSBI.js → locale-picker-QbT1p60X.js} +39 -38
- package/dist/_chunks/{map-view-C6MIVaqn.js → map-view-Bvi06RVh.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-mS7Q2-81.js → marketplace-app-shell-vON3WhD0.js} +2 -2
- package/dist/_chunks/{multi-select-BOad3za9.js → multi-select-i5MFRpXg.js} +194 -187
- package/dist/_chunks/{otp-input-BgEZi0py.js → otp-input-gV1446Dw.js} +70 -70
- package/dist/_chunks/{patient-details-B-I9Xkh9.js → patient-details-D0P5eog5.js} +2 -2
- package/dist/_chunks/{patient-field-row-Bn0z6lAZ.js → patient-field-row-R73dZJY6.js} +5 -5
- package/dist/_chunks/{patient-search-CxqNcth4.js → patient-search-Dy0sxcwv.js} +2 -2
- package/dist/_chunks/{patient-summary-card-bhDo0gVX.js → patient-summary-card-6U74-ivO.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js → payment-automation-upsell-D1YdO1xY.js} +2 -2
- package/dist/_chunks/{phone-input-C3NrD-nl.js → phone-input-DJ4BN8tG.js} +70 -63
- package/dist/_chunks/{practice-results-CtOanuzZ.js → practice-results-B61krlwu.js} +2 -2
- package/dist/_chunks/{province-select-CDjs5obD.js → province-select-CPdTwEob.js} +2 -2
- package/dist/_chunks/{registration-form-CNBfUduG.js → registration-form-DmP3YUfp.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-vTn1HxjA.js → send-registration-link-form-CZYOO7NO.js} +2 -2
- package/dist/_chunks/{task-editor-Cpw-NmND.js → task-editor-BOETWbjU.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-lFUL4kkd.js → use-appointment-details-read-CWN-nJCZ.js} +2 -2
- package/dist/agent-catalog.json +4 -4
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/benefit-card/benefit-card.d.ts +7 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +35 -2
- package/dist/components/booking/code-step.d.ts +4 -2
- package/dist/components/booking/details-form.d.ts +2 -0
- package/dist/components/booking/handover.d.ts +12 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts +24 -0
- package/dist/components/booking/use-booking-payment.d.ts +3 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +4 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/header-settings/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/multi-select/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/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/phone-input/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +8 -0
- package/dist/i18n/locales/ar.js +8 -0
- package/dist/i18n/locales/de.d.ts +8 -0
- package/dist/i18n/locales/de.js +8 -0
- package/dist/i18n/locales/el.d.ts +8 -0
- package/dist/i18n/locales/el.js +8 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/en.js +8 -0
- package/dist/i18n/locales/es.d.ts +8 -0
- package/dist/i18n/locales/es.js +8 -0
- package/dist/i18n/locales/fr.d.ts +8 -0
- package/dist/i18n/locales/fr.js +8 -0
- package/dist/i18n/locales/hi.d.ts +8 -0
- package/dist/i18n/locales/hi.js +8 -0
- package/dist/i18n/locales/it.d.ts +8 -0
- package/dist/i18n/locales/it.js +8 -0
- package/dist/i18n/locales/ja.d.ts +8 -0
- package/dist/i18n/locales/ja.js +8 -0
- package/dist/i18n/locales/nl.d.ts +8 -0
- package/dist/i18n/locales/nl.js +8 -0
- package/dist/i18n/locales/pl.d.ts +8 -0
- package/dist/i18n/locales/pl.js +8 -0
- package/dist/i18n/locales/pt.d.ts +8 -0
- package/dist/i18n/locales/pt.js +8 -0
- package/dist/i18n/locales/ro.d.ts +8 -0
- package/dist/i18n/locales/ro.js +8 -0
- package/dist/i18n/locales/ru.d.ts +8 -0
- package/dist/i18n/locales/ru.js +8 -0
- package/dist/i18n/locales/sq.d.ts +8 -0
- package/dist/i18n/locales/sq.js +8 -0
- package/dist/i18n/locales/sv.d.ts +8 -0
- package/dist/i18n/locales/sv.js +8 -0
- package/dist/i18n/locales/tr.d.ts +8 -0
- package/dist/i18n/locales/tr.js +8 -0
- package/dist/i18n/locales/zh.d.ts +8 -0
- package/dist/i18n/locales/zh.js +8 -0
- package/dist/index.js +30 -30
- package/dist/locales/ar.json +8 -0
- package/dist/locales/de.json +8 -0
- package/dist/locales/el.json +8 -0
- package/dist/locales/en.json +8 -0
- package/dist/locales/es.json +8 -0
- package/dist/locales/fr.json +8 -0
- package/dist/locales/hi.json +8 -0
- package/dist/locales/it.json +8 -0
- package/dist/locales/ja.json +8 -0
- package/dist/locales/nl.json +8 -0
- package/dist/locales/pl.json +8 -0
- package/dist/locales/pt.json +8 -0
- package/dist/locales/ro.json +8 -0
- package/dist/locales/ru.json +8 -0
- package/dist/locales/sq.json +8 -0
- package/dist/locales/sv.json +8 -0
- package/dist/locales/tr.json +8 -0
- package/dist/locales/zh.json +8 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-By4I_1A-.js +0 -4068
|
@@ -2,10 +2,10 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as k, useRef as N, useEffect as O, useCallback as D, useMemo as B } from "react";
|
|
3
3
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
|
-
import { C as M } from "./country-select-
|
|
6
|
-
import { P as U } from "./province-select-
|
|
5
|
+
import { C as M } from "./country-select-DQ8q7ypA.js";
|
|
6
|
+
import { P as U } from "./province-select-CPdTwEob.js";
|
|
7
7
|
import { P as W } from "./postal-code-input-CfZOnIkW.js";
|
|
8
|
-
import { C as Y } from "./city-input-
|
|
8
|
+
import { C as Y } from "./city-input-CJVGswxp.js";
|
|
9
9
|
import { T as z } from "./text-input-CaG9ApoE.js";
|
|
10
10
|
import { F as y } from "./form-field-CyHfOVKF.js";
|
|
11
11
|
import { A as G } from "./address-autocomplete-bPR2mNBt.js";
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
te as A,
|
|
296
296
|
X as a
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=address-fields-
|
|
298
|
+
//# sourceMappingURL=address-fields-CfnXK8RT.js.map
|
|
@@ -378,31 +378,38 @@ const Ze = {
|
|
|
378
378
|
className: "ds:sr-only"
|
|
379
379
|
}
|
|
380
380
|
),
|
|
381
|
-
/* @__PURE__ */ u(
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
381
|
+
/* @__PURE__ */ u(
|
|
382
|
+
g.List,
|
|
383
|
+
{
|
|
384
|
+
label: d("chat.slashMenu.label"),
|
|
385
|
+
className: "ds:max-h-60 ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ a(g.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: d("chat.slashMenu.empty") }),
|
|
388
|
+
s.map((e) => /* @__PURE__ */ u(
|
|
389
|
+
g.Item,
|
|
390
|
+
{
|
|
391
|
+
value: e.id,
|
|
392
|
+
onSelect: () => Pe(e),
|
|
393
|
+
className: [
|
|
394
|
+
"ds:flex ds:flex-col ds:gap-[2px]",
|
|
395
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
396
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
397
|
+
"type-body-sm ds:cursor-pointer",
|
|
398
|
+
Ae.selected
|
|
399
|
+
].join(" "),
|
|
400
|
+
children: [
|
|
401
|
+
/* @__PURE__ */ u("span", { className: "ds:font-medium", children: [
|
|
402
|
+
"/",
|
|
403
|
+
e.id
|
|
404
|
+
] }),
|
|
405
|
+
e.description ? /* @__PURE__ */ a("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: e.description }) : null
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
e.id
|
|
409
|
+
))
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
)
|
|
406
413
|
] })
|
|
407
414
|
}
|
|
408
415
|
) : null
|
|
@@ -499,4 +506,4 @@ export {
|
|
|
499
506
|
Qe as A,
|
|
500
507
|
Ze as a
|
|
501
508
|
};
|
|
502
|
-
//# sourceMappingURL=ai-prompt-input-
|
|
509
|
+
//# sourceMappingURL=ai-prompt-input-DH_rnV-F.js.map
|
package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js → anamnesis-summary-rows-6gMuu0ZK.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { C as le } from "./card-BA4Ig_kn.js";
|
|
|
7
7
|
import { C as Zt, b as Yt, a as Jt } from "./collapsible-DVPM46bq.js";
|
|
8
8
|
import { E as Xe } from "./empty-state-DwJ5YNzz.js";
|
|
9
9
|
import { F as M } from "./form-field-CyHfOVKF.js";
|
|
10
|
-
import { M as ln } from "./multi-select-
|
|
10
|
+
import { M as ln } from "./multi-select-i5MFRpXg.js";
|
|
11
11
|
import { N as ga } from "./number-input-CVwI1ltI.js";
|
|
12
12
|
import { R as ze } from "./radio-BZQs6_36.js";
|
|
13
13
|
import { R as ma } from "./radio-group-ChIKyeSJ.js";
|
|
@@ -20928,4 +20928,4 @@ export {
|
|
|
20928
20928
|
Vi as t,
|
|
20929
20929
|
ld as u
|
|
20930
20930
|
};
|
|
20931
|
-
//# sourceMappingURL=anamnesis-summary-rows-
|
|
20931
|
+
//# sourceMappingURL=anamnesis-summary-rows-6gMuu0ZK.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as tt, useId as st, useState as $, useRef as
|
|
2
|
+
import { forwardRef as tt, useId as st, useState as $, useRef as p, useCallback as D, useEffect as I, useMemo as X } from "react";
|
|
3
3
|
import { _ as g } from "./index-4xgbg-sn.js";
|
|
4
4
|
import * as F from "@radix-ui/react-popover";
|
|
5
5
|
import { c as T } from "./index-D2ZczOXr.js";
|
|
@@ -10,7 +10,7 @@ import { u as rt } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
10
10
|
import { u as it } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
11
|
import { g as lt } from "./group-options-BvKhQ3xb.js";
|
|
12
12
|
import { b as dt } from "./menu-row-BAr8bx1I.js";
|
|
13
|
-
import { I as ut, a as
|
|
13
|
+
import { I as ut, a as J, b as Y, c as ct } from "./input-surface-iBmxVBfr.js";
|
|
14
14
|
import { u as pt } from "./registry-DvAUVLHh.js";
|
|
15
15
|
import { u as mt } from "./use-debounced-callback-BisrB-Fq.js";
|
|
16
16
|
const ft = {
|
|
@@ -112,9 +112,9 @@ const ft = {
|
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
114
114
|
size: {
|
|
115
|
-
sm: `${
|
|
116
|
-
md: `${
|
|
117
|
-
lg: `${
|
|
115
|
+
sm: `${J.sm} ${Y.sm}`,
|
|
116
|
+
md: `${J.md} ${Y.md}`,
|
|
117
|
+
lg: `${J.lg} ${Y.lg}`
|
|
118
118
|
},
|
|
119
119
|
tone: ut
|
|
120
120
|
},
|
|
@@ -161,8 +161,8 @@ const ft = {
|
|
|
161
161
|
"ds:[&_[cmdk-group-heading]]:py-1.5",
|
|
162
162
|
"ds:[&_[cmdk-group-heading]]:type-eyebrow",
|
|
163
163
|
"ds:[&_[cmdk-group-heading]]:text-muted-foreground"
|
|
164
|
-
].join(" "),
|
|
165
|
-
function
|
|
164
|
+
].join(" "), Z = "ds:inline-flex ds:items-center ds:shrink-0 ds:text-muted-foreground ds:[&_svg]:size-4";
|
|
165
|
+
function ee(n, d, B) {
|
|
166
166
|
return `${n}-${d}-${B}`;
|
|
167
167
|
}
|
|
168
168
|
function ve(n, d) {
|
|
@@ -176,35 +176,35 @@ const bt = tt(
|
|
|
176
176
|
defaultValue: ye,
|
|
177
177
|
onChange: we,
|
|
178
178
|
onSelect: u,
|
|
179
|
-
recents:
|
|
179
|
+
recents: y,
|
|
180
180
|
onRecentSelect: M,
|
|
181
181
|
snapOnBlur: Ce = !1,
|
|
182
182
|
size: xe = "md",
|
|
183
183
|
tone: ke = "default",
|
|
184
184
|
startAdornment: q,
|
|
185
185
|
endAdornment: K,
|
|
186
|
-
placeholder:
|
|
186
|
+
placeholder: P,
|
|
187
187
|
disabled: Ne,
|
|
188
|
-
readOnly:
|
|
188
|
+
readOnly: w,
|
|
189
189
|
required: Re,
|
|
190
190
|
name: Ve,
|
|
191
|
-
id:
|
|
191
|
+
id: j,
|
|
192
192
|
className: Ie,
|
|
193
|
-
"aria-label":
|
|
193
|
+
"aria-label": z,
|
|
194
194
|
"aria-invalid": Ee,
|
|
195
195
|
"aria-describedby": _e,
|
|
196
|
-
autoComplete:
|
|
196
|
+
autoComplete: U
|
|
197
197
|
}, R) {
|
|
198
|
-
const { t:
|
|
198
|
+
const { t: h, i18n: Ae } = nt("ui"), c = at(), $e = st(), v = j ?? c.id ?? $e, te = `${v}-listbox`, De = `${v}-live`, b = !!(c.disabled || Ne), Fe = !!(c.required || Re), se = c.invalid || !!Ee, Te = se ? "error" : ke ?? "default", Be = c.describedBy || _e || void 0, [Me, ne] = rt({
|
|
199
199
|
value: be,
|
|
200
200
|
defaultValue: ye ?? "",
|
|
201
201
|
onChange: we
|
|
202
|
-
}), r = Me ?? "", [i, l] = $(!1), [C, ae] = $([]), [V,
|
|
203
|
-
ot(
|
|
204
|
-
const
|
|
202
|
+
}), r = Me ?? "", [i, l] = $(!1), [C, ae] = $([]), [V, H] = $(!1), [m, qe] = $(""), E = p(!1), L = p(null), O = p(r), oe = p(/* @__PURE__ */ new Map()), re = p(/* @__PURE__ */ new Map()), x = p(null), G = p(null);
|
|
203
|
+
ot(c, x);
|
|
204
|
+
const S = U && U !== "off" ? U : void 0;
|
|
205
205
|
it(() => {
|
|
206
206
|
var e;
|
|
207
|
-
|
|
207
|
+
S && ((e = x.current) == null || e.setAttribute("autocomplete", S));
|
|
208
208
|
});
|
|
209
209
|
const Ke = D(
|
|
210
210
|
(e) => {
|
|
@@ -218,26 +218,26 @@ const bt = tt(
|
|
|
218
218
|
oe.current = e;
|
|
219
219
|
}, [C]), I(() => {
|
|
220
220
|
const e = /* @__PURE__ */ new Map();
|
|
221
|
-
if (
|
|
221
|
+
if (y) for (const t of y) e.set(t.value, t);
|
|
222
222
|
re.current = e;
|
|
223
|
-
}, [
|
|
223
|
+
}, [y]);
|
|
224
224
|
const Pe = D(
|
|
225
225
|
(e) => {
|
|
226
226
|
var o;
|
|
227
|
-
if (
|
|
228
|
-
(o =
|
|
227
|
+
if (b || w || E.current) return;
|
|
228
|
+
(o = L.current) == null || o.abort();
|
|
229
229
|
const t = new AbortController();
|
|
230
|
-
|
|
231
|
-
t.signal.aborted ||
|
|
230
|
+
L.current = t, O.current = e, H(!0), d(e, { signal: t.signal, locale: ie }).then((a) => {
|
|
231
|
+
t.signal.aborted || O.current === e && (ae(a), H(!1));
|
|
232
232
|
}).catch((a) => {
|
|
233
|
-
t.signal.aborted || a && typeof a == "object" && "name" in a && a.name === "AbortError" ||
|
|
233
|
+
t.signal.aborted || a && typeof a == "object" && "name" in a && a.name === "AbortError" || O.current === e && (ae([]), H(!1));
|
|
234
234
|
});
|
|
235
235
|
},
|
|
236
|
-
[
|
|
236
|
+
[b, w, d, ie]
|
|
237
237
|
), k = mt(Pe, B);
|
|
238
238
|
I(() => () => {
|
|
239
239
|
var e;
|
|
240
|
-
k.cancel(), (e =
|
|
240
|
+
k.cancel(), (e = L.current) == null || e.abort();
|
|
241
241
|
}, [k]);
|
|
242
242
|
const f = D(
|
|
243
243
|
(e) => {
|
|
@@ -253,7 +253,7 @@ const bt = tt(
|
|
|
253
253
|
},
|
|
254
254
|
[]
|
|
255
255
|
), je = (e) => {
|
|
256
|
-
f(e), !(
|
|
256
|
+
f(e), !(b || w) && (S && document.activeElement !== x.current || (i || l(!0), !E.current && k(e)));
|
|
257
257
|
}, ze = (e) => {
|
|
258
258
|
E.current = !0;
|
|
259
259
|
}, Ue = (e) => {
|
|
@@ -261,10 +261,10 @@ const bt = tt(
|
|
|
261
261
|
const t = e.currentTarget.value;
|
|
262
262
|
k(t);
|
|
263
263
|
}, He = (e) => {
|
|
264
|
-
|
|
264
|
+
b || w || (l(!0), r && k(r));
|
|
265
265
|
}, Le = (e) => {
|
|
266
266
|
const t = e.relatedTarget;
|
|
267
|
-
if (!(t &&
|
|
267
|
+
if (!(t && G.current && G.current.contains(t))) {
|
|
268
268
|
if (Ce && m) {
|
|
269
269
|
const o = le(m);
|
|
270
270
|
o && (f(o.option.label), u == null || u(o.option));
|
|
@@ -289,32 +289,32 @@ const bt = tt(
|
|
|
289
289
|
}, de = (e, t) => {
|
|
290
290
|
var o;
|
|
291
291
|
f(t.label), e === "recent" ? M == null || M(t) : u == null || u(t), l(!1), (o = x.current) == null || o.focus();
|
|
292
|
-
},
|
|
292
|
+
}, Q = (e) => {
|
|
293
293
|
e.preventDefault();
|
|
294
|
-
}, _ = !!(
|
|
294
|
+
}, _ = !!(y && y.length > 0) && r.length === 0, Ge = X(
|
|
295
295
|
() => lt(C),
|
|
296
296
|
[C]
|
|
297
297
|
), Se = !!q, Qe = !!K || V, We = gt({
|
|
298
298
|
size: xe,
|
|
299
299
|
tone: Te,
|
|
300
300
|
className: Ie
|
|
301
|
-
}), Xe =
|
|
301
|
+
}), Xe = X(() => {
|
|
302
302
|
if (!m) return;
|
|
303
303
|
const [e, t] = m.split(":");
|
|
304
304
|
if (!(!t || e !== "recent" && e !== "option"))
|
|
305
|
-
return
|
|
306
|
-
}, [m,
|
|
305
|
+
return ee(v, e, t);
|
|
306
|
+
}, [m, v]), A = C.length > 0, ue = !_ && !A && !V && r.length > 0, ce = V && !A, Je = _ || A || ue || ce, W = p(r);
|
|
307
307
|
I(() => {
|
|
308
|
-
|
|
308
|
+
W.current = r;
|
|
309
309
|
}, [r]);
|
|
310
|
-
const pe =
|
|
310
|
+
const pe = p(i);
|
|
311
311
|
I(() => {
|
|
312
312
|
pe.current = i;
|
|
313
313
|
}, [i]);
|
|
314
|
-
const Ye =
|
|
314
|
+
const Ye = X(
|
|
315
315
|
() => ({
|
|
316
|
-
getValue: () =>
|
|
317
|
-
getQuery: () =>
|
|
316
|
+
getValue: () => W.current || null,
|
|
317
|
+
getQuery: () => W.current,
|
|
318
318
|
getIsOpen: () => pe.current,
|
|
319
319
|
setValue: (e) => {
|
|
320
320
|
f(e ?? "");
|
|
@@ -334,8 +334,8 @@ const bt = tt(
|
|
|
334
334
|
}),
|
|
335
335
|
[f]
|
|
336
336
|
);
|
|
337
|
-
pt(ft, Ye,
|
|
338
|
-
const Ze = C.length, et = V ?
|
|
337
|
+
pt(ft, Ye, j);
|
|
338
|
+
const Ze = C.length, et = V ? h("common.loading", "Loading…") : i && r.length > 0 ? h("inputs.autocomplete.results", {
|
|
339
339
|
count: Ze,
|
|
340
340
|
defaultValue: "{{count}} results"
|
|
341
341
|
}) : "";
|
|
@@ -345,29 +345,29 @@ const bt = tt(
|
|
|
345
345
|
shouldFilter: !1,
|
|
346
346
|
value: m,
|
|
347
347
|
onValueChange: qe,
|
|
348
|
-
label:
|
|
348
|
+
label: z ?? (c.label || P),
|
|
349
349
|
className: "ds:w-full",
|
|
350
350
|
children: /* @__PURE__ */ N(
|
|
351
351
|
F.Root,
|
|
352
352
|
{
|
|
353
|
-
open: i && !
|
|
353
|
+
open: i && !b && !w && Je,
|
|
354
354
|
children: [
|
|
355
355
|
/* @__PURE__ */ s(F.Anchor, { asChild: !0, children: /* @__PURE__ */ N(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
358
358
|
className: We,
|
|
359
359
|
"data-component": "autocomplete",
|
|
360
|
-
"data-component-id":
|
|
361
|
-
"data-disabled":
|
|
360
|
+
"data-component-id": j,
|
|
361
|
+
"data-disabled": b || void 0,
|
|
362
362
|
children: [
|
|
363
|
-
q ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: `${
|
|
363
|
+
q ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: `${Z} ds:ps-3`, children: q }) : null,
|
|
364
364
|
/* @__PURE__ */ s(
|
|
365
365
|
g.Input,
|
|
366
366
|
{
|
|
367
367
|
ref: Ke,
|
|
368
|
-
id:
|
|
368
|
+
id: v,
|
|
369
369
|
name: Ve,
|
|
370
|
-
placeholder:
|
|
370
|
+
placeholder: P,
|
|
371
371
|
value: r,
|
|
372
372
|
onValueChange: je,
|
|
373
373
|
onFocus: He,
|
|
@@ -375,8 +375,8 @@ const bt = tt(
|
|
|
375
375
|
onKeyDown: Oe,
|
|
376
376
|
onCompositionStart: ze,
|
|
377
377
|
onCompositionEnd: Ue,
|
|
378
|
-
disabled:
|
|
379
|
-
readOnly:
|
|
378
|
+
disabled: b,
|
|
379
|
+
readOnly: w,
|
|
380
380
|
required: Fe,
|
|
381
381
|
role: "combobox",
|
|
382
382
|
"aria-autocomplete": "both",
|
|
@@ -385,12 +385,12 @@ const bt = tt(
|
|
|
385
385
|
"aria-activedescendant": Xe,
|
|
386
386
|
"aria-describedby": Be,
|
|
387
387
|
"aria-invalid": se || void 0,
|
|
388
|
-
"aria-label":
|
|
388
|
+
"aria-label": z ?? (c.label || h("inputs.autocomplete.ariaLabel")),
|
|
389
389
|
autoComplete: "off",
|
|
390
390
|
className: ht({ hasStart: Se, hasEnd: Qe })
|
|
391
391
|
}
|
|
392
392
|
),
|
|
393
|
-
V ? /* @__PURE__ */ s("span", { className: `${
|
|
393
|
+
V ? /* @__PURE__ */ s("span", { className: `${Z} ds:pe-3`, "aria-hidden": "true", children: /* @__PURE__ */ s(fe, { variant: "pulse", size: "sm" }) }) : K ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: `${Z} ds:pe-3`, children: K }) : null,
|
|
394
394
|
/* @__PURE__ */ s(
|
|
395
395
|
"span",
|
|
396
396
|
{
|
|
@@ -408,7 +408,7 @@ const bt = tt(
|
|
|
408
408
|
/* @__PURE__ */ s(F.Portal, { forceMount: !0, children: /* @__PURE__ */ s(
|
|
409
409
|
F.Content,
|
|
410
410
|
{
|
|
411
|
-
ref:
|
|
411
|
+
ref: G,
|
|
412
412
|
forceMount: !0,
|
|
413
413
|
hidden: !i,
|
|
414
414
|
side: "bottom",
|
|
@@ -426,28 +426,29 @@ const bt = tt(
|
|
|
426
426
|
l(!1);
|
|
427
427
|
},
|
|
428
428
|
onEscapeKeyDown: () => l(!1),
|
|
429
|
-
onMouseDown:
|
|
429
|
+
onMouseDown: Q,
|
|
430
430
|
className: vt(),
|
|
431
431
|
children: /* @__PURE__ */ N(
|
|
432
432
|
g.List,
|
|
433
433
|
{
|
|
434
434
|
id: te,
|
|
435
|
+
label: z ?? (c.label || P || h("inputs.autocomplete.ariaLabel")),
|
|
435
436
|
className: "ds:max-h-[min(24rem,var(--radix-popover-content-available-height))] ds:overflow-auto ds:p-1",
|
|
436
437
|
children: [
|
|
437
438
|
_ ? /* @__PURE__ */ s(
|
|
438
439
|
g.Group,
|
|
439
440
|
{
|
|
440
|
-
heading:
|
|
441
|
+
heading: h("inputs.autocomplete.recent", "Recent"),
|
|
441
442
|
className: he,
|
|
442
|
-
children: (
|
|
443
|
+
children: (y ?? []).map((e) => /* @__PURE__ */ N(
|
|
443
444
|
g.Item,
|
|
444
445
|
{
|
|
445
|
-
id:
|
|
446
|
+
id: ee(v, "recent", e.value),
|
|
446
447
|
"data-option-id": e.value,
|
|
447
448
|
value: ve("recent", e.value),
|
|
448
449
|
disabled: e.disabled,
|
|
449
450
|
onSelect: () => de("recent", e),
|
|
450
|
-
onMouseDown:
|
|
451
|
+
onMouseDown: Q,
|
|
451
452
|
className: ge(),
|
|
452
453
|
children: [
|
|
453
454
|
e.startAdornment ? /* @__PURE__ */ s(
|
|
@@ -471,21 +472,21 @@ const bt = tt(
|
|
|
471
472
|
))
|
|
472
473
|
}
|
|
473
474
|
) : null,
|
|
474
|
-
ue ? /* @__PURE__ */ s("div", { className: "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children:
|
|
475
|
+
ue ? /* @__PURE__ */ s("div", { className: "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: h("inputs.autocomplete.noResults", "No results") }) : null,
|
|
475
476
|
ce ? /* @__PURE__ */ N("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: [
|
|
476
477
|
/* @__PURE__ */ s(fe, { variant: "pulse", size: "sm" }),
|
|
477
|
-
/* @__PURE__ */ s("span", { children:
|
|
478
|
+
/* @__PURE__ */ s("span", { children: h("common.loading", "Loading…") })
|
|
478
479
|
] }) : null,
|
|
479
480
|
!_ && A ? Ge.map((e, t) => {
|
|
480
481
|
const o = e.items.map((a) => /* @__PURE__ */ N(
|
|
481
482
|
g.Item,
|
|
482
483
|
{
|
|
483
|
-
id:
|
|
484
|
+
id: ee(v, "option", a.value),
|
|
484
485
|
"data-option-id": a.value,
|
|
485
486
|
value: ve("option", a.value),
|
|
486
487
|
disabled: a.disabled,
|
|
487
488
|
onSelect: () => de("option", a),
|
|
488
|
-
onMouseDown:
|
|
489
|
+
onMouseDown: Q,
|
|
489
490
|
className: ge(),
|
|
490
491
|
children: [
|
|
491
492
|
a.startAdornment ? /* @__PURE__ */ s(
|
|
@@ -535,4 +536,4 @@ export {
|
|
|
535
536
|
ft as a,
|
|
536
537
|
gt as b
|
|
537
538
|
};
|
|
538
|
-
//# sourceMappingURL=autocomplete-
|
|
539
|
+
//# sourceMappingURL=autocomplete-CnB1mHGc.js.map
|
|
@@ -5,7 +5,7 @@ import { a as b, T as g, D as S, d as Ce } from "./data-table-BlONA1rP.js";
|
|
|
5
5
|
import { A as ve, a as re } from "./actions-cell-renderer-B1yaOfQM.js";
|
|
6
6
|
import { S as Te } from "./select-4S-eYZUf.js";
|
|
7
7
|
import { u as we } from "./registry-DvAUVLHh.js";
|
|
8
|
-
import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe, h as Se } from "./link-cell-renderer-
|
|
8
|
+
import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe, h as Se } from "./link-cell-renderer-C0ynDik7.js";
|
|
9
9
|
import { T as We } from "./transaction-chip-CohY6sTA.js";
|
|
10
10
|
import { B as oe } from "./badge-BUk4RjTS.js";
|
|
11
11
|
import { c as Ae } from "./index-D2ZczOXr.js";
|
|
@@ -1179,4 +1179,4 @@ export {
|
|
|
1179
1179
|
se as g,
|
|
1180
1180
|
nt as u
|
|
1181
1181
|
};
|
|
1182
|
-
//# sourceMappingURL=balance-badge-cell-
|
|
1182
|
+
//# sourceMappingURL=balance-badge-cell-BHXJS8Ga.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as m, useContext as
|
|
2
|
+
import { forwardRef as m, useContext as y, Children as C, createContext as N } from "react";
|
|
3
3
|
import { c as s } from "./index-D2ZczOXr.js";
|
|
4
4
|
const b = [
|
|
5
5
|
"violet",
|
|
@@ -8,7 +8,7 @@ const b = [
|
|
|
8
8
|
"blue",
|
|
9
9
|
"green",
|
|
10
10
|
"red"
|
|
11
|
-
], _ =
|
|
11
|
+
], _ = N(null), V = s("ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-lg)]", {
|
|
12
12
|
variants: {
|
|
13
13
|
columns: {
|
|
14
14
|
1: "ds:md:grid-cols-1",
|
|
@@ -18,7 +18,7 @@ const b = [
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { columns: 3 }
|
|
21
|
-
}),
|
|
21
|
+
}), j = s(
|
|
22
22
|
[
|
|
23
23
|
"ds:relative ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
|
|
24
24
|
"ds:flex ds:flex-col ds:h-full",
|
|
@@ -59,7 +59,7 @@ const b = [
|
|
|
59
59
|
},
|
|
60
60
|
defaultVariants: { variant: "elevated" }
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), B = s(
|
|
63
63
|
// `inset-x-0` compiles to logical `inset-inline`; the `inset-inline-0`
|
|
64
64
|
// spelling is not a Tailwind utility and compiled to nothing.
|
|
65
65
|
"ds:absolute ds:inset-x-0 ds:top-0 ds:h-[4px] ds:pointer-events-none",
|
|
@@ -81,7 +81,7 @@ const b = [
|
|
|
81
81
|
},
|
|
82
82
|
defaultVariants: { accent: "primary" }
|
|
83
83
|
}
|
|
84
|
-
),
|
|
84
|
+
), R = s("", {
|
|
85
85
|
variants: {
|
|
86
86
|
accent: {
|
|
87
87
|
primary: "ds:hover:shadow-[0_20px_40px_color-mix(in_srgb,var(--primary)_18%,transparent)]",
|
|
@@ -98,7 +98,7 @@ const b = [
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
defaultVariants: { accent: "primary" }
|
|
101
|
-
}),
|
|
101
|
+
}), S = s(
|
|
102
102
|
[
|
|
103
103
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
104
104
|
"ds:size-14 ds:rounded-[var(--radius-md)] ds:shrink-0",
|
|
@@ -123,7 +123,7 @@ const b = [
|
|
|
123
123
|
},
|
|
124
124
|
defaultVariants: { accent: "primary" }
|
|
125
125
|
}
|
|
126
|
-
),
|
|
126
|
+
), A = s(
|
|
127
127
|
[
|
|
128
128
|
"type-eyebrow",
|
|
129
129
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -155,20 +155,20 @@ const b = [
|
|
|
155
155
|
defaultVariants: { accent: "primary" }
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
|
-
function
|
|
158
|
+
function E(a, o) {
|
|
159
159
|
return a !== "auto" ? a : o ? b[o.index % b.length] : "primary";
|
|
160
160
|
}
|
|
161
161
|
const p = m(
|
|
162
|
-
({ columns: a = 3, children: o, className:
|
|
163
|
-
const
|
|
162
|
+
({ columns: a = 3, children: o, className: d, ...i }, t) => {
|
|
163
|
+
const c = C.toArray(o);
|
|
164
164
|
return /* @__PURE__ */ r(
|
|
165
165
|
"div",
|
|
166
166
|
{
|
|
167
|
-
ref:
|
|
167
|
+
ref: t,
|
|
168
168
|
"data-component": "benefit-card-row",
|
|
169
|
-
className:
|
|
170
|
-
...
|
|
171
|
-
children:
|
|
169
|
+
className: V({ columns: a, className: d }),
|
|
170
|
+
...i,
|
|
171
|
+
children: c.map((l, e) => /* @__PURE__ */ r(_.Provider, { value: { index: e }, children: l }, e))
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
}
|
|
@@ -178,34 +178,35 @@ const u = m(
|
|
|
178
178
|
({
|
|
179
179
|
step: a,
|
|
180
180
|
icon: o,
|
|
181
|
-
title:
|
|
182
|
-
|
|
181
|
+
title: d,
|
|
182
|
+
headingLevel: i = 3,
|
|
183
|
+
cta: t,
|
|
183
184
|
variant: c = "elevated",
|
|
184
185
|
accent: l = "auto",
|
|
185
|
-
children:
|
|
186
|
-
className:
|
|
187
|
-
...
|
|
188
|
-
},
|
|
189
|
-
const
|
|
186
|
+
children: e,
|
|
187
|
+
className: x,
|
|
188
|
+
...f
|
|
189
|
+
}, h) => {
|
|
190
|
+
const k = y(_), n = E(l, k), g = typeof a == "number", w = `h${i}`;
|
|
190
191
|
return /* @__PURE__ */ v(
|
|
191
192
|
"article",
|
|
192
193
|
{
|
|
193
|
-
ref:
|
|
194
|
+
ref: h,
|
|
194
195
|
"data-component": "benefit-card",
|
|
195
|
-
"data-accent":
|
|
196
|
+
"data-accent": n,
|
|
196
197
|
className: [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
j({ variant: c }),
|
|
199
|
+
R({ accent: n }),
|
|
200
|
+
x
|
|
200
201
|
].filter(Boolean).join(" "),
|
|
201
|
-
...
|
|
202
|
+
...f,
|
|
202
203
|
children: [
|
|
203
204
|
/* @__PURE__ */ r(
|
|
204
205
|
"span",
|
|
205
206
|
{
|
|
206
207
|
"aria-hidden": "true",
|
|
207
208
|
"data-part": "accent-strip",
|
|
208
|
-
className:
|
|
209
|
+
className: B({ accent: n })
|
|
209
210
|
}
|
|
210
211
|
),
|
|
211
212
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ds:flex-1", children: [
|
|
@@ -214,7 +215,7 @@ const u = m(
|
|
|
214
215
|
"span",
|
|
215
216
|
{
|
|
216
217
|
"aria-hidden": "true",
|
|
217
|
-
className:
|
|
218
|
+
className: S({ accent: n }),
|
|
218
219
|
children: o
|
|
219
220
|
}
|
|
220
221
|
) : /* @__PURE__ */ r("span", { "aria-hidden": "true" }),
|
|
@@ -223,14 +224,14 @@ const u = m(
|
|
|
223
224
|
{
|
|
224
225
|
"aria-hidden": "true",
|
|
225
226
|
"data-part": "step",
|
|
226
|
-
className:
|
|
227
|
+
className: A({ accent: n }),
|
|
227
228
|
children: String(a).padStart(2, "0")
|
|
228
229
|
}
|
|
229
230
|
) : null
|
|
230
231
|
] }),
|
|
231
|
-
/* @__PURE__ */ r(
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
/* @__PURE__ */ r(w, { className: "type-title-card ds:text-[var(--foreground)]", children: d }),
|
|
233
|
+
e ? /* @__PURE__ */ r("div", { className: "type-body ds:text-[var(--muted-foreground)] ds:flex-1", children: e }) : null,
|
|
234
|
+
t ? /* @__PURE__ */ r("div", { className: "ds:mt-[var(--spacing-xs)]", children: t }) : null
|
|
234
235
|
] })
|
|
235
236
|
]
|
|
236
237
|
}
|
|
@@ -238,10 +239,10 @@ const u = m(
|
|
|
238
239
|
}
|
|
239
240
|
);
|
|
240
241
|
u.displayName = "BenefitCard";
|
|
241
|
-
const
|
|
242
|
+
const O = Object.assign(u, {
|
|
242
243
|
Row: p
|
|
243
244
|
});
|
|
244
245
|
export {
|
|
245
|
-
|
|
246
|
+
O as B
|
|
246
247
|
};
|
|
247
|
-
//# sourceMappingURL=benefit-card-
|
|
248
|
+
//# sourceMappingURL=benefit-card-BcPtRHgM.js.map
|