@alfadocs/ui-kit 0.41.2 → 0.43.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/address-autocomplete-CSjMrBvu.js +358 -0
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
- package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
- package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
- package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
- package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
- package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
- package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
- package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
- package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
- package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
- package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
- package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
- package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
- package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
- package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
- package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
- package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/insert-result.d.ts +78 -6
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
- package/dist/components/address-autocomplete/index.d.ts +4 -0
- package/dist/components/address-autocomplete/index.js +6 -0
- package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +3 -0
- package/dist/components/tab-bar/index.js +5 -0
- package/dist/components/tab-bar/tab-bar.d.ts +104 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +11 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/index.js +605 -599
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +16 -1
- package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
- package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
- package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
- package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
|
@@ -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-9jqwDv5x.js";
|
|
2
2
|
export {
|
|
3
3
|
l as ActionsCellRenderer,
|
|
4
4
|
r as BalanceCellRenderer,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { triggerVariants } from '../_shared';
|
|
3
|
-
import '../../tokens/themes/bridges/react-day-picker.css';
|
|
4
3
|
/** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
|
|
5
4
|
export interface DatePickerHandle {
|
|
6
5
|
/** Get the current selected date, or undefined. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { triggerVariants } from '../_shared';
|
|
3
|
-
import '../../tokens/themes/bridges/react-day-picker.css';
|
|
4
3
|
/** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
|
|
5
4
|
export interface DateTimePickerHandle {
|
|
6
5
|
/** Get the current selected datetime, or undefined. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { type InsertPayload } from '../_shared/insert-result';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
3
|
import { type DueDateMethod, type DueDateResult } from './gestation';
|
|
4
4
|
declare const rootVariants: (props?: ({
|
|
5
5
|
width?: "auto" | "full" | null | undefined;
|
|
@@ -11,6 +11,16 @@ export interface DueDateCalculatorProps extends VariantProps<typeof rootVariants
|
|
|
11
11
|
onResultChange?: (result: DueDateResult | null) => void;
|
|
12
12
|
/** When provided, shows an "Insert" button that emits the result for an editor. */
|
|
13
13
|
onInsert?: (payload: InsertPayload) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Which verb the result button performs. Defaults to `'insert'`.
|
|
16
|
+
* Use `'copy'` in an app-shell surface (no editor to insert into) — the
|
|
17
|
+
* button writes the result to the clipboard as a multi-format `ClipboardItem`.
|
|
18
|
+
*/
|
|
19
|
+
insertVariant?: InsertVariant;
|
|
20
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
21
|
+
onCopy?: (mode: InsertMode) => void;
|
|
22
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
23
|
+
onError?: (error: unknown) => void;
|
|
14
24
|
/** Opaque instance id, emitted as `data-component-id`. */
|
|
15
25
|
id?: string;
|
|
16
26
|
/** Extra class names on the wrapper. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as s } from "../../_chunks/due-date-calculator-
|
|
2
|
-
import { D as E, G as o, M as D, T as r, c as T, g as _, t as C } from "../../_chunks/gestation-
|
|
1
|
+
import { D as s } from "../../_chunks/due-date-calculator-Cc4dRqTI.js";
|
|
2
|
+
import { D as E, G as o, M as D, T as r, c as T, g as _, t as C } from "../../_chunks/gestation-mWF4AXea.js";
|
|
3
3
|
export {
|
|
4
4
|
E as DEFAULT_CYCLE_LENGTH,
|
|
5
5
|
s as DueDateCalculator,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { type InsertPayload } from '../_shared/insert-result';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
3
|
import { type Trimester, type GestationalAge } from '../due-date-calculator';
|
|
4
4
|
declare const rootVariants: (props?: ({
|
|
5
5
|
width?: "auto" | "full" | null | undefined;
|
|
@@ -15,8 +15,18 @@ export interface GestationalAgeCalculatorProps extends VariantProps<typeof rootV
|
|
|
15
15
|
defaultMethod?: DateMethod;
|
|
16
16
|
/** Fires whenever a result can be computed (and `null` when it can't). */
|
|
17
17
|
onResultChange?: (result: GestationalAgeResult | null) => void;
|
|
18
|
-
/** When provided, shows
|
|
18
|
+
/** When provided, shows the result-action buttons that emit / copy the result. */
|
|
19
19
|
onInsert?: (payload: InsertPayload) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Which verb the result button performs. Defaults to `'insert'`.
|
|
22
|
+
* Use `'copy'` in an app-shell surface (no editor to insert into) — the
|
|
23
|
+
* button writes the result to the clipboard as a multi-format `ClipboardItem`.
|
|
24
|
+
*/
|
|
25
|
+
insertVariant?: InsertVariant;
|
|
26
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
27
|
+
onCopy?: (mode: InsertMode) => void;
|
|
28
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
29
|
+
onError?: (error: unknown) => void;
|
|
20
30
|
/** Opaque instance id, emitted as `data-component-id`. */
|
|
21
31
|
id?: string;
|
|
22
32
|
/** Extra class names on the wrapper. */
|
|
@@ -21,6 +21,14 @@ export interface HeaderBrandProps extends Omit<AnchorHTMLAttributes<HTMLAnchorEl
|
|
|
21
21
|
children?: ReactNode;
|
|
22
22
|
/** Destination href. Defaults to "/". */
|
|
23
23
|
href?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Render through Radix `Slot` so a consumer's router link (`<Link>`) takes
|
|
26
|
+
* over the brand anchor while keeping the kit's `brandVariants` styling and
|
|
27
|
+
* any forwarded `aria-label`. Pass a single link element as `children` (the
|
|
28
|
+
* logo + wordmark go inside it). With `asChild` off the output is the plain
|
|
29
|
+
* `<a href>` exactly as before.
|
|
30
|
+
*/
|
|
31
|
+
asChild?: boolean;
|
|
24
32
|
}
|
|
25
33
|
export declare const HeaderBrand: import("react").ForwardRefExoticComponent<HeaderBrandProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
26
34
|
export declare function HeaderBrandDivider({ className, ...props }: HTMLAttributes<HTMLSpanElement>): ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as r, a as d, b as H, c as s, d as n, e as t, f as i, g as o } from "../../_chunks/header-
|
|
1
|
+
import { H as r, a as d, b as H, c as s, d as n, e as t, f as i, g as o } from "../../_chunks/header-Ce1Br27u.js";
|
|
2
2
|
export {
|
|
3
3
|
r as Header,
|
|
4
4
|
d as HeaderBrand,
|
|
@@ -9,6 +9,7 @@ export * from './sign-in-with-alfadocs-button';
|
|
|
9
9
|
export { SafeHtml, sanitiseHtml } from './_shared/safe-html';
|
|
10
10
|
export type { SafeHtmlProps, SafeHtmlProfile } from './_shared/safe-html';
|
|
11
11
|
export type { OptionShape } from './_shared/option';
|
|
12
|
+
export * from './address-autocomplete';
|
|
12
13
|
export * from './autocomplete';
|
|
13
14
|
export * from './checkbox';
|
|
14
15
|
export * from './checkbox-group';
|
|
@@ -38,7 +39,7 @@ export * from './switch';
|
|
|
38
39
|
export * from './text-area';
|
|
39
40
|
export * from './text-input';
|
|
40
41
|
export * from './time-picker';
|
|
41
|
-
export { InsertButton, type InsertButtonProps, type InsertPayload, type InsertMode, type InsertCardData, type InsertCardField, } from './_shared/insert-result';
|
|
42
|
+
export { InsertButton, svgCardToPngDataUri, type InsertButtonProps, type InsertVariant, type InsertPayload, type InsertMode, type InsertCardData, type InsertCardField, type SvgCardToPngOptions, } from './_shared/insert-result';
|
|
42
43
|
export * from './accordion';
|
|
43
44
|
export * from './avatar';
|
|
44
45
|
export * from './badge';
|
|
@@ -79,6 +80,7 @@ export * from './sidebar';
|
|
|
79
80
|
export * from './skip-link';
|
|
80
81
|
export * from './stepper-accordion';
|
|
81
82
|
export * from './stepper-progress';
|
|
83
|
+
export * from './tab-bar';
|
|
82
84
|
export * from './tabs';
|
|
83
85
|
export * from './theme-toggle';
|
|
84
86
|
export * from './agenda-card';
|
|
@@ -7,7 +7,7 @@ declare const GLYPH_PRESETS: {
|
|
|
7
7
|
};
|
|
8
8
|
type GlyphPreset = keyof typeof GLYPH_PRESETS;
|
|
9
9
|
declare const wrapperVariants: (props?: ({
|
|
10
|
-
background?: "
|
|
10
|
+
background?: "transparent" | "solid" | null | undefined;
|
|
11
11
|
vibe?: "ghost" | "terminal" | "clean" | "hologram" | "synthwave" | "oscilloscope" | null | undefined;
|
|
12
12
|
mask?: "center" | "none" | null | undefined;
|
|
13
13
|
maskRadius?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-
|
|
1
|
+
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-BzVsG6Ks.js";
|
|
2
2
|
export {
|
|
3
3
|
r as PaymentForm,
|
|
4
4
|
s as formatPaymentAmount,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { type InsertPayload } from '../_shared/insert-result';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
3
|
import { type WeightGainResult } from './weight-gain';
|
|
4
4
|
declare const rootVariants: (props?: ({
|
|
5
5
|
width?: "auto" | "full" | null | undefined;
|
|
@@ -7,8 +7,18 @@ declare const rootVariants: (props?: ({
|
|
|
7
7
|
export interface PregnancyWeightGainProps extends VariantProps<typeof rootVariants> {
|
|
8
8
|
/** Fires whenever a result can be computed (and `null` when it can't). */
|
|
9
9
|
onResultChange?: (result: WeightGainResult | null) => void;
|
|
10
|
-
/** When provided, shows
|
|
10
|
+
/** When provided, shows the result-action buttons that emit / copy the result. */
|
|
11
11
|
onInsert?: (payload: InsertPayload) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Verb the result-action buttons perform. Defaults to `'insert'` (editor
|
|
14
|
+
* extension). Pass `'copy'` from an app shell to copy the result to the
|
|
15
|
+
* clipboard instead.
|
|
16
|
+
*/
|
|
17
|
+
insertVariant?: InsertVariant;
|
|
18
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
19
|
+
onCopy?: (mode: InsertMode) => void;
|
|
20
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
21
|
+
onError?: (error: unknown) => void;
|
|
12
22
|
/** Opaque instance id, emitted as `data-component-id`. */
|
|
13
23
|
id?: string;
|
|
14
24
|
/** Extra class names on the wrapper. */
|
|
@@ -65,7 +65,7 @@ export interface PublicHeaderDropdownLinkProps extends Omit<AnchorHTMLAttributes
|
|
|
65
65
|
children: ReactNode;
|
|
66
66
|
}
|
|
67
67
|
declare const rootVariants: (props?: ({
|
|
68
|
-
variant?: "dark" | "
|
|
68
|
+
variant?: "dark" | "transparent" | "pill" | null | undefined;
|
|
69
69
|
sticky?: "none" | "top" | "scroll-up" | null | undefined;
|
|
70
70
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
71
71
|
export declare const PublicHeader: import("react").ForwardRefExoticComponent<PublicHeaderProps & import("react").RefAttributes<HTMLElement>> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-
|
|
1
|
+
import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-DhGIBd4a.js";
|
|
2
2
|
export {
|
|
3
3
|
t as RichTextEditor,
|
|
4
4
|
o as editorSurfaceVariants,
|
|
@@ -23,6 +23,18 @@ export interface SignDocumentProps {
|
|
|
23
23
|
* that surface signed status. `null` / `undefined` → unsigned.
|
|
24
24
|
*/
|
|
25
25
|
signedAt?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Optional on-behalf attribution. When both `signer` and `subject` are
|
|
28
|
+
* given, a "Signed by {signer} on behalf of {subject}" note renders both
|
|
29
|
+
* near the signature pad (so the signer sees who they're signing for) AND
|
|
30
|
+
* inside the already-signed read-only banner. Omit (the default) and
|
|
31
|
+
* nothing extra renders — the existing subject-agnostic API is unchanged.
|
|
32
|
+
* Provide both to opt in; a lone `signer` or `subject` renders nothing.
|
|
33
|
+
*/
|
|
34
|
+
signedByNote?: {
|
|
35
|
+
signer: string;
|
|
36
|
+
subject: string;
|
|
37
|
+
};
|
|
26
38
|
/** Disable all controls (document still readable). */
|
|
27
39
|
disabled?: boolean;
|
|
28
40
|
/** Render read-only: the document is shown but the pad is suppressed. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const statVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "compact" | "
|
|
4
|
+
variant?: "default" | "compact" | "outlined" | "elevated" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
align?: "center" | "end" | "start" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TabBar — a floating-pill bar of page-level navigation tabs.
|
|
3
|
+
*
|
|
4
|
+
* Each tab is an icon + label (+ optional count badge); the active tab is
|
|
5
|
+
* marked with `aria-current="page"` and an `--accent` underline. The bar is a
|
|
6
|
+
* glassy `--card` pill that floats on whatever canvas the consumer provides
|
|
7
|
+
* (the strip area itself is transparent, so it blends with the surrounding
|
|
8
|
+
* surface).
|
|
9
|
+
*
|
|
10
|
+
* Two layouts:
|
|
11
|
+
* - default (`fill` off): content-width tabs that **centre** when they fit and
|
|
12
|
+
* scroll from the inline-start (`safe center`) when they overflow, with a
|
|
13
|
+
* gutter preserved at both ends. The label stacks under the icon below `sm`.
|
|
14
|
+
* Use this when the tab set is open-ended (e.g. a marketplace app's routes).
|
|
15
|
+
* - `fill`: equal-width tabs that fill the bar and always stack the label under
|
|
16
|
+
* the icon — a fixed, always-visible set that fits any column width without
|
|
17
|
+
* scrolling (e.g. a patient portal's four sections).
|
|
18
|
+
*
|
|
19
|
+
* Tabs render as links when given an `href` (real navigation) or as buttons
|
|
20
|
+
* otherwise (in-app view switching via `onSelect`). Use it as a header (top,
|
|
21
|
+
* default) for section navigation; `position="bottom"` floats it from the
|
|
22
|
+
* bottom edge for a footer.
|
|
23
|
+
*
|
|
24
|
+
* SPA / consumer-router links: pass `renderLink` and TabBar hands each `href`
|
|
25
|
+
* tab off to your router's `<Link>` instead of rendering its own `<a>` — the
|
|
26
|
+
* embedded MarketplaceAppShell strip uses this so a tab click is a client-side
|
|
27
|
+
* route change, not a full page navigation. The kit forwards the same
|
|
28
|
+
* `className` + `aria-current` so the accent-underline active styling and the
|
|
29
|
+
* `aria-current="page"` marker survive in both modes. With `renderLink`
|
|
30
|
+
* omitted the output is the plain `<a href>` exactly as before.
|
|
31
|
+
*/
|
|
32
|
+
import { type MouseEvent, type ReactNode } from 'react';
|
|
33
|
+
export interface TabBarItem {
|
|
34
|
+
/** Stable id; also the value handed to `onSelect` for button tabs. */
|
|
35
|
+
id: string;
|
|
36
|
+
/** Pre-translated label — consumers localise their own nav copy. */
|
|
37
|
+
label: string;
|
|
38
|
+
/** Optional leading icon (a lucide-react element or equivalent), tinted with `--accent`. */
|
|
39
|
+
icon?: ReactNode;
|
|
40
|
+
/** Optional unseen-item count rendered as a pill badge. */
|
|
41
|
+
badgeCount?: number;
|
|
42
|
+
/** Mark the tab as the current page (`aria-current='page'` + accent underline). */
|
|
43
|
+
isActive?: boolean;
|
|
44
|
+
/** When set, the tab renders as a link to this href; otherwise it's a button. */
|
|
45
|
+
href?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional click handler threaded onto the link tab's `<a>` (or, when
|
|
48
|
+
* `renderLink` is supplied, available to the consumer's router element). Use
|
|
49
|
+
* it to intercept a same-origin click and route client-side without a full
|
|
50
|
+
* navigation. Only applies to `href` (link) tabs — button tabs use `onSelect`.
|
|
51
|
+
*/
|
|
52
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Props the kit hands to `renderLink` for each `href` tab. The consumer returns
|
|
56
|
+
* their router's `<Link to={href}>` carrying the same `className` (the active
|
|
57
|
+
* accent-underline styling) and `aria-current` (`'page'` on the active tab).
|
|
58
|
+
*/
|
|
59
|
+
export interface TabBarRenderLinkProps {
|
|
60
|
+
/** The tab's destination — feed it to your router's `to` / `href`. */
|
|
61
|
+
href: string;
|
|
62
|
+
/** The kit's tab classes (CVA output) — apply verbatim to the link element. */
|
|
63
|
+
className: string;
|
|
64
|
+
/** Icon + label + badge — render as the link's children. */
|
|
65
|
+
children: ReactNode;
|
|
66
|
+
/** `'page'` on the active tab, otherwise omitted — forward to the link. */
|
|
67
|
+
'aria-current'?: 'page';
|
|
68
|
+
/** Optional per-item click handler (the item's `onClick`), if supplied. */
|
|
69
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
70
|
+
}
|
|
71
|
+
export interface TabBarProps {
|
|
72
|
+
/** The tabs, in order. */
|
|
73
|
+
items: TabBarItem[];
|
|
74
|
+
/** Accessible name for the `<nav>` landmark. */
|
|
75
|
+
ariaLabel: string;
|
|
76
|
+
/** Fires with the tab `id` when a button tab (one without `href`) is chosen. */
|
|
77
|
+
onSelect?: (id: string) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Render an `href` tab via the consumer's router instead of the kit's own
|
|
80
|
+
* `<a>`. TabBar calls it for each link tab and renders the returned node; the
|
|
81
|
+
* consumer returns their `<Link to={href}>` carrying the supplied `className`
|
|
82
|
+
* + `aria-current` so the active accent underline and the `aria-current="page"`
|
|
83
|
+
* marker are preserved. Use it for SPA navigation (e.g. the MarketplaceAppShell
|
|
84
|
+
* strip) so a tab click is a client-side route change, not a full page load.
|
|
85
|
+
* Omit it to render the plain `<a href>` exactly as before. Button tabs (no
|
|
86
|
+
* `href`) ignore `renderLink` and continue to use `onSelect`.
|
|
87
|
+
*/
|
|
88
|
+
renderLink?: (props: TabBarRenderLinkProps) => ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Equal-width tabs that fill the bar and always stack the label under the
|
|
91
|
+
* icon (for a fixed, always-visible set). Off (default) = content-width tabs
|
|
92
|
+
* that centre when they fit and scroll when they overflow.
|
|
93
|
+
*/
|
|
94
|
+
fill?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Float side. `'top'` (default) gutters from the top edge for a header;
|
|
97
|
+
* `'bottom'` gutters from the bottom edge for a footer.
|
|
98
|
+
*/
|
|
99
|
+
position?: 'top' | 'bottom';
|
|
100
|
+
/** Extra classes merged onto the outer strip (e.g. sticky/fixed positioning). */
|
|
101
|
+
className?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare const TabBar: import("react").ForwardRefExoticComponent<TabBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
104
|
+
//# sourceMappingURL=tab-bar.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { type InsertPayload } from '../_shared/insert-result';
|
|
2
|
+
import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
|
|
3
3
|
import { type UnitCategory } from './units';
|
|
4
4
|
declare const rootVariants: (props?: ({
|
|
5
5
|
width?: "auto" | "full" | null | undefined;
|
|
@@ -11,6 +11,16 @@ export interface UnitConverterProps extends VariantProps<typeof rootVariants> {
|
|
|
11
11
|
onResultChange?: (value: number | null) => void;
|
|
12
12
|
/** When provided, shows an "Insert" button that emits the result for an editor. */
|
|
13
13
|
onInsert?: (payload: InsertPayload) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Which verb the result button performs. Defaults to `'insert'`.
|
|
16
|
+
* Use `'copy'` in an app-shell surface (no editor to insert into) — the
|
|
17
|
+
* button writes the result to the clipboard as a multi-format `ClipboardItem`.
|
|
18
|
+
*/
|
|
19
|
+
insertVariant?: InsertVariant;
|
|
20
|
+
/** `copy` variant only — fired after a successful clipboard write. */
|
|
21
|
+
onCopy?: (mode: InsertMode) => void;
|
|
22
|
+
/** `copy` variant only — fired if the clipboard write can't proceed. */
|
|
23
|
+
onError?: (error: unknown) => void;
|
|
14
24
|
/** Opaque instance id, emitted as `data-component-id`. */
|
|
15
25
|
id?: string;
|
|
16
26
|
/** Extra class names on the wrapper. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-
|
|
1
|
+
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-BFNpzTiw.js";
|
|
2
2
|
export {
|
|
3
3
|
r as CORE_PATIENT_FIELDS,
|
|
4
4
|
e as WorkflowCard,
|
|
@@ -189,6 +189,19 @@ export declare const arUi: {
|
|
|
189
189
|
readonly results_many: "{{count}} نتيجة";
|
|
190
190
|
readonly results_other: "{{count}} نتيجة";
|
|
191
191
|
};
|
|
192
|
+
readonly addressAutocomplete: {
|
|
193
|
+
readonly ariaLabel: "العنوان";
|
|
194
|
+
readonly listLabel: "اقتراحات العنوان";
|
|
195
|
+
readonly placeholder: "ابدأ بكتابة عنوان…";
|
|
196
|
+
readonly loading: "جارٍ تحميل الاقتراحات…";
|
|
197
|
+
readonly noResults: "لا توجد عناوين مطابقة";
|
|
198
|
+
readonly results_one: "{{count}} اقتراح";
|
|
199
|
+
readonly results_zero: "{{count}} اقتراحات";
|
|
200
|
+
readonly results_two: "{{count}} اقتراحات";
|
|
201
|
+
readonly results_few: "{{count}} اقتراحات";
|
|
202
|
+
readonly results_many: "{{count}} اقتراحات";
|
|
203
|
+
readonly results_other: "{{count}} اقتراحات";
|
|
204
|
+
};
|
|
192
205
|
readonly phone: {
|
|
193
206
|
readonly placeholder: "رقم الهاتف";
|
|
194
207
|
readonly searchCountry: "ابحث عن الدول…";
|
|
@@ -1401,6 +1414,7 @@ export declare const arUi: {
|
|
|
1401
1414
|
readonly loading: "جارٍ تحميل PDF…";
|
|
1402
1415
|
readonly error: "تعذّر تحميل PDF";
|
|
1403
1416
|
readonly pageOverlay: "طبقة الصفحة {{page}}";
|
|
1417
|
+
readonly pagesRegionLabel: "صفحات المستند";
|
|
1404
1418
|
};
|
|
1405
1419
|
readonly mapView: {
|
|
1406
1420
|
readonly label: "خريطة";
|
|
@@ -1792,6 +1806,9 @@ export declare const arUi: {
|
|
|
1792
1806
|
readonly text: "إدراج نص";
|
|
1793
1807
|
readonly image: "إدراج صورة";
|
|
1794
1808
|
readonly textImage: "إدراج نص + صورة";
|
|
1809
|
+
readonly copyText: "نسخ النص";
|
|
1810
|
+
readonly copyImage: "نسخ الصورة";
|
|
1811
|
+
readonly copyTextImage: "نسخ النص + الصورة";
|
|
1795
1812
|
readonly title: {
|
|
1796
1813
|
readonly bmi: "مؤشر كتلة الجسم";
|
|
1797
1814
|
readonly dueDate: "تاريخ الولادة المتوقع";
|