@medixdeck/ui 0.1.19 → 0.1.22

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
@@ -81,6 +81,29 @@ export declare type AlertStatus = 'info' | 'success' | 'warning' | 'error';
81
81
 
82
82
  export declare type AlertVariant = 'subtle' | 'solid' | 'left-accent';
83
83
 
84
+ /**
85
+ * MedixDeck AllergyBadge
86
+ *
87
+ * High-visibility badge for patient allergies with severity classification.
88
+ * Life-threatening allergies display with a bold red border for immediate recognition.
89
+ *
90
+ * @example
91
+ * ```tsx
92
+ * <AllergyBadge allergen="Penicillin" severity="severe" />
93
+ * <AllergyBadge allergen="Latex" severity="mild" />
94
+ * ```
95
+ */
96
+ export declare function AllergyBadge({ allergen, severity, ...props }: AllergyBadgeProps): JSX_2.Element;
97
+
98
+ export declare interface AllergyBadgeProps extends Omit<BoxProps, 'onChange'> {
99
+ /** Allergen name e.g. "Penicillin", "Latex" */
100
+ allergen: string;
101
+ /** Clinical reaction severity */
102
+ severity?: AllergySeverity;
103
+ }
104
+
105
+ export declare type AllergySeverity = 'mild' | 'moderate' | 'severe' | 'life-threatening';
106
+
84
107
  /**
85
108
  * MedixDeck AppointmentCard
86
109
  *
@@ -219,6 +242,26 @@ export declare interface BlogCardProps extends Omit<BoxProps, 'onClick'> {
219
242
  colorScheme?: BlogCardColorScheme;
220
243
  }
221
244
 
245
+ export declare type BloodType = 'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-';
246
+
247
+ /**
248
+ * MedixDeck BloodTypeBadge
249
+ *
250
+ * Displays a patient's ABO blood group with Rh factor in a high-visibility
251
+ * red badge, consistent with clinical standards.
252
+ *
253
+ * @example
254
+ * ```tsx
255
+ * <BloodTypeBadge bloodType="O+" />
256
+ * ```
257
+ */
258
+ export declare function BloodTypeBadge({ bloodType, ...props }: BloodTypeBadgeProps): JSX_2.Element;
259
+
260
+ export declare interface BloodTypeBadgeProps extends Omit<BoxProps, 'onChange'> {
261
+ /** ABO blood group with Rh factor */
262
+ bloodType: BloodType;
263
+ }
264
+
222
265
  export declare interface BottomLink {
223
266
  label: string;
224
267
  href: string;
@@ -715,6 +758,47 @@ export declare interface DashboardDropdownItem {
715
758
  isDanger?: boolean;
716
759
  }
717
760
 
761
+ export declare type DashboardEnvironment = 'auto' | 'production' | 'live' | 'sandbox' | 'test' | 'development' | 'staging' | 'preview';
762
+
763
+ export declare interface DashboardEnvironmentBannerConfig {
764
+ /**
765
+ * Override environment classification for the banner.
766
+ * @default "auto"
767
+ */
768
+ environment?: DashboardEnvironment;
769
+ /**
770
+ * Title badge label (e.g. "SANDBOX MODE", "TEST ENVIRONMENT").
771
+ * Automatically inferred if omitted.
772
+ */
773
+ badgeLabel?: string;
774
+ /**
775
+ * Custom descriptive message.
776
+ * Defaults to a standard non-production notice.
777
+ */
778
+ message?: string;
779
+ /**
780
+ * Visual status theme variant.
781
+ * @default "warning"
782
+ */
783
+ status?: DashboardEnvironmentBannerStatus;
784
+ /**
785
+ * Action link or button rendered on the right side of the banner.
786
+ * @example <a href="https://app.medixdeck.com">Switch to Live →</a>
787
+ */
788
+ action?: default_2.ReactNode;
789
+ /**
790
+ * Whether the banner includes a dismiss (✕) button.
791
+ * @default false
792
+ */
793
+ dismissible?: boolean;
794
+ /**
795
+ * Called when the dismiss button is clicked.
796
+ */
797
+ onDismiss?: () => void;
798
+ }
799
+
800
+ export declare type DashboardEnvironmentBannerStatus = 'warning' | 'info' | 'error' | 'neutral';
801
+
718
802
  /**
719
803
  * MedixDeck DashboardLayout
720
804
  *
@@ -722,6 +806,11 @@ export declare interface DashboardDropdownItem {
722
806
  * scrollable main content area. Fully responsive — the sidebar is hidden on
723
807
  * mobile and revealed via a hamburger toggle.
724
808
  *
809
+ * ### Collapsible Sidebar
810
+ * On desktop (`md+`), the sidebar can be collapsed into a compact icon rail (68px)
811
+ * or expanded (220px). Supports both controlled (`isCollapsed`, `onCollapseChange`)
812
+ * and uncontrolled (`defaultCollapsed`, `collapsible`) operation.
813
+ *
725
814
  * ### Router integration
726
815
  * Pass `renderLink` to use your router's `<Link>` component without bringing
727
816
  * router dependencies into the library (mirrors the `Navbar` pattern).
@@ -766,6 +855,8 @@ export declare interface DashboardDropdownItem {
766
855
  * <DashboardLayout
767
856
  * navGroups={groups}
768
857
  * user={{ name: "Daniel", email: "daniel@medixdeck.com" }}
858
+ * collapsible={true}
859
+ * defaultCollapsed={false}
769
860
  * onLogout={() => auth.signOut()}
770
861
  * renderLink={(item, children) => <Link to={item.href}>{children}</Link>}
771
862
  * >
@@ -775,7 +866,7 @@ export declare interface DashboardDropdownItem {
775
866
  * }
776
867
  * ```
777
868
  */
778
- export declare function DashboardLayout({ children, logo, navGroups, user, greeting, greetingSubtext, onLogout, renderLink, dropdownItems, topBarSlot, sidebarWidth, colorScheme, mobileNavItems, scoreCard, ...rest }: DashboardLayoutProps): JSX_2.Element;
869
+ export declare function DashboardLayout({ children, logo, navGroups, user, greeting, greetingSubtext, onLogout, renderLink, dropdownItems, topBarSlot, sidebarWidth, collapsedSidebarWidth, collapsible, defaultCollapsed, isCollapsed: controlledIsCollapsed, onCollapseChange, collapsedLogo, collapseTogglePlacement, colorScheme, mobileNavItems, scoreCard, environment, showEnvironmentBanner, environmentBanner, environmentBannerSlot, ...rest }: DashboardLayoutProps): JSX_2.Element;
779
870
 
780
871
  export declare namespace DashboardLayout {
781
872
  var displayName: string;
@@ -848,10 +939,48 @@ export declare interface DashboardLayoutProps extends Omit<BoxProps, 'children'>
848
939
  */
849
940
  topBarSlot?: default_2.ReactNode;
850
941
  /**
851
- * Width of the sidebar in pixels.
942
+ * Width of the sidebar in pixels when expanded on desktop.
852
943
  * @default 220
853
944
  */
854
945
  sidebarWidth?: number;
946
+ /**
947
+ * Width of the sidebar rail in pixels when collapsed on desktop.
948
+ * @default 68
949
+ */
950
+ collapsedSidebarWidth?: number;
951
+ /**
952
+ * Whether the desktop sidebar can be collapsed into a compact icon rail.
953
+ * Set to `false` to disable the collapsible behavior.
954
+ * @default true
955
+ */
956
+ collapsible?: boolean;
957
+ /**
958
+ * Initial collapsed state for uncontrolled usage.
959
+ * @default false
960
+ */
961
+ defaultCollapsed?: boolean;
962
+ /**
963
+ * Controlled collapsed state.
964
+ */
965
+ isCollapsed?: boolean;
966
+ /**
967
+ * Callback fired when the sidebar collapse state changes.
968
+ */
969
+ onCollapseChange?: (collapsed: boolean) => void;
970
+ /**
971
+ * Custom logo displayed in the sidebar header when collapsed.
972
+ * Defaults to `<Logo type="icon" variant={colorScheme} height={26} />`.
973
+ */
974
+ collapsedLogo?: default_2.ReactNode;
975
+ /**
976
+ * Placement of the sidebar collapse/expand toggle buttons.
977
+ * - `'sidebar-header'`: in the top header of the sidebar (next to logo when expanded, below logo when collapsed).
978
+ * - `'topbar'`: on the left of the sticky topbar.
979
+ * - `'both'`: visible in both sidebar header and topbar.
980
+ * - `'none'`: hides built-in toggle buttons (for external control).
981
+ * @default "sidebar-header"
982
+ */
983
+ collapseTogglePlacement?: 'sidebar-header' | 'topbar' | 'both' | 'none';
855
984
  /**
856
985
  * Brand accent applied to active nav items, logo, badge backgrounds, and the
857
986
  * theme toggle active state.
@@ -894,6 +1023,28 @@ export declare interface DashboardLayoutProps extends Omit<BoxProps, 'children'>
894
1023
  * ```
895
1024
  */
896
1025
  scoreCard?: DashboardScoreCardData;
1026
+ /**
1027
+ * Environment setting for automatic banner detection.
1028
+ * When 'auto' (default), automatically detects local development, test, staging, and sandbox environments.
1029
+ * Set to 'production' or 'live' to suppress the banner.
1030
+ * @default "auto"
1031
+ */
1032
+ environment?: DashboardEnvironment;
1033
+ /**
1034
+ * Explicitly force or suppress the environment banner.
1035
+ * - `false`: Always hide the banner.
1036
+ * - `true`: Always show the banner.
1037
+ * - `undefined`: Automatically determined by `environment`.
1038
+ */
1039
+ showEnvironmentBanner?: boolean;
1040
+ /**
1041
+ * Detailed configuration for the environment banner.
1042
+ */
1043
+ environmentBanner?: DashboardEnvironmentBannerConfig;
1044
+ /**
1045
+ * Custom slot to completely override the environment banner UI while preserving layout flow.
1046
+ */
1047
+ environmentBannerSlot?: default_2.ReactNode;
897
1048
  }
898
1049
 
899
1050
  export declare interface DashboardMobileNavItem {
@@ -982,7 +1133,7 @@ export declare interface DashboardUser {
982
1133
  * />
983
1134
  * ```
984
1135
  */
985
- 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;
1136
+ 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, stickyFirstColumn, }: DataTableProps<T>): JSX_2.Element;
986
1137
 
987
1138
  export declare interface DataTableProps<T = Record<string, unknown>> {
988
1139
  columns: Column<T>[];
@@ -1016,6 +1167,12 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
1016
1167
  /** Extra styles for outer container */
1017
1168
  style?: default_2.CSSProperties;
1018
1169
  className?: string;
1170
+ /**
1171
+ * When true, the first column is pinned (sticky) to the left during
1172
+ * horizontal scrolling so patient names / IDs stay visible.
1173
+ * @default false
1174
+ */
1175
+ stickyFirstColumn?: boolean;
1019
1176
  }
1020
1177
 
1021
1178
  /**
@@ -1310,7 +1467,7 @@ export declare interface FooterProps extends Omit<BoxProps, 'children'> {
1310
1467
  sections?: FooterSection[];
1311
1468
  /** Social media links */
1312
1469
  socialLinks?: SocialLink[];
1313
- /** Copyright text. Defaults to "© {year} MedixDeck Health Solution Ltd. All Rights Reserved." */
1470
+ /** Copyright text. Defaults to "© {year} MedixDeck Health Solutions Ltd. All Rights Reserved." */
1314
1471
  copyright?: string;
1315
1472
  /** Links at the bottom right corner */
1316
1473
  bottomLinks?: BottomLink[];
@@ -1398,6 +1555,28 @@ export { HStack }
1398
1555
  */
1399
1556
  export declare function htmlToMarkdown(html: string): string;
1400
1557
 
1558
+ /**
1559
+ * MedixDeck ICD10Badge
1560
+ *
1561
+ * Displays a standardized ICD-10 diagnosis code chip with optional description.
1562
+ *
1563
+ * @example
1564
+ * ```tsx
1565
+ * <ICD10Badge code="J45.9" description="Unspecified asthma" category="chronic" />
1566
+ * ```
1567
+ */
1568
+ export declare function ICD10Badge({ code, description, category, ...props }: ICD10BadgeProps): JSX_2.Element;
1569
+
1570
+ export declare interface ICD10BadgeProps extends Omit<BoxProps, 'onChange'> {
1571
+ /** ICD-10 code e.g. "J45.9" */
1572
+ code: string;
1573
+ /** Human-readable description e.g. "Unspecified asthma, uncomplicated" */
1574
+ description?: string;
1575
+ /** Clinical category for color coding */
1576
+ category?: 'primary' | 'secondary' | 'chronic' | 'acute';
1577
+ colorScheme?: 'blue' | 'purple';
1578
+ }
1579
+
1401
1580
  export { Icon }
1402
1581
 
1403
1582
  /**
@@ -1533,6 +1712,47 @@ export declare type LogoVariant = 'blue' | 'purple' | 'black' | 'white';
1533
1712
  */
1534
1713
  export declare function markdownToHtml(markdown: string): string;
1535
1714
 
1715
+ /**
1716
+ * MedixDeck MedicalRecordBadge
1717
+ *
1718
+ * Composite component that renders a patient's key medical identifiers:
1719
+ * ICD-10 diagnoses, blood type, and allergy alerts in a single compact strip.
1720
+ *
1721
+ * @example
1722
+ * ```tsx
1723
+ * <MedicalRecordBadge
1724
+ * bloodType="O+"
1725
+ * diagnoses={[
1726
+ * { code: "E11.9", description: "Type 2 Diabetes", category: "chronic" },
1727
+ * { code: "I10", description: "Essential Hypertension", category: "chronic" },
1728
+ * ]}
1729
+ * allergies={[
1730
+ * { allergen: "Penicillin", severity: "severe" },
1731
+ * { allergen: "Sulfa drugs", severity: "moderate" },
1732
+ * ]}
1733
+ * />
1734
+ * ```
1735
+ */
1736
+ export declare function MedicalRecordBadge({ diagnoses, bloodType, allergies, direction, ...props }: MedicalRecordBadgeProps): JSX_2.Element;
1737
+
1738
+ export declare interface MedicalRecordBadgeProps extends Omit<BoxProps, 'onChange'> {
1739
+ /** ICD-10 diagnoses */
1740
+ diagnoses?: Array<{
1741
+ code: string;
1742
+ description?: string;
1743
+ category?: ICD10BadgeProps['category'];
1744
+ }>;
1745
+ /** Blood type */
1746
+ bloodType?: BloodType;
1747
+ /** Known allergies */
1748
+ allergies?: Array<{
1749
+ allergen: string;
1750
+ severity?: AllergySeverity;
1751
+ }>;
1752
+ /** Layout direction */
1753
+ direction?: 'row' | 'column';
1754
+ }
1755
+
1536
1756
  export declare const medixConfig: SystemConfig;
1537
1757
 
1538
1758
  /**
@@ -1579,6 +1799,8 @@ export declare interface MedixProviderProps {
1579
1799
  * MedixDeck Modal
1580
1800
  *
1581
1801
  * Dialog overlay for focused interactions.
1802
+ * On mobile viewports it automatically renders as a swipeable bottom sheet
1803
+ * (set `mobileVariant="centered"` to opt out of this behaviour).
1582
1804
  *
1583
1805
  * @example
1584
1806
  * ```tsx
@@ -1592,7 +1814,9 @@ export declare interface MedixProviderProps {
1592
1814
  * </Modal>
1593
1815
  * ```
1594
1816
  */
1595
- export declare function Modal({ isOpen, onClose, title, description, size, closeOnOverlayClick, closeOnEscape, footer, children, }: ModalProps): JSX_2.Element;
1817
+ export declare function Modal({ isOpen, onClose, title, description, size, closeOnOverlayClick, closeOnEscape, footer, children, mobileVariant, }: ModalProps): JSX_2.Element;
1818
+
1819
+ export declare type ModalMobileVariant = 'centered' | 'bottom-sheet';
1596
1820
 
1597
1821
  export declare interface ModalProps {
1598
1822
  isOpen: boolean;
@@ -1607,6 +1831,12 @@ export declare interface ModalProps {
1607
1831
  /** Footer action buttons */
1608
1832
  footer?: default_2.ReactNode;
1609
1833
  children?: default_2.ReactNode;
1834
+ /**
1835
+ * On mobile viewports (< 768px), transforms the modal into a swipeable
1836
+ * bottom sheet that slides up from the bottom edge.
1837
+ * @default "bottom-sheet"
1838
+ */
1839
+ mobileVariant?: ModalMobileVariant;
1610
1840
  }
1611
1841
 
1612
1842
  export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
@@ -1614,9 +1844,10 @@ export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
1614
1844
  /**
1615
1845
  * MedixDeck Navbar
1616
1846
  *
1617
- * Responsive navigation bar with smooth Framer Motion animations:
1618
- * - Mobile menu slides + fades in/out
1619
- * - Nav links stagger-fade on open
1847
+ * Responsive navigation bar with multi-level dropdowns and smooth Framer Motion animations:
1848
+ * - Desktop hover/click dropdown panels with rich descriptions, icons, and badges
1849
+ * - Mobile menu accordion slide-down with nested expandable submenus
1850
+ * - Nav links stagger-fade on mobile open
1620
1851
  * - CTA buttons slide up after links
1621
1852
  * - Hamburger ↔ Close icon crossfades
1622
1853
  *
@@ -1631,51 +1862,24 @@ export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
1631
1862
  *
1632
1863
  * ## Examples
1633
1864
  *
1634
- * ### Href navigation (Next.js / plain links)
1635
- * ```tsx
1636
- * <Navbar ctaLabel="Talk to a Doctor" ctaHref="/consult" isSticky />
1637
- * ```
1638
- *
1639
- * ### Click-handler (SPA / modal trigger)
1640
- * ```tsx
1641
- * <Navbar ctaLabel="Talk to a Doctor" onCtaClick={() => router.push("/consult")} isSticky />
1642
- * ```
1643
- *
1644
- * ### Different destinations for label vs icon button
1865
+ * ### With Dropdown Links
1645
1866
  * ```tsx
1646
1867
  * <Navbar
1868
+ * navItems={[
1869
+ * { label: "Home", href: "/" },
1870
+ * {
1871
+ * label: "Services",
1872
+ * children: [
1873
+ * { label: "Doctor Consultations", href: "/services/doctors", description: "Talk to top specialists online" },
1874
+ * { label: "Homecare Visits", href: "/services/homecare", description: "Clinical nursing at your doorstep", badge: "Popular" },
1875
+ * { label: "Medical Outreach", href: "/services/outreach", description: "Community healthcare programs" },
1876
+ * ]
1877
+ * },
1878
+ * { label: "About Us", href: "/about" },
1879
+ * ]}
1647
1880
  * ctaLabel="Talk to a Doctor"
1648
1881
  * ctaHref="/consult"
1649
- * ctaIconHref="https://app.medixdeck.com"
1650
- * onCtaIconClick={() => analytics.track("app_opened")}
1651
- * />
1652
- * ```
1653
- *
1654
- * ### With Sign In secondary CTA
1655
- * ```tsx
1656
- * <Navbar
1657
- * ctaLabel="Talk to a Doctor" ctaHref="/consult"
1658
- * secondaryCtaLabel="Sign In" secondaryCtaHref="/login"
1659
- * />
1660
- * ```
1661
- *
1662
- * ### Custom CTA slot
1663
- * ```tsx
1664
- * <Navbar
1665
- * ctaSlot={
1666
- * <Box display="flex" gap="2">
1667
- * <Button variant="ghost" colorScheme="blue" onClick={() => router.push("/login")}>Sign In</Button>
1668
- * <Button variant="solid" colorScheme="purple" onClick={() => router.push("/signup")}>Get Started</Button>
1669
- * </Box>
1670
- * }
1671
- * />
1672
- * ```
1673
- *
1674
- * ### React Router / Next.js link integration
1675
- * ```tsx
1676
- * <Navbar
1677
- * renderLink={(item, children) => <Link href={item.href}>{children}</Link>}
1678
- * navItems={[...]}
1882
+ * isSticky
1679
1883
  * />
1680
1884
  * ```
1681
1885
  */
@@ -1686,7 +1890,7 @@ export declare type NavbarColorScheme = 'blue' | 'purple';
1686
1890
  export declare interface NavbarProps extends Omit<BoxProps, 'children'> {
1687
1891
  /** Logo element. Defaults to `<Logo />` when omitted. */
1688
1892
  logo?: default_2.ReactNode;
1689
- /** Navigation items to display. */
1893
+ /** Navigation items to display. Supports nested dropdowns via `children`. */
1690
1894
  navItems?: NavItem[];
1691
1895
  /**
1692
1896
  * Alignment of the navigation items on desktop.
@@ -1699,9 +1903,9 @@ export declare interface NavbarProps extends Omit<BoxProps, 'children'> {
1699
1903
  * @example
1700
1904
  * ```tsx
1701
1905
  * // Next.js
1702
- * renderLink={(item, children) => <Link href={item.href}>{children}</Link>}
1906
+ * renderLink={(item, children) => <Link href={item.href ?? '#'}>{children}</Link>}
1703
1907
  * // React Router
1704
- * renderLink={(item, children) => <RouterLink to={item.href}>{children}</RouterLink>}
1908
+ * renderLink={(item, children) => <RouterLink to={item.href ?? '#'}>{children}</RouterLink>}
1705
1909
  * ```
1706
1910
  */
1707
1911
  renderLink?: (item: NavItem, children: default_2.ReactNode) => default_2.ReactNode;
@@ -1769,10 +1973,41 @@ export declare interface NavbarProps extends Omit<BoxProps, 'children'> {
1769
1973
  }
1770
1974
 
1771
1975
  export declare interface NavItem {
1976
+ /** The display label for the navigation item */
1772
1977
  label: string;
1773
- href: string;
1978
+ /**
1979
+ * Destination URL. Optional when item is purely a dropdown trigger category.
1980
+ * @default "#"
1981
+ */
1982
+ href?: string;
1983
+ /** Marks the item as active for current route styling */
1774
1984
  isActive?: boolean;
1985
+ /**
1986
+ * Child items rendered inside a dropdown menu (Desktop) or accordion (Mobile).
1987
+ */
1775
1988
  children?: NavItem[];
1989
+ /**
1990
+ * Optional short description or subtitle rendered beneath the label in rich dropdown menus.
1991
+ */
1992
+ description?: string;
1993
+ /**
1994
+ * Optional leading icon (React element or SVG).
1995
+ */
1996
+ icon?: default_2.ReactNode;
1997
+ /**
1998
+ * Optional badge / tag text or element (e.g. "New", "Beta", 12).
1999
+ */
2000
+ badge?: string | number | default_2.ReactNode;
2001
+ /**
2002
+ * If true, opens in a new tab with rel="noopener noreferrer" and displays an external arrow indicator.
2003
+ */
2004
+ isExternal?: boolean;
2005
+ /** Link target attribute */
2006
+ target?: string;
2007
+ /** Link rel attribute */
2008
+ rel?: string;
2009
+ /** Optional custom click handler */
2010
+ onClick?: () => void;
1776
2011
  }
1777
2012
 
1778
2013
  export declare interface NewsletterProps {
@@ -1890,6 +2125,54 @@ export declare interface PaginationProps extends Omit<BoxProps, 'onChange'> {
1890
2125
  compact?: boolean;
1891
2126
  }
1892
2127
 
2128
+ /**
2129
+ * MedixDeck PatientTimeline
2130
+ *
2131
+ * Vertical activity timeline for patient medical history.
2132
+ * Supports consultation, lab, prescription, vitals, notes, admission, and discharge events.
2133
+ *
2134
+ * @example
2135
+ * ```tsx
2136
+ * <PatientTimeline
2137
+ * colorScheme="blue"
2138
+ * events={[
2139
+ * {
2140
+ * id: "1",
2141
+ * type: "consultation",
2142
+ * title: "Video Consultation",
2143
+ * description: "Follow-up on hypertension management.",
2144
+ * date: "Aug 16, 2026 · 10:30 AM",
2145
+ * provider: "Dr. Amaka Okonkwo",
2146
+ * badgeLabel: "Completed",
2147
+ * badgeStatus: "success",
2148
+ * },
2149
+ * {
2150
+ * id: "2",
2151
+ * type: "lab",
2152
+ * title: "Blood Panel Results",
2153
+ * date: "Aug 14, 2026",
2154
+ * badgeLabel: "Abnormal",
2155
+ * badgeStatus: "warning",
2156
+ * },
2157
+ * ]}
2158
+ * />
2159
+ * ```
2160
+ */
2161
+ export declare function PatientTimeline({ events, compact, isLoading, loadingCount, colorScheme, ...props }: PatientTimelineProps): JSX_2.Element;
2162
+
2163
+ export declare interface PatientTimelineProps extends Omit<BoxProps, 'onChange'> {
2164
+ /** Array of timeline events in chronological order (newest first) */
2165
+ events: TimelineEvent[];
2166
+ /** Whether to show compact view (hide descriptions) */
2167
+ compact?: boolean;
2168
+ /** Loading state */
2169
+ isLoading?: boolean;
2170
+ /** Number of skeleton rows to show when loading */
2171
+ loadingCount?: number;
2172
+ /** Brand color scheme for active connector line */
2173
+ colorScheme?: 'blue' | 'purple';
2174
+ }
2175
+
1893
2176
  /**
1894
2177
  * MedixDeck PhoneInput
1895
2178
  *
@@ -1939,6 +2222,70 @@ export declare const PinInput: typeof OTPInput;
1939
2222
 
1940
2223
  export declare type PinInputProps = OTPInputProps;
1941
2224
 
2225
+ /**
2226
+ * MedixDeck PrescriptionCard
2227
+ *
2228
+ * Displays a digital prescription with drug list, dosage instructions,
2229
+ * prescriber info, refill count, and optional download action.
2230
+ *
2231
+ * @example
2232
+ * ```tsx
2233
+ * <PrescriptionCard
2234
+ * rxId="RX-20260816-0042"
2235
+ * doctorName="Dr. Amaka Okonkwo"
2236
+ * doctorSpecialty="General Practitioner"
2237
+ * issuedDate="Aug 16, 2026"
2238
+ * expiryDate="Sep 16, 2026"
2239
+ * status="active"
2240
+ * refillsRemaining={2}
2241
+ * drugs={[
2242
+ * { name: "Amoxicillin", dosage: "500mg", frequency: "3x daily", duration: "7 days", instructions: "Take with food" },
2243
+ * { name: "Ibuprofen", dosage: "400mg", frequency: "As needed", duration: "7 days" },
2244
+ * ]}
2245
+ * onDownload={() => window.print()}
2246
+ * />
2247
+ * ```
2248
+ */
2249
+ export declare function PrescriptionCard({ rxId, doctorName, doctorSpecialty, issuedDate, expiryDate, drugs, refillsRemaining, status, colorScheme, onDownload, ...props }: PrescriptionCardProps): JSX_2.Element;
2250
+
2251
+ export declare interface PrescriptionCardProps extends Omit<BoxProps, 'onChange'> {
2252
+ /** Prescription / Rx ID */
2253
+ rxId?: string;
2254
+ /** Prescribing doctor */
2255
+ doctorName: string;
2256
+ /** Doctor specialty */
2257
+ doctorSpecialty?: string;
2258
+ /** Issue date (display string) */
2259
+ issuedDate: string;
2260
+ /** Expiry date (display string) */
2261
+ expiryDate?: string;
2262
+ /** List of prescribed drugs */
2263
+ drugs: PrescriptionDrug[];
2264
+ /** Number of refills remaining */
2265
+ refillsRemaining?: number;
2266
+ /** Status of the prescription */
2267
+ status?: 'active' | 'expired' | 'dispensed';
2268
+ /** Whether prescription has been dispensed / fulfilled */
2269
+ isDispensed?: boolean;
2270
+ /** Brand color scheme */
2271
+ colorScheme?: 'blue' | 'purple';
2272
+ /** Download / print action */
2273
+ onDownload?: () => void;
2274
+ }
2275
+
2276
+ export declare interface PrescriptionDrug {
2277
+ /** Drug name e.g. "Amoxicillin" */
2278
+ name: string;
2279
+ /** Dosage e.g. "500mg" */
2280
+ dosage: string;
2281
+ /** Frequency e.g. "Twice daily" */
2282
+ frequency: string;
2283
+ /** Duration e.g. "7 days" */
2284
+ duration?: string;
2285
+ /** Additional instructions e.g. "Take with food" */
2286
+ instructions?: string;
2287
+ }
2288
+
1942
2289
  /**
1943
2290
  * MedixDeck Progress / ProgressBar
1944
2291
  *
@@ -2669,6 +3016,64 @@ export declare interface TagsInputProps {
2669
3016
 
2670
3017
  export declare type TagVariant = 'solid' | 'subtle' | 'outline';
2671
3018
 
3019
+ /**
3020
+ * MedixDeck TelehealthCallBar
3021
+ *
3022
+ * Floating control bar for active telehealth video consultations.
3023
+ * Displays participant info, call duration, and media control actions.
3024
+ * Integrates MedixDeck semantic tokens for seamless light and dark mode support.
3025
+ *
3026
+ * @example
3027
+ * ```tsx
3028
+ * <TelehealthCallBar
3029
+ * variant="adaptive"
3030
+ * participantName="Dr. Amaka Okonkwo"
3031
+ * participantRole="General Practitioner"
3032
+ * duration="04:32"
3033
+ * isMuted={muted}
3034
+ * isCameraOff={cameraOff}
3035
+ * onToggleMute={() => setMuted(m => !m)}
3036
+ * onToggleCamera={() => setCameraOff(c => !c)}
3037
+ * onEndCall={handleEndCall}
3038
+ * />
3039
+ * ```
3040
+ */
3041
+ export declare function TelehealthCallBar({ participantName, participantRole, participantAvatar, duration, isMuted, isCameraOff, isSharingScreen, onToggleMute, onToggleCamera, onEndCall, onShareScreen, position, variant, ...props }: TelehealthCallBarProps): JSX_2.Element;
3042
+
3043
+ export declare interface TelehealthCallBarProps extends Omit<BoxProps, 'onChange'> {
3044
+ /** Name of the other participant (doctor or patient) */
3045
+ participantName: string;
3046
+ /** Participant's specialty or role label */
3047
+ participantRole?: string;
3048
+ /** Participant's avatar URL */
3049
+ participantAvatar?: string;
3050
+ /** Live call duration display string e.g. "04:32" */
3051
+ duration?: string;
3052
+ /** Whether local mic is muted */
3053
+ isMuted?: boolean;
3054
+ /** Whether local camera is off */
3055
+ isCameraOff?: boolean;
3056
+ /** Called when mute/unmute pressed */
3057
+ onToggleMute?: () => void;
3058
+ /** Called when camera on/off pressed */
3059
+ onToggleCamera?: () => void;
3060
+ /** Called when end call pressed */
3061
+ onEndCall?: () => void;
3062
+ /** Called when share screen pressed */
3063
+ onShareScreen?: () => void;
3064
+ /** Whether screen sharing is active */
3065
+ isSharingScreen?: boolean;
3066
+ /** Position of the bar */
3067
+ position?: 'bottom' | 'top';
3068
+ /**
3069
+ * Color scheme variant:
3070
+ * - `'adaptive'` (default): Seamlessly adapts to MedixDeck light and dark mode tokens.
3071
+ * - `'dark'`: Enforces classic dark glassmorphic styling for floating call overlays over video feeds.
3072
+ * @default "adaptive"
3073
+ */
3074
+ variant?: 'adaptive' | 'dark';
3075
+ }
3076
+
2672
3077
  /**
2673
3078
  * MedixDeck TestimonialCard
2674
3079
  */
@@ -2804,6 +3209,31 @@ export declare type ThemeMode = 'light' | 'dark';
2804
3209
 
2805
3210
  export declare type ThemeModeSetting = ThemeMode | 'system';
2806
3211
 
3212
+ export declare interface TimelineEvent {
3213
+ /** Unique ID for the event */
3214
+ id: string;
3215
+ /** Event type — controls icon and color */
3216
+ type: TimelineEventType;
3217
+ /** Primary event title */
3218
+ title: string;
3219
+ /** Secondary description or summary */
3220
+ description?: string;
3221
+ /** Date/time display string */
3222
+ date: string;
3223
+ /** Optional provider / actor name */
3224
+ provider?: string;
3225
+ /** Optional badge label e.g. "Completed", "Pending" */
3226
+ badgeLabel?: string;
3227
+ /** Badge status for color */
3228
+ badgeStatus?: 'success' | 'warning' | 'error' | 'info' | 'neutral';
3229
+ /** Custom icon override (React node) */
3230
+ icon?: default_2.ReactNode;
3231
+ /** Click handler for event drill-down */
3232
+ onClick?: () => void;
3233
+ }
3234
+
3235
+ export declare type TimelineEventType = 'consultation' | 'lab' | 'prescription' | 'vitals' | 'note' | 'admission' | 'discharge' | 'custom';
3236
+
2807
3237
  export declare const toast: ((options: ToastOptions) => string) & {
2808
3238
  success: (title: string, options?: Partial<ToastOptions>) => string;
2809
3239
  error: (title: string, options?: Partial<ToastOptions>) => string;
@@ -2865,6 +3295,9 @@ export declare interface ToolbarOptions {
2865
3295
  * MedixDeck Tooltip
2866
3296
  *
2867
3297
  * Hover label for icons, truncated text, and contextual hints.
3298
+ * On touch / mobile devices, tapping the trigger toggles the tooltip open
3299
+ * and an outside tap dismisses it — ensuring the content is always accessible
3300
+ * without relying on hover events.
2868
3301
  *
2869
3302
  * @example
2870
3303
  * ```tsx
@@ -3070,52 +3503,26 @@ export declare interface UseColorSchemeResult {
3070
3503
 
3071
3504
  /**
3072
3505
  * Convenience hook for checking whether the active MedixDeck theme is dark.
3073
- *
3074
- * Returns `false` until the component has mounted and `next-themes` has had a
3075
- * chance to resolve the active theme. This avoids reporting light mode during
3076
- * SSR or initial hydration when the resolved client theme is actually dark.
3077
3506
  */
3078
3507
  export declare function useIsDarkMode(): boolean;
3079
3508
 
3080
3509
  /**
3081
3510
  * Accesses the current MedixDeck theme mode and helpers for updating it.
3082
- *
3083
- * In SSR environments (e.g. Next.js), `next-themes` resolves the theme after
3084
- * hydration. Gate any theme-dependent UI on `mounted` to avoid hydration
3085
- * mismatches and flicker. In Next.js App Router, this hook must be called
3086
- * inside a `"use client"` component.
3087
- *
3088
- * @example
3089
- * ```tsx
3090
- * // Avoid hydration mismatch: render theme-dependent UI only after mount.
3091
- * const { mounted, themeMode, toggleThemeMode } = useThemeMode();
3092
- *
3093
- * if (!mounted) return null;
3094
- *
3095
- * return (
3096
- * <button onClick={toggleThemeMode}>
3097
- * Switch to {themeMode === "dark" ? "light" : "dark"} mode
3098
- * </button>
3099
- * );
3100
- * ```
3101
3511
  */
3102
3512
  export declare function useThemeMode(): UseThemeModeResult;
3103
3513
 
3104
3514
  export declare interface UseThemeModeResult {
3105
3515
  /**
3106
3516
  * Indicates whether the hook has mounted on the client.
3107
- * Primarily useful for avoiding SSR hydration mismatches with `next-themes`.
3517
+ * Useful for avoiding SSR hydration mismatches with `next-themes`.
3108
3518
  */
3109
3519
  mounted: boolean;
3110
3520
  /**
3111
- * The currently resolved theme mode.
3112
- * Falls back to `"light"` before client-side theme values are available.
3521
+ * The currently resolved theme mode ('light' or 'dark').
3113
3522
  */
3114
3523
  themeMode: ThemeMode;
3115
3524
  /**
3116
- * The user's current theme preference (`"light"`, `"dark"`, or `"system"`).
3117
- * Defaults to `"system"` before client-side hydration or when the provider
3118
- * returns an unrecognised value (e.g. outside a `MedixProvider`).
3525
+ * The user's current theme preference ('light', 'dark', or 'system').
3119
3526
  */
3120
3527
  themeSetting: ThemeModeSetting;
3121
3528
  /**
@@ -3123,7 +3530,7 @@ export declare interface UseThemeModeResult {
3123
3530
  */
3124
3531
  setThemeMode: (mode: ThemeModeSetting) => void;
3125
3532
  /**
3126
- * Toggles between `"light"` and `"dark"` modes.
3533
+ * Toggles between 'light' and 'dark' modes.
3127
3534
  */
3128
3535
  toggleThemeMode: () => void;
3129
3536
  }