@alfadocs/ui-kit 0.31.7 → 0.32.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.
Files changed (102) 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/contact-profile-card-Ce-LIDU8.js +342 -0
  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/{timeline-BZC7qGdy.js → timeline-DQa5Tyz4.js} +2 -2
  17. package/dist/_chunks/{workflow-map-DfpjDZHK.js → workflow-map-uSiHbOWQ.js} +4 -4
  18. package/dist/agent-catalog.json +28 -28
  19. package/dist/components/agenda-card/index.js +1 -1
  20. package/dist/components/agenda-tray/index.js +1 -1
  21. package/dist/components/badge/index.js +1 -1
  22. package/dist/components/benefit-card/index.js +1 -1
  23. package/dist/components/booking/index.js +1 -1
  24. package/dist/components/card/index.js +1 -1
  25. package/dist/components/contact-card/index.js +1 -1
  26. package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts +4 -0
  27. package/dist/components/{practice-profile-card/practice-profile-card.d.ts → contact-profile-card/contact-profile-card.d.ts} +29 -9
  28. package/dist/components/contact-profile-card/index.d.ts +4 -0
  29. package/dist/components/contact-profile-card/index.js +8 -0
  30. package/dist/components/data-table/index.js +1 -1
  31. package/dist/components/index.d.ts +1 -1
  32. package/dist/components/key-value-pair/index.js +1 -1
  33. package/dist/components/map-view/index.js +1 -1
  34. package/dist/components/map-view/map-view.d.ts +1 -1
  35. package/dist/components/operator-hero/index.js +1 -1
  36. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  37. package/dist/components/patient-search/index.js +1 -1
  38. package/dist/components/practice-results/index.js +1 -1
  39. package/dist/components/reviews-panel/index.js +1 -1
  40. package/dist/components/timeline/index.js +1 -1
  41. package/dist/components/workflow/index.js +1 -1
  42. package/dist/i18n/locales/ar.d.ts +4 -1
  43. package/dist/i18n/locales/ar.js +5 -2
  44. package/dist/i18n/locales/de.d.ts +4 -1
  45. package/dist/i18n/locales/de.js +5 -2
  46. package/dist/i18n/locales/el.d.ts +4 -1
  47. package/dist/i18n/locales/el.js +5 -2
  48. package/dist/i18n/locales/en.d.ts +4 -1
  49. package/dist/i18n/locales/en.js +5 -2
  50. package/dist/i18n/locales/es.d.ts +4 -1
  51. package/dist/i18n/locales/es.js +5 -2
  52. package/dist/i18n/locales/fr.d.ts +4 -1
  53. package/dist/i18n/locales/fr.js +5 -2
  54. package/dist/i18n/locales/hi.d.ts +4 -1
  55. package/dist/i18n/locales/hi.js +5 -2
  56. package/dist/i18n/locales/it.d.ts +4 -1
  57. package/dist/i18n/locales/it.js +5 -2
  58. package/dist/i18n/locales/ja.d.ts +4 -1
  59. package/dist/i18n/locales/ja.js +5 -2
  60. package/dist/i18n/locales/nl.d.ts +4 -1
  61. package/dist/i18n/locales/nl.js +5 -2
  62. package/dist/i18n/locales/pl.d.ts +4 -1
  63. package/dist/i18n/locales/pl.js +5 -2
  64. package/dist/i18n/locales/pt.d.ts +4 -1
  65. package/dist/i18n/locales/pt.js +5 -2
  66. package/dist/i18n/locales/ro.d.ts +4 -1
  67. package/dist/i18n/locales/ro.js +5 -2
  68. package/dist/i18n/locales/ru.d.ts +4 -1
  69. package/dist/i18n/locales/ru.js +5 -2
  70. package/dist/i18n/locales/sq.d.ts +4 -1
  71. package/dist/i18n/locales/sq.js +5 -2
  72. package/dist/i18n/locales/sv.d.ts +4 -1
  73. package/dist/i18n/locales/sv.js +5 -2
  74. package/dist/i18n/locales/tr.d.ts +4 -1
  75. package/dist/i18n/locales/tr.js +5 -2
  76. package/dist/i18n/locales/zh.d.ts +4 -1
  77. package/dist/i18n/locales/zh.js +5 -2
  78. package/dist/index.js +112 -112
  79. package/dist/locales/ar.json +4 -1
  80. package/dist/locales/de.json +4 -1
  81. package/dist/locales/el.json +4 -1
  82. package/dist/locales/en.json +4 -1
  83. package/dist/locales/es.json +4 -1
  84. package/dist/locales/fr.json +4 -1
  85. package/dist/locales/hi.json +4 -1
  86. package/dist/locales/it.json +4 -1
  87. package/dist/locales/ja.json +4 -1
  88. package/dist/locales/nl.json +4 -1
  89. package/dist/locales/pl.json +4 -1
  90. package/dist/locales/pt.json +4 -1
  91. package/dist/locales/ro.json +4 -1
  92. package/dist/locales/ru.json +4 -1
  93. package/dist/locales/sq.json +4 -1
  94. package/dist/locales/sv.json +4 -1
  95. package/dist/locales/tr.json +4 -1
  96. package/dist/locales/zh.json +4 -1
  97. package/dist/tokens.css +1 -1
  98. package/package.json +4 -4
  99. package/dist/_chunks/practice-profile-card-DwZo7ggW.js +0 -305
  100. package/dist/components/practice-profile-card/index.d.ts +0 -4
  101. package/dist/components/practice-profile-card/index.js +0 -8
  102. package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +0 -4
@@ -26,65 +26,72 @@ const B = P("ds:flex", {
26
26
  }
27
27
  }), _ = g(
28
28
  ({
29
- label: t,
30
- value: s,
31
- layout: e = "horizontal",
29
+ label: o,
30
+ value: e,
31
+ layout: s = "horizontal",
32
32
  mono: r = !1,
33
33
  copyable: l = !1,
34
34
  copyText: v,
35
35
  icon: d,
36
36
  className: h,
37
- ...x
38
- }, k) => {
39
- const { t: o } = I(), [C, p] = y(!1), [N, n] = y(""), c = v ?? (typeof s == "string" ? s : void 0), w = z(async () => {
37
+ ...k
38
+ }, x) => {
39
+ const { t: n } = I(), [C, m] = y(!1), [N, t] = y(""), c = v ?? (typeof e == "string" ? e : void 0), V = z(async () => {
40
40
  if (c)
41
41
  try {
42
- await navigator.clipboard.writeText(c), p(!0), n(o("keyValuePair.copied")), setTimeout(() => {
43
- p(!1), n("");
42
+ await navigator.clipboard.writeText(c), m(!0), t(n("keyValuePair.copied")), setTimeout(() => {
43
+ m(!1), t("");
44
44
  }, 2e3);
45
45
  } catch {
46
- n(o("keyValuePair.notAvailable")), setTimeout(() => n(""), 3e3);
46
+ t(n("keyValuePair.notAvailable")), setTimeout(() => t(""), 3e3);
47
47
  }
48
- }, [c, o]), V = [
48
+ }, [c, n]), b = [
49
49
  "type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
50
+ // `flex-1` lets the value absorb the remaining inline space
51
+ // when the KVP root flexes the icon / label / value as direct
52
+ // siblings (`hasIcon && layout === 'horizontal'`). Without it,
53
+ // the value would shrink to its content width and the row
54
+ // would leave inline-end whitespace. Vertical layout doesn't
55
+ // need it because the value is below the label, not beside it.
56
+ s === "horizontal" ? "ds:flex-1" : "",
50
57
  r ? "ds:font-[family-name:var(--font-mono)]" : ""
51
- ].filter(Boolean).join(" "), m = d != null, b = e === "horizontal" ? "ds:flex ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)] ds:min-w-0 ds:flex-1" : "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", u = /* @__PURE__ */ i(f, { children: [
58
+ ].filter(Boolean).join(" "), u = d != null, w = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", p = /* @__PURE__ */ i(f, { children: [
52
59
  /* @__PURE__ */ i("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
53
- t,
60
+ o,
54
61
  /* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
55
62
  ] }),
56
- /* @__PURE__ */ a("span", { className: V, children: s }),
63
+ /* @__PURE__ */ a("span", { className: b, children: e }),
57
64
  l && /* @__PURE__ */ a(
58
65
  K,
59
66
  {
60
67
  icon: C ? /* @__PURE__ */ a(T, {}) : /* @__PURE__ */ a(j, {}),
61
68
  size: "sm",
62
- "aria-label": o("keyValuePair.copy", { label: t }),
63
- onClick: w,
69
+ "aria-label": n("keyValuePair.copy", { label: o }),
70
+ onClick: V,
64
71
  intent: "ghost",
65
- className: e === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
72
+ className: s === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
66
73
  }
67
74
  )
68
75
  ] });
69
76
  return /* @__PURE__ */ i(
70
77
  "div",
71
78
  {
72
- ref: k,
73
- className: B({ layout: e, hasIcon: m, className: h }),
79
+ ref: x,
80
+ className: B({ layout: s, hasIcon: u, className: h }),
74
81
  "data-component": "key-value-pair",
75
- ...x,
82
+ ...k,
76
83
  children: [
77
- m ? /* @__PURE__ */ i(f, { children: [
84
+ u ? /* @__PURE__ */ i(f, { children: [
78
85
  /* @__PURE__ */ a(
79
86
  "span",
80
87
  {
81
88
  "aria-hidden": "true",
82
- className: "ds:inline-flex ds:shrink-0 ds:mt-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
89
+ className: "ds:inline-flex ds:shrink-0 ds:translate-y-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
83
90
  children: d
84
91
  }
85
92
  ),
86
- /* @__PURE__ */ a("div", { className: b, children: u })
87
- ] }) : u,
93
+ s === "horizontal" ? p : /* @__PURE__ */ a("div", { className: w, children: p })
94
+ ] }) : p,
88
95
  /* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: N })
89
96
  ]
90
97
  }
@@ -97,7 +104,7 @@ const A = {
97
104
  md: "ds:gap-y-[var(--spacing-md)]",
98
105
  lg: "ds:gap-y-[var(--spacing-lg)]"
99
106
  }, L = g(
100
- ({ children: t, className: s, rowGap: e = "md", ...r }, l) => /* @__PURE__ */ a(
107
+ ({ children: o, className: e, rowGap: s = "md", ...r }, l) => /* @__PURE__ */ a(
101
108
  "div",
102
109
  {
103
110
  ref: l,
@@ -105,7 +112,7 @@ const A = {
105
112
  className: [
106
113
  "ds:grid ds:grid-cols-[auto_auto_minmax(0,1fr)]",
107
114
  "ds:gap-x-[var(--spacing-md)]",
108
- A[e],
115
+ A[s],
109
116
  // Each direct `data-component="key-value-pair"` child becomes
110
117
  // a subgrid row spanning all three columns. The KVP's own
111
118
  // flex layout still works inside the cell (icon shrinks-0,
@@ -115,14 +122,17 @@ const A = {
115
122
  'ds:[&>[data-component="key-value-pair"]]:grid-cols-subgrid',
116
123
  'ds:[&>[data-component="key-value-pair"]]:col-span-3',
117
124
  'ds:[&>[data-component="key-value-pair"]]:items-baseline',
118
- // Reset the per-row flex gap so the subgrid columns own the
119
- // spacing. Without this the KVP's intra-row `gap-sm` would
120
- // double the parent's `gap-x-md`.
121
- 'ds:[&>[data-component="key-value-pair"]]:gap-0',
122
- s
125
+ // Unset the KVP's intra-row `gap-sm` so the subgrid inherits
126
+ // the parent KeyValueList's `gap-x-md` for every track gap
127
+ // (icon→label and label→value). `gap-0` here would override
128
+ // the parent's gap and crowd the icon against the label;
129
+ // `[gap:normal]` is the subgrid-spec way to defer to the
130
+ // parent.
131
+ 'ds:[&>[data-component="key-value-pair"]]:[gap:normal]',
132
+ e
123
133
  ].filter(Boolean).join(" "),
124
134
  ...r,
125
- children: t
135
+ children: o
126
136
  }
127
137
  )
128
138
  );
@@ -131,4 +141,4 @@ export {
131
141
  L as K,
132
142
  _ as a
133
143
  };
134
- //# sourceMappingURL=key-value-pair-CYE7NSpM.js.map
144
+ //# sourceMappingURL=key-value-pair-CkQIb9EG.js.map