@alfadocs/ui-kit 0.50.1 → 0.52.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 (152) hide show
  1. package/dist/_chunks/{agenda-card-BaSfVfrL.js → agenda-card-Bl-SBiCh.js} +55 -45
  2. package/dist/_chunks/agenda-tray-DA6qj8BL.js +203 -0
  3. package/dist/_chunks/{ai-consent-banner-F2md5JD3.js → ai-consent-banner-DBKV27je.js} +2 -2
  4. package/dist/_chunks/ai-tools-rail-7tC3GT4h.js +340 -0
  5. package/dist/_chunks/{alert-CUTxnym2.js → alert-_mUKLmwA.js} +54 -44
  6. package/dist/_chunks/{audio-recorder-DVJXV7_k.js → audio-recorder-D6OVfNiZ.js} +2 -2
  7. package/dist/_chunks/{booking-DljH0JkS.js → booking-BUV9fspj.js} +2 -2
  8. package/dist/_chunks/{document-scanner-Cxqvq7GR.js → document-scanner-biBS_f6c.js} +2 -2
  9. package/dist/_chunks/dropdown-menu-DwwPovMZ.js +354 -0
  10. package/dist/_chunks/{editable-currency-cell-renderer-Bh48OHRv.js → editable-currency-cell-renderer-D5C5tCfu.js} +3 -3
  11. package/dist/_chunks/{freemium-paywall-BWaLWje-.js → freemium-paywall-gHGA44dW.js} +2 -2
  12. package/dist/_chunks/{header-settings-Bx0Biimh.js → header-settings-D5Z2B_Yz.js} +3 -3
  13. package/dist/_chunks/{logo-yituK7sE.js → logo-1FuSGx0n.js} +2 -1
  14. package/dist/_chunks/marketplace-app-shell-C4OYAC22.js +513 -0
  15. package/dist/_chunks/maximize-2-Cm9OUQ2m.js +17 -0
  16. package/dist/_chunks/{patient-search-BJOmTmDA.js → patient-search-CArmRKeg.js} +3 -3
  17. package/dist/_chunks/patient-shell-Coarf346.js +162 -0
  18. package/dist/_chunks/{payment-form-xmeCkxas.js → payment-form-DJ9vnzrT.js} +2 -2
  19. package/dist/_chunks/{pdf-viewer-q1D3Uion.js → pdf-viewer-4odMFuFW.js} +2 -2
  20. package/dist/_chunks/{practice-results-Cq1y8JFD.js → practice-results-CtfciF2v.js} +3 -3
  21. package/dist/_chunks/{pregnancy-dating-DT_244bG.js → pregnancy-dating-BA37LSkF.js} +15 -15
  22. package/dist/_chunks/{privacy-lock-BmX_gkvt.js → privacy-lock-BN3L-alb.js} +2 -2
  23. package/dist/_chunks/{public-footer.agent-okt8ZRc5.js → public-footer.agent-CfXuW1x6.js} +2 -2
  24. package/dist/_chunks/{recaptcha-widget-CFYyLSEX.js → recaptcha-widget-BCNHsgqt.js} +2 -2
  25. package/dist/_chunks/{sidebar-h78cTNLh.js → sidebar-DPEHzxLZ.js} +397 -346
  26. package/dist/_chunks/{sign-document-CZkAf28g.js → sign-document-Bzld9jVM.js} +2 -2
  27. package/dist/_chunks/{sign-in-with-alfadocs-button-CuYn_kKP.js → sign-in-with-alfadocs-button-BpAjVmsI.js} +2 -2
  28. package/dist/_chunks/{task-card-CPyQ5AXC.js → task-card-BwY9jaV1.js} +48 -42
  29. package/dist/_chunks/task-tray-Cb_hK4yb.js +234 -0
  30. package/dist/_chunks/{theme-toggle-ClATnY4Q.js → theme-toggle-DAW7uC0B.js} +3 -3
  31. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +139 -0
  32. package/dist/_chunks/use-theme-CAuo6EYT.js +159 -0
  33. package/dist/_chunks/{warning-stack-CXfoAT-_.js → warning-stack-Cv4fr5zo.js} +2 -2
  34. package/dist/_chunks/{workflow-map-DzX_LI4y.js → workflow-map-BJDUNYlX.js} +3 -3
  35. package/dist/agent-catalog.json +1 -1
  36. package/dist/brand/product-lockup/product-lockup.d.ts +47 -12
  37. package/dist/components/agenda-card/agenda-card.d.ts +19 -2
  38. package/dist/components/agenda-card/index.js +1 -1
  39. package/dist/components/agenda-tray/agenda-tray.d.ts +24 -1
  40. package/dist/components/agenda-tray/index.js +1 -1
  41. package/dist/components/ai-consent-banner/index.js +1 -1
  42. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +8 -0
  43. package/dist/components/ai-tools-rail/index.js +1 -1
  44. package/dist/components/alert/index.js +1 -1
  45. package/dist/components/audio-recorder/index.js +1 -1
  46. package/dist/components/booking/index.js +1 -1
  47. package/dist/components/button-group/button-group.d.ts +1 -1
  48. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
  49. package/dist/components/data-table/index.js +1 -1
  50. package/dist/components/document-scanner/index.js +1 -1
  51. package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -0
  52. package/dist/components/dropdown-menu/index.js +1 -1
  53. package/dist/components/form-field/form-field.d.ts +1 -1
  54. package/dist/components/freemium-paywall/index.js +1 -1
  55. package/dist/components/header-settings/index.js +1 -1
  56. package/dist/components/icon-button-group/icon-button-group.d.ts +15 -15
  57. package/dist/components/key-value-pair/key-value-pair.d.ts +1 -1
  58. package/dist/components/logo/index.js +1 -1
  59. package/dist/components/patient-search/index.js +1 -1
  60. package/dist/components/payment-form/index.js +1 -1
  61. package/dist/components/pdf-viewer/index.js +1 -1
  62. package/dist/components/practice-results/index.js +1 -1
  63. package/dist/components/pregnancy-dating/index.js +1 -1
  64. package/dist/components/privacy-lock/index.js +1 -1
  65. package/dist/components/public-footer/index.js +1 -1
  66. package/dist/components/radio-group/radio-group.d.ts +1 -1
  67. package/dist/components/recaptcha-widget/index.js +1 -1
  68. package/dist/components/separator/separator.d.ts +1 -1
  69. package/dist/components/sidebar/index.js +1 -1
  70. package/dist/components/sidebar/sidebar.d.ts +8 -0
  71. package/dist/components/sign-document/index.js +1 -1
  72. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  73. package/dist/components/tabs/tabs.d.ts +2 -2
  74. package/dist/components/task-card/index.js +1 -1
  75. package/dist/components/task-card/task-card.d.ts +15 -1
  76. package/dist/components/task-tray/index.js +1 -1
  77. package/dist/components/task-tray/task-tray.d.ts +24 -1
  78. package/dist/components/theme-toggle/index.js +1 -1
  79. package/dist/components/warning-stack/index.js +1 -1
  80. package/dist/components/workflow/index.js +1 -1
  81. package/dist/components/workflow/workflow-map.d.ts +1 -1
  82. package/dist/hooks/index.d.ts +1 -0
  83. package/dist/hooks/index.js +12 -10
  84. package/dist/hooks/use-edge-resize.d.ts +78 -0
  85. package/dist/i18n/locales/ar.d.ts +4 -0
  86. package/dist/i18n/locales/ar.js +7 -3
  87. package/dist/i18n/locales/de.d.ts +4 -0
  88. package/dist/i18n/locales/de.js +7 -3
  89. package/dist/i18n/locales/el.d.ts +4 -0
  90. package/dist/i18n/locales/el.js +7 -3
  91. package/dist/i18n/locales/en.d.ts +4 -0
  92. package/dist/i18n/locales/en.js +7 -3
  93. package/dist/i18n/locales/es.d.ts +4 -0
  94. package/dist/i18n/locales/es.js +7 -3
  95. package/dist/i18n/locales/fr.d.ts +4 -0
  96. package/dist/i18n/locales/fr.js +7 -3
  97. package/dist/i18n/locales/hi.d.ts +4 -0
  98. package/dist/i18n/locales/hi.js +7 -3
  99. package/dist/i18n/locales/it.d.ts +4 -0
  100. package/dist/i18n/locales/it.js +7 -3
  101. package/dist/i18n/locales/ja.d.ts +4 -0
  102. package/dist/i18n/locales/ja.js +7 -3
  103. package/dist/i18n/locales/nl.d.ts +4 -0
  104. package/dist/i18n/locales/nl.js +7 -3
  105. package/dist/i18n/locales/pl.d.ts +4 -0
  106. package/dist/i18n/locales/pl.js +7 -3
  107. package/dist/i18n/locales/pt.d.ts +4 -0
  108. package/dist/i18n/locales/pt.js +7 -3
  109. package/dist/i18n/locales/ro.d.ts +4 -0
  110. package/dist/i18n/locales/ro.js +7 -3
  111. package/dist/i18n/locales/ru.d.ts +4 -0
  112. package/dist/i18n/locales/ru.js +7 -3
  113. package/dist/i18n/locales/sq.d.ts +4 -0
  114. package/dist/i18n/locales/sq.js +7 -3
  115. package/dist/i18n/locales/sv.d.ts +4 -0
  116. package/dist/i18n/locales/sv.js +7 -3
  117. package/dist/i18n/locales/tr.d.ts +4 -0
  118. package/dist/i18n/locales/tr.js +7 -3
  119. package/dist/i18n/locales/zh.d.ts +4 -0
  120. package/dist/i18n/locales/zh.js +7 -3
  121. package/dist/index.js +31 -31
  122. package/dist/locales/ar.json +7 -3
  123. package/dist/locales/de.json +7 -3
  124. package/dist/locales/el.json +7 -3
  125. package/dist/locales/en.json +7 -3
  126. package/dist/locales/es.json +7 -3
  127. package/dist/locales/fr.json +7 -3
  128. package/dist/locales/hi.json +7 -3
  129. package/dist/locales/it.json +7 -3
  130. package/dist/locales/ja.json +7 -3
  131. package/dist/locales/nl.json +7 -3
  132. package/dist/locales/pl.json +7 -3
  133. package/dist/locales/pt.json +7 -3
  134. package/dist/locales/ro.json +7 -3
  135. package/dist/locales/ru.json +7 -3
  136. package/dist/locales/sq.json +7 -3
  137. package/dist/locales/sv.json +7 -3
  138. package/dist/locales/tr.json +7 -3
  139. package/dist/locales/zh.json +7 -3
  140. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  141. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +8 -6
  142. package/dist/patterns/patient-shell/index.js +1 -1
  143. package/dist/tokens.css +1 -1
  144. package/package.json +1 -1
  145. package/dist/_chunks/agenda-tray-DQayYmQ0.js +0 -165
  146. package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +0 -280
  147. package/dist/_chunks/circle-arrow-up-CC_85SuH.js +0 -16
  148. package/dist/_chunks/dropdown-menu-CUEXqKis.js +0 -299
  149. package/dist/_chunks/marketplace-app-shell-UKSLx9K_.js +0 -428
  150. package/dist/_chunks/patient-shell-DUmhXnFq.js +0 -174
  151. package/dist/_chunks/task-tray-B8jFv5FV.js +0 -196
  152. package/dist/_chunks/use-theme-C2dHKUAN.js +0 -145
@@ -1,299 +0,0 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { forwardRef as d, useContext as O, useRef as G, useEffect as P, useMemo as L, createContext as A } from "react";
3
- import * as n from "@radix-ui/react-dropdown-menu";
4
- import { c as h } from "./index-D2ZczOXr.js";
5
- import { S as E } from "./separator-CYU_bGFn.js";
6
- import { K as g } from "./kbd-D855ZXIW.js";
7
- import { u as K } from "./use-controllable-state-BiY4xTzM.js";
8
- import { C as V } from "./chevron-right-BrpYejk0.js";
9
- import { C as x } from "./check-DPdL_Sm7.js";
10
- import { a as B } from "./use-direction-Dp8h70PP.js";
11
- import { u as H } from "./registry-nPAVE19X.js";
12
- const q = {
13
- id: "dropdown-menu",
14
- capabilities: ["open", "close", "pick"],
15
- state: {
16
- isOpen: {
17
- type: "boolean",
18
- description: "True when the menu is currently open.",
19
- read: (s) => s.getIsOpen()
20
- }
21
- },
22
- actions: {
23
- open: {
24
- safety: "read",
25
- description: "Open the menu.",
26
- invoke: (s) => {
27
- s.open();
28
- }
29
- },
30
- close: {
31
- safety: "read",
32
- description: "Close the menu.",
33
- invoke: (s) => {
34
- s.close();
35
- }
36
- }
37
- },
38
- domHooks: {
39
- root: { attr: "data-component", value: "dropdown-menu" },
40
- instanceId: {
41
- attr: "data-component-id",
42
- sourceProp: "id",
43
- description: "Sourced from the id prop on DropdownMenu.Root."
44
- },
45
- item: {
46
- attr: "data-item-id",
47
- description: "Each menu item emits its value as data-item-id."
48
- }
49
- }
50
- }, b = h(
51
- [
52
- "ds:z-[var(--z-dropdown)]",
53
- "ds:min-w-[8rem]",
54
- "ds:rounded-[var(--radius-md)]",
55
- // Border kept (transparent) so the forced-colors override below can
56
- // repaint a visible edge in HCM. In normal modes the soft drop-shadow
57
- // carries the edge cue; the heavy `--border` (grey-800 since WCAG
58
- // 1.4.11 bump in 67fef8c) made the menu read as a charcoal box.
59
- "ds:border ds:border-transparent",
60
- "ds:bg-[var(--popover)] ds:text-[color:var(--popover-foreground)]",
61
- "ds:shadow-[var(--shadow-lg)]",
62
- "ds:p-[var(--spacing-xs)]",
63
- // Motion — gated on --animation-duration via Tailwind's animate-in
64
- // preset. motion-reduce disables via the no-preference query.
65
- "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
66
- "ds:data-[state=open]:fade-in ds:data-[state=closed]:fade-out",
67
- "ds:data-[state=open]:zoom-in-95 ds:data-[state=closed]:zoom-out-95",
68
- "ds:motion-reduce:animate-none",
69
- "ds:forced-colors:border-[CanvasText]"
70
- ].join(" ")
71
- ), p = h(
72
- [
73
- "ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
74
- "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
75
- "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
76
- "ds:rounded-[var(--radius-sm)]",
77
- "ds:min-h-[var(--min-target-size)]",
78
- "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--foreground)]",
79
- "ds:cursor-pointer ds:select-none ds:outline-none",
80
- // Highlighted + hover state
81
- "ds:data-[highlighted]:bg-[color:var(--muted)]/40",
82
- "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
83
- "ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
84
- "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
85
- "ds:forced-colors:focus-visible:outline-[CanvasText]",
86
- // Disabled
87
- "ds:data-[disabled]:opacity-50 ds:data-[disabled]:cursor-not-allowed",
88
- "ds:data-[disabled]:pointer-events-none"
89
- ].join(" ")
90
- ), F = h(
91
- [
92
- "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
93
- "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
94
- "type-eyebrow ds:text-[color:var(--muted-foreground)]",
95
- "ds:select-none"
96
- ].join(" ")
97
- ), N = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", w = A(void 0), C = ({
98
- dir: s,
99
- id: a,
100
- open: o,
101
- defaultOpen: t,
102
- onOpenChange: r,
103
- ...m
104
- }) => {
105
- const u = B(), [f, c] = K({
106
- value: o,
107
- defaultValue: t ?? !1,
108
- onChange: r
109
- }), l = f ?? !1, v = G(l);
110
- P(() => {
111
- v.current = l;
112
- }, [l]);
113
- const T = L(
114
- () => ({
115
- getIsOpen: () => v.current,
116
- open: () => c(!0),
117
- close: () => c(!1)
118
- }),
119
- [c]
120
- );
121
- return H(q, T, a), /* @__PURE__ */ e(w.Provider, { value: a, children: /* @__PURE__ */ e(
122
- n.Root,
123
- {
124
- dir: s ?? u,
125
- open: l,
126
- onOpenChange: c,
127
- ...m
128
- }
129
- ) });
130
- };
131
- C.displayName = "DropdownMenu.Root";
132
- const J = n.Trigger, Q = n.Portal, U = n.Group, W = n.RadioGroup, y = d(({ className: s, sideOffset: a = 8, ...o }, t) => {
133
- const r = O(w);
134
- return /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
135
- n.Content,
136
- {
137
- ref: t,
138
- sideOffset: a,
139
- className: b({ className: s }),
140
- "data-component": "dropdown-menu",
141
- "data-component-id": r,
142
- ...o
143
- }
144
- ) });
145
- });
146
- y.displayName = "DropdownMenu.Content";
147
- const R = d(
148
- ({
149
- className: s,
150
- startIcon: a,
151
- endIcon: o,
152
- description: t,
153
- shortcut: r,
154
- children: m,
155
- ...u
156
- }, f) => /* @__PURE__ */ i(
157
- n.Item,
158
- {
159
- ref: f,
160
- className: p({ className: s }),
161
- ...u,
162
- children: [
163
- a ? /* @__PURE__ */ e(
164
- "span",
165
- {
166
- "aria-hidden": "true",
167
- className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
168
- children: a
169
- }
170
- ) : null,
171
- /* @__PURE__ */ i("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
172
- /* @__PURE__ */ e("span", { className: "ds:truncate", children: m }),
173
- t ? /* @__PURE__ */ e("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: t }) : null
174
- ] }),
175
- r ? /* @__PURE__ */ e("span", { className: "ds:ms-auto", children: /* @__PURE__ */ e(g, { keys: r, size: "sm" }) }) : o ? /* @__PURE__ */ e(
176
- "span",
177
- {
178
- "aria-hidden": "true",
179
- className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
180
- children: o
181
- }
182
- ) : null
183
- ]
184
- }
185
- )
186
- );
187
- R.displayName = "DropdownMenu.Item";
188
- const S = d(({ className: s, children: a, ...o }, t) => /* @__PURE__ */ i(
189
- n.CheckboxItem,
190
- {
191
- ref: t,
192
- className: p({ className: s }),
193
- ...o,
194
- children: [
195
- /* @__PURE__ */ e("span", { className: N, children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(x, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
196
- /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:truncate", children: a })
197
- ]
198
- }
199
- ));
200
- S.displayName = "DropdownMenu.CheckboxItem";
201
- const X = W, D = d(({ className: s, children: a, ...o }, t) => /* @__PURE__ */ i(
202
- n.RadioItem,
203
- {
204
- ref: t,
205
- className: p({ className: s }),
206
- ...o,
207
- children: [
208
- /* @__PURE__ */ e("span", { className: N, children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(
209
- x,
210
- {
211
- "aria-hidden": !0,
212
- className: "ds:size-4 ds:text-[color:var(--accent)]"
213
- }
214
- ) }) }),
215
- /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:truncate", children: a })
216
- ]
217
- }
218
- ));
219
- D.displayName = "DropdownMenu.RadioItem";
220
- const M = d(({ className: s, ...a }, o) => /* @__PURE__ */ e(
221
- n.Label,
222
- {
223
- ref: o,
224
- className: F({ className: s }),
225
- ...a
226
- }
227
- ));
228
- M.displayName = "DropdownMenu.Label";
229
- const z = d(({ className: s, ...a }, o) => /* @__PURE__ */ e(n.Separator, { ref: o, asChild: !0, ...a, children: /* @__PURE__ */ e(
230
- E,
231
- {
232
- className: ["ds:my-[calc(var(--spacing-xs)/2)]", s ?? ""].filter(Boolean).join(" ")
233
- }
234
- ) }));
235
- z.displayName = "DropdownMenu.Separator";
236
- const I = d(
237
- ({ keys: s, separator: a = "none" }, o) => /* @__PURE__ */ e("span", { ref: o, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ e(g, { keys: s, separator: a, size: "sm" }) })
238
- );
239
- I.displayName = "DropdownMenu.Shortcut";
240
- const Y = n.Sub, k = d(({ className: s, startIcon: a, children: o, ...t }, r) => /* @__PURE__ */ i(
241
- n.SubTrigger,
242
- {
243
- ref: r,
244
- className: p({ className: s }),
245
- ...t,
246
- children: [
247
- a ? /* @__PURE__ */ e(
248
- "span",
249
- {
250
- "aria-hidden": "true",
251
- className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
252
- children: a
253
- }
254
- ) : null,
255
- /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:truncate", children: o }),
256
- /* @__PURE__ */ e(
257
- V,
258
- {
259
- "aria-hidden": !0,
260
- className: "ds:ms-auto ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
261
- }
262
- )
263
- ]
264
- }
265
- ));
266
- k.displayName = "DropdownMenu.SubTrigger";
267
- const j = d(({ className: s, ...a }, o) => /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
268
- n.SubContent,
269
- {
270
- ref: o,
271
- sideOffset: 8,
272
- "data-component": "dropdown-menu-sub-content",
273
- className: b({ className: s }),
274
- ...a
275
- }
276
- ) }));
277
- j.displayName = "DropdownMenu.SubContent";
278
- const re = {
279
- Root: C,
280
- Trigger: J,
281
- Portal: Q,
282
- Content: y,
283
- Group: U,
284
- Item: R,
285
- CheckboxItem: S,
286
- RadioGroup: X,
287
- RadioItem: D,
288
- Label: M,
289
- Separator: z,
290
- Shortcut: I,
291
- Sub: Y,
292
- SubTrigger: k,
293
- SubContent: j
294
- };
295
- export {
296
- re as D,
297
- q as d
298
- };
299
- //# sourceMappingURL=dropdown-menu-CUEXqKis.js.map