@alfadocs/ui-kit 1.151.2 → 1.151.4

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 (88) hide show
  1. package/dist/_chunks/accessible-target-B6jk-HLB.js +9 -0
  2. package/dist/_chunks/{anamnesis-summary-rows-CFpaA1GP.js → anamnesis-summary-rows-D8_aTDvP.js} +2 -2
  3. package/dist/_chunks/{balance-badge-cell-OghXENKK.js → balance-badge-cell-BVcRd-3Y.js} +2 -2
  4. package/dist/_chunks/{bill-line-table-DxV5_Dmq.js → bill-line-table-BW4ZgF3K.js} +2 -2
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-B9MtcBvx.js → calendar-appointment-editor-dialog-DQ9LNxY5.js} +7 -7
  6. package/dist/_chunks/{calendar-editor-discard-host-BudLsUZO.js → calendar-editor-discard-host-B0ssYoCI.js} +2 -2
  7. package/dist/_chunks/{calendar-waiting-list-panel-DukgSOPH.js → calendar-waiting-list-panel-41b7gXfF.js} +2 -2
  8. package/dist/_chunks/{calendar.sheets-OmTiQdCg.js → calendar.sheets-4mHB1Og9.js} +3 -3
  9. package/dist/_chunks/{calls-panel-eohONLia.js → calls-panel-DDtKm9Q_.js} +2 -2
  10. package/dist/_chunks/{care-plan-card-DJXNWjKB.js → care-plan-card-DjaWS2dl.js} +2 -2
  11. package/dist/_chunks/{care-plan-entry-card-W5QvNv8m.js → care-plan-entry-card-BiPbwQVq.js} +2 -2
  12. package/dist/_chunks/{clinical-note-card-D-9xmRpf.js → clinical-note-card-Dj4W96Fe.js} +144 -123
  13. package/dist/_chunks/{data-grid-DTAwrOiq.js → data-grid-R96eWG3V.js} +3 -3
  14. package/dist/_chunks/{date-range-panel-B86RANxB.js → date-range-panel-DAOG8tbm.js} +3 -3
  15. package/dist/_chunks/{date-range-picker-Z-hI5Vb7.js → date-range-picker-BEHiWujK.js} +2 -2
  16. package/dist/_chunks/{default-tabs-CZaDDf1G.js → default-tabs-BPZHfvNh.js} +5 -5
  17. package/dist/_chunks/{face-scheme-DRYGaszs.js → face-scheme-DR-X-Njb.js} +265 -256
  18. package/dist/_chunks/{feature-preview-switch-B_8JTya_.js → feature-preview-switch-i68faVMe.js} +2 -2
  19. package/dist/_chunks/{gestational-age-calculator-DrVw8arH.js → gestational-age-calculator--wzG4gKI.js} +2 -2
  20. package/dist/_chunks/{header-settings-BIiYXX9_.js → header-settings-BzpbPgZ-.js} +2 -2
  21. package/dist/_chunks/{invoice-upload-list-DutydbjC.js → invoice-upload-list-BxwgY0um.js} +4 -4
  22. package/dist/_chunks/{kit-extensions-CSPGIdcn.js → kit-extensions-CvBNCrm-.js} +3 -3
  23. package/dist/_chunks/{link-cell-renderer-DTunki79.js → link-cell-renderer-Ci-p1fjn.js} +2 -2
  24. package/dist/_chunks/{marketplace-app-shell-CclaaAvb.js → marketplace-app-shell-CUNBV_h9.js} +2 -2
  25. package/dist/_chunks/{notes-panel-d0I3hOEY.js → notes-panel-D7GCZIp5.js} +4 -4
  26. package/dist/_chunks/{patient-details-wFIzTz7N.js → patient-details-D5YzuSDh.js} +2 -2
  27. package/dist/_chunks/{patient-field-row-BDgfYLgz.js → patient-field-row-DJxgYlCL.js} +2 -2
  28. package/dist/_chunks/{patient-summary-card-ZunOre3Q.js → patient-summary-card-BbNfrKx0.js} +55 -54
  29. package/dist/_chunks/{pregnancy-dating-BEVI6zvu.js → pregnancy-dating-0AG2sB0B.js} +2 -2
  30. package/dist/_chunks/{prescription-history-CxBM3gnm.js → prescription-history-YtPd9cH-.js} +4 -4
  31. package/dist/_chunks/{radiograph-panel.agent-kgCmmgZk.js → radiograph-panel.agent-Dc3mlsUZ.js} +2 -2
  32. package/dist/_chunks/{row-actions-CA938TAd.js → row-actions-Cgs-Yrpp.js} +2 -2
  33. package/dist/_chunks/{signature-request-CfHfAEQt.js → signature-request-mwqwxVF-.js} +2 -2
  34. package/dist/_chunks/{switch-DO6uC4HJ.js → switch-D69iEUUt.js} +33 -29
  35. package/dist/_chunks/{task-editor-aXjGMwYA.js → task-editor-Bfw8Z9wO.js} +2 -2
  36. package/dist/_chunks/{tasks-panel-BdxHb-fX.js → tasks-panel-CGSL8QJJ.js} +2 -2
  37. package/dist/_chunks/{theme-toggle-DAqT_Yxy.js → theme-toggle-PyHaxWRC.js} +2 -2
  38. package/dist/_chunks/{toolbar-B2JJ_XDT.js → toolbar-nP46JFWM.js} +2 -2
  39. package/dist/_chunks/{tooth-scheme-C7xJEzaK.js → tooth-scheme-CwxRL1wg.js} +2 -2
  40. package/dist/_chunks/{use-appointment-details-read-BR3TQOHx.js → use-appointment-details-read-BcBr4JwL.js} +265 -243
  41. package/dist/_chunks/{weekly-hours-editor-pTLyK8tt.js → weekly-hours-editor-Wo4dV_gE.js} +2 -2
  42. package/dist/agent-catalog.json +1 -1
  43. package/dist/appointment-editor-panel/index.js +2 -2
  44. package/dist/browser-support.js +1 -1
  45. package/dist/components/_shared/accessible-target.d.ts +19 -0
  46. package/dist/components/appointment-details-panel/index.js +1 -1
  47. package/dist/components/bill-line-table/index.js +1 -1
  48. package/dist/components/bill-table/index.js +1 -1
  49. package/dist/components/calls-panel/index.js +1 -1
  50. package/dist/components/care-plan-card/index.js +1 -1
  51. package/dist/components/care-plan-entry-card/index.js +1 -1
  52. package/dist/components/clinical-note-card/index.js +1 -1
  53. package/dist/components/data-grid/index.js +2 -2
  54. package/dist/components/data-table/index.js +1 -1
  55. package/dist/components/date-range-picker/index.js +1 -1
  56. package/dist/components/face-scheme/index.js +1 -1
  57. package/dist/components/feature-preview-switch/index.js +1 -1
  58. package/dist/components/gestational-age-calculator/index.js +1 -1
  59. package/dist/components/header-settings/index.js +1 -1
  60. package/dist/components/invoice-upload-list/index.js +1 -1
  61. package/dist/components/notes-panel/index.js +1 -1
  62. package/dist/components/patient-details/index.js +1 -1
  63. package/dist/components/patient-summary-card/index.js +1 -1
  64. package/dist/components/patient-table/index.js +1 -1
  65. package/dist/components/pregnancy-dating/index.js +1 -1
  66. package/dist/components/radiograph-panel/index.js +1 -1
  67. package/dist/components/rich-text-editor/index.js +1 -1
  68. package/dist/components/row-actions/index.js +1 -1
  69. package/dist/components/switch/index.js +1 -1
  70. package/dist/components/task-editor/index.js +1 -1
  71. package/dist/components/tasks-panel/index.js +1 -1
  72. package/dist/components/theme-toggle/index.js +1 -1
  73. package/dist/components/tooth-scheme/index.js +1 -1
  74. package/dist/components/weekly-hours-editor/index.js +1 -1
  75. package/dist/core.css +1 -1
  76. package/dist/find-free-slots-panel/index.js +1 -1
  77. package/dist/index.js +36 -36
  78. package/dist/online-bookings-panel/index.js +1 -1
  79. package/dist/patterns/anamnesis/index.js +1 -1
  80. package/dist/patterns/calendar/index.js +3 -3
  81. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  82. package/dist/patterns/prescription/index.js +1 -1
  83. package/dist/patterns/signature-request/index.js +1 -1
  84. package/dist/tokens.css +1 -1
  85. package/dist/waiting-list-panel/index.js +2 -2
  86. package/package.json +1 -1
  87. package/dist/_chunks/accessible-target-D3j6F-AG.js +0 -7
  88. package/dist/_chunks/user-round-DZxRG9zq.js +0 -15
@@ -1,11 +1,12 @@
1
- import { jsxs as I, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as T, useContext as q, useState as K, useRef as _, useMemo as A } from "react";
1
+ import { jsxs as T, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as I, useContext as q, useState as A, useRef as K, useMemo as _ } from "react";
3
3
  import * as w from "@radix-ui/react-switch";
4
- import { c as o } from "./index-D2ZczOXr.js";
4
+ import { c as n } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as H } from "react-i18next";
6
6
  import { u as M, F as O, a as D } from "./form-field-context-DtiROUJV.js";
7
7
  import { u as P } from "./registry-DvAUVLHh.js";
8
- const W = {
8
+ import { h as W } from "./accessible-target-B6jk-HLB.js";
9
+ const $ = {
9
10
  id: "switch",
10
11
  capabilities: ["set_value"],
11
12
  state: {
@@ -53,9 +54,12 @@ const W = {
53
54
  description: "Sourced from the id prop."
54
55
  }
55
56
  }
56
- }, $ = o(
57
+ }, E = n(
57
58
  [
58
59
  "ds:inline-flex ds:shrink-0 ds:cursor-pointer ds:items-center",
60
+ // The track stays compact; a tap anywhere in the target square around
61
+ // it still reaches the switch.
62
+ W,
59
63
  "ds:rounded-[var(--radius-full)]",
60
64
  "ds:border-2 ds:border-transparent",
61
65
  "ds:bg-muted",
@@ -75,7 +79,7 @@ const W = {
75
79
  },
76
80
  defaultVariants: { size: "md" }
77
81
  }
78
- ), E = o(
82
+ ), G = n(
79
83
  [
80
84
  "ds:pointer-events-none ds:flex ds:items-center ds:justify-center ds:rounded-full ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-sm)]",
81
85
  "ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
@@ -92,7 +96,7 @@ const W = {
92
96
  },
93
97
  defaultVariants: { size: "md" }
94
98
  }
95
- ), G = o(
99
+ ), J = n(
96
100
  "ds:inline-flex ds:items-center ds:gap-3 ds:min-h-[var(--min-target-size)]",
97
101
  {
98
102
  variants: {
@@ -103,7 +107,7 @@ const W = {
103
107
  },
104
108
  defaultVariants: { labelSide: "end" }
105
109
  }
106
- ), J = o("type-label ds:text-foreground ds:select-none", {
110
+ ), L = n("type-label ds:text-foreground ds:select-none", {
107
111
  variants: {
108
112
  disabled: {
109
113
  true: "ds:cursor-not-allowed ds:opacity-50",
@@ -111,11 +115,11 @@ const W = {
111
115
  }
112
116
  },
113
117
  defaultVariants: { disabled: !1 }
114
- }), L = {
118
+ }), Q = {
115
119
  sm: "ds:size-2",
116
120
  md: "ds:size-2.5",
117
121
  lg: "ds:size-3"
118
- }, Q = T(
122
+ }, U = I(
119
123
  ({
120
124
  label: e,
121
125
  labelSide: r = "end",
@@ -131,16 +135,16 @@ const W = {
131
135
  className: S,
132
136
  ...z
133
137
  }, F) => {
134
- const { t: b } = H("ui"), s = M(), j = q(O) !== null, g = D(s, f), [C, V] = K(
138
+ const { t: g } = H("ui"), s = M(), C = q(O) !== null, b = D(s, f), [j, V] = A(
135
139
  i ?? p ?? !1
136
- ), d = typeof i == "boolean", a = d ? i : C, m = (n) => {
137
- d || V(n), u == null || u(n);
138
- }, v = s.disabled || x, N = s.describedBy || void 0, h = _(a);
140
+ ), d = typeof i == "boolean", a = d ? i : j, m = (o) => {
141
+ d || V(o), u == null || u(o);
142
+ }, v = s.disabled || x, N = s.describedBy || void 0, h = K(a);
139
143
  h.current = a;
140
- const R = A(
144
+ const R = _(
141
145
  () => ({
142
146
  getChecked: () => h.current,
143
- setChecked: (n) => m(n),
147
+ setChecked: (o) => m(o),
144
148
  toggle: () => m(!h.current)
145
149
  }),
146
150
  // handleCheckedChange closes over isControlled / onCheckedChange and is
@@ -148,14 +152,14 @@ const W = {
148
152
  // eslint-disable-next-line react-hooks/exhaustive-deps
149
153
  []
150
154
  );
151
- P(W, R, f);
152
- const B = a ? b("inputs.switch.on", "On") : b("inputs.switch.off", "Off");
153
- return /* @__PURE__ */ I("div", { className: G({ labelSide: r }), children: [
155
+ P($, R, f);
156
+ const B = a ? g("inputs.switch.on", "On") : g("inputs.switch.off", "Off");
157
+ return /* @__PURE__ */ T("div", { className: J({ labelSide: r }), children: [
154
158
  /* @__PURE__ */ t(
155
159
  w.Root,
156
160
  {
157
161
  ref: F,
158
- id: g,
162
+ id: b,
159
163
  checked: d ? i : void 0,
160
164
  defaultChecked: d ? void 0 : p,
161
165
  onCheckedChange: m,
@@ -165,13 +169,13 @@ const W = {
165
169
  "aria-required": s.required || void 0,
166
170
  "data-component": "switch",
167
171
  "data-component-id": f,
168
- className: $({ size: c, className: S }),
172
+ className: E({ size: c, className: S }),
169
173
  ...z,
170
- children: /* @__PURE__ */ t(w.Thumb, { className: E({ size: c }), children: l ? /* @__PURE__ */ t(
174
+ children: /* @__PURE__ */ t(w.Thumb, { className: G({ size: c }), children: l ? /* @__PURE__ */ t(
171
175
  "span",
172
176
  {
173
177
  "aria-hidden": "true",
174
- className: `${L[c]} ds:inline-flex ds:items-center ds:justify-center ds:[&_svg]:size-full`,
178
+ className: `${Q[c]} ds:inline-flex ds:items-center ds:justify-center ds:[&_svg]:size-full`,
175
179
  children: a ? l.on : l.off
176
180
  }
177
181
  ) : null })
@@ -185,12 +189,12 @@ const W = {
185
189
  children: B
186
190
  }
187
191
  ) : null,
188
- j ? null : /* @__PURE__ */ t(
192
+ C ? null : /* @__PURE__ */ t(
189
193
  "label",
190
194
  {
191
- htmlFor: g,
195
+ htmlFor: b,
192
196
  className: [
193
- J({ disabled: !!v }),
197
+ L({ disabled: !!v }),
194
198
  k ? "ds:sr-only" : ""
195
199
  ].filter(Boolean).join(" "),
196
200
  children: e
@@ -199,8 +203,8 @@ const W = {
199
203
  ] });
200
204
  }
201
205
  );
202
- Q.displayName = "Switch";
206
+ U.displayName = "Switch";
203
207
  export {
204
- Q as S
208
+ U as S
205
209
  };
206
- //# sourceMappingURL=switch-DO6uC4HJ.js.map
210
+ //# sourceMappingURL=switch-D69iEUUt.js.map
@@ -17,7 +17,7 @@ import { R as qt } from "./radio-group-ChIKyeSJ.js";
17
17
  import { S as Vt } from "./scroll-area-RQtcKkHf.js";
18
18
  import { S as Ge } from "./select-Bw5FvGJ7.js";
19
19
  import { S as He } from "./skeleton-tTWJpvAq.js";
20
- import { S as _t } from "./switch-DO6uC4HJ.js";
20
+ import { S as _t } from "./switch-D69iEUUt.js";
21
21
  import { T as Wt } from "./text-area-DbxGkpzE.js";
22
22
  import { T as Ue } from "./text-input-B6iAgCr3.js";
23
23
  import { T as Kt } from "./time-picker-DDr5vhwQ.js";
@@ -1159,4 +1159,4 @@ export {
1159
1159
  gn as T,
1160
1160
  cn as t
1161
1161
  };
1162
- //# sourceMappingURL=task-editor-aXjGMwYA.js.map
1162
+ //# sourceMappingURL=task-editor-Bfw8Z9wO.js.map
@@ -10,7 +10,7 @@ import { I as $e } from "./icon-button-u9VMQn3x.js";
10
10
  import { B as Nt } from "./button-group-CHQD8GJ0.js";
11
11
  import { P as Ks } from "./panel-header-DTc5OFUg.js";
12
12
  import { S as jt } from "./select-Bw5FvGJ7.js";
13
- import { S as Vs } from "./switch-DO6uC4HJ.js";
13
+ import { S as Vs } from "./switch-D69iEUUt.js";
14
14
  import { S as Cs } from "./skeleton-tTWJpvAq.js";
15
15
  import { E as qe } from "./empty-state-qHtpcasr.js";
16
16
  import { T as Us } from "./task-card-BNbkwIYM.js";
@@ -1237,4 +1237,4 @@ export {
1237
1237
  En as T,
1238
1238
  dn as t
1239
1239
  };
1240
- //# sourceMappingURL=tasks-panel-BdxHb-fX.js.map
1240
+ //# sourceMappingURL=tasks-panel-CGSL8QJJ.js.map
@@ -4,7 +4,7 @@ import { c as _ } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as u } from "react-i18next";
5
5
  import { I as T } from "./icon-button-u9VMQn3x.js";
6
6
  import { I as j } from "./icon-button-group-DEAx9M5v.js";
7
- import { S as x } from "./switch-DO6uC4HJ.js";
7
+ import { S as x } from "./switch-D69iEUUt.js";
8
8
  import { D as o } from "./dropdown-menu-Bm1KALnk.js";
9
9
  import { u as K } from "./use-theme-CYGyzFgZ.js";
10
10
  import { u as L } from "./registry-DvAUVLHh.js";
@@ -373,4 +373,4 @@ export {
373
373
  O as T,
374
374
  D as t
375
375
  };
376
- //# sourceMappingURL=theme-toggle-DAqT_Yxy.js.map
376
+ //# sourceMappingURL=theme-toggle-PyHaxWRC.js.map
@@ -5,7 +5,7 @@ import { T as v, c as N, a as R } from "./parts-DyCxaRF0.js";
5
5
  import { e as k, s as P, w as A, a as B } from "./export-files-BByoK9Cg.js";
6
6
  import { i as O } from "./is-development-CLUAnsU7.js";
7
7
  import { d as j, g as Q, u as _ } from "./grid-context-jn9y8tNE.js";
8
- import { g as U } from "./data-grid-DTAwrOiq.js";
8
+ import { g as U } from "./data-grid-R96eWG3V.js";
9
9
  function S() {
10
10
  var t;
11
11
  return ((t = _()) == null ? void 0 : t.toolbarSeam) ?? null;
@@ -156,4 +156,4 @@ export {
156
156
  Z as D,
157
157
  Y as a
158
158
  };
159
- //# sourceMappingURL=toolbar-B2JJ_XDT.js.map
159
+ //# sourceMappingURL=toolbar-nP46JFWM.js.map
@@ -7,7 +7,7 @@ import { useTranslation as oo } from "react-i18next";
7
7
  import { u as Go } from "./registry-DvAUVLHh.js";
8
8
  import { I as Qo } from "./icon-button-u9VMQn3x.js";
9
9
  import { D as H } from "./dropdown-menu-Bm1KALnk.js";
10
- import { S as Zo } from "./switch-DO6uC4HJ.js";
10
+ import { S as Zo } from "./switch-D69iEUUt.js";
11
11
  import { o as Ut, K as Xo, a0 as Jo, J as Ue, R as Ye, u as no, U as io, G as en, S as tn, w as Be, X as F, f as le, $ as at, _ as Yt, E as ut, a1 as de, H as zt, z as lt, y as on, l as st, A as ro, L as nn, t as ht, W as ct, s as ao, Y as so, x as rn, V as an, a2 as sn, a3 as $, a4 as U, a5 as cn, Z as dn, C as co, Q as ln, a6 as hn, k as Vt, T as un, O as pn, q as fn, N as mn } from "./tooth-data-DR8Kdnup.js";
12
12
  import { S as gn } from "./settings-d25ju_6L.js";
13
13
  import { R as vn } from "./rotate-ccw-BBQnIVTr.js";
@@ -1993,4 +1993,4 @@ export {
1993
1993
  On as r,
1994
1994
  _n as t
1995
1995
  };
1996
- //# sourceMappingURL=tooth-scheme-C7xJEzaK.js.map
1996
+ //# sourceMappingURL=tooth-scheme-CwxRL1wg.js.map