@medixdeck/ui 0.1.16 → 0.1.17
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 +155 -99
- package/dist/index.cjs +30 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +136 -109
- package/dist/index.js +14911 -6344
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/sw.js +3 -3
- package/package.json +17 -5
package/dist/index.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ import { VStack } from '@chakra-ui/react';
|
|
|
27
27
|
import { Wrap } from '@chakra-ui/react';
|
|
28
28
|
import { WrapItem } from '@chakra-ui/react';
|
|
29
29
|
|
|
30
|
-
export declare function Accordion({ items, allowMultiple, defaultOpenIds, colorScheme, ...props }: AccordionProps): JSX_2.Element;
|
|
30
|
+
export declare function Accordion({ items, allowMultiple, defaultOpenIds, colorScheme, answerType, ...props }: AccordionProps): JSX_2.Element;
|
|
31
31
|
|
|
32
|
-
export declare type AccordionColorScheme =
|
|
32
|
+
export declare type AccordionColorScheme = 'blue' | 'purple';
|
|
33
33
|
|
|
34
34
|
export declare interface AccordionItem {
|
|
35
35
|
id: string;
|
|
@@ -39,7 +39,7 @@ export declare interface AccordionItem {
|
|
|
39
39
|
answer: string | default_2.ReactNode;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export declare interface AccordionProps extends Omit<BoxProps,
|
|
42
|
+
export declare interface AccordionProps extends Omit<BoxProps, 'onChange'> {
|
|
43
43
|
items: AccordionItem[];
|
|
44
44
|
/** Allow multiple items open simultaneously */
|
|
45
45
|
allowMultiple?: boolean;
|
|
@@ -50,6 +50,10 @@ export declare interface AccordionProps extends Omit<BoxProps, "onChange"> {
|
|
|
50
50
|
* @default "blue"
|
|
51
51
|
*/
|
|
52
52
|
colorScheme?: AccordionColorScheme;
|
|
53
|
+
/**
|
|
54
|
+
* Format of the answer string content. Default is "HTML".
|
|
55
|
+
*/
|
|
56
|
+
answerType?: 'HTML' | 'MD';
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
/**
|
|
@@ -74,9 +78,9 @@ export declare interface AlertProps extends BoxProps {
|
|
|
74
78
|
closable?: boolean;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
|
-
export declare type AlertStatus =
|
|
81
|
+
export declare type AlertStatus = 'info' | 'success' | 'warning' | 'error';
|
|
78
82
|
|
|
79
|
-
export declare type AlertVariant =
|
|
83
|
+
export declare type AlertVariant = 'subtle' | 'solid' | 'left-accent';
|
|
80
84
|
|
|
81
85
|
/**
|
|
82
86
|
* MedixDeck AppointmentCard
|
|
@@ -98,9 +102,9 @@ export declare interface AppointmentCardProps extends BoxProps {
|
|
|
98
102
|
onJoin?: () => void;
|
|
99
103
|
}
|
|
100
104
|
|
|
101
|
-
export declare type AppointmentStatus =
|
|
105
|
+
export declare type AppointmentStatus = 'upcoming' | 'completed' | 'cancelled';
|
|
102
106
|
|
|
103
|
-
export declare type AppointmentType =
|
|
107
|
+
export declare type AppointmentType = 'video' | 'in-person';
|
|
104
108
|
|
|
105
109
|
/**
|
|
106
110
|
* MedixDeck Avatar
|
|
@@ -115,7 +119,7 @@ export declare interface AvatarGroupProps {
|
|
|
115
119
|
size?: AvatarSize;
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
export declare interface AvatarProps extends Omit<AvatarRootProps,
|
|
122
|
+
export declare interface AvatarProps extends Omit<AvatarRootProps, 'size'> {
|
|
119
123
|
src?: string;
|
|
120
124
|
name?: string;
|
|
121
125
|
size?: AvatarSize;
|
|
@@ -123,7 +127,7 @@ export declare interface AvatarProps extends Omit<AvatarRootProps, "size"> {
|
|
|
123
127
|
statusColor?: string;
|
|
124
128
|
}
|
|
125
129
|
|
|
126
|
-
export declare type AvatarSize =
|
|
130
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
127
131
|
|
|
128
132
|
/**
|
|
129
133
|
* MedixDeck Badge
|
|
@@ -157,11 +161,11 @@ export declare interface BadgeProps {
|
|
|
157
161
|
id?: string;
|
|
158
162
|
}
|
|
159
163
|
|
|
160
|
-
export declare type BadgeSize =
|
|
164
|
+
export declare type BadgeSize = 'sm' | 'md' | 'lg';
|
|
161
165
|
|
|
162
|
-
export declare type BadgeStatus =
|
|
166
|
+
export declare type BadgeStatus = 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
163
167
|
|
|
164
|
-
export declare type BadgeVariant =
|
|
168
|
+
export declare type BadgeVariant = 'solid' | 'subtle' | 'outline' | 'surface';
|
|
165
169
|
|
|
166
170
|
/**
|
|
167
171
|
* MedixDeck BlogCard
|
|
@@ -183,9 +187,9 @@ export declare type BadgeVariant = "solid" | "subtle" | "outline" | "surface";
|
|
|
183
187
|
*/
|
|
184
188
|
export declare function BlogCard({ title, excerpt, category, date, coverImage, href, onClick, colorScheme, ...props }: BlogCardProps): JSX_2.Element;
|
|
185
189
|
|
|
186
|
-
export declare type BlogCardColorScheme =
|
|
190
|
+
export declare type BlogCardColorScheme = 'blue' | 'purple';
|
|
187
191
|
|
|
188
|
-
export declare interface BlogCardProps extends Omit<BoxProps,
|
|
192
|
+
export declare interface BlogCardProps extends Omit<BoxProps, 'onClick'> {
|
|
189
193
|
/** Article headline */
|
|
190
194
|
title: string;
|
|
191
195
|
/** Short excerpt shown below the title (optional, max 2 lines clamped) */
|
|
@@ -269,11 +273,11 @@ export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & d
|
|
|
269
273
|
|
|
270
274
|
export declare interface ButtonProps {
|
|
271
275
|
/** Visual variant */
|
|
272
|
-
variant?:
|
|
276
|
+
variant?: 'solid' | 'outline' | 'ghost' | 'link' | 'secondary';
|
|
273
277
|
/** Size */
|
|
274
|
-
size?:
|
|
278
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
275
279
|
/** Color scheme — maps to MedixDeck brand colors */
|
|
276
|
-
colorScheme?:
|
|
280
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'red' | 'amber' | 'black' | 'gray' | string;
|
|
277
281
|
/** Show loading spinner */
|
|
278
282
|
isLoading?: boolean;
|
|
279
283
|
/** Element rendered before the label */
|
|
@@ -283,7 +287,7 @@ export declare interface ButtonProps {
|
|
|
283
287
|
/** Disabled state */
|
|
284
288
|
disabled?: boolean;
|
|
285
289
|
/** HTML type attribute */
|
|
286
|
-
type?:
|
|
290
|
+
type?: 'button' | 'submit' | 'reset';
|
|
287
291
|
/** Click handler */
|
|
288
292
|
onClick?: default_2.MouseEventHandler<HTMLElement>;
|
|
289
293
|
/** Any additional className */
|
|
@@ -292,12 +296,12 @@ export declare interface ButtonProps {
|
|
|
292
296
|
style?: default_2.CSSProperties;
|
|
293
297
|
children?: default_2.ReactNode;
|
|
294
298
|
id?: string;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
+
'aria-label'?: string;
|
|
300
|
+
'aria-expanded'?: boolean | 'true' | 'false';
|
|
301
|
+
'aria-controls'?: string;
|
|
302
|
+
'aria-haspopup'?: boolean | 'dialog' | 'menu' | 'grid' | 'listbox' | 'tree';
|
|
299
303
|
/** HTML element to render as — supports "button" (default) or "a" (anchor link) */
|
|
300
|
-
as?:
|
|
304
|
+
as?: 'button' | 'a';
|
|
301
305
|
/** Link destination if rendered as an anchor */
|
|
302
306
|
href?: string;
|
|
303
307
|
/** Link target if rendered as an anchor */
|
|
@@ -316,7 +320,7 @@ export declare interface ButtonProps {
|
|
|
316
320
|
*/
|
|
317
321
|
export declare function Calendar({ value, onChange, minDate, maxDate, ...props }: CalendarProps): JSX_2.Element;
|
|
318
322
|
|
|
319
|
-
export declare interface CalendarProps extends Omit<BoxProps,
|
|
323
|
+
export declare interface CalendarProps extends Omit<BoxProps, 'onChange'> {
|
|
320
324
|
value?: Date | null;
|
|
321
325
|
onChange?: (date: Date) => void;
|
|
322
326
|
minDate?: Date;
|
|
@@ -432,7 +436,7 @@ declare const COLORS_2: {
|
|
|
432
436
|
* - `"blue"` — Primary brand blue (#0685FF)
|
|
433
437
|
* - `"purple"` — Secondary brand purple (#7700CC)
|
|
434
438
|
*/
|
|
435
|
-
export declare type ColorScheme =
|
|
439
|
+
export declare type ColorScheme = 'blue' | 'purple';
|
|
436
440
|
|
|
437
441
|
declare type ColorScheme_2 = keyof typeof COLORS;
|
|
438
442
|
|
|
@@ -622,7 +626,7 @@ export declare interface Column<T = Record<string, unknown>> {
|
|
|
622
626
|
/** Custom cell renderer */
|
|
623
627
|
render?: (value: unknown, row: T, index: number) => default_2.ReactNode;
|
|
624
628
|
/** Text alignment */
|
|
625
|
-
align?:
|
|
629
|
+
align?: 'left' | 'center' | 'right';
|
|
626
630
|
}
|
|
627
631
|
|
|
628
632
|
export declare function Combobox({ options, value, onChange, placeholder, label, helperText, errorMessage, isInvalid, isDisabled, }: ComboboxProps): JSX_2.Element;
|
|
@@ -660,7 +664,7 @@ export declare const Container: default_2.ForwardRefExoticComponent<ContainerPro
|
|
|
660
664
|
|
|
661
665
|
export declare interface ContainerProps extends BoxProps {
|
|
662
666
|
/** Max width preset */
|
|
663
|
-
maxWidth?:
|
|
667
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
664
668
|
}
|
|
665
669
|
|
|
666
670
|
/**
|
|
@@ -679,7 +683,7 @@ export declare namespace CookieConsentBanner {
|
|
|
679
683
|
var displayName: string;
|
|
680
684
|
}
|
|
681
685
|
|
|
682
|
-
export declare interface CookieConsentBannerProps extends Omit<CookieConsentComponentProps,
|
|
686
|
+
export declare interface CookieConsentBannerProps extends Omit<CookieConsentComponentProps, 'style' | 'buttonStyle' | 'declineButtonStyle' | 'contentStyle'> {
|
|
683
687
|
/** Optional custom title for the banner */
|
|
684
688
|
title?: string;
|
|
685
689
|
/** Custom text for accept button. Defaults to "Accept All" */
|
|
@@ -692,7 +696,7 @@ export declare interface CookieConsentBannerProps extends Omit<CookieConsentComp
|
|
|
692
696
|
|
|
693
697
|
declare type CookieConsentComponentProps = default_2.ComponentProps<typeof default_3>;
|
|
694
698
|
|
|
695
|
-
export declare type DashboardColorScheme =
|
|
699
|
+
export declare type DashboardColorScheme = 'blue' | 'purple';
|
|
696
700
|
|
|
697
701
|
export declare interface DashboardDropdownItem {
|
|
698
702
|
/** Label shown in the dropdown menu. */
|
|
@@ -771,7 +775,7 @@ export declare namespace DashboardLayout {
|
|
|
771
775
|
var displayName: string;
|
|
772
776
|
}
|
|
773
777
|
|
|
774
|
-
export declare interface DashboardLayoutProps extends Omit<BoxProps,
|
|
778
|
+
export declare interface DashboardLayoutProps extends Omit<BoxProps, 'children'> {
|
|
775
779
|
/** Page content rendered inside the main area. */
|
|
776
780
|
children: default_2.ReactNode;
|
|
777
781
|
/**
|
|
@@ -937,7 +941,7 @@ export declare interface DashboardScoreCardData {
|
|
|
937
941
|
/** Optional href to navigate to the doctor's profile when the card is clicked. */
|
|
938
942
|
link?: string;
|
|
939
943
|
/** Clinician tier — determines avatar ring colour and badge text colour. */
|
|
940
|
-
tier:
|
|
944
|
+
tier: 'bronze' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
941
945
|
/** Numeric MedixScore displayed next to the tier label. */
|
|
942
946
|
medixScore: number;
|
|
943
947
|
}
|
|
@@ -980,8 +984,8 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
980
984
|
emptyMessage?: string;
|
|
981
985
|
sortable?: boolean;
|
|
982
986
|
sortKey?: string;
|
|
983
|
-
sortDirection?:
|
|
984
|
-
onSort?: (key: string, direction:
|
|
987
|
+
sortDirection?: 'asc' | 'desc';
|
|
988
|
+
onSort?: (key: string, direction: 'asc' | 'desc') => void;
|
|
985
989
|
striped?: boolean;
|
|
986
990
|
onRowClick?: (row: T, index: number) => void;
|
|
987
991
|
caption?: string;
|
|
@@ -1082,7 +1086,7 @@ export declare const Divider: default_2.ForwardRefExoticComponent<DividerProps &
|
|
|
1082
1086
|
|
|
1083
1087
|
export declare interface DividerProps extends SeparatorProps {
|
|
1084
1088
|
/** Orientation of the divider */
|
|
1085
|
-
orientation?:
|
|
1089
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1086
1090
|
/** Custom label in the center */
|
|
1087
1091
|
label?: string;
|
|
1088
1092
|
}
|
|
@@ -1125,7 +1129,7 @@ export declare interface DoctorCardProps extends BoxProps {
|
|
|
1125
1129
|
availabilityLabel?: string;
|
|
1126
1130
|
onBookClick?: () => void;
|
|
1127
1131
|
onViewClick?: () => void;
|
|
1128
|
-
variant?:
|
|
1132
|
+
variant?: 'standard' | 'compact' | 'featured';
|
|
1129
1133
|
}
|
|
1130
1134
|
|
|
1131
1135
|
/**
|
|
@@ -1142,7 +1146,7 @@ export declare interface DoctorCardProps extends BoxProps {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
export declare function Drawer({ isOpen, onClose, title, placement, size, closeOnOverlayClick, footer, children, }: DrawerProps): JSX_2.Element;
|
|
1144
1148
|
|
|
1145
|
-
export declare type DrawerPlacement =
|
|
1149
|
+
export declare type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
1146
1150
|
|
|
1147
1151
|
export declare interface DrawerProps {
|
|
1148
1152
|
isOpen: boolean;
|
|
@@ -1155,7 +1159,7 @@ export declare interface DrawerProps {
|
|
|
1155
1159
|
children?: default_2.ReactNode;
|
|
1156
1160
|
}
|
|
1157
1161
|
|
|
1158
|
-
export declare type DrawerSize =
|
|
1162
|
+
export declare type DrawerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1159
1163
|
|
|
1160
1164
|
/**
|
|
1161
1165
|
* MedixDeck EmptyState
|
|
@@ -1236,7 +1240,7 @@ export { Flex }
|
|
|
1236
1240
|
* @example
|
|
1237
1241
|
* ```tsx
|
|
1238
1242
|
* <Footer
|
|
1239
|
-
* description="Nigeria's
|
|
1243
|
+
* description="Nigeria's leading digital platform for specialist healthcare. Bridging the gap between expert care and patient convenience."
|
|
1240
1244
|
* socialLinks={[{ platform: 'twitter', href: '...' }]}
|
|
1241
1245
|
* />
|
|
1242
1246
|
* ```
|
|
@@ -1258,7 +1262,7 @@ export declare interface FooterCertification {
|
|
|
1258
1262
|
imageSrc?: string;
|
|
1259
1263
|
}
|
|
1260
1264
|
|
|
1261
|
-
export declare type FooterColorScheme =
|
|
1265
|
+
export declare type FooterColorScheme = 'blue' | 'purple';
|
|
1262
1266
|
|
|
1263
1267
|
export declare interface FooterLink {
|
|
1264
1268
|
label: string;
|
|
@@ -1266,7 +1270,7 @@ export declare interface FooterLink {
|
|
|
1266
1270
|
isExternal?: boolean;
|
|
1267
1271
|
}
|
|
1268
1272
|
|
|
1269
|
-
export declare interface FooterProps extends Omit<BoxProps,
|
|
1273
|
+
export declare interface FooterProps extends Omit<BoxProps, 'children'> {
|
|
1270
1274
|
/** Company description shown under the logo */
|
|
1271
1275
|
description?: string;
|
|
1272
1276
|
/** Custom logo element. Defaults to MedixDeck Logo. */
|
|
@@ -1376,19 +1380,19 @@ export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonP
|
|
|
1376
1380
|
|
|
1377
1381
|
export declare interface IconButtonProps {
|
|
1378
1382
|
/** Accessible label — required for screen readers */
|
|
1379
|
-
|
|
1383
|
+
'aria-label': string;
|
|
1380
1384
|
/** Visual variant */
|
|
1381
|
-
variant?:
|
|
1385
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
1382
1386
|
/** Size */
|
|
1383
|
-
size?:
|
|
1387
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1384
1388
|
/** Brand color scheme */
|
|
1385
|
-
colorScheme?:
|
|
1389
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'red' | 'gray';
|
|
1386
1390
|
/** Render as a circle instead of a rounded square */
|
|
1387
1391
|
isRound?: boolean;
|
|
1388
1392
|
/** Disabled state */
|
|
1389
1393
|
disabled?: boolean;
|
|
1390
1394
|
/** HTML type attribute */
|
|
1391
|
-
type?:
|
|
1395
|
+
type?: 'button' | 'submit' | 'reset';
|
|
1392
1396
|
/** Click handler */
|
|
1393
1397
|
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
1394
1398
|
className?: string;
|
|
@@ -1415,9 +1419,9 @@ export { Image_2 as Image }
|
|
|
1415
1419
|
*/
|
|
1416
1420
|
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
1417
1421
|
|
|
1418
|
-
export declare interface InputProps extends Omit<InputProps_2,
|
|
1422
|
+
export declare interface InputProps extends Omit<InputProps_2, 'size'> {
|
|
1419
1423
|
/** Input size */
|
|
1420
|
-
size?:
|
|
1424
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1421
1425
|
/** Left icon or element */
|
|
1422
1426
|
leftElement?: default_2.ReactNode;
|
|
1423
1427
|
/** Right icon or element */
|
|
@@ -1482,9 +1486,9 @@ export declare interface LogoProps {
|
|
|
1482
1486
|
style?: default_2.CSSProperties;
|
|
1483
1487
|
}
|
|
1484
1488
|
|
|
1485
|
-
export declare type LogoType =
|
|
1489
|
+
export declare type LogoType = 'full' | 'icon';
|
|
1486
1490
|
|
|
1487
|
-
export declare type LogoVariant =
|
|
1491
|
+
export declare type LogoVariant = 'blue' | 'purple' | 'black' | 'white';
|
|
1488
1492
|
|
|
1489
1493
|
export declare const medixConfig: SystemConfig;
|
|
1490
1494
|
|
|
@@ -1521,11 +1525,11 @@ export declare interface MedixProviderProps {
|
|
|
1521
1525
|
* Default color mode. Matches next-themes attribute.
|
|
1522
1526
|
* @default "system"
|
|
1523
1527
|
*/
|
|
1524
|
-
defaultColorMode?:
|
|
1528
|
+
defaultColorMode?: 'light' | 'dark' | 'system';
|
|
1525
1529
|
/**
|
|
1526
1530
|
* Force a specific color mode (disables user toggle)
|
|
1527
1531
|
*/
|
|
1528
|
-
forcedColorMode?:
|
|
1532
|
+
forcedColorMode?: 'light' | 'dark';
|
|
1529
1533
|
}
|
|
1530
1534
|
|
|
1531
1535
|
/**
|
|
@@ -1560,7 +1564,7 @@ export declare interface ModalProps {
|
|
|
1560
1564
|
children?: default_2.ReactNode;
|
|
1561
1565
|
}
|
|
1562
1566
|
|
|
1563
|
-
export declare type ModalSize =
|
|
1567
|
+
export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1564
1568
|
|
|
1565
1569
|
/**
|
|
1566
1570
|
* MedixDeck Navbar
|
|
@@ -1632,9 +1636,9 @@ export declare type ModalSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
|
1632
1636
|
*/
|
|
1633
1637
|
export declare function Navbar({ logo, navItems, navItemsAlign, ctaLabel, ctaHref, onCtaClick, ctaIconHref, onCtaIconClick, secondaryCtaLabel, secondaryCtaHref, onSecondaryCtaClick, ctaSlot, renderLink, isSticky, colorScheme, variant, ...props }: NavbarProps): JSX_2.Element;
|
|
1634
1638
|
|
|
1635
|
-
export declare type NavbarColorScheme =
|
|
1639
|
+
export declare type NavbarColorScheme = 'blue' | 'purple';
|
|
1636
1640
|
|
|
1637
|
-
export declare interface NavbarProps extends Omit<BoxProps,
|
|
1641
|
+
export declare interface NavbarProps extends Omit<BoxProps, 'children'> {
|
|
1638
1642
|
/** Logo element. Defaults to `<Logo />` when omitted. */
|
|
1639
1643
|
logo?: default_2.ReactNode;
|
|
1640
1644
|
/** Navigation items to display. */
|
|
@@ -1643,7 +1647,7 @@ export declare interface NavbarProps extends Omit<BoxProps, "children"> {
|
|
|
1643
1647
|
* Alignment of the navigation items on desktop.
|
|
1644
1648
|
* @default "center"
|
|
1645
1649
|
*/
|
|
1646
|
-
navItemsAlign?:
|
|
1650
|
+
navItemsAlign?: 'left' | 'center' | 'right';
|
|
1647
1651
|
/**
|
|
1648
1652
|
* Custom link renderer — lets you integrate React Router, Next.js `<Link>`, etc.
|
|
1649
1653
|
*
|
|
@@ -1716,7 +1720,7 @@ export declare interface NavbarProps extends Omit<BoxProps, "children"> {
|
|
|
1716
1720
|
* - `"transparent"` — fully transparent (e.g. over a hero image)
|
|
1717
1721
|
* - `"blur"` — frosted-glass dark overlay
|
|
1718
1722
|
*/
|
|
1719
|
-
variant?:
|
|
1723
|
+
variant?: 'solid' | 'transparent' | 'blur';
|
|
1720
1724
|
}
|
|
1721
1725
|
|
|
1722
1726
|
export declare interface NavItem {
|
|
@@ -1752,13 +1756,15 @@ export declare interface NewsletterProps {
|
|
|
1752
1756
|
* }
|
|
1753
1757
|
* ```
|
|
1754
1758
|
*/
|
|
1755
|
-
export declare function NotFoundPage({ title, description, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
1759
|
+
export declare function NotFoundPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
1756
1760
|
|
|
1757
1761
|
export declare interface NotFoundPageProps extends BoxProps {
|
|
1758
1762
|
/** Optional custom title. Defaults to "Page Not Found" */
|
|
1759
1763
|
title?: string;
|
|
1760
1764
|
/** Optional custom description. Defaults to "The page you are looking for doesn't exist or has been moved." */
|
|
1761
1765
|
description?: string;
|
|
1766
|
+
/** Optional error message details to display in a code block (dev only) */
|
|
1767
|
+
errorMessage?: string;
|
|
1762
1768
|
/** CTA button label. Defaults to "Go back home" */
|
|
1763
1769
|
actionLabel?: string;
|
|
1764
1770
|
/** CTA button onClick handler */
|
|
@@ -1820,7 +1826,7 @@ export declare interface OTPInputProps {
|
|
|
1820
1826
|
*/
|
|
1821
1827
|
export declare function Pagination({ total, pageSize, currentPage, onChange, siblingCount, showEdges, compact, ...props }: PaginationProps): JSX_2.Element | null;
|
|
1822
1828
|
|
|
1823
|
-
export declare interface PaginationProps extends Omit<BoxProps,
|
|
1829
|
+
export declare interface PaginationProps extends Omit<BoxProps, 'onChange'> {
|
|
1824
1830
|
/** Total number of items */
|
|
1825
1831
|
total: number;
|
|
1826
1832
|
/** Items per page */
|
|
@@ -1906,9 +1912,9 @@ export declare interface ProgressProps extends BoxProps {
|
|
|
1906
1912
|
/** Progress value 0–100 */
|
|
1907
1913
|
value: number;
|
|
1908
1914
|
/** Color scheme */
|
|
1909
|
-
colorScheme?:
|
|
1915
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'amber' | 'red';
|
|
1910
1916
|
/** Height of the bar */
|
|
1911
|
-
size?:
|
|
1917
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1912
1918
|
/** Show label */
|
|
1913
1919
|
showLabel?: boolean;
|
|
1914
1920
|
/** Animate on mount */
|
|
@@ -1975,7 +1981,7 @@ export declare interface PWAInstallPromptProps {
|
|
|
1975
1981
|
* Position of the banner on screen.
|
|
1976
1982
|
* @default "bottom"
|
|
1977
1983
|
*/
|
|
1978
|
-
position?:
|
|
1984
|
+
position?: 'top' | 'bottom';
|
|
1979
1985
|
/**
|
|
1980
1986
|
* Number of seconds to delay the prompt after the conditions are met.
|
|
1981
1987
|
* @default 0
|
|
@@ -2016,10 +2022,10 @@ export declare const radiiTokens: {
|
|
|
2016
2022
|
readonly xl: {
|
|
2017
2023
|
readonly value: "16px";
|
|
2018
2024
|
};
|
|
2019
|
-
readonly
|
|
2025
|
+
readonly '2xl': {
|
|
2020
2026
|
readonly value: "20px";
|
|
2021
2027
|
};
|
|
2022
|
-
readonly
|
|
2028
|
+
readonly '3xl': {
|
|
2023
2029
|
readonly value: "24px";
|
|
2024
2030
|
};
|
|
2025
2031
|
readonly full: {
|
|
@@ -2054,8 +2060,8 @@ export declare interface RadioGroupProps {
|
|
|
2054
2060
|
onChange?: (value: string) => void;
|
|
2055
2061
|
options: RadioOption[];
|
|
2056
2062
|
/** Brand color for the selected dot */
|
|
2057
|
-
colorScheme?:
|
|
2058
|
-
direction?:
|
|
2063
|
+
colorScheme?: 'blue' | 'purple';
|
|
2064
|
+
direction?: 'row' | 'column';
|
|
2059
2065
|
}
|
|
2060
2066
|
|
|
2061
2067
|
export declare interface RadioOption {
|
|
@@ -2070,7 +2076,7 @@ export declare const SearchInput: default_2.ForwardRefExoticComponent<SearchInpu
|
|
|
2070
2076
|
/**
|
|
2071
2077
|
* SearchInput — Quick search variant with built-in search icon
|
|
2072
2078
|
*/
|
|
2073
|
-
export declare interface SearchInputProps extends Omit<InputProps,
|
|
2079
|
+
export declare interface SearchInputProps extends Omit<InputProps, 'leftElement'> {
|
|
2074
2080
|
placeholder?: string;
|
|
2075
2081
|
}
|
|
2076
2082
|
|
|
@@ -2098,7 +2104,7 @@ export declare interface SectionHeaderProps extends BoxProps {
|
|
|
2098
2104
|
/** Description / subtitle */
|
|
2099
2105
|
description?: string;
|
|
2100
2106
|
/** Alignment */
|
|
2101
|
-
align?:
|
|
2107
|
+
align?: 'left' | 'center' | 'right';
|
|
2102
2108
|
/** Action slot (button) */
|
|
2103
2109
|
action?: default_2.ReactNode;
|
|
2104
2110
|
/** Eyebrow color */
|
|
@@ -2116,15 +2122,24 @@ export declare interface SelectOption {
|
|
|
2116
2122
|
disabled?: boolean;
|
|
2117
2123
|
}
|
|
2118
2124
|
|
|
2119
|
-
export declare interface SelectProps extends Omit<NativeSelectRootProps,
|
|
2125
|
+
export declare interface SelectProps extends Omit<NativeSelectRootProps, 'size' | 'value' | 'defaultValue' | 'onChange' | 'name' | 'id' | 'disabled' | 'onBlur' | 'onFocus' | 'multiple'> {
|
|
2120
2126
|
options?: SelectOption[];
|
|
2121
2127
|
placeholder?: string;
|
|
2122
2128
|
isInvalid?: boolean;
|
|
2123
2129
|
errorMessage?: string;
|
|
2124
|
-
size?:
|
|
2130
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2125
2131
|
children?: default_2.ReactNode;
|
|
2126
2132
|
/** Optional icon to render on the left side of the select field */
|
|
2127
2133
|
icon?: default_2.ReactNode;
|
|
2134
|
+
value?: string | string[];
|
|
2135
|
+
defaultValue?: string | string[];
|
|
2136
|
+
onChange?: (value: string | string[]) => void;
|
|
2137
|
+
name?: string;
|
|
2138
|
+
id?: string;
|
|
2139
|
+
disabled?: boolean;
|
|
2140
|
+
multiple?: boolean;
|
|
2141
|
+
onBlur?: default_2.FocusEventHandler<HTMLSelectElement>;
|
|
2142
|
+
onFocus?: default_2.FocusEventHandler<HTMLSelectElement>;
|
|
2128
2143
|
}
|
|
2129
2144
|
|
|
2130
2145
|
/**
|
|
@@ -2178,10 +2193,10 @@ export declare const shadowTokens: {
|
|
|
2178
2193
|
readonly xl: {
|
|
2179
2194
|
readonly value: "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)";
|
|
2180
2195
|
};
|
|
2181
|
-
readonly
|
|
2196
|
+
readonly 'card-dark': {
|
|
2182
2197
|
readonly value: "0 4px 24px 0 rgba(0, 0, 0, 0.40)";
|
|
2183
2198
|
};
|
|
2184
|
-
readonly
|
|
2199
|
+
readonly 'card-light': {
|
|
2185
2200
|
readonly value: "0 2px 12px 0 rgba(17, 25, 38, 0.08)";
|
|
2186
2201
|
};
|
|
2187
2202
|
readonly none: {
|
|
@@ -2225,7 +2240,7 @@ export declare interface SkeletonTextProps extends BoxProps {
|
|
|
2225
2240
|
}
|
|
2226
2241
|
|
|
2227
2242
|
export declare interface SocialLink {
|
|
2228
|
-
platform:
|
|
2243
|
+
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'youtube' | 'threads' | 'whatsapp';
|
|
2229
2244
|
href: string;
|
|
2230
2245
|
}
|
|
2231
2246
|
|
|
@@ -2292,7 +2307,7 @@ export declare const spacingTokens: {
|
|
|
2292
2307
|
export declare function Spinner({ size, label, color, ...props }: SpinnerProps): JSX_2.Element;
|
|
2293
2308
|
|
|
2294
2309
|
export declare interface SpinnerProps {
|
|
2295
|
-
size?:
|
|
2310
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2296
2311
|
label?: string;
|
|
2297
2312
|
color?: string;
|
|
2298
2313
|
[key: string]: unknown;
|
|
@@ -2322,7 +2337,7 @@ export declare interface StatCardProps extends BoxProps {
|
|
|
2322
2337
|
/** Percentage change */
|
|
2323
2338
|
change?: number;
|
|
2324
2339
|
/** Trend direction — if not provided, inferred from change */
|
|
2325
|
-
trend?:
|
|
2340
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
2326
2341
|
/** Icon to display */
|
|
2327
2342
|
icon?: default_2.ReactNode;
|
|
2328
2343
|
/** Color accent */
|
|
@@ -2365,10 +2380,10 @@ export declare interface StepperProps extends BoxProps {
|
|
|
2365
2380
|
* e.g. currentStep={2} means step 2 is active).
|
|
2366
2381
|
*/
|
|
2367
2382
|
currentStep: number;
|
|
2368
|
-
variant?:
|
|
2369
|
-
orientation?:
|
|
2383
|
+
variant?: 'default' | 'compact';
|
|
2384
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2370
2385
|
/** Brand color used for active/completed states */
|
|
2371
|
-
colorScheme?:
|
|
2386
|
+
colorScheme?: 'blue' | 'purple';
|
|
2372
2387
|
}
|
|
2373
2388
|
|
|
2374
2389
|
/**
|
|
@@ -2385,7 +2400,7 @@ export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & d
|
|
|
2385
2400
|
export declare interface SwitchProps {
|
|
2386
2401
|
/** Brand color for the on state */
|
|
2387
2402
|
colorScheme?: ColorScheme_3;
|
|
2388
|
-
size?:
|
|
2403
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2389
2404
|
/** Controlled checked value */
|
|
2390
2405
|
checked?: boolean;
|
|
2391
2406
|
/** Default state for uncontrolled usage */
|
|
@@ -2425,13 +2440,13 @@ export declare interface TabItem {
|
|
|
2425
2440
|
*/
|
|
2426
2441
|
export declare function Tabs({ tabs, defaultActiveId, activeId: controlledId, onChange, variant, size, renderContent, ...props }: TabsProps): JSX_2.Element;
|
|
2427
2442
|
|
|
2428
|
-
export declare interface TabsProps extends Omit<BoxProps,
|
|
2443
|
+
export declare interface TabsProps extends Omit<BoxProps, 'onChange'> {
|
|
2429
2444
|
tabs: TabItem[];
|
|
2430
2445
|
defaultActiveId?: string;
|
|
2431
2446
|
activeId?: string;
|
|
2432
2447
|
onChange?: (id: string) => void;
|
|
2433
|
-
variant?:
|
|
2434
|
-
size?:
|
|
2448
|
+
variant?: 'line' | 'pill';
|
|
2449
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2435
2450
|
renderContent?: boolean;
|
|
2436
2451
|
}
|
|
2437
2452
|
|
|
@@ -2447,7 +2462,7 @@ export declare interface TabsProps extends Omit<BoxProps, "onChange"> {
|
|
|
2447
2462
|
*/
|
|
2448
2463
|
export declare const Tag: default_2.ForwardRefExoticComponent<TagProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2449
2464
|
|
|
2450
|
-
export declare type TagColorScheme =
|
|
2465
|
+
export declare type TagColorScheme = 'blue' | 'purple' | 'green' | 'gray' | 'red' | 'amber';
|
|
2451
2466
|
|
|
2452
2467
|
export declare interface TagProps extends BoxProps {
|
|
2453
2468
|
variant?: TagVariant;
|
|
@@ -2457,7 +2472,7 @@ export declare interface TagProps extends BoxProps {
|
|
|
2457
2472
|
children: default_2.ReactNode;
|
|
2458
2473
|
}
|
|
2459
2474
|
|
|
2460
|
-
export declare type TagVariant =
|
|
2475
|
+
export declare type TagVariant = 'solid' | 'subtle' | 'outline';
|
|
2461
2476
|
|
|
2462
2477
|
/**
|
|
2463
2478
|
* MedixDeck TestimonialCard
|
|
@@ -2581,36 +2596,48 @@ export declare const textStyleTokens: {
|
|
|
2581
2596
|
*/
|
|
2582
2597
|
export declare const ThemeColorPalette: default_2.ForwardRefExoticComponent<ThemeColorPaletteProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2583
2598
|
|
|
2584
|
-
export declare interface ThemeColorPaletteProps extends Omit<BoxProps,
|
|
2599
|
+
export declare interface ThemeColorPaletteProps extends Omit<BoxProps, 'children'> {
|
|
2585
2600
|
/** Show the semantic token groups with light and dark comparisons. */
|
|
2586
2601
|
showSemanticTokens?: boolean;
|
|
2587
2602
|
/** Show the raw brand, status, and neutral token scales. */
|
|
2588
2603
|
showPrimitiveTokens?: boolean;
|
|
2589
2604
|
}
|
|
2590
2605
|
|
|
2591
|
-
export declare type ThemeMode =
|
|
2606
|
+
export declare type ThemeMode = 'light' | 'dark';
|
|
2592
2607
|
|
|
2593
|
-
export declare type ThemeModeSetting = ThemeMode |
|
|
2608
|
+
export declare type ThemeModeSetting = ThemeMode | 'system';
|
|
2594
2609
|
|
|
2595
|
-
export declare const toast: {
|
|
2596
|
-
(
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
warning(title: string, options?: Partial<ToastOptions>): string;
|
|
2610
|
+
export declare const toast: ((options: ToastOptions) => string) & {
|
|
2611
|
+
success: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2612
|
+
error: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2613
|
+
info: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2614
|
+
warning: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2601
2615
|
};
|
|
2602
2616
|
|
|
2603
|
-
|
|
2617
|
+
/**
|
|
2618
|
+
* MedixDeck Toaster
|
|
2619
|
+
*
|
|
2620
|
+
* Renders the toasts created by the `toaster` object using the MedixDeck Alert styling.
|
|
2621
|
+
* Place this component at the root of your application (e.g., inside MedixProvider).
|
|
2622
|
+
*
|
|
2623
|
+
* @example
|
|
2624
|
+
* ```tsx
|
|
2625
|
+
* import { Toaster, toaster } from "@medixdeck/ui";
|
|
2626
|
+
*
|
|
2627
|
+
* <Toaster />
|
|
2628
|
+
* <Button onClick={() => toaster.create({ title: "Success", type: "success" })}>Toast</Button>
|
|
2629
|
+
* ```
|
|
2630
|
+
*/
|
|
2631
|
+
export declare const Toaster: () => JSX_2.Element;
|
|
2604
2632
|
|
|
2605
|
-
export declare
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
type?: ToastType;
|
|
2633
|
+
export declare type ToastOptions = {
|
|
2634
|
+
title: string | default_2.ReactNode;
|
|
2635
|
+
description?: string | default_2.ReactNode;
|
|
2636
|
+
type?: AlertStatus;
|
|
2610
2637
|
duration?: number;
|
|
2611
|
-
}
|
|
2638
|
+
};
|
|
2612
2639
|
|
|
2613
|
-
export declare type ToastType =
|
|
2640
|
+
export declare type ToastType = AlertStatus;
|
|
2614
2641
|
|
|
2615
2642
|
/**
|
|
2616
2643
|
* MedixDeck Tooltip
|
|
@@ -2630,9 +2657,9 @@ export declare type ToastType = "info" | "success" | "warning" | "error";
|
|
|
2630
2657
|
*/
|
|
2631
2658
|
export declare function Tooltip({ label, children, placement, ...props }: TooltipProps): JSX_2.Element;
|
|
2632
2659
|
|
|
2633
|
-
declare type TooltipPlacement =
|
|
2660
|
+
declare type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
2634
2661
|
|
|
2635
|
-
export declare interface TooltipProps extends Omit<TooltipRootProps,
|
|
2662
|
+
export declare interface TooltipProps extends Omit<TooltipRootProps, 'content'> {
|
|
2636
2663
|
/** Text shown in the tooltip bubble */
|
|
2637
2664
|
label: string;
|
|
2638
2665
|
/** Element that triggers the tooltip */
|
|
@@ -2672,7 +2699,7 @@ export declare const typographyTokens: {
|
|
|
2672
2699
|
};
|
|
2673
2700
|
};
|
|
2674
2701
|
readonly fontSizes: {
|
|
2675
|
-
readonly
|
|
2702
|
+
readonly '2xs': {
|
|
2676
2703
|
readonly value: "clamp(0.5625rem, 0.5rem + 0.2vw, 0.625rem)";
|
|
2677
2704
|
};
|
|
2678
2705
|
readonly xs: {
|
|
@@ -2690,19 +2717,19 @@ export declare const typographyTokens: {
|
|
|
2690
2717
|
readonly xl: {
|
|
2691
2718
|
readonly value: "clamp(1rem, 0.9375rem + 0.5vw, 1.1875rem)";
|
|
2692
2719
|
};
|
|
2693
|
-
readonly
|
|
2720
|
+
readonly '2xl': {
|
|
2694
2721
|
readonly value: "clamp(1.125rem, 1rem + 0.6vw, 1.4375rem)";
|
|
2695
2722
|
};
|
|
2696
|
-
readonly
|
|
2723
|
+
readonly '3xl': {
|
|
2697
2724
|
readonly value: "clamp(1.25rem, 1.125rem + 0.75vw, 1.625rem)";
|
|
2698
2725
|
};
|
|
2699
|
-
readonly
|
|
2726
|
+
readonly '4xl': {
|
|
2700
2727
|
readonly value: "clamp(1.5rem, 1.25rem + 1vw, 2rem)";
|
|
2701
2728
|
};
|
|
2702
|
-
readonly
|
|
2729
|
+
readonly '5xl': {
|
|
2703
2730
|
readonly value: "clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem)";
|
|
2704
2731
|
};
|
|
2705
|
-
readonly
|
|
2732
|
+
readonly '6xl': {
|
|
2706
2733
|
readonly value: "clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem)";
|
|
2707
2734
|
};
|
|
2708
2735
|
};
|
|
@@ -2898,7 +2925,7 @@ export declare interface VitalBadgeProps extends BoxProps {
|
|
|
2898
2925
|
status?: VitalStatus;
|
|
2899
2926
|
}
|
|
2900
2927
|
|
|
2901
|
-
export declare type VitalStatus =
|
|
2928
|
+
export declare type VitalStatus = 'normal' | 'warning' | 'critical';
|
|
2902
2929
|
|
|
2903
2930
|
export { VStack }
|
|
2904
2931
|
|