@koslibs/components 0.0.0 → 1.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/CHANGELOG.md +42 -0
- package/README.md +45 -14
- package/dist/components/Button/button.d.ts +67 -0
- package/dist/components/Button/button.js +88 -0
- package/dist/components/Button/colors.module.js +14 -0
- package/dist/components/Button/colors_module.css +164 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Button/index.module.js +30 -0
- package/dist/components/Button/index_module.css +243 -0
- package/dist/components/Button/vars.css +24 -0
- package/dist/components/Spinner/colors.module.js +5 -0
- package/dist/components/Spinner/colors_module.css +6 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -0
- package/dist/components/Spinner/index.module.js +9 -0
- package/dist/components/Spinner/index_module.css +29 -0
- package/dist/components/Spinner/preset.module.js +7 -0
- package/dist/components/Spinner/preset_module.css +12 -0
- package/dist/components/Spinner/spinner.d.ts +31 -0
- package/dist/components/Spinner/spinner.js +80 -0
- package/dist/components/Spinner/vars.css +7 -0
- package/dist/components/Typography/colors.module.js +10 -0
- package/dist/components/Typography/colors_module.css +26 -0
- package/dist/components/Typography/index.d.ts +34 -0
- package/dist/components/Typography/index.js +7 -0
- package/dist/components/Typography/index.module.js +18 -0
- package/dist/components/Typography/index_module.css +57 -0
- package/dist/components/Typography/preset.module.js +30 -0
- package/dist/components/Typography/preset_module.css +54 -0
- package/dist/components/Typography/shared.d.ts +63 -0
- package/dist/components/Typography/shared.js +10 -0
- package/dist/components/Typography/text.d.ts +15 -0
- package/dist/components/Typography/text.js +18 -0
- package/dist/components/Typography/title.d.ts +15 -0
- package/dist/components/Typography/title.js +18 -0
- package/dist/components/Typography/vars.css +27 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -0
- package/dist/static/font/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-greek-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-latin-wght-normal.woff2 +0 -0
- package/dist/static/font/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/styles/fonts/inter/LICENSE.txt +93 -0
- package/dist/styles/fonts.css +63 -0
- package/dist/styles/theme.css +8 -0
- package/package.json +7 -2
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
@import "../../styles/theme.css";
|
|
2
|
+
@import "./vars.css";
|
|
3
|
+
|
|
4
|
+
.component-vxc0gC {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
font-family: var(--font-ubuntu, "Ubuntu", sans-serif);
|
|
9
|
+
font-size: var(--size-16, 16px);
|
|
10
|
+
text-align: center;
|
|
11
|
+
margin: var(--size-0, 0px);
|
|
12
|
+
padding: var(--size-0, 0px) var(--size-24, 24px);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
-webkit-user-select: none;
|
|
15
|
+
user-select: none;
|
|
16
|
+
border: none;
|
|
17
|
+
outline: none;
|
|
18
|
+
flex-flow: row;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
transition: background-color .1s ease-in-out, color .1s ease-in-out, box-shadow .1s ease-in-out;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.size-32-oD8MDp, .size-40-Pu2_h6 {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: 20px;
|
|
31
|
+
font-family: var(--font-family-system, system-ui, sans-serif);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.size-32-oD8MDp {
|
|
35
|
+
min-width: 80px;
|
|
36
|
+
min-height: 32px;
|
|
37
|
+
padding: var(--size-0, 0px) var(--size-16, 16px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.size-40-Pu2_h6 {
|
|
41
|
+
min-width: 88px;
|
|
42
|
+
min-height: 40px;
|
|
43
|
+
padding: var(--size-0, 0px) var(--size-20, 20px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.size-48-U3XIYx, .size-56-P_94sz {
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
line-height: 20px;
|
|
50
|
+
font-family: var(--font-family-system, system-ui, sans-serif);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.size-48-U3XIYx {
|
|
54
|
+
min-width: 104px;
|
|
55
|
+
min-height: 48px;
|
|
56
|
+
padding: var(--size-0, 0px) var(--size-24, 24px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.size-56-P_94sz {
|
|
60
|
+
min-width: 128px;
|
|
61
|
+
min-height: 56px;
|
|
62
|
+
padding: var(--size-0, 0px) var(--size-28, 28px);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.size-64-ZlQLt3, .size-72-zkSrcs {
|
|
66
|
+
font-size: 18px;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
line-height: 24px;
|
|
69
|
+
font-family: var(--font-family-system, system-ui, sans-serif);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.size-64-ZlQLt3 {
|
|
73
|
+
min-width: 160px;
|
|
74
|
+
min-height: 64px;
|
|
75
|
+
padding: var(--size-0, 0px) var(--size-32, 32px);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.size-72-zkSrcs {
|
|
79
|
+
min-width: 168px;
|
|
80
|
+
min-height: 72px;
|
|
81
|
+
padding: var(--size-0, 0px) var(--size-36, 36px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.withRightAddon-TNcFTm {
|
|
85
|
+
&.size-32-oD8MDp {
|
|
86
|
+
padding-right: var(--size-12, 12px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.size-40-Pu2_h6 {
|
|
90
|
+
padding-right: var(--size-16, 16px);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.size-48-U3XIYx {
|
|
94
|
+
padding-right: var(--size-20, 20px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.size-56-P_94sz {
|
|
98
|
+
padding-right: var(--size-24, 24px);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.size-64-ZlQLt3 {
|
|
102
|
+
padding-right: var(--size-28, 28px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.size-72-zkSrcs {
|
|
106
|
+
padding-right: var(--size-32, 32px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.text-Ifdq0q {
|
|
110
|
+
padding-right: var(--size-0, 0px);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.withLeftAddon-N3YDHw {
|
|
115
|
+
&.size-32-oD8MDp {
|
|
116
|
+
padding-left: var(--size-12, 12px);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.size-40-Pu2_h6 {
|
|
120
|
+
padding-left: var(--size-16, 16px);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.size-48-U3XIYx {
|
|
124
|
+
padding-left: var(--size-20, 20px);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.size-56-P_94sz {
|
|
128
|
+
padding-left: var(--size-24, 24px);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.size-64-ZlQLt3 {
|
|
132
|
+
padding-left: var(--size-28, 28px);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.size-72-zkSrcs {
|
|
136
|
+
padding-left: var(--size-32, 32px);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.text-Ifdq0q {
|
|
140
|
+
padding-left: var(--size-0, 0px);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.text-Ifdq0q {
|
|
145
|
+
min-width: 0;
|
|
146
|
+
min-height: 0;
|
|
147
|
+
padding: var(--size-0, 0px);
|
|
148
|
+
appearance: none;
|
|
149
|
+
border: none;
|
|
150
|
+
|
|
151
|
+
&.size-48-U3XIYx, &.size-56-P_94sz {
|
|
152
|
+
min-height: 24px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.size-48-U3XIYx, .size-56-P_94sz {
|
|
157
|
+
& .addons-NxGsiY:first-child {
|
|
158
|
+
margin-right: var(--size-8, 8px);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
& .addons-NxGsiY:last-child {
|
|
162
|
+
margin-left: var(--size-8, 8px);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
& .addons-NxGsiY:only-child {
|
|
166
|
+
margin: var(--size-0, 0px);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.size-64-ZlQLt3, .size-72-zkSrcs {
|
|
171
|
+
& .addons-NxGsiY:first-child {
|
|
172
|
+
margin-right: var(--size-12, 12px);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .addons-NxGsiY:last-child {
|
|
176
|
+
margin-left: var(--size-12, 12px);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& .addons-NxGsiY:only-child {
|
|
180
|
+
margin: var(--size-0, 0px);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.block-xREK1A {
|
|
185
|
+
width: 100%;
|
|
186
|
+
display: flex;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.rectangular-PFbww7 {
|
|
190
|
+
border-radius: var(--border-radius-8, 8px);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.rounded-kQqesg {
|
|
194
|
+
border-radius: var(--border-radius-pill, 99px);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.addons-NxGsiY {
|
|
198
|
+
margin: var(--size-0, 0px);
|
|
199
|
+
flex-shrink: 0;
|
|
200
|
+
align-items: center;
|
|
201
|
+
display: flex;
|
|
202
|
+
|
|
203
|
+
&:first-child {
|
|
204
|
+
margin-right: var(--size-6, 6px);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&:last-child {
|
|
208
|
+
margin-left: var(--size-6, 6px);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:only-child {
|
|
212
|
+
margin: var(--size-0, 0px);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.loading-DPEeSl .label-gwmTIK, .loading-DPEeSl .addons-NxGsiY {
|
|
217
|
+
opacity: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.stretchText-Nm2RYn {
|
|
221
|
+
flex-grow: 1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.hint-AFu_zz {
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
font-weight: 400;
|
|
227
|
+
line-height: 18px;
|
|
228
|
+
font-family: var(--font-primary);
|
|
229
|
+
color: var(--button-hint-color);
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.loader-BRksFP {
|
|
234
|
+
left: var(--size-0, 0px);
|
|
235
|
+
right: var(--size-0, 0px);
|
|
236
|
+
margin: var(--size-0, 0px) auto;
|
|
237
|
+
position: absolute;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.transparent-w7vhL3 {
|
|
241
|
+
min-width: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--button-default-color: #1c1a18;
|
|
3
|
+
--button-inverse-color: #f5f3ec;
|
|
4
|
+
--button-hint-color: #1c1a1862;
|
|
5
|
+
--button-inverse-hint-color: #f5f3ec72;
|
|
6
|
+
--button-primary-background-color: #ff6b0a;
|
|
7
|
+
--button-primary-hover-background-color: #f05f00;
|
|
8
|
+
--button-primary-active-background-color: #d95300;
|
|
9
|
+
--button-secondary-background-color: #e0dbce;
|
|
10
|
+
--button-secondary-hover-background-color: #d5cdbc;
|
|
11
|
+
--button-secondary-active-background-color: #c8beaa;
|
|
12
|
+
--button-accent-background-color: #7967f2;
|
|
13
|
+
--button-accent-hover-background-color: #6c5ae6;
|
|
14
|
+
--button-accent-active-background-color: #5e4cd8;
|
|
15
|
+
--button-transparent-background-color: transparent;
|
|
16
|
+
--button-subtle-hover-background-color: #f2f3ea;
|
|
17
|
+
--button-subtle-active-background-color: #e5e7db;
|
|
18
|
+
--button-text-hover-color: #4a463f;
|
|
19
|
+
--button-text-active-color: #6a645a;
|
|
20
|
+
--button-disabled-background-color: #cfd1cb;
|
|
21
|
+
--button-disabled-color: #858981;
|
|
22
|
+
--button-disabled-hint-color: #9da099;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from "./spinner.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import "./vars.css";
|
|
2
|
+
|
|
3
|
+
.spinner-KHk8mw {
|
|
4
|
+
box-sizing: content-box;
|
|
5
|
+
animation: spin_animation-pow2iy var(--spinner-animation-duration) infinite
|
|
6
|
+
var(--spinner-animation-timing-function);
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.visible-wk34JZ {
|
|
11
|
+
display: var(--spinner-display-visible);
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.gradient-QKWB8G {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes spin_animation-pow2iy {
|
|
21
|
+
from {
|
|
22
|
+
transform: rotate(0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
to {
|
|
26
|
+
transform: rotate(360deg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SpinnerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Управление видимостью компонента
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Размер спиннера
|
|
10
|
+
*
|
|
11
|
+
* @default 24
|
|
12
|
+
*/
|
|
13
|
+
size?: 16 | 24 | 48;
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Дополнительные инлайн стили для cпиннера
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
};
|
|
31
|
+
export declare const Spinner: ({ visible, size, className, id, dataTestId, style }: SpinnerProps) => React.JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import colors_module from "./colors.module.js";
|
|
5
|
+
import index_module from "./index.module.js";
|
|
6
|
+
import preset_module from "./preset.module.js";
|
|
7
|
+
const PRESET_CONFIG = {
|
|
8
|
+
16: [
|
|
9
|
+
2,
|
|
10
|
+
14,
|
|
11
|
+
'preset16'
|
|
12
|
+
],
|
|
13
|
+
24: [
|
|
14
|
+
2,
|
|
15
|
+
20,
|
|
16
|
+
'preset24'
|
|
17
|
+
],
|
|
18
|
+
48: [
|
|
19
|
+
4,
|
|
20
|
+
40,
|
|
21
|
+
'preset48'
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
const Spinner = ({ visible, size = 24, className, id, dataTestId, style })=>{
|
|
25
|
+
const [lineWidth, presetSize, styleKey] = PRESET_CONFIG[size];
|
|
26
|
+
const presetClassname = preset_module[styleKey];
|
|
27
|
+
const uniqId = useId();
|
|
28
|
+
const radius = presetSize / 2 - lineWidth / 2;
|
|
29
|
+
const rotationAngle = Math.ceil(180 * Math.asin(lineWidth / 2 / radius) / Math.PI);
|
|
30
|
+
const gap = 90;
|
|
31
|
+
const pathLength = 360;
|
|
32
|
+
const strokeDasharray = `${pathLength - gap - rotationAngle} ${gap + rotationAngle}`;
|
|
33
|
+
const gradient = `conic-gradient(from ${rotationAngle}deg, transparent ${gap - 2 * rotationAngle}deg, currentColor)`;
|
|
34
|
+
return /*#__PURE__*/ jsxs("svg", {
|
|
35
|
+
"aria-hidden": "true",
|
|
36
|
+
viewBox: `0 0 ${presetSize} ${presetSize}`,
|
|
37
|
+
style: {
|
|
38
|
+
...style,
|
|
39
|
+
height: presetSize,
|
|
40
|
+
width: presetSize
|
|
41
|
+
},
|
|
42
|
+
className: classnames(index_module.spinner, colors_module.component, presetClassname, className, {
|
|
43
|
+
[index_module.visible]: visible
|
|
44
|
+
}),
|
|
45
|
+
"data-test-id": dataTestId,
|
|
46
|
+
id: id,
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ jsx("defs", {
|
|
49
|
+
children: /*#__PURE__*/ jsx("mask", {
|
|
50
|
+
id: uniqId,
|
|
51
|
+
children: /*#__PURE__*/ jsx("circle", {
|
|
52
|
+
cx: "50%",
|
|
53
|
+
cy: "50%",
|
|
54
|
+
r: radius,
|
|
55
|
+
strokeWidth: lineWidth,
|
|
56
|
+
strokeLinecap: "round",
|
|
57
|
+
stroke: "#fff",
|
|
58
|
+
strokeDashoffset: -rotationAngle,
|
|
59
|
+
strokeDasharray: strokeDasharray,
|
|
60
|
+
pathLength: pathLength
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
/*#__PURE__*/ jsx("foreignObject", {
|
|
65
|
+
x: "0",
|
|
66
|
+
y: "0",
|
|
67
|
+
width: presetSize,
|
|
68
|
+
height: presetSize,
|
|
69
|
+
mask: `url(#${uniqId})`,
|
|
70
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
71
|
+
className: index_module.gradient,
|
|
72
|
+
style: {
|
|
73
|
+
backgroundImage: gradient
|
|
74
|
+
}
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
export { Spinner };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./colors_module.css";
|
|
2
|
+
const colors_module = {
|
|
3
|
+
inherit: "inherit-D2kX96",
|
|
4
|
+
primary: "primary-LVKi8J",
|
|
5
|
+
secondary: "secondary-eTdE4v",
|
|
6
|
+
inverse: "inverse-PTiWqH",
|
|
7
|
+
positive: "positive-a1clfd",
|
|
8
|
+
negative: "negative-IhTMOW"
|
|
9
|
+
};
|
|
10
|
+
export default colors_module;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import "./vars.css";
|
|
2
|
+
|
|
3
|
+
.inherit-D2kX96 {
|
|
4
|
+
color: inherit;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.primary-LVKi8J {
|
|
8
|
+
color: var(--typography-primary-color);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.secondary-eTdE4v {
|
|
12
|
+
color: var(--typography-secondary-color);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.inverse-PTiWqH {
|
|
16
|
+
color: var(--typography-inverse-color);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.positive-a1clfd {
|
|
20
|
+
color: var(--typography-positive-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.negative-IhTMOW {
|
|
24
|
+
color: var(--typography-negative-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TypographyText } from './text.js';
|
|
2
|
+
import { TypographyTitle } from './title.js';
|
|
3
|
+
export { TypographyText, TypographyText as Text, TypographyTitle, TypographyTitle as Title };
|
|
4
|
+
export type { TextProps, TitleProps, TypographyColor, TypographyWeight } from './shared.js';
|
|
5
|
+
export declare const Typography: {
|
|
6
|
+
Text: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "color" | "children"> & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: import("react").CSSProperties;
|
|
10
|
+
color?: import("./shared.js").TypographyColor;
|
|
11
|
+
weight?: import("./shared.js").TypographyWeight;
|
|
12
|
+
caps?: boolean;
|
|
13
|
+
monospaceNumbers?: boolean;
|
|
14
|
+
rowLimit?: 1 | 2 | 3;
|
|
15
|
+
dataTestId?: string;
|
|
16
|
+
} & {
|
|
17
|
+
size?: 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20;
|
|
18
|
+
tag?: "span" | "p" | "div" | "li";
|
|
19
|
+
} & import("react").RefAttributes<import("./shared.js").TextElement>>;
|
|
20
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "color" | "children"> & {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: import("react").CSSProperties;
|
|
24
|
+
color?: import("./shared.js").TypographyColor;
|
|
25
|
+
weight?: import("./shared.js").TypographyWeight;
|
|
26
|
+
caps?: boolean;
|
|
27
|
+
monospaceNumbers?: boolean;
|
|
28
|
+
rowLimit?: 1 | 2 | 3;
|
|
29
|
+
dataTestId?: string;
|
|
30
|
+
} & {
|
|
31
|
+
size?: 13 | 14 | 16 | 20 | 24 | 28 | 32;
|
|
32
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
33
|
+
} & import("react").RefAttributes<import("./shared.js").TitleElement>>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypographyText } from "./text.js";
|
|
2
|
+
import { TypographyTitle } from "./title.js";
|
|
3
|
+
const Typography = {
|
|
4
|
+
Text: TypographyText,
|
|
5
|
+
Title: TypographyTitle
|
|
6
|
+
};
|
|
7
|
+
export { Typography, TypographyText as Text, TypographyText, TypographyTitle as Title, TypographyTitle };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./index_module.css";
|
|
2
|
+
const index_module = {
|
|
3
|
+
component: "component-niqWjh",
|
|
4
|
+
"weight-regular": "weight-regular-cOlAcy",
|
|
5
|
+
weightRegular: "weight-regular-cOlAcy",
|
|
6
|
+
"weight-medium": "weight-medium-kDVEGI",
|
|
7
|
+
weightMedium: "weight-medium-kDVEGI",
|
|
8
|
+
"weight-semibold": "weight-semibold-euRksF",
|
|
9
|
+
weightSemibold: "weight-semibold-euRksF",
|
|
10
|
+
"weight-bold": "weight-bold-ZxTUEF",
|
|
11
|
+
weightBold: "weight-bold-ZxTUEF",
|
|
12
|
+
caps: "caps-AWFyAh",
|
|
13
|
+
monospaceNumbers: "monospaceNumbers-wR2ApQ",
|
|
14
|
+
rowLimit1: "rowLimit1-Es_q51",
|
|
15
|
+
rowLimit2: "rowLimit2-gODO9s",
|
|
16
|
+
rowLimit3: "rowLimit3-LvJseL"
|
|
17
|
+
};
|
|
18
|
+
export default index_module;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import "../../styles/theme.css";
|
|
2
|
+
@import "./vars.css";
|
|
3
|
+
|
|
4
|
+
.component-niqWjh {
|
|
5
|
+
margin: var(--size-0, 0px);
|
|
6
|
+
padding: var(--size-0, 0px);
|
|
7
|
+
font-family: var(--font-primary);
|
|
8
|
+
font-style: normal;
|
|
9
|
+
line-height: var(--typography-line-height);
|
|
10
|
+
letter-spacing: var(--typography-letter-spacing);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.weight-regular-cOlAcy {
|
|
14
|
+
font-weight: var(--typography-regular-font-weight);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.weight-medium-kDVEGI {
|
|
18
|
+
font-weight: var(--typography-medium-font-weight);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.weight-semibold-euRksF {
|
|
22
|
+
font-weight: var(--typography-semibold-font-weight);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.weight-bold-ZxTUEF {
|
|
26
|
+
font-weight: var(--typography-bold-font-weight);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.caps-AWFyAh {
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.monospaceNumbers-wR2ApQ {
|
|
34
|
+
font-variant-numeric: tabular-nums lining-nums;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rowLimit1-Es_q51 {
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
display: block;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rowLimit2-gODO9s, .rowLimit3-LvJseL {
|
|
45
|
+
-webkit-box-orient: vertical;
|
|
46
|
+
display: -webkit-box;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rowLimit2-gODO9s {
|
|
51
|
+
-webkit-line-clamp: 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.rowLimit3-LvJseL {
|
|
55
|
+
-webkit-line-clamp: 3;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./preset_module.css";
|
|
2
|
+
const preset_module = {
|
|
3
|
+
"size-8": "size-8-NlI2Hs",
|
|
4
|
+
size8: "size-8-NlI2Hs",
|
|
5
|
+
"size-9": "size-9-j9FL3_",
|
|
6
|
+
size9: "size-9-j9FL3_",
|
|
7
|
+
"size-10": "size-10-GUrD5L",
|
|
8
|
+
size10: "size-10-GUrD5L",
|
|
9
|
+
"size-11": "size-11-foLp7Q",
|
|
10
|
+
size11: "size-11-foLp7Q",
|
|
11
|
+
"size-12": "size-12-E_PVmd",
|
|
12
|
+
size12: "size-12-E_PVmd",
|
|
13
|
+
"size-13": "size-13-Eu2_On",
|
|
14
|
+
size13: "size-13-Eu2_On",
|
|
15
|
+
"size-14": "size-14-OpEM1B",
|
|
16
|
+
size14: "size-14-OpEM1B",
|
|
17
|
+
"size-15": "size-15-DxWyW2",
|
|
18
|
+
size15: "size-15-DxWyW2",
|
|
19
|
+
"size-16": "size-16-OgafBi",
|
|
20
|
+
size16: "size-16-OgafBi",
|
|
21
|
+
"size-20": "size-20-eTO0D7",
|
|
22
|
+
size20: "size-20-eTO0D7",
|
|
23
|
+
"size-24": "size-24-lZpjdx",
|
|
24
|
+
size24: "size-24-lZpjdx",
|
|
25
|
+
"size-28": "size-28-CY10Yo",
|
|
26
|
+
size28: "size-28-CY10Yo",
|
|
27
|
+
"size-32": "size-32-QPCTWV",
|
|
28
|
+
size32: "size-32-QPCTWV"
|
|
29
|
+
};
|
|
30
|
+
export default preset_module;
|