@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.
- package/dist/_chunks/{autocomplete-BxfabhZ8.js → autocomplete-C7xq06bP.js} +40 -40
- package/dist/_chunks/editable-currency-cell-renderer-DJB5MxAI.js +2349 -0
- package/dist/_chunks/locale-picker-CYBhgSHR.js +575 -0
- package/dist/_chunks/{patient-shell-DavGODt9.js → patient-shell-B164drIa.js} +40 -55
- package/dist/_chunks/settings-ca2Yi9R8.js +21 -0
- package/dist/_chunks/sun-Eweh5fvi.js +50 -0
- package/dist/_chunks/{theme-toggle-BswYl0Yp.js → theme-toggle-FrotC2VI.js} +85 -127
- package/dist/_chunks/use-locale-BkCIHujH.js +20 -0
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +55 -0
- package/dist/_chunks/{whatsapp-button-CtlLwM3M.js → whatsapp-button-DUjlWGKf.js} +26 -25
- package/dist/agent-catalog.json +59 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/data-table/filters/number-filter.d.ts +56 -0
- package/dist/components/data-table/filters/text-filter.d.ts +49 -0
- package/dist/components/data-table/index.d.ts +4 -0
- package/dist/components/data-table/index.js +25 -21
- package/dist/components/header-settings/index.js +205 -0
- package/dist/components/locale-picker/index.js +7 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +14 -1
- package/dist/fonts/Lexend-VF-latin-ext.woff2 +0 -0
- package/dist/fonts/Lexend-VF-latin.woff2 +0 -0
- package/dist/fonts/Lexend-VF-vietnamese.woff2 +0 -0
- package/dist/fonts/NotoSansArabic-VF-arabic.woff2 +0 -0
- package/dist/fonts/NotoSansDevanagari-VF-devanagari.woff2 +0 -0
- package/dist/hooks/index.js +29 -28
- package/dist/i18n/config.js +2726 -134
- package/dist/i18n/locales/ar.d.ts +147 -3
- package/dist/i18n/locales/de.d.ts +147 -3
- package/dist/i18n/locales/el.d.ts +147 -3
- package/dist/i18n/locales/es.d.ts +147 -3
- package/dist/i18n/locales/fr.d.ts +147 -3
- package/dist/i18n/locales/hi.d.ts +147 -3
- package/dist/i18n/locales/ja.d.ts +147 -3
- package/dist/i18n/locales/nl.d.ts +147 -3
- package/dist/i18n/locales/pl.d.ts +149 -5
- package/dist/i18n/locales/pt.d.ts +147 -3
- package/dist/i18n/locales/ro.d.ts +147 -3
- package/dist/i18n/locales/ru.d.ts +148 -4
- package/dist/i18n/locales/sq.d.ts +147 -3
- package/dist/i18n/locales/sv.d.ts +147 -3
- package/dist/i18n/locales/tr.d.ts +147 -3
- package/dist/i18n/locales/zh.d.ts +147 -3
- package/dist/i18n/resources.d.ts +294 -6
- package/dist/index.js +512 -507
- package/dist/locales/ar.json +149 -5
- package/dist/locales/de.json +149 -5
- package/dist/locales/el.json +149 -5
- package/dist/locales/en.json +147 -3
- package/dist/locales/es.json +149 -5
- package/dist/locales/fr.json +149 -5
- package/dist/locales/hi.json +149 -5
- package/dist/locales/it.json +147 -3
- package/dist/locales/ja.json +149 -5
- package/dist/locales/nl.json +149 -5
- package/dist/locales/pl.json +151 -7
- package/dist/locales/pt.json +149 -5
- package/dist/locales/ro.json +149 -5
- package/dist/locales/ru.json +150 -6
- package/dist/locales/sq.json +149 -5
- package/dist/locales/sv.json +149 -5
- package/dist/locales/tr.json +149 -5
- package/dist/locales/zh.json +149 -5
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +10 -1
- package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +0 -1972
- 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')`
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/hooks/index.js
CHANGED
|
@@ -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 _
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
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] =
|
|
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],
|
|
66
|
-
r.shiftKey ? (i === m || !n.contains(i)) && (r.preventDefault(),
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
91
|
+
J as useDirection,
|
|
92
|
+
N as useDocumentDirection,
|
|
92
93
|
C as useFocusTrap,
|
|
93
94
|
L as useIsomorphicLayoutEffect,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
K as useLocale,
|
|
96
|
+
w as useMediaQuery,
|
|
97
|
+
X as usePersistentState,
|
|
97
98
|
D as usePrefersReducedMotion,
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
_ as useScrollToFirstError,
|
|
100
|
+
B as useTheme
|
|
100
101
|
};
|
|
101
102
|
//# sourceMappingURL=index.js.map
|