@medixdeck/ui 0.1.16 → 0.1.18
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/LICENSE +21 -21
- package/README.md +188 -99
- package/dist/_redirects +1 -0
- package/dist/index.cjs +159 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +364 -146
- package/dist/index.js +17005 -6899
- package/dist/index.js.map +1 -1
- package/dist/logos/logo-blue.png +0 -0
- package/dist/manifest.json +1 -1
- package/dist/sw.js +3 -3
- package/package.json +54 -7
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { Image as Image_2 } from '@chakra-ui/react';
|
|
|
14
14
|
import { InputProps as InputProps_2 } from '@chakra-ui/react';
|
|
15
15
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
16
16
|
import { Link } from '@chakra-ui/react';
|
|
17
|
-
import { NativeSelectRootProps } from '@chakra-ui/react';
|
|
18
17
|
import { SeparatorProps } from '@chakra-ui/react';
|
|
19
18
|
import { SimpleGrid } from '@chakra-ui/react';
|
|
20
19
|
import { Stack } from '@chakra-ui/react';
|
|
@@ -27,9 +26,9 @@ import { VStack } from '@chakra-ui/react';
|
|
|
27
26
|
import { Wrap } from '@chakra-ui/react';
|
|
28
27
|
import { WrapItem } from '@chakra-ui/react';
|
|
29
28
|
|
|
30
|
-
export declare function Accordion({ items, allowMultiple, defaultOpenIds, colorScheme, ...props }: AccordionProps): JSX_2.Element;
|
|
29
|
+
export declare function Accordion({ items, allowMultiple, defaultOpenIds, colorScheme, answerType, ...props }: AccordionProps): JSX_2.Element;
|
|
31
30
|
|
|
32
|
-
export declare type AccordionColorScheme =
|
|
31
|
+
export declare type AccordionColorScheme = 'blue' | 'purple';
|
|
33
32
|
|
|
34
33
|
export declare interface AccordionItem {
|
|
35
34
|
id: string;
|
|
@@ -39,7 +38,7 @@ export declare interface AccordionItem {
|
|
|
39
38
|
answer: string | default_2.ReactNode;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
export declare interface AccordionProps extends Omit<BoxProps,
|
|
41
|
+
export declare interface AccordionProps extends Omit<BoxProps, 'onChange'> {
|
|
43
42
|
items: AccordionItem[];
|
|
44
43
|
/** Allow multiple items open simultaneously */
|
|
45
44
|
allowMultiple?: boolean;
|
|
@@ -50,6 +49,10 @@ export declare interface AccordionProps extends Omit<BoxProps, "onChange"> {
|
|
|
50
49
|
* @default "blue"
|
|
51
50
|
*/
|
|
52
51
|
colorScheme?: AccordionColorScheme;
|
|
52
|
+
/**
|
|
53
|
+
* Format of the answer string content. Default is "HTML".
|
|
54
|
+
*/
|
|
55
|
+
answerType?: 'HTML' | 'MD';
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -74,9 +77,9 @@ export declare interface AlertProps extends BoxProps {
|
|
|
74
77
|
closable?: boolean;
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
export declare type AlertStatus =
|
|
80
|
+
export declare type AlertStatus = 'info' | 'success' | 'warning' | 'error';
|
|
78
81
|
|
|
79
|
-
export declare type AlertVariant =
|
|
82
|
+
export declare type AlertVariant = 'subtle' | 'solid' | 'left-accent';
|
|
80
83
|
|
|
81
84
|
/**
|
|
82
85
|
* MedixDeck AppointmentCard
|
|
@@ -98,9 +101,9 @@ export declare interface AppointmentCardProps extends BoxProps {
|
|
|
98
101
|
onJoin?: () => void;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
export declare type AppointmentStatus =
|
|
104
|
+
export declare type AppointmentStatus = 'upcoming' | 'completed' | 'cancelled';
|
|
102
105
|
|
|
103
|
-
export declare type AppointmentType =
|
|
106
|
+
export declare type AppointmentType = 'video' | 'in-person';
|
|
104
107
|
|
|
105
108
|
/**
|
|
106
109
|
* MedixDeck Avatar
|
|
@@ -115,7 +118,7 @@ export declare interface AvatarGroupProps {
|
|
|
115
118
|
size?: AvatarSize;
|
|
116
119
|
}
|
|
117
120
|
|
|
118
|
-
export declare interface AvatarProps extends Omit<AvatarRootProps,
|
|
121
|
+
export declare interface AvatarProps extends Omit<AvatarRootProps, 'size'> {
|
|
119
122
|
src?: string;
|
|
120
123
|
name?: string;
|
|
121
124
|
size?: AvatarSize;
|
|
@@ -123,7 +126,7 @@ export declare interface AvatarProps extends Omit<AvatarRootProps, "size"> {
|
|
|
123
126
|
statusColor?: string;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
export declare type AvatarSize =
|
|
129
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
127
130
|
|
|
128
131
|
/**
|
|
129
132
|
* MedixDeck Badge
|
|
@@ -157,11 +160,11 @@ export declare interface BadgeProps {
|
|
|
157
160
|
id?: string;
|
|
158
161
|
}
|
|
159
162
|
|
|
160
|
-
export declare type BadgeSize =
|
|
163
|
+
export declare type BadgeSize = 'sm' | 'md' | 'lg';
|
|
161
164
|
|
|
162
|
-
export declare type BadgeStatus =
|
|
165
|
+
export declare type BadgeStatus = 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
163
166
|
|
|
164
|
-
export declare type BadgeVariant =
|
|
167
|
+
export declare type BadgeVariant = 'solid' | 'subtle' | 'outline' | 'surface';
|
|
165
168
|
|
|
166
169
|
/**
|
|
167
170
|
* MedixDeck BlogCard
|
|
@@ -183,9 +186,9 @@ export declare type BadgeVariant = "solid" | "subtle" | "outline" | "surface";
|
|
|
183
186
|
*/
|
|
184
187
|
export declare function BlogCard({ title, excerpt, category, date, coverImage, href, onClick, colorScheme, ...props }: BlogCardProps): JSX_2.Element;
|
|
185
188
|
|
|
186
|
-
export declare type BlogCardColorScheme =
|
|
189
|
+
export declare type BlogCardColorScheme = 'blue' | 'purple';
|
|
187
190
|
|
|
188
|
-
export declare interface BlogCardProps extends Omit<BoxProps,
|
|
191
|
+
export declare interface BlogCardProps extends Omit<BoxProps, 'onClick'> {
|
|
189
192
|
/** Article headline */
|
|
190
193
|
title: string;
|
|
191
194
|
/** Short excerpt shown below the title (optional, max 2 lines clamped) */
|
|
@@ -269,11 +272,11 @@ export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & d
|
|
|
269
272
|
|
|
270
273
|
export declare interface ButtonProps {
|
|
271
274
|
/** Visual variant */
|
|
272
|
-
variant?:
|
|
275
|
+
variant?: 'solid' | 'outline' | 'ghost' | 'link' | 'secondary';
|
|
273
276
|
/** Size */
|
|
274
|
-
size?:
|
|
277
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
275
278
|
/** Color scheme — maps to MedixDeck brand colors */
|
|
276
|
-
colorScheme?:
|
|
279
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'red' | 'amber' | 'black' | 'gray' | string;
|
|
277
280
|
/** Show loading spinner */
|
|
278
281
|
isLoading?: boolean;
|
|
279
282
|
/** Element rendered before the label */
|
|
@@ -283,7 +286,7 @@ export declare interface ButtonProps {
|
|
|
283
286
|
/** Disabled state */
|
|
284
287
|
disabled?: boolean;
|
|
285
288
|
/** HTML type attribute */
|
|
286
|
-
type?:
|
|
289
|
+
type?: 'button' | 'submit' | 'reset';
|
|
287
290
|
/** Click handler */
|
|
288
291
|
onClick?: default_2.MouseEventHandler<HTMLElement>;
|
|
289
292
|
/** Any additional className */
|
|
@@ -292,12 +295,12 @@ export declare interface ButtonProps {
|
|
|
292
295
|
style?: default_2.CSSProperties;
|
|
293
296
|
children?: default_2.ReactNode;
|
|
294
297
|
id?: string;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
'aria-label'?: string;
|
|
299
|
+
'aria-expanded'?: boolean | 'true' | 'false';
|
|
300
|
+
'aria-controls'?: string;
|
|
301
|
+
'aria-haspopup'?: boolean | 'dialog' | 'menu' | 'grid' | 'listbox' | 'tree';
|
|
299
302
|
/** HTML element to render as — supports "button" (default) or "a" (anchor link) */
|
|
300
|
-
as?:
|
|
303
|
+
as?: 'button' | 'a';
|
|
301
304
|
/** Link destination if rendered as an anchor */
|
|
302
305
|
href?: string;
|
|
303
306
|
/** Link target if rendered as an anchor */
|
|
@@ -316,7 +319,7 @@ export declare interface ButtonProps {
|
|
|
316
319
|
*/
|
|
317
320
|
export declare function Calendar({ value, onChange, minDate, maxDate, ...props }: CalendarProps): JSX_2.Element;
|
|
318
321
|
|
|
319
|
-
export declare interface CalendarProps extends Omit<BoxProps,
|
|
322
|
+
export declare interface CalendarProps extends Omit<BoxProps, 'onChange'> {
|
|
320
323
|
value?: Date | null;
|
|
321
324
|
onChange?: (date: Date) => void;
|
|
322
325
|
minDate?: Date;
|
|
@@ -432,7 +435,7 @@ declare const COLORS_2: {
|
|
|
432
435
|
* - `"blue"` — Primary brand blue (#0685FF)
|
|
433
436
|
* - `"purple"` — Secondary brand purple (#7700CC)
|
|
434
437
|
*/
|
|
435
|
-
export declare type ColorScheme =
|
|
438
|
+
export declare type ColorScheme = 'blue' | 'purple';
|
|
436
439
|
|
|
437
440
|
declare type ColorScheme_2 = keyof typeof COLORS;
|
|
438
441
|
|
|
@@ -622,10 +625,10 @@ export declare interface Column<T = Record<string, unknown>> {
|
|
|
622
625
|
/** Custom cell renderer */
|
|
623
626
|
render?: (value: unknown, row: T, index: number) => default_2.ReactNode;
|
|
624
627
|
/** Text alignment */
|
|
625
|
-
align?:
|
|
628
|
+
align?: 'left' | 'center' | 'right';
|
|
626
629
|
}
|
|
627
630
|
|
|
628
|
-
export declare function Combobox({ options, value, onChange, placeholder, label, helperText, errorMessage, isInvalid, isDisabled, }: ComboboxProps): JSX_2.Element;
|
|
631
|
+
export declare function Combobox({ options, value, onChange, placeholder, label, helperText, errorMessage, colorScheme, isInvalid, isDisabled, }: ComboboxProps): JSX_2.Element;
|
|
629
632
|
|
|
630
633
|
export declare interface ComboboxOption {
|
|
631
634
|
label: string;
|
|
@@ -640,6 +643,8 @@ export declare interface ComboboxProps {
|
|
|
640
643
|
label?: string;
|
|
641
644
|
helperText?: string;
|
|
642
645
|
errorMessage?: string;
|
|
646
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
647
|
+
colorScheme?: 'blue' | 'purple';
|
|
643
648
|
isInvalid?: boolean;
|
|
644
649
|
isDisabled?: boolean;
|
|
645
650
|
}
|
|
@@ -660,7 +665,7 @@ export declare const Container: default_2.ForwardRefExoticComponent<ContainerPro
|
|
|
660
665
|
|
|
661
666
|
export declare interface ContainerProps extends BoxProps {
|
|
662
667
|
/** Max width preset */
|
|
663
|
-
maxWidth?:
|
|
668
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
664
669
|
}
|
|
665
670
|
|
|
666
671
|
/**
|
|
@@ -679,7 +684,7 @@ export declare namespace CookieConsentBanner {
|
|
|
679
684
|
var displayName: string;
|
|
680
685
|
}
|
|
681
686
|
|
|
682
|
-
export declare interface CookieConsentBannerProps extends Omit<CookieConsentComponentProps,
|
|
687
|
+
export declare interface CookieConsentBannerProps extends Omit<CookieConsentComponentProps, 'style' | 'buttonStyle' | 'declineButtonStyle' | 'contentStyle'> {
|
|
683
688
|
/** Optional custom title for the banner */
|
|
684
689
|
title?: string;
|
|
685
690
|
/** Custom text for accept button. Defaults to "Accept All" */
|
|
@@ -692,7 +697,7 @@ export declare interface CookieConsentBannerProps extends Omit<CookieConsentComp
|
|
|
692
697
|
|
|
693
698
|
declare type CookieConsentComponentProps = default_2.ComponentProps<typeof default_3>;
|
|
694
699
|
|
|
695
|
-
export declare type DashboardColorScheme =
|
|
700
|
+
export declare type DashboardColorScheme = 'blue' | 'purple';
|
|
696
701
|
|
|
697
702
|
export declare interface DashboardDropdownItem {
|
|
698
703
|
/** Label shown in the dropdown menu. */
|
|
@@ -771,7 +776,7 @@ export declare namespace DashboardLayout {
|
|
|
771
776
|
var displayName: string;
|
|
772
777
|
}
|
|
773
778
|
|
|
774
|
-
export declare interface DashboardLayoutProps extends Omit<BoxProps,
|
|
779
|
+
export declare interface DashboardLayoutProps extends Omit<BoxProps, 'children'> {
|
|
775
780
|
/** Page content rendered inside the main area. */
|
|
776
781
|
children: default_2.ReactNode;
|
|
777
782
|
/**
|
|
@@ -937,7 +942,7 @@ export declare interface DashboardScoreCardData {
|
|
|
937
942
|
/** Optional href to navigate to the doctor's profile when the card is clicked. */
|
|
938
943
|
link?: string;
|
|
939
944
|
/** Clinician tier — determines avatar ring colour and badge text colour. */
|
|
940
|
-
tier:
|
|
945
|
+
tier: 'bronze' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
941
946
|
/** Numeric MedixScore displayed next to the tier label. */
|
|
942
947
|
medixScore: number;
|
|
943
948
|
}
|
|
@@ -954,7 +959,7 @@ export declare interface DashboardUser {
|
|
|
954
959
|
/**
|
|
955
960
|
* MedixDeck DataTable
|
|
956
961
|
*
|
|
957
|
-
* Responsive data table with sorting.
|
|
962
|
+
* Responsive data table with sorting, search filtering, pagination, and dark mode support.
|
|
958
963
|
*
|
|
959
964
|
* @example
|
|
960
965
|
* ```tsx
|
|
@@ -965,12 +970,14 @@ export declare interface DashboardUser {
|
|
|
965
970
|
* { key: "status", label: "Status", render: (v) => <Badge>{v}</Badge> },
|
|
966
971
|
* ]}
|
|
967
972
|
* data={patients}
|
|
968
|
-
*
|
|
973
|
+
* enableSearch
|
|
974
|
+
* enablePagination
|
|
975
|
+
* pageSize={10}
|
|
969
976
|
* onRowClick={(row) => router.push(`/patients/${row.id}`)}
|
|
970
977
|
* />
|
|
971
978
|
* ```
|
|
972
979
|
*/
|
|
973
|
-
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;
|
|
980
|
+
export declare function DataTable<T extends Record<string, unknown>>({ columns, data, rowKey, isLoading, emptyMessage, sortable, sortKey, sortDirection, onSort, striped, onRowClick, caption, enablePagination, pageSize, page, onPageChange, enableSearch, searchPlaceholder, searchQuery, onSearchChange, style, className, }: DataTableProps<T>): JSX_2.Element;
|
|
974
981
|
|
|
975
982
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
976
983
|
columns: Column<T>[];
|
|
@@ -980,12 +987,28 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
980
987
|
emptyMessage?: string;
|
|
981
988
|
sortable?: boolean;
|
|
982
989
|
sortKey?: string;
|
|
983
|
-
sortDirection?:
|
|
984
|
-
onSort?: (key: string, direction:
|
|
990
|
+
sortDirection?: 'asc' | 'desc';
|
|
991
|
+
onSort?: (key: string, direction: 'asc' | 'desc') => void;
|
|
985
992
|
striped?: boolean;
|
|
986
993
|
onRowClick?: (row: T, index: number) => void;
|
|
987
994
|
caption?: string;
|
|
988
|
-
/**
|
|
995
|
+
/** Enable built-in pagination (default: false for backward compatibility) */
|
|
996
|
+
enablePagination?: boolean;
|
|
997
|
+
/** Number of rows per page when pagination is enabled (default: 10) */
|
|
998
|
+
pageSize?: number;
|
|
999
|
+
/** Controlled page number (1-indexed). If omitted, internal state is used. */
|
|
1000
|
+
page?: number;
|
|
1001
|
+
/** Page change callback */
|
|
1002
|
+
onPageChange?: (page: number) => void;
|
|
1003
|
+
/** Enable search input filter (default: false for backward compatibility) */
|
|
1004
|
+
enableSearch?: boolean;
|
|
1005
|
+
/** Custom placeholder for search input */
|
|
1006
|
+
searchPlaceholder?: string;
|
|
1007
|
+
/** Controlled search query. If omitted, internal state is used. */
|
|
1008
|
+
searchQuery?: string;
|
|
1009
|
+
/** Search query change callback */
|
|
1010
|
+
onSearchChange?: (query: string) => void;
|
|
1011
|
+
/** Extra styles for outer container */
|
|
989
1012
|
style?: default_2.CSSProperties;
|
|
990
1013
|
className?: string;
|
|
991
1014
|
}
|
|
@@ -1005,7 +1028,7 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
1005
1028
|
* />
|
|
1006
1029
|
* ```
|
|
1007
1030
|
*/
|
|
1008
|
-
export declare function DatePicker({ value, onChange, min, max, label, helperText, errorMessage, isInvalid, isDisabled, placeholder, id, includeTime, }: DatePickerProps): JSX_2.Element;
|
|
1031
|
+
export declare function DatePicker({ value, onChange, min, max, label, helperText, errorMessage, colorScheme, isInvalid, isDisabled, placeholder, id, includeTime, }: DatePickerProps): JSX_2.Element;
|
|
1009
1032
|
|
|
1010
1033
|
export declare interface DatePickerProps {
|
|
1011
1034
|
/** Controlled value (ISO date string: YYYY-MM-DD) */
|
|
@@ -1018,6 +1041,8 @@ export declare interface DatePickerProps {
|
|
|
1018
1041
|
label?: string;
|
|
1019
1042
|
helperText?: string;
|
|
1020
1043
|
errorMessage?: string;
|
|
1044
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1045
|
+
colorScheme?: 'blue' | 'purple';
|
|
1021
1046
|
isInvalid?: boolean;
|
|
1022
1047
|
isDisabled?: boolean;
|
|
1023
1048
|
placeholder?: string;
|
|
@@ -1042,7 +1067,7 @@ export declare interface DatePickerProps {
|
|
|
1042
1067
|
* />
|
|
1043
1068
|
* ```
|
|
1044
1069
|
*/
|
|
1045
|
-
export declare function DateRangePicker({ startValue, onStartChange, endValue, onEndChange, min, max, label, helperText, errorMessage, isInvalid, isDisabled, startPlaceholder, endPlaceholder, id, }: DateRangePickerProps): JSX_2.Element;
|
|
1070
|
+
export declare function DateRangePicker({ startValue, onStartChange, endValue, onEndChange, min, max, label, helperText, errorMessage, colorScheme, isInvalid, isDisabled, startPlaceholder, endPlaceholder, id, }: DateRangePickerProps): JSX_2.Element;
|
|
1046
1071
|
|
|
1047
1072
|
export declare interface DateRangePickerProps {
|
|
1048
1073
|
/** Controlled start date value (ISO date string: YYYY-MM-DD) */
|
|
@@ -1058,6 +1083,8 @@ export declare interface DateRangePickerProps {
|
|
|
1058
1083
|
label?: string;
|
|
1059
1084
|
helperText?: string;
|
|
1060
1085
|
errorMessage?: string;
|
|
1086
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1087
|
+
colorScheme?: 'blue' | 'purple';
|
|
1061
1088
|
isInvalid?: boolean;
|
|
1062
1089
|
isDisabled?: boolean;
|
|
1063
1090
|
startPlaceholder?: string;
|
|
@@ -1082,7 +1109,7 @@ export declare const Divider: default_2.ForwardRefExoticComponent<DividerProps &
|
|
|
1082
1109
|
|
|
1083
1110
|
export declare interface DividerProps extends SeparatorProps {
|
|
1084
1111
|
/** Orientation of the divider */
|
|
1085
|
-
orientation?:
|
|
1112
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1086
1113
|
/** Custom label in the center */
|
|
1087
1114
|
label?: string;
|
|
1088
1115
|
}
|
|
@@ -1125,7 +1152,7 @@ export declare interface DoctorCardProps extends BoxProps {
|
|
|
1125
1152
|
availabilityLabel?: string;
|
|
1126
1153
|
onBookClick?: () => void;
|
|
1127
1154
|
onViewClick?: () => void;
|
|
1128
|
-
variant?:
|
|
1155
|
+
variant?: 'standard' | 'compact' | 'featured';
|
|
1129
1156
|
}
|
|
1130
1157
|
|
|
1131
1158
|
/**
|
|
@@ -1140,9 +1167,9 @@ export declare interface DoctorCardProps extends BoxProps {
|
|
|
1140
1167
|
* </Drawer>
|
|
1141
1168
|
* ```
|
|
1142
1169
|
*/
|
|
1143
|
-
export declare function Drawer({ isOpen, onClose, title, placement, size, closeOnOverlayClick, footer, children, }: DrawerProps): JSX_2.Element;
|
|
1170
|
+
export declare function Drawer({ isOpen, onClose, title, placement, size, closeOnOverlayClick, closeOnEscape, footer, children, }: DrawerProps): JSX_2.Element;
|
|
1144
1171
|
|
|
1145
|
-
export declare type DrawerPlacement =
|
|
1172
|
+
export declare type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
1146
1173
|
|
|
1147
1174
|
export declare interface DrawerProps {
|
|
1148
1175
|
isOpen: boolean;
|
|
@@ -1151,11 +1178,12 @@ export declare interface DrawerProps {
|
|
|
1151
1178
|
placement?: DrawerPlacement;
|
|
1152
1179
|
size?: DrawerSize;
|
|
1153
1180
|
closeOnOverlayClick?: boolean;
|
|
1181
|
+
closeOnEscape?: boolean;
|
|
1154
1182
|
footer?: default_2.ReactNode;
|
|
1155
1183
|
children?: default_2.ReactNode;
|
|
1156
1184
|
}
|
|
1157
1185
|
|
|
1158
|
-
export declare type DrawerSize =
|
|
1186
|
+
export declare type DrawerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1159
1187
|
|
|
1160
1188
|
/**
|
|
1161
1189
|
* MedixDeck EmptyState
|
|
@@ -1203,7 +1231,7 @@ export declare interface EmptyStateProps extends BoxProps {
|
|
|
1203
1231
|
* />
|
|
1204
1232
|
* ```
|
|
1205
1233
|
*/
|
|
1206
|
-
export declare function FileUpload({ accept, multiple, maxSize, label, helperText, errorMessage, isInvalid, isDisabled, onChange, dropzoneTitle, id, }: FileUploadProps): JSX_2.Element;
|
|
1234
|
+
export declare function FileUpload({ accept, multiple, maxSize, label, helperText, errorMessage, colorScheme, isInvalid, isDisabled, onChange, dropzoneTitle, id, }: FileUploadProps): JSX_2.Element;
|
|
1207
1235
|
|
|
1208
1236
|
export declare interface FileUploadProps {
|
|
1209
1237
|
/** Accepted file types (e.g. ".pdf,.jpg,.png" or "image/*") */
|
|
@@ -1215,6 +1243,8 @@ export declare interface FileUploadProps {
|
|
|
1215
1243
|
label?: string;
|
|
1216
1244
|
helperText?: string;
|
|
1217
1245
|
errorMessage?: string;
|
|
1246
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1247
|
+
colorScheme?: 'blue' | 'purple';
|
|
1218
1248
|
isInvalid?: boolean;
|
|
1219
1249
|
isDisabled?: boolean;
|
|
1220
1250
|
/** Callback fired when files are selected or dropped */
|
|
@@ -1236,7 +1266,7 @@ export { Flex }
|
|
|
1236
1266
|
* @example
|
|
1237
1267
|
* ```tsx
|
|
1238
1268
|
* <Footer
|
|
1239
|
-
* description="Nigeria's
|
|
1269
|
+
* description="Nigeria's leading digital platform for specialist healthcare. Bridging the gap between expert care and patient convenience."
|
|
1240
1270
|
* socialLinks={[{ platform: 'twitter', href: '...' }]}
|
|
1241
1271
|
* />
|
|
1242
1272
|
* ```
|
|
@@ -1258,7 +1288,7 @@ export declare interface FooterCertification {
|
|
|
1258
1288
|
imageSrc?: string;
|
|
1259
1289
|
}
|
|
1260
1290
|
|
|
1261
|
-
export declare type FooterColorScheme =
|
|
1291
|
+
export declare type FooterColorScheme = 'blue' | 'purple';
|
|
1262
1292
|
|
|
1263
1293
|
export declare interface FooterLink {
|
|
1264
1294
|
label: string;
|
|
@@ -1266,7 +1296,7 @@ export declare interface FooterLink {
|
|
|
1266
1296
|
isExternal?: boolean;
|
|
1267
1297
|
}
|
|
1268
1298
|
|
|
1269
|
-
export declare interface FooterProps extends Omit<BoxProps,
|
|
1299
|
+
export declare interface FooterProps extends Omit<BoxProps, 'children'> {
|
|
1270
1300
|
/** Company description shown under the logo */
|
|
1271
1301
|
description?: string;
|
|
1272
1302
|
/** Custom logo element. Defaults to MedixDeck Logo. */
|
|
@@ -1376,19 +1406,19 @@ export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonP
|
|
|
1376
1406
|
|
|
1377
1407
|
export declare interface IconButtonProps {
|
|
1378
1408
|
/** Accessible label — required for screen readers */
|
|
1379
|
-
|
|
1409
|
+
'aria-label': string;
|
|
1380
1410
|
/** Visual variant */
|
|
1381
|
-
variant?:
|
|
1411
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
1382
1412
|
/** Size */
|
|
1383
|
-
size?:
|
|
1413
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1384
1414
|
/** Brand color scheme */
|
|
1385
|
-
colorScheme?:
|
|
1415
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'red' | 'gray';
|
|
1386
1416
|
/** Render as a circle instead of a rounded square */
|
|
1387
1417
|
isRound?: boolean;
|
|
1388
1418
|
/** Disabled state */
|
|
1389
1419
|
disabled?: boolean;
|
|
1390
1420
|
/** HTML type attribute */
|
|
1391
|
-
type?:
|
|
1421
|
+
type?: 'button' | 'submit' | 'reset';
|
|
1392
1422
|
/** Click handler */
|
|
1393
1423
|
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
1394
1424
|
className?: string;
|
|
@@ -1402,7 +1432,7 @@ export { Image_2 as Image }
|
|
|
1402
1432
|
/**
|
|
1403
1433
|
* MedixDeck Input
|
|
1404
1434
|
*
|
|
1405
|
-
* Text input field. Supports icons, validation, and all standard HTML input types.
|
|
1435
|
+
* Text input field. Supports icons, validation, brand colorScheme, and all standard HTML input types.
|
|
1406
1436
|
*
|
|
1407
1437
|
* @example
|
|
1408
1438
|
* ```tsx
|
|
@@ -1411,13 +1441,16 @@ export { Image_2 as Image }
|
|
|
1411
1441
|
* leftElement={<SearchIcon />}
|
|
1412
1442
|
* />
|
|
1413
1443
|
* <Input isInvalid errorMessage="Email is required" type="email" />
|
|
1444
|
+
* <Input colorScheme="purple" placeholder="Purple focus ring" />
|
|
1414
1445
|
* ```
|
|
1415
1446
|
*/
|
|
1416
1447
|
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
1417
1448
|
|
|
1418
|
-
export declare interface InputProps extends Omit<InputProps_2,
|
|
1449
|
+
export declare interface InputProps extends Omit<InputProps_2, 'size'> {
|
|
1419
1450
|
/** Input size */
|
|
1420
|
-
size?:
|
|
1451
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1452
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1453
|
+
colorScheme?: 'blue' | 'purple';
|
|
1421
1454
|
/** Left icon or element */
|
|
1422
1455
|
leftElement?: default_2.ReactNode;
|
|
1423
1456
|
/** Right icon or element */
|
|
@@ -1436,24 +1469,16 @@ export { Link }
|
|
|
1436
1469
|
* Pure inline-SVG brand logo. Works in **every** consuming project immediately —
|
|
1437
1470
|
* no image files, no asset pipeline, no CDN hosting required.
|
|
1438
1471
|
*
|
|
1439
|
-
* The mark path is derived from `assets/logos/logo-icon-purple.svg` (the
|
|
1440
|
-
* canonical vector-only file for the brand mark). The wordmark paths are
|
|
1441
|
-
* derived from `assets/logos/logo-text-blue.svg`. Both are embedded as
|
|
1442
|
-
* inline SVG so they bundle directly into the library JS.
|
|
1443
|
-
*
|
|
1444
1472
|
* @example
|
|
1445
1473
|
* ```tsx
|
|
1446
1474
|
* // Full logo, default blue, 32 px tall
|
|
1447
1475
|
* <Logo />
|
|
1448
1476
|
*
|
|
1449
|
-
* //
|
|
1450
|
-
* <Logo variant="purple"
|
|
1451
|
-
*
|
|
1452
|
-
* // White full logo for dark navbars
|
|
1453
|
-
* <Logo variant="white" height={28} />
|
|
1477
|
+
* // Downloadable logo
|
|
1478
|
+
* <Logo variant="purple" downloadable />
|
|
1454
1479
|
* ```
|
|
1455
1480
|
*/
|
|
1456
|
-
export declare function Logo({ variant, type, height, className, style, }: LogoProps): JSX_2.Element;
|
|
1481
|
+
export declare function Logo({ variant, type, height, downloadable, downloadFileName, className, style, }: LogoProps): JSX_2.Element;
|
|
1457
1482
|
|
|
1458
1483
|
export declare interface LogoProps {
|
|
1459
1484
|
/**
|
|
@@ -1476,15 +1501,22 @@ export declare interface LogoProps {
|
|
|
1476
1501
|
* @default 32
|
|
1477
1502
|
*/
|
|
1478
1503
|
height?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* When true, clicking the logo automatically downloads a high-resolution PNG.
|
|
1506
|
+
* @default false
|
|
1507
|
+
*/
|
|
1508
|
+
downloadable?: boolean;
|
|
1509
|
+
/** Custom download file name override */
|
|
1510
|
+
downloadFileName?: string;
|
|
1479
1511
|
/** Optional className applied to the root <span> */
|
|
1480
1512
|
className?: string;
|
|
1481
1513
|
/** Extra inline styles on the root <span> */
|
|
1482
1514
|
style?: default_2.CSSProperties;
|
|
1483
1515
|
}
|
|
1484
1516
|
|
|
1485
|
-
export declare type LogoType =
|
|
1517
|
+
export declare type LogoType = 'full' | 'icon';
|
|
1486
1518
|
|
|
1487
|
-
export declare type LogoVariant =
|
|
1519
|
+
export declare type LogoVariant = 'blue' | 'purple' | 'black' | 'white';
|
|
1488
1520
|
|
|
1489
1521
|
export declare const medixConfig: SystemConfig;
|
|
1490
1522
|
|
|
@@ -1521,11 +1553,11 @@ export declare interface MedixProviderProps {
|
|
|
1521
1553
|
* Default color mode. Matches next-themes attribute.
|
|
1522
1554
|
* @default "system"
|
|
1523
1555
|
*/
|
|
1524
|
-
defaultColorMode?:
|
|
1556
|
+
defaultColorMode?: 'light' | 'dark' | 'system';
|
|
1525
1557
|
/**
|
|
1526
1558
|
* Force a specific color mode (disables user toggle)
|
|
1527
1559
|
*/
|
|
1528
|
-
forcedColorMode?:
|
|
1560
|
+
forcedColorMode?: 'light' | 'dark';
|
|
1529
1561
|
}
|
|
1530
1562
|
|
|
1531
1563
|
/**
|
|
@@ -1545,7 +1577,7 @@ export declare interface MedixProviderProps {
|
|
|
1545
1577
|
* </Modal>
|
|
1546
1578
|
* ```
|
|
1547
1579
|
*/
|
|
1548
|
-
export declare function Modal({ isOpen, onClose, title, description, size, closeOnOverlayClick, footer, children, }: ModalProps): JSX_2.Element;
|
|
1580
|
+
export declare function Modal({ isOpen, onClose, title, description, size, closeOnOverlayClick, closeOnEscape, footer, children, }: ModalProps): JSX_2.Element;
|
|
1549
1581
|
|
|
1550
1582
|
export declare interface ModalProps {
|
|
1551
1583
|
isOpen: boolean;
|
|
@@ -1555,12 +1587,14 @@ export declare interface ModalProps {
|
|
|
1555
1587
|
size?: ModalSize;
|
|
1556
1588
|
/** Prevent closing on backdrop click */
|
|
1557
1589
|
closeOnOverlayClick?: boolean;
|
|
1590
|
+
/** Prevent closing on Escape key press */
|
|
1591
|
+
closeOnEscape?: boolean;
|
|
1558
1592
|
/** Footer action buttons */
|
|
1559
1593
|
footer?: default_2.ReactNode;
|
|
1560
1594
|
children?: default_2.ReactNode;
|
|
1561
1595
|
}
|
|
1562
1596
|
|
|
1563
|
-
export declare type ModalSize =
|
|
1597
|
+
export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1564
1598
|
|
|
1565
1599
|
/**
|
|
1566
1600
|
* MedixDeck Navbar
|
|
@@ -1632,9 +1666,9 @@ export declare type ModalSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
|
1632
1666
|
*/
|
|
1633
1667
|
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
1668
|
|
|
1635
|
-
export declare type NavbarColorScheme =
|
|
1669
|
+
export declare type NavbarColorScheme = 'blue' | 'purple';
|
|
1636
1670
|
|
|
1637
|
-
export declare interface NavbarProps extends Omit<BoxProps,
|
|
1671
|
+
export declare interface NavbarProps extends Omit<BoxProps, 'children'> {
|
|
1638
1672
|
/** Logo element. Defaults to `<Logo />` when omitted. */
|
|
1639
1673
|
logo?: default_2.ReactNode;
|
|
1640
1674
|
/** Navigation items to display. */
|
|
@@ -1643,7 +1677,7 @@ export declare interface NavbarProps extends Omit<BoxProps, "children"> {
|
|
|
1643
1677
|
* Alignment of the navigation items on desktop.
|
|
1644
1678
|
* @default "center"
|
|
1645
1679
|
*/
|
|
1646
|
-
navItemsAlign?:
|
|
1680
|
+
navItemsAlign?: 'left' | 'center' | 'right';
|
|
1647
1681
|
/**
|
|
1648
1682
|
* Custom link renderer — lets you integrate React Router, Next.js `<Link>`, etc.
|
|
1649
1683
|
*
|
|
@@ -1716,7 +1750,7 @@ export declare interface NavbarProps extends Omit<BoxProps, "children"> {
|
|
|
1716
1750
|
* - `"transparent"` — fully transparent (e.g. over a hero image)
|
|
1717
1751
|
* - `"blur"` — frosted-glass dark overlay
|
|
1718
1752
|
*/
|
|
1719
|
-
variant?:
|
|
1753
|
+
variant?: 'solid' | 'transparent' | 'blur';
|
|
1720
1754
|
}
|
|
1721
1755
|
|
|
1722
1756
|
export declare interface NavItem {
|
|
@@ -1752,13 +1786,15 @@ export declare interface NewsletterProps {
|
|
|
1752
1786
|
* }
|
|
1753
1787
|
* ```
|
|
1754
1788
|
*/
|
|
1755
|
-
export declare function NotFoundPage({ title, description, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
1789
|
+
export declare function NotFoundPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
1756
1790
|
|
|
1757
1791
|
export declare interface NotFoundPageProps extends BoxProps {
|
|
1758
1792
|
/** Optional custom title. Defaults to "Page Not Found" */
|
|
1759
1793
|
title?: string;
|
|
1760
1794
|
/** Optional custom description. Defaults to "The page you are looking for doesn't exist or has been moved." */
|
|
1761
1795
|
description?: string;
|
|
1796
|
+
/** Optional error message details to display in a code block (dev only) */
|
|
1797
|
+
errorMessage?: string;
|
|
1762
1798
|
/** CTA button label. Defaults to "Go back home" */
|
|
1763
1799
|
actionLabel?: string;
|
|
1764
1800
|
/** CTA button onClick handler */
|
|
@@ -1785,7 +1821,7 @@ export declare interface NotFoundPageProps extends BoxProps {
|
|
|
1785
1821
|
* />
|
|
1786
1822
|
* ```
|
|
1787
1823
|
*/
|
|
1788
|
-
export declare function OTPInput({ length, value, defaultValue, onChange, onComplete, isInvalid, isDisabled, mask, label, helperText, errorMessage, }: OTPInputProps): JSX_2.Element;
|
|
1824
|
+
export declare function OTPInput({ length, value, defaultValue, onChange, onComplete, colorScheme, isInvalid, isDisabled, mask, label, helperText, errorMessage, }: OTPInputProps): JSX_2.Element;
|
|
1789
1825
|
|
|
1790
1826
|
export declare interface OTPInputProps {
|
|
1791
1827
|
/** Number of digits */
|
|
@@ -1796,6 +1832,8 @@ export declare interface OTPInputProps {
|
|
|
1796
1832
|
value?: string;
|
|
1797
1833
|
onChange?: (value: string) => void;
|
|
1798
1834
|
onComplete?: (value: string) => void;
|
|
1835
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1836
|
+
colorScheme?: 'blue' | 'purple';
|
|
1799
1837
|
/** Whether in error state */
|
|
1800
1838
|
isInvalid?: boolean;
|
|
1801
1839
|
/** Whether disabled */
|
|
@@ -1820,7 +1858,7 @@ export declare interface OTPInputProps {
|
|
|
1820
1858
|
*/
|
|
1821
1859
|
export declare function Pagination({ total, pageSize, currentPage, onChange, siblingCount, showEdges, compact, ...props }: PaginationProps): JSX_2.Element | null;
|
|
1822
1860
|
|
|
1823
|
-
export declare interface PaginationProps extends Omit<BoxProps,
|
|
1861
|
+
export declare interface PaginationProps extends Omit<BoxProps, 'onChange'> {
|
|
1824
1862
|
/** Total number of items */
|
|
1825
1863
|
total: number;
|
|
1826
1864
|
/** Items per page */
|
|
@@ -1841,8 +1879,7 @@ export declare interface PaginationProps extends Omit<BoxProps, "onChange"> {
|
|
|
1841
1879
|
* MedixDeck PhoneInput
|
|
1842
1880
|
*
|
|
1843
1881
|
* Phone number input with country code selector (defaults to Nigeria +234).
|
|
1844
|
-
*
|
|
1845
|
-
* .dark ancestor, so dark mode works without any JS theme hook.
|
|
1882
|
+
* Features a searchable country picker dropdown with full country names.
|
|
1846
1883
|
*
|
|
1847
1884
|
* @example
|
|
1848
1885
|
* ```tsx
|
|
@@ -1853,16 +1890,9 @@ export declare interface PaginationProps extends Omit<BoxProps, "onChange"> {
|
|
|
1853
1890
|
* defaultCountryCode="+234"
|
|
1854
1891
|
* onChange={(val) => setValue(val)}
|
|
1855
1892
|
* />
|
|
1856
|
-
*
|
|
1857
|
-
* // US (unambiguous ISO override — avoids picking AS for the shared +1 code)
|
|
1858
|
-
* <PhoneInput
|
|
1859
|
-
* label="Phone number"
|
|
1860
|
-
* defaultCountry="US"
|
|
1861
|
-
* onChange={(val) => setValue(val)}
|
|
1862
|
-
* />
|
|
1863
1893
|
* ```
|
|
1864
1894
|
*/
|
|
1865
|
-
export declare function PhoneInput({ value, onChange, showCountryCode, showCountryFlag, defaultCountryCode, defaultCountry, placeholder, isInvalid, errorMessage, label, helperText, isDisabled, id, }: PhoneInputProps): JSX_2.Element;
|
|
1895
|
+
export declare function PhoneInput({ value, onChange, showCountryCode, showCountryFlag, defaultCountryCode, defaultCountry, placeholder, colorScheme, isInvalid, errorMessage, label, helperText, isDisabled, id, }: PhoneInputProps): JSX_2.Element;
|
|
1866
1896
|
|
|
1867
1897
|
export declare interface PhoneInputProps {
|
|
1868
1898
|
/** Controlled value (full number including country code prefix) */
|
|
@@ -1880,6 +1910,8 @@ export declare interface PhoneInputProps {
|
|
|
1880
1910
|
* calling codes such as +1 (NANP) or +7 (Russia/Kazakhstan). */
|
|
1881
1911
|
defaultCountry?: string;
|
|
1882
1912
|
placeholder?: string;
|
|
1913
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
1914
|
+
colorScheme?: 'blue' | 'purple';
|
|
1883
1915
|
isInvalid?: boolean;
|
|
1884
1916
|
errorMessage?: string;
|
|
1885
1917
|
label?: string;
|
|
@@ -1906,9 +1938,9 @@ export declare interface ProgressProps extends BoxProps {
|
|
|
1906
1938
|
/** Progress value 0–100 */
|
|
1907
1939
|
value: number;
|
|
1908
1940
|
/** Color scheme */
|
|
1909
|
-
colorScheme?:
|
|
1941
|
+
colorScheme?: 'blue' | 'purple' | 'green' | 'amber' | 'red';
|
|
1910
1942
|
/** Height of the bar */
|
|
1911
|
-
size?:
|
|
1943
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1912
1944
|
/** Show label */
|
|
1913
1945
|
showLabel?: boolean;
|
|
1914
1946
|
/** Animate on mount */
|
|
@@ -1975,7 +2007,7 @@ export declare interface PWAInstallPromptProps {
|
|
|
1975
2007
|
* Position of the banner on screen.
|
|
1976
2008
|
* @default "bottom"
|
|
1977
2009
|
*/
|
|
1978
|
-
position?:
|
|
2010
|
+
position?: 'top' | 'bottom';
|
|
1979
2011
|
/**
|
|
1980
2012
|
* Number of seconds to delay the prompt after the conditions are met.
|
|
1981
2013
|
* @default 0
|
|
@@ -2016,10 +2048,10 @@ export declare const radiiTokens: {
|
|
|
2016
2048
|
readonly xl: {
|
|
2017
2049
|
readonly value: "16px";
|
|
2018
2050
|
};
|
|
2019
|
-
readonly
|
|
2051
|
+
readonly '2xl': {
|
|
2020
2052
|
readonly value: "20px";
|
|
2021
2053
|
};
|
|
2022
|
-
readonly
|
|
2054
|
+
readonly '3xl': {
|
|
2023
2055
|
readonly value: "24px";
|
|
2024
2056
|
};
|
|
2025
2057
|
readonly full: {
|
|
@@ -2054,8 +2086,8 @@ export declare interface RadioGroupProps {
|
|
|
2054
2086
|
onChange?: (value: string) => void;
|
|
2055
2087
|
options: RadioOption[];
|
|
2056
2088
|
/** Brand color for the selected dot */
|
|
2057
|
-
colorScheme?:
|
|
2058
|
-
direction?:
|
|
2089
|
+
colorScheme?: 'blue' | 'purple';
|
|
2090
|
+
direction?: 'row' | 'column';
|
|
2059
2091
|
}
|
|
2060
2092
|
|
|
2061
2093
|
export declare interface RadioOption {
|
|
@@ -2065,12 +2097,72 @@ export declare interface RadioOption {
|
|
|
2065
2097
|
disabled?: boolean;
|
|
2066
2098
|
}
|
|
2067
2099
|
|
|
2100
|
+
/** Alias for RichTextInput */
|
|
2101
|
+
export declare const RichTextEditor: typeof RichTextInput;
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* MedixDeck RichTextInput
|
|
2105
|
+
*
|
|
2106
|
+
* A fully-featured rich text editor powered by TipTap (ProseMirror).
|
|
2107
|
+
* Supports Bold, Italic, Underline, Headings, Lists, Blockquotes, Links,
|
|
2108
|
+
* Text Alignment, and more.
|
|
2109
|
+
*
|
|
2110
|
+
* @example
|
|
2111
|
+
* ```tsx
|
|
2112
|
+
* // Controlled
|
|
2113
|
+
* <RichTextInput value={html} onChange={setHtml} placeholder="Write a bio..." />
|
|
2114
|
+
*
|
|
2115
|
+
* // With character count
|
|
2116
|
+
* <RichTextInput showCharCount maxLength={500} colorScheme="purple" />
|
|
2117
|
+
* ```
|
|
2118
|
+
*/
|
|
2119
|
+
export declare function RichTextInput({ value, defaultValue, onChange, placeholder, label, helperText, errorMessage, isInvalid, disabled, colorScheme, minHeight, maxHeight, maxLength, showCharCount, toolbarOptions, className, }: RichTextInputProps): JSX_2.Element;
|
|
2120
|
+
|
|
2121
|
+
export declare namespace RichTextInput {
|
|
2122
|
+
var displayName: string;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
export declare interface RichTextInputProps {
|
|
2126
|
+
/** HTML content string (controlled) */
|
|
2127
|
+
value?: string;
|
|
2128
|
+
/** Default HTML content string (uncontrolled) */
|
|
2129
|
+
defaultValue?: string;
|
|
2130
|
+
/** Callback on every content change — receives HTML string */
|
|
2131
|
+
onChange?: (html: string) => void;
|
|
2132
|
+
/** Placeholder text when editor is empty */
|
|
2133
|
+
placeholder?: string;
|
|
2134
|
+
/** Label above the editor */
|
|
2135
|
+
label?: string;
|
|
2136
|
+
/** Helper text below the editor */
|
|
2137
|
+
helperText?: string;
|
|
2138
|
+
/** Error message displayed when invalid */
|
|
2139
|
+
errorMessage?: string;
|
|
2140
|
+
/** Show error/invalid state */
|
|
2141
|
+
isInvalid?: boolean;
|
|
2142
|
+
/** Disabled state (no editing) */
|
|
2143
|
+
disabled?: boolean;
|
|
2144
|
+
/** Brand color scheme */
|
|
2145
|
+
colorScheme?: 'blue' | 'purple';
|
|
2146
|
+
/** Min height of the editor body */
|
|
2147
|
+
minHeight?: string;
|
|
2148
|
+
/** Max height of the editor body — editor scrolls when content exceeds this */
|
|
2149
|
+
maxHeight?: string;
|
|
2150
|
+
/** Maximum character count allowed */
|
|
2151
|
+
maxLength?: number;
|
|
2152
|
+
/** Show character counter in footer */
|
|
2153
|
+
showCharCount?: boolean;
|
|
2154
|
+
/** Customize visible toolbar controls */
|
|
2155
|
+
toolbarOptions?: ToolbarOptions;
|
|
2156
|
+
/** Additional CSS class on the wrapper */
|
|
2157
|
+
className?: string;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2068
2160
|
export declare const SearchInput: default_2.ForwardRefExoticComponent<SearchInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
2069
2161
|
|
|
2070
2162
|
/**
|
|
2071
2163
|
* SearchInput — Quick search variant with built-in search icon
|
|
2072
2164
|
*/
|
|
2073
|
-
export declare interface SearchInputProps extends Omit<InputProps,
|
|
2165
|
+
export declare interface SearchInputProps extends Omit<InputProps, 'leftElement'> {
|
|
2074
2166
|
placeholder?: string;
|
|
2075
2167
|
}
|
|
2076
2168
|
|
|
@@ -2098,7 +2190,7 @@ export declare interface SectionHeaderProps extends BoxProps {
|
|
|
2098
2190
|
/** Description / subtitle */
|
|
2099
2191
|
description?: string;
|
|
2100
2192
|
/** Alignment */
|
|
2101
|
-
align?:
|
|
2193
|
+
align?: 'left' | 'center' | 'right';
|
|
2102
2194
|
/** Action slot (button) */
|
|
2103
2195
|
action?: default_2.ReactNode;
|
|
2104
2196
|
/** Eyebrow color */
|
|
@@ -2107,8 +2199,19 @@ export declare interface SectionHeaderProps extends BoxProps {
|
|
|
2107
2199
|
|
|
2108
2200
|
/**
|
|
2109
2201
|
* MedixDeck Select
|
|
2202
|
+
*
|
|
2203
|
+
* Supports both single selection and multi-selection with custom popover dropdown options.
|
|
2204
|
+
*
|
|
2205
|
+
* @example
|
|
2206
|
+
* ```tsx
|
|
2207
|
+
* // Single select
|
|
2208
|
+
* <Select options={[{ value: '1', label: 'Option 1' }]} value={val} onChange={setVal} />
|
|
2209
|
+
*
|
|
2210
|
+
* // Multi select with chips and search
|
|
2211
|
+
* <Select multiple value={selectedArray} onChange={setSelectedArray} options={options} />
|
|
2212
|
+
* ```
|
|
2110
2213
|
*/
|
|
2111
|
-
export declare
|
|
2214
|
+
export declare function Select(props: SelectProps): JSX_2.Element;
|
|
2112
2215
|
|
|
2113
2216
|
export declare interface SelectOption {
|
|
2114
2217
|
value: string;
|
|
@@ -2116,15 +2219,28 @@ export declare interface SelectOption {
|
|
|
2116
2219
|
disabled?: boolean;
|
|
2117
2220
|
}
|
|
2118
2221
|
|
|
2119
|
-
export declare interface SelectProps
|
|
2222
|
+
export declare interface SelectProps {
|
|
2120
2223
|
options?: SelectOption[];
|
|
2121
2224
|
placeholder?: string;
|
|
2122
2225
|
isInvalid?: boolean;
|
|
2123
2226
|
errorMessage?: string;
|
|
2124
|
-
size?:
|
|
2227
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2228
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
2229
|
+
colorScheme?: 'blue' | 'purple';
|
|
2125
2230
|
children?: default_2.ReactNode;
|
|
2126
2231
|
/** Optional icon to render on the left side of the select field */
|
|
2127
2232
|
icon?: default_2.ReactNode;
|
|
2233
|
+
value?: string | string[];
|
|
2234
|
+
defaultValue?: string | string[];
|
|
2235
|
+
onChange?: (value: any) => void;
|
|
2236
|
+
name?: string;
|
|
2237
|
+
id?: string;
|
|
2238
|
+
disabled?: boolean;
|
|
2239
|
+
multiple?: boolean;
|
|
2240
|
+
onBlur?: default_2.FocusEventHandler<HTMLDivElement | HTMLInputElement>;
|
|
2241
|
+
onFocus?: default_2.FocusEventHandler<HTMLDivElement | HTMLInputElement>;
|
|
2242
|
+
style?: default_2.CSSProperties;
|
|
2243
|
+
className?: string;
|
|
2128
2244
|
}
|
|
2129
2245
|
|
|
2130
2246
|
/**
|
|
@@ -2178,11 +2294,11 @@ export declare const shadowTokens: {
|
|
|
2178
2294
|
readonly xl: {
|
|
2179
2295
|
readonly value: "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)";
|
|
2180
2296
|
};
|
|
2181
|
-
readonly
|
|
2182
|
-
readonly value: "
|
|
2297
|
+
readonly 'card-dark': {
|
|
2298
|
+
readonly value: "none";
|
|
2183
2299
|
};
|
|
2184
|
-
readonly
|
|
2185
|
-
readonly value: "
|
|
2300
|
+
readonly 'card-light': {
|
|
2301
|
+
readonly value: "none";
|
|
2186
2302
|
};
|
|
2187
2303
|
readonly none: {
|
|
2188
2304
|
readonly value: "none";
|
|
@@ -2225,7 +2341,7 @@ export declare interface SkeletonTextProps extends BoxProps {
|
|
|
2225
2341
|
}
|
|
2226
2342
|
|
|
2227
2343
|
export declare interface SocialLink {
|
|
2228
|
-
platform:
|
|
2344
|
+
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'youtube' | 'threads' | 'whatsapp' | 'tiktok';
|
|
2229
2345
|
href: string;
|
|
2230
2346
|
}
|
|
2231
2347
|
|
|
@@ -2292,7 +2408,7 @@ export declare const spacingTokens: {
|
|
|
2292
2408
|
export declare function Spinner({ size, label, color, ...props }: SpinnerProps): JSX_2.Element;
|
|
2293
2409
|
|
|
2294
2410
|
export declare interface SpinnerProps {
|
|
2295
|
-
size?:
|
|
2411
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2296
2412
|
label?: string;
|
|
2297
2413
|
color?: string;
|
|
2298
2414
|
[key: string]: unknown;
|
|
@@ -2322,7 +2438,7 @@ export declare interface StatCardProps extends BoxProps {
|
|
|
2322
2438
|
/** Percentage change */
|
|
2323
2439
|
change?: number;
|
|
2324
2440
|
/** Trend direction — if not provided, inferred from change */
|
|
2325
|
-
trend?:
|
|
2441
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
2326
2442
|
/** Icon to display */
|
|
2327
2443
|
icon?: default_2.ReactNode;
|
|
2328
2444
|
/** Color accent */
|
|
@@ -2365,10 +2481,10 @@ export declare interface StepperProps extends BoxProps {
|
|
|
2365
2481
|
* e.g. currentStep={2} means step 2 is active).
|
|
2366
2482
|
*/
|
|
2367
2483
|
currentStep: number;
|
|
2368
|
-
variant?:
|
|
2369
|
-
orientation?:
|
|
2484
|
+
variant?: 'default' | 'compact';
|
|
2485
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2370
2486
|
/** Brand color used for active/completed states */
|
|
2371
|
-
colorScheme?:
|
|
2487
|
+
colorScheme?: 'blue' | 'purple';
|
|
2372
2488
|
}
|
|
2373
2489
|
|
|
2374
2490
|
/**
|
|
@@ -2385,7 +2501,7 @@ export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & d
|
|
|
2385
2501
|
export declare interface SwitchProps {
|
|
2386
2502
|
/** Brand color for the on state */
|
|
2387
2503
|
colorScheme?: ColorScheme_3;
|
|
2388
|
-
size?:
|
|
2504
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2389
2505
|
/** Controlled checked value */
|
|
2390
2506
|
checked?: boolean;
|
|
2391
2507
|
/** Default state for uncontrolled usage */
|
|
@@ -2425,13 +2541,13 @@ export declare interface TabItem {
|
|
|
2425
2541
|
*/
|
|
2426
2542
|
export declare function Tabs({ tabs, defaultActiveId, activeId: controlledId, onChange, variant, size, renderContent, ...props }: TabsProps): JSX_2.Element;
|
|
2427
2543
|
|
|
2428
|
-
export declare interface TabsProps extends Omit<BoxProps,
|
|
2544
|
+
export declare interface TabsProps extends Omit<BoxProps, 'onChange'> {
|
|
2429
2545
|
tabs: TabItem[];
|
|
2430
2546
|
defaultActiveId?: string;
|
|
2431
2547
|
activeId?: string;
|
|
2432
2548
|
onChange?: (id: string) => void;
|
|
2433
|
-
variant?:
|
|
2434
|
-
size?:
|
|
2549
|
+
variant?: 'line' | 'pill';
|
|
2550
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2435
2551
|
renderContent?: boolean;
|
|
2436
2552
|
}
|
|
2437
2553
|
|
|
@@ -2447,7 +2563,11 @@ export declare interface TabsProps extends Omit<BoxProps, "onChange"> {
|
|
|
2447
2563
|
*/
|
|
2448
2564
|
export declare const Tag: default_2.ForwardRefExoticComponent<TagProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2449
2565
|
|
|
2450
|
-
export declare type TagColorScheme =
|
|
2566
|
+
export declare type TagColorScheme = 'blue' | 'purple' | 'green' | 'gray' | 'red' | 'amber';
|
|
2567
|
+
|
|
2568
|
+
export declare const TagInput: typeof TagsInput;
|
|
2569
|
+
|
|
2570
|
+
export declare type TagInputProps = TagsInputProps;
|
|
2451
2571
|
|
|
2452
2572
|
export declare interface TagProps extends BoxProps {
|
|
2453
2573
|
variant?: TagVariant;
|
|
@@ -2457,7 +2577,66 @@ export declare interface TagProps extends BoxProps {
|
|
|
2457
2577
|
children: default_2.ReactNode;
|
|
2458
2578
|
}
|
|
2459
2579
|
|
|
2460
|
-
|
|
2580
|
+
/**
|
|
2581
|
+
* MedixDeck TagsInput / TagInput
|
|
2582
|
+
*
|
|
2583
|
+
* Interactive input component for tags, keywords, allergies, and multi-selection pills.
|
|
2584
|
+
* Fully aligned with MedixDeck brand design system, light/dark mode, and colorScheme options.
|
|
2585
|
+
*
|
|
2586
|
+
* @example
|
|
2587
|
+
* ```tsx
|
|
2588
|
+
* <TagsInput
|
|
2589
|
+
* label="Known Allergies"
|
|
2590
|
+
* value={allergies}
|
|
2591
|
+
* onChange={setAllergies}
|
|
2592
|
+
* placeholder="Type allergy and press Enter..."
|
|
2593
|
+
* colorScheme="blue"
|
|
2594
|
+
* />
|
|
2595
|
+
* ```
|
|
2596
|
+
*/
|
|
2597
|
+
export declare function TagsInput({ value, onChange, placeholder, label, helperText, errorMessage, isInvalid, colorScheme, size, isDisabled, isReadOnly, maxTags, allowDuplicates, addOnBlur, delimiter, id, name, style, className, }: TagsInputProps): JSX_2.Element;
|
|
2598
|
+
|
|
2599
|
+
export declare interface TagsInputProps {
|
|
2600
|
+
/** Array of tag strings */
|
|
2601
|
+
value: string[];
|
|
2602
|
+
/** Callback when tag list changes */
|
|
2603
|
+
onChange: (tags: string[]) => void;
|
|
2604
|
+
/** Input placeholder text */
|
|
2605
|
+
placeholder?: string;
|
|
2606
|
+
/** Field label */
|
|
2607
|
+
label?: string;
|
|
2608
|
+
/** Helper text displayed below input */
|
|
2609
|
+
helperText?: string;
|
|
2610
|
+
/** Error message displayed below input */
|
|
2611
|
+
errorMessage?: string;
|
|
2612
|
+
/** Whether the field is invalid */
|
|
2613
|
+
isInvalid?: boolean;
|
|
2614
|
+
/** Brand color theme ('blue' | 'purple') */
|
|
2615
|
+
colorScheme?: 'blue' | 'purple';
|
|
2616
|
+
/** Field size ('sm' | 'md' | 'lg') */
|
|
2617
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2618
|
+
/** Disabled state */
|
|
2619
|
+
isDisabled?: boolean;
|
|
2620
|
+
/** Read-only state */
|
|
2621
|
+
isReadOnly?: boolean;
|
|
2622
|
+
/** Maximum number of tags allowed */
|
|
2623
|
+
maxTags?: number;
|
|
2624
|
+
/** Allow duplicate tags (default: false) */
|
|
2625
|
+
allowDuplicates?: boolean;
|
|
2626
|
+
/** Add tag when input loses focus (default: false) */
|
|
2627
|
+
addOnBlur?: boolean;
|
|
2628
|
+
/** Custom delimiter character to trigger tag addition (e.g. ',') */
|
|
2629
|
+
delimiter?: string;
|
|
2630
|
+
/** HTML input id */
|
|
2631
|
+
id?: string;
|
|
2632
|
+
/** HTML input name */
|
|
2633
|
+
name?: string;
|
|
2634
|
+
/** Extra container styles */
|
|
2635
|
+
style?: default_2.CSSProperties;
|
|
2636
|
+
className?: string;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
export declare type TagVariant = 'solid' | 'subtle' | 'outline';
|
|
2461
2640
|
|
|
2462
2641
|
/**
|
|
2463
2642
|
* MedixDeck TestimonialCard
|
|
@@ -2487,6 +2666,8 @@ export { Text_2 as Text }
|
|
|
2487
2666
|
export declare const Textarea: default_2.ForwardRefExoticComponent<TextareaProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
2488
2667
|
|
|
2489
2668
|
export declare interface TextareaProps extends TextareaProps_2 {
|
|
2669
|
+
/** Brand color scheme ('blue' | 'purple') */
|
|
2670
|
+
colorScheme?: 'blue' | 'purple';
|
|
2490
2671
|
/** Error state */
|
|
2491
2672
|
isInvalid?: boolean;
|
|
2492
2673
|
/** Error message */
|
|
@@ -2581,36 +2762,73 @@ export declare const textStyleTokens: {
|
|
|
2581
2762
|
*/
|
|
2582
2763
|
export declare const ThemeColorPalette: default_2.ForwardRefExoticComponent<ThemeColorPaletteProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2583
2764
|
|
|
2584
|
-
export declare interface ThemeColorPaletteProps extends Omit<BoxProps,
|
|
2765
|
+
export declare interface ThemeColorPaletteProps extends Omit<BoxProps, 'children'> {
|
|
2585
2766
|
/** Show the semantic token groups with light and dark comparisons. */
|
|
2586
2767
|
showSemanticTokens?: boolean;
|
|
2587
2768
|
/** Show the raw brand, status, and neutral token scales. */
|
|
2588
2769
|
showPrimitiveTokens?: boolean;
|
|
2589
2770
|
}
|
|
2590
2771
|
|
|
2591
|
-
export declare type ThemeMode =
|
|
2772
|
+
export declare type ThemeMode = 'light' | 'dark';
|
|
2592
2773
|
|
|
2593
|
-
export declare type ThemeModeSetting = ThemeMode |
|
|
2774
|
+
export declare type ThemeModeSetting = ThemeMode | 'system';
|
|
2594
2775
|
|
|
2595
|
-
export declare const toast: {
|
|
2596
|
-
(
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
warning(title: string, options?: Partial<ToastOptions>): string;
|
|
2776
|
+
export declare const toast: ((options: ToastOptions) => string) & {
|
|
2777
|
+
success: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2778
|
+
error: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2779
|
+
info: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2780
|
+
warning: (title: string, options?: Partial<ToastOptions>) => string;
|
|
2601
2781
|
};
|
|
2602
2782
|
|
|
2603
|
-
|
|
2783
|
+
/**
|
|
2784
|
+
* MedixDeck Toaster
|
|
2785
|
+
*
|
|
2786
|
+
* Renders the toasts created by the `toaster` object using the MedixDeck Alert styling.
|
|
2787
|
+
* Place this component at the root of your application (e.g., inside MedixProvider).
|
|
2788
|
+
*
|
|
2789
|
+
* @example
|
|
2790
|
+
* ```tsx
|
|
2791
|
+
* import { Toaster, toaster } from "@medixdeck/ui";
|
|
2792
|
+
*
|
|
2793
|
+
* <Toaster />
|
|
2794
|
+
* <Button onClick={() => toaster.create({ title: "Success", type: "success" })}>Toast</Button>
|
|
2795
|
+
* ```
|
|
2796
|
+
*/
|
|
2797
|
+
export declare const Toaster: () => JSX_2.Element;
|
|
2604
2798
|
|
|
2605
|
-
export declare
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
type?: ToastType;
|
|
2799
|
+
export declare type ToastOptions = {
|
|
2800
|
+
title: string | default_2.ReactNode;
|
|
2801
|
+
description?: string | default_2.ReactNode;
|
|
2802
|
+
type?: AlertStatus;
|
|
2610
2803
|
duration?: number;
|
|
2611
|
-
}
|
|
2804
|
+
};
|
|
2612
2805
|
|
|
2613
|
-
export declare type ToastType =
|
|
2806
|
+
export declare type ToastType = AlertStatus;
|
|
2807
|
+
|
|
2808
|
+
export declare interface ToolbarOptions {
|
|
2809
|
+
/** Show Bold button (default: true) */
|
|
2810
|
+
bold?: boolean;
|
|
2811
|
+
/** Show Italic button (default: true) */
|
|
2812
|
+
italic?: boolean;
|
|
2813
|
+
/** Show Underline button (default: true) */
|
|
2814
|
+
underline?: boolean;
|
|
2815
|
+
/** Show Strikethrough button (default: true) */
|
|
2816
|
+
strikethrough?: boolean;
|
|
2817
|
+
/** Show Headings dropdown (default: true) */
|
|
2818
|
+
headings?: boolean;
|
|
2819
|
+
/** Show Bullet List button (default: true) */
|
|
2820
|
+
bulletList?: boolean;
|
|
2821
|
+
/** Show Ordered List button (default: true) */
|
|
2822
|
+
orderedList?: boolean;
|
|
2823
|
+
/** Show Blockquote button (default: true) */
|
|
2824
|
+
quote?: boolean;
|
|
2825
|
+
/** Show Link button (default: true) */
|
|
2826
|
+
link?: boolean;
|
|
2827
|
+
/** Show Text Align controls (default: true) */
|
|
2828
|
+
textAlign?: boolean;
|
|
2829
|
+
/** Show Clear Formatting button (default: true) */
|
|
2830
|
+
clearFormat?: boolean;
|
|
2831
|
+
}
|
|
2614
2832
|
|
|
2615
2833
|
/**
|
|
2616
2834
|
* MedixDeck Tooltip
|
|
@@ -2630,9 +2848,9 @@ export declare type ToastType = "info" | "success" | "warning" | "error";
|
|
|
2630
2848
|
*/
|
|
2631
2849
|
export declare function Tooltip({ label, children, placement, ...props }: TooltipProps): JSX_2.Element;
|
|
2632
2850
|
|
|
2633
|
-
declare type TooltipPlacement =
|
|
2851
|
+
declare type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
2634
2852
|
|
|
2635
|
-
export declare interface TooltipProps extends Omit<TooltipRootProps,
|
|
2853
|
+
export declare interface TooltipProps extends Omit<TooltipRootProps, 'content'> {
|
|
2636
2854
|
/** Text shown in the tooltip bubble */
|
|
2637
2855
|
label: string;
|
|
2638
2856
|
/** Element that triggers the tooltip */
|
|
@@ -2672,7 +2890,7 @@ export declare const typographyTokens: {
|
|
|
2672
2890
|
};
|
|
2673
2891
|
};
|
|
2674
2892
|
readonly fontSizes: {
|
|
2675
|
-
readonly
|
|
2893
|
+
readonly '2xs': {
|
|
2676
2894
|
readonly value: "clamp(0.5625rem, 0.5rem + 0.2vw, 0.625rem)";
|
|
2677
2895
|
};
|
|
2678
2896
|
readonly xs: {
|
|
@@ -2690,19 +2908,19 @@ export declare const typographyTokens: {
|
|
|
2690
2908
|
readonly xl: {
|
|
2691
2909
|
readonly value: "clamp(1rem, 0.9375rem + 0.5vw, 1.1875rem)";
|
|
2692
2910
|
};
|
|
2693
|
-
readonly
|
|
2911
|
+
readonly '2xl': {
|
|
2694
2912
|
readonly value: "clamp(1.125rem, 1rem + 0.6vw, 1.4375rem)";
|
|
2695
2913
|
};
|
|
2696
|
-
readonly
|
|
2914
|
+
readonly '3xl': {
|
|
2697
2915
|
readonly value: "clamp(1.25rem, 1.125rem + 0.75vw, 1.625rem)";
|
|
2698
2916
|
};
|
|
2699
|
-
readonly
|
|
2917
|
+
readonly '4xl': {
|
|
2700
2918
|
readonly value: "clamp(1.5rem, 1.25rem + 1vw, 2rem)";
|
|
2701
2919
|
};
|
|
2702
|
-
readonly
|
|
2920
|
+
readonly '5xl': {
|
|
2703
2921
|
readonly value: "clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem)";
|
|
2704
2922
|
};
|
|
2705
|
-
readonly
|
|
2923
|
+
readonly '6xl': {
|
|
2706
2924
|
readonly value: "clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem)";
|
|
2707
2925
|
};
|
|
2708
2926
|
};
|
|
@@ -2898,7 +3116,7 @@ export declare interface VitalBadgeProps extends BoxProps {
|
|
|
2898
3116
|
status?: VitalStatus;
|
|
2899
3117
|
}
|
|
2900
3118
|
|
|
2901
|
-
export declare type VitalStatus =
|
|
3119
|
+
export declare type VitalStatus = 'normal' | 'warning' | 'critical';
|
|
2902
3120
|
|
|
2903
3121
|
export { VStack }
|
|
2904
3122
|
|