@alfadocs/ui-kit 0.17.0 → 0.17.2

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 (105) hide show
  1. package/dist/_chunks/{accordion-DOmxGEWU.js → accordion-CNcodXuO.js} +6 -6
  2. package/dist/_chunks/{ai-prompt-input-DEiQwIMn.js → ai-prompt-input-B-w5Rx3V.js} +184 -181
  3. package/dist/_chunks/{alert-pgdXrEO5.js → alert-DBnawbmf.js} +64 -59
  4. package/dist/_chunks/{audio-recorder-CRh4uyFL.js → audio-recorder-DNkQLW1G.js} +3 -3
  5. package/dist/_chunks/{autocomplete-mOg7WLOh.js → autocomplete-BxfabhZ8.js} +167 -164
  6. package/dist/_chunks/{balance-cell-renderer-DWWtX-VM.js → balance-cell-renderer-DJB6WDPe.js} +2 -2
  7. package/dist/_chunks/{carousel.agent-OTn-kMQg.js → carousel.agent-Xuw9LPZN.js} +14 -7
  8. package/dist/_chunks/{chat-input-UK-bXU7u.js → chat-input-B3XmFGDw.js} +123 -122
  9. package/dist/_chunks/checkbox-group-Bwmt1ovQ.js +213 -0
  10. package/dist/_chunks/{checkbox-D5EHnB14.js → checkbox-mwbrPZDY.js} +75 -70
  11. package/dist/_chunks/{collapsible-CuxUBoHJ.js → collapsible-hHiyZp0b.js} +61 -63
  12. package/dist/_chunks/{color-picker-BPfcByHH.js → color-picker-Bm-gzpsh.js} +2 -2
  13. package/dist/_chunks/{combobox-D5tWe0t_.js → combobox-Da9eq00i.js} +214 -211
  14. package/dist/_chunks/{copy-field-BCHAZ8QV.js → copy-field-BAF4mt9h.js} +95 -132
  15. package/dist/_chunks/{date-picker-BlhtBhPo.js → date-picker-BIoSLRly.js} +222 -219
  16. package/dist/_chunks/{date-range-picker-C2hRu_Ke.js → date-range-picker-9gANFNG9.js} +81 -78
  17. package/dist/_chunks/{date-time-picker-B67mPZmP.js → date-time-picker-DG7BiGdb.js} +98 -95
  18. package/dist/_chunks/{dialog-DRp6Dejy.js → dialog-DUomPCRS.js} +69 -71
  19. package/dist/_chunks/{dropdown-menu-dyV7gHh_.js → dropdown-menu-DZxwF23X.js} +108 -110
  20. package/dist/_chunks/{freemium-paywall-BTEiVkes.js → freemium-paywall-DXc7XlGE.js} +98 -97
  21. package/dist/_chunks/{leo-sidebar-D3TuyH5_.js → leo-sidebar-DIsiTju3.js} +2 -2
  22. package/dist/_chunks/{list-DcjV0m5B.js → list-BdvDctBz.js} +184 -180
  23. package/dist/_chunks/{message-tray-Fsend-du.js → message-tray-BNAS8al4.js} +111 -111
  24. package/dist/_chunks/{multi-select-DooDzQIp.js → multi-select-CyspR5ZF.js} +157 -154
  25. package/dist/_chunks/{navigation-menu-DdufF-_4.js → navigation-menu-CyS1fBJ7.js} +85 -87
  26. package/dist/_chunks/{notification-tray-C3dYdLAF.js → notification-tray-D_69dXFY.js} +114 -114
  27. package/dist/_chunks/{number-input-DH00o0DN.js → number-input-BZXu6bPY.js} +92 -89
  28. package/dist/_chunks/{otp-input-BBXYvLx5.js → otp-input-BDF_iNpa.js} +92 -93
  29. package/dist/_chunks/{pagination-F1ei4khE.js → pagination-BWaXF7W0.js} +194 -211
  30. package/dist/_chunks/{patient-shell-BE0CdPOJ.js → patient-shell-BOOaWZA9.js} +3 -3
  31. package/dist/_chunks/{payment-form-CI77oIx1.js → payment-form-BjkuQeqR.js} +2 -2
  32. package/dist/_chunks/{pdf-viewer-CnEJvmXC.js → pdf-viewer-BG_nsFT5.js} +2 -2
  33. package/dist/_chunks/{public-header.agent-sDi9N9su.js → public-header.agent-BIBQzkeV.js} +7 -12
  34. package/dist/_chunks/{radio-group-Cz1a4QCA.js → radio-group-BHZOxrIK.js} +4 -4
  35. package/dist/_chunks/{select-Ca6ibiDL.js → select-C92AT_OZ.js} +7 -7
  36. package/dist/_chunks/{sidebar-D8Lq065m.js → sidebar-BqzlRBvC.js} +271 -291
  37. package/dist/_chunks/{slider-CkR6CLun.js → slider-CfEzeseL.js} +4 -4
  38. package/dist/_chunks/{tabs-CRCyPpJo.js → tabs-aEQfQV3x.js} +8 -8
  39. package/dist/_chunks/{theme-toggle-B3meAb3y.js → theme-toggle-BswYl0Yp.js} +2 -2
  40. package/dist/_chunks/use-controllable-state-BiY4xTzM.js +23 -0
  41. package/dist/_chunks/use-copy-to-clipboard-Cyfc_dlv.js +43 -0
  42. package/dist/_chunks/use-persistent-state-i23OWy6G.js +24 -0
  43. package/dist/_chunks/{warning-stack-CeRihME9.js → warning-stack-CDH9TudY.js} +2 -2
  44. package/dist/_chunks/{workflow-map-D3MvrsZV.js → workflow-map-BeKe23uw.js} +3 -3
  45. package/dist/agent-catalog.json +1 -1
  46. package/dist/components/_shared/use-debounced-callback.d.ts +1 -5
  47. package/dist/components/_shared/use-direction.d.ts +1 -18
  48. package/dist/components/_shared/use-focus-trap.d.ts +1 -31
  49. package/dist/components/accordion/index.js +1 -1
  50. package/dist/components/ai-prompt-input/index.js +1 -1
  51. package/dist/components/alert/index.js +1 -1
  52. package/dist/components/audio-recorder/index.js +1 -1
  53. package/dist/components/autocomplete/index.js +1 -1
  54. package/dist/components/carousel/index.js +1 -1
  55. package/dist/components/chat-input/index.js +1 -1
  56. package/dist/components/checkbox/index.js +1 -1
  57. package/dist/components/checkbox-group/index.js +1 -1
  58. package/dist/components/collapsible/index.js +1 -1
  59. package/dist/components/color-picker/index.js +1 -1
  60. package/dist/components/combobox/index.js +1 -1
  61. package/dist/components/command-palette/command-palette.d.ts +1 -1
  62. package/dist/components/copy-field/index.js +1 -1
  63. package/dist/components/data-table/index.js +1 -1
  64. package/dist/components/date-picker/index.js +1 -1
  65. package/dist/components/date-range-picker/index.js +1 -1
  66. package/dist/components/date-time-picker/index.js +1 -1
  67. package/dist/components/dialog/index.js +1 -1
  68. package/dist/components/dropdown-menu/index.js +1 -1
  69. package/dist/components/freemium-paywall/index.js +1 -1
  70. package/dist/components/icon-button-group/icon-button-group.d.ts +14 -14
  71. package/dist/components/list/index.js +1 -1
  72. package/dist/components/message-tray/index.js +1 -1
  73. package/dist/components/multi-select/index.js +1 -1
  74. package/dist/components/navigation-menu/index.js +1 -1
  75. package/dist/components/notification-tray/index.js +1 -1
  76. package/dist/components/number-input/index.js +1 -1
  77. package/dist/components/otp-input/index.js +1 -1
  78. package/dist/components/pagination/index.js +1 -1
  79. package/dist/components/payment-form/index.js +1 -1
  80. package/dist/components/pdf-viewer/index.js +1 -1
  81. package/dist/components/public-header/index.js +1 -1
  82. package/dist/components/public-header/public-header.d.ts +1 -1
  83. package/dist/components/radio-group/index.js +1 -1
  84. package/dist/components/select/index.js +1 -1
  85. package/dist/components/sidebar/index.js +8 -7
  86. package/dist/components/sidebar/sidebar.d.ts +1 -1
  87. package/dist/components/slider/index.js +1 -1
  88. package/dist/components/tabs/index.js +1 -1
  89. package/dist/components/theme-toggle/index.js +1 -1
  90. package/dist/components/warning-stack/index.js +1 -1
  91. package/dist/components/workflow/index.js +1 -1
  92. package/dist/hooks/index.d.ts +8 -0
  93. package/dist/hooks/index.js +98 -15
  94. package/dist/hooks/use-debounced-callback.d.ts +19 -0
  95. package/dist/hooks/use-debounced-value.d.ts +16 -0
  96. package/dist/hooks/use-direction.d.ts +19 -0
  97. package/dist/hooks/use-focus-trap.d.ts +32 -0
  98. package/dist/hooks/use-isomorphic-layout-effect.d.ts +13 -0
  99. package/dist/hooks/use-persistent-state.d.ts +16 -0
  100. package/dist/index.js +493 -492
  101. package/dist/patterns/leo-assistant/index.js +1 -1
  102. package/dist/patterns/patient-shell/index.js +1 -1
  103. package/dist/tokens.css +1 -1
  104. package/package.json +4 -2
  105. package/dist/_chunks/checkbox-group-Qkm3Rg1S.js +0 -208
@@ -6,7 +6,7 @@ import { useTranslation as pe } from "react-i18next";
6
6
  import * as ee from "@radix-ui/react-popover";
7
7
  import Me from "pdfjs-dist/build/pdf.worker.min.mjs?url";
8
8
  import { S as Le } from "./spinner-DirtWZNG.js";
9
- import { A as we } from "./alert-pgdXrEO5.js";
9
+ import { A as we } from "./alert-DBnawbmf.js";
10
10
  import { u as Ze } from "./registry-C9nwlNyL.js";
11
11
  import { X as Be } from "./x-CCcI3eJp.js";
12
12
  import { C as Ke } from "./chevron-left-CX1jqD2M.js";
@@ -917,4 +917,4 @@ export {
917
917
  nt as P,
918
918
  Xe as p
919
919
  };
920
- //# sourceMappingURL=pdf-viewer-CnEJvmXC.js.map
920
+ //# sourceMappingURL=pdf-viewer-BG_nsFT5.js.map
@@ -17,15 +17,10 @@ const g = Z("desktop"), ns = C(
17
17
  {
18
18
  variants: {
19
19
  variant: {
20
- default: [
21
- "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
22
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:sm:ps-[var(--spacing-lg)] ds:sm:pe-[var(--spacing-lg)]",
23
- "ds:h-14 ds:md:h-16",
24
- "ds:bg-[var(--card)] ds:text-[var(--foreground)] ds:border-b ds:border-[color:var(--border)]"
25
- ].join(" "),
26
- // Transparent fades to default once data-stuck="true" (set by the
27
- // rAF scroll listener). The fade is handled via the same
28
- // background utility so `data-stuck` swaps cleanly between states.
20
+ // Transparent fades to a solid pill chrome once data-stuck="true"
21
+ // (set by the rAF scroll listener). The fade is handled via the
22
+ // same background utility so `data-stuck` swaps cleanly between
23
+ // states.
29
24
  transparent: [
30
25
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
31
26
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:sm:ps-[var(--spacing-lg)] ds:sm:pe-[var(--spacing-lg)]",
@@ -69,7 +64,7 @@ const g = Z("desktop"), ns = C(
69
64
  ].join(" ")
70
65
  }
71
66
  },
72
- defaultVariants: { variant: "default", sticky: "none" }
67
+ defaultVariants: { variant: "pill", sticky: "none" }
73
68
  }
74
69
  ), rs = [
75
70
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
@@ -294,7 +289,7 @@ const E = h(
294
289
  homeLabel: d,
295
290
  navSlot: a,
296
291
  actionsSlot: i,
297
- variant: r = "default",
292
+ variant: r = "pill",
298
293
  sticky: o = "none",
299
294
  stickyOffset: c = 80,
300
295
  menuLabel: p,
@@ -559,4 +554,4 @@ export {
559
554
  Cs as P,
560
555
  js as p
561
556
  };
562
- //# sourceMappingURL=public-header.agent-sDi9N9su.js.map
557
+ //# sourceMappingURL=public-header.agent-BIBQzkeV.js.map
@@ -3,8 +3,8 @@ import { forwardRef as D, useId as T, useMemo as I, useRef as k, useState as q }
3
3
  import * as E from "@radix-ui/react-radio-group";
4
4
  import { c as F } from "./index-D2ZczOXr.js";
5
5
  import { a as z } from "./radio-DvF59ThA.js";
6
- import { u as J } from "./use-direction-D6rvvG9G.js";
7
- import { c as L } from "./compose-refs-C0k0tdqF.js";
6
+ import { c as J } from "./compose-refs-C0k0tdqF.js";
7
+ import { u as L } from "./use-direction-D6rvvG9G.js";
8
8
  import { u as O } from "./registry-C9nwlNyL.js";
9
9
  import { C as Q } from "./circle-alert-ChA9opNA.js";
10
10
  const U = {
@@ -86,7 +86,7 @@ const U = {
86
86
  /* @__PURE__ */ e("span", { children: s })
87
87
  ]
88
88
  }
89
- ) : null, y = k(null), $ = L(B, y), H = J(y), r = p !== void 0, [K, M] = q(
89
+ ) : null, y = k(null), $ = J(B, y), H = L(y), r = p !== void 0, [K, M] = q(
90
90
  m ?? ""
91
91
  ), N = r ? p ?? "" : K, b = k(N);
92
92
  b.current = N;
@@ -149,4 +149,4 @@ X.displayName = "RadioGroup";
149
149
  export {
150
150
  X as R
151
151
  };
152
- //# sourceMappingURL=radio-group-Cz1a4QCA.js.map
152
+ //# sourceMappingURL=radio-group-BHZOxrIK.js.map
@@ -5,10 +5,10 @@ import { c as z } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as ge } from "react-i18next";
6
6
  import { u as he, F as ve } from "./form-field-context-B3APVHKx.js";
7
7
  import { g as be } from "./group-options-BvKhQ3xb.js";
8
- import { u as ye } from "./use-direction-D6rvvG9G.js";
9
- import { C as Se } from "./chevron-up-zOEDrmBB.js";
8
+ import { C as ye } from "./chevron-up-zOEDrmBB.js";
10
9
  import { C as q } from "./chevron-down-BX_NP2Yh.js";
11
- import { C as xe } from "./check-DPdL_Sm7.js";
10
+ import { C as Se } from "./check-DPdL_Sm7.js";
11
+ import { u as xe } from "./use-direction-D6rvvG9G.js";
12
12
  import { u as Ne } from "./registry-C9nwlNyL.js";
13
13
  import { X as Ce } from "./x-CCcI3eJp.js";
14
14
  const we = {
@@ -194,7 +194,7 @@ const I = a(
194
194
  className: ze({ className: e }),
195
195
  ...c,
196
196
  children: [
197
- /* @__PURE__ */ t(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(Se, { "aria-hidden": "true", className: "ds:size-4" }) }),
197
+ /* @__PURE__ */ t(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(ye, { "aria-hidden": "true", className: "ds:size-4" }) }),
198
198
  s,
199
199
  /* @__PURE__ */ t(o.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(q, { "aria-hidden": "true", className: "ds:size-4" }) })
200
200
  ]
@@ -225,7 +225,7 @@ const V = a(({ size: e = "md", className: s, children: n, ...r }, l) => {
225
225
  {
226
226
  className: `ds:absolute ${c} ds:inline-flex ds:items-center ds:justify-center`,
227
227
  "aria-hidden": "true",
228
- children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(xe, { className: g }) })
228
+ children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(Se, { className: g }) })
229
229
  }
230
230
  ),
231
231
  /* @__PURE__ */ t(o.ItemText, { children: n })
@@ -276,7 +276,7 @@ const _ = a(function({
276
276
  n ?? r ?? ""
277
277
  ), m = n !== void 0, h = m ? n : ee, [N, C] = P(!1), B = G(h);
278
278
  B.current = h;
279
- const te = S ?? (p ? u.id : void 0), O = (p ? u.disabled : !1) || !!E, se = (p ? u.required : !1) || !!X, D = p ? u.invalid : !1, oe = D ? "error" : Q, ne = p && u.describedBy ? u.describedBy : void 0, w = G(null), de = Te(Z, w), ie = ye(w), i = l, ae = (d) => {
279
+ const te = S ?? (p ? u.id : void 0), O = (p ? u.disabled : !1) || !!E, se = (p ? u.required : !1) || !!X, D = p ? u.invalid : !1, oe = D ? "error" : Q, ne = p && u.describedBy ? u.describedBy : void 0, w = G(null), de = Te(Z, w), ie = xe(w), i = l, ae = (d) => {
280
280
  m || b(d), i == null || i(d);
281
281
  }, re = (d) => {
282
282
  var y;
@@ -410,4 +410,4 @@ export {
410
410
  H as i,
411
411
  j
412
412
  };
413
- //# sourceMappingURL=select-Ca6ibiDL.js.map
413
+ //# sourceMappingURL=select-C92AT_OZ.js.map