@ttoss/react-billing 0.1.0
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 -0
- package/README.md +7 -0
- package/dist/esm/index.js +6479 -0
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +6500 -0
- package/package.json +46 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { IconType } from '@ttoss/react-icons';
|
|
3
|
+
import { CardProps, ButtonProps } from '@ttoss/ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
type PlanCardMetadataSlotParameter = {
|
|
7
|
+
name: string;
|
|
8
|
+
value: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type PlanCardMetadataSlotService = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: IconType;
|
|
13
|
+
parameters: PlanCardMetadataSlotParameter[];
|
|
14
|
+
id?: string;
|
|
15
|
+
key?: string;
|
|
16
|
+
};
|
|
17
|
+
type PlanCardMetadataSlotVariant = 'default' | 'enterprise';
|
|
18
|
+
interface PlanCardMetadataSlotProps {
|
|
19
|
+
metadata: PlanCardMetadataSlotService[];
|
|
20
|
+
variant?: PlanCardMetadataSlotVariant;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PlanCardVariant = 'default' | 'enterprise';
|
|
24
|
+
|
|
25
|
+
type PlanCardMetadata = PlanCardMetadataSlotService[];
|
|
26
|
+
type PlanCardPrice = {
|
|
27
|
+
value: string | number;
|
|
28
|
+
interval: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
};
|
|
31
|
+
type PlanCardButtonProps = Omit<ButtonProps, 'children'> & {
|
|
32
|
+
label?: string;
|
|
33
|
+
leftIcon?: IconType;
|
|
34
|
+
};
|
|
35
|
+
interface PlanCardProps extends Omit<CardProps, 'children'> {
|
|
36
|
+
variant?: PlanCardVariant;
|
|
37
|
+
topTag?: React.ReactNode;
|
|
38
|
+
title: string;
|
|
39
|
+
subtitle?: string;
|
|
40
|
+
metadata?: PlanCardMetadata;
|
|
41
|
+
metadataVariant?: PlanCardMetadataSlotVariant;
|
|
42
|
+
price: PlanCardPrice;
|
|
43
|
+
features?: unknown[];
|
|
44
|
+
buttonProps?: PlanCardButtonProps;
|
|
45
|
+
}
|
|
46
|
+
declare const PlanCard: (props: PlanCardProps) => react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
export { PlanCard, type PlanCardButtonProps, type PlanCardMetadata, type PlanCardMetadataSlotParameter, type PlanCardMetadataSlotProps, type PlanCardMetadataSlotService, type PlanCardMetadataSlotVariant, type PlanCardPrice, type PlanCardProps, type PlanCardVariant };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { IconType } from '@ttoss/react-icons';
|
|
3
|
+
import { CardProps, ButtonProps } from '@ttoss/ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
type PlanCardMetadataSlotParameter = {
|
|
7
|
+
name: string;
|
|
8
|
+
value: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type PlanCardMetadataSlotService = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: IconType;
|
|
13
|
+
parameters: PlanCardMetadataSlotParameter[];
|
|
14
|
+
id?: string;
|
|
15
|
+
key?: string;
|
|
16
|
+
};
|
|
17
|
+
type PlanCardMetadataSlotVariant = 'default' | 'enterprise';
|
|
18
|
+
interface PlanCardMetadataSlotProps {
|
|
19
|
+
metadata: PlanCardMetadataSlotService[];
|
|
20
|
+
variant?: PlanCardMetadataSlotVariant;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PlanCardVariant = 'default' | 'enterprise';
|
|
24
|
+
|
|
25
|
+
type PlanCardMetadata = PlanCardMetadataSlotService[];
|
|
26
|
+
type PlanCardPrice = {
|
|
27
|
+
value: string | number;
|
|
28
|
+
interval: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
};
|
|
31
|
+
type PlanCardButtonProps = Omit<ButtonProps, 'children'> & {
|
|
32
|
+
label?: string;
|
|
33
|
+
leftIcon?: IconType;
|
|
34
|
+
};
|
|
35
|
+
interface PlanCardProps extends Omit<CardProps, 'children'> {
|
|
36
|
+
variant?: PlanCardVariant;
|
|
37
|
+
topTag?: React.ReactNode;
|
|
38
|
+
title: string;
|
|
39
|
+
subtitle?: string;
|
|
40
|
+
metadata?: PlanCardMetadata;
|
|
41
|
+
metadataVariant?: PlanCardMetadataSlotVariant;
|
|
42
|
+
price: PlanCardPrice;
|
|
43
|
+
features?: unknown[];
|
|
44
|
+
buttonProps?: PlanCardButtonProps;
|
|
45
|
+
}
|
|
46
|
+
declare const PlanCard: (props: PlanCardProps) => react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
export { PlanCard, type PlanCardButtonProps, type PlanCardMetadata, type PlanCardMetadataSlotParameter, type PlanCardMetadataSlotProps, type PlanCardMetadataSlotService, type PlanCardMetadataSlotVariant, type PlanCardPrice, type PlanCardProps, type PlanCardVariant };
|