@medixdeck/ui 0.1.5 → 0.1.6

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
@@ -212,6 +212,12 @@ export declare interface BlogCardProps extends Omit<BoxProps, "onClick"> {
212
212
  onClick?: () => void;
213
213
  }
214
214
 
215
+ export declare interface BottomLink {
216
+ label: string;
217
+ href: string;
218
+ isExternal?: boolean;
219
+ }
220
+
215
221
  export { Box }
216
222
 
217
223
  /**
@@ -1064,6 +1070,59 @@ export declare interface FileUploadProps {
1064
1070
 
1065
1071
  export { Flex }
1066
1072
 
1073
+ /**
1074
+ * MedixDeck Footer
1075
+ *
1076
+ * Re-usable footer component with brand area, navigation links, newsletter form,
1077
+ * and social icons. Adapts perfectly to light and dark modes.
1078
+ *
1079
+ * @example
1080
+ * ```tsx
1081
+ * <Footer
1082
+ * description="Nigeria's premium digital sanctuary."
1083
+ * socialLinks={[{ platform: 'twitter', href: '...' }]}
1084
+ * />
1085
+ * ```
1086
+ */
1087
+ export declare function Footer({ description, logo, sections, socialLinks, copyright, bottomLinks, newsletter, renderLink, ...props }: FooterProps): JSX_2.Element;
1088
+
1089
+ export declare namespace Footer {
1090
+ var displayName: string;
1091
+ }
1092
+
1093
+ export declare interface FooterLink {
1094
+ label: string;
1095
+ href: string;
1096
+ isExternal?: boolean;
1097
+ }
1098
+
1099
+ export declare interface FooterProps extends Omit<BoxProps, "children"> {
1100
+ /** Company description shown under the logo */
1101
+ description?: string;
1102
+ /** Custom logo element. Defaults to MedixDeck Logo. */
1103
+ logo?: default_2.ReactNode;
1104
+ /** Navigation sections (COMPANY, RESOURCES, etc.) */
1105
+ sections?: FooterSection[];
1106
+ /** Social media links */
1107
+ socialLinks?: SocialLink[];
1108
+ /** Copyright text. Defaults to "© {year} MedixDeck. MDCN & FMoH Certified Platform." */
1109
+ copyright?: string;
1110
+ /** Links at the bottom right corner */
1111
+ bottomLinks?: BottomLink[];
1112
+ /** Newsletter configuration */
1113
+ newsletter?: NewsletterProps;
1114
+ /** Custom link renderer for integration with routers */
1115
+ renderLink?: (link: {
1116
+ href: string;
1117
+ isExternal?: boolean;
1118
+ }, children: default_2.ReactNode) => default_2.ReactNode;
1119
+ }
1120
+
1121
+ export declare interface FooterSection {
1122
+ title: string;
1123
+ links: FooterLink[];
1124
+ }
1125
+
1067
1126
  /**
1068
1127
  * MedixDeck FormControl
1069
1128
  *
@@ -1471,6 +1530,15 @@ export declare interface NavItem {
1471
1530
  children?: NavItem[];
1472
1531
  }
1473
1532
 
1533
+ export declare interface NewsletterProps {
1534
+ title?: string;
1535
+ description?: string;
1536
+ placeholder?: string;
1537
+ onSubmit?: (email: string) => void;
1538
+ hide?: boolean;
1539
+ buttonIcon?: default_2.ReactNode;
1540
+ }
1541
+
1474
1542
  /**
1475
1543
  * MedixDeck OTPInput / PinInput
1476
1544
  *
@@ -1798,6 +1866,11 @@ export declare interface SkeletonTextProps extends BoxProps {
1798
1866
  lastLineWidth?: string;
1799
1867
  }
1800
1868
 
1869
+ export declare interface SocialLink {
1870
+ platform: "facebook" | "instagram" | "linkedin" | "twitter" | "youtube" | "threads";
1871
+ href: string;
1872
+ }
1873
+
1801
1874
  /**
1802
1875
  * MedixDeck Spacing & Radius Tokens
1803
1876
  * From style guide: Spacing scale 4, 8, 12, 16, 24, 32, 48, 64