@alfadocs/ui-kit 0.23.0 → 0.24.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 (69) hide show
  1. package/dist/_chunks/{autocomplete-BxfabhZ8.js → autocomplete-C7xq06bP.js} +40 -40
  2. package/dist/_chunks/editable-currency-cell-renderer-DJB5MxAI.js +2349 -0
  3. package/dist/_chunks/locale-picker-CYBhgSHR.js +575 -0
  4. package/dist/_chunks/{patient-shell-DavGODt9.js → patient-shell-B164drIa.js} +40 -55
  5. package/dist/_chunks/settings-ca2Yi9R8.js +21 -0
  6. package/dist/_chunks/sun-Eweh5fvi.js +50 -0
  7. package/dist/_chunks/{theme-toggle-BswYl0Yp.js → theme-toggle-FrotC2VI.js} +85 -127
  8. package/dist/_chunks/use-locale-BkCIHujH.js +20 -0
  9. package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +55 -0
  10. package/dist/_chunks/{whatsapp-button-CtlLwM3M.js → whatsapp-button-DUjlWGKf.js} +26 -25
  11. package/dist/agent-catalog.json +59 -1
  12. package/dist/components/autocomplete/index.js +1 -1
  13. package/dist/components/data-table/filters/number-filter.d.ts +56 -0
  14. package/dist/components/data-table/filters/text-filter.d.ts +49 -0
  15. package/dist/components/data-table/index.d.ts +4 -0
  16. package/dist/components/data-table/index.js +25 -21
  17. package/dist/components/header-settings/index.js +205 -0
  18. package/dist/components/locale-picker/index.js +7 -0
  19. package/dist/components/theme-toggle/index.js +1 -1
  20. package/dist/components/whatsapp-button/index.js +1 -1
  21. package/dist/components/whatsapp-button/whatsapp-button.d.ts +14 -1
  22. package/dist/fonts/Lexend-VF-latin-ext.woff2 +0 -0
  23. package/dist/fonts/Lexend-VF-latin.woff2 +0 -0
  24. package/dist/fonts/Lexend-VF-vietnamese.woff2 +0 -0
  25. package/dist/fonts/NotoSansArabic-VF-arabic.woff2 +0 -0
  26. package/dist/fonts/NotoSansDevanagari-VF-devanagari.woff2 +0 -0
  27. package/dist/hooks/index.js +29 -28
  28. package/dist/i18n/config.js +2726 -134
  29. package/dist/i18n/locales/ar.d.ts +147 -3
  30. package/dist/i18n/locales/de.d.ts +147 -3
  31. package/dist/i18n/locales/el.d.ts +147 -3
  32. package/dist/i18n/locales/es.d.ts +147 -3
  33. package/dist/i18n/locales/fr.d.ts +147 -3
  34. package/dist/i18n/locales/hi.d.ts +147 -3
  35. package/dist/i18n/locales/ja.d.ts +147 -3
  36. package/dist/i18n/locales/nl.d.ts +147 -3
  37. package/dist/i18n/locales/pl.d.ts +149 -5
  38. package/dist/i18n/locales/pt.d.ts +147 -3
  39. package/dist/i18n/locales/ro.d.ts +147 -3
  40. package/dist/i18n/locales/ru.d.ts +148 -4
  41. package/dist/i18n/locales/sq.d.ts +147 -3
  42. package/dist/i18n/locales/sv.d.ts +147 -3
  43. package/dist/i18n/locales/tr.d.ts +147 -3
  44. package/dist/i18n/locales/zh.d.ts +147 -3
  45. package/dist/i18n/resources.d.ts +294 -6
  46. package/dist/index.js +512 -507
  47. package/dist/locales/ar.json +149 -5
  48. package/dist/locales/de.json +149 -5
  49. package/dist/locales/el.json +149 -5
  50. package/dist/locales/en.json +147 -3
  51. package/dist/locales/es.json +149 -5
  52. package/dist/locales/fr.json +149 -5
  53. package/dist/locales/hi.json +149 -5
  54. package/dist/locales/it.json +147 -3
  55. package/dist/locales/ja.json +149 -5
  56. package/dist/locales/nl.json +149 -5
  57. package/dist/locales/pl.json +151 -7
  58. package/dist/locales/pt.json +149 -5
  59. package/dist/locales/ro.json +149 -5
  60. package/dist/locales/ru.json +150 -6
  61. package/dist/locales/sq.json +149 -5
  62. package/dist/locales/sv.json +149 -5
  63. package/dist/locales/tr.json +149 -5
  64. package/dist/locales/zh.json +149 -5
  65. package/dist/patterns/patient-shell/index.js +1 -1
  66. package/dist/tokens.css +2 -2
  67. package/package.json +10 -1
  68. package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +0 -1972
  69. package/dist/_chunks/use-locale-C5rS3Xon.js +0 -71
@@ -22,10 +22,23 @@ export interface WhatsAppButtonProps extends Omit<AnchorHTMLAttributes<HTMLAncho
22
22
  message?: string;
23
23
  /**
24
24
  * Override the visible / accessible label. Defaults to
25
- * `t('whatsApp.label')` for the pill variant and
25
+ * `t('whatsApp.label')` (or `t('whatsApp.questionPrompt')` when
26
+ * `tone="question"`) for the pill variant, and
26
27
  * `t('whatsApp.fabLabel')` for the FAB.
27
28
  */
28
29
  label?: ReactNode;
30
+ /**
31
+ * Copy tone for the pill variant.
32
+ * - `standard` (default) — brief "Chat on WhatsApp" affordance.
33
+ * - `question` — invitational "Have questions? Chat on WhatsApp"
34
+ * copy. Routes through `t('whatsApp.questionPrompt')`. Use on
35
+ * public-facing surfaces (booking pages, marketing) where the
36
+ * button is the only prompt encouraging engagement.
37
+ *
38
+ * Ignored for `variant="fab"` — the floating action button is
39
+ * glyph-only and its `aria-label` stays concise via `fabLabel`.
40
+ */
41
+ tone?: 'standard' | 'question';
29
42
  }
30
43
  export declare const WhatsAppButton: import("react").ForwardRefExoticComponent<WhatsAppButtonProps & import("react").RefAttributes<HTMLAnchorElement>>;
31
44
  export {};
Binary file
@@ -1,15 +1,16 @@
1
1
  import { u as D } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
- import { u as w, a as _, b as k } from "../_chunks/use-locale-C5rS3Xon.js";
3
- import { u as g } from "../_chunks/use-count-up-BLLetaZ8.js";
4
- import { A as M, T as O, a as H, r as R, t as Y, u as q } from "../_chunks/use-theme-B1cwAXJR.js";
5
- import { u as G } from "../_chunks/use-controllable-state-BiY4xTzM.js";
6
- import { u as U } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
7
- import { u as j } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
8
- import { useState as p, useEffect as l, useRef as T, useLayoutEffect as x } from "react";
9
- import { u as z, a as J } from "../_chunks/use-direction-D6rvvG9G.js";
10
- import { u as W } from "../_chunks/use-persistent-state-i23OWy6G.js";
2
+ import { u as w, a as _ } from "../_chunks/use-scroll-to-first-error-BrK7dKB_.js";
3
+ import { u as I } from "../_chunks/use-count-up-BLLetaZ8.js";
4
+ import { u as K } from "../_chunks/use-locale-BkCIHujH.js";
5
+ import { A as O, T as H, a as R, r as Y, t as q, u as B } from "../_chunks/use-theme-B1cwAXJR.js";
6
+ import { u as P } from "../_chunks/use-controllable-state-BiY4xTzM.js";
7
+ import { u as V } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
8
+ import { u as Q } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
9
+ import { useState as b, useEffect as l, useRef as T, useLayoutEffect as x } from "react";
10
+ import { u as J, a as N } from "../_chunks/use-direction-D6rvvG9G.js";
11
+ import { u as X } from "../_chunks/use-persistent-state-i23OWy6G.js";
11
12
  function S(e, t) {
12
- const [o, s] = p(e);
13
+ const [o, s] = b(e);
13
14
  return l(() => {
14
15
  if (t <= 0) {
15
16
  s(e);
@@ -62,8 +63,8 @@ function C(e, t = {}) {
62
63
  r.preventDefault();
63
64
  return;
64
65
  }
65
- const m = c[0], b = c[c.length - 1], i = document.activeElement;
66
- r.shiftKey ? (i === m || !n.contains(i)) && (r.preventDefault(), b.focus()) : (i === b || !n.contains(i)) && (r.preventDefault(), m.focus());
66
+ const m = c[0], p = c[c.length - 1], i = document.activeElement;
67
+ r.shiftKey ? (i === m || !n.contains(i)) && (r.preventDefault(), p.focus()) : (i === p || !n.contains(i)) && (r.preventDefault(), m.focus());
67
68
  }
68
69
  return u.addEventListener("keydown", d), () => {
69
70
  if (u.removeEventListener("keydown", d), a && f.current) {
@@ -77,25 +78,25 @@ function C(e, t = {}) {
77
78
  }
78
79
  const L = typeof window < "u" ? x : l;
79
80
  export {
80
- M as ACCESSIBILITY_STORAGE_KEY,
81
- O as THEME_CLASS,
82
- H as THEME_STORAGE_KEY,
83
- R as resolveTheme,
84
- Y as themeClassList,
85
- G as useControllableState,
86
- U as useCopyToClipboard,
87
- g as useCountUp,
88
- j as useDebouncedCallback,
81
+ O as ACCESSIBILITY_STORAGE_KEY,
82
+ H as THEME_CLASS,
83
+ R as THEME_STORAGE_KEY,
84
+ Y as resolveTheme,
85
+ q as themeClassList,
86
+ P as useControllableState,
87
+ V as useCopyToClipboard,
88
+ I as useCountUp,
89
+ Q as useDebouncedCallback,
89
90
  S as useDebouncedValue,
90
- z as useDirection,
91
- J as useDocumentDirection,
91
+ J as useDirection,
92
+ N as useDocumentDirection,
92
93
  C as useFocusTrap,
93
94
  L as useIsomorphicLayoutEffect,
94
- w as useLocale,
95
- _ as useMediaQuery,
96
- W as usePersistentState,
95
+ K as useLocale,
96
+ w as useMediaQuery,
97
+ X as usePersistentState,
97
98
  D as usePrefersReducedMotion,
98
- k as useScrollToFirstError,
99
- q as useTheme
99
+ _ as useScrollToFirstError,
100
+ B as useTheme
100
101
  };
101
102
  //# sourceMappingURL=index.js.map