ui-czn 1.0.14 → 1.0.16
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 +116 -7
- package/package.json +4 -3
- package/dist/types/ui-czn.d.ts +0 -2
- package/dist/ui-czn.cjs.js +0 -49
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/dist/types';
|
|
2
|
+
import { IMaskInput } from 'react-imask';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
5
|
+
import * as React_2 from 'react';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
|
|
11
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const buttonVariants: (props?: ({
|
|
16
|
+
variant?: "primary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
17
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
18
|
+
} & ClassProp) | undefined) => string;
|
|
19
|
+
|
|
20
|
+
export declare const CardStep: React_2.ForwardRefExoticComponent<CardStepProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export declare interface CardStepProps {
|
|
23
|
+
step: number;
|
|
24
|
+
content: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
headerClassName?: string;
|
|
27
|
+
titleClassName?: string;
|
|
28
|
+
contentClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare const CardWithIcon: React_2.ForwardRefExoticComponent<CardWithIconProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
|
|
33
|
+
export declare interface CardWithIconProps extends VariantProps<typeof cardWithIconVariants>, VariantProps<typeof contentVariants>, VariantProps<typeof iconVariants> {
|
|
34
|
+
icon: string;
|
|
35
|
+
content: ReactNode;
|
|
36
|
+
alt: string;
|
|
37
|
+
className?: string;
|
|
38
|
+
iconClassName?: string;
|
|
39
|
+
contentClassName?: string;
|
|
40
|
+
direction?: "row" | "column";
|
|
41
|
+
iconPosition?: "first" | "last";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare const cardWithIconVariants: (props?: ({
|
|
45
|
+
direction?: "row" | "column" | null | undefined;
|
|
46
|
+
} & ClassProp) | undefined) => string;
|
|
47
|
+
|
|
48
|
+
export declare const CardWithImg: React_2.ForwardRefExoticComponent<CardWithImgProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
|
|
50
|
+
export declare interface CardWithImgProps extends VariantProps<typeof cardWithImgVariants> {
|
|
51
|
+
img: string;
|
|
52
|
+
content: ReactNode;
|
|
53
|
+
alt: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
imgClassName?: string;
|
|
56
|
+
contentClassName?: string;
|
|
57
|
+
direction?: "row" | "column";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare const cardWithImgVariants: (props?: ({
|
|
61
|
+
direction?: "row" | "column" | null | undefined;
|
|
62
|
+
} & ClassProp) | undefined) => string;
|
|
63
|
+
|
|
64
|
+
declare const contentVariants: (props?: ({
|
|
65
|
+
iconPosition?: "first" | "last" | null | undefined;
|
|
66
|
+
} & ClassProp) | undefined) => string;
|
|
67
|
+
|
|
68
|
+
declare interface DefaultInputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
69
|
+
type?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare const iconVariants: (props?: ({
|
|
73
|
+
iconPosition?: "first" | "last" | null | undefined;
|
|
74
|
+
} & ClassProp) | undefined) => string;
|
|
75
|
+
|
|
76
|
+
export declare const Input: React_2.ForwardRefExoticComponent<(DefaultInputProps | Omit<MaskedInputProps, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
|
|
77
|
+
|
|
78
|
+
export declare type InputProps = MaskedInputProps | DefaultInputProps;
|
|
79
|
+
|
|
80
|
+
export declare const List: ({ options, type, textStyles, iconStyles }: ListProps) => JSX.Element;
|
|
81
|
+
|
|
82
|
+
export declare interface ListProps extends VariantProps<typeof listVariant> {
|
|
83
|
+
className?: string;
|
|
84
|
+
type: 'plus' | 'check' | 'star';
|
|
85
|
+
options: Array<string> | string;
|
|
86
|
+
iconStyles?: string;
|
|
87
|
+
textStyles?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare const listVariant: (props?: ClassProp | undefined) => string;
|
|
91
|
+
|
|
92
|
+
declare interface MaskedInputProps extends Omit<React_2.ComponentProps<typeof IMaskInput>, "mask" | "inputRef"> {
|
|
93
|
+
type: "phone";
|
|
94
|
+
mask?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
|
|
99
|
+
export declare interface RadioGroupProps extends React_2.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, VariantProps<typeof radioGroupVariants> {
|
|
100
|
+
direction?: "row" | "column";
|
|
101
|
+
options?: RadioOption[];
|
|
102
|
+
itemClassName?: string;
|
|
103
|
+
labelClassName?: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare const radioGroupVariants: (props?: ({
|
|
107
|
+
direction?: "row" | "column" | null | undefined;
|
|
108
|
+
} & ClassProp) | undefined) => string;
|
|
109
|
+
|
|
110
|
+
declare interface RadioOption {
|
|
111
|
+
value: string;
|
|
112
|
+
label: React_2.ReactNode;
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-czn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/ui-czn.umd.js",
|
|
6
6
|
"module": "./dist/ui-czn.es.js",
|
|
7
7
|
"style": "./dist/index.css",
|
|
8
|
-
"types": "./dist/
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"sideEffects": ["dist/index.css"],
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"import": "./dist/ui-czn.es.js",
|
|
13
|
-
"require": "./dist/ui-czn.umd.js"
|
|
13
|
+
"require": "./dist/ui-czn.umd.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
14
15
|
},
|
|
15
16
|
"./dist/*.css": "./dist/*.css"
|
|
16
17
|
},
|
package/dist/types/ui-czn.d.ts
DELETED