@alfadocs/ui-kit 0.36.0 → 0.38.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 (201) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  3. package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
  4. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  5. package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
  6. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  9. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  10. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  11. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  12. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
  13. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
  14. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
  15. package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
  16. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  17. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  18. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  20. package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
  21. package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
  22. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  23. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  24. package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
  25. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  26. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  27. package/dist/_chunks/heart-C0faivFf.js +20 -0
  28. package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
  29. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  30. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  31. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
  32. package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
  33. package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
  34. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  35. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  36. package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
  37. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  38. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
  39. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  40. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  41. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  42. package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
  43. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  44. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  45. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
  46. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  47. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
  48. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  49. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
  50. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  51. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  52. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  53. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  54. package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
  55. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  56. package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
  57. package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
  58. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  59. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  60. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
  61. package/dist/agent-catalog.json +203 -1
  62. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  63. package/dist/brand/provider-marks/apple.d.ts +12 -0
  64. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  65. package/dist/brand/provider-marks/google.d.ts +13 -0
  66. package/dist/components/_shared/insert-result.d.ts +47 -0
  67. package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
  68. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  69. package/dist/components/bmi-calculator/index.d.ts +4 -0
  70. package/dist/components/bmi-calculator/index.js +15 -0
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  73. package/dist/components/calculator-dialog/index.d.ts +3 -0
  74. package/dist/components/calculator-dialog/index.js +5 -0
  75. package/dist/components/chart/chart.d.ts +7 -0
  76. package/dist/components/chart/index.js +1 -1
  77. package/dist/components/chat-message/index.js +1 -1
  78. package/dist/components/contact-profile-card/index.js +1 -1
  79. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  80. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  81. package/dist/components/cycle-calculator/index.d.ts +4 -0
  82. package/dist/components/cycle-calculator/index.js +7 -0
  83. package/dist/components/data-table/index.js +1 -1
  84. package/dist/components/date-picker/index.js +1 -1
  85. package/dist/components/date-range-picker/index.js +1 -1
  86. package/dist/components/date-time-picker/index.js +1 -1
  87. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  88. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  89. package/dist/components/dependent-selector/index.d.ts +4 -0
  90. package/dist/components/dependent-selector/index.js +6 -0
  91. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  92. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  93. package/dist/components/document-scanner/index.d.ts +4 -0
  94. package/dist/components/document-scanner/index.js +6 -0
  95. package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
  96. package/dist/components/due-date-calculator/gestation.d.ts +60 -0
  97. package/dist/components/due-date-calculator/index.d.ts +4 -0
  98. package/dist/components/due-date-calculator/index.js +13 -0
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  101. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  102. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  103. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  104. package/dist/components/fiscal-code-input/index.js +11 -0
  105. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  106. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  107. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  108. package/dist/components/gestational-age-calculator/index.js +5 -0
  109. package/dist/components/index.d.ts +15 -0
  110. package/dist/components/logo/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  113. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  114. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  115. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  116. package/dist/components/privacy-lock/index.js +1 -1
  117. package/dist/components/public-footer/index.js +1 -1
  118. package/dist/components/qr-code/index.d.ts +5 -0
  119. package/dist/components/qr-code/index.js +8 -0
  120. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  121. package/dist/components/qr-code/qr-code.d.ts +59 -0
  122. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  123. package/dist/components/rich-text-editor/index.js +1 -1
  124. package/dist/components/session-countdown/index.d.ts +4 -0
  125. package/dist/components/session-countdown/index.js +6 -0
  126. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  127. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  128. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  129. package/dist/components/skeleton/skeleton.d.ts +1 -1
  130. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  131. package/dist/components/social-sign-in-button/index.js +5 -0
  132. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  133. package/dist/components/unit-converter/index.d.ts +4 -0
  134. package/dist/components/unit-converter/index.js +9 -0
  135. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  136. package/dist/components/unit-converter/units.d.ts +18 -0
  137. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  138. package/dist/components/wallet-pay-button/index.js +5 -0
  139. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  140. package/dist/i18n/locales/ar.d.ts +316 -0
  141. package/dist/i18n/locales/ar.js +307 -0
  142. package/dist/i18n/locales/de.d.ts +316 -0
  143. package/dist/i18n/locales/de.js +307 -0
  144. package/dist/i18n/locales/el.d.ts +316 -0
  145. package/dist/i18n/locales/el.js +307 -0
  146. package/dist/i18n/locales/en.d.ts +316 -0
  147. package/dist/i18n/locales/en.js +310 -0
  148. package/dist/i18n/locales/es.d.ts +316 -0
  149. package/dist/i18n/locales/es.js +307 -0
  150. package/dist/i18n/locales/fr.d.ts +316 -0
  151. package/dist/i18n/locales/fr.js +307 -0
  152. package/dist/i18n/locales/hi.d.ts +316 -0
  153. package/dist/i18n/locales/hi.js +307 -0
  154. package/dist/i18n/locales/it.d.ts +316 -0
  155. package/dist/i18n/locales/it.js +307 -0
  156. package/dist/i18n/locales/ja.d.ts +316 -0
  157. package/dist/i18n/locales/ja.js +303 -0
  158. package/dist/i18n/locales/nl.d.ts +316 -0
  159. package/dist/i18n/locales/nl.js +307 -0
  160. package/dist/i18n/locales/pl.d.ts +316 -0
  161. package/dist/i18n/locales/pl.js +307 -0
  162. package/dist/i18n/locales/pt.d.ts +316 -0
  163. package/dist/i18n/locales/pt.js +310 -0
  164. package/dist/i18n/locales/ro.d.ts +316 -0
  165. package/dist/i18n/locales/ro.js +307 -0
  166. package/dist/i18n/locales/ru.d.ts +316 -0
  167. package/dist/i18n/locales/ru.js +307 -0
  168. package/dist/i18n/locales/sq.d.ts +316 -0
  169. package/dist/i18n/locales/sq.js +307 -0
  170. package/dist/i18n/locales/sv.d.ts +316 -0
  171. package/dist/i18n/locales/sv.js +307 -0
  172. package/dist/i18n/locales/tr.d.ts +316 -0
  173. package/dist/i18n/locales/tr.js +307 -0
  174. package/dist/i18n/locales/zh.d.ts +316 -0
  175. package/dist/i18n/locales/zh.js +303 -0
  176. package/dist/index.js +597 -527
  177. package/dist/locales/ar.json +316 -0
  178. package/dist/locales/de.json +316 -0
  179. package/dist/locales/el.json +316 -0
  180. package/dist/locales/en.json +316 -0
  181. package/dist/locales/es.json +316 -0
  182. package/dist/locales/fr.json +316 -0
  183. package/dist/locales/hi.json +316 -0
  184. package/dist/locales/it.json +316 -0
  185. package/dist/locales/ja.json +316 -0
  186. package/dist/locales/nl.json +316 -0
  187. package/dist/locales/pl.json +316 -0
  188. package/dist/locales/pt.json +316 -0
  189. package/dist/locales/ro.json +316 -0
  190. package/dist/locales/ru.json +316 -0
  191. package/dist/locales/sq.json +316 -0
  192. package/dist/locales/sv.json +316 -0
  193. package/dist/locales/tr.json +316 -0
  194. package/dist/locales/zh.json +316 -0
  195. package/dist/patterns/alia-assistant/index.js +1 -1
  196. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  197. package/dist/patterns/patient-shell/index.js +1 -1
  198. package/dist/tokens.css +1 -1
  199. package/package.json +57 -1
  200. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  201. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
@@ -0,0 +1,3 @@
1
+ export { SocialSignInButton } from './social-sign-in-button';
2
+ export type { SocialSignInButtonProps, SocialSignInProvider, } from './social-sign-in-button';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { S as t } from "../../_chunks/social-sign-in-button-X54ySJr1.js";
2
+ export {
3
+ t as SocialSignInButton
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,56 @@
1
+ import { type ButtonHTMLAttributes, type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const rootVariants: (props?: ({
4
+ provider?: "apple" | "google" | null | undefined;
5
+ appearance?: "light" | "dark" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export type SocialSignInProvider = 'apple' | 'google';
9
+ /**
10
+ * Brand surface variant — independent of the kit theme. Apple HIG:
11
+ * `light` = white button + black mark/text, `dark` = black button +
12
+ * white mark/text. Google: `light` = white/neutral button, `dark` =
13
+ * Google-blue button. Pick the appearance that contrasts with your
14
+ * auth-card background; do NOT bind it to `useTheme()`. Defaults to
15
+ * `'light'`. Derived from `rootVariants` so the prop union tracks the
16
+ * CVA option list automatically.
17
+ */
18
+ export type SocialSignInAppearance = NonNullable<VariantProps<typeof rootVariants>['appearance']>;
19
+ /** Button size. Defaults to `'md'`. Derived from `rootVariants`. */
20
+ export type SocialSignInSize = NonNullable<VariantProps<typeof rootVariants>['size']>;
21
+ export interface SocialSignInButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, Omit<VariantProps<typeof rootVariants>, 'provider'> {
22
+ /**
23
+ * Which identity provider this button represents. Drives the brand
24
+ * mark, the surface colour token, and the default i18n verb + name.
25
+ * Designed extensible — the union and the CVA option list grow
26
+ * together when a new provider (e.g. `'microsoft'`) is added.
27
+ */
28
+ provider: SocialSignInProvider;
29
+ /**
30
+ * Swaps the brand mark for the kit Spinner (size-matched), sets
31
+ * `aria-busy='true'`, and disables the button so the user cannot
32
+ * double-submit the OAuth redirect. The label stays visible.
33
+ */
34
+ loading?: boolean;
35
+ /**
36
+ * Override the visible label. When omitted, reads
37
+ * `socialSignInButton.<provider>` ("Sign in with Apple" / "Sign in
38
+ * with Google"). Override only to switch the verb to "Continue with"
39
+ * — never for marketing copy, and the provider NAME ("Apple" /
40
+ * "Google") must stay verbatim per brand rules.
41
+ */
42
+ label?: ReactNode;
43
+ /**
44
+ * Fired when the component detects the user cancelled an in-flight
45
+ * sign-in — typically by pressing browser back after the OAuth
46
+ * redirect, which restores the page from bfcache with `loading` still
47
+ * true. Wire this to your loading-state setter so the button returns
48
+ * to idle. Only fires when `loading` is currently true; never on first
49
+ * mount. Mirrors SignInWithAlfadocsButton — the component does not
50
+ * reset state it doesn't own.
51
+ */
52
+ onLoadingCancelled?: () => void;
53
+ }
54
+ export declare const SocialSignInButton: import("react").ForwardRefExoticComponent<SocialSignInButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
55
+ export {};
56
+ //# sourceMappingURL=social-sign-in-button.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { UnitConverter } from './unit-converter';
2
+ export type { UnitConverterProps } from './unit-converter';
3
+ export { convertUnits, UNITS, UNITS_BY_CATEGORY, CATEGORIES, type UnitCategory, type UnitDef, } from './units';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-EUwO6QYq.js";
2
+ export {
3
+ r as CATEGORIES,
4
+ t as UNITS,
5
+ U as UNITS_BY_CATEGORY,
6
+ e as UnitConverter,
7
+ n as convertUnits
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,21 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import { type InsertPayload } from '../_shared/insert-result';
3
+ import { type UnitCategory } from './units';
4
+ declare const rootVariants: (props?: ({
5
+ width?: "auto" | "full" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface UnitConverterProps extends VariantProps<typeof rootVariants> {
8
+ /** Initial category. Defaults to `'weight'`. */
9
+ defaultCategory?: UnitCategory;
10
+ /** Fires with the converted value (and `null` when input is empty). */
11
+ onResultChange?: (value: number | null) => void;
12
+ /** When provided, shows an "Insert" button that emits the result for an editor. */
13
+ onInsert?: (payload: InsertPayload) => void;
14
+ /** Opaque instance id, emitted as `data-component-id`. */
15
+ id?: string;
16
+ /** Extra class names on the wrapper. */
17
+ className?: string;
18
+ }
19
+ export declare const UnitConverter: import("react").ForwardRefExoticComponent<UnitConverterProps & import("react").RefAttributes<HTMLDivElement>>;
20
+ export {};
21
+ //# sourceMappingURL=unit-converter.d.ts.map
@@ -0,0 +1,18 @@
1
+ export type UnitCategory = 'weight' | 'length' | 'temperature' | 'glucose';
2
+ export interface UnitDef {
3
+ id: string;
4
+ category: UnitCategory;
5
+ /** Multiplier to the category base unit. */
6
+ factor: number;
7
+ /** Additive offset to the base unit (non-zero only for temperature). */
8
+ offset: number;
9
+ }
10
+ export declare const UNITS: Record<string, UnitDef>;
11
+ export declare const UNITS_BY_CATEGORY: Record<UnitCategory, string[]>;
12
+ export declare const CATEGORIES: UnitCategory[];
13
+ /**
14
+ * Convert `value` from one unit to another. Both ids must belong to the same
15
+ * category; mismatched categories throw (a programming error, not user input).
16
+ */
17
+ export declare function convertUnits(value: number, fromId: string, toId: string): number;
18
+ //# sourceMappingURL=units.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { WalletPayButton } from './wallet-pay-button';
2
+ export type { WalletPayButtonProps } from './wallet-pay-button';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { W as o } from "../../_chunks/wallet-pay-button-DK4ESYge.js";
2
+ export {
3
+ o as WalletPayButton
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,63 @@
1
+ import { type ButtonHTMLAttributes, type MouseEvent, type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ type Provider = 'apple-pay' | 'google-pay';
4
+ type ButtonStyle = 'black' | 'white' | 'white-outline';
5
+ type LabelType = 'buy' | 'pay' | 'checkout' | 'book' | 'plain';
6
+ declare const rootVariants: (props?: ({
7
+ provider?: "apple-pay" | "google-pay" | null | undefined;
8
+ buttonStyle?: "black" | "white" | "white-outline" | null | undefined;
9
+ size?: "sm" | "md" | "lg" | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export interface WalletPayButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'type'>, Omit<VariantProps<typeof rootVariants>, 'provider'> {
13
+ /**
14
+ * Which wallet the button represents. Drives the inline brand mark,
15
+ * the default label key, the brand-locked surface tokens, and the
16
+ * `data-provider` hook. Required — there is no sensible default
17
+ * wallet.
18
+ */
19
+ provider: Provider;
20
+ /**
21
+ * Brand-mandated button type. Apple Pay supports
22
+ * `black` / `white` / `white-outline`; Google Pay supports
23
+ * `black` / `white` only. Passing `white-outline` with
24
+ * `provider="google-pay"` falls back to `white` and dev-warns —
25
+ * Google's branding has no outline type.
26
+ */
27
+ buttonStyle?: ButtonStyle;
28
+ /**
29
+ * Brand-approved call-to-action phrasing. `plain` renders the bare
30
+ * mark (mark-only) with an sr-only accessible name. The verb portion
31
+ * is i18n; the wallet brand name ("Apple Pay" / "Google Pay") is a
32
+ * non-translated constant.
33
+ */
34
+ labelType?: LabelType;
35
+ /**
36
+ * Fired on click / Enter / Space when not loading and not disabled.
37
+ * Open the native wallet sheet here (Payment Request API). Named
38
+ * `onActivate` rather than `onClick` to signal it triggers a payment
39
+ * flow. A native `onClick` still forwards through `...rest`.
40
+ */
41
+ onActivate?: (event: MouseEvent<HTMLButtonElement>) => void;
42
+ /**
43
+ * Wallet sheet is opening / payment in flight. Swaps the mark for the
44
+ * kit Spinner, sets `aria-busy="true"`, and suppresses activation so
45
+ * the user cannot double-open the sheet.
46
+ */
47
+ loading?: boolean;
48
+ /**
49
+ * Override the resolved accessible / visible label. Defaults to the
50
+ * `provider` + `labelType` i18n string. The brand wordmark constant
51
+ * ("Apple Pay" / "Google Pay") is never overridable via this prop —
52
+ * pass a fully-translated verb phrase only.
53
+ */
54
+ label?: ReactNode;
55
+ /**
56
+ * Native button type. Defaults to `'button'` so the wallet trigger
57
+ * never implicitly submits an ambient `<form>`.
58
+ */
59
+ type?: 'button' | 'submit' | 'reset';
60
+ }
61
+ export declare const WalletPayButton: import("react").ForwardRefExoticComponent<WalletPayButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
62
+ export {};
63
+ //# sourceMappingURL=wallet-pay-button.d.ts.map
@@ -65,6 +65,17 @@ export declare const arUi: {
65
65
  readonly opensInNewTab: "يُفتح في علامة تبويب جديدة";
66
66
  };
67
67
  readonly inputs: {
68
+ readonly fiscalCode: {
69
+ readonly placeholder: "RSSMRA85M01H501Z";
70
+ readonly formatHint: "16 حرفاً — أحرف وأرقام";
71
+ readonly charactersEntered: "{{count}} من 16 حرفاً";
72
+ readonly valid: "رمز ضريبي صالح";
73
+ readonly errorIncomplete: "أدخل الأحرف الستة عشر كاملةً";
74
+ readonly errorFormat: "تنسيق الرمز الضريبي غير صالح";
75
+ readonly errorChecksum: "رمز ضريبي غير صالح — تحقق من الأحرف";
76
+ readonly ariaLabel: "الرمز الضريبي";
77
+ readonly calculate: "حساب الرمز الضريبي";
78
+ };
68
79
  readonly switch: {
69
80
  readonly on: "مفعّل";
70
81
  readonly off: "معطّل";
@@ -1618,6 +1629,311 @@ export declare const arUi: {
1618
1629
  readonly opens_in_new_tab: "(يُفتح في نافذة جديدة)";
1619
1630
  };
1620
1631
  };
1632
+ readonly bmiCalculator: {
1633
+ readonly unitSystem: {
1634
+ readonly label: "الوحدات";
1635
+ readonly metric: "متري (كجم، سم)";
1636
+ readonly imperial: "إمبراطوري (رطل، قدم/بوصة)";
1637
+ };
1638
+ readonly height: "الطول";
1639
+ readonly weight: "الوزن";
1640
+ readonly feet: "أقدام";
1641
+ readonly inches: "بوصات";
1642
+ readonly units: {
1643
+ readonly cm: "سم";
1644
+ readonly kg: "كجم";
1645
+ readonly lb: "رطل";
1646
+ readonly ft: "قدم";
1647
+ readonly in: "بوصة";
1648
+ };
1649
+ readonly category: {
1650
+ readonly label: "الفئة";
1651
+ readonly underweight: "نقص الوزن";
1652
+ readonly normal: "وزن طبيعي";
1653
+ readonly overweight: "زيادة الوزن";
1654
+ readonly obese: "سمنة";
1655
+ };
1656
+ readonly range: {
1657
+ readonly underweight: "أقل من 18.5";
1658
+ readonly normal: "18.5 – 24.9";
1659
+ readonly overweight: "25.0 – 29.9";
1660
+ readonly obese: "30.0 فأكثر";
1661
+ };
1662
+ readonly gaugeAria: "مؤشر كتلة الجسم {{bmi}}، {{category}}";
1663
+ readonly empty: "أدخل الطول والوزن لحساب مؤشر كتلة الجسم.";
1664
+ };
1665
+ readonly dueDateCalculator: {
1666
+ readonly method: {
1667
+ readonly label: "طريقة الحساب";
1668
+ readonly lmp: "آخر دورة شهرية";
1669
+ readonly conception: "تاريخ الإخصاب";
1670
+ readonly ivf: "تاريخ نقل الأجنة";
1671
+ };
1672
+ readonly lmpDate: "أول يوم في آخر دورة شهرية";
1673
+ readonly conceptionDate: "تاريخ الإخصاب";
1674
+ readonly transferDate: "تاريخ نقل الجنين";
1675
+ readonly cycleLength: "طول الدورة";
1676
+ readonly cycleLengthHint: "متوسط عدد الأيام بين الدورات. المعيار هو 28.";
1677
+ readonly embryoAge: "عمر الجنين عند النقل";
1678
+ readonly day3: "اليوم 3";
1679
+ readonly day5: "اليوم 5 (الكيسة الأريمية)";
1680
+ readonly days: "أيام";
1681
+ readonly result: {
1682
+ readonly dueDateLabel: "تاريخ الولادة المتوقع";
1683
+ readonly gestationLabel: "عمر الحمل اليوم";
1684
+ readonly trimesterLabel: "الثلث";
1685
+ readonly gestation: "{{weeks}} أسبوع {{days}} يوم";
1686
+ };
1687
+ readonly trimester: {
1688
+ readonly preconception: "قبل الإخصاب";
1689
+ readonly first: "الثلث الأول";
1690
+ readonly second: "الثلث الثاني";
1691
+ readonly third: "الثلث الثالث";
1692
+ readonly postterm: "بعد الموعد";
1693
+ };
1694
+ readonly empty: "اختر طريقة وتاريخًا لتقدير تاريخ الولادة المتوقع.";
1695
+ };
1696
+ readonly cycleCalculator: {
1697
+ readonly lastPeriod: "أول يوم في آخر دورة شهرية";
1698
+ readonly cycleLength: "طول الدورة";
1699
+ readonly cycleLengthHint: "متوسط عدد الأيام بين الدورات. المعيار هو 28.";
1700
+ readonly ovulation: "الإباضة المتوقعة";
1701
+ readonly mostFertile: "أعلى خصوبة";
1702
+ readonly fertileWindow: "نافذة الخصوبة";
1703
+ readonly nextPeriod: "الدورة القادمة";
1704
+ readonly empty: "أدخل تاريخ آخر دورة شهرية لتوقع الإباضة ونافذة الخصوبة.";
1705
+ };
1706
+ readonly gestationalAgeCalculator: {
1707
+ readonly method: {
1708
+ readonly label: "التاريخ المعروف";
1709
+ readonly lmp: "آخر دورة شهرية";
1710
+ readonly edd: "تاريخ الولادة المتوقع";
1711
+ };
1712
+ readonly lmpDate: "أول يوم في آخر دورة شهرية";
1713
+ readonly eddDate: "تاريخ الولادة المتوقع";
1714
+ readonly gestationLabel: "عمر الحمل اليوم";
1715
+ readonly trimesterLabel: "الثلث";
1716
+ readonly gestation: "{{weeks}} أسبوع {{days}} يوم";
1717
+ readonly milestonesLabel: "المراحل";
1718
+ readonly reached: "تم الوصول";
1719
+ readonly milestone: {
1720
+ readonly w12: "نهاية الثلث الأول (12 أسبوعًا)";
1721
+ readonly w24: "القدرة على الحياة (24 أسبوعًا)";
1722
+ readonly w28: "الثلث الثالث (28 أسبوعًا)";
1723
+ readonly w37: "تمام الحمل (37 أسبوعًا)";
1724
+ readonly w40: "تاريخ الولادة (40 أسبوعًا)";
1725
+ };
1726
+ readonly trimester: {
1727
+ readonly preconception: "قبل الإخصاب";
1728
+ readonly first: "الثلث الأول";
1729
+ readonly second: "الثلث الثاني";
1730
+ readonly third: "الثلث الثالث";
1731
+ readonly postterm: "بعد الموعد";
1732
+ };
1733
+ readonly empty: "اختر تاريخًا لحساب عمر الحمل.";
1734
+ };
1735
+ readonly pregnancyWeightGain: {
1736
+ readonly height: "الطول";
1737
+ readonly prePregnancyWeight: "الوزن قبل الحمل";
1738
+ readonly currentWeight: "الوزن الحالي";
1739
+ readonly gestationalWeeks: "عمر الحمل (أسابيع)";
1740
+ readonly units: {
1741
+ readonly cm: "سم";
1742
+ readonly kg: "كجم";
1743
+ };
1744
+ readonly prePregnancyBmi: "مؤشر كتلة الجسم قبل الحمل";
1745
+ readonly category: {
1746
+ readonly underweight: "نقص الوزن";
1747
+ readonly normal: "وزن طبيعي";
1748
+ readonly overweight: "زيادة الوزن";
1749
+ readonly obese: "سمنة";
1750
+ };
1751
+ readonly actualGain: "الوزن المكتسب";
1752
+ readonly recommendedToDate: "الموصى به حتى الآن";
1753
+ readonly recommendedTotal: "الموصى به الإجمالي";
1754
+ readonly status: {
1755
+ readonly below: "أقل من النطاق الموصى به";
1756
+ readonly within: "ضمن النطاق الموصى به";
1757
+ readonly above: "أعلى من النطاق الموصى به";
1758
+ };
1759
+ readonly disclaimer: "استنادًا إلى نطاقات IOM (2009) للحمل بجنين واحد. للإرشاد فقط — لا يغني عن التقييم السريري.";
1760
+ readonly empty: "أدخل الطول والأوزان وعمر الحمل لتقييم زيادة الوزن.";
1761
+ };
1762
+ readonly unitConverter: {
1763
+ readonly categoryLabel: "الفئة";
1764
+ readonly category: {
1765
+ readonly weight: "الوزن";
1766
+ readonly length: "الطول";
1767
+ readonly temperature: "درجة الحرارة";
1768
+ readonly glucose: "سكر الدم";
1769
+ };
1770
+ readonly value: "القيمة";
1771
+ readonly from: "من";
1772
+ readonly to: "إلى";
1773
+ readonly result: "النتيجة";
1774
+ readonly units: {
1775
+ readonly kg: "كيلوغرام (kg)";
1776
+ readonly g: "غرام (g)";
1777
+ readonly lb: "رطل (lb)";
1778
+ readonly oz: "أوقية (oz)";
1779
+ readonly cm: "سنتيمتر (cm)";
1780
+ readonly m: "متر (m)";
1781
+ readonly in: "بوصة (in)";
1782
+ readonly ft: "قدم (ft)";
1783
+ readonly c: "مئوية (°C)";
1784
+ readonly f: "فهرنهايت (°F)";
1785
+ readonly mmol_l: "mmol/L";
1786
+ readonly mg_dl: "mg/dL";
1787
+ };
1788
+ readonly empty: "أدخل قيمة للتحويل.";
1789
+ };
1790
+ readonly insert: {
1791
+ readonly button: "إدراج";
1792
+ readonly text: "إدراج نص";
1793
+ readonly image: "إدراج صورة";
1794
+ readonly textImage: "إدراج نص + صورة";
1795
+ readonly title: {
1796
+ readonly bmi: "مؤشر كتلة الجسم";
1797
+ readonly dueDate: "تاريخ الولادة المتوقع";
1798
+ readonly gestationalAge: "عمر الحمل";
1799
+ readonly cycle: "توقع الدورة";
1800
+ readonly weightGain: "زيادة الوزن أثناء الحمل";
1801
+ readonly unitConverter: "تحويل الوحدات";
1802
+ };
1803
+ };
1804
+ readonly dependentSelector: {
1805
+ readonly legend: "من تُسجّل وصوله؟";
1806
+ readonly description: "اختر نفسك أو أحد أفراد العائلة المسؤول عنه.";
1807
+ readonly relationship: {
1808
+ readonly self: "أنت";
1809
+ readonly son: "ابن";
1810
+ readonly daughter: "ابنة";
1811
+ readonly child: "طفل";
1812
+ readonly spouse: "الزوج/الزوجة";
1813
+ readonly parent: "أحد الوالدين";
1814
+ readonly sibling: "أخ/أخت";
1815
+ readonly ward: "شخص مُعال";
1816
+ readonly other: "أحد أفراد العائلة";
1817
+ };
1818
+ readonly age_one: "عمره عام واحد";
1819
+ readonly age_other: "عمره {{count}} عاماً";
1820
+ readonly age_zero: "عمره {{count}} عاماً";
1821
+ readonly age_two: "عمره {{count}} عاماً";
1822
+ readonly age_few: "عمره {{count}} عاماً";
1823
+ readonly age_many: "عمره {{count}} عاماً";
1824
+ readonly minorBadge: "قاصر";
1825
+ readonly optionLabel: "{{name}}، {{relationship}}";
1826
+ readonly empty: "لا يوجد مُعالون مرتبطون بحسابك بعد.";
1827
+ readonly selectPrompt: "اختر شخصاً للمتابعة.";
1828
+ readonly loadingLabel: "جارٍ تحميل الأشخاص الذين يمكنك تسجيل وصولهم…";
1829
+ readonly disabledReason: {
1830
+ readonly alreadyCheckedIn: "تم تسجيل الوصول اليوم بالفعل.";
1831
+ };
1832
+ readonly avatarAlt: "";
1833
+ };
1834
+ readonly documentScanner: {
1835
+ readonly regionLabel: "التقاط المستند";
1836
+ readonly videoLabel: "معاينة حية للكاميرا لمستندك";
1837
+ readonly previewAlt: "صورة المستند الملتقطة";
1838
+ readonly useCamera: "استخدام الكاميرا";
1839
+ readonly capture: "التقاط المستند";
1840
+ readonly retake: "إعادة التقاط الصورة";
1841
+ readonly confirm: "استخدام هذه الصورة";
1842
+ readonly uploadInstead: "تحميل صورة بدلاً من ذلك";
1843
+ readonly requesting: "جارٍ طلب الوصول إلى الكاميرا…";
1844
+ readonly hint: {
1845
+ readonly tesseraSanitaria: "ضع بطاقتك الصحية (Tessera Sanitaria) داخل الإطار وثبّتها";
1846
+ readonly cie: "ضع بطاقة هويتك الإلكترونية (CIE) داخل الإطار وثبّتها";
1847
+ readonly idCard: "ضع بطاقة هويتك داخل الإطار وثبّتها";
1848
+ readonly generic: "ضع مستندك داخل الإطار وثبّته";
1849
+ };
1850
+ readonly frameLabel: "إطار محاذاة المستند";
1851
+ readonly state: {
1852
+ readonly idle: "جاهز لالتقاط مستند";
1853
+ readonly requesting: "جارٍ طلب الوصول إلى الكاميرا";
1854
+ readonly streaming: "الكاميرا جاهزة — حاذِ مستندك والتقطه";
1855
+ readonly captured: "تم التقاط المستند";
1856
+ readonly uploading: "جارٍ معالجة الصورة";
1857
+ };
1858
+ readonly error: {
1859
+ readonly permissionDenied: "تم رفض إذن الكاميرا. يمكنك تحميل صورة بدلاً من ذلك.";
1860
+ readonly noCamera: "لم يتم العثور على كاميرا. حمّل صورة لمستندك بدلاً من ذلك.";
1861
+ readonly insecureContext: "يتطلب التقاط الكاميرا اتصالاً آمناً (HTTPS). حمّل صورة بدلاً من ذلك.";
1862
+ readonly notReadable: "الكاميرا قيد الاستخدام بالفعل من قِبل تطبيق آخر. أغلقه وأعد المحاولة، أو حمّل صورة.";
1863
+ readonly captureFailed: "تعذّر التقاط الصورة. يُرجى المحاولة مرة أخرى.";
1864
+ readonly fileInvalidType: "نوع الملف هذا غير مدعوم. استخدم صورة بصيغة JPG أو PNG أو WebP.";
1865
+ readonly fileTooLarge: "هذه الصورة كبيرة جداً. اختر ملفاً بحجم أقل من {{maxSizeMb}} ميغابايت.";
1866
+ };
1867
+ readonly retry: "حاول استخدام الكاميرا مرة أخرى";
1868
+ readonly onFileBadge: "موجود في الأرشيف بالفعل";
1869
+ readonly agent: {
1870
+ readonly state: {
1871
+ readonly hasCapture: "صحيح عند توفر صورة ملتقطة أو محمّلة.";
1872
+ readonly phase: "المرحلة الحالية من دورة حياة الماسح.";
1873
+ };
1874
+ readonly actions: {
1875
+ readonly startCamera: "اطلب إذن الكاميرا وابدأ عدسة المعاينة الحية.";
1876
+ readonly capture: "جمّد إطار العدسة الحالي كصورة ملتقطة.";
1877
+ readonly confirm: "أكّد الالتقاط الحالي وأرسله عبر onConfirm.";
1878
+ readonly retake: "تجاهل الالتقاط الحالي وعُد إلى الالتقاط.";
1879
+ };
1880
+ };
1881
+ };
1882
+ readonly qrCode: {
1883
+ readonly ariaLabel: "رمز QR لتسجيل الوصول";
1884
+ readonly ariaLabelNamed: "رمز QR لتسجيل الوصول في {{label}}";
1885
+ readonly caption: "امسح الرمز لتسجيل الوصول";
1886
+ readonly captionPortal: "امسح الرمز لفتح بوابة المريض الخاصة بك";
1887
+ readonly empty: "لا يوجد رمز QR";
1888
+ readonly scanHint: "وجّه كاميرا هاتفك نحو الرمز";
1889
+ };
1890
+ readonly sessionCountdown: {
1891
+ readonly ariaLabel: "تنتهي صلاحية الجلسة خلال {{time}}";
1892
+ readonly remainingInline: "يتبقّى {{time}}";
1893
+ readonly remainingBanner: "تنتهي صلاحية جلسة تسجيل وصولك خلال {{time}}.";
1894
+ readonly timeMinutesSeconds: "{{minutes}}د {{seconds}}ث";
1895
+ readonly timeSecondsOnly: "{{seconds}}ث";
1896
+ readonly minutesRemaining_one: "تتبقّى دقيقة واحدة";
1897
+ readonly minutesRemaining_other: "تتبقّى {{count}} دقيقة";
1898
+ readonly minutesRemaining_zero: "تتبقّى {{count}} دقيقة";
1899
+ readonly minutesRemaining_two: "تتبقّى {{count}} دقيقة";
1900
+ readonly minutesRemaining_few: "تتبقّى {{count}} دقيقة";
1901
+ readonly minutesRemaining_many: "تتبقّى {{count}} دقيقة";
1902
+ readonly secondsRemaining_one: "تتبقّى ثانية واحدة";
1903
+ readonly secondsRemaining_other: "تتبقّى {{count}} ثانية";
1904
+ readonly secondsRemaining_zero: "تتبقّى {{count}} ثانية";
1905
+ readonly secondsRemaining_two: "تتبقّى {{count}} ثانية";
1906
+ readonly secondsRemaining_few: "تتبقّى {{count}} ثانية";
1907
+ readonly secondsRemaining_many: "تتبقّى {{count}} ثانية";
1908
+ readonly warning: "جلستك على وشك الانتهاء. يُرجى إنهاؤها قريباً.";
1909
+ readonly expired: "انتهت صلاحية جلسة تسجيل وصولك.";
1910
+ readonly expiredAnnouncement: "انتهت صلاحية الجلسة.";
1911
+ readonly restart: "إعادة بدء تسجيل الوصول";
1912
+ readonly progressLabel: "الوقت المنقضي من الجلسة";
1913
+ };
1914
+ readonly socialSignInButton: {
1915
+ readonly apple: "تسجيل الدخول باستخدام Apple";
1916
+ readonly google: "تسجيل الدخول باستخدام Google";
1917
+ readonly continueApple: "المتابعة باستخدام Apple";
1918
+ readonly continueGoogle: "المتابعة باستخدام Google";
1919
+ readonly loading: "جارٍ تسجيل الدخول…";
1920
+ };
1921
+ readonly walletPayButton: {
1922
+ readonly applePay: {
1923
+ readonly pay: "ادفع باستخدام Apple Pay";
1924
+ readonly buy: "اشترِ باستخدام Apple Pay";
1925
+ readonly checkout: "أكمل الدفع باستخدام Apple Pay";
1926
+ readonly book: "احجز باستخدام Apple Pay";
1927
+ readonly plain: "Apple Pay";
1928
+ };
1929
+ readonly googlePay: {
1930
+ readonly pay: "ادفع باستخدام Google Pay";
1931
+ readonly buy: "اشترِ باستخدام Google Pay";
1932
+ readonly checkout: "أكمل الدفع باستخدام Google Pay";
1933
+ readonly book: "احجز باستخدام Google Pay";
1934
+ readonly plain: "Google Pay";
1935
+ };
1936
+ };
1621
1937
  readonly languages: {
1622
1938
  readonly en: "الإنجليزية";
1623
1939
  readonly it: "الإيطالية";