@medixdeck/ui 0.1.15 → 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/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 = "blue" | "purple";
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, "onChange"> {
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 = "info" | "success" | "warning" | "error";
81
+ export declare type AlertStatus = 'info' | 'success' | 'warning' | 'error';
78
82
 
79
- export declare type AlertVariant = "subtle" | "solid" | "left-accent";
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 = "upcoming" | "completed" | "cancelled";
105
+ export declare type AppointmentStatus = 'upcoming' | 'completed' | 'cancelled';
102
106
 
103
- export declare type AppointmentType = "video" | "in-person";
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, "size"> {
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 = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
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 = "sm" | "md" | "lg";
164
+ export declare type BadgeSize = 'sm' | 'md' | 'lg';
161
165
 
162
- export declare type BadgeStatus = "success" | "warning" | "error" | "info" | "neutral";
166
+ export declare type BadgeStatus = 'success' | 'warning' | 'error' | 'info' | 'neutral';
163
167
 
164
- export declare type BadgeVariant = "solid" | "subtle" | "outline" | "surface";
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 = "blue" | "purple";
190
+ export declare type BlogCardColorScheme = 'blue' | 'purple';
187
191
 
188
- export declare interface BlogCardProps extends Omit<BoxProps, "onClick"> {
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?: "solid" | "outline" | "ghost" | "link" | "secondary";
276
+ variant?: 'solid' | 'outline' | 'ghost' | 'link' | 'secondary';
273
277
  /** Size */
274
- size?: "xs" | "sm" | "md" | "lg";
278
+ size?: 'xs' | 'sm' | 'md' | 'lg';
275
279
  /** Color scheme — maps to MedixDeck brand colors */
276
- colorScheme?: "blue" | "purple" | "green" | "red" | "amber" | "black" | "gray" | string;
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?: "button" | "submit" | "reset";
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
- "aria-label"?: string;
296
- "aria-expanded"?: boolean | "true" | "false";
297
- "aria-controls"?: string;
298
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree";
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?: "button" | "a";
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, "onChange"> {
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 = "blue" | "purple";
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?: "left" | "center" | "right";
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?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
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, "style" | "buttonStyle" | "declineButtonStyle" | "contentStyle"> {
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 = "blue" | "purple";
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, "children"> {
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: "bronze" | "silver" | "gold" | "platinum" | "diamond";
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?: "asc" | "desc";
984
- onSort?: (key: string, direction: "asc" | "desc") => void;
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?: "horizontal" | "vertical";
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?: "standard" | "compact" | "featured";
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 = "left" | "right" | "top" | "bottom";
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 = "xs" | "sm" | "md" | "lg" | "xl" | "full";
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 premium digital sanctuary."
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 = "blue" | "purple";
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, "children"> {
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
- "aria-label": string;
1383
+ 'aria-label': string;
1380
1384
  /** Visual variant */
1381
- variant?: "solid" | "outline" | "ghost";
1385
+ variant?: 'solid' | 'outline' | 'ghost';
1382
1386
  /** Size */
1383
- size?: "xs" | "sm" | "md" | "lg";
1387
+ size?: 'xs' | 'sm' | 'md' | 'lg';
1384
1388
  /** Brand color scheme */
1385
- colorScheme?: "blue" | "purple" | "green" | "red" | "gray";
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?: "button" | "submit" | "reset";
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, "size"> {
1422
+ export declare interface InputProps extends Omit<InputProps_2, 'size'> {
1419
1423
  /** Input size */
1420
- size?: "sm" | "md" | "lg";
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 = "full" | "icon";
1489
+ export declare type LogoType = 'full' | 'icon';
1486
1490
 
1487
- export declare type LogoVariant = "blue" | "purple" | "black" | "white";
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?: "light" | "dark" | "system";
1528
+ defaultColorMode?: 'light' | 'dark' | 'system';
1525
1529
  /**
1526
1530
  * Force a specific color mode (disables user toggle)
1527
1531
  */
1528
- forcedColorMode?: "light" | "dark";
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 = "xs" | "sm" | "md" | "lg" | "xl" | "full";
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 = "blue" | "purple";
1639
+ export declare type NavbarColorScheme = 'blue' | 'purple';
1636
1640
 
1637
- export declare interface NavbarProps extends Omit<BoxProps, "children"> {
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?: "left" | "center" | "right";
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?: "solid" | "transparent" | "blur";
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, "onChange"> {
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?: "blue" | "purple" | "green" | "amber" | "red";
1915
+ colorScheme?: 'blue' | 'purple' | 'green' | 'amber' | 'red';
1910
1916
  /** Height of the bar */
1911
- size?: "xs" | "sm" | "md" | "lg";
1917
+ size?: 'xs' | 'sm' | 'md' | 'lg';
1912
1918
  /** Show label */
1913
1919
  showLabel?: boolean;
1914
1920
  /** Animate on mount */
@@ -1936,10 +1942,11 @@ export declare interface ProgressProps extends BoxProps {
1936
1942
  * appName="MedixDeck"
1937
1943
  * title="Install MedixDeck"
1938
1944
  * description="Get faster access and offline support."
1945
+ * delaySeconds={5}
1939
1946
  * />
1940
1947
  * ```
1941
1948
  */
1942
- export declare function PWAInstallPrompt({ title, description, installLabel, dismissLabel, cooldownDays, onInstall, onDismiss, appName, icon, position, forceVisible, forceIOS, }: PWAInstallPromptProps): JSX_2.Element;
1949
+ export declare function PWAInstallPrompt({ title, description, installLabel, dismissLabel, cooldownDays, onInstall, onDismiss, appName, icon, position, delaySeconds, forceVisible, forceIOS, }: PWAInstallPromptProps): JSX_2.Element;
1943
1950
 
1944
1951
  export declare namespace PWAInstallPrompt {
1945
1952
  var displayName: string;
@@ -1974,7 +1981,12 @@ export declare interface PWAInstallPromptProps {
1974
1981
  * Position of the banner on screen.
1975
1982
  * @default "bottom"
1976
1983
  */
1977
- position?: "top" | "bottom";
1984
+ position?: 'top' | 'bottom';
1985
+ /**
1986
+ * Number of seconds to delay the prompt after the conditions are met.
1987
+ * @default 0
1988
+ */
1989
+ delaySeconds?: number;
1978
1990
  /**
1979
1991
  * For documentation/storybook purposes. Forces the banner to be visible.
1980
1992
  */
@@ -2010,10 +2022,10 @@ export declare const radiiTokens: {
2010
2022
  readonly xl: {
2011
2023
  readonly value: "16px";
2012
2024
  };
2013
- readonly "2xl": {
2025
+ readonly '2xl': {
2014
2026
  readonly value: "20px";
2015
2027
  };
2016
- readonly "3xl": {
2028
+ readonly '3xl': {
2017
2029
  readonly value: "24px";
2018
2030
  };
2019
2031
  readonly full: {
@@ -2048,8 +2060,8 @@ export declare interface RadioGroupProps {
2048
2060
  onChange?: (value: string) => void;
2049
2061
  options: RadioOption[];
2050
2062
  /** Brand color for the selected dot */
2051
- colorScheme?: "blue" | "purple";
2052
- direction?: "row" | "column";
2063
+ colorScheme?: 'blue' | 'purple';
2064
+ direction?: 'row' | 'column';
2053
2065
  }
2054
2066
 
2055
2067
  export declare interface RadioOption {
@@ -2064,7 +2076,7 @@ export declare const SearchInput: default_2.ForwardRefExoticComponent<SearchInpu
2064
2076
  /**
2065
2077
  * SearchInput — Quick search variant with built-in search icon
2066
2078
  */
2067
- export declare interface SearchInputProps extends Omit<InputProps, "leftElement"> {
2079
+ export declare interface SearchInputProps extends Omit<InputProps, 'leftElement'> {
2068
2080
  placeholder?: string;
2069
2081
  }
2070
2082
 
@@ -2092,7 +2104,7 @@ export declare interface SectionHeaderProps extends BoxProps {
2092
2104
  /** Description / subtitle */
2093
2105
  description?: string;
2094
2106
  /** Alignment */
2095
- align?: "left" | "center" | "right";
2107
+ align?: 'left' | 'center' | 'right';
2096
2108
  /** Action slot (button) */
2097
2109
  action?: default_2.ReactNode;
2098
2110
  /** Eyebrow color */
@@ -2110,15 +2122,24 @@ export declare interface SelectOption {
2110
2122
  disabled?: boolean;
2111
2123
  }
2112
2124
 
2113
- export declare interface SelectProps extends Omit<NativeSelectRootProps, "size"> {
2125
+ export declare interface SelectProps extends Omit<NativeSelectRootProps, 'size' | 'value' | 'defaultValue' | 'onChange' | 'name' | 'id' | 'disabled' | 'onBlur' | 'onFocus' | 'multiple'> {
2114
2126
  options?: SelectOption[];
2115
2127
  placeholder?: string;
2116
2128
  isInvalid?: boolean;
2117
2129
  errorMessage?: string;
2118
- size?: "sm" | "md" | "lg";
2130
+ size?: 'sm' | 'md' | 'lg';
2119
2131
  children?: default_2.ReactNode;
2120
2132
  /** Optional icon to render on the left side of the select field */
2121
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>;
2122
2143
  }
2123
2144
 
2124
2145
  /**
@@ -2172,10 +2193,10 @@ export declare const shadowTokens: {
2172
2193
  readonly xl: {
2173
2194
  readonly value: "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)";
2174
2195
  };
2175
- readonly "card-dark": {
2196
+ readonly 'card-dark': {
2176
2197
  readonly value: "0 4px 24px 0 rgba(0, 0, 0, 0.40)";
2177
2198
  };
2178
- readonly "card-light": {
2199
+ readonly 'card-light': {
2179
2200
  readonly value: "0 2px 12px 0 rgba(17, 25, 38, 0.08)";
2180
2201
  };
2181
2202
  readonly none: {
@@ -2219,7 +2240,7 @@ export declare interface SkeletonTextProps extends BoxProps {
2219
2240
  }
2220
2241
 
2221
2242
  export declare interface SocialLink {
2222
- platform: "facebook" | "instagram" | "linkedin" | "twitter" | "youtube" | "threads";
2243
+ platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'youtube' | 'threads' | 'whatsapp';
2223
2244
  href: string;
2224
2245
  }
2225
2246
 
@@ -2286,7 +2307,7 @@ export declare const spacingTokens: {
2286
2307
  export declare function Spinner({ size, label, color, ...props }: SpinnerProps): JSX_2.Element;
2287
2308
 
2288
2309
  export declare interface SpinnerProps {
2289
- size?: "xs" | "sm" | "md" | "lg" | "xl";
2310
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2290
2311
  label?: string;
2291
2312
  color?: string;
2292
2313
  [key: string]: unknown;
@@ -2316,7 +2337,7 @@ export declare interface StatCardProps extends BoxProps {
2316
2337
  /** Percentage change */
2317
2338
  change?: number;
2318
2339
  /** Trend direction — if not provided, inferred from change */
2319
- trend?: "up" | "down" | "neutral";
2340
+ trend?: 'up' | 'down' | 'neutral';
2320
2341
  /** Icon to display */
2321
2342
  icon?: default_2.ReactNode;
2322
2343
  /** Color accent */
@@ -2359,10 +2380,10 @@ export declare interface StepperProps extends BoxProps {
2359
2380
  * e.g. currentStep={2} means step 2 is active).
2360
2381
  */
2361
2382
  currentStep: number;
2362
- variant?: "default" | "compact";
2363
- orientation?: "horizontal" | "vertical";
2383
+ variant?: 'default' | 'compact';
2384
+ orientation?: 'horizontal' | 'vertical';
2364
2385
  /** Brand color used for active/completed states */
2365
- colorScheme?: "blue" | "purple";
2386
+ colorScheme?: 'blue' | 'purple';
2366
2387
  }
2367
2388
 
2368
2389
  /**
@@ -2379,7 +2400,7 @@ export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & d
2379
2400
  export declare interface SwitchProps {
2380
2401
  /** Brand color for the on state */
2381
2402
  colorScheme?: ColorScheme_3;
2382
- size?: "sm" | "md" | "lg";
2403
+ size?: 'sm' | 'md' | 'lg';
2383
2404
  /** Controlled checked value */
2384
2405
  checked?: boolean;
2385
2406
  /** Default state for uncontrolled usage */
@@ -2419,13 +2440,13 @@ export declare interface TabItem {
2419
2440
  */
2420
2441
  export declare function Tabs({ tabs, defaultActiveId, activeId: controlledId, onChange, variant, size, renderContent, ...props }: TabsProps): JSX_2.Element;
2421
2442
 
2422
- export declare interface TabsProps extends Omit<BoxProps, "onChange"> {
2443
+ export declare interface TabsProps extends Omit<BoxProps, 'onChange'> {
2423
2444
  tabs: TabItem[];
2424
2445
  defaultActiveId?: string;
2425
2446
  activeId?: string;
2426
2447
  onChange?: (id: string) => void;
2427
- variant?: "line" | "pill";
2428
- size?: "sm" | "md" | "lg";
2448
+ variant?: 'line' | 'pill';
2449
+ size?: 'sm' | 'md' | 'lg';
2429
2450
  renderContent?: boolean;
2430
2451
  }
2431
2452
 
@@ -2441,7 +2462,7 @@ export declare interface TabsProps extends Omit<BoxProps, "onChange"> {
2441
2462
  */
2442
2463
  export declare const Tag: default_2.ForwardRefExoticComponent<TagProps & default_2.RefAttributes<HTMLDivElement>>;
2443
2464
 
2444
- export declare type TagColorScheme = "blue" | "purple" | "green" | "gray" | "red" | "amber";
2465
+ export declare type TagColorScheme = 'blue' | 'purple' | 'green' | 'gray' | 'red' | 'amber';
2445
2466
 
2446
2467
  export declare interface TagProps extends BoxProps {
2447
2468
  variant?: TagVariant;
@@ -2451,7 +2472,7 @@ export declare interface TagProps extends BoxProps {
2451
2472
  children: default_2.ReactNode;
2452
2473
  }
2453
2474
 
2454
- export declare type TagVariant = "solid" | "subtle" | "outline";
2475
+ export declare type TagVariant = 'solid' | 'subtle' | 'outline';
2455
2476
 
2456
2477
  /**
2457
2478
  * MedixDeck TestimonialCard
@@ -2575,36 +2596,48 @@ export declare const textStyleTokens: {
2575
2596
  */
2576
2597
  export declare const ThemeColorPalette: default_2.ForwardRefExoticComponent<ThemeColorPaletteProps & default_2.RefAttributes<HTMLDivElement>>;
2577
2598
 
2578
- export declare interface ThemeColorPaletteProps extends Omit<BoxProps, "children"> {
2599
+ export declare interface ThemeColorPaletteProps extends Omit<BoxProps, 'children'> {
2579
2600
  /** Show the semantic token groups with light and dark comparisons. */
2580
2601
  showSemanticTokens?: boolean;
2581
2602
  /** Show the raw brand, status, and neutral token scales. */
2582
2603
  showPrimitiveTokens?: boolean;
2583
2604
  }
2584
2605
 
2585
- export declare type ThemeMode = "light" | "dark";
2606
+ export declare type ThemeMode = 'light' | 'dark';
2586
2607
 
2587
- export declare type ThemeModeSetting = ThemeMode | "system";
2608
+ export declare type ThemeModeSetting = ThemeMode | 'system';
2588
2609
 
2589
- export declare const toast: {
2590
- (options: Omit<ToastOptions, "id">): string;
2591
- success(title: string, options?: Partial<ToastOptions>): string;
2592
- error(title: string, options?: Partial<ToastOptions>): string;
2593
- info(title: string, options?: Partial<ToastOptions>): string;
2594
- 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;
2595
2615
  };
2596
2616
 
2597
- export declare function Toaster(): JSX_2.Element;
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;
2598
2632
 
2599
- export declare interface ToastOptions {
2600
- id?: string;
2601
- title: string;
2602
- description?: string;
2603
- type?: ToastType;
2633
+ export declare type ToastOptions = {
2634
+ title: string | default_2.ReactNode;
2635
+ description?: string | default_2.ReactNode;
2636
+ type?: AlertStatus;
2604
2637
  duration?: number;
2605
- }
2638
+ };
2606
2639
 
2607
- export declare type ToastType = "info" | "success" | "warning" | "error";
2640
+ export declare type ToastType = AlertStatus;
2608
2641
 
2609
2642
  /**
2610
2643
  * MedixDeck Tooltip
@@ -2624,9 +2657,9 @@ export declare type ToastType = "info" | "success" | "warning" | "error";
2624
2657
  */
2625
2658
  export declare function Tooltip({ label, children, placement, ...props }: TooltipProps): JSX_2.Element;
2626
2659
 
2627
- declare type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
2660
+ declare type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
2628
2661
 
2629
- export declare interface TooltipProps extends Omit<TooltipRootProps, "content"> {
2662
+ export declare interface TooltipProps extends Omit<TooltipRootProps, 'content'> {
2630
2663
  /** Text shown in the tooltip bubble */
2631
2664
  label: string;
2632
2665
  /** Element that triggers the tooltip */
@@ -2666,7 +2699,7 @@ export declare const typographyTokens: {
2666
2699
  };
2667
2700
  };
2668
2701
  readonly fontSizes: {
2669
- readonly "2xs": {
2702
+ readonly '2xs': {
2670
2703
  readonly value: "clamp(0.5625rem, 0.5rem + 0.2vw, 0.625rem)";
2671
2704
  };
2672
2705
  readonly xs: {
@@ -2684,19 +2717,19 @@ export declare const typographyTokens: {
2684
2717
  readonly xl: {
2685
2718
  readonly value: "clamp(1rem, 0.9375rem + 0.5vw, 1.1875rem)";
2686
2719
  };
2687
- readonly "2xl": {
2720
+ readonly '2xl': {
2688
2721
  readonly value: "clamp(1.125rem, 1rem + 0.6vw, 1.4375rem)";
2689
2722
  };
2690
- readonly "3xl": {
2723
+ readonly '3xl': {
2691
2724
  readonly value: "clamp(1.25rem, 1.125rem + 0.75vw, 1.625rem)";
2692
2725
  };
2693
- readonly "4xl": {
2726
+ readonly '4xl': {
2694
2727
  readonly value: "clamp(1.5rem, 1.25rem + 1vw, 2rem)";
2695
2728
  };
2696
- readonly "5xl": {
2729
+ readonly '5xl': {
2697
2730
  readonly value: "clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem)";
2698
2731
  };
2699
- readonly "6xl": {
2732
+ readonly '6xl': {
2700
2733
  readonly value: "clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem)";
2701
2734
  };
2702
2735
  };
@@ -2892,7 +2925,7 @@ export declare interface VitalBadgeProps extends BoxProps {
2892
2925
  status?: VitalStatus;
2893
2926
  }
2894
2927
 
2895
- export declare type VitalStatus = "normal" | "warning" | "critical";
2928
+ export declare type VitalStatus = 'normal' | 'warning' | 'critical';
2896
2929
 
2897
2930
  export { VStack }
2898
2931