@zenpatient-org/healthspan-marketing-ui 0.1.13 → 0.1.14
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/modules/Comparison/Comparison.d.ts +9 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +8 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/index.d.ts +1 -0
- package/dist/modules/Comparison/index.d.ts +1 -0
- package/dist/modules/Comparison/types.d.ts +15 -0
- package/dist/modules/Comparison/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ComparisonData } from './types';
|
|
3
|
+
|
|
4
|
+
export type ComparisonProps = {
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
comparison: ComparisonData;
|
|
7
|
+
description?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Comparison: ({ title, description, comparison }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComparisonData } from '../../types';
|
|
2
|
+
|
|
3
|
+
type ComparisonMobileViewProps = {
|
|
4
|
+
comparison: ComparisonData;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const ComparisonMobileView: ({ comparison, className }: ComparisonMobileViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComparisonMobileView } from './ComparisonMobileView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Comparison } from './Comparison';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type TComparisonValue = {
|
|
2
|
+
value: string;
|
|
3
|
+
type: "string";
|
|
4
|
+
} | {
|
|
5
|
+
value: boolean;
|
|
6
|
+
type: "boolean";
|
|
7
|
+
};
|
|
8
|
+
export type ComparisonData = {
|
|
9
|
+
headers: ReadonlyArray<string>;
|
|
10
|
+
rows: Array<{
|
|
11
|
+
feature: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
values: ReadonlyArray<TComparisonValue>;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isHealthspan: (value: string) => boolean;
|