@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.
- package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
- package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
- package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
- package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
- package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
- package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
- package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
- package/dist/_chunks/chart-DnHvmiDX.js +312 -0
- package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
- package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
- package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
- package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
- package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
- package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
- package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
- package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
- package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
- package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
- package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
- package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
- package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
- package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
- package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
- package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
- package/dist/_chunks/heart-C0faivFf.js +20 -0
- package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
- package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
- package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
- package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
- package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
- package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
- package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
- package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
- package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
- package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
- package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
- package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
- package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
- package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
- package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
- package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
- package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
- package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
- package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
- package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
- package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
- package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
- package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
- package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
- package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
- package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
- package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
- package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
- package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
- package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
- package/dist/agent-catalog.json +203 -1
- package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
- package/dist/brand/provider-marks/apple.d.ts +12 -0
- package/dist/brand/provider-marks/google-pay.d.ts +12 -0
- package/dist/brand/provider-marks/google.d.ts +13 -0
- package/dist/components/_shared/insert-result.d.ts +47 -0
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
- package/dist/components/bmi-calculator/bmi.d.ts +37 -0
- package/dist/components/bmi-calculator/index.d.ts +4 -0
- package/dist/components/bmi-calculator/index.js +15 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
- package/dist/components/calculator-dialog/index.d.ts +3 -0
- package/dist/components/calculator-dialog/index.js +5 -0
- package/dist/components/chart/chart.d.ts +7 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
- package/dist/components/cycle-calculator/cycle.d.ts +37 -0
- package/dist/components/cycle-calculator/index.d.ts +4 -0
- package/dist/components/cycle-calculator/index.js +7 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
- package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
- package/dist/components/dependent-selector/index.d.ts +4 -0
- package/dist/components/dependent-selector/index.js +6 -0
- package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
- package/dist/components/document-scanner/document-scanner.d.ts +93 -0
- package/dist/components/document-scanner/index.d.ts +4 -0
- package/dist/components/document-scanner/index.js +6 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
- package/dist/components/due-date-calculator/gestation.d.ts +60 -0
- package/dist/components/due-date-calculator/index.d.ts +4 -0
- package/dist/components/due-date-calculator/index.js +13 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
- package/dist/components/fiscal-code-input/index.d.ts +6 -0
- package/dist/components/fiscal-code-input/index.js +11 -0
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
- package/dist/components/gestational-age-calculator/index.d.ts +3 -0
- package/dist/components/gestational-age-calculator/index.js +5 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/index.js +9 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/qr-code/index.d.ts +5 -0
- package/dist/components/qr-code/index.js +8 -0
- package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
- package/dist/components/qr-code/qr-code.d.ts +59 -0
- package/dist/components/qr-code/qr-encode.d.ts +46 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.d.ts +4 -0
- package/dist/components/session-countdown/index.js +6 -0
- package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
- package/dist/components/session-countdown/session-countdown.d.ts +38 -0
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/social-sign-in-button/index.d.ts +3 -0
- package/dist/components/social-sign-in-button/index.js +5 -0
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
- package/dist/components/unit-converter/index.d.ts +4 -0
- package/dist/components/unit-converter/index.js +9 -0
- package/dist/components/unit-converter/unit-converter.d.ts +21 -0
- package/dist/components/unit-converter/units.d.ts +18 -0
- package/dist/components/wallet-pay-button/index.d.ts +3 -0
- package/dist/components/wallet-pay-button/index.js +5 -0
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
- package/dist/i18n/locales/ar.d.ts +316 -0
- package/dist/i18n/locales/ar.js +307 -0
- package/dist/i18n/locales/de.d.ts +316 -0
- package/dist/i18n/locales/de.js +307 -0
- package/dist/i18n/locales/el.d.ts +316 -0
- package/dist/i18n/locales/el.js +307 -0
- package/dist/i18n/locales/en.d.ts +316 -0
- package/dist/i18n/locales/en.js +310 -0
- package/dist/i18n/locales/es.d.ts +316 -0
- package/dist/i18n/locales/es.js +307 -0
- package/dist/i18n/locales/fr.d.ts +316 -0
- package/dist/i18n/locales/fr.js +307 -0
- package/dist/i18n/locales/hi.d.ts +316 -0
- package/dist/i18n/locales/hi.js +307 -0
- package/dist/i18n/locales/it.d.ts +316 -0
- package/dist/i18n/locales/it.js +307 -0
- package/dist/i18n/locales/ja.d.ts +316 -0
- package/dist/i18n/locales/ja.js +303 -0
- package/dist/i18n/locales/nl.d.ts +316 -0
- package/dist/i18n/locales/nl.js +307 -0
- package/dist/i18n/locales/pl.d.ts +316 -0
- package/dist/i18n/locales/pl.js +307 -0
- package/dist/i18n/locales/pt.d.ts +316 -0
- package/dist/i18n/locales/pt.js +310 -0
- package/dist/i18n/locales/ro.d.ts +316 -0
- package/dist/i18n/locales/ro.js +307 -0
- package/dist/i18n/locales/ru.d.ts +316 -0
- package/dist/i18n/locales/ru.js +307 -0
- package/dist/i18n/locales/sq.d.ts +316 -0
- package/dist/i18n/locales/sq.js +307 -0
- package/dist/i18n/locales/sv.d.ts +316 -0
- package/dist/i18n/locales/sv.js +307 -0
- package/dist/i18n/locales/tr.d.ts +316 -0
- package/dist/i18n/locales/tr.js +307 -0
- package/dist/i18n/locales/zh.d.ts +316 -0
- package/dist/i18n/locales/zh.js +303 -0
- package/dist/index.js +597 -527
- package/dist/locales/ar.json +316 -0
- package/dist/locales/de.json +316 -0
- package/dist/locales/el.json +316 -0
- package/dist/locales/en.json +316 -0
- package/dist/locales/es.json +316 -0
- package/dist/locales/fr.json +316 -0
- package/dist/locales/hi.json +316 -0
- package/dist/locales/it.json +316 -0
- package/dist/locales/ja.json +316 -0
- package/dist/locales/nl.json +316 -0
- package/dist/locales/pl.json +316 -0
- package/dist/locales/pt.json +316 -0
- package/dist/locales/ro.json +316 -0
- package/dist/locales/ru.json +316 -0
- package/dist/locales/sq.json +316 -0
- package/dist/locales/sv.json +316 -0
- package/dist/locales/tr.json +316 -0
- package/dist/locales/zh.json +316 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +57 -1
- package/dist/_chunks/chart-DLkVn_ex.js +0 -292
- package/dist/_chunks/subDays-CANHP9hz.js +0 -8
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface BrandMarkProps {
|
|
3
|
+
/** Extra classes from the consuming button's CVA size axis. */
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Apple Pay lockup (Apple logo + "Pay"). Decorative — the parent button
|
|
8
|
+
* carries `aria-hidden` semantics by wrapping it next to the visible /
|
|
9
|
+
* sr-only accessible name, so this SVG is marked `aria-hidden="true"`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ApplePayMark({ className }: BrandMarkProps): ReactNode;
|
|
12
|
+
//# sourceMappingURL=apple-pay.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ProviderMarkProps {
|
|
3
|
+
/** Forwarded to the root `<svg>` for size / colour utility classes. */
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The Apple logo glyph. Single path, `currentColor` fill so it follows
|
|
8
|
+
* the button foreground across light / dark appearances and all four kit
|
|
9
|
+
* themes. Decorative — `aria-hidden`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function AppleMark({ className }: ProviderMarkProps): ReactNode;
|
|
12
|
+
//# sourceMappingURL=apple.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { BrandMarkProps } from './apple-pay';
|
|
3
|
+
/**
|
|
4
|
+
* Google Pay lockup (four-colour Google "G" + "Pay" wordmark). The "G"
|
|
5
|
+
* keeps Google's mandated four brand hues at all times; the "Pay"
|
|
6
|
+
* wordmark inherits `currentColor` so it reads against either the black
|
|
7
|
+
* or the white surface (brand foreground token). Decorative —
|
|
8
|
+
* `aria-hidden="true"`; the accessible name comes from the parent
|
|
9
|
+
* button.
|
|
10
|
+
*/
|
|
11
|
+
export declare function GooglePayMark({ className }: BrandMarkProps): ReactNode;
|
|
12
|
+
//# sourceMappingURL=google-pay.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ProviderMarkProps {
|
|
3
|
+
/** Forwarded to the root `<svg>` for size utility classes. */
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The Google "G" glyph — the canonical Google Identity Services asset.
|
|
8
|
+
* Four hardcoded brand hues (blue / red / yellow / green) that brand
|
|
9
|
+
* guidelines forbid altering; this is why the file lives under
|
|
10
|
+
* src/brand/** and not src/components/**. Decorative — `aria-hidden`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function GoogleMark({ className }: ProviderMarkProps): ReactNode;
|
|
13
|
+
//# sourceMappingURL=google.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type InsertMode = 'text' | 'image' | 'text-image';
|
|
2
|
+
export interface InsertCardField {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface InsertCardData {
|
|
7
|
+
/** Card heading. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Key/value rows. */
|
|
10
|
+
fields: InsertCardField[];
|
|
11
|
+
/** Optional highlighted line (e.g. category / status). */
|
|
12
|
+
highlight?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface InsertPayload {
|
|
15
|
+
/** Which menu item the user chose. */
|
|
16
|
+
mode: InsertMode;
|
|
17
|
+
/** Plain-text summary. Always present. */
|
|
18
|
+
text: string;
|
|
19
|
+
/** Rich HTML summary (heading + list). Always present. */
|
|
20
|
+
html: string;
|
|
21
|
+
/** Branded SVG result-card markup. Empty for mode `'text'`. */
|
|
22
|
+
svg: string;
|
|
23
|
+
/** SVG as an `image/svg+xml` data URI for `<img src>`. Empty for `'text'`. */
|
|
24
|
+
imageDataUri: string;
|
|
25
|
+
}
|
|
26
|
+
export interface InsertButtonProps {
|
|
27
|
+
/** Structured result used to build every payload representation. */
|
|
28
|
+
card: InsertCardData;
|
|
29
|
+
/** Receives the built payload when a menu item is chosen. */
|
|
30
|
+
onInsert: (payload: InsertPayload) => void;
|
|
31
|
+
/** Trigger size. Defaults to `'sm'`. */
|
|
32
|
+
size?: 'sm' | 'md' | 'lg';
|
|
33
|
+
}
|
|
34
|
+
interface ThemeColours {
|
|
35
|
+
fg: string;
|
|
36
|
+
muted: string;
|
|
37
|
+
accent: string;
|
|
38
|
+
border: string;
|
|
39
|
+
bg: string;
|
|
40
|
+
font: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function buildResultText(card: InsertCardData): string;
|
|
43
|
+
export declare function buildResultHtml(card: InsertCardData): string;
|
|
44
|
+
export declare function buildResultCardSvg(card: InsertCardData, c: ThemeColours): string;
|
|
45
|
+
export declare function InsertButton({ card, onInsert, size, }: InsertButtonProps): React.ReactElement;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=insert-result.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type InsertPayload } from '../_shared/insert-result';
|
|
3
|
+
import { type UnitSystem, type BmiCategory } from './bmi';
|
|
4
|
+
export interface BmiResult {
|
|
5
|
+
/** BMI in kg/m². */
|
|
6
|
+
bmi: number;
|
|
7
|
+
/** WHO category the BMI falls into. */
|
|
8
|
+
category: BmiCategory;
|
|
9
|
+
}
|
|
10
|
+
declare const rootVariants: (props?: ({
|
|
11
|
+
width?: "auto" | "full" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
export interface BmiCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
14
|
+
/** Initial unit system. Defaults to `'metric'`. */
|
|
15
|
+
defaultUnitSystem?: UnitSystem;
|
|
16
|
+
/** Fires whenever a valid BMI can be computed (and with `null` when it can't). */
|
|
17
|
+
onResultChange?: (result: BmiResult | null) => void;
|
|
18
|
+
/** When provided, shows an "Insert" button that emits the result for an editor. */
|
|
19
|
+
onInsert?: (payload: InsertPayload) => void;
|
|
20
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Extra class names on the wrapper. */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const BmiCalculator: import("react").ForwardRefExoticComponent<BmiCalculatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=bmi-calculator.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type UnitSystem = 'metric' | 'imperial';
|
|
2
|
+
/** WHO adult BMI categories (kg/m²). Order = ascending BMI. */
|
|
3
|
+
export type BmiCategory = 'underweight' | 'normal' | 'overweight' | 'obese';
|
|
4
|
+
/** 1 lb = 0.45359237 kg (international avoirdupois pound, exact). */
|
|
5
|
+
export declare const KG_PER_LB = 0.45359237;
|
|
6
|
+
/** 1 inch = 2.54 cm (exact). */
|
|
7
|
+
export declare const CM_PER_IN = 2.54;
|
|
8
|
+
/** Inches per foot. */
|
|
9
|
+
export declare const IN_PER_FT = 12;
|
|
10
|
+
export declare const lbToKg: (lb: number) => number;
|
|
11
|
+
export declare const kgToLb: (kg: number) => number;
|
|
12
|
+
export declare const inToCm: (inches: number) => number;
|
|
13
|
+
export declare const cmToIn: (cm: number) => number;
|
|
14
|
+
/** Split a height in centimetres into whole feet + remaining inches. */
|
|
15
|
+
export declare function cmToFtIn(cm: number): {
|
|
16
|
+
ft: number;
|
|
17
|
+
in: number;
|
|
18
|
+
};
|
|
19
|
+
/** Combine feet + inches into centimetres. */
|
|
20
|
+
export declare const ftInToCm: (ft: number, inches: number) => number;
|
|
21
|
+
/**
|
|
22
|
+
* Body mass index in kg/m². Returns `null` when either input is missing or
|
|
23
|
+
* non-positive (height of 0 would divide by zero).
|
|
24
|
+
*/
|
|
25
|
+
export declare function computeBmi(weightKg: number | null, heightCm: number | null): number | null;
|
|
26
|
+
/** WHO adult cut-offs. Boundaries follow WHO: <18.5, <25, <30, ≥30. */
|
|
27
|
+
export declare function bmiCategory(bmi: number): BmiCategory;
|
|
28
|
+
/**
|
|
29
|
+
* Clinically meaningful display range for the gauge arc. Values below/above
|
|
30
|
+
* are clamped so the ring still reads. 12–40 spans severe-thinness through
|
|
31
|
+
* obesity without wasting the dial on impossible extremes.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BMI_GAUGE_MIN = 12;
|
|
34
|
+
export declare const BMI_GAUGE_MAX = 40;
|
|
35
|
+
/** Map a BMI onto a 0–100 arc-fill percent for the radialBar gauge. */
|
|
36
|
+
export declare function bmiToGaugePercent(bmi: number): number;
|
|
37
|
+
//# sourceMappingURL=bmi.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { BmiCalculator } from './bmi-calculator';
|
|
2
|
+
export type { BmiCalculatorProps, BmiResult } from './bmi-calculator';
|
|
3
|
+
export { computeBmi, bmiCategory, bmiToGaugePercent, lbToKg, kgToLb, inToCm, cmToIn, cmToFtIn, ftInToCm, type UnitSystem, type BmiCategory, } from './bmi';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { B as m } from "../../_chunks/bmi-calculator-BRUru9QX.js";
|
|
2
|
+
import { b as e, a as t, c as r, d as T, e as c, f as i, i as b, k as n, l as f } from "../../_chunks/bmi-BxD-tFzU.js";
|
|
3
|
+
export {
|
|
4
|
+
m as BmiCalculator,
|
|
5
|
+
e as bmiCategory,
|
|
6
|
+
t as bmiToGaugePercent,
|
|
7
|
+
r as cmToFtIn,
|
|
8
|
+
T as cmToIn,
|
|
9
|
+
c as computeBmi,
|
|
10
|
+
i as ftInToCm,
|
|
11
|
+
b as inToCm,
|
|
12
|
+
n as kgToLb,
|
|
13
|
+
f as lbToKg
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DialogContentProps } from '../dialog';
|
|
3
|
+
export interface CalculatorDialogProps {
|
|
4
|
+
/** The element that opens the modal (rendered via `Dialog.Trigger asChild`). */
|
|
5
|
+
trigger: ReactNode;
|
|
6
|
+
/** Modal heading — also names the dialog for assistive tech. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Optional supporting line under the title. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** The calculator (or any content) shown inside the modal. */
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** Dialog size. Calculators default to `lg` to fit inputs + result. */
|
|
13
|
+
size?: DialogContentProps['size'];
|
|
14
|
+
/** Controlled open state. */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
/** Uncontrolled initial open state. */
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
/** Open-state change handler. */
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
/** Opaque instance id, forwarded to the dialog content. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Extra class names on the modal body wrapper. */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const CalculatorDialog: import("react").ForwardRefExoticComponent<CalculatorDialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
//# sourceMappingURL=calculator-dialog.d.ts.map
|
|
@@ -33,6 +33,13 @@ export interface ChartProps extends VariantProps<typeof chartVariants> {
|
|
|
33
33
|
toolbar?: boolean;
|
|
34
34
|
/** Locale override — defaults to the active i18next language. */
|
|
35
35
|
locale?: string;
|
|
36
|
+
/**
|
|
37
|
+
* radialBar only. Formats the value printed in the ring centre. Use when the
|
|
38
|
+
* gauge represents a non-percentage figure: pass the arc fill (0–100) as the
|
|
39
|
+
* single `series` value and return the real figure here (e.g. `(_, ) => '22.4'`).
|
|
40
|
+
* Ignored for every other chart type. Defaults to ApexCharts' `${value}%`.
|
|
41
|
+
*/
|
|
42
|
+
radialValueFormatter?: (value: number) => string;
|
|
36
43
|
/** Extra class names on the wrapper. */
|
|
37
44
|
className?: string;
|
|
38
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-
|
|
1
|
+
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-DHyuAPXM.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CONTACT_PROFILE_CARD_ROW_ICONS,
|
|
4
4
|
O as CONTACT_PROFILE_CARD_ROW_KEYS,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type InsertPayload } from '../_shared/insert-result';
|
|
3
|
+
import { type CyclePrediction } from './cycle';
|
|
4
|
+
declare const rootVariants: (props?: ({
|
|
5
|
+
width?: "auto" | "full" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface CycleCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
8
|
+
/** Initial cycle length in days. Defaults to 28. */
|
|
9
|
+
defaultCycleLength?: number;
|
|
10
|
+
/** Fires whenever a prediction can be computed (and `null` when it can't). */
|
|
11
|
+
onResultChange?: (result: CyclePrediction | 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 CycleCalculator: import("react").ForwardRefExoticComponent<CycleCalculatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=cycle-calculator.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Standard menstrual-cycle length. */
|
|
2
|
+
export declare const DEFAULT_CYCLE_LENGTH = 28;
|
|
3
|
+
/** Luteal phase is biologically near-constant at ~14 days. */
|
|
4
|
+
export declare const LUTEAL_PHASE_DAYS = 14;
|
|
5
|
+
/** Sperm survive up to ~5 days before ovulation. */
|
|
6
|
+
export declare const FERTILE_DAYS_BEFORE = 5;
|
|
7
|
+
/** The oocyte is viable ~1 day after ovulation. */
|
|
8
|
+
export declare const FERTILE_DAYS_AFTER = 1;
|
|
9
|
+
export interface CycleInput {
|
|
10
|
+
/** First day of the most recent period. */
|
|
11
|
+
lastPeriodStart: Date;
|
|
12
|
+
/** Average cycle length in days. Defaults to 28. */
|
|
13
|
+
cycleLength?: number;
|
|
14
|
+
/** Period (bleed) length in days. Optional — used for the period range. */
|
|
15
|
+
periodLength?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface DateRange {
|
|
18
|
+
start: Date;
|
|
19
|
+
end: Date;
|
|
20
|
+
}
|
|
21
|
+
export interface CyclePrediction {
|
|
22
|
+
/** Start date of the next period. */
|
|
23
|
+
nextPeriod: Date;
|
|
24
|
+
/** Estimated ovulation date. */
|
|
25
|
+
ovulation: Date;
|
|
26
|
+
/** Fertile window (5 days before ovulation → 1 day after). */
|
|
27
|
+
fertileWindow: DateRange;
|
|
28
|
+
/** Start dates of the next few periods (length = `occurrences`). */
|
|
29
|
+
upcomingPeriods: Date[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Predict ovulation, the fertile window and upcoming periods from the last
|
|
33
|
+
* period's start date. `occurrences` controls how many future periods to
|
|
34
|
+
* list (default 3).
|
|
35
|
+
*/
|
|
36
|
+
export declare function predictCycle(input: CycleInput, occurrences?: number): CyclePrediction;
|
|
37
|
+
//# sourceMappingURL=cycle.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CycleCalculator } from './cycle-calculator';
|
|
2
|
+
export type { CycleCalculatorProps } from './cycle-calculator';
|
|
3
|
+
export { predictCycle, LUTEAL_PHASE_DAYS, type CycleInput, type CyclePrediction, type DateRange, } from './cycle';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-
|
|
1
|
+
import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-DGKuRNVG.js";
|
|
2
2
|
export {
|
|
3
3
|
l as ActionsCellRenderer,
|
|
4
4
|
r as BalanceCellRenderer,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import * as RadixRadioGroup from '@radix-ui/react-radio-group';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
/**
|
|
5
|
+
* Closed relationship vocabulary. The kit owns the localised label for
|
|
6
|
+
* each key (`dependentSelector.relationship.<key>`). `'other'` is the
|
|
7
|
+
* escape hatch for relationships the enum doesn't model.
|
|
8
|
+
*/
|
|
9
|
+
export type DependentRelationship = 'self' | 'son' | 'daughter' | 'child' | 'spouse' | 'parent' | 'sibling' | 'ward' | 'other';
|
|
10
|
+
export interface DependentSelectorPerson {
|
|
11
|
+
/** Stable id — becomes the radio value + `data-option-id`. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Display-formatted name (already formatted by the consumer). */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Closed relationship key — the kit owns the localised label. */
|
|
16
|
+
relationshipKey: DependentRelationship;
|
|
17
|
+
/**
|
|
18
|
+
* Explicit "minor" flag — drives the localised "Minor" badge.
|
|
19
|
+
* Consumer-supplied, NOT derived from `age < 18` (legal age of
|
|
20
|
+
* majority varies by market).
|
|
21
|
+
*/
|
|
22
|
+
isMinor?: boolean;
|
|
23
|
+
/** Avatar image source — falls back to initials, then icon. */
|
|
24
|
+
avatarSrc?: string;
|
|
25
|
+
/** Whole years, pre-computed by the consumer. Display-only. */
|
|
26
|
+
age?: number;
|
|
27
|
+
/**
|
|
28
|
+
* ISO 8601 date of birth. Used ONLY for the row title/tooltip — never
|
|
29
|
+
* parsed for display math (timezone/locale birthday math is the
|
|
30
|
+
* consumer's job).
|
|
31
|
+
*/
|
|
32
|
+
dob?: string;
|
|
33
|
+
/** Disables this row; skipped by arrow navigation. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Shown in a Tooltip on the disabled row (like Radio.disabledReason). */
|
|
36
|
+
disabledReason?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Agent-readiness curated handle for DependentSelector. */
|
|
39
|
+
export interface DependentSelectorHandle {
|
|
40
|
+
getValue: () => string;
|
|
41
|
+
setValue: (value: string) => void;
|
|
42
|
+
}
|
|
43
|
+
declare const rootVariants: (props?: ({
|
|
44
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
45
|
+
tone?: "default" | "checkin" | null | undefined;
|
|
46
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
47
|
+
type RadixRootProps = ComponentPropsWithoutRef<typeof RadixRadioGroup.Root>;
|
|
48
|
+
export interface DependentSelectorProps extends Omit<RadixRootProps, 'children' | 'orientation' | 'value' | 'defaultValue' | 'onValueChange'>, VariantProps<typeof rootVariants> {
|
|
49
|
+
/** Ordered roster to render as options. */
|
|
50
|
+
people: DependentSelectorPerson[];
|
|
51
|
+
/** Controlled selected person id. */
|
|
52
|
+
value?: string;
|
|
53
|
+
/** Uncontrolled initial selection. Ignored when `value` is set. */
|
|
54
|
+
defaultValue?: string;
|
|
55
|
+
/** Fires with the newly selected person id on user selection. */
|
|
56
|
+
onValueChange?: (personId: string) => void;
|
|
57
|
+
/** Accessible group name, rendered as the `<legend>`. */
|
|
58
|
+
label?: string;
|
|
59
|
+
/** Optional helper paragraph under the legend (wired via aria-describedby). */
|
|
60
|
+
description?: string;
|
|
61
|
+
/** Shows N skeleton rows while the roster resolves; sets aria-busy. */
|
|
62
|
+
loading?: boolean;
|
|
63
|
+
/** Validation/empty-confirmation message — role=alert + aria-invalid. */
|
|
64
|
+
error?: string;
|
|
65
|
+
/** Slot shown when no selectable dependents exist (only self / empty). */
|
|
66
|
+
emptyState?: ReactNode;
|
|
67
|
+
/** Forwarded to the radiogroup root as id + data-component-id. */
|
|
68
|
+
id?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare const DependentSelector: import("react").ForwardRefExoticComponent<DependentSelectorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=dependent-selector.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DependentSelector } from './dependent-selector';
|
|
2
|
+
export type { DependentSelectorProps, DependentSelectorPerson, DependentSelectorHandle, DependentRelationship, } from './dependent-selector';
|
|
3
|
+
export { dependentSelectorAgent } from './dependent-selector.agent';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export type DocumentScannerSource = 'camera' | 'upload';
|
|
3
|
+
export interface DocumentCapture {
|
|
4
|
+
/** Data URL of the captured / uploaded image (encoded to `mimeType`). */
|
|
5
|
+
dataUrl: string;
|
|
6
|
+
/** Encoded bytes as a Blob — the consumer persists this. */
|
|
7
|
+
blob: Blob;
|
|
8
|
+
/** Where the image came from. */
|
|
9
|
+
source: DocumentScannerSource;
|
|
10
|
+
/** Intrinsic pixel width of the encoded image. */
|
|
11
|
+
width: number;
|
|
12
|
+
/** Intrinsic pixel height of the encoded image. */
|
|
13
|
+
height: number;
|
|
14
|
+
/** MIME of the encoded image. */
|
|
15
|
+
mimeType: string;
|
|
16
|
+
/** Encoded byte size. */
|
|
17
|
+
byteSize: number;
|
|
18
|
+
/** ISO-8601 UTC timestamp for when the capture was confirmed. */
|
|
19
|
+
capturedAt: string;
|
|
20
|
+
/** Hex-encoded SHA-256 digest of the encoded bytes. */
|
|
21
|
+
sha256: string;
|
|
22
|
+
}
|
|
23
|
+
export type DocumentScannerErrorKind = 'permission-denied' | 'no-camera' | 'not-readable' | 'insecure-context' | 'capture-failed' | 'file-invalid-type' | 'file-too-large';
|
|
24
|
+
export interface DocumentScannerError {
|
|
25
|
+
kind: DocumentScannerErrorKind;
|
|
26
|
+
}
|
|
27
|
+
export type DocumentType = 'tessera-sanitaria' | 'cie' | 'id-card' | 'generic';
|
|
28
|
+
export type DocumentScannerPhase = 'idle' | 'requesting' | 'streaming' | 'captured' | 'error';
|
|
29
|
+
/** Curated imperative handle for agent / external automation. */
|
|
30
|
+
export interface DocumentScannerHandle {
|
|
31
|
+
/** True when a captured or uploaded image is held. */
|
|
32
|
+
hasCapture: () => boolean;
|
|
33
|
+
/** Current lifecycle phase. */
|
|
34
|
+
getPhase: () => DocumentScannerPhase;
|
|
35
|
+
/** Request the camera and begin the viewfinder. */
|
|
36
|
+
startCamera: () => Promise<void> | void;
|
|
37
|
+
/** Freeze the current viewfinder frame. */
|
|
38
|
+
capture: () => Promise<void> | void;
|
|
39
|
+
/** Confirm the current capture, firing `onConfirm`. */
|
|
40
|
+
confirm: () => void;
|
|
41
|
+
/** Discard the current capture and return to the capture path. */
|
|
42
|
+
retake: () => void;
|
|
43
|
+
}
|
|
44
|
+
export interface DocumentScannerProps {
|
|
45
|
+
/** Opaque instance id — emitted as `data-component-id` for the agent registry. */
|
|
46
|
+
id?: string;
|
|
47
|
+
/** Controlled captured-image value. When defined the component is controlled. */
|
|
48
|
+
value?: DocumentCapture | null;
|
|
49
|
+
/** Initial captured image for uncontrolled use; seeds the `captured` preview. */
|
|
50
|
+
defaultValue?: DocumentCapture | null;
|
|
51
|
+
/** Fired when the user confirms a captured or uploaded image. */
|
|
52
|
+
onConfirm?: (capture: DocumentCapture) => void;
|
|
53
|
+
/** Fired when the user discards the current capture to retake / re-upload. */
|
|
54
|
+
onRetake?: () => void;
|
|
55
|
+
/** Fired on a permission / hardware / decode failure (telemetry). */
|
|
56
|
+
onError?: (error: DocumentScannerError) => void;
|
|
57
|
+
/** Drives the overlay frame aspect ratio + the translated hint copy. */
|
|
58
|
+
documentType?: DocumentType;
|
|
59
|
+
/** Camera-vs-upload strategy. `auto` falls back to upload on camera failure. */
|
|
60
|
+
captureMode?: 'auto' | 'camera-only' | 'upload-only';
|
|
61
|
+
/** react-dropzone accept map for the upload fallback. */
|
|
62
|
+
accept?: Record<string, string[]>;
|
|
63
|
+
/** Max upload byte size. Defaults to 10MB. */
|
|
64
|
+
maxSize?: number;
|
|
65
|
+
/** Camera to request. Defaults to the rear (`environment`) camera. */
|
|
66
|
+
facingMode?: 'environment' | 'user';
|
|
67
|
+
/** MIME of the encoded capture. */
|
|
68
|
+
outputType?: 'image/jpeg' | 'image/webp' | 'image/png';
|
|
69
|
+
/** 0..1 quality for lossy `outputType`. Ignored for image/png. */
|
|
70
|
+
outputQuality?: number;
|
|
71
|
+
/** Crop the confirmed image to the overlay frame rect. */
|
|
72
|
+
cropToFrame?: boolean;
|
|
73
|
+
/** Disable all controls and skip the camera request. */
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
/** Accessible label for the component's group region. */
|
|
76
|
+
ariaLabel?: string;
|
|
77
|
+
/** Extra classes merged onto the outermost wrapper. */
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
declare const rootVariants: (props?: ({
|
|
81
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
82
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
83
|
+
declare const viewportVariants: (props?: ({
|
|
84
|
+
frame?: "generic" | "tessera-sanitaria" | "cie" | "id-card" | null | undefined;
|
|
85
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
86
|
+
type SizeVariant = NonNullable<VariantProps<typeof rootVariants>['size']>;
|
|
87
|
+
interface DocumentScannerInternalProps extends DocumentScannerProps {
|
|
88
|
+
/** Visual size variant (exposed via Controls). */
|
|
89
|
+
size?: SizeVariant;
|
|
90
|
+
}
|
|
91
|
+
export declare const DocumentScanner: import("react").ForwardRefExoticComponent<DocumentScannerInternalProps & import("react").RefAttributes<DocumentScannerHandle>>;
|
|
92
|
+
export { rootVariants as documentScannerRootVariants, viewportVariants as documentScannerViewportVariants, };
|
|
93
|
+
//# sourceMappingURL=document-scanner.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DocumentScanner } from './document-scanner';
|
|
2
|
+
export type { DocumentScannerProps, DocumentScannerHandle, DocumentCapture, DocumentScannerSource, DocumentScannerError, DocumentScannerErrorKind, DocumentScannerPhase, DocumentType, } from './document-scanner';
|
|
3
|
+
export { documentScannerAgent } from './document-scanner.agent';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type InsertPayload } from '../_shared/insert-result';
|
|
3
|
+
import { type DueDateMethod, type DueDateResult } from './gestation';
|
|
4
|
+
declare const rootVariants: (props?: ({
|
|
5
|
+
width?: "auto" | "full" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface DueDateCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
8
|
+
/** Initial dating method. Defaults to `'lmp'`. */
|
|
9
|
+
defaultMethod?: DueDateMethod;
|
|
10
|
+
/** Fires whenever a due date can be computed (and with `null` when it can't). */
|
|
11
|
+
onResultChange?: (result: DueDateResult | 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 DueDateCalculator: import("react").ForwardRefExoticComponent<DueDateCalculatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=due-date-calculator.d.ts.map
|