@alfadocs/ui-kit 0.31.8 → 0.32.1
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-DtGlQde1.js → agenda-card-CFyWSX7Z.js} +2 -2
- package/dist/_chunks/{agenda-tray-CXmlwt2K.js → agenda-tray-By_asPN9.js} +2 -2
- package/dist/_chunks/{badge-B9Cr6iEB.js → badge-zsf5i5bH.js} +9 -2
- package/dist/_chunks/{benefit-card-B86DH-PE.js → benefit-card-_Sc-MGha.js} +18 -8
- package/dist/_chunks/{booking-A4o9xI2n.js → booking-h_kBZM6M.js} +24 -26
- package/dist/_chunks/{card-CNri9ssR.js → card-DPmk26CL.js} +2 -2
- package/dist/_chunks/{contact-card-Dos7Tley.js → contact-card-Cf8Ktyt3.js} +2 -2
- package/dist/_chunks/{practice-profile-card-CfAMeTxQ.js → contact-profile-card-Ce-LIDU8.js} +128 -125
- package/dist/_chunks/{editable-currency-cell-renderer-YvTwkFrD.js → editable-currency-cell-renderer-B9VRSV_S.js} +2 -2
- package/dist/_chunks/{key-value-pair-CYE7NSpM.js → key-value-pair-CkQIb9EG.js} +42 -32
- package/dist/_chunks/{map-view-WEWqXzof.js → map-view-knHSNLoe.js} +140 -128
- package/dist/_chunks/{operator-hero-BsjE-kJF.js → operator-hero-7LiiP7zi.js} +4 -4
- package/dist/_chunks/{patient-search-CSDru7QW.js → patient-search-CBq62kmL.js} +2 -2
- package/dist/_chunks/{practice-results-CIkAdwRm.js → practice-results-Bw5fJTYF.js} +4 -4
- package/dist/_chunks/{reviews-panel-Cjys8G8K.js → reviews-panel-B-18RBSn.js} +39 -36
- package/dist/_chunks/{stat-CYEx8sIR.js → stat-EC2Papj7.js} +14 -14
- package/dist/_chunks/{timeline-BZC7qGdy.js → timeline-DQa5Tyz4.js} +2 -2
- package/dist/_chunks/{workflow-map-DfpjDZHK.js → workflow-map-uSiHbOWQ.js} +4 -4
- package/dist/agent-catalog.json +28 -28
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts +4 -0
- package/dist/components/{practice-profile-card/practice-profile-card.d.ts → contact-profile-card/contact-profile-card.d.ts} +9 -9
- package/dist/components/contact-profile-card/index.d.ts +4 -0
- package/dist/components/contact-profile-card/index.js +8 -0
- package/dist/components/data-table/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/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +1 -1
- package/dist/i18n/locales/ar.js +2 -2
- package/dist/i18n/locales/de.d.ts +1 -1
- package/dist/i18n/locales/de.js +2 -2
- package/dist/i18n/locales/el.d.ts +1 -1
- package/dist/i18n/locales/el.js +2 -2
- package/dist/i18n/locales/en.d.ts +1 -1
- package/dist/i18n/locales/en.js +2 -2
- package/dist/i18n/locales/es.d.ts +1 -1
- package/dist/i18n/locales/es.js +2 -2
- package/dist/i18n/locales/fr.d.ts +1 -1
- package/dist/i18n/locales/fr.js +2 -2
- package/dist/i18n/locales/hi.d.ts +1 -1
- package/dist/i18n/locales/hi.js +2 -2
- package/dist/i18n/locales/it.d.ts +1 -1
- package/dist/i18n/locales/it.js +2 -2
- package/dist/i18n/locales/ja.d.ts +1 -1
- package/dist/i18n/locales/ja.js +2 -2
- package/dist/i18n/locales/nl.d.ts +1 -1
- package/dist/i18n/locales/nl.js +2 -2
- package/dist/i18n/locales/pl.d.ts +1 -1
- package/dist/i18n/locales/pl.js +2 -2
- package/dist/i18n/locales/pt.d.ts +1 -1
- package/dist/i18n/locales/pt.js +2 -2
- package/dist/i18n/locales/ro.d.ts +1 -1
- package/dist/i18n/locales/ro.js +2 -2
- package/dist/i18n/locales/ru.d.ts +1 -1
- package/dist/i18n/locales/ru.js +2 -2
- package/dist/i18n/locales/sq.d.ts +1 -1
- package/dist/i18n/locales/sq.js +2 -2
- package/dist/i18n/locales/sv.d.ts +1 -1
- package/dist/i18n/locales/sv.js +2 -2
- package/dist/i18n/locales/tr.d.ts +1 -1
- package/dist/i18n/locales/tr.js +2 -2
- package/dist/i18n/locales/zh.d.ts +1 -1
- package/dist/i18n/locales/zh.js +2 -2
- package/dist/index.js +113 -113
- package/dist/locales/ar.json +1 -1
- package/dist/locales/de.json +1 -1
- package/dist/locales/el.json +1 -1
- package/dist/locales/en.json +1 -1
- package/dist/locales/es.json +1 -1
- package/dist/locales/fr.json +1 -1
- package/dist/locales/hi.json +1 -1
- package/dist/locales/it.json +1 -1
- package/dist/locales/ja.json +1 -1
- package/dist/locales/nl.json +1 -1
- package/dist/locales/pl.json +1 -1
- package/dist/locales/pt.json +1 -1
- package/dist/locales/ro.json +1 -1
- package/dist/locales/ru.json +1 -1
- package/dist/locales/sq.json +1 -1
- package/dist/locales/sv.json +1 -1
- package/dist/locales/tr.json +1 -1
- package/dist/locales/zh.json +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +4 -4
- package/dist/components/practice-profile-card/index.d.ts +0 -4
- package/dist/components/practice-profile-card/index.js +0 -8
- package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +0 -4
|
@@ -3,7 +3,7 @@ import { forwardRef as v } from "react";
|
|
|
3
3
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as b } from "react-i18next";
|
|
5
5
|
import { A as x } from "./avatar-BNQNhoyL.js";
|
|
6
|
-
import { B as y } from "./badge-
|
|
6
|
+
import { B as y } from "./badge-zsf5i5bH.js";
|
|
7
7
|
import { C as N } from "./chevron-right-BrpYejk0.js";
|
|
8
8
|
const C = h(
|
|
9
9
|
[
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
T as A,
|
|
139
139
|
w as i
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=agenda-card-
|
|
141
|
+
//# sourceMappingURL=agenda-card-CFyWSX7Z.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as j } from "react-i18next";
|
|
|
5
5
|
import { I as _ } from "./icon-button-CKEOrN37.js";
|
|
6
6
|
import { S as E } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as P } from "./empty-state-BLy7tigq.js";
|
|
8
|
-
import { A as H } from "./agenda-card-
|
|
8
|
+
import { A as H } from "./agenda-card-CFyWSX7Z.js";
|
|
9
9
|
import { u as K } from "./registry-nPAVE19X.js";
|
|
10
10
|
import { c as L } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { P as V } from "./plus-CYKNmfuA.js";
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
G as A,
|
|
179
179
|
D as a
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=agenda-tray-
|
|
181
|
+
//# sourceMappingURL=agenda-tray-By_asPN9.js.map
|
|
@@ -19,7 +19,14 @@ const z = a(
|
|
|
19
19
|
{
|
|
20
20
|
variants: {
|
|
21
21
|
variant: {
|
|
22
|
-
|
|
22
|
+
// `bg-muted` at full opacity (not /20) — `--muted` is already
|
|
23
|
+
// a light grey (#eaeaee in light, similarly soft in dark). The
|
|
24
|
+
// semantic variants below use /15 against saturated source
|
|
25
|
+
// colours; applying the same reduction to `muted` made the
|
|
26
|
+
// neutral chip nearly invisible against a white surface
|
|
27
|
+
// (~5% grey wash with no perceptible edge). Full opacity
|
|
28
|
+
// gives ~6:1 surface contrast and the chip reads as a chip.
|
|
29
|
+
neutral: "ds:bg-muted ds:text-muted-foreground",
|
|
23
30
|
info: "ds:bg-info/15 ds:text-[var(--info-foreground)]",
|
|
24
31
|
success: "ds:bg-success/15 ds:text-[var(--success-foreground)]",
|
|
25
32
|
warning: "ds:bg-warning/15 ds:text-[var(--warning-foreground)]",
|
|
@@ -114,4 +121,4 @@ j.displayName = "Badge";
|
|
|
114
121
|
export {
|
|
115
122
|
j as B
|
|
116
123
|
};
|
|
117
|
-
//# sourceMappingURL=badge-
|
|
124
|
+
//# sourceMappingURL=badge-zsf5i5bH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as _, useContext as k, Children as w, createContext as y } from "react";
|
|
3
3
|
import { c as s } from "./index-D2ZczOXr.js";
|
|
4
|
-
const
|
|
4
|
+
const b = [
|
|
5
5
|
"violet",
|
|
6
6
|
"purple",
|
|
7
7
|
"magenta",
|
|
@@ -43,8 +43,18 @@ const _ = [
|
|
|
43
43
|
// 0.31.5: accessible theme also bumps border-width 1px → 2px —
|
|
44
44
|
// matches Card.elevated and PublicFooter compact. The thicker
|
|
45
45
|
// line reads as a deliberate boundary rather than a hairline.
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
//
|
|
47
|
+
// 0.31.9: `border-t-0` on both variants — the 4px accent strip
|
|
48
|
+
// (absolutely positioned at top:0 inside the border-box) sits
|
|
49
|
+
// BELOW the top border, so visually you see a thin grey
|
|
50
|
+
// hairline, then the brand strip. That dilutes the brand
|
|
51
|
+
// marker. Dropping the top border lets the accent strip BE the
|
|
52
|
+
// card's top edge. The 3px-and-up strip carries enough
|
|
53
|
+
// contrast (~5:1 on white in light theme, similar in dark) to
|
|
54
|
+
// satisfy the accessible theme's ≥3:1 boundary requirement
|
|
55
|
+
// without the extra hairline.
|
|
56
|
+
elevated: "ds:shadow-[var(--shadow-card)] ds:border ds:border-t-0 ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:[.theme-accessible_&]:border-t-0",
|
|
57
|
+
outlined: "ds:border ds:border-t-0 ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:[.theme-accessible_&]:border-t-0"
|
|
48
58
|
}
|
|
49
59
|
},
|
|
50
60
|
defaultVariants: { variant: "elevated" }
|
|
@@ -143,9 +153,9 @@ const _ = [
|
|
|
143
153
|
}
|
|
144
154
|
);
|
|
145
155
|
function S(a, o) {
|
|
146
|
-
return a !== "auto" ? a : o ?
|
|
156
|
+
return a !== "auto" ? a : o ? b[o.index % b.length] : "primary";
|
|
147
157
|
}
|
|
148
|
-
const p =
|
|
158
|
+
const p = _(
|
|
149
159
|
({ columns: a = 3, children: o, className: c, ...d }, l) => {
|
|
150
160
|
const i = w.toArray(o);
|
|
151
161
|
return /* @__PURE__ */ r(
|
|
@@ -161,7 +171,7 @@ const p = b(
|
|
|
161
171
|
}
|
|
162
172
|
);
|
|
163
173
|
p.displayName = "BenefitCard.Row";
|
|
164
|
-
const x =
|
|
174
|
+
const x = _(
|
|
165
175
|
({
|
|
166
176
|
step: a,
|
|
167
177
|
icon: o,
|
|
@@ -231,4 +241,4 @@ const H = Object.assign(x, {
|
|
|
231
241
|
export {
|
|
232
242
|
H as B
|
|
233
243
|
};
|
|
234
|
-
//# sourceMappingURL=benefit-card-
|
|
244
|
+
//# sourceMappingURL=benefit-card-_Sc-MGha.js.map
|
|
@@ -606,7 +606,7 @@ const Ke = 500, ba = /^[A-Z0-9]{16}$/, ya = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
606
606
|
e.dateOfBirth,
|
|
607
607
|
X,
|
|
608
608
|
N.state
|
|
609
|
-
]), Ce = !!(e.privacyConsent && e.termsConsent),
|
|
609
|
+
]), Ce = !!(e.privacyConsent && e.termsConsent), R = !j || ne.length > 0, W = ce && Ce && R && !g, $ = (m) => {
|
|
610
610
|
if (m.preventDefault(), J({
|
|
611
611
|
firstName: !0,
|
|
612
612
|
lastName: !0,
|
|
@@ -2074,16 +2074,16 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2074
2074
|
className: X,
|
|
2075
2075
|
...de
|
|
2076
2076
|
}, le) => {
|
|
2077
|
-
const { t: ce, i18n: Ce } = T(),
|
|
2077
|
+
const { t: ce, i18n: Ce } = T(), R = e ?? "inline-list", W = Ce.language ?? "en", $ = c ?? Ra, q = d ?? La;
|
|
2078
2078
|
Q(() => {
|
|
2079
|
-
const
|
|
2079
|
+
const V = fa(b, {
|
|
2080
2080
|
useSpecialties: s,
|
|
2081
2081
|
lockedOperatorId: n,
|
|
2082
2082
|
autoSelectSingleService: o,
|
|
2083
2083
|
specialties: $,
|
|
2084
2084
|
services: l
|
|
2085
2085
|
});
|
|
2086
|
-
(
|
|
2086
|
+
(V.specialtyId !== b.specialtyId || V.operatorId !== b.operatorId || V.serviceId !== b.serviceId) && N(V);
|
|
2087
2087
|
}, [
|
|
2088
2088
|
n,
|
|
2089
2089
|
s,
|
|
@@ -2123,22 +2123,22 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2123
2123
|
_.currentStep > C.current && m(_.currentStep), C.current = _.currentStep;
|
|
2124
2124
|
}, [_.currentStep]);
|
|
2125
2125
|
const [U, ue] = H("idle"), [Me, De] = H(null), Re = ae(
|
|
2126
|
-
async (
|
|
2126
|
+
async (V) => {
|
|
2127
2127
|
if (!_.selectedSlot) return;
|
|
2128
2128
|
const _e = {
|
|
2129
2129
|
slot: _.selectedSlot,
|
|
2130
2130
|
value: {
|
|
2131
2131
|
...b,
|
|
2132
|
-
details:
|
|
2132
|
+
details: V,
|
|
2133
2133
|
operatorId: Ee(b) ?? b.operatorId
|
|
2134
2134
|
},
|
|
2135
|
-
details:
|
|
2135
|
+
details: V
|
|
2136
2136
|
};
|
|
2137
2137
|
ue("submitting");
|
|
2138
2138
|
try {
|
|
2139
2139
|
await F(_e), De({
|
|
2140
2140
|
slot: _.selectedSlot,
|
|
2141
|
-
details:
|
|
2141
|
+
details: V,
|
|
2142
2142
|
specialtyId: b.specialtyId,
|
|
2143
2143
|
serviceId: b.serviceId,
|
|
2144
2144
|
insuranceType: b.insuranceType,
|
|
@@ -2166,15 +2166,15 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2166
2166
|
}, [ge, B]);
|
|
2167
2167
|
const Te = I(
|
|
2168
2168
|
() => ({
|
|
2169
|
-
getVariant: () =>
|
|
2169
|
+
getVariant: () => R,
|
|
2170
2170
|
reset: () => {
|
|
2171
2171
|
N({}), De(null), ue("idle"), m(1);
|
|
2172
2172
|
},
|
|
2173
|
-
goToStep: (
|
|
2174
|
-
m(
|
|
2173
|
+
goToStep: (V) => {
|
|
2174
|
+
m(V);
|
|
2175
2175
|
}
|
|
2176
2176
|
}),
|
|
2177
|
-
[
|
|
2177
|
+
[R, N]
|
|
2178
2178
|
);
|
|
2179
2179
|
ft(ra, Te, re);
|
|
2180
2180
|
const ct = ne ?? ce("booking.regionLabel"), mt = I(() => U !== "success" || !Me ? null : /* @__PURE__ */ a(
|
|
@@ -2204,7 +2204,7 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2204
2204
|
Te
|
|
2205
2205
|
]), ut = I(() => {
|
|
2206
2206
|
if (U === "success") return null;
|
|
2207
|
-
const
|
|
2207
|
+
const V = R === "accordion" ? Oa : R === "calendar" ? Ea : R === "flexible" ? Pa : R === "progress" ? Va : Ba, _e = {
|
|
2208
2208
|
cascade: _,
|
|
2209
2209
|
inputs: {
|
|
2210
2210
|
specialties: $,
|
|
@@ -2241,10 +2241,10 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2241
2241
|
activeStep: me,
|
|
2242
2242
|
setActiveStep: m
|
|
2243
2243
|
};
|
|
2244
|
-
return /* @__PURE__ */ a(
|
|
2244
|
+
return /* @__PURE__ */ a(V, { ..._e });
|
|
2245
2245
|
}, [
|
|
2246
2246
|
U,
|
|
2247
|
-
|
|
2247
|
+
R,
|
|
2248
2248
|
_,
|
|
2249
2249
|
$,
|
|
2250
2250
|
l,
|
|
@@ -2285,9 +2285,9 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2285
2285
|
id: re,
|
|
2286
2286
|
"data-component": "booking",
|
|
2287
2287
|
"data-component-id": re,
|
|
2288
|
-
"data-variant":
|
|
2288
|
+
"data-variant": R,
|
|
2289
2289
|
className: ka({
|
|
2290
|
-
variant:
|
|
2290
|
+
variant: R,
|
|
2291
2291
|
surface: ie,
|
|
2292
2292
|
className: X
|
|
2293
2293
|
}),
|
|
@@ -2298,14 +2298,12 @@ const Ra = [], La = [], Fa = qe(
|
|
|
2298
2298
|
{
|
|
2299
2299
|
className: [
|
|
2300
2300
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
].join(" ") : ""
|
|
2308
|
-
].filter(Boolean).join(" "),
|
|
2301
|
+
"ds:rounded-[var(--radius-md)]",
|
|
2302
|
+
"ds:bg-[color-mix(in_srgb,var(--primary)_35%,var(--background))]",
|
|
2303
|
+
"ds:bg-[image:var(--gradient-hero-brand)]",
|
|
2304
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
2305
|
+
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
|
|
2306
|
+
].join(" "),
|
|
2309
2307
|
children: [
|
|
2310
2308
|
/* @__PURE__ */ a("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: ce("booking.regionLabel") }),
|
|
2311
2309
|
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: ce("booking.headingSubtitle") })
|
|
@@ -2325,4 +2323,4 @@ export {
|
|
|
2325
2323
|
he as O,
|
|
2326
2324
|
ra as b
|
|
2327
2325
|
};
|
|
2328
|
-
//# sourceMappingURL=booking-
|
|
2326
|
+
//# sourceMappingURL=booking-h_kBZM6M.js.map
|
|
@@ -147,7 +147,7 @@ const h = t(
|
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
ref: r,
|
|
150
|
-
className: ["ds:p-[var(--spacing-md)] ds:flex-1
|
|
150
|
+
className: ["ds:p-[var(--spacing-md)] ds:flex-1", a].filter(Boolean).join(" "),
|
|
151
151
|
...e
|
|
152
152
|
}
|
|
153
153
|
)
|
|
@@ -176,4 +176,4 @@ const O = Object.assign(m, {
|
|
|
176
176
|
export {
|
|
177
177
|
O as C
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=card-
|
|
179
|
+
//# sourceMappingURL=card-DPmk26CL.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-DPmk26CL.js";
|
|
5
5
|
import { L as p } from "./link-DrD_cRUg.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-Cf8Ktyt3.js.map
|