@alfadocs/ui-kit 0.50.1 → 0.52.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/{agenda-card-BaSfVfrL.js → agenda-card-Bl-SBiCh.js} +55 -45
- package/dist/_chunks/agenda-tray-DA6qj8BL.js +203 -0
- package/dist/_chunks/{ai-consent-banner-F2md5JD3.js → ai-consent-banner-DBKV27je.js} +2 -2
- package/dist/_chunks/ai-tools-rail-7tC3GT4h.js +340 -0
- package/dist/_chunks/{alert-CUTxnym2.js → alert-_mUKLmwA.js} +54 -44
- package/dist/_chunks/{audio-recorder-DVJXV7_k.js → audio-recorder-D6OVfNiZ.js} +2 -2
- package/dist/_chunks/{booking-DljH0JkS.js → booking-BUV9fspj.js} +2 -2
- package/dist/_chunks/{document-scanner-Cxqvq7GR.js → document-scanner-biBS_f6c.js} +2 -2
- package/dist/_chunks/dropdown-menu-DwwPovMZ.js +354 -0
- package/dist/_chunks/{editable-currency-cell-renderer-Bh48OHRv.js → editable-currency-cell-renderer-D5C5tCfu.js} +3 -3
- package/dist/_chunks/{freemium-paywall-BWaLWje-.js → freemium-paywall-gHGA44dW.js} +2 -2
- package/dist/_chunks/{header-settings-Bx0Biimh.js → header-settings-D5Z2B_Yz.js} +3 -3
- package/dist/_chunks/{logo-yituK7sE.js → logo-1FuSGx0n.js} +2 -1
- package/dist/_chunks/marketplace-app-shell-C4OYAC22.js +513 -0
- package/dist/_chunks/maximize-2-Cm9OUQ2m.js +17 -0
- package/dist/_chunks/{patient-search-BJOmTmDA.js → patient-search-CArmRKeg.js} +3 -3
- package/dist/_chunks/patient-shell-Coarf346.js +162 -0
- package/dist/_chunks/{payment-form-xmeCkxas.js → payment-form-DJ9vnzrT.js} +2 -2
- package/dist/_chunks/{pdf-viewer-q1D3Uion.js → pdf-viewer-4odMFuFW.js} +2 -2
- package/dist/_chunks/{practice-results-Cq1y8JFD.js → practice-results-CtfciF2v.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-DT_244bG.js → pregnancy-dating-BA37LSkF.js} +15 -15
- package/dist/_chunks/{privacy-lock-BmX_gkvt.js → privacy-lock-BN3L-alb.js} +2 -2
- package/dist/_chunks/{public-footer.agent-okt8ZRc5.js → public-footer.agent-CfXuW1x6.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-CFYyLSEX.js → recaptcha-widget-BCNHsgqt.js} +2 -2
- package/dist/_chunks/{sidebar-h78cTNLh.js → sidebar-DPEHzxLZ.js} +397 -346
- package/dist/_chunks/{sign-document-CZkAf28g.js → sign-document-Bzld9jVM.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-CuYn_kKP.js → sign-in-with-alfadocs-button-BpAjVmsI.js} +2 -2
- package/dist/_chunks/{task-card-CPyQ5AXC.js → task-card-BwY9jaV1.js} +48 -42
- package/dist/_chunks/task-tray-Cb_hK4yb.js +234 -0
- package/dist/_chunks/{theme-toggle-ClATnY4Q.js → theme-toggle-DAW7uC0B.js} +3 -3
- package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +139 -0
- package/dist/_chunks/use-theme-CAuo6EYT.js +159 -0
- package/dist/_chunks/{warning-stack-CXfoAT-_.js → warning-stack-Cv4fr5zo.js} +2 -2
- package/dist/_chunks/{workflow-map-DzX_LI4y.js → workflow-map-BJDUNYlX.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +47 -12
- package/dist/components/agenda-card/agenda-card.d.ts +19 -2
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/agenda-tray.d.ts +24 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +8 -0
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +15 -15
- package/dist/components/key-value-pair/key-value-pair.d.ts +1 -1
- package/dist/components/logo/index.js +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-dating/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/separator/separator.d.ts +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +8 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +15 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/task-tray/task-tray.d.ts +24 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow/workflow-map.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +12 -10
- package/dist/hooks/use-edge-resize.d.ts +78 -0
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.js +7 -3
- package/dist/i18n/locales/de.d.ts +4 -0
- package/dist/i18n/locales/de.js +7 -3
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.js +7 -3
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.js +7 -3
- package/dist/i18n/locales/es.d.ts +4 -0
- package/dist/i18n/locales/es.js +7 -3
- package/dist/i18n/locales/fr.d.ts +4 -0
- package/dist/i18n/locales/fr.js +7 -3
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.js +7 -3
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.js +7 -3
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.js +7 -3
- package/dist/i18n/locales/nl.d.ts +4 -0
- package/dist/i18n/locales/nl.js +7 -3
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.js +7 -3
- package/dist/i18n/locales/pt.d.ts +4 -0
- package/dist/i18n/locales/pt.js +7 -3
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.js +7 -3
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.js +7 -3
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.js +7 -3
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.js +7 -3
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.js +7 -3
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.js +7 -3
- package/dist/index.js +31 -31
- package/dist/locales/ar.json +7 -3
- package/dist/locales/de.json +7 -3
- package/dist/locales/el.json +7 -3
- package/dist/locales/en.json +7 -3
- package/dist/locales/es.json +7 -3
- package/dist/locales/fr.json +7 -3
- package/dist/locales/hi.json +7 -3
- package/dist/locales/it.json +7 -3
- package/dist/locales/ja.json +7 -3
- package/dist/locales/nl.json +7 -3
- package/dist/locales/pl.json +7 -3
- package/dist/locales/pt.json +7 -3
- package/dist/locales/ro.json +7 -3
- package/dist/locales/ru.json +7 -3
- package/dist/locales/sq.json +7 -3
- package/dist/locales/sv.json +7 -3
- package/dist/locales/tr.json +7 -3
- package/dist/locales/zh.json +7 -3
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +8 -6
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-tray-DQayYmQ0.js +0 -165
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +0 -280
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +0 -16
- package/dist/_chunks/dropdown-menu-CUEXqKis.js +0 -299
- package/dist/_chunks/marketplace-app-shell-UKSLx9K_.js +0 -428
- package/dist/_chunks/patient-shell-DUmhXnFq.js +0 -174
- package/dist/_chunks/task-tray-B8jFv5FV.js +0 -196
- package/dist/_chunks/use-theme-C2dHKUAN.js +0 -145
|
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { ButtonProps } from '../button/button';
|
|
4
4
|
type ButtonIntent = NonNullable<ButtonProps['intent']>;
|
|
5
5
|
declare const iconButtonGroupVariants: (props?: ({
|
|
6
|
-
orientation?: "
|
|
6
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type IconButtonGroupRole = 'group' | 'toolbar' | 'radiogroup';
|
|
9
9
|
export type IconButtonGroupMode = 'momentary' | 'toggle-single' | 'toggle-multi';
|
|
@@ -71,7 +71,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
71
71
|
role?: "group";
|
|
72
72
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
73
73
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
74
|
-
orientation?: "
|
|
74
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
75
75
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
76
76
|
'aria-label': string;
|
|
77
77
|
'aria-labelledby'?: never;
|
|
@@ -84,7 +84,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
84
84
|
role: "toolbar";
|
|
85
85
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
86
86
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
87
|
-
orientation?: "
|
|
87
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
88
88
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
89
89
|
'aria-label'?: never;
|
|
90
90
|
'aria-labelledby': string;
|
|
@@ -97,7 +97,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
97
97
|
role?: "group";
|
|
98
98
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
99
99
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
100
|
-
orientation?: "
|
|
100
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
101
101
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
102
102
|
'aria-label'?: never;
|
|
103
103
|
'aria-labelledby': string;
|
|
@@ -110,7 +110,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
110
110
|
role: "toolbar";
|
|
111
111
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
112
112
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
113
|
-
orientation?: "
|
|
113
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
114
114
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
115
115
|
'aria-label': string;
|
|
116
116
|
'aria-labelledby'?: never;
|
|
@@ -123,7 +123,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
123
123
|
role?: "group";
|
|
124
124
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
125
125
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
126
|
-
orientation?: "
|
|
126
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
127
127
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
128
128
|
'aria-label': string;
|
|
129
129
|
'aria-labelledby'?: never;
|
|
@@ -136,7 +136,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
136
136
|
role: "toolbar";
|
|
137
137
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
138
138
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
139
|
-
orientation?: "
|
|
139
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
140
140
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
141
141
|
'aria-label': string;
|
|
142
142
|
'aria-labelledby'?: never;
|
|
@@ -149,7 +149,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
149
149
|
role: "radiogroup";
|
|
150
150
|
mode: "toggle-single";
|
|
151
151
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
152
|
-
orientation?: "
|
|
152
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
153
153
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
154
154
|
'aria-label'?: never;
|
|
155
155
|
'aria-labelledby': string;
|
|
@@ -162,7 +162,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
162
162
|
role?: "group";
|
|
163
163
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
164
164
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
165
|
-
orientation?: "
|
|
165
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
166
166
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
167
167
|
'aria-label'?: never;
|
|
168
168
|
'aria-labelledby': string;
|
|
@@ -175,7 +175,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
175
175
|
role: "toolbar";
|
|
176
176
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
177
177
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
178
|
-
orientation?: "
|
|
178
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
179
179
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
180
180
|
'aria-label'?: never;
|
|
181
181
|
'aria-labelledby': string;
|
|
@@ -188,7 +188,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
188
188
|
role: "radiogroup";
|
|
189
189
|
mode: "toggle-single";
|
|
190
190
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
191
|
-
orientation?: "
|
|
191
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
192
192
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
193
193
|
'aria-label': string;
|
|
194
194
|
'aria-labelledby'?: never;
|
|
@@ -201,7 +201,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
201
201
|
role?: "group";
|
|
202
202
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
203
203
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
204
|
-
orientation?: "
|
|
204
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
205
205
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
206
206
|
'aria-label': string;
|
|
207
207
|
'aria-labelledby'?: never;
|
|
@@ -214,7 +214,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
214
214
|
role: "toolbar";
|
|
215
215
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
216
216
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
217
|
-
orientation?: "
|
|
217
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
218
218
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
219
219
|
'aria-label'?: never;
|
|
220
220
|
'aria-labelledby': string;
|
|
@@ -227,7 +227,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
227
227
|
role?: "group";
|
|
228
228
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
229
229
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
230
|
-
orientation?: "
|
|
230
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
231
231
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) | (SharedPropsBase & {
|
|
232
232
|
'aria-label'?: never;
|
|
233
233
|
'aria-labelledby': string;
|
|
@@ -240,7 +240,7 @@ export declare const IconButtonGroup: import("react").ForwardRefExoticComponent<
|
|
|
240
240
|
role: "toolbar";
|
|
241
241
|
mode?: "momentary" | "toggle-single" | "toggle-multi";
|
|
242
242
|
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "role" | "children"> & VariantProps<(props?: ({
|
|
243
|
-
orientation?: "
|
|
243
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
244
244
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>)) & import("react").RefAttributes<HTMLDivElement>>;
|
|
245
245
|
export {};
|
|
246
246
|
//# sourceMappingURL=icon-button-group.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const keyValuePairVariants: (props?: ({
|
|
4
|
-
layout?: "
|
|
4
|
+
layout?: "vertical" | "horizontal" | null | undefined;
|
|
5
5
|
hasIcon?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface KeyValuePairProps extends React.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof keyValuePairVariants>, 'hasIcon'> {
|
|
@@ -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-DJ9vnzrT.js";
|
|
2
2
|
export {
|
|
3
3
|
r as PaymentForm,
|
|
4
4
|
s as formatPaymentAmount,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, a as A, P as L, S as e, c as S, p as _ } from "../../_chunks/public-footer.agent-
|
|
1
|
+
import { D as s, a as A, P as L, S as e, c as S, p as _ } from "../../_chunks/public-footer.agent-CfXuW1x6.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DEFAULT_MARKETING_BASE_URL,
|
|
4
4
|
A as DEFAULT_SOCIAL_URLS,
|
|
@@ -8,7 +8,7 @@ export interface RadioGroupHandle {
|
|
|
8
8
|
setValue: (value: string) => void;
|
|
9
9
|
}
|
|
10
10
|
declare const radioGroupVariants: (props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "vertical" | "horizontal" | "card" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
type RadixRootProps = ComponentPropsWithoutRef<typeof RadixRadioGroup.Root>;
|
|
14
14
|
export interface RadioGroupProps extends Omit<RadixRootProps, 'children' | 'orientation'>, VariantProps<typeof radioGroupVariants> {
|
|
@@ -9,7 +9,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
9
9
|
* note in the user story (layout/separator.mdx).
|
|
10
10
|
*/
|
|
11
11
|
declare const separatorVariants: (props?: ({
|
|
12
|
-
orientation?: "
|
|
12
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
13
13
|
intensity?: "strong" | "subtle" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
export interface SeparatorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-orientation'>, VariantProps<typeof separatorVariants> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-
|
|
1
|
+
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-DPEHzxLZ.js";
|
|
2
2
|
import { u as k } from "../../_chunks/use-persistent-state-i23OWy6G.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Sidebar,
|
|
@@ -27,6 +27,14 @@ export interface SidebarProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
27
27
|
open?: boolean;
|
|
28
28
|
/** Overlay-only: fires when the dialog opens/closes. */
|
|
29
29
|
onOpenChange?: (open: boolean) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Opt-in drag handle on the inline-end edge (expanded mode only).
|
|
32
|
+
* Dragging or arrow keys write the committed width to the
|
|
33
|
+
* `--sidebar-modern-expanded-size` custom property on the root;
|
|
34
|
+
* Enter / double-click resets to the token default (248px).
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
resizable?: boolean;
|
|
30
38
|
/** Override the nav aria-label. */
|
|
31
39
|
'aria-label'?: string;
|
|
32
40
|
}
|
|
@@ -3,12 +3,12 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
export declare const tabsListVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "underlined" | "pills" | null | undefined;
|
|
6
|
-
orientation?: "
|
|
6
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export declare const tabsTriggerVariants: (props?: ({
|
|
9
9
|
variant?: "default" | "underlined" | "pills" | null | undefined;
|
|
10
10
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
-
orientation?: "
|
|
11
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
type TabsOverflow = 'dropdown' | 'select';
|
|
14
14
|
export interface TabsHandle {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
export type TaskStatus = 'open' | 'in-progress' | 'done';
|
|
4
4
|
export type TaskPriority = 'low' | 'normal' | 'high';
|
|
@@ -15,6 +15,14 @@ export interface TaskItem {
|
|
|
15
15
|
* the localised string.
|
|
16
16
|
*/
|
|
17
17
|
dueLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Linked-entity line (the patient / company / operator the task points
|
|
20
|
+
* at). Rendered as an eyebrow under the description; localised by the
|
|
21
|
+
* consumer (e.g. "Patient: Mario Rossi").
|
|
22
|
+
*/
|
|
23
|
+
linkedLabel?: string;
|
|
24
|
+
/** Free-text note attached to the task — muted body line, clamped. */
|
|
25
|
+
note?: string;
|
|
18
26
|
/** Lifecycle state — drives the leading icon. */
|
|
19
27
|
status?: TaskStatus;
|
|
20
28
|
/** Priority — `high` colours the leading icon as `--destructive`. */
|
|
@@ -29,6 +37,12 @@ export interface TaskCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
29
37
|
size?: 'sm' | 'md';
|
|
30
38
|
/** Fires when the row is activated (click / Enter / Space). */
|
|
31
39
|
onActivate?: (item: TaskItem) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Trailing per-row action toolbar (icon buttons: mark done, schedule,
|
|
42
|
+
* edit, …). Rendered above the stretched-link overlay so the controls
|
|
43
|
+
* stay clickable inside an interactive row.
|
|
44
|
+
*/
|
|
45
|
+
actions?: ReactNode;
|
|
32
46
|
}
|
|
33
47
|
declare const taskCardVariants: (props?: ({
|
|
34
48
|
size?: "sm" | "md" | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { type TaskItem } from '../task-card';
|
|
4
4
|
declare const taskTrayVariants: (props?: ({
|
|
@@ -45,6 +45,29 @@ export interface TaskTrayProps extends Omit<HTMLAttributes<HTMLElement>, 'onClic
|
|
|
45
45
|
/** Render an empty state when `items` is empty and `loading` is false. */
|
|
46
46
|
emptyTitle?: string;
|
|
47
47
|
emptyDescription?: string;
|
|
48
|
+
/** Optional CTA wired into the empty state (EmptyState primaryAction). */
|
|
49
|
+
emptyAction?: {
|
|
50
|
+
label: string;
|
|
51
|
+
onClick: () => void;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Pinned footer link (e.g. "All my undone tasks (12)"). Localised by
|
|
55
|
+
* the consumer; rendered after the list, before the section closes.
|
|
56
|
+
*/
|
|
57
|
+
viewAllLabel?: string;
|
|
58
|
+
/** Fires when the footer link is activated. Required to render it. */
|
|
59
|
+
onViewAll?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Per-row trailing action toolbar, forwarded to each TaskCard's
|
|
62
|
+
* `actions` slot.
|
|
63
|
+
*/
|
|
64
|
+
renderItemActions?: (item: TaskItem) => ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Constrain the list to the tray's own height and scroll inside it —
|
|
67
|
+
* pair with a height/max-height on `className`. The scroll region is
|
|
68
|
+
* keyboard-focusable so it stays operable without a pointer.
|
|
69
|
+
*/
|
|
70
|
+
scrollable?: boolean;
|
|
48
71
|
}
|
|
49
72
|
export declare const TaskTray: import("react").ForwardRefExoticComponent<TaskTrayProps & import("react").RefAttributes<HTMLElement>>;
|
|
50
73
|
export {};
|
|
@@ -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-BJDUNYlX.js";
|
|
2
2
|
export {
|
|
3
3
|
r as CORE_PATIENT_FIELDS,
|
|
4
4
|
e as WorkflowCard,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { type EnrollmentCriteria, type WorkflowGraph } from './workflow-types';
|
|
3
3
|
declare const rootVariants: (props?: ({
|
|
4
|
-
orientation?: "
|
|
4
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
5
5
|
compact?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface WorkflowMapProps extends VariantProps<typeof rootVariants> {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -17,4 +17,5 @@ export { useDirection, useDocumentDirection, type Direction, } from './use-direc
|
|
|
17
17
|
export { usePersistentState } from './use-persistent-state';
|
|
18
18
|
export { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect';
|
|
19
19
|
export { useWebOtp, type UseWebOtpOptions } from './use-web-otp';
|
|
20
|
+
export { useEdgeResize, type UseEdgeResizeOptions, type UseEdgeResizeReturn, type EdgeResizeSeparatorProps, } from './use-edge-resize';
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { u as v } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
|
|
2
2
|
import { u as D } from "../_chunks/use-media-query-CcAx5SMM.js";
|
|
3
3
|
import { u as _ } from "../_chunks/use-scroll-to-first-error-4Za-u5Nw.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { A as
|
|
4
|
+
import { u as I } from "../_chunks/use-count-up-BLLetaZ8.js";
|
|
5
|
+
import { u as R } from "../_chunks/use-locale-BkCIHujH.js";
|
|
6
|
+
import { A as w, T as K, a as H, r as M, t as Y, u as q } from "../_chunks/use-theme-CAuo6EYT.js";
|
|
7
7
|
import { u as G } from "../_chunks/use-controllable-state-BiY4xTzM.js";
|
|
8
8
|
import { u as U } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
|
|
9
9
|
import { u as j } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
|
|
10
10
|
import { useState as x, useRef as b, useEffect as E } from "react";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Q, a as W } from "../_chunks/use-direction-Dp8h70PP.js";
|
|
12
12
|
import { u as N } from "../_chunks/use-persistent-state-i23OWy6G.js";
|
|
13
13
|
import { u as Z } from "../_chunks/use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
14
14
|
import { u as ee } from "../_chunks/use-web-otp-D_utzp6S.js";
|
|
15
|
+
import { u as re } from "../_chunks/use-edge-resize-ZnGG7gyO.js";
|
|
15
16
|
function S(e, o) {
|
|
16
17
|
const [t, c] = x(e), u = b(null);
|
|
17
18
|
return E(() => {
|
|
@@ -82,21 +83,22 @@ function C(e, o = {}) {
|
|
|
82
83
|
}, [t, c, u, e]);
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
w as ACCESSIBILITY_STORAGE_KEY,
|
|
87
|
+
K as THEME_CLASS,
|
|
87
88
|
H as THEME_STORAGE_KEY,
|
|
88
89
|
M as resolveTheme,
|
|
89
90
|
Y as themeClassList,
|
|
90
91
|
G as useControllableState,
|
|
91
92
|
U as useCopyToClipboard,
|
|
92
|
-
|
|
93
|
+
I as useCountUp,
|
|
93
94
|
j as useDebouncedCallback,
|
|
94
95
|
S as useDebouncedValue,
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
Q as useDirection,
|
|
97
|
+
W as useDocumentDirection,
|
|
98
|
+
re as useEdgeResize,
|
|
97
99
|
C as useFocusTrap,
|
|
98
100
|
Z as useIsomorphicLayoutEffect,
|
|
99
|
-
|
|
101
|
+
R as useLocale,
|
|
100
102
|
D as useMediaQuery,
|
|
101
103
|
N as usePersistentState,
|
|
102
104
|
v as usePrefersReducedMotion,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pixel-based edge-resize for fixed-width chrome surfaces (the Sidebar's
|
|
3
|
+
* inline-end edge, the AiToolsRail panel's inner edge). Mirrors the
|
|
4
|
+
* separator semantics of `Resizable`'s Handle — `role="separator"`,
|
|
5
|
+
* arrow keys with RTL flip, Shift for coarse steps, Home/End to the
|
|
6
|
+
* extremes, Enter or double-click to reset — but sizes a single target
|
|
7
|
+
* element in pixels instead of distributing percentages across a panel
|
|
8
|
+
* group.
|
|
9
|
+
*
|
|
10
|
+
* The hook owns the interaction and writes the resolved width to a CSS
|
|
11
|
+
* custom property on the target element (the same property the
|
|
12
|
+
* component's width classes already read), so the component keeps its
|
|
13
|
+
* `var(--…)`-driven classes and no inline `width` ever appears. Reset
|
|
14
|
+
* removes the override entirely, returning the surface to its
|
|
15
|
+
* token-driven default.
|
|
16
|
+
*/
|
|
17
|
+
import { type KeyboardEvent, type PointerEvent as ReactPointerEvent, type RefObject } from 'react';
|
|
18
|
+
export interface UseEdgeResizeOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Which logical edge of the target carries the handle. `inline-end`
|
|
21
|
+
* for a start-docked surface (Sidebar); `inline-start` for an
|
|
22
|
+
* end-docked one (AiToolsRail panel with `side="end"`).
|
|
23
|
+
*/
|
|
24
|
+
edge: 'inline-start' | 'inline-end';
|
|
25
|
+
/** The element being resized. The width override lands on its style. */
|
|
26
|
+
targetRef: RefObject<HTMLElement | null>;
|
|
27
|
+
/**
|
|
28
|
+
* CSS custom property the target's width classes read
|
|
29
|
+
* (e.g. `--sidebar-modern-expanded-size`). Written as `<px>px` on
|
|
30
|
+
* resize, removed on reset.
|
|
31
|
+
*/
|
|
32
|
+
cssProperty: string;
|
|
33
|
+
/** Clamp floor, px. */
|
|
34
|
+
minSize: number;
|
|
35
|
+
/** Clamp ceiling, px. */
|
|
36
|
+
maxSize: number;
|
|
37
|
+
/**
|
|
38
|
+
* Nominal default width, px — used for `aria-valuenow` before the
|
|
39
|
+
* element has been measured (SSR / jsdom) and as the reset target.
|
|
40
|
+
*/
|
|
41
|
+
defaultSize: number;
|
|
42
|
+
/** Disables the interaction (handlers no-op, `aria-disabled` set). */
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/** Fired with the committed px width; `null` means reset-to-default. */
|
|
45
|
+
onResize?: (size: number | null) => void;
|
|
46
|
+
}
|
|
47
|
+
export interface EdgeResizeSeparatorProps {
|
|
48
|
+
role: 'separator';
|
|
49
|
+
tabIndex: number;
|
|
50
|
+
'aria-orientation': 'vertical';
|
|
51
|
+
'aria-valuemin': number;
|
|
52
|
+
'aria-valuemax': number;
|
|
53
|
+
'aria-valuenow': number;
|
|
54
|
+
'aria-valuetext': string;
|
|
55
|
+
'aria-disabled': boolean | undefined;
|
|
56
|
+
onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
57
|
+
onPointerMove: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
58
|
+
onPointerUp: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
59
|
+
onPointerCancel: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
60
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
61
|
+
onDoubleClick: () => void;
|
|
62
|
+
}
|
|
63
|
+
export interface UseEdgeResizeReturn {
|
|
64
|
+
/**
|
|
65
|
+
* Spread onto the handle element (a plain `<div>`). Add `aria-label`,
|
|
66
|
+
* and give the handle a `ds:touch-none` class — touch browsers decide
|
|
67
|
+
* scroll-vs-drag at gesture start, before any pointer handler runs.
|
|
68
|
+
*/
|
|
69
|
+
separatorProps: EdgeResizeSeparatorProps;
|
|
70
|
+
/** True while a pointer drag is in flight — suppress width transitions. */
|
|
71
|
+
isResizing: boolean;
|
|
72
|
+
/** True once the user has overridden the token-driven default. */
|
|
73
|
+
isResized: boolean;
|
|
74
|
+
/** Programmatic reset to the token-driven default width. */
|
|
75
|
+
reset: () => void;
|
|
76
|
+
}
|
|
77
|
+
export declare function useEdgeResize({ edge, targetRef, cssProperty, minSize, maxSize, defaultSize, disabled, onResize, }: UseEdgeResizeOptions): UseEdgeResizeReturn;
|
|
78
|
+
//# sourceMappingURL=use-edge-resize.d.ts.map
|
|
@@ -333,6 +333,7 @@ export declare const arUi: {
|
|
|
333
333
|
readonly resizable: {
|
|
334
334
|
readonly resizeLabel: "تغيير حجم الأجزاء";
|
|
335
335
|
readonly sizeAnnounce: "{{percent}} من المساحة المتاحة";
|
|
336
|
+
readonly widthAnnounce: "{{width}} بكسل";
|
|
336
337
|
};
|
|
337
338
|
readonly tag: {
|
|
338
339
|
readonly remove: "إزالة {{label}}";
|
|
@@ -612,6 +613,7 @@ export declare const arUi: {
|
|
|
612
613
|
readonly confirmed: "مؤكد";
|
|
613
614
|
readonly pending: "قيد الانتظار";
|
|
614
615
|
readonly cancelled: "ملغى";
|
|
616
|
+
readonly absent: "غائب";
|
|
615
617
|
};
|
|
616
618
|
};
|
|
617
619
|
readonly agendaTray: {
|
|
@@ -699,6 +701,7 @@ export declare const arUi: {
|
|
|
699
701
|
readonly unpinItem: "إلغاء تثبيت {{label}}";
|
|
700
702
|
readonly reorderHandle: "إعادة ترتيب {{label}}. اضغط Alt + أعلى أو Alt + أسفل للنقل.";
|
|
701
703
|
readonly reorderAnnounce: "تم نقل {{label}} إلى الموضع {{to}} من {{total}}";
|
|
704
|
+
readonly resize: "تغيير حجم الشريط الجانبي للتنقل";
|
|
702
705
|
};
|
|
703
706
|
readonly header: {
|
|
704
707
|
readonly label: "رأس الصفحة";
|
|
@@ -2560,6 +2563,7 @@ export declare const arUi: {
|
|
|
2560
2563
|
readonly aiToolsRail: {
|
|
2561
2564
|
readonly railLabel: "AI tools";
|
|
2562
2565
|
readonly panelLabel: "{{tool}} panel";
|
|
2566
|
+
readonly resizePanel: "تغيير حجم لوحة الأداة";
|
|
2563
2567
|
readonly badgeCountOverflow: "99+";
|
|
2564
2568
|
readonly toolWithCount_zero: "{{tool}}, {{count}} updates";
|
|
2565
2569
|
readonly toolWithCount_one: "{{tool}}, {{count}} update";
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -325,7 +325,8 @@ const e = {
|
|
|
325
325
|
},
|
|
326
326
|
resizable: {
|
|
327
327
|
resizeLabel: "تغيير حجم الأجزاء",
|
|
328
|
-
sizeAnnounce: "{{percent}} من المساحة المتاحة"
|
|
328
|
+
sizeAnnounce: "{{percent}} من المساحة المتاحة",
|
|
329
|
+
widthAnnounce: "{{width}} بكسل"
|
|
329
330
|
},
|
|
330
331
|
tag: {
|
|
331
332
|
remove: "إزالة {{label}}",
|
|
@@ -604,7 +605,8 @@ const e = {
|
|
|
604
605
|
status: {
|
|
605
606
|
confirmed: "مؤكد",
|
|
606
607
|
pending: "قيد الانتظار",
|
|
607
|
-
cancelled: "ملغى"
|
|
608
|
+
cancelled: "ملغى",
|
|
609
|
+
absent: "غائب"
|
|
608
610
|
}
|
|
609
611
|
},
|
|
610
612
|
agendaTray: {
|
|
@@ -691,7 +693,8 @@ const e = {
|
|
|
691
693
|
pinItem: "تثبيت {{label}}",
|
|
692
694
|
unpinItem: "إلغاء تثبيت {{label}}",
|
|
693
695
|
reorderHandle: "إعادة ترتيب {{label}}. اضغط Alt + أعلى أو Alt + أسفل للنقل.",
|
|
694
|
-
reorderAnnounce: "تم نقل {{label}} إلى الموضع {{to}} من {{total}}"
|
|
696
|
+
reorderAnnounce: "تم نقل {{label}} إلى الموضع {{to}} من {{total}}",
|
|
697
|
+
resize: "تغيير حجم الشريط الجانبي للتنقل"
|
|
695
698
|
},
|
|
696
699
|
header: {
|
|
697
700
|
label: "رأس الصفحة"
|
|
@@ -2536,6 +2539,7 @@ const e = {
|
|
|
2536
2539
|
aiToolsRail: {
|
|
2537
2540
|
railLabel: "AI tools",
|
|
2538
2541
|
panelLabel: "{{tool}} panel",
|
|
2542
|
+
resizePanel: "تغيير حجم لوحة الأداة",
|
|
2539
2543
|
badgeCountOverflow: "99+",
|
|
2540
2544
|
toolWithCount_zero: "{{tool}}, {{count}} updates",
|
|
2541
2545
|
toolWithCount_one: "{{tool}}, {{count}} update",
|