@medixdeck/ui 0.1.26 → 0.1.27
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 +36 -78
- package/dist/index.cjs +62 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +26 -8
- package/dist/index.js +9796 -12698
- package/dist/index.js.map +1 -1
- package/package.json +28 -23
- package/third-party/DOMPurify-LICENSE +202 -0
- package/third-party/NOTICE +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -1652,9 +1652,7 @@ export { Heading }
|
|
|
1652
1652
|
|
|
1653
1653
|
export { HStack }
|
|
1654
1654
|
|
|
1655
|
-
/**
|
|
1656
|
-
* Converts HTML content to clean, standard Markdown text.
|
|
1657
|
-
*/
|
|
1655
|
+
/** Convert existing editor HTML identically in browsers and DOM-free SSR. */
|
|
1658
1656
|
export declare function htmlToMarkdown(html: string): string;
|
|
1659
1657
|
|
|
1660
1658
|
/**
|
|
@@ -1809,6 +1807,9 @@ export declare type LogoType = 'full' | 'icon';
|
|
|
1809
1807
|
|
|
1810
1808
|
export declare type LogoVariant = 'blue' | 'purple' | 'black' | 'white';
|
|
1811
1809
|
|
|
1810
|
+
/**
|
|
1811
|
+
* Converts HTML content to clean, standard Markdown text.
|
|
1812
|
+
*/
|
|
1812
1813
|
/**
|
|
1813
1814
|
* Converts standard Markdown text to HTML.
|
|
1814
1815
|
*/
|
|
@@ -2134,11 +2135,11 @@ export declare interface NewsletterProps {
|
|
|
2134
2135
|
*
|
|
2135
2136
|
* export default function NotFound() {
|
|
2136
2137
|
* const router = useRouter();
|
|
2137
|
-
* return <NotFoundPage onAction={() => router.push("/")} />;
|
|
2138
|
+
* return <NotFoundPage onAction={() => router.push("/")} colorScheme="purple" />;
|
|
2138
2139
|
* }
|
|
2139
2140
|
* ```
|
|
2140
2141
|
*/
|
|
2141
|
-
export declare function NotFoundPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
2142
|
+
export declare function NotFoundPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, colorScheme, ...props }: NotFoundPageProps): JSX_2.Element;
|
|
2142
2143
|
|
|
2143
2144
|
export declare interface NotFoundPageProps extends BoxProps {
|
|
2144
2145
|
/** Optional custom title. Defaults to "Page Not Found" */
|
|
@@ -2155,6 +2156,11 @@ export declare interface NotFoundPageProps extends BoxProps {
|
|
|
2155
2156
|
secondaryLabel?: string;
|
|
2156
2157
|
/** Secondary button onClick handler */
|
|
2157
2158
|
onSecondaryAction?: () => void;
|
|
2159
|
+
/**
|
|
2160
|
+
* Brand accent for the CTA buttons and the "404" watermark.
|
|
2161
|
+
* @default "blue"
|
|
2162
|
+
*/
|
|
2163
|
+
colorScheme?: 'blue' | 'purple';
|
|
2158
2164
|
}
|
|
2159
2165
|
|
|
2160
2166
|
/**
|
|
@@ -2433,10 +2439,11 @@ export declare interface ProgressProps extends BoxProps {
|
|
|
2433
2439
|
* title="Install MedixDeck"
|
|
2434
2440
|
* description="Get faster access and offline support."
|
|
2435
2441
|
* delaySeconds={5}
|
|
2442
|
+
* colorScheme="purple"
|
|
2436
2443
|
* />
|
|
2437
2444
|
* ```
|
|
2438
2445
|
*/
|
|
2439
|
-
export declare function PWAInstallPrompt({ title, description, installLabel, dismissLabel, cooldownDays, onInstall, onDismiss, appName, icon, position, delaySeconds, forceVisible, forceIOS, }: PWAInstallPromptProps): JSX_2.Element;
|
|
2446
|
+
export declare function PWAInstallPrompt({ title, description, installLabel, dismissLabel, cooldownDays, onInstall, onDismiss, appName, icon, position, colorScheme, delaySeconds, forceVisible, forceIOS, }: PWAInstallPromptProps): JSX_2.Element;
|
|
2440
2447
|
|
|
2441
2448
|
export declare namespace PWAInstallPrompt {
|
|
2442
2449
|
var displayName: string;
|
|
@@ -2472,6 +2479,11 @@ export declare interface PWAInstallPromptProps {
|
|
|
2472
2479
|
* @default "bottom"
|
|
2473
2480
|
*/
|
|
2474
2481
|
position?: 'top' | 'bottom';
|
|
2482
|
+
/**
|
|
2483
|
+
* Brand accent for the install button, iOS share icon, and step badges.
|
|
2484
|
+
* @default "blue"
|
|
2485
|
+
*/
|
|
2486
|
+
colorScheme?: 'blue' | 'purple';
|
|
2475
2487
|
/**
|
|
2476
2488
|
* Number of seconds to delay the prompt after the conditions are met.
|
|
2477
2489
|
* @default 0
|
|
@@ -2791,11 +2803,11 @@ export declare interface SelectProps {
|
|
|
2791
2803
|
* import { ServerErrorPage } from "@medixdeck/ui";
|
|
2792
2804
|
*
|
|
2793
2805
|
* export default function Error({ error, reset }: { error: Error; reset: () => void }) {
|
|
2794
|
-
* return <ServerErrorPage errorMessage={error.message} onAction={() => reset()} />;
|
|
2806
|
+
* return <ServerErrorPage errorMessage={error.message} onAction={() => reset()} colorScheme="purple" />;
|
|
2795
2807
|
* }
|
|
2796
2808
|
* ```
|
|
2797
2809
|
*/
|
|
2798
|
-
export declare function ServerErrorPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, ...props }: ServerErrorPageProps): JSX_2.Element;
|
|
2810
|
+
export declare function ServerErrorPage({ title, description, errorMessage, actionLabel, onAction, secondaryLabel, onSecondaryAction, colorScheme, ...props }: ServerErrorPageProps): JSX_2.Element;
|
|
2799
2811
|
|
|
2800
2812
|
export declare interface ServerErrorPageProps extends BoxProps {
|
|
2801
2813
|
/** Optional custom title. Defaults to "Something went wrong" */
|
|
@@ -2812,6 +2824,12 @@ export declare interface ServerErrorPageProps extends BoxProps {
|
|
|
2812
2824
|
secondaryLabel?: string;
|
|
2813
2825
|
/** Secondary button onClick handler */
|
|
2814
2826
|
onSecondaryAction?: () => void;
|
|
2827
|
+
/**
|
|
2828
|
+
* Brand accent for the CTA buttons.
|
|
2829
|
+
* The error icon stays red as a status color on all schemes.
|
|
2830
|
+
* @default "blue"
|
|
2831
|
+
*/
|
|
2832
|
+
colorScheme?: 'blue' | 'purple';
|
|
2815
2833
|
}
|
|
2816
2834
|
|
|
2817
2835
|
export declare const shadowTokens: {
|