@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.
Files changed (103) hide show
  1. package/dist/_chunks/{agenda-card-DtGlQde1.js → agenda-card-CFyWSX7Z.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-CXmlwt2K.js → agenda-tray-By_asPN9.js} +2 -2
  3. package/dist/_chunks/{badge-B9Cr6iEB.js → badge-zsf5i5bH.js} +9 -2
  4. package/dist/_chunks/{benefit-card-B86DH-PE.js → benefit-card-_Sc-MGha.js} +18 -8
  5. package/dist/_chunks/{booking-A4o9xI2n.js → booking-h_kBZM6M.js} +24 -26
  6. package/dist/_chunks/{card-CNri9ssR.js → card-DPmk26CL.js} +2 -2
  7. package/dist/_chunks/{contact-card-Dos7Tley.js → contact-card-Cf8Ktyt3.js} +2 -2
  8. package/dist/_chunks/{practice-profile-card-CfAMeTxQ.js → contact-profile-card-Ce-LIDU8.js} +128 -125
  9. package/dist/_chunks/{editable-currency-cell-renderer-YvTwkFrD.js → editable-currency-cell-renderer-B9VRSV_S.js} +2 -2
  10. package/dist/_chunks/{key-value-pair-CYE7NSpM.js → key-value-pair-CkQIb9EG.js} +42 -32
  11. package/dist/_chunks/{map-view-WEWqXzof.js → map-view-knHSNLoe.js} +140 -128
  12. package/dist/_chunks/{operator-hero-BsjE-kJF.js → operator-hero-7LiiP7zi.js} +4 -4
  13. package/dist/_chunks/{patient-search-CSDru7QW.js → patient-search-CBq62kmL.js} +2 -2
  14. package/dist/_chunks/{practice-results-CIkAdwRm.js → practice-results-Bw5fJTYF.js} +4 -4
  15. package/dist/_chunks/{reviews-panel-Cjys8G8K.js → reviews-panel-B-18RBSn.js} +39 -36
  16. package/dist/_chunks/{stat-CYEx8sIR.js → stat-EC2Papj7.js} +14 -14
  17. package/dist/_chunks/{timeline-BZC7qGdy.js → timeline-DQa5Tyz4.js} +2 -2
  18. package/dist/_chunks/{workflow-map-DfpjDZHK.js → workflow-map-uSiHbOWQ.js} +4 -4
  19. package/dist/agent-catalog.json +28 -28
  20. package/dist/components/agenda-card/index.js +1 -1
  21. package/dist/components/agenda-tray/index.js +1 -1
  22. package/dist/components/badge/index.js +1 -1
  23. package/dist/components/benefit-card/index.js +1 -1
  24. package/dist/components/booking/index.js +1 -1
  25. package/dist/components/card/index.js +1 -1
  26. package/dist/components/contact-card/index.js +1 -1
  27. package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts +4 -0
  28. package/dist/components/{practice-profile-card/practice-profile-card.d.ts → contact-profile-card/contact-profile-card.d.ts} +9 -9
  29. package/dist/components/contact-profile-card/index.d.ts +4 -0
  30. package/dist/components/contact-profile-card/index.js +8 -0
  31. package/dist/components/data-table/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -1
  33. package/dist/components/key-value-pair/index.js +1 -1
  34. package/dist/components/map-view/index.js +1 -1
  35. package/dist/components/map-view/map-view.d.ts +1 -1
  36. package/dist/components/operator-hero/index.js +1 -1
  37. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  38. package/dist/components/patient-search/index.js +1 -1
  39. package/dist/components/practice-results/index.js +1 -1
  40. package/dist/components/reviews-panel/index.js +1 -1
  41. package/dist/components/stat/index.js +1 -1
  42. package/dist/components/timeline/index.js +1 -1
  43. package/dist/components/workflow/index.js +1 -1
  44. package/dist/i18n/locales/ar.d.ts +1 -1
  45. package/dist/i18n/locales/ar.js +2 -2
  46. package/dist/i18n/locales/de.d.ts +1 -1
  47. package/dist/i18n/locales/de.js +2 -2
  48. package/dist/i18n/locales/el.d.ts +1 -1
  49. package/dist/i18n/locales/el.js +2 -2
  50. package/dist/i18n/locales/en.d.ts +1 -1
  51. package/dist/i18n/locales/en.js +2 -2
  52. package/dist/i18n/locales/es.d.ts +1 -1
  53. package/dist/i18n/locales/es.js +2 -2
  54. package/dist/i18n/locales/fr.d.ts +1 -1
  55. package/dist/i18n/locales/fr.js +2 -2
  56. package/dist/i18n/locales/hi.d.ts +1 -1
  57. package/dist/i18n/locales/hi.js +2 -2
  58. package/dist/i18n/locales/it.d.ts +1 -1
  59. package/dist/i18n/locales/it.js +2 -2
  60. package/dist/i18n/locales/ja.d.ts +1 -1
  61. package/dist/i18n/locales/ja.js +2 -2
  62. package/dist/i18n/locales/nl.d.ts +1 -1
  63. package/dist/i18n/locales/nl.js +2 -2
  64. package/dist/i18n/locales/pl.d.ts +1 -1
  65. package/dist/i18n/locales/pl.js +2 -2
  66. package/dist/i18n/locales/pt.d.ts +1 -1
  67. package/dist/i18n/locales/pt.js +2 -2
  68. package/dist/i18n/locales/ro.d.ts +1 -1
  69. package/dist/i18n/locales/ro.js +2 -2
  70. package/dist/i18n/locales/ru.d.ts +1 -1
  71. package/dist/i18n/locales/ru.js +2 -2
  72. package/dist/i18n/locales/sq.d.ts +1 -1
  73. package/dist/i18n/locales/sq.js +2 -2
  74. package/dist/i18n/locales/sv.d.ts +1 -1
  75. package/dist/i18n/locales/sv.js +2 -2
  76. package/dist/i18n/locales/tr.d.ts +1 -1
  77. package/dist/i18n/locales/tr.js +2 -2
  78. package/dist/i18n/locales/zh.d.ts +1 -1
  79. package/dist/i18n/locales/zh.js +2 -2
  80. package/dist/index.js +113 -113
  81. package/dist/locales/ar.json +1 -1
  82. package/dist/locales/de.json +1 -1
  83. package/dist/locales/el.json +1 -1
  84. package/dist/locales/en.json +1 -1
  85. package/dist/locales/es.json +1 -1
  86. package/dist/locales/fr.json +1 -1
  87. package/dist/locales/hi.json +1 -1
  88. package/dist/locales/it.json +1 -1
  89. package/dist/locales/ja.json +1 -1
  90. package/dist/locales/nl.json +1 -1
  91. package/dist/locales/pl.json +1 -1
  92. package/dist/locales/pt.json +1 -1
  93. package/dist/locales/ro.json +1 -1
  94. package/dist/locales/ru.json +1 -1
  95. package/dist/locales/sq.json +1 -1
  96. package/dist/locales/sv.json +1 -1
  97. package/dist/locales/tr.json +1 -1
  98. package/dist/locales/zh.json +1 -1
  99. package/dist/tokens.css +1 -1
  100. package/package.json +4 -4
  101. package/dist/components/practice-profile-card/index.d.ts +0 -4
  102. package/dist/components/practice-profile-card/index.js +0 -8
  103. 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-B9Cr6iEB.js";
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-DtGlQde1.js.map
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-DtGlQde1.js";
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-CXmlwt2K.js.map
181
+ //# sourceMappingURL=agenda-tray-By_asPN9.js.map
@@ -19,7 +19,14 @@ const z = a(
19
19
  {
20
20
  variants: {
21
21
  variant: {
22
- neutral: "ds:bg-muted/20 ds:text-muted-foreground",
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-B9Cr6iEB.js.map
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 b, useContext as k, Children as w, createContext as y } from "react";
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
- elevated: "ds:shadow-[var(--shadow-card)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
47
- outlined: "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2"
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 ? _[o.index % _.length] : "primary";
156
+ return a !== "auto" ? a : o ? b[o.index % b.length] : "primary";
147
157
  }
148
- const p = b(
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 = b(
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-B86DH-PE.js.map
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), V = !j || ne.length > 0, W = ce && Ce && V && !g, $ = (m) => {
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(), V = e ?? "inline-list", W = Ce.language ?? "en", $ = c ?? Ra, q = d ?? La;
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 R = fa(b, {
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
- (R.specialtyId !== b.specialtyId || R.operatorId !== b.operatorId || R.serviceId !== b.serviceId) && N(R);
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 (R) => {
2126
+ async (V) => {
2127
2127
  if (!_.selectedSlot) return;
2128
2128
  const _e = {
2129
2129
  slot: _.selectedSlot,
2130
2130
  value: {
2131
2131
  ...b,
2132
- details: R,
2132
+ details: V,
2133
2133
  operatorId: Ee(b) ?? b.operatorId
2134
2134
  },
2135
- details: R
2135
+ details: V
2136
2136
  };
2137
2137
  ue("submitting");
2138
2138
  try {
2139
2139
  await F(_e), De({
2140
2140
  slot: _.selectedSlot,
2141
- details: R,
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: () => V,
2169
+ getVariant: () => R,
2170
2170
  reset: () => {
2171
2171
  N({}), De(null), ue("idle"), m(1);
2172
2172
  },
2173
- goToStep: (R) => {
2174
- m(R);
2173
+ goToStep: (V) => {
2174
+ m(V);
2175
2175
  }
2176
2176
  }),
2177
- [V, N]
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 R = V === "accordion" ? Oa : V === "calendar" ? Ea : V === "flexible" ? Pa : V === "progress" ? Va : Ba, _e = {
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(R, { ..._e });
2244
+ return /* @__PURE__ */ a(V, { ..._e });
2245
2245
  }, [
2246
2246
  U,
2247
- V,
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": V,
2288
+ "data-variant": R,
2289
2289
  className: ka({
2290
- variant: V,
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
- V === "inline-list" ? [
2302
- "ds:rounded-[var(--radius-md)]",
2303
- "ds:bg-[color-mix(in_srgb,var(--primary)_35%,var(--background))]",
2304
- "ds:bg-[image:var(--gradient-hero-brand)]",
2305
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
2306
- "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
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-A4o9xI2n.js.map
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 ds:text-start", a].filter(Boolean).join(" "),
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-CNri9ssR.js.map
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-CNri9ssR.js";
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-Dos7Tley.js.map
121
+ //# sourceMappingURL=contact-card-Cf8Ktyt3.js.map