@particle-network/ui-react 0.5.1-beta.5 → 0.5.1-beta.7
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/components/ProgressWrapper/index.d.ts +2 -2
- package/dist/components/UXButton/button.js +1 -1
- package/dist/components/UXInput/index.d.ts +4 -4
- package/dist/components/UXInput/input.extend.d.ts +4 -4
- package/dist/components/UXSpinner/spinner.d.ts +1 -5
- package/dist/components/UXSpinner/spinner.js +2 -3
- package/dist/components/UXSwitch/index.d.ts +2 -2
- package/dist/components/UXSwitch/switch.extend.d.ts +2 -2
- package/dist/components/UXTable/index.d.ts +2 -2
- package/dist/components/UXTable/table.extend.d.ts +2 -2
- package/dist/components/layout/Box/box-theme.d.ts +1808 -0
- package/dist/components/layout/Box/box-theme.js +328 -0
- package/dist/components/layout/Box/box.d.ts +14 -0
- package/dist/components/layout/Box/box.js +90 -0
- package/dist/components/layout/Circle.js +2 -3
- package/dist/components/layout/Flex.d.ts +3 -27
- package/dist/components/layout/Flex.js +6 -19
- package/dist/components/layout/HStack.d.ts +1 -1
- package/dist/components/layout/Square.js +5 -3
- package/dist/components/layout/VStack.d.ts +1 -1
- package/dist/components/layout/VStack.js +2 -2
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.js +1 -0
- package/dist/components/typography/Text.js +21 -6
- package/dist/components/typography/Text.type.d.ts +3 -26
- package/dist/components/typography/Text.type.js +0 -46
- package/dist/components/typography/text-theme.d.ts +178 -0
- package/dist/components/typography/text-theme.js +79 -0
- package/package.json +5 -5
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const textClasses = {
|
|
2
|
-
variant: {
|
|
3
|
-
h1: 'text-[1.5rem] leading-[1.75rem] font-semibold',
|
|
4
|
-
h2: 'text-[1.25rem] leading-[1.5rem] font-semibold',
|
|
5
|
-
h3: 'text-[1rem] leading-[1.25rem] font-semibold',
|
|
6
|
-
body1Bold: 'text-[0.875rem] leading-[1.125rem] font-medium',
|
|
7
|
-
body1: 'text-[0.875rem] leading-[1.125rem] font-normal',
|
|
8
|
-
body2Bold: 'text-[0.75rem] leading-[1rem] font-medium',
|
|
9
|
-
body2: 'text-[0.75rem] leading-[1rem] font-normal',
|
|
10
|
-
body3Bold: 'text-[0.6875rem] leading-[1rem] font-medium',
|
|
11
|
-
body3: 'text-[0.6875rem] leading-[1rem] font-normal',
|
|
12
|
-
caption1Bold: 'text-[0.625rem] leading-[0.875rem] font-medium',
|
|
13
|
-
caption1: 'text-[0.625rem] leading-[0.875rem] font-normal'
|
|
14
|
-
},
|
|
15
|
-
color: {
|
|
16
|
-
default: '',
|
|
17
|
-
foreground: 'text-foreground',
|
|
18
|
-
secondary: 'text-foreground-300',
|
|
19
|
-
white: 'text-white',
|
|
20
|
-
tertiary: 'text-foreground-100',
|
|
21
|
-
primary: 'text-primary',
|
|
22
|
-
success: 'text-success',
|
|
23
|
-
danger: 'text-danger',
|
|
24
|
-
alert: 'text-alert',
|
|
25
|
-
warning: 'text-warning',
|
|
26
|
-
bullish: 'text-bullish',
|
|
27
|
-
bearish: 'text-bearish'
|
|
28
|
-
},
|
|
29
|
-
fontWeight: {
|
|
30
|
-
normal: 'font-normal',
|
|
31
|
-
medium: 'font-medium',
|
|
32
|
-
semibold: 'font-semibold',
|
|
33
|
-
bold: 'font-bold',
|
|
34
|
-
extrabold: 'font-extrabold'
|
|
35
|
-
},
|
|
36
|
-
lineHeight: {
|
|
37
|
-
1: 'leading-none',
|
|
38
|
-
'1.4': 'leading-[1.4]'
|
|
39
|
-
},
|
|
40
|
-
align: {
|
|
41
|
-
left: 'text-left',
|
|
42
|
-
center: 'text-center',
|
|
43
|
-
right: 'text-right'
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export { textClasses };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const textVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
h1: string;
|
|
4
|
+
h2: string;
|
|
5
|
+
h3: string;
|
|
6
|
+
body1Bold: string;
|
|
7
|
+
body1: string;
|
|
8
|
+
body2Bold: string;
|
|
9
|
+
body2: string;
|
|
10
|
+
body3Bold: string;
|
|
11
|
+
body3: string;
|
|
12
|
+
caption1Bold: string;
|
|
13
|
+
caption1: string;
|
|
14
|
+
};
|
|
15
|
+
h1: {
|
|
16
|
+
true: string;
|
|
17
|
+
};
|
|
18
|
+
h2: {
|
|
19
|
+
true: string;
|
|
20
|
+
};
|
|
21
|
+
h3: {
|
|
22
|
+
true: string;
|
|
23
|
+
};
|
|
24
|
+
body1Bold: {
|
|
25
|
+
true: string;
|
|
26
|
+
};
|
|
27
|
+
body1: {
|
|
28
|
+
true: string;
|
|
29
|
+
};
|
|
30
|
+
body2Bold: {
|
|
31
|
+
true: string;
|
|
32
|
+
};
|
|
33
|
+
body2: {
|
|
34
|
+
true: string;
|
|
35
|
+
};
|
|
36
|
+
body3Bold: {
|
|
37
|
+
true: string;
|
|
38
|
+
};
|
|
39
|
+
body3: {
|
|
40
|
+
true: string;
|
|
41
|
+
};
|
|
42
|
+
caption1Bold: {
|
|
43
|
+
true: string;
|
|
44
|
+
};
|
|
45
|
+
caption1: {
|
|
46
|
+
true: string;
|
|
47
|
+
};
|
|
48
|
+
fontWeight: {
|
|
49
|
+
normal: string;
|
|
50
|
+
medium: string;
|
|
51
|
+
semibold: string;
|
|
52
|
+
bold: string;
|
|
53
|
+
extrabold: string;
|
|
54
|
+
};
|
|
55
|
+
lineHeight: {
|
|
56
|
+
none: string;
|
|
57
|
+
'1': string;
|
|
58
|
+
'1.4': string;
|
|
59
|
+
};
|
|
60
|
+
}, undefined, "ux-text-base", {
|
|
61
|
+
variant: {
|
|
62
|
+
h1: string;
|
|
63
|
+
h2: string;
|
|
64
|
+
h3: string;
|
|
65
|
+
body1Bold: string;
|
|
66
|
+
body1: string;
|
|
67
|
+
body2Bold: string;
|
|
68
|
+
body2: string;
|
|
69
|
+
body3Bold: string;
|
|
70
|
+
body3: string;
|
|
71
|
+
caption1Bold: string;
|
|
72
|
+
caption1: string;
|
|
73
|
+
};
|
|
74
|
+
h1: {
|
|
75
|
+
true: string;
|
|
76
|
+
};
|
|
77
|
+
h2: {
|
|
78
|
+
true: string;
|
|
79
|
+
};
|
|
80
|
+
h3: {
|
|
81
|
+
true: string;
|
|
82
|
+
};
|
|
83
|
+
body1Bold: {
|
|
84
|
+
true: string;
|
|
85
|
+
};
|
|
86
|
+
body1: {
|
|
87
|
+
true: string;
|
|
88
|
+
};
|
|
89
|
+
body2Bold: {
|
|
90
|
+
true: string;
|
|
91
|
+
};
|
|
92
|
+
body2: {
|
|
93
|
+
true: string;
|
|
94
|
+
};
|
|
95
|
+
body3Bold: {
|
|
96
|
+
true: string;
|
|
97
|
+
};
|
|
98
|
+
body3: {
|
|
99
|
+
true: string;
|
|
100
|
+
};
|
|
101
|
+
caption1Bold: {
|
|
102
|
+
true: string;
|
|
103
|
+
};
|
|
104
|
+
caption1: {
|
|
105
|
+
true: string;
|
|
106
|
+
};
|
|
107
|
+
fontWeight: {
|
|
108
|
+
normal: string;
|
|
109
|
+
medium: string;
|
|
110
|
+
semibold: string;
|
|
111
|
+
bold: string;
|
|
112
|
+
extrabold: string;
|
|
113
|
+
};
|
|
114
|
+
lineHeight: {
|
|
115
|
+
none: string;
|
|
116
|
+
'1': string;
|
|
117
|
+
'1.4': string;
|
|
118
|
+
};
|
|
119
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
120
|
+
variant: {
|
|
121
|
+
h1: string;
|
|
122
|
+
h2: string;
|
|
123
|
+
h3: string;
|
|
124
|
+
body1Bold: string;
|
|
125
|
+
body1: string;
|
|
126
|
+
body2Bold: string;
|
|
127
|
+
body2: string;
|
|
128
|
+
body3Bold: string;
|
|
129
|
+
body3: string;
|
|
130
|
+
caption1Bold: string;
|
|
131
|
+
caption1: string;
|
|
132
|
+
};
|
|
133
|
+
h1: {
|
|
134
|
+
true: string;
|
|
135
|
+
};
|
|
136
|
+
h2: {
|
|
137
|
+
true: string;
|
|
138
|
+
};
|
|
139
|
+
h3: {
|
|
140
|
+
true: string;
|
|
141
|
+
};
|
|
142
|
+
body1Bold: {
|
|
143
|
+
true: string;
|
|
144
|
+
};
|
|
145
|
+
body1: {
|
|
146
|
+
true: string;
|
|
147
|
+
};
|
|
148
|
+
body2Bold: {
|
|
149
|
+
true: string;
|
|
150
|
+
};
|
|
151
|
+
body2: {
|
|
152
|
+
true: string;
|
|
153
|
+
};
|
|
154
|
+
body3Bold: {
|
|
155
|
+
true: string;
|
|
156
|
+
};
|
|
157
|
+
body3: {
|
|
158
|
+
true: string;
|
|
159
|
+
};
|
|
160
|
+
caption1Bold: {
|
|
161
|
+
true: string;
|
|
162
|
+
};
|
|
163
|
+
caption1: {
|
|
164
|
+
true: string;
|
|
165
|
+
};
|
|
166
|
+
fontWeight: {
|
|
167
|
+
normal: string;
|
|
168
|
+
medium: string;
|
|
169
|
+
semibold: string;
|
|
170
|
+
bold: string;
|
|
171
|
+
extrabold: string;
|
|
172
|
+
};
|
|
173
|
+
lineHeight: {
|
|
174
|
+
none: string;
|
|
175
|
+
'1': string;
|
|
176
|
+
'1.4': string;
|
|
177
|
+
};
|
|
178
|
+
}, undefined, "ux-text-base", unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { tv } from "@heroui/theme";
|
|
2
|
+
const h1 = 'text-[1.5rem] leading-[1.75rem] font-semibold';
|
|
3
|
+
const h2 = 'text-[1.25rem] leading-[1.5rem] font-semibold';
|
|
4
|
+
const h3 = 'text-[1rem] leading-[1.25rem] font-semibold';
|
|
5
|
+
const body1Bold = 'text-[0.875rem] leading-[1.125rem] font-medium';
|
|
6
|
+
const body1 = 'text-[0.875rem] leading-[1.125rem] font-normal';
|
|
7
|
+
const body2Bold = 'text-[0.75rem] leading-[1rem] font-medium';
|
|
8
|
+
const body2 = 'text-[0.75rem] leading-[1rem] font-normal';
|
|
9
|
+
const body3Bold = 'text-[0.6875rem] leading-[1rem] font-medium';
|
|
10
|
+
const body3 = 'text-[0.6875rem] leading-[1rem] font-normal';
|
|
11
|
+
const caption1Bold = 'text-[0.625rem] leading-[0.875rem] font-medium';
|
|
12
|
+
const caption1 = 'text-[0.625rem] leading-[0.875rem] font-normal';
|
|
13
|
+
const textVariants = tv({
|
|
14
|
+
base: 'ux-text-base',
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
h1,
|
|
18
|
+
h2,
|
|
19
|
+
h3,
|
|
20
|
+
body1Bold,
|
|
21
|
+
body1,
|
|
22
|
+
body2Bold,
|
|
23
|
+
body2,
|
|
24
|
+
body3Bold,
|
|
25
|
+
body3,
|
|
26
|
+
caption1Bold,
|
|
27
|
+
caption1
|
|
28
|
+
},
|
|
29
|
+
h1: {
|
|
30
|
+
true: h1
|
|
31
|
+
},
|
|
32
|
+
h2: {
|
|
33
|
+
true: h2
|
|
34
|
+
},
|
|
35
|
+
h3: {
|
|
36
|
+
true: h3
|
|
37
|
+
},
|
|
38
|
+
body1Bold: {
|
|
39
|
+
true: body1Bold
|
|
40
|
+
},
|
|
41
|
+
body1: {
|
|
42
|
+
true: body1
|
|
43
|
+
},
|
|
44
|
+
body2Bold: {
|
|
45
|
+
true: body2Bold
|
|
46
|
+
},
|
|
47
|
+
body2: {
|
|
48
|
+
true: body2
|
|
49
|
+
},
|
|
50
|
+
body3Bold: {
|
|
51
|
+
true: body3Bold
|
|
52
|
+
},
|
|
53
|
+
body3: {
|
|
54
|
+
true: body3
|
|
55
|
+
},
|
|
56
|
+
caption1Bold: {
|
|
57
|
+
true: caption1Bold
|
|
58
|
+
},
|
|
59
|
+
caption1: {
|
|
60
|
+
true: caption1
|
|
61
|
+
},
|
|
62
|
+
fontWeight: {
|
|
63
|
+
normal: 'font-normal',
|
|
64
|
+
medium: 'font-medium',
|
|
65
|
+
semibold: 'font-semibold',
|
|
66
|
+
bold: 'font-bold',
|
|
67
|
+
extrabold: 'font-extrabold'
|
|
68
|
+
},
|
|
69
|
+
lineHeight: {
|
|
70
|
+
none: 'leading-none',
|
|
71
|
+
1: 'leading-none',
|
|
72
|
+
'1.4': 'leading-[1.4]'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
variant: 'body2Bold'
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export { textVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.5.1-beta.
|
|
3
|
+
"version": "0.5.1-beta.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@rslib/core": "^0.12.3",
|
|
39
39
|
"@types/react": "^19.1.10",
|
|
40
40
|
"react": "^19.1.0",
|
|
41
|
-
"@particle-network/
|
|
42
|
-
"@particle-network/
|
|
41
|
+
"@particle-network/lintstaged-config": "0.1.0",
|
|
42
|
+
"@particle-network/eslint-config": "0.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.9.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"react-aria-components": "^1.14.0",
|
|
53
53
|
"values.js": "^2.1.1",
|
|
54
54
|
"zustand": "^5.0.8",
|
|
55
|
-
"@particle-network/icons": "0.5.1-beta.
|
|
56
|
-
"@particle-network/ui-shared": "0.4.1-beta.
|
|
55
|
+
"@particle-network/icons": "0.5.1-beta.3",
|
|
56
|
+
"@particle-network/ui-shared": "0.4.1-beta.2"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "rslib build",
|