@mindly/ui-components 4.1.1 → 4.2.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/dist/cjs/configs/tailwind/colors.d.ts +35 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/lib2/shared/ui/Badge/Badge.d.ts +4 -0
- package/dist/cjs/lib2/shared/ui/Badge/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/Badge/styles.d.ts +127 -0
- package/dist/cjs/lib2/shared/ui/Badge/types.d.ts +8 -0
- package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
- package/dist/esm/configs/tailwind/colors.d.ts +35 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/shared/ui/Badge/Badge.d.ts +4 -0
- package/dist/esm/lib2/shared/ui/Badge/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/Badge/styles.d.ts +127 -0
- package/dist/esm/lib2/shared/ui/Badge/types.d.ts +8 -0
- package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
- package/dist/index.d.ts +135 -124
- package/package.json +3 -2
- package/src/configs/tailwind/colors.ts +36 -0
- package/src/lib2/shared/css/tailwind.css +28 -0
- package/src/lib2/shared/css/variables.css +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Badge } from './Badge';
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
attention: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
warning: "";
|
|
6
|
+
danger: "";
|
|
7
|
+
success: "";
|
|
8
|
+
brand: "";
|
|
9
|
+
info: "";
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
13
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
default: "";
|
|
17
|
+
accent: "";
|
|
18
|
+
};
|
|
19
|
+
}, undefined, "inline-flex justify-center items-center rounded-3xl", import("tailwind-variants/dist/config").TVConfig<{
|
|
20
|
+
variant: {
|
|
21
|
+
attention: "";
|
|
22
|
+
neutral: "";
|
|
23
|
+
warning: "";
|
|
24
|
+
danger: "";
|
|
25
|
+
success: "";
|
|
26
|
+
brand: "";
|
|
27
|
+
info: "";
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
31
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
32
|
+
};
|
|
33
|
+
type: {
|
|
34
|
+
default: "";
|
|
35
|
+
accent: "";
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
variant: {
|
|
39
|
+
attention: "";
|
|
40
|
+
neutral: "";
|
|
41
|
+
warning: "";
|
|
42
|
+
danger: "";
|
|
43
|
+
success: "";
|
|
44
|
+
brand: "";
|
|
45
|
+
info: "";
|
|
46
|
+
};
|
|
47
|
+
size: {
|
|
48
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
49
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
50
|
+
};
|
|
51
|
+
type: {
|
|
52
|
+
default: "";
|
|
53
|
+
accent: "";
|
|
54
|
+
};
|
|
55
|
+
}>, {
|
|
56
|
+
variant: {
|
|
57
|
+
attention: "";
|
|
58
|
+
neutral: "";
|
|
59
|
+
warning: "";
|
|
60
|
+
danger: "";
|
|
61
|
+
success: "";
|
|
62
|
+
brand: "";
|
|
63
|
+
info: "";
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
67
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
68
|
+
};
|
|
69
|
+
type: {
|
|
70
|
+
default: "";
|
|
71
|
+
accent: "";
|
|
72
|
+
};
|
|
73
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
attention: "";
|
|
76
|
+
neutral: "";
|
|
77
|
+
warning: "";
|
|
78
|
+
danger: "";
|
|
79
|
+
success: "";
|
|
80
|
+
brand: "";
|
|
81
|
+
info: "";
|
|
82
|
+
};
|
|
83
|
+
size: {
|
|
84
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
85
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
86
|
+
};
|
|
87
|
+
type: {
|
|
88
|
+
default: "";
|
|
89
|
+
accent: "";
|
|
90
|
+
};
|
|
91
|
+
}, undefined, "inline-flex justify-center items-center rounded-3xl", import("tailwind-variants/dist/config").TVConfig<{
|
|
92
|
+
variant: {
|
|
93
|
+
attention: "";
|
|
94
|
+
neutral: "";
|
|
95
|
+
warning: "";
|
|
96
|
+
danger: "";
|
|
97
|
+
success: "";
|
|
98
|
+
brand: "";
|
|
99
|
+
info: "";
|
|
100
|
+
};
|
|
101
|
+
size: {
|
|
102
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
103
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
104
|
+
};
|
|
105
|
+
type: {
|
|
106
|
+
default: "";
|
|
107
|
+
accent: "";
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
variant: {
|
|
111
|
+
attention: "";
|
|
112
|
+
neutral: "";
|
|
113
|
+
warning: "";
|
|
114
|
+
danger: "";
|
|
115
|
+
success: "";
|
|
116
|
+
brand: "";
|
|
117
|
+
info: "";
|
|
118
|
+
};
|
|
119
|
+
size: {
|
|
120
|
+
S: "px-2 py-1 text-xs/[140%] font-semibold";
|
|
121
|
+
M: "px-2.5 py-1 text-[13px]/[150%] font-semibold";
|
|
122
|
+
};
|
|
123
|
+
type: {
|
|
124
|
+
default: "";
|
|
125
|
+
accent: "";
|
|
126
|
+
};
|
|
127
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type BadgeType = 'default' | 'accent';
|
|
3
|
+
export type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info';
|
|
4
|
+
export type BadgeProps = React.ComponentPropsWithoutRef<'span'> & {
|
|
5
|
+
variant: BadgeVariants;
|
|
6
|
+
size?: 'S' | 'M';
|
|
7
|
+
type?: BadgeType;
|
|
8
|
+
};
|