@medixdeck/ui 0.1.5 → 0.1.7
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.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +83 -2
- package/dist/index.js +2755 -2405
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
/**
|
|
@@ -255,7 +261,7 @@ export declare interface BreadcrumbProps extends BoxProps {
|
|
|
255
261
|
* <Button variant="ghost" colorScheme="blue" size="sm">Cancel</Button>
|
|
256
262
|
* ```
|
|
257
263
|
*/
|
|
258
|
-
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<
|
|
264
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLElement>>;
|
|
259
265
|
|
|
260
266
|
export declare interface ButtonProps {
|
|
261
267
|
/** Visual variant */
|
|
@@ -275,7 +281,7 @@ export declare interface ButtonProps {
|
|
|
275
281
|
/** HTML type attribute */
|
|
276
282
|
type?: "button" | "submit" | "reset";
|
|
277
283
|
/** Click handler */
|
|
278
|
-
onClick?: default_2.MouseEventHandler<
|
|
284
|
+
onClick?: default_2.MouseEventHandler<HTMLElement>;
|
|
279
285
|
/** Any additional className */
|
|
280
286
|
className?: string;
|
|
281
287
|
/** Arbitrary additional style */
|
|
@@ -286,6 +292,14 @@ export declare interface ButtonProps {
|
|
|
286
292
|
"aria-expanded"?: boolean | "true" | "false";
|
|
287
293
|
"aria-controls"?: string;
|
|
288
294
|
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree";
|
|
295
|
+
/** HTML element to render as — supports "button" (default) or "a" (anchor link) */
|
|
296
|
+
as?: "button" | "a";
|
|
297
|
+
/** Link destination if rendered as an anchor */
|
|
298
|
+
href?: string;
|
|
299
|
+
/** Link target if rendered as an anchor */
|
|
300
|
+
target?: string;
|
|
301
|
+
/** Link rel if rendered as an anchor */
|
|
302
|
+
rel?: string;
|
|
289
303
|
}
|
|
290
304
|
|
|
291
305
|
/**
|
|
@@ -1064,6 +1078,59 @@ export declare interface FileUploadProps {
|
|
|
1064
1078
|
|
|
1065
1079
|
export { Flex }
|
|
1066
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* MedixDeck Footer
|
|
1083
|
+
*
|
|
1084
|
+
* Re-usable footer component with brand area, navigation links, newsletter form,
|
|
1085
|
+
* and social icons. Adapts perfectly to light and dark modes.
|
|
1086
|
+
*
|
|
1087
|
+
* @example
|
|
1088
|
+
* ```tsx
|
|
1089
|
+
* <Footer
|
|
1090
|
+
* description="Nigeria's premium digital sanctuary."
|
|
1091
|
+
* socialLinks={[{ platform: 'twitter', href: '...' }]}
|
|
1092
|
+
* />
|
|
1093
|
+
* ```
|
|
1094
|
+
*/
|
|
1095
|
+
export declare function Footer({ description, logo, sections, socialLinks, copyright, bottomLinks, newsletter, renderLink, ...props }: FooterProps): JSX_2.Element;
|
|
1096
|
+
|
|
1097
|
+
export declare namespace Footer {
|
|
1098
|
+
var displayName: string;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export declare interface FooterLink {
|
|
1102
|
+
label: string;
|
|
1103
|
+
href: string;
|
|
1104
|
+
isExternal?: boolean;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export declare interface FooterProps extends Omit<BoxProps, "children"> {
|
|
1108
|
+
/** Company description shown under the logo */
|
|
1109
|
+
description?: string;
|
|
1110
|
+
/** Custom logo element. Defaults to MedixDeck Logo. */
|
|
1111
|
+
logo?: default_2.ReactNode;
|
|
1112
|
+
/** Navigation sections (COMPANY, RESOURCES, etc.) */
|
|
1113
|
+
sections?: FooterSection[];
|
|
1114
|
+
/** Social media links */
|
|
1115
|
+
socialLinks?: SocialLink[];
|
|
1116
|
+
/** Copyright text. Defaults to "© {year} MedixDeck. MDCN & FMoH Certified Platform." */
|
|
1117
|
+
copyright?: string;
|
|
1118
|
+
/** Links at the bottom right corner */
|
|
1119
|
+
bottomLinks?: BottomLink[];
|
|
1120
|
+
/** Newsletter configuration */
|
|
1121
|
+
newsletter?: NewsletterProps;
|
|
1122
|
+
/** Custom link renderer for integration with routers */
|
|
1123
|
+
renderLink?: (link: {
|
|
1124
|
+
href: string;
|
|
1125
|
+
isExternal?: boolean;
|
|
1126
|
+
}, children: default_2.ReactNode) => default_2.ReactNode;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export declare interface FooterSection {
|
|
1130
|
+
title: string;
|
|
1131
|
+
links: FooterLink[];
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1067
1134
|
/**
|
|
1068
1135
|
* MedixDeck FormControl
|
|
1069
1136
|
*
|
|
@@ -1471,6 +1538,15 @@ export declare interface NavItem {
|
|
|
1471
1538
|
children?: NavItem[];
|
|
1472
1539
|
}
|
|
1473
1540
|
|
|
1541
|
+
export declare interface NewsletterProps {
|
|
1542
|
+
title?: string;
|
|
1543
|
+
description?: string;
|
|
1544
|
+
placeholder?: string;
|
|
1545
|
+
onSubmit?: (email: string) => void;
|
|
1546
|
+
hide?: boolean;
|
|
1547
|
+
buttonIcon?: default_2.ReactNode;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1474
1550
|
/**
|
|
1475
1551
|
* MedixDeck OTPInput / PinInput
|
|
1476
1552
|
*
|
|
@@ -1798,6 +1874,11 @@ export declare interface SkeletonTextProps extends BoxProps {
|
|
|
1798
1874
|
lastLineWidth?: string;
|
|
1799
1875
|
}
|
|
1800
1876
|
|
|
1877
|
+
export declare interface SocialLink {
|
|
1878
|
+
platform: "facebook" | "instagram" | "linkedin" | "twitter" | "youtube" | "threads";
|
|
1879
|
+
href: string;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1801
1882
|
/**
|
|
1802
1883
|
* MedixDeck Spacing & Radius Tokens
|
|
1803
1884
|
* From style guide: Spacing scale 4, 8, 12, 16, 24, 32, 48, 64
|