@medixdeck/ui 0.1.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/README.md +461 -0
- package/dist/index.cjs +196 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2032 -0
- package/dist/index.js +9962 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2032 @@
|
|
|
1
|
+
import { AvatarRootProps } from '@chakra-ui/react';
|
|
2
|
+
import { Box } from '@chakra-ui/react';
|
|
3
|
+
import { BoxProps } from '@chakra-ui/react';
|
|
4
|
+
import { Center } from '@chakra-ui/react';
|
|
5
|
+
import { default as default_2 } from 'react';
|
|
6
|
+
import { Flex } from '@chakra-ui/react';
|
|
7
|
+
import { Grid } from '@chakra-ui/react';
|
|
8
|
+
import { GridItem } from '@chakra-ui/react';
|
|
9
|
+
import { Heading } from '@chakra-ui/react';
|
|
10
|
+
import { HStack } from '@chakra-ui/react';
|
|
11
|
+
import { Icon } from '@chakra-ui/react';
|
|
12
|
+
import { Image as Image_2 } from '@chakra-ui/react';
|
|
13
|
+
import { InputProps as InputProps_2 } from '@chakra-ui/react';
|
|
14
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
15
|
+
import { Link } from '@chakra-ui/react';
|
|
16
|
+
import { NativeSelectRootProps } from '@chakra-ui/react';
|
|
17
|
+
import { SeparatorProps } from '@chakra-ui/react';
|
|
18
|
+
import { SimpleGrid } from '@chakra-ui/react';
|
|
19
|
+
import { Stack } from '@chakra-ui/react';
|
|
20
|
+
import { SystemConfig } from '@chakra-ui/react';
|
|
21
|
+
import { SystemContext } from '@chakra-ui/react';
|
|
22
|
+
import { Text as Text_2 } from '@chakra-ui/react';
|
|
23
|
+
import { TextareaProps as TextareaProps_2 } from '@chakra-ui/react';
|
|
24
|
+
import { TooltipRootProps } from '@chakra-ui/react';
|
|
25
|
+
import { VStack } from '@chakra-ui/react';
|
|
26
|
+
import { Wrap } from '@chakra-ui/react';
|
|
27
|
+
import { WrapItem } from '@chakra-ui/react';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* MedixDeck Accordion / FAQ
|
|
31
|
+
*
|
|
32
|
+
* Each item is a rounded card. Closed state shows an outlined "+" circle;
|
|
33
|
+
* open state shows a filled blue "−" circle. Matches the MedixDeck FAQ design.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Accordion
|
|
38
|
+
* items={[
|
|
39
|
+
* { id: "q1", question: "What is MedixDeck?", answer: "…" },
|
|
40
|
+
* { id: "q2", question: "Are the doctors qualified?", answer: "…" },
|
|
41
|
+
* ]}
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function Accordion({ items, allowMultiple, defaultOpenIds, ...props }: AccordionProps): JSX_2.Element;
|
|
46
|
+
|
|
47
|
+
export declare interface AccordionItem {
|
|
48
|
+
id: string;
|
|
49
|
+
/** The question / trigger label */
|
|
50
|
+
question: string;
|
|
51
|
+
/** The answer / expanded body */
|
|
52
|
+
answer: string | default_2.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export declare interface AccordionProps extends Omit<BoxProps, "onChange"> {
|
|
56
|
+
items: AccordionItem[];
|
|
57
|
+
/** Allow multiple items open simultaneously */
|
|
58
|
+
allowMultiple?: boolean;
|
|
59
|
+
/** Initially open item IDs */
|
|
60
|
+
defaultOpenIds?: string[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* MedixDeck Alert
|
|
65
|
+
*
|
|
66
|
+
* Feedback messages for user actions.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```tsx
|
|
70
|
+
* <Alert status="success" title="Appointment confirmed!" description="Dr. Okafor will see you at 2pm." closable />
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
|
|
75
|
+
export declare interface AlertProps extends BoxProps {
|
|
76
|
+
status?: AlertStatus;
|
|
77
|
+
variant?: AlertVariant;
|
|
78
|
+
title?: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
icon?: default_2.ReactNode;
|
|
81
|
+
onClose?: () => void;
|
|
82
|
+
closable?: boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare type AlertStatus = "info" | "success" | "warning" | "error";
|
|
86
|
+
|
|
87
|
+
export declare type AlertVariant = "subtle" | "solid" | "left-accent";
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* MedixDeck AppointmentCard
|
|
91
|
+
*
|
|
92
|
+
* Patient appointment display card.
|
|
93
|
+
*/
|
|
94
|
+
export declare function AppointmentCard({ doctorName, doctorSpecialty, doctorAvatar, date, time, type, status, onCancel, onReschedule, onJoin, ...props }: AppointmentCardProps): JSX_2.Element;
|
|
95
|
+
|
|
96
|
+
export declare interface AppointmentCardProps extends BoxProps {
|
|
97
|
+
doctorName: string;
|
|
98
|
+
doctorSpecialty?: string;
|
|
99
|
+
doctorAvatar?: string;
|
|
100
|
+
date: string;
|
|
101
|
+
time: string;
|
|
102
|
+
type?: AppointmentType;
|
|
103
|
+
status?: AppointmentStatus;
|
|
104
|
+
onCancel?: () => void;
|
|
105
|
+
onReschedule?: () => void;
|
|
106
|
+
onJoin?: () => void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare type AppointmentStatus = "upcoming" | "completed" | "cancelled";
|
|
110
|
+
|
|
111
|
+
export declare type AppointmentType = "video" | "in-person";
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* MedixDeck Avatar
|
|
115
|
+
*/
|
|
116
|
+
export declare const Avatar: default_2.ForwardRefExoticComponent<AvatarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
|
|
118
|
+
export declare function AvatarGroup({ children, max, size }: AvatarGroupProps): JSX_2.Element;
|
|
119
|
+
|
|
120
|
+
export declare interface AvatarGroupProps {
|
|
121
|
+
children: default_2.ReactNode;
|
|
122
|
+
max?: number;
|
|
123
|
+
size?: AvatarSize;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export declare interface AvatarProps extends Omit<AvatarRootProps, "size"> {
|
|
127
|
+
src?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
size?: AvatarSize;
|
|
130
|
+
showStatus?: boolean;
|
|
131
|
+
statusColor?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* MedixDeck Badge
|
|
138
|
+
*
|
|
139
|
+
* Status indicator chip using exact MedixDeck brand colours.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```tsx
|
|
143
|
+
* <Badge status="success">Verified</Badge>
|
|
144
|
+
* <Badge status="warning" variant="subtle">Pending</Badge>
|
|
145
|
+
* <Badge status="error" variant="solid">Cancelled</Badge>
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
export declare const Badge: default_2.ForwardRefExoticComponent<BadgeProps & default_2.RefAttributes<HTMLSpanElement>>;
|
|
149
|
+
|
|
150
|
+
export declare interface BadgeProps {
|
|
151
|
+
/** Visual style — controls opacity/border treatment */
|
|
152
|
+
variant?: BadgeVariant;
|
|
153
|
+
/** Semantic status — determines the colour */
|
|
154
|
+
status?: BadgeStatus;
|
|
155
|
+
/** Size */
|
|
156
|
+
size?: BadgeSize;
|
|
157
|
+
children?: default_2.ReactNode;
|
|
158
|
+
className?: string;
|
|
159
|
+
style?: default_2.CSSProperties;
|
|
160
|
+
id?: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare type BadgeSize = "sm" | "md" | "lg";
|
|
164
|
+
|
|
165
|
+
export declare type BadgeStatus = "success" | "warning" | "error" | "info" | "neutral";
|
|
166
|
+
|
|
167
|
+
export declare type BadgeVariant = "solid" | "subtle" | "outline" | "surface";
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* MedixDeck BlogCard
|
|
171
|
+
*
|
|
172
|
+
* Full-bleed cover image with a floating date badge (day + weekday) in the
|
|
173
|
+
* bottom-right corner of the image, a solid blue pill category tag immediately
|
|
174
|
+
* below the image, bold title, and an optional clamped excerpt.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```tsx
|
|
178
|
+
* <BlogCard
|
|
179
|
+
* coverImage="/images/surgery.jpg"
|
|
180
|
+
* date="2025-11-20"
|
|
181
|
+
* category="Medical Support"
|
|
182
|
+
* title="Recognizing Critical Moments: Key Indicators for Emergency Room Visits"
|
|
183
|
+
* href="/blog/emergency-room"
|
|
184
|
+
* />
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
export declare function BlogCard({ title, excerpt, category, date, coverImage, href, onClick, ...props }: BlogCardProps): JSX_2.Element;
|
|
188
|
+
|
|
189
|
+
export declare interface BlogCardProps extends Omit<BoxProps, "onClick"> {
|
|
190
|
+
/** Article headline */
|
|
191
|
+
title: string;
|
|
192
|
+
/** Short excerpt shown below the title (optional, max 2 lines clamped) */
|
|
193
|
+
excerpt?: string;
|
|
194
|
+
/** Category label displayed as a solid blue pill tag below the image */
|
|
195
|
+
category?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Publication date — accepts any format parseable by `new Date()`.
|
|
198
|
+
*
|
|
199
|
+
* When parseable (e.g. "2025-11-20" or "2025-11-20T08:00:00Z"), the badge
|
|
200
|
+
* inside the image shows the numeric day in large blue text with the 3-letter
|
|
201
|
+
* weekday abbreviation below it.
|
|
202
|
+
*
|
|
203
|
+
* If the string is NOT parseable (e.g. "Nov 20, 2025") the value is ignored
|
|
204
|
+
* (no badge is rendered) to avoid showing NaN.
|
|
205
|
+
*/
|
|
206
|
+
date?: string;
|
|
207
|
+
/** Hero / cover image URL */
|
|
208
|
+
coverImage?: string;
|
|
209
|
+
/** Navigable URL – wraps the entire card in an <a> tag */
|
|
210
|
+
href?: string;
|
|
211
|
+
/** Click handler – wraps the entire card in a <button> */
|
|
212
|
+
onClick?: () => void;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export { Box }
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* MedixDeck Breadcrumb
|
|
219
|
+
*
|
|
220
|
+
* Page location indicator.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```tsx
|
|
224
|
+
* <Breadcrumb items={[
|
|
225
|
+
* { label: "Home", href: "/" },
|
|
226
|
+
* { label: "For Doctors", href: "/for-doctors" },
|
|
227
|
+
* { label: "Profile" },
|
|
228
|
+
* ]} />
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
export declare function Breadcrumb({ items, separator, renderLink, ...props }: BreadcrumbProps): JSX_2.Element;
|
|
232
|
+
|
|
233
|
+
export declare interface BreadcrumbItem {
|
|
234
|
+
label: string;
|
|
235
|
+
href?: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export declare interface BreadcrumbProps extends BoxProps {
|
|
239
|
+
items: BreadcrumbItem[];
|
|
240
|
+
separator?: default_2.ReactNode;
|
|
241
|
+
renderLink?: (item: BreadcrumbItem, children: default_2.ReactNode) => default_2.ReactNode;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* MedixDeck Button
|
|
246
|
+
*
|
|
247
|
+
* Uses the MedixDeck brand palette directly — #0685FF for blue, #7700CC for
|
|
248
|
+
* purple — so the rendered colors are always accurate regardless of Chakra's
|
|
249
|
+
* theme resolution order.
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```tsx
|
|
253
|
+
* <Button variant="solid" colorScheme="blue">Talk to a Doctor</Button>
|
|
254
|
+
* <Button variant="outline" colorScheme="purple">Learn More</Button>
|
|
255
|
+
* <Button variant="ghost" colorScheme="blue" size="sm">Cancel</Button>
|
|
256
|
+
* ```
|
|
257
|
+
*/
|
|
258
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
259
|
+
|
|
260
|
+
export declare interface ButtonProps {
|
|
261
|
+
/** Visual variant */
|
|
262
|
+
variant?: "solid" | "outline" | "ghost" | "link" | "secondary";
|
|
263
|
+
/** Size */
|
|
264
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
265
|
+
/** Color scheme — maps to MedixDeck brand colors */
|
|
266
|
+
colorScheme?: "blue" | "purple" | "green" | "red" | "amber";
|
|
267
|
+
/** Show loading spinner */
|
|
268
|
+
isLoading?: boolean;
|
|
269
|
+
/** Element rendered before the label */
|
|
270
|
+
leftIcon?: default_2.ReactElement;
|
|
271
|
+
/** Element rendered after the label */
|
|
272
|
+
rightIcon?: default_2.ReactElement;
|
|
273
|
+
/** Disabled state */
|
|
274
|
+
disabled?: boolean;
|
|
275
|
+
/** HTML type attribute */
|
|
276
|
+
type?: "button" | "submit" | "reset";
|
|
277
|
+
/** Click handler */
|
|
278
|
+
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
279
|
+
/** Any additional className */
|
|
280
|
+
className?: string;
|
|
281
|
+
/** Arbitrary additional style */
|
|
282
|
+
style?: default_2.CSSProperties;
|
|
283
|
+
children?: default_2.ReactNode;
|
|
284
|
+
id?: string;
|
|
285
|
+
"aria-label"?: string;
|
|
286
|
+
"aria-expanded"?: boolean | "true" | "false";
|
|
287
|
+
"aria-controls"?: string;
|
|
288
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree";
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* MedixDeck Card
|
|
293
|
+
*
|
|
294
|
+
* Surface container for content blocks.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```tsx
|
|
298
|
+
* <Card>
|
|
299
|
+
* <CardHeader title="Patient Details" />
|
|
300
|
+
* <CardBody>…</CardBody>
|
|
301
|
+
* <CardFooter>…</CardFooter>
|
|
302
|
+
* </Card>
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
export declare const Card: default_2.ForwardRefExoticComponent<CardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
306
|
+
|
|
307
|
+
export declare function CardBody({ children, ...props }: BoxProps): JSX_2.Element;
|
|
308
|
+
|
|
309
|
+
export declare function CardFooter({ children, ...props }: BoxProps): JSX_2.Element;
|
|
310
|
+
|
|
311
|
+
export declare function CardHeader({ title, subtitle, action, children, ...props }: CardHeaderProps): JSX_2.Element;
|
|
312
|
+
|
|
313
|
+
export declare interface CardHeaderProps extends BoxProps {
|
|
314
|
+
title?: string;
|
|
315
|
+
subtitle?: string;
|
|
316
|
+
action?: default_2.ReactNode;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export declare interface CardProps extends BoxProps {
|
|
320
|
+
/** Remove default padding */
|
|
321
|
+
noPadding?: boolean;
|
|
322
|
+
/** Hover lift effect */
|
|
323
|
+
hoverable?: boolean;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export { Center }
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* MedixDeck Checkbox
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```tsx
|
|
333
|
+
* <Checkbox colorScheme="blue">I agree to share my medical records</Checkbox>
|
|
334
|
+
* <Checkbox colorScheme="purple" description="Required for video calls">Camera access</Checkbox>
|
|
335
|
+
* ```
|
|
336
|
+
*/
|
|
337
|
+
export declare const Checkbox: default_2.ForwardRefExoticComponent<CheckboxProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
338
|
+
|
|
339
|
+
export declare interface CheckboxProps {
|
|
340
|
+
/** Brand color for the checked state */
|
|
341
|
+
colorScheme?: ColorScheme;
|
|
342
|
+
/** Controlled checked value */
|
|
343
|
+
checked?: boolean;
|
|
344
|
+
/** Default checked (uncontrolled) */
|
|
345
|
+
defaultChecked?: boolean;
|
|
346
|
+
/** Called when checked state changes */
|
|
347
|
+
onChange?: (checked: boolean) => void;
|
|
348
|
+
disabled?: boolean;
|
|
349
|
+
/** Show indeterminate dash instead of tick */
|
|
350
|
+
indeterminate?: boolean;
|
|
351
|
+
children?: default_2.ReactNode;
|
|
352
|
+
/** Helper text below the label */
|
|
353
|
+
description?: string;
|
|
354
|
+
name?: string;
|
|
355
|
+
value?: string;
|
|
356
|
+
id?: string;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare const COLORS: {
|
|
360
|
+
readonly blue: {
|
|
361
|
+
readonly solid: "#0685FF";
|
|
362
|
+
readonly ring: "rgba(6,133,255,0.30)";
|
|
363
|
+
readonly tint: "#E8F3FF";
|
|
364
|
+
};
|
|
365
|
+
readonly purple: {
|
|
366
|
+
readonly solid: "#7700CC";
|
|
367
|
+
readonly ring: "rgba(119,0,204,0.25)";
|
|
368
|
+
readonly tint: "#F9F0FF";
|
|
369
|
+
};
|
|
370
|
+
readonly green: {
|
|
371
|
+
readonly solid: "#1B7A38";
|
|
372
|
+
readonly ring: "rgba(27,122,56,0.25)";
|
|
373
|
+
readonly tint: "#F0FDF4";
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
declare const COLORS_2: {
|
|
378
|
+
readonly blue: {
|
|
379
|
+
readonly solid: "#0685FF";
|
|
380
|
+
readonly ring: "rgba(6,133,255,0.30)";
|
|
381
|
+
readonly track: "#0685FF";
|
|
382
|
+
};
|
|
383
|
+
readonly purple: {
|
|
384
|
+
readonly solid: "#7700CC";
|
|
385
|
+
readonly ring: "rgba(119,0,204,0.25)";
|
|
386
|
+
readonly track: "#7700CC";
|
|
387
|
+
};
|
|
388
|
+
readonly green: {
|
|
389
|
+
readonly solid: "#1B7A38";
|
|
390
|
+
readonly ring: "rgba(27,122,56,0.25)";
|
|
391
|
+
readonly track: "#1B7A38";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
declare type ColorScheme = keyof typeof COLORS;
|
|
396
|
+
|
|
397
|
+
declare type ColorScheme_2 = keyof typeof COLORS_2;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* MedixDeck Brand Color Tokens
|
|
401
|
+
* These are raw (primitive) color values from the MedixDeck style guide.
|
|
402
|
+
* Use semanticTokens to assign meaning (light/dark mode).
|
|
403
|
+
*/
|
|
404
|
+
export declare const colorTokens: {
|
|
405
|
+
readonly blue: {
|
|
406
|
+
readonly 50: {
|
|
407
|
+
readonly value: "#E8F3FF";
|
|
408
|
+
};
|
|
409
|
+
readonly 100: {
|
|
410
|
+
readonly value: "#D6EEFF";
|
|
411
|
+
};
|
|
412
|
+
readonly 200: {
|
|
413
|
+
readonly value: "#A8D4FF";
|
|
414
|
+
};
|
|
415
|
+
readonly 300: {
|
|
416
|
+
readonly value: "#70B6FF";
|
|
417
|
+
};
|
|
418
|
+
readonly 400: {
|
|
419
|
+
readonly value: "#3D98FF";
|
|
420
|
+
};
|
|
421
|
+
readonly 500: {
|
|
422
|
+
readonly value: "#0685FF";
|
|
423
|
+
};
|
|
424
|
+
readonly 600: {
|
|
425
|
+
readonly value: "#0066CC";
|
|
426
|
+
};
|
|
427
|
+
readonly 700: {
|
|
428
|
+
readonly value: "#004D99";
|
|
429
|
+
};
|
|
430
|
+
readonly 800: {
|
|
431
|
+
readonly value: "#003366";
|
|
432
|
+
};
|
|
433
|
+
readonly 900: {
|
|
434
|
+
readonly value: "#001A33";
|
|
435
|
+
};
|
|
436
|
+
readonly gradient: {
|
|
437
|
+
readonly value: "#1A8FFF";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly purple: {
|
|
441
|
+
readonly 50: {
|
|
442
|
+
readonly value: "#F9F0FF";
|
|
443
|
+
};
|
|
444
|
+
readonly 100: {
|
|
445
|
+
readonly value: "#EDD6FF";
|
|
446
|
+
};
|
|
447
|
+
readonly 200: {
|
|
448
|
+
readonly value: "#D9AAFF";
|
|
449
|
+
};
|
|
450
|
+
readonly 300: {
|
|
451
|
+
readonly value: "#BB77FF";
|
|
452
|
+
};
|
|
453
|
+
readonly 400: {
|
|
454
|
+
readonly value: "#9933FF";
|
|
455
|
+
};
|
|
456
|
+
readonly 500: {
|
|
457
|
+
readonly value: "#7700CC";
|
|
458
|
+
};
|
|
459
|
+
readonly 600: {
|
|
460
|
+
readonly value: "#5C00A3";
|
|
461
|
+
};
|
|
462
|
+
readonly 700: {
|
|
463
|
+
readonly value: "#44007A";
|
|
464
|
+
};
|
|
465
|
+
readonly 800: {
|
|
466
|
+
readonly value: "#2D0052";
|
|
467
|
+
};
|
|
468
|
+
readonly 900: {
|
|
469
|
+
readonly value: "#160029";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly neutralLight: {
|
|
473
|
+
readonly bg: {
|
|
474
|
+
readonly value: "#FEFEFE";
|
|
475
|
+
};
|
|
476
|
+
readonly bg2: {
|
|
477
|
+
readonly value: "#F6F6F6";
|
|
478
|
+
};
|
|
479
|
+
readonly surface: {
|
|
480
|
+
readonly value: "#F6F6F6";
|
|
481
|
+
};
|
|
482
|
+
readonly white: {
|
|
483
|
+
readonly value: "#FFFFFF";
|
|
484
|
+
};
|
|
485
|
+
readonly border: {
|
|
486
|
+
readonly value: "#E4E8F0";
|
|
487
|
+
};
|
|
488
|
+
readonly muted: {
|
|
489
|
+
readonly value: "#9AAAB8";
|
|
490
|
+
};
|
|
491
|
+
readonly heading: {
|
|
492
|
+
readonly value: "#111926";
|
|
493
|
+
};
|
|
494
|
+
readonly body: {
|
|
495
|
+
readonly value: "#3D4F63";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly neutralDark: {
|
|
499
|
+
readonly bg: {
|
|
500
|
+
readonly value: "#0A1220";
|
|
501
|
+
};
|
|
502
|
+
readonly bg2: {
|
|
503
|
+
readonly value: "#182337";
|
|
504
|
+
};
|
|
505
|
+
readonly surface: {
|
|
506
|
+
readonly value: "#152035";
|
|
507
|
+
};
|
|
508
|
+
readonly black: {
|
|
509
|
+
readonly value: "#000000";
|
|
510
|
+
};
|
|
511
|
+
readonly border: {
|
|
512
|
+
readonly value: "#1E3050";
|
|
513
|
+
};
|
|
514
|
+
readonly muted: {
|
|
515
|
+
readonly value: "#4A6480";
|
|
516
|
+
};
|
|
517
|
+
readonly heading: {
|
|
518
|
+
readonly value: "#F0F6FF";
|
|
519
|
+
};
|
|
520
|
+
readonly body: {
|
|
521
|
+
readonly value: "#ABC0D6";
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly green: {
|
|
525
|
+
readonly 50: {
|
|
526
|
+
readonly value: "#F0FDF4";
|
|
527
|
+
};
|
|
528
|
+
readonly 100: {
|
|
529
|
+
readonly value: "#DCFCE7";
|
|
530
|
+
};
|
|
531
|
+
readonly 500: {
|
|
532
|
+
readonly value: "#1B7A38";
|
|
533
|
+
};
|
|
534
|
+
readonly 600: {
|
|
535
|
+
readonly value: "#166534";
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
readonly amber: {
|
|
539
|
+
readonly 50: {
|
|
540
|
+
readonly value: "#FFFBEB";
|
|
541
|
+
};
|
|
542
|
+
readonly 100: {
|
|
543
|
+
readonly value: "#FEF3C7";
|
|
544
|
+
};
|
|
545
|
+
readonly 500: {
|
|
546
|
+
readonly value: "#D97706";
|
|
547
|
+
};
|
|
548
|
+
readonly 600: {
|
|
549
|
+
readonly value: "#B45309";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly red: {
|
|
553
|
+
readonly 50: {
|
|
554
|
+
readonly value: "#FFF1F2";
|
|
555
|
+
};
|
|
556
|
+
readonly 100: {
|
|
557
|
+
readonly value: "#FFE4E6";
|
|
558
|
+
};
|
|
559
|
+
readonly 200: {
|
|
560
|
+
readonly value: "#FECDD3";
|
|
561
|
+
};
|
|
562
|
+
readonly 500: {
|
|
563
|
+
readonly value: "#DC2626";
|
|
564
|
+
};
|
|
565
|
+
readonly 600: {
|
|
566
|
+
readonly value: "#B91C1C";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export declare interface Column<T = Record<string, unknown>> {
|
|
572
|
+
/** Unique key matching the data field */
|
|
573
|
+
key: string;
|
|
574
|
+
/** Column header label */
|
|
575
|
+
label: string;
|
|
576
|
+
/** Minimum column width */
|
|
577
|
+
minWidth?: string;
|
|
578
|
+
/** Whether this column is sortable */
|
|
579
|
+
sortable?: boolean;
|
|
580
|
+
/** Custom cell renderer */
|
|
581
|
+
render?: (value: unknown, row: T, index: number) => default_2.ReactNode;
|
|
582
|
+
/** Text alignment */
|
|
583
|
+
align?: "left" | "center" | "right";
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* MedixDeck Container
|
|
588
|
+
*
|
|
589
|
+
* Centers and constrains page content.
|
|
590
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
* ```tsx
|
|
593
|
+
* <Container maxWidth="xl">
|
|
594
|
+
* <Navbar />
|
|
595
|
+
* </Container>
|
|
596
|
+
* ```
|
|
597
|
+
*/
|
|
598
|
+
export declare const Container: default_2.ForwardRefExoticComponent<ContainerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
599
|
+
|
|
600
|
+
export declare interface ContainerProps extends BoxProps {
|
|
601
|
+
/** Max width preset */
|
|
602
|
+
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* MedixDeck DataTable
|
|
607
|
+
*
|
|
608
|
+
* Responsive data table with sorting.
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* ```tsx
|
|
612
|
+
* <DataTable
|
|
613
|
+
* columns={[
|
|
614
|
+
* { key: "name", label: "Patient Name", sortable: true },
|
|
615
|
+
* { key: "date", label: "Date", sortable: true },
|
|
616
|
+
* { key: "status", label: "Status", render: (v) => <Badge>{v}</Badge> },
|
|
617
|
+
* ]}
|
|
618
|
+
* data={patients}
|
|
619
|
+
* rowKey="id"
|
|
620
|
+
* onRowClick={(row) => router.push(`/patients/${row.id}`)}
|
|
621
|
+
* />
|
|
622
|
+
* ```
|
|
623
|
+
*/
|
|
624
|
+
export declare function DataTable<T extends Record<string, unknown>>({ columns, data, rowKey, isLoading, emptyMessage, sortable, sortKey, sortDirection, onSort, striped, onRowClick, caption, style, className, }: DataTableProps<T>): JSX_2.Element;
|
|
625
|
+
|
|
626
|
+
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
627
|
+
columns: Column<T>[];
|
|
628
|
+
data: T[];
|
|
629
|
+
rowKey?: string;
|
|
630
|
+
isLoading?: boolean;
|
|
631
|
+
emptyMessage?: string;
|
|
632
|
+
sortable?: boolean;
|
|
633
|
+
sortKey?: string;
|
|
634
|
+
sortDirection?: "asc" | "desc";
|
|
635
|
+
onSort?: (key: string, direction: "asc" | "desc") => void;
|
|
636
|
+
striped?: boolean;
|
|
637
|
+
onRowClick?: (row: T, index: number) => void;
|
|
638
|
+
caption?: string;
|
|
639
|
+
/** Extra styles for the outer container */
|
|
640
|
+
style?: default_2.CSSProperties;
|
|
641
|
+
className?: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* MedixDeck DatePicker
|
|
646
|
+
*
|
|
647
|
+
* Styled wrapper around the native date/datetime-local input.
|
|
648
|
+
* Colors use CSS custom properties (--medix-form-*) that cascade from any
|
|
649
|
+
* .dark ancestor, so dark mode works without any JS theme hook.
|
|
650
|
+
*
|
|
651
|
+
* @example
|
|
652
|
+
* ```tsx
|
|
653
|
+
* <DatePicker
|
|
654
|
+
* label="Appointment Date"
|
|
655
|
+
* min={today}
|
|
656
|
+
* value={selectedDate}
|
|
657
|
+
* onChange={(date) => setSelectedDate(date)}
|
|
658
|
+
* />
|
|
659
|
+
* ```
|
|
660
|
+
*/
|
|
661
|
+
export declare function DatePicker({ value, onChange, min, max, label, helperText, errorMessage, isInvalid, isDisabled, placeholder, id, includeTime, }: DatePickerProps): JSX_2.Element;
|
|
662
|
+
|
|
663
|
+
export declare interface DatePickerProps {
|
|
664
|
+
/** Controlled value (ISO date string: YYYY-MM-DD) */
|
|
665
|
+
value?: string;
|
|
666
|
+
onChange?: (value: string) => void;
|
|
667
|
+
/** Minimum selectable date (ISO string) */
|
|
668
|
+
min?: string;
|
|
669
|
+
/** Maximum selectable date (ISO string) */
|
|
670
|
+
max?: string;
|
|
671
|
+
label?: string;
|
|
672
|
+
helperText?: string;
|
|
673
|
+
errorMessage?: string;
|
|
674
|
+
isInvalid?: boolean;
|
|
675
|
+
isDisabled?: boolean;
|
|
676
|
+
placeholder?: string;
|
|
677
|
+
id?: string;
|
|
678
|
+
/** Whether to also show time input */
|
|
679
|
+
includeTime?: boolean;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* MedixDeck Divider
|
|
684
|
+
*
|
|
685
|
+
* Horizontal or vertical separator, optionally with a centered label.
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* ```tsx
|
|
689
|
+
* <Divider />
|
|
690
|
+
* <Divider label="or continue with" />
|
|
691
|
+
* ```
|
|
692
|
+
*/
|
|
693
|
+
export declare const Divider: default_2.ForwardRefExoticComponent<DividerProps & default_2.RefAttributes<HTMLHRElement>>;
|
|
694
|
+
|
|
695
|
+
export declare interface DividerProps extends SeparatorProps {
|
|
696
|
+
/** Orientation of the divider */
|
|
697
|
+
orientation?: "horizontal" | "vertical";
|
|
698
|
+
/** Custom label in the center */
|
|
699
|
+
label?: string;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* MedixDeck DoctorCard
|
|
704
|
+
*
|
|
705
|
+
* Card component for displaying doctor profiles.
|
|
706
|
+
*
|
|
707
|
+
* @example
|
|
708
|
+
* ```tsx
|
|
709
|
+
* <DoctorCard
|
|
710
|
+
* name="Dr. Amaka Okonkwo"
|
|
711
|
+
* specialty="Cardiologist"
|
|
712
|
+
* rating={4.9}
|
|
713
|
+
* reviewCount={128}
|
|
714
|
+
* consultationFee="₦5,000"
|
|
715
|
+
* isVerified
|
|
716
|
+
* isAvailable
|
|
717
|
+
* onBookClick={() => router.push("/book/amaka")}
|
|
718
|
+
* />
|
|
719
|
+
* ```
|
|
720
|
+
*/
|
|
721
|
+
export declare function DoctorCard({ name, specialty, location, avatar, rating, reviewCount, consultationFee, isVerified, isAvailable, availabilityLabel, onBookClick, onViewClick, ...props }: DoctorCardProps): JSX_2.Element;
|
|
722
|
+
|
|
723
|
+
export declare interface DoctorCardProps extends BoxProps {
|
|
724
|
+
name: string;
|
|
725
|
+
specialty: string;
|
|
726
|
+
location?: string;
|
|
727
|
+
avatar?: string;
|
|
728
|
+
rating?: number;
|
|
729
|
+
reviewCount?: number;
|
|
730
|
+
consultationFee?: string;
|
|
731
|
+
isVerified?: boolean;
|
|
732
|
+
isAvailable?: boolean;
|
|
733
|
+
availabilityLabel?: string;
|
|
734
|
+
onBookClick?: () => void;
|
|
735
|
+
onViewClick?: () => void;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* MedixDeck Drawer
|
|
740
|
+
*
|
|
741
|
+
* Slide-in panel for navigation, filters, and detail views.
|
|
742
|
+
*
|
|
743
|
+
* @example
|
|
744
|
+
* ```tsx
|
|
745
|
+
* <Drawer isOpen={isOpen} onClose={onClose} title="Patient Details" placement="right">
|
|
746
|
+
* <PatientProfile id={id} />
|
|
747
|
+
* </Drawer>
|
|
748
|
+
* ```
|
|
749
|
+
*/
|
|
750
|
+
export declare function Drawer({ isOpen, onClose, title, placement, size, closeOnOverlayClick, footer, children, }: DrawerProps): JSX_2.Element;
|
|
751
|
+
|
|
752
|
+
export declare type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
753
|
+
|
|
754
|
+
export declare interface DrawerProps {
|
|
755
|
+
isOpen: boolean;
|
|
756
|
+
onClose: () => void;
|
|
757
|
+
title?: string;
|
|
758
|
+
placement?: DrawerPlacement;
|
|
759
|
+
size?: DrawerSize;
|
|
760
|
+
closeOnOverlayClick?: boolean;
|
|
761
|
+
footer?: default_2.ReactNode;
|
|
762
|
+
children?: default_2.ReactNode;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export declare type DrawerSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* MedixDeck EmptyState
|
|
769
|
+
*
|
|
770
|
+
* Shown when content is unavailable.
|
|
771
|
+
*
|
|
772
|
+
* @example
|
|
773
|
+
* ```tsx
|
|
774
|
+
* <EmptyState
|
|
775
|
+
* title="No appointments yet"
|
|
776
|
+
* description="Book a consultation with one of our licensed doctors."
|
|
777
|
+
* actionLabel="Find a Doctor"
|
|
778
|
+
* onAction={() => router.push("/search")}
|
|
779
|
+
* />
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
782
|
+
export declare function EmptyState({ icon, title, description, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: EmptyStateProps): JSX_2.Element;
|
|
783
|
+
|
|
784
|
+
export declare interface EmptyStateProps extends BoxProps {
|
|
785
|
+
/** Illustration or icon */
|
|
786
|
+
icon?: default_2.ReactNode;
|
|
787
|
+
/** Main heading */
|
|
788
|
+
title: string;
|
|
789
|
+
/** Supporting description */
|
|
790
|
+
description?: string;
|
|
791
|
+
/** CTA button label */
|
|
792
|
+
actionLabel?: string;
|
|
793
|
+
onAction?: () => void;
|
|
794
|
+
/** Secondary link label */
|
|
795
|
+
secondaryLabel?: string;
|
|
796
|
+
onSecondaryAction?: () => void;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export { Flex }
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* MedixDeck FormControl
|
|
803
|
+
*
|
|
804
|
+
* Wrapper for form fields that adds label, helper text, and error display.
|
|
805
|
+
*
|
|
806
|
+
* @example
|
|
807
|
+
* ```tsx
|
|
808
|
+
* <FormControl label="Email address" isRequired errorMessage="Please enter a valid email.">
|
|
809
|
+
* <Input type="email" placeholder="you@example.com" isInvalid />
|
|
810
|
+
* </FormControl>
|
|
811
|
+
* ```
|
|
812
|
+
*/
|
|
813
|
+
export declare function FormControl({ id, label, helperText, errorMessage, isRequired, isDisabled, children, }: FormControlProps): JSX_2.Element;
|
|
814
|
+
|
|
815
|
+
export declare interface FormControlProps {
|
|
816
|
+
/** Unique ID for the field (links label to input) */
|
|
817
|
+
id?: string;
|
|
818
|
+
/** Field label */
|
|
819
|
+
label?: string;
|
|
820
|
+
/** Helper text below the field */
|
|
821
|
+
helperText?: string;
|
|
822
|
+
/** Error message — also activates error state */
|
|
823
|
+
errorMessage?: string;
|
|
824
|
+
/** Whether the field is required */
|
|
825
|
+
isRequired?: boolean;
|
|
826
|
+
/** Whether the field is disabled */
|
|
827
|
+
isDisabled?: boolean;
|
|
828
|
+
/** Form field child */
|
|
829
|
+
children: default_2.ReactNode;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* FullPageSpinner — centered full-page loading state
|
|
834
|
+
*/
|
|
835
|
+
export declare function FullPageSpinner({ label }: {
|
|
836
|
+
label?: string;
|
|
837
|
+
}): JSX_2.Element;
|
|
838
|
+
|
|
839
|
+
export { Grid }
|
|
840
|
+
|
|
841
|
+
export { GridItem }
|
|
842
|
+
|
|
843
|
+
export { Heading }
|
|
844
|
+
|
|
845
|
+
export { HStack }
|
|
846
|
+
|
|
847
|
+
export { Icon }
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* MedixDeck IconButton
|
|
851
|
+
*
|
|
852
|
+
* Square (or circle) icon-only button using exact MedixDeck brand colours.
|
|
853
|
+
*
|
|
854
|
+
* @example
|
|
855
|
+
* ```tsx
|
|
856
|
+
* <IconButton aria-label="Close" variant="ghost" colorScheme="red">
|
|
857
|
+
* <XIcon />
|
|
858
|
+
* </IconButton>
|
|
859
|
+
* ```
|
|
860
|
+
*/
|
|
861
|
+
export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
862
|
+
|
|
863
|
+
export declare interface IconButtonProps {
|
|
864
|
+
/** Accessible label — required for screen readers */
|
|
865
|
+
"aria-label": string;
|
|
866
|
+
/** Visual variant */
|
|
867
|
+
variant?: "solid" | "outline" | "ghost";
|
|
868
|
+
/** Size */
|
|
869
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
870
|
+
/** Brand color scheme */
|
|
871
|
+
colorScheme?: "blue" | "purple" | "green" | "red" | "gray";
|
|
872
|
+
/** Render as a circle instead of a rounded square */
|
|
873
|
+
isRound?: boolean;
|
|
874
|
+
/** Disabled state */
|
|
875
|
+
disabled?: boolean;
|
|
876
|
+
/** HTML type attribute */
|
|
877
|
+
type?: "button" | "submit" | "reset";
|
|
878
|
+
/** Click handler */
|
|
879
|
+
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
880
|
+
className?: string;
|
|
881
|
+
style?: default_2.CSSProperties;
|
|
882
|
+
children?: default_2.ReactNode;
|
|
883
|
+
id?: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export { Image_2 as Image }
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* MedixDeck Input
|
|
890
|
+
*
|
|
891
|
+
* Text input field. Supports icons, validation, and all standard HTML input types.
|
|
892
|
+
*
|
|
893
|
+
* @example
|
|
894
|
+
* ```tsx
|
|
895
|
+
* <Input
|
|
896
|
+
* placeholder="Search for a doctor…"
|
|
897
|
+
* leftElement={<SearchIcon />}
|
|
898
|
+
* />
|
|
899
|
+
* <Input isInvalid errorMessage="Email is required" type="email" />
|
|
900
|
+
* ```
|
|
901
|
+
*/
|
|
902
|
+
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
903
|
+
|
|
904
|
+
export declare interface InputProps extends Omit<InputProps_2, "size"> {
|
|
905
|
+
/** Input size */
|
|
906
|
+
size?: "sm" | "md" | "lg";
|
|
907
|
+
/** Left icon or element */
|
|
908
|
+
leftElement?: default_2.ReactNode;
|
|
909
|
+
/** Right icon or element */
|
|
910
|
+
rightElement?: default_2.ReactNode;
|
|
911
|
+
/** Error state */
|
|
912
|
+
isInvalid?: boolean;
|
|
913
|
+
/** Error message */
|
|
914
|
+
errorMessage?: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export { Link }
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* MedixDeck Logo
|
|
921
|
+
*
|
|
922
|
+
* Pure inline-SVG brand logo. Works in **every** consuming project immediately —
|
|
923
|
+
* no image files, no asset pipeline, no CDN hosting required.
|
|
924
|
+
*
|
|
925
|
+
* The mark path is derived from `assets/logos/logo-icon-purple.svg` (the
|
|
926
|
+
* canonical vector-only file for the brand mark). The wordmark paths are
|
|
927
|
+
* derived from `assets/logos/logo-text-blue.svg`. Both are embedded as
|
|
928
|
+
* inline SVG so they bundle directly into the library JS.
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* ```tsx
|
|
932
|
+
* // Full logo, default blue, 32 px tall
|
|
933
|
+
* <Logo />
|
|
934
|
+
*
|
|
935
|
+
* // Purple icon-only at 48 px
|
|
936
|
+
* <Logo variant="purple" type="icon" height={48} />
|
|
937
|
+
*
|
|
938
|
+
* // White full logo for dark navbars
|
|
939
|
+
* <Logo variant="white" height={28} />
|
|
940
|
+
* ```
|
|
941
|
+
*/
|
|
942
|
+
export declare function Logo({ variant, type, height, className, style, }: LogoProps): JSX_2.Element;
|
|
943
|
+
|
|
944
|
+
export declare interface LogoProps {
|
|
945
|
+
/**
|
|
946
|
+
* Color variant of the logo.
|
|
947
|
+
* - "blue" → #0685FF (primary brand color)
|
|
948
|
+
* - "purple" → #7700CC (secondary brand color)
|
|
949
|
+
* - "black" → #111926 (dark)
|
|
950
|
+
* - "white" → #FFFFFF (for dark backgrounds)
|
|
951
|
+
* @default "blue"
|
|
952
|
+
*/
|
|
953
|
+
variant?: LogoVariant;
|
|
954
|
+
/**
|
|
955
|
+
* "full" → brand mark + "MedixDeck" wordmark
|
|
956
|
+
* "icon" → brand mark only
|
|
957
|
+
* @default "full"
|
|
958
|
+
*/
|
|
959
|
+
type?: LogoType;
|
|
960
|
+
/**
|
|
961
|
+
* Height of the logo in pixels. Width scales proportionally.
|
|
962
|
+
* @default 32
|
|
963
|
+
*/
|
|
964
|
+
height?: number;
|
|
965
|
+
/** Optional className applied to the root <span> */
|
|
966
|
+
className?: string;
|
|
967
|
+
/** Extra inline styles on the root <span> */
|
|
968
|
+
style?: default_2.CSSProperties;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export declare type LogoType = "full" | "icon";
|
|
972
|
+
|
|
973
|
+
export declare type LogoVariant = "blue" | "purple" | "black" | "white";
|
|
974
|
+
|
|
975
|
+
export declare const medixConfig: SystemConfig;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* MedixDeck UI Provider
|
|
979
|
+
*
|
|
980
|
+
* Wrap your app root with this component to apply the MedixDeck theme,
|
|
981
|
+
* load the Satoshi & Inter fonts, and enable dark mode support.
|
|
982
|
+
*
|
|
983
|
+
* The provider automatically injects:
|
|
984
|
+
* - Font `<link>` tags (Satoshi via Fontshare, Inter via Google Fonts)
|
|
985
|
+
* - `--font-body` / `--font-heading` / `--font-mono` CSS custom properties
|
|
986
|
+
* - `--medix-form-*` color tokens for native form elements
|
|
987
|
+
* - `color-scheme` overrides for browser native controls
|
|
988
|
+
*
|
|
989
|
+
* @example
|
|
990
|
+
* ```tsx
|
|
991
|
+
* import { MedixProvider } from "@medixdeck/ui";
|
|
992
|
+
*
|
|
993
|
+
* function App() {
|
|
994
|
+
* return (
|
|
995
|
+
* <MedixProvider defaultColorMode="light">
|
|
996
|
+
* <YourApp />
|
|
997
|
+
* </MedixProvider>
|
|
998
|
+
* );
|
|
999
|
+
* }
|
|
1000
|
+
* ```
|
|
1001
|
+
*/
|
|
1002
|
+
export declare function MedixProvider({ children, defaultColorMode, forcedColorMode, }: MedixProviderProps): JSX_2.Element;
|
|
1003
|
+
|
|
1004
|
+
export declare interface MedixProviderProps {
|
|
1005
|
+
children: default_2.ReactNode;
|
|
1006
|
+
/**
|
|
1007
|
+
* Default color mode. Matches next-themes attribute.
|
|
1008
|
+
* @default "system"
|
|
1009
|
+
*/
|
|
1010
|
+
defaultColorMode?: "light" | "dark" | "system";
|
|
1011
|
+
/**
|
|
1012
|
+
* Force a specific color mode (disables user toggle)
|
|
1013
|
+
*/
|
|
1014
|
+
forcedColorMode?: "light" | "dark";
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* MedixDeck Modal
|
|
1019
|
+
*
|
|
1020
|
+
* Dialog overlay for focused interactions.
|
|
1021
|
+
*
|
|
1022
|
+
* @example
|
|
1023
|
+
* ```tsx
|
|
1024
|
+
* <Modal
|
|
1025
|
+
* isOpen={isOpen}
|
|
1026
|
+
* onClose={() => setIsOpen(false)}
|
|
1027
|
+
* title="Book Appointment"
|
|
1028
|
+
* footer={<Button onClick={handleSubmit}>Confirm</Button>}
|
|
1029
|
+
* >
|
|
1030
|
+
* <AppointmentForm />
|
|
1031
|
+
* </Modal>
|
|
1032
|
+
* ```
|
|
1033
|
+
*/
|
|
1034
|
+
export declare function Modal({ isOpen, onClose, title, description, size, closeOnOverlayClick, footer, children, }: ModalProps): JSX_2.Element;
|
|
1035
|
+
|
|
1036
|
+
export declare interface ModalProps {
|
|
1037
|
+
isOpen: boolean;
|
|
1038
|
+
onClose: () => void;
|
|
1039
|
+
title?: string;
|
|
1040
|
+
description?: string;
|
|
1041
|
+
size?: ModalSize;
|
|
1042
|
+
/** Prevent closing on backdrop click */
|
|
1043
|
+
closeOnOverlayClick?: boolean;
|
|
1044
|
+
/** Footer action buttons */
|
|
1045
|
+
footer?: default_2.ReactNode;
|
|
1046
|
+
children?: default_2.ReactNode;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export declare type ModalSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* MedixDeck Navbar
|
|
1053
|
+
*
|
|
1054
|
+
* Responsive navigation bar with smooth Framer Motion animations:
|
|
1055
|
+
* - Mobile menu slides + fades in/out
|
|
1056
|
+
* - Nav links stagger-fade on open
|
|
1057
|
+
* - CTA buttons slide up after links
|
|
1058
|
+
* - Hamburger ↔ Close icon crossfades
|
|
1059
|
+
*
|
|
1060
|
+
* ## CTA actions
|
|
1061
|
+
*
|
|
1062
|
+
* | Prop | Controls |
|
|
1063
|
+
* |---|---|
|
|
1064
|
+
* | `ctaLabel` + `ctaHref` + `onCtaClick` | Primary label button |
|
|
1065
|
+
* | `ctaIconHref` + `onCtaIconClick` | ↗ icon button (falls back to primary values) |
|
|
1066
|
+
* | `secondaryCtaLabel` + `secondaryCtaHref` + `onSecondaryCtaClick` | Ghost "Sign In" button |
|
|
1067
|
+
* | `ctaSlot` | Replaces the entire CTA area |
|
|
1068
|
+
*
|
|
1069
|
+
* ## Examples
|
|
1070
|
+
*
|
|
1071
|
+
* ### Href navigation (Next.js / plain links)
|
|
1072
|
+
* ```tsx
|
|
1073
|
+
* <Navbar ctaLabel="Talk to a Doctor" ctaHref="/consult" isSticky />
|
|
1074
|
+
* ```
|
|
1075
|
+
*
|
|
1076
|
+
* ### Click-handler (SPA / modal trigger)
|
|
1077
|
+
* ```tsx
|
|
1078
|
+
* <Navbar ctaLabel="Talk to a Doctor" onCtaClick={() => router.push("/consult")} isSticky />
|
|
1079
|
+
* ```
|
|
1080
|
+
*
|
|
1081
|
+
* ### Different destinations for label vs icon button
|
|
1082
|
+
* ```tsx
|
|
1083
|
+
* <Navbar
|
|
1084
|
+
* ctaLabel="Talk to a Doctor"
|
|
1085
|
+
* ctaHref="/consult"
|
|
1086
|
+
* ctaIconHref="https://app.medixdeck.com"
|
|
1087
|
+
* onCtaIconClick={() => analytics.track("app_opened")}
|
|
1088
|
+
* />
|
|
1089
|
+
* ```
|
|
1090
|
+
*
|
|
1091
|
+
* ### With Sign In secondary CTA
|
|
1092
|
+
* ```tsx
|
|
1093
|
+
* <Navbar
|
|
1094
|
+
* ctaLabel="Talk to a Doctor" ctaHref="/consult"
|
|
1095
|
+
* secondaryCtaLabel="Sign In" secondaryCtaHref="/login"
|
|
1096
|
+
* />
|
|
1097
|
+
* ```
|
|
1098
|
+
*
|
|
1099
|
+
* ### Custom CTA slot
|
|
1100
|
+
* ```tsx
|
|
1101
|
+
* <Navbar
|
|
1102
|
+
* ctaSlot={
|
|
1103
|
+
* <Box display="flex" gap="2">
|
|
1104
|
+
* <Button variant="ghost" colorScheme="blue" onClick={() => router.push("/login")}>Sign In</Button>
|
|
1105
|
+
* <Button variant="solid" colorScheme="purple" onClick={() => router.push("/signup")}>Get Started</Button>
|
|
1106
|
+
* </Box>
|
|
1107
|
+
* }
|
|
1108
|
+
* />
|
|
1109
|
+
* ```
|
|
1110
|
+
*
|
|
1111
|
+
* ### React Router / Next.js link integration
|
|
1112
|
+
* ```tsx
|
|
1113
|
+
* <Navbar
|
|
1114
|
+
* renderLink={(item, children) => <Link href={item.href}>{children}</Link>}
|
|
1115
|
+
* navItems={[...]}
|
|
1116
|
+
* />
|
|
1117
|
+
* ```
|
|
1118
|
+
*/
|
|
1119
|
+
export declare function Navbar({ logo, navItems, ctaLabel, ctaHref, onCtaClick, ctaIconHref, onCtaIconClick, secondaryCtaLabel, secondaryCtaHref, onSecondaryCtaClick, ctaSlot, renderLink, isSticky, variant, ...props }: NavbarProps): JSX_2.Element;
|
|
1120
|
+
|
|
1121
|
+
export declare interface NavbarProps extends Omit<BoxProps, "children"> {
|
|
1122
|
+
/** Logo element. Defaults to `<Logo />` when omitted. */
|
|
1123
|
+
logo?: default_2.ReactNode;
|
|
1124
|
+
/** Navigation items rendered in the center. */
|
|
1125
|
+
navItems?: NavItem[];
|
|
1126
|
+
/**
|
|
1127
|
+
* Custom link renderer — lets you integrate React Router, Next.js `<Link>`, etc.
|
|
1128
|
+
*
|
|
1129
|
+
* @example
|
|
1130
|
+
* ```tsx
|
|
1131
|
+
* // Next.js
|
|
1132
|
+
* renderLink={(item, children) => <Link href={item.href}>{children}</Link>}
|
|
1133
|
+
* // React Router
|
|
1134
|
+
* renderLink={(item, children) => <RouterLink to={item.href}>{children}</RouterLink>}
|
|
1135
|
+
* ```
|
|
1136
|
+
*/
|
|
1137
|
+
renderLink?: (item: NavItem, children: default_2.ReactNode) => default_2.ReactNode;
|
|
1138
|
+
/**
|
|
1139
|
+
* Text shown in the primary CTA button (left of the `[label] [↗]` pair).
|
|
1140
|
+
* @default "Get Started"
|
|
1141
|
+
*/
|
|
1142
|
+
ctaLabel?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* URL the primary CTA **label button** navigates to.
|
|
1145
|
+
* @example ctaHref="/consult"
|
|
1146
|
+
*/
|
|
1147
|
+
ctaHref?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Called when the primary CTA **label button** is clicked.
|
|
1150
|
+
* `ctaHref` (if provided) takes effect first; this fires in addition.
|
|
1151
|
+
*/
|
|
1152
|
+
onCtaClick?: () => void;
|
|
1153
|
+
/**
|
|
1154
|
+
* URL the **↗ icon button** navigates to.
|
|
1155
|
+
* Falls back to `ctaHref` when not provided.
|
|
1156
|
+
* @example ctaIconHref="https://app.medixdeck.com"
|
|
1157
|
+
*/
|
|
1158
|
+
ctaIconHref?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* Called when the **↗ icon button** is clicked.
|
|
1161
|
+
* Falls back to `onCtaClick` when not provided.
|
|
1162
|
+
*/
|
|
1163
|
+
onCtaIconClick?: () => void;
|
|
1164
|
+
/** Text for the ghost "Sign In" button to the left of the primary CTA. */
|
|
1165
|
+
secondaryCtaLabel?: string;
|
|
1166
|
+
/** URL for the secondary CTA button. */
|
|
1167
|
+
secondaryCtaHref?: string;
|
|
1168
|
+
/** Called when the secondary CTA is clicked. */
|
|
1169
|
+
onSecondaryCtaClick?: () => void;
|
|
1170
|
+
/**
|
|
1171
|
+
* Fully replaces the default `[ctaLabel] [↗]` CTA area with any React element.
|
|
1172
|
+
* When set, all `cta*` / `secondaryCta*` props are ignored.
|
|
1173
|
+
*
|
|
1174
|
+
* @example
|
|
1175
|
+
* ```tsx
|
|
1176
|
+
* ctaSlot={
|
|
1177
|
+
* <Box display="flex" gap="2">
|
|
1178
|
+
* <Button variant="ghost" colorScheme="blue" onClick={() => router.push("/login")}>Sign In</Button>
|
|
1179
|
+
* <Button variant="solid" colorScheme="purple" onClick={() => router.push("/signup")}>Get Started</Button>
|
|
1180
|
+
* </Box>
|
|
1181
|
+
* }
|
|
1182
|
+
* ```
|
|
1183
|
+
*/
|
|
1184
|
+
ctaSlot?: default_2.ReactNode;
|
|
1185
|
+
/** Pin the navbar to the top of the viewport. */
|
|
1186
|
+
isSticky?: boolean;
|
|
1187
|
+
/**
|
|
1188
|
+
* Visual background treatment.
|
|
1189
|
+
* - `"solid"` — uses the surface background token (default)
|
|
1190
|
+
* - `"transparent"` — fully transparent (e.g. over a hero image)
|
|
1191
|
+
* - `"blur"` — frosted-glass dark overlay
|
|
1192
|
+
*/
|
|
1193
|
+
variant?: "solid" | "transparent" | "blur";
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export declare interface NavItem {
|
|
1197
|
+
label: string;
|
|
1198
|
+
href: string;
|
|
1199
|
+
isActive?: boolean;
|
|
1200
|
+
children?: NavItem[];
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* MedixDeck OTPInput / PinInput
|
|
1205
|
+
*
|
|
1206
|
+
* Single-character-per-box verification code input with full dark mode support.
|
|
1207
|
+
* Colors are driven by CSS custom properties (--medix-form-*) so they cascade
|
|
1208
|
+
* correctly with a .dark ancestor class — no JS theme hook needed.
|
|
1209
|
+
*
|
|
1210
|
+
* @example
|
|
1211
|
+
* ```tsx
|
|
1212
|
+
* <OTPInput
|
|
1213
|
+
* length={6}
|
|
1214
|
+
* label="Enter verification code"
|
|
1215
|
+
* onComplete={(code) => verifyCode(code)}
|
|
1216
|
+
* />
|
|
1217
|
+
* ```
|
|
1218
|
+
*/
|
|
1219
|
+
export declare function OTPInput({ length, value, onChange, onComplete, isInvalid, isDisabled, mask, label, helperText, errorMessage, }: OTPInputProps): JSX_2.Element;
|
|
1220
|
+
|
|
1221
|
+
export declare interface OTPInputProps {
|
|
1222
|
+
/** Number of digits */
|
|
1223
|
+
length?: number;
|
|
1224
|
+
/** Controlled value (joined string) */
|
|
1225
|
+
value?: string;
|
|
1226
|
+
onChange?: (value: string) => void;
|
|
1227
|
+
onComplete?: (value: string) => void;
|
|
1228
|
+
/** Whether in error state */
|
|
1229
|
+
isInvalid?: boolean;
|
|
1230
|
+
/** Whether disabled */
|
|
1231
|
+
isDisabled?: boolean;
|
|
1232
|
+
/** Whether to mask like a password */
|
|
1233
|
+
mask?: boolean;
|
|
1234
|
+
/** Label above the input */
|
|
1235
|
+
label?: string;
|
|
1236
|
+
/** Helper text */
|
|
1237
|
+
helperText?: string;
|
|
1238
|
+
/** Error message */
|
|
1239
|
+
errorMessage?: string;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* MedixDeck Pagination
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```tsx
|
|
1247
|
+
* <Pagination total={245} pageSize={10} currentPage={3} onChange={setPage} />
|
|
1248
|
+
* ```
|
|
1249
|
+
*/
|
|
1250
|
+
export declare function Pagination({ total, pageSize, currentPage, onChange, siblingCount, showEdges, compact, ...props }: PaginationProps): JSX_2.Element | null;
|
|
1251
|
+
|
|
1252
|
+
export declare interface PaginationProps extends Omit<BoxProps, "onChange"> {
|
|
1253
|
+
/** Total number of items */
|
|
1254
|
+
total: number;
|
|
1255
|
+
/** Items per page */
|
|
1256
|
+
pageSize?: number;
|
|
1257
|
+
/** Current page (1-indexed) */
|
|
1258
|
+
currentPage?: number;
|
|
1259
|
+
/** Callback for page change */
|
|
1260
|
+
onChange?: (page: number) => void;
|
|
1261
|
+
/** How many page buttons to show around current */
|
|
1262
|
+
siblingCount?: number;
|
|
1263
|
+
/** Show first/last page buttons */
|
|
1264
|
+
showEdges?: boolean;
|
|
1265
|
+
/** Compact mode */
|
|
1266
|
+
compact?: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* MedixDeck PhoneInput
|
|
1271
|
+
*
|
|
1272
|
+
* Phone number input with country code selector (defaults to Nigeria +234).
|
|
1273
|
+
* Colors use CSS custom properties (--medix-form-*) that cascade from any
|
|
1274
|
+
* .dark ancestor, so dark mode works without any JS theme hook.
|
|
1275
|
+
*
|
|
1276
|
+
* @example
|
|
1277
|
+
* ```tsx
|
|
1278
|
+
* <PhoneInput
|
|
1279
|
+
* label="Phone number"
|
|
1280
|
+
* placeholder="80 000 0000"
|
|
1281
|
+
* defaultCountryCode="+234"
|
|
1282
|
+
* onChange={(val) => setValue(val)}
|
|
1283
|
+
* />
|
|
1284
|
+
* ```
|
|
1285
|
+
*/
|
|
1286
|
+
export declare function PhoneInput({ value, onChange, showCountryCode, defaultCountryCode, placeholder, isInvalid, errorMessage, label, helperText, isDisabled, id, }: PhoneInputProps): JSX_2.Element;
|
|
1287
|
+
|
|
1288
|
+
export declare interface PhoneInputProps {
|
|
1289
|
+
/** Controlled value (full number including country code prefix) */
|
|
1290
|
+
value?: string;
|
|
1291
|
+
onChange?: (value: string) => void;
|
|
1292
|
+
/** Show country code selector */
|
|
1293
|
+
showCountryCode?: boolean;
|
|
1294
|
+
/** Default country code e.g. "+234" */
|
|
1295
|
+
defaultCountryCode?: string;
|
|
1296
|
+
placeholder?: string;
|
|
1297
|
+
isInvalid?: boolean;
|
|
1298
|
+
errorMessage?: string;
|
|
1299
|
+
label?: string;
|
|
1300
|
+
helperText?: string;
|
|
1301
|
+
isDisabled?: boolean;
|
|
1302
|
+
id?: string;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export declare const PinInput: typeof OTPInput;
|
|
1306
|
+
|
|
1307
|
+
export declare type PinInputProps = OTPInputProps;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* MedixDeck Progress / ProgressBar
|
|
1311
|
+
*
|
|
1312
|
+
* @example
|
|
1313
|
+
* ```tsx
|
|
1314
|
+
* <Progress value={75} colorScheme="blue" size="md" showLabel />
|
|
1315
|
+
* ```
|
|
1316
|
+
*/
|
|
1317
|
+
export declare const Progress: default_2.ForwardRefExoticComponent<ProgressProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1318
|
+
|
|
1319
|
+
export declare interface ProgressProps extends BoxProps {
|
|
1320
|
+
/** Progress value 0–100 */
|
|
1321
|
+
value: number;
|
|
1322
|
+
/** Color scheme */
|
|
1323
|
+
colorScheme?: "blue" | "purple" | "green" | "amber" | "red";
|
|
1324
|
+
/** Height of the bar */
|
|
1325
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
1326
|
+
/** Show label */
|
|
1327
|
+
showLabel?: boolean;
|
|
1328
|
+
/** Animate on mount */
|
|
1329
|
+
animated?: boolean;
|
|
1330
|
+
/** Indeterminate (loop) animation */
|
|
1331
|
+
isIndeterminate?: boolean;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
export declare const radiiTokens: {
|
|
1335
|
+
readonly none: {
|
|
1336
|
+
readonly value: "0px";
|
|
1337
|
+
};
|
|
1338
|
+
readonly badge: {
|
|
1339
|
+
readonly value: "4px";
|
|
1340
|
+
};
|
|
1341
|
+
readonly sm: {
|
|
1342
|
+
readonly value: "4px";
|
|
1343
|
+
};
|
|
1344
|
+
readonly md: {
|
|
1345
|
+
readonly value: "8px";
|
|
1346
|
+
};
|
|
1347
|
+
readonly card: {
|
|
1348
|
+
readonly value: "12px";
|
|
1349
|
+
};
|
|
1350
|
+
readonly lg: {
|
|
1351
|
+
readonly value: "12px";
|
|
1352
|
+
};
|
|
1353
|
+
readonly modal: {
|
|
1354
|
+
readonly value: "16px";
|
|
1355
|
+
};
|
|
1356
|
+
readonly xl: {
|
|
1357
|
+
readonly value: "16px";
|
|
1358
|
+
};
|
|
1359
|
+
readonly "2xl": {
|
|
1360
|
+
readonly value: "20px";
|
|
1361
|
+
};
|
|
1362
|
+
readonly "3xl": {
|
|
1363
|
+
readonly value: "24px";
|
|
1364
|
+
};
|
|
1365
|
+
readonly full: {
|
|
1366
|
+
readonly value: "9999px";
|
|
1367
|
+
};
|
|
1368
|
+
readonly circle: {
|
|
1369
|
+
readonly value: "50%";
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* MedixDeck RadioGroup
|
|
1375
|
+
*
|
|
1376
|
+
* @example
|
|
1377
|
+
* ```tsx
|
|
1378
|
+
* <RadioGroup
|
|
1379
|
+
* name="consultation-type"
|
|
1380
|
+
* colorScheme="blue"
|
|
1381
|
+
* options={[
|
|
1382
|
+
* { value: "video", label: "Video Consultation", description: "From anywhere" },
|
|
1383
|
+
* { value: "in-person", label: "In-Person Visit", description: "At the clinic" },
|
|
1384
|
+
* ]}
|
|
1385
|
+
* />
|
|
1386
|
+
* ```
|
|
1387
|
+
*/
|
|
1388
|
+
export declare function RadioGroup({ name, value: controlledValue, onChange, options, colorScheme, direction, }: RadioGroupProps): JSX_2.Element;
|
|
1389
|
+
|
|
1390
|
+
export declare interface RadioGroupProps {
|
|
1391
|
+
name: string;
|
|
1392
|
+
/** Controlled selected value */
|
|
1393
|
+
value?: string;
|
|
1394
|
+
onChange?: (value: string) => void;
|
|
1395
|
+
options: RadioOption[];
|
|
1396
|
+
/** Brand color for the selected dot */
|
|
1397
|
+
colorScheme?: "blue" | "purple";
|
|
1398
|
+
direction?: "row" | "column";
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export declare interface RadioOption {
|
|
1402
|
+
value: string;
|
|
1403
|
+
label: string;
|
|
1404
|
+
description?: string;
|
|
1405
|
+
disabled?: boolean;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export declare const SearchInput: default_2.ForwardRefExoticComponent<SearchInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* SearchInput — Quick search variant with built-in search icon
|
|
1412
|
+
*/
|
|
1413
|
+
export declare interface SearchInputProps extends Omit<InputProps, "leftElement"> {
|
|
1414
|
+
placeholder?: string;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* MedixDeck SectionHeader
|
|
1419
|
+
*
|
|
1420
|
+
* Consistent section headers used across MedixDeck pages.
|
|
1421
|
+
*
|
|
1422
|
+
* @example
|
|
1423
|
+
* ```tsx
|
|
1424
|
+
* <SectionHeader
|
|
1425
|
+
* eyebrow="How it Works"
|
|
1426
|
+
* title="Smart healthcare, simplified into a few intuitive steps."
|
|
1427
|
+
* align="center"
|
|
1428
|
+
* />
|
|
1429
|
+
* ```
|
|
1430
|
+
*/
|
|
1431
|
+
export declare function SectionHeader({ eyebrow, title, description, align, action, eyebrowColor, ...props }: SectionHeaderProps): JSX_2.Element;
|
|
1432
|
+
|
|
1433
|
+
export declare interface SectionHeaderProps extends BoxProps {
|
|
1434
|
+
/** Section tag/eyebrow label */
|
|
1435
|
+
eyebrow?: string;
|
|
1436
|
+
/** Main heading */
|
|
1437
|
+
title: string;
|
|
1438
|
+
/** Description / subtitle */
|
|
1439
|
+
description?: string;
|
|
1440
|
+
/** Alignment */
|
|
1441
|
+
align?: "left" | "center" | "right";
|
|
1442
|
+
/** Action slot (button) */
|
|
1443
|
+
action?: default_2.ReactNode;
|
|
1444
|
+
/** Eyebrow color */
|
|
1445
|
+
eyebrowColor?: string;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* MedixDeck Select
|
|
1450
|
+
*/
|
|
1451
|
+
export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<HTMLSelectElement>>;
|
|
1452
|
+
|
|
1453
|
+
export declare interface SelectOption {
|
|
1454
|
+
value: string;
|
|
1455
|
+
label: string;
|
|
1456
|
+
disabled?: boolean;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export declare interface SelectProps extends Omit<NativeSelectRootProps, "size"> {
|
|
1460
|
+
options?: SelectOption[];
|
|
1461
|
+
placeholder?: string;
|
|
1462
|
+
isInvalid?: boolean;
|
|
1463
|
+
errorMessage?: string;
|
|
1464
|
+
size?: "sm" | "md" | "lg";
|
|
1465
|
+
children?: default_2.ReactNode;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
export declare const shadowTokens: {
|
|
1469
|
+
readonly xs: {
|
|
1470
|
+
readonly value: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
1471
|
+
};
|
|
1472
|
+
readonly sm: {
|
|
1473
|
+
readonly value: "0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10)";
|
|
1474
|
+
};
|
|
1475
|
+
readonly md: {
|
|
1476
|
+
readonly value: "0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10)";
|
|
1477
|
+
};
|
|
1478
|
+
readonly lg: {
|
|
1479
|
+
readonly value: "0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10)";
|
|
1480
|
+
};
|
|
1481
|
+
readonly xl: {
|
|
1482
|
+
readonly value: "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)";
|
|
1483
|
+
};
|
|
1484
|
+
readonly "card-dark": {
|
|
1485
|
+
readonly value: "0 4px 24px 0 rgba(0, 0, 0, 0.40)";
|
|
1486
|
+
};
|
|
1487
|
+
readonly "card-light": {
|
|
1488
|
+
readonly value: "0 2px 12px 0 rgba(17, 25, 38, 0.08)";
|
|
1489
|
+
};
|
|
1490
|
+
readonly none: {
|
|
1491
|
+
readonly value: "none";
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
export { SimpleGrid }
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* MedixDeck Skeleton
|
|
1499
|
+
*
|
|
1500
|
+
* Placeholder for loading content.
|
|
1501
|
+
*
|
|
1502
|
+
* @example
|
|
1503
|
+
* ```tsx
|
|
1504
|
+
* <Skeleton h="4" w="200px" borderRadius="md" />
|
|
1505
|
+
* ```
|
|
1506
|
+
*/
|
|
1507
|
+
export declare const Skeleton: default_2.ForwardRefExoticComponent<SkeletonProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* MedixDeck SkeletonCard
|
|
1511
|
+
*/
|
|
1512
|
+
export declare function SkeletonCard({ ...props }: BoxProps): JSX_2.Element;
|
|
1513
|
+
|
|
1514
|
+
export declare interface SkeletonProps extends BoxProps {
|
|
1515
|
+
isLoaded?: boolean;
|
|
1516
|
+
children?: default_2.ReactNode;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* MedixDeck SkeletonText
|
|
1521
|
+
*/
|
|
1522
|
+
export declare function SkeletonText({ lines, spacing, lastLineWidth, ...props }: SkeletonTextProps): JSX_2.Element;
|
|
1523
|
+
|
|
1524
|
+
export declare interface SkeletonTextProps extends BoxProps {
|
|
1525
|
+
lines?: number;
|
|
1526
|
+
spacing?: string;
|
|
1527
|
+
lastLineWidth?: string;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* MedixDeck Spacing & Radius Tokens
|
|
1532
|
+
* From style guide: Spacing scale 4, 8, 12, 16, 24, 32, 48, 64
|
|
1533
|
+
* Radius: Badge=4px, Button/Input=8px, Card=12px, Modal/Sheet=16px, Avatar=50%
|
|
1534
|
+
*/
|
|
1535
|
+
export declare const spacingTokens: {
|
|
1536
|
+
readonly 0: {
|
|
1537
|
+
readonly value: "0px";
|
|
1538
|
+
};
|
|
1539
|
+
readonly 1: {
|
|
1540
|
+
readonly value: "4px";
|
|
1541
|
+
};
|
|
1542
|
+
readonly 2: {
|
|
1543
|
+
readonly value: "8px";
|
|
1544
|
+
};
|
|
1545
|
+
readonly 3: {
|
|
1546
|
+
readonly value: "12px";
|
|
1547
|
+
};
|
|
1548
|
+
readonly 4: {
|
|
1549
|
+
readonly value: "16px";
|
|
1550
|
+
};
|
|
1551
|
+
readonly 6: {
|
|
1552
|
+
readonly value: "24px";
|
|
1553
|
+
};
|
|
1554
|
+
readonly 8: {
|
|
1555
|
+
readonly value: "32px";
|
|
1556
|
+
};
|
|
1557
|
+
readonly 12: {
|
|
1558
|
+
readonly value: "48px";
|
|
1559
|
+
};
|
|
1560
|
+
readonly 16: {
|
|
1561
|
+
readonly value: "64px";
|
|
1562
|
+
};
|
|
1563
|
+
readonly 20: {
|
|
1564
|
+
readonly value: "80px";
|
|
1565
|
+
};
|
|
1566
|
+
readonly 24: {
|
|
1567
|
+
readonly value: "96px";
|
|
1568
|
+
};
|
|
1569
|
+
readonly 32: {
|
|
1570
|
+
readonly value: "128px";
|
|
1571
|
+
};
|
|
1572
|
+
readonly 40: {
|
|
1573
|
+
readonly value: "160px";
|
|
1574
|
+
};
|
|
1575
|
+
readonly 48: {
|
|
1576
|
+
readonly value: "192px";
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* MedixDeck Spinner
|
|
1582
|
+
*
|
|
1583
|
+
* Loading indicator for async operations.
|
|
1584
|
+
*
|
|
1585
|
+
* @example
|
|
1586
|
+
* ```tsx
|
|
1587
|
+
* <Spinner size="md" label="Loading..." />
|
|
1588
|
+
* ```
|
|
1589
|
+
*/
|
|
1590
|
+
export declare function Spinner({ size, label, color, ...props }: SpinnerProps): JSX_2.Element;
|
|
1591
|
+
|
|
1592
|
+
export declare interface SpinnerProps {
|
|
1593
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
1594
|
+
label?: string;
|
|
1595
|
+
color?: string;
|
|
1596
|
+
[key: string]: unknown;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
export { Stack }
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* MedixDeck StatCard
|
|
1603
|
+
*
|
|
1604
|
+
* Metric display card (e.g. 25K+ Happy Patients).
|
|
1605
|
+
*
|
|
1606
|
+
* @example
|
|
1607
|
+
* ```tsx
|
|
1608
|
+
* <StatCard value="25K+" label="Happy Patients" change={12.5} />
|
|
1609
|
+
* ```
|
|
1610
|
+
*/
|
|
1611
|
+
export declare const StatCard: default_2.ForwardRefExoticComponent<StatCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1612
|
+
|
|
1613
|
+
export declare interface StatCardProps extends BoxProps {
|
|
1614
|
+
/** Main metric value */
|
|
1615
|
+
value: string | number;
|
|
1616
|
+
/** Metric label */
|
|
1617
|
+
label: string;
|
|
1618
|
+
/** Optional sub-label or unit */
|
|
1619
|
+
unit?: string;
|
|
1620
|
+
/** Percentage change */
|
|
1621
|
+
change?: number;
|
|
1622
|
+
/** Trend direction — if not provided, inferred from change */
|
|
1623
|
+
trend?: "up" | "down" | "neutral";
|
|
1624
|
+
/** Icon to display */
|
|
1625
|
+
icon?: default_2.ReactNode;
|
|
1626
|
+
/** Color accent */
|
|
1627
|
+
accentColor?: string;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
export declare interface Step {
|
|
1631
|
+
id: string | number;
|
|
1632
|
+
title: string;
|
|
1633
|
+
description?: string;
|
|
1634
|
+
icon?: default_2.ReactNode;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* MedixDeck Stepper
|
|
1639
|
+
*
|
|
1640
|
+
* Horizontal multi-step progress indicator. Each step shows a circular
|
|
1641
|
+
* indicator and a label badge. Completed steps get a checkmark, the active
|
|
1642
|
+
* step is highlighted, and upcoming steps appear in muted gray.
|
|
1643
|
+
*
|
|
1644
|
+
* @example
|
|
1645
|
+
* ```tsx
|
|
1646
|
+
* <Stepper
|
|
1647
|
+
* steps={[
|
|
1648
|
+
* { id: 1, title: "Verified" },
|
|
1649
|
+
* { id: 2, title: "Personal Info" },
|
|
1650
|
+
* { id: 3, title: "Health Info" },
|
|
1651
|
+
* ]}
|
|
1652
|
+
* currentStep={2}
|
|
1653
|
+
* />
|
|
1654
|
+
* ```
|
|
1655
|
+
*/
|
|
1656
|
+
export declare function Stepper({ steps, currentStep, variant, orientation, colorScheme, ...props }: StepperProps): JSX_2.Element;
|
|
1657
|
+
|
|
1658
|
+
export declare interface StepperProps extends BoxProps {
|
|
1659
|
+
/** Array of step definitions */
|
|
1660
|
+
steps: Step[];
|
|
1661
|
+
/**
|
|
1662
|
+
* Index of the currently active step (1-indexed to match natural language,
|
|
1663
|
+
* e.g. currentStep={2} means step 2 is active).
|
|
1664
|
+
*/
|
|
1665
|
+
currentStep: number;
|
|
1666
|
+
variant?: "default" | "compact";
|
|
1667
|
+
orientation?: "horizontal" | "vertical";
|
|
1668
|
+
/** Brand color used for active/completed states */
|
|
1669
|
+
colorScheme?: "blue" | "purple";
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* MedixDeck Switch / Toggle
|
|
1674
|
+
*
|
|
1675
|
+
* @example
|
|
1676
|
+
* ```tsx
|
|
1677
|
+
* <Switch label="Email notifications" description="Get reminders for appointments" />
|
|
1678
|
+
* <Switch colorScheme="purple" label="Dark mode" defaultChecked />
|
|
1679
|
+
* ```
|
|
1680
|
+
*/
|
|
1681
|
+
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
1682
|
+
|
|
1683
|
+
export declare interface SwitchProps {
|
|
1684
|
+
/** Brand color for the on state */
|
|
1685
|
+
colorScheme?: ColorScheme_2;
|
|
1686
|
+
size?: "sm" | "md" | "lg";
|
|
1687
|
+
/** Controlled checked value */
|
|
1688
|
+
checked?: boolean;
|
|
1689
|
+
/** Default state for uncontrolled usage */
|
|
1690
|
+
defaultChecked?: boolean;
|
|
1691
|
+
onChange?: (checked: boolean) => void;
|
|
1692
|
+
disabled?: boolean;
|
|
1693
|
+
/** Label shown to the right */
|
|
1694
|
+
label?: string;
|
|
1695
|
+
/** Helper text shown below the label */
|
|
1696
|
+
description?: string;
|
|
1697
|
+
name?: string;
|
|
1698
|
+
id?: string;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
export declare const system: SystemContext;
|
|
1702
|
+
|
|
1703
|
+
export declare interface TabItem {
|
|
1704
|
+
id: string;
|
|
1705
|
+
label: string;
|
|
1706
|
+
badge?: string | number;
|
|
1707
|
+
disabled?: boolean;
|
|
1708
|
+
content?: default_2.ReactNode;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* MedixDeck Tabs
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* ```tsx
|
|
1716
|
+
* <Tabs
|
|
1717
|
+
* tabs={[
|
|
1718
|
+
* { id: "overview", label: "Overview", content: <Overview /> },
|
|
1719
|
+
* { id: "records", label: "Records", badge: "3", content: <Records /> },
|
|
1720
|
+
* ]}
|
|
1721
|
+
* />
|
|
1722
|
+
* ```
|
|
1723
|
+
*/
|
|
1724
|
+
export declare function Tabs({ tabs, defaultActiveId, activeId: controlledId, onChange, variant, size, renderContent, ...props }: TabsProps): JSX_2.Element;
|
|
1725
|
+
|
|
1726
|
+
export declare interface TabsProps extends Omit<BoxProps, "onChange"> {
|
|
1727
|
+
tabs: TabItem[];
|
|
1728
|
+
defaultActiveId?: string;
|
|
1729
|
+
activeId?: string;
|
|
1730
|
+
onChange?: (id: string) => void;
|
|
1731
|
+
variant?: "line" | "pill";
|
|
1732
|
+
size?: "sm" | "md" | "lg";
|
|
1733
|
+
renderContent?: boolean;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* MedixDeck Tag / Chip
|
|
1738
|
+
*
|
|
1739
|
+
* For filters, categories, and selections.
|
|
1740
|
+
*
|
|
1741
|
+
* @example
|
|
1742
|
+
* ```tsx
|
|
1743
|
+
* <Tag colorScheme="blue" variant="subtle">Cardiology</Tag>
|
|
1744
|
+
* ```
|
|
1745
|
+
*/
|
|
1746
|
+
export declare const Tag: default_2.ForwardRefExoticComponent<TagProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1747
|
+
|
|
1748
|
+
export declare type TagColorScheme = "blue" | "purple" | "green" | "gray" | "red" | "amber";
|
|
1749
|
+
|
|
1750
|
+
export declare interface TagProps extends BoxProps {
|
|
1751
|
+
variant?: TagVariant;
|
|
1752
|
+
colorScheme?: TagColorScheme;
|
|
1753
|
+
/** Optional close-button handler */
|
|
1754
|
+
onClose?: () => void;
|
|
1755
|
+
children: default_2.ReactNode;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
export declare type TagVariant = "solid" | "subtle" | "outline";
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* MedixDeck TestimonialCard
|
|
1762
|
+
*/
|
|
1763
|
+
export declare function TestimonialCard({ quote, authorName, authorTitle, authorAvatar, rating, ...props }: TestimonialCardProps): JSX_2.Element;
|
|
1764
|
+
|
|
1765
|
+
export declare interface TestimonialCardProps extends BoxProps {
|
|
1766
|
+
quote: string;
|
|
1767
|
+
authorName: string;
|
|
1768
|
+
authorTitle?: string;
|
|
1769
|
+
authorAvatar?: string;
|
|
1770
|
+
rating?: number;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export { Text_2 as Text }
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* MedixDeck Textarea
|
|
1777
|
+
*
|
|
1778
|
+
* Multi-line text input for notes, messages, and descriptions.
|
|
1779
|
+
*
|
|
1780
|
+
* @example
|
|
1781
|
+
* ```tsx
|
|
1782
|
+
* <Textarea placeholder="Describe your symptoms…" rows={4} maxLength={500} showCount />
|
|
1783
|
+
* ```
|
|
1784
|
+
*/
|
|
1785
|
+
export declare const Textarea: default_2.ForwardRefExoticComponent<TextareaProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
1786
|
+
|
|
1787
|
+
export declare interface TextareaProps extends TextareaProps_2 {
|
|
1788
|
+
/** Error state */
|
|
1789
|
+
isInvalid?: boolean;
|
|
1790
|
+
/** Error message */
|
|
1791
|
+
errorMessage?: string;
|
|
1792
|
+
/** Show character count */
|
|
1793
|
+
maxLength?: number;
|
|
1794
|
+
/** Show remaining character count */
|
|
1795
|
+
showCount?: boolean;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Text style compositions
|
|
1800
|
+
*/
|
|
1801
|
+
export declare const textStyleTokens: {
|
|
1802
|
+
readonly display: {
|
|
1803
|
+
readonly value: {
|
|
1804
|
+
readonly fontFamily: "var(--font-heading)";
|
|
1805
|
+
readonly fontSize: "var(--font-size-6xl)";
|
|
1806
|
+
readonly fontWeight: "var(--font-weight-bold)";
|
|
1807
|
+
readonly lineHeight: "var(--line-height-tight)";
|
|
1808
|
+
readonly letterSpacing: "var(--letter-spacing-tight)";
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
readonly h1: {
|
|
1812
|
+
readonly value: {
|
|
1813
|
+
readonly fontFamily: "var(--font-heading)";
|
|
1814
|
+
readonly fontSize: "var(--font-size-5xl)";
|
|
1815
|
+
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1816
|
+
readonly lineHeight: "var(--line-height-snug)";
|
|
1817
|
+
readonly letterSpacing: "var(--letter-spacing-tight)";
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
readonly h2: {
|
|
1821
|
+
readonly value: {
|
|
1822
|
+
readonly fontFamily: "var(--font-heading)";
|
|
1823
|
+
readonly fontSize: "var(--font-size-4xl)";
|
|
1824
|
+
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1825
|
+
readonly lineHeight: "var(--line-height-normal)";
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
readonly h3: {
|
|
1829
|
+
readonly value: {
|
|
1830
|
+
readonly fontFamily: "var(--font-heading)";
|
|
1831
|
+
readonly fontSize: "var(--font-size-2xl)";
|
|
1832
|
+
readonly fontWeight: "var(--font-weight-medium)";
|
|
1833
|
+
readonly lineHeight: "var(--line-height-relaxed)";
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
readonly body: {
|
|
1837
|
+
readonly value: {
|
|
1838
|
+
readonly fontFamily: "var(--font-body)";
|
|
1839
|
+
readonly fontSize: "var(--font-size-md)";
|
|
1840
|
+
readonly fontWeight: "var(--font-weight-normal)";
|
|
1841
|
+
readonly lineHeight: "var(--line-height-loose)";
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
readonly small: {
|
|
1845
|
+
readonly value: {
|
|
1846
|
+
readonly fontFamily: "var(--font-body)";
|
|
1847
|
+
readonly fontSize: "var(--font-size-sm)";
|
|
1848
|
+
readonly fontWeight: "var(--font-weight-normal)";
|
|
1849
|
+
readonly lineHeight: "var(--line-height-normal)";
|
|
1850
|
+
};
|
|
1851
|
+
};
|
|
1852
|
+
readonly label: {
|
|
1853
|
+
readonly value: {
|
|
1854
|
+
readonly fontFamily: "var(--font-body)";
|
|
1855
|
+
readonly fontSize: "var(--font-size-xs)";
|
|
1856
|
+
readonly fontWeight: "var(--font-weight-medium)";
|
|
1857
|
+
readonly letterSpacing: "var(--letter-spacing-wide)";
|
|
1858
|
+
readonly textTransform: "uppercase";
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
readonly mono: {
|
|
1862
|
+
readonly value: {
|
|
1863
|
+
readonly fontFamily: "var(--font-mono)";
|
|
1864
|
+
readonly fontSize: "var(--font-size-md)";
|
|
1865
|
+
readonly fontWeight: "var(--font-weight-normal)";
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* MedixDeck Tooltip
|
|
1872
|
+
*
|
|
1873
|
+
* Hover label for icons, truncated text, and contextual hints.
|
|
1874
|
+
*
|
|
1875
|
+
* @example
|
|
1876
|
+
* ```tsx
|
|
1877
|
+
* <Tooltip label="MDCN Verified Doctor" placement="top">
|
|
1878
|
+
* <span>✓</span>
|
|
1879
|
+
* </Tooltip>
|
|
1880
|
+
*
|
|
1881
|
+
* <Tooltip label="Copy patient ID" placement="bottom">
|
|
1882
|
+
* <Button>📋</Button>
|
|
1883
|
+
* </Tooltip>
|
|
1884
|
+
* ```
|
|
1885
|
+
*/
|
|
1886
|
+
export declare function Tooltip({ label, children, placement, ...props }: TooltipProps): JSX_2.Element;
|
|
1887
|
+
|
|
1888
|
+
declare type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
1889
|
+
|
|
1890
|
+
export declare interface TooltipProps extends Omit<TooltipRootProps, "content"> {
|
|
1891
|
+
/** Text shown in the tooltip bubble */
|
|
1892
|
+
label: string;
|
|
1893
|
+
/** Element that triggers the tooltip */
|
|
1894
|
+
children: default_2.ReactNode;
|
|
1895
|
+
/**
|
|
1896
|
+
* Preferred placement of the tooltip relative to the trigger.
|
|
1897
|
+
* The tooltip will flip automatically if it overflows the viewport.
|
|
1898
|
+
* @default "top"
|
|
1899
|
+
*/
|
|
1900
|
+
placement?: TooltipPlacement;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* MedixDeck Typography Tokens
|
|
1905
|
+
* Font: Satoshi (from Fontshare)
|
|
1906
|
+
* Scale derived from style guide.
|
|
1907
|
+
*/
|
|
1908
|
+
export declare const typographyTokens: {
|
|
1909
|
+
readonly fonts: {
|
|
1910
|
+
readonly heading: {
|
|
1911
|
+
readonly value: "'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif";
|
|
1912
|
+
};
|
|
1913
|
+
readonly body: {
|
|
1914
|
+
readonly value: "'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif";
|
|
1915
|
+
};
|
|
1916
|
+
readonly mono: {
|
|
1917
|
+
readonly value: "'JetBrains Mono', 'Fira Code', 'Fira Mono', monospace";
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
readonly fontSizes: {
|
|
1921
|
+
readonly "2xs": {
|
|
1922
|
+
readonly value: "0.625rem";
|
|
1923
|
+
};
|
|
1924
|
+
readonly xs: {
|
|
1925
|
+
readonly value: "0.6875rem";
|
|
1926
|
+
};
|
|
1927
|
+
readonly sm: {
|
|
1928
|
+
readonly value: "0.75rem";
|
|
1929
|
+
};
|
|
1930
|
+
readonly md: {
|
|
1931
|
+
readonly value: "0.875rem";
|
|
1932
|
+
};
|
|
1933
|
+
readonly lg: {
|
|
1934
|
+
readonly value: "1rem";
|
|
1935
|
+
};
|
|
1936
|
+
readonly xl: {
|
|
1937
|
+
readonly value: "1.125rem";
|
|
1938
|
+
};
|
|
1939
|
+
readonly "2xl": {
|
|
1940
|
+
readonly value: "1.3125rem";
|
|
1941
|
+
};
|
|
1942
|
+
readonly "3xl": {
|
|
1943
|
+
readonly value: "1.5rem";
|
|
1944
|
+
};
|
|
1945
|
+
readonly "4xl": {
|
|
1946
|
+
readonly value: "1.75rem";
|
|
1947
|
+
};
|
|
1948
|
+
readonly "5xl": {
|
|
1949
|
+
readonly value: "2.25rem";
|
|
1950
|
+
};
|
|
1951
|
+
readonly "6xl": {
|
|
1952
|
+
readonly value: "3.25rem";
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
readonly fontWeights: {
|
|
1956
|
+
readonly normal: {
|
|
1957
|
+
readonly value: "400";
|
|
1958
|
+
};
|
|
1959
|
+
readonly medium: {
|
|
1960
|
+
readonly value: "500";
|
|
1961
|
+
};
|
|
1962
|
+
readonly semibold: {
|
|
1963
|
+
readonly value: "600";
|
|
1964
|
+
};
|
|
1965
|
+
readonly bold: {
|
|
1966
|
+
readonly value: "700";
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
readonly lineHeights: {
|
|
1970
|
+
readonly none: {
|
|
1971
|
+
readonly value: "1";
|
|
1972
|
+
};
|
|
1973
|
+
readonly tight: {
|
|
1974
|
+
readonly value: "1.1";
|
|
1975
|
+
};
|
|
1976
|
+
readonly snug: {
|
|
1977
|
+
readonly value: "1.2";
|
|
1978
|
+
};
|
|
1979
|
+
readonly normal: {
|
|
1980
|
+
readonly value: "1.3";
|
|
1981
|
+
};
|
|
1982
|
+
readonly relaxed: {
|
|
1983
|
+
readonly value: "1.4";
|
|
1984
|
+
};
|
|
1985
|
+
readonly loose: {
|
|
1986
|
+
readonly value: "1.6";
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
readonly letterSpacings: {
|
|
1990
|
+
readonly tight: {
|
|
1991
|
+
readonly value: "-0.01em";
|
|
1992
|
+
};
|
|
1993
|
+
readonly normal: {
|
|
1994
|
+
readonly value: "0em";
|
|
1995
|
+
};
|
|
1996
|
+
readonly wide: {
|
|
1997
|
+
readonly value: "0.05em";
|
|
1998
|
+
};
|
|
1999
|
+
readonly wider: {
|
|
2000
|
+
readonly value: "0.1em";
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* MedixDeck VitalBadge
|
|
2007
|
+
*
|
|
2008
|
+
* Compact display for patient vital signs.
|
|
2009
|
+
*
|
|
2010
|
+
* @example
|
|
2011
|
+
* ```tsx
|
|
2012
|
+
* <VitalBadge label="Blood Pressure" value="138/89" unit="mmHg" status="warning" />
|
|
2013
|
+
* ```
|
|
2014
|
+
*/
|
|
2015
|
+
export declare function VitalBadge({ label, value, unit, status, ...props }: VitalBadgeProps): JSX_2.Element;
|
|
2016
|
+
|
|
2017
|
+
export declare interface VitalBadgeProps extends BoxProps {
|
|
2018
|
+
label: string;
|
|
2019
|
+
value: string;
|
|
2020
|
+
unit?: string;
|
|
2021
|
+
status?: VitalStatus;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
export declare type VitalStatus = "normal" | "warning" | "critical";
|
|
2025
|
+
|
|
2026
|
+
export { VStack }
|
|
2027
|
+
|
|
2028
|
+
export { Wrap }
|
|
2029
|
+
|
|
2030
|
+
export { WrapItem }
|
|
2031
|
+
|
|
2032
|
+
export { }
|