@join-x5/react-theme 1.0.0-rc
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/colors/additional.d.ts +2 -0
- package/dist/colors/additional.es.js +175 -0
- package/dist/colors/additional.es.js.map +1 -0
- package/dist/colors/index.d.ts +189 -0
- package/dist/colors/index.es.js +16 -0
- package/dist/colors/index.es.js.map +1 -0
- package/dist/colors/more.d.ts +2 -0
- package/dist/colors/more.es.js +162 -0
- package/dist/colors/more.es.js.map +1 -0
- package/dist/colors/theme.d.ts +3 -0
- package/dist/colors/theme.es.js +119 -0
- package/dist/colors/theme.es.js.map +1 -0
- package/dist/colors/types.d.ts +43 -0
- package/dist/colors/ui.d.ts +2 -0
- package/dist/colors/ui.es.js +32 -0
- package/dist/colors/ui.es.js.map +1 -0
- package/dist/common/date.d.ts +5 -0
- package/dist/common/date.es.js +10 -0
- package/dist/common/date.es.js.map +1 -0
- package/dist/common/getQAAttribute.d.ts +7 -0
- package/dist/common/getQAAttribute.es.js +11 -0
- package/dist/common/getQAAttribute.es.js.map +1 -0
- package/dist/common/index.d.ts +6 -0
- package/dist/common/types.d.ts +27 -0
- package/dist/common/types.es.js +6 -0
- package/dist/common/types.es.js.map +1 -0
- package/dist/common/useClickAway.d.ts +3 -0
- package/dist/common/useClickAway.es.js +20 -0
- package/dist/common/useClickAway.es.js.map +1 -0
- package/dist/common/useRefMerge.d.ts +6 -0
- package/dist/common/useRefMerge.es.js +11 -0
- package/dist/common/useRefMerge.es.js.map +1 -0
- package/dist/common/useUpdateEffect.d.ts +3 -0
- package/dist/common/useUpdateEffect.es.js +15 -0
- package/dist/common/useUpdateEffect.es.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +223 -0
- package/dist/index.es.js +79 -0
- package/dist/index.es.js.map +1 -0
- package/dist/scroll/index.d.ts +1 -0
- package/dist/scroll/index.es.js +15 -0
- package/dist/scroll/index.es.js.map +1 -0
- package/dist/shadows/index.d.ts +5 -0
- package/dist/shadows/index.es.js +9 -0
- package/dist/shadows/index.es.js.map +1 -0
- package/dist/spaces/index.d.ts +20 -0
- package/dist/spaces/index.es.js +21 -0
- package/dist/spaces/index.es.js.map +1 -0
- package/dist/types.d.ts +27 -0
- package/dist/types.es.js +6 -0
- package/dist/types.es.js.map +1 -0
- package/dist/typography/Typography.d.ts +14 -0
- package/dist/typography/Typography.es.js +13 -0
- package/dist/typography/Typography.es.js.map +1 -0
- package/dist/typography/index.d.ts +2 -0
- package/dist/typography/types.d.ts +15 -0
- package/dist/typography/types.es.js +82 -0
- package/dist/typography/types.es.js.map +1 -0
- package/package.json +55 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { ThemeName, ThemeProps } from './types';
|
|
2
|
+
export * from './colors';
|
|
3
|
+
export * from './scroll';
|
|
4
|
+
export * from './shadows';
|
|
5
|
+
export * from './spaces';
|
|
6
|
+
export * from './typography';
|
|
7
|
+
export * from './common';
|
|
8
|
+
export * from './types';
|
|
9
|
+
/** Отступы */
|
|
10
|
+
export declare const zIndex: {
|
|
11
|
+
readonly dropdown: 100;
|
|
12
|
+
readonly modal: 800;
|
|
13
|
+
readonly tooltip: 800;
|
|
14
|
+
readonly loader: 900;
|
|
15
|
+
readonly onboarding: 1000;
|
|
16
|
+
};
|
|
17
|
+
export declare const themes: Record<ThemeName, ThemeProps>;
|
|
18
|
+
declare const _default: {
|
|
19
|
+
colors: {
|
|
20
|
+
readonly white: "#ffffff";
|
|
21
|
+
readonly additional: import('./colors').AdditionalPalette;
|
|
22
|
+
readonly ui: import('./colors').UIPalette;
|
|
23
|
+
readonly theme: Record<ThemeName, import('./colors').UIPalette>;
|
|
24
|
+
readonly grey: {
|
|
25
|
+
5: string;
|
|
26
|
+
10: string;
|
|
27
|
+
20: string;
|
|
28
|
+
30: string;
|
|
29
|
+
40: string;
|
|
30
|
+
50: string;
|
|
31
|
+
60: string;
|
|
32
|
+
70: string;
|
|
33
|
+
80: string;
|
|
34
|
+
90: string;
|
|
35
|
+
100: string;
|
|
36
|
+
};
|
|
37
|
+
readonly accent: {
|
|
38
|
+
5: string;
|
|
39
|
+
10: string;
|
|
40
|
+
20: string;
|
|
41
|
+
30: string;
|
|
42
|
+
40: string;
|
|
43
|
+
50: string;
|
|
44
|
+
60: string;
|
|
45
|
+
70: string;
|
|
46
|
+
80: string;
|
|
47
|
+
90: string;
|
|
48
|
+
100: string;
|
|
49
|
+
};
|
|
50
|
+
readonly red: {
|
|
51
|
+
10: string;
|
|
52
|
+
20: string;
|
|
53
|
+
30: string;
|
|
54
|
+
40: string;
|
|
55
|
+
50: string;
|
|
56
|
+
60: string;
|
|
57
|
+
70: string;
|
|
58
|
+
80: string;
|
|
59
|
+
90: string;
|
|
60
|
+
100: string;
|
|
61
|
+
};
|
|
62
|
+
readonly green: {
|
|
63
|
+
10: string;
|
|
64
|
+
20: string;
|
|
65
|
+
30: string;
|
|
66
|
+
40: string;
|
|
67
|
+
50: string;
|
|
68
|
+
60: string;
|
|
69
|
+
70: string;
|
|
70
|
+
80: string;
|
|
71
|
+
90: string;
|
|
72
|
+
100: string;
|
|
73
|
+
};
|
|
74
|
+
readonly lime: {
|
|
75
|
+
10: string;
|
|
76
|
+
20: string;
|
|
77
|
+
30: string;
|
|
78
|
+
40: string;
|
|
79
|
+
50: string;
|
|
80
|
+
60: string;
|
|
81
|
+
70: string;
|
|
82
|
+
80: string;
|
|
83
|
+
90: string;
|
|
84
|
+
100: string;
|
|
85
|
+
};
|
|
86
|
+
readonly indigo: {
|
|
87
|
+
10: string;
|
|
88
|
+
20: string;
|
|
89
|
+
30: string;
|
|
90
|
+
40: string;
|
|
91
|
+
50: string;
|
|
92
|
+
60: string;
|
|
93
|
+
70: string;
|
|
94
|
+
80: string;
|
|
95
|
+
90: string;
|
|
96
|
+
100: string;
|
|
97
|
+
};
|
|
98
|
+
readonly purple: {
|
|
99
|
+
10: string;
|
|
100
|
+
20: string;
|
|
101
|
+
30: string;
|
|
102
|
+
40: string;
|
|
103
|
+
50: string;
|
|
104
|
+
60: string;
|
|
105
|
+
70: string;
|
|
106
|
+
80: string;
|
|
107
|
+
90: string;
|
|
108
|
+
100: string;
|
|
109
|
+
};
|
|
110
|
+
readonly teal: {
|
|
111
|
+
10: string;
|
|
112
|
+
20: string;
|
|
113
|
+
30: string;
|
|
114
|
+
40: string;
|
|
115
|
+
50: string;
|
|
116
|
+
60: string;
|
|
117
|
+
70: string;
|
|
118
|
+
80: string;
|
|
119
|
+
90: string;
|
|
120
|
+
100: string;
|
|
121
|
+
};
|
|
122
|
+
readonly cyan: {
|
|
123
|
+
10: string;
|
|
124
|
+
20: string;
|
|
125
|
+
30: string;
|
|
126
|
+
40: string;
|
|
127
|
+
50: string;
|
|
128
|
+
60: string;
|
|
129
|
+
70: string;
|
|
130
|
+
80: string;
|
|
131
|
+
90: string;
|
|
132
|
+
100: string;
|
|
133
|
+
};
|
|
134
|
+
readonly bluegrey: {
|
|
135
|
+
10: string;
|
|
136
|
+
20: string;
|
|
137
|
+
30: string;
|
|
138
|
+
40: string;
|
|
139
|
+
50: string;
|
|
140
|
+
60: string;
|
|
141
|
+
70: string;
|
|
142
|
+
80: string;
|
|
143
|
+
90: string;
|
|
144
|
+
100: string;
|
|
145
|
+
};
|
|
146
|
+
readonly amber: {
|
|
147
|
+
10: string;
|
|
148
|
+
20: string;
|
|
149
|
+
30: string;
|
|
150
|
+
40: string;
|
|
151
|
+
50: string;
|
|
152
|
+
60: string;
|
|
153
|
+
70: string;
|
|
154
|
+
80: string;
|
|
155
|
+
90: string;
|
|
156
|
+
100: string;
|
|
157
|
+
};
|
|
158
|
+
readonly pink: {
|
|
159
|
+
10: string;
|
|
160
|
+
20: string;
|
|
161
|
+
30: string;
|
|
162
|
+
40: string;
|
|
163
|
+
50: string;
|
|
164
|
+
60: string;
|
|
165
|
+
70: string;
|
|
166
|
+
80: string;
|
|
167
|
+
90: string;
|
|
168
|
+
100: string;
|
|
169
|
+
};
|
|
170
|
+
readonly brown: {
|
|
171
|
+
10: string;
|
|
172
|
+
20: string;
|
|
173
|
+
30: string;
|
|
174
|
+
40: string;
|
|
175
|
+
50: string;
|
|
176
|
+
60: string;
|
|
177
|
+
70: string;
|
|
178
|
+
80: string;
|
|
179
|
+
90: string;
|
|
180
|
+
100: string;
|
|
181
|
+
};
|
|
182
|
+
readonly yellow: {
|
|
183
|
+
10: string;
|
|
184
|
+
20: string;
|
|
185
|
+
30: string;
|
|
186
|
+
40: string;
|
|
187
|
+
50: string;
|
|
188
|
+
60: string;
|
|
189
|
+
70: string;
|
|
190
|
+
80: string;
|
|
191
|
+
90: string;
|
|
192
|
+
100: string;
|
|
193
|
+
};
|
|
194
|
+
readonly orange: {
|
|
195
|
+
10: string;
|
|
196
|
+
20: string;
|
|
197
|
+
30: string;
|
|
198
|
+
40: string;
|
|
199
|
+
50: string;
|
|
200
|
+
60: string;
|
|
201
|
+
70: string;
|
|
202
|
+
80: string;
|
|
203
|
+
90: string;
|
|
204
|
+
100: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
scroll: import('@emotion/utils').SerializedStyles;
|
|
208
|
+
shadows: {
|
|
209
|
+
readonly large: "0px 24px 38px rgba(80, 86, 94, 0.04), 0px 9px 46px rgba(80, 86, 94, 0.04), 0px 11px 15px rgba(80, 86, 94, 0.1)";
|
|
210
|
+
readonly medium: "0px 6px 10px rgba(80, 86, 94, 0.02), 0px 2px 18px rgba(80, 86, 94, 0.12), 0px 4px 5px rgba(80, 86, 94, 0.12)";
|
|
211
|
+
readonly small: "0px 0px 8px rgba(80, 86, 94, 0.08), 0px 1px 2px rgba(80, 86, 94, 0.32)";
|
|
212
|
+
};
|
|
213
|
+
zIndex: {
|
|
214
|
+
readonly dropdown: 100;
|
|
215
|
+
readonly modal: 800;
|
|
216
|
+
readonly tooltip: 800;
|
|
217
|
+
readonly loader: 900;
|
|
218
|
+
readonly onboarding: 1000;
|
|
219
|
+
};
|
|
220
|
+
spaces: import('./spaces').SpaceTokenRecord;
|
|
221
|
+
typography: import('./typography').TypographyVariant;
|
|
222
|
+
};
|
|
223
|
+
export default _default;
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { colors as o } from "./colors/index.es.js";
|
|
2
|
+
import { scroll as m } from "./scroll/index.es.js";
|
|
3
|
+
import { shadows as p } from "./shadows/index.es.js";
|
|
4
|
+
import { spaces as a } from "./spaces/index.es.js";
|
|
5
|
+
import { SpaceTokenName as y } from "./spaces/index.es.js";
|
|
6
|
+
import { Typography as g } from "./typography/Typography.es.js";
|
|
7
|
+
import { typography as e } from "./typography/types.es.js";
|
|
8
|
+
import { ThemeName as t } from "./types.es.js";
|
|
9
|
+
import { Placement as w, SizeTokenValue as A } from "./common/types.es.js";
|
|
10
|
+
import { startOfDay as b } from "./common/date.es.js";
|
|
11
|
+
import { getQAAttribute as N } from "./common/getQAAttribute.es.js";
|
|
12
|
+
import { useClickAway as X } from "./common/useClickAway.es.js";
|
|
13
|
+
import { useRefMerge as D } from "./common/useRefMerge.es.js";
|
|
14
|
+
import { useUpdateEffect as I } from "./common/useUpdateEffect.es.js";
|
|
15
|
+
const r = {
|
|
16
|
+
dropdown: 100,
|
|
17
|
+
modal: 800,
|
|
18
|
+
tooltip: 800,
|
|
19
|
+
loader: 900,
|
|
20
|
+
onboarding: 1e3
|
|
21
|
+
}, n = {
|
|
22
|
+
[t.Base]: {
|
|
23
|
+
typography: e,
|
|
24
|
+
zIndex: r,
|
|
25
|
+
colors: o
|
|
26
|
+
},
|
|
27
|
+
[t.TCX]: {
|
|
28
|
+
typography: e,
|
|
29
|
+
zIndex: r,
|
|
30
|
+
colors: {
|
|
31
|
+
...o,
|
|
32
|
+
...o.theme.tcx
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
[t.TC5]: {
|
|
36
|
+
typography: e,
|
|
37
|
+
zIndex: r,
|
|
38
|
+
colors: {
|
|
39
|
+
...o,
|
|
40
|
+
...o.theme.tc5
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
[t.X5]: {
|
|
44
|
+
typography: e,
|
|
45
|
+
zIndex: r,
|
|
46
|
+
colors: {
|
|
47
|
+
...o,
|
|
48
|
+
...o.theme.x5
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, d = {
|
|
52
|
+
colors: o,
|
|
53
|
+
scroll: m,
|
|
54
|
+
shadows: p,
|
|
55
|
+
zIndex: r,
|
|
56
|
+
spaces: a,
|
|
57
|
+
typography: e
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
w as Placement,
|
|
61
|
+
A as SizeTokenValue,
|
|
62
|
+
y as SpaceTokenName,
|
|
63
|
+
t as ThemeName,
|
|
64
|
+
g as Typography,
|
|
65
|
+
o as colors,
|
|
66
|
+
d as default,
|
|
67
|
+
N as getQAAttribute,
|
|
68
|
+
m as scroll,
|
|
69
|
+
p as shadows,
|
|
70
|
+
a as spaces,
|
|
71
|
+
b as startOfDay,
|
|
72
|
+
n as themes,
|
|
73
|
+
e as typography,
|
|
74
|
+
X as useClickAway,
|
|
75
|
+
D as useRefMerge,
|
|
76
|
+
I as useUpdateEffect,
|
|
77
|
+
r as zIndex
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["import {colors} from './colors';\nimport {scroll} from './scroll';\nimport {shadows} from './shadows';\nimport {spaces} from './spaces';\nimport {typography} from './typography';\nimport {ThemeName} from './types';\n\nimport type {ThemeProps} from './types';\n\nexport * from './colors';\nexport * from './scroll';\nexport * from './shadows';\nexport * from './spaces';\nexport * from './typography';\n\nexport * from './common';\nexport * from './types';\n\n/** Отступы */\nexport const zIndex = {\n dropdown: 100,\n modal: 800,\n tooltip: 800,\n loader: 900,\n onboarding: 1000,\n} as const;\n\nexport const themes: Record<ThemeName, ThemeProps> = {\n [ThemeName.Base]: {\n typography,\n zIndex,\n colors,\n },\n [ThemeName.TCX]: {\n typography,\n zIndex,\n colors: {\n ...colors,\n ...colors.theme.tcx,\n },\n },\n [ThemeName.TC5]: {\n typography,\n zIndex,\n colors: {\n ...colors,\n ...colors.theme.tc5,\n },\n },\n [ThemeName.X5]: {\n typography,\n zIndex,\n colors: {\n ...colors,\n ...colors.theme.x5,\n },\n },\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {colors, scroll, shadows, zIndex, spaces, typography};\n"],"names":["zIndex","dropdown","modal","tooltip","loader","onboarding","themes","ThemeName","Base","typography","colors","TCX","theme","tcx","TC5","tc5","X5","x5","index","scroll","shadows","spaces"],"mappings":";;;;;;;;;;;;;;AAmBO,MAAMA,IAAS;AAAA,EACpBC,UAAU;AAAA,EACVC,OAAO;AAAA,EACPC,SAAS;AAAA,EACTC,QAAQ;AAAA,EACRC,YAAY;AACd,GAEaC,IAAwC;AAAA,EACnD,CAACC,EAAUC,IAAI,GAAG;AAAA,IAChBC,YAAAA;AAAAA,IACAT,QAAAA;AAAAA,IACAU,QAAAA;AAAAA,EACF;AAAA,EACA,CAACH,EAAUI,GAAG,GAAG;AAAA,IACfF,YAAAA;AAAAA,IACAT,QAAAA;AAAAA,IACAU,QAAQ;AAAA,MACN,GAAGA;AAAAA,MACH,GAAGA,EAAOE,MAAMC;AAAAA,IAAAA;AAAAA,EAEpB;AAAA,EACA,CAACN,EAAUO,GAAG,GAAG;AAAA,IACfL,YAAAA;AAAAA,IACAT,QAAAA;AAAAA,IACAU,QAAQ;AAAA,MACN,GAAGA;AAAAA,MACH,GAAGA,EAAOE,MAAMG;AAAAA,IAAAA;AAAAA,EAEpB;AAAA,EACA,CAACR,EAAUS,EAAE,GAAG;AAAA,IACdP,YAAAA;AAAAA,IACAT,QAAAA;AAAAA,IACAU,QAAQ;AAAA,MACN,GAAGA;AAAAA,MACH,GAAGA,EAAOE,MAAMK;AAAAA,IAAAA;AAAAA,EAClB;AAEJ,GAGeC,IAAA;AAAA,EAACR,QAAAA;AAAAA,EAAQS,QAAAA;AAAAA,EAAQC,SAAAA;AAAAA,EAASpB,QAAAA;AAAAA,EAAQqB,QAAAA;AAAAA,EAAQZ,YAAAA;AAAU;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const scroll: import('@emotion/react').SerializedStyles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function o() {
|
|
2
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3
|
+
}
|
|
4
|
+
const b = process.env.NODE_ENV === "production" ? {
|
|
5
|
+
name: "1uy0nzf",
|
|
6
|
+
styles: "::-webkit-scrollbar{top:0;left:0;right:0;width:16px;bottom:0;height:16px;position:absolute;}::-webkit-scrollbar-button{width:0;height:0;display:none;}::-webkit-scrollbar-thumb{border:4px solid rgba(0, 0, 0, 0);min-height:32px;border-radius:16px;background-clip:padding-box;background-color:#cfd4dc;}::-webkit-scrollbar-corner{display:none;background-color:rgba(0, 0, 0, 0);}"
|
|
7
|
+
} : {
|
|
8
|
+
name: "7f5j1q-scroll",
|
|
9
|
+
styles: "::-webkit-scrollbar{top:0;left:0;right:0;width:16px;bottom:0;height:16px;position:absolute;}::-webkit-scrollbar-button{width:0;height:0;display:none;}::-webkit-scrollbar-thumb{border:4px solid rgba(0, 0, 0, 0);min-height:32px;border-radius:16px;background-clip:padding-box;background-color:#cfd4dc;}::-webkit-scrollbar-corner{display:none;background-color:rgba(0, 0, 0, 0);};label:scroll;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NhZHlrb3ZzZC9qb2luLXg1L3BhY2thZ2VzL3RoZW1lL3NyYy9zY3JvbGwvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUV5QiIsImZpbGUiOiIvaG9tZS9zYWR5a292c2Qvam9pbi14NS9wYWNrYWdlcy90aGVtZS9zcmMvc2Nyb2xsL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Y3NzfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBzY3JvbGwgPSBjc3NgXG4gIDo6LXdlYmtpdC1zY3JvbGxiYXIge1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIHJpZ2h0OiAwO1xuICAgIHdpZHRoOiAxNnB4O1xuICAgIGJvdHRvbTogMDtcbiAgICBoZWlnaHQ6IDE2cHg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICB9XG4gIDo6LXdlYmtpdC1zY3JvbGxiYXItYnV0dG9uIHtcbiAgICB3aWR0aDogMDtcbiAgICBoZWlnaHQ6IDA7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxuICA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHtcbiAgICBib3JkZXI6IDRweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDApO1xuICAgIG1pbi1oZWlnaHQ6IDMycHg7XG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcbiAgICBiYWNrZ3JvdW5kLWNsaXA6IHBhZGRpbmctYm94O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNjZmQ0ZGM7XG4gIH1cbiAgOjotd2Via2l0LXNjcm9sbGJhci1jb3JuZXIge1xuICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwKTtcbiAgfVxuYDtcbiJdfQ== */",
|
|
10
|
+
toString: o
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
b as scroll
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/scroll/index.tsx"],"sourcesContent":["import {css} from '@emotion/react';\n\nexport const scroll = css`\n ::-webkit-scrollbar {\n top: 0;\n left: 0;\n right: 0;\n width: 16px;\n bottom: 0;\n height: 16px;\n position: absolute;\n }\n ::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n }\n ::-webkit-scrollbar-thumb {\n border: 4px solid rgba(0, 0, 0, 0);\n min-height: 32px;\n border-radius: 16px;\n background-clip: padding-box;\n background-color: #cfd4dc;\n }\n ::-webkit-scrollbar-corner {\n display: none;\n background-color: rgba(0, 0, 0, 0);\n }\n`;\n"],"names":["scroll","process","env","NODE_ENV","name","styles","toString","_EMOTION_STRINGIFIED_CSS_ERROR__"],"mappings":";;;AAEO,MAAMA,IAAMC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,UAAAC;AAAA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const shadows: {
|
|
2
|
+
readonly large: "0px 24px 38px rgba(80, 86, 94, 0.04), 0px 9px 46px rgba(80, 86, 94, 0.04), 0px 11px 15px rgba(80, 86, 94, 0.1)";
|
|
3
|
+
readonly medium: "0px 6px 10px rgba(80, 86, 94, 0.02), 0px 2px 18px rgba(80, 86, 94, 0.12), 0px 4px 5px rgba(80, 86, 94, 0.12)";
|
|
4
|
+
readonly small: "0px 0px 8px rgba(80, 86, 94, 0.08), 0px 1px 2px rgba(80, 86, 94, 0.32)";
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const p = "0px 0px 8px rgba(80, 86, 94, 0.08), 0px 1px 2px rgba(80, 86, 94, 0.32)", x = "0px 6px 10px rgba(80, 86, 94, 0.02), 0px 2px 18px rgba(80, 86, 94, 0.12), 0px 4px 5px rgba(80, 86, 94, 0.12)", a = "0px 24px 38px rgba(80, 86, 94, 0.04), 0px 9px 46px rgba(80, 86, 94, 0.04), 0px 11px 15px rgba(80, 86, 94, 0.1)", r = {
|
|
2
|
+
large: a,
|
|
3
|
+
medium: x,
|
|
4
|
+
small: p
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
r as shadows
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/shadows/index.ts"],"sourcesContent":["const small = '0px 0px 8px rgba(80, 86, 94, 0.08), 0px 1px 2px rgba(80, 86, 94, 0.32)';\nconst medium =\n '0px 6px 10px rgba(80, 86, 94, 0.02), 0px 2px 18px rgba(80, 86, 94, 0.12), 0px 4px 5px rgba(80, 86, 94, 0.12)';\nconst large =\n '0px 24px 38px rgba(80, 86, 94, 0.04), 0px 9px 46px rgba(80, 86, 94, 0.04), 0px 11px 15px rgba(80, 86, 94, 0.1)';\n\nexport const shadows = {large, medium, small} as const;\n"],"names":["small","medium","large","shadows"],"mappings":"AAAA,MAAMA,IAAQ,0EACRC,IACJ,gHACIC,IACJ,kHAEWC,IAAU;AAAA,EAACD,OAAAA;AAAAA,EAAOD,QAAAA;AAAAA,EAAQD,OAAAA;AAAK;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type SpaceTokenValue = number;
|
|
2
|
+
export declare enum SpaceTokenName {
|
|
3
|
+
X0 = "x0",
|
|
4
|
+
X1 = "x1",
|
|
5
|
+
X2 = "x2",
|
|
6
|
+
X3 = "x3",
|
|
7
|
+
X4 = "x4",
|
|
8
|
+
X5 = "x5",
|
|
9
|
+
X6 = "x6",
|
|
10
|
+
X8 = "x8",
|
|
11
|
+
X10 = "x10",
|
|
12
|
+
X12 = "x12",
|
|
13
|
+
X16 = "x16",
|
|
14
|
+
X20 = "x20"
|
|
15
|
+
}
|
|
16
|
+
export type SpaceJoinArgs = Array<SpaceTokenName | `${SpaceTokenName}`>;
|
|
17
|
+
export type SpaceTokenRecord = {
|
|
18
|
+
join: (...args: SpaceJoinArgs) => string;
|
|
19
|
+
} & Record<SpaceTokenName, SpaceTokenValue>;
|
|
20
|
+
export declare const spaces: SpaceTokenRecord;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var r = /* @__PURE__ */ ((x) => (x.X0 = "x0", x.X1 = "x1", x.X2 = "x2", x.X3 = "x3", x.X4 = "x4", x.X5 = "x5", x.X6 = "x6", x.X8 = "x8", x.X10 = "x10", x.X12 = "x12", x.X16 = "x16", x.X20 = "x20", x))(r || {});
|
|
2
|
+
const s = {
|
|
3
|
+
x0: 0,
|
|
4
|
+
x1: 2,
|
|
5
|
+
x2: 4,
|
|
6
|
+
x3: 6,
|
|
7
|
+
x4: 8,
|
|
8
|
+
x5: 10,
|
|
9
|
+
x6: 12,
|
|
10
|
+
x8: 16,
|
|
11
|
+
x10: 20,
|
|
12
|
+
x12: 24,
|
|
13
|
+
x16: 32,
|
|
14
|
+
x20: 40,
|
|
15
|
+
join: (...x) => x.map((X) => `${s[X]}px`).join(" ")
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
r as SpaceTokenName,
|
|
19
|
+
s as spaces
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/spaces/index.ts"],"sourcesContent":["export type SpaceTokenValue = number;\n\nexport enum SpaceTokenName {\n X0 = 'x0',\n X1 = 'x1',\n X2 = 'x2',\n X3 = 'x3',\n X4 = 'x4',\n X5 = 'x5',\n X6 = 'x6',\n X8 = 'x8',\n X10 = 'x10',\n X12 = 'x12',\n X16 = 'x16',\n X20 = 'x20',\n}\n\nexport type SpaceJoinArgs = Array<SpaceTokenName | `${SpaceTokenName}`>;\n\nexport type SpaceTokenRecord = {\n join: (...args: SpaceJoinArgs) => string;\n} & Record<SpaceTokenName, SpaceTokenValue>;\n\nexport const spaces: SpaceTokenRecord = {\n [SpaceTokenName.X0]: 0,\n [SpaceTokenName.X1]: 2,\n [SpaceTokenName.X2]: 4,\n [SpaceTokenName.X3]: 6,\n [SpaceTokenName.X4]: 8,\n [SpaceTokenName.X5]: 10,\n [SpaceTokenName.X6]: 12,\n [SpaceTokenName.X8]: 16,\n [SpaceTokenName.X10]: 20,\n [SpaceTokenName.X12]: 24,\n [SpaceTokenName.X16]: 32,\n [SpaceTokenName.X20]: 40,\n\n join: (...args) => args.map(key => `${spaces[key]}px`).join(' '),\n};\n"],"names":["SpaceTokenName","X0","X1","X2","X3","X4","X5","X6","X8","X10","X12","X16","X20","spaces","join","args","map","key"],"mappings":"AAEYA,IAAAA,sBAAAA,OACVC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,KAAK,MACLC,EAAAA,MAAM,OACNC,EAAAA,MAAM,OACNC,EAAAA,MAAM,OACNC,EAAAA,MAAM,OAZIZ,IAAAA,KAAAA,CAAAA,CAAAA;AAqBL,MAAMa,IAA2B;AAAA,EACrCb,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,IAAoB;AAAA,EACpBA,KAAqB;AAAA,EACrBA,KAAqB;AAAA,EACrBA,KAAqB;AAAA,EACrBA,KAAqB;AAAA,EAEtBc,MAAMA,IAAIC,MAASA,EAAKC,IAAIC,CAAAA,MAAO,GAAGJ,EAAOI,CAAG,CAAC,IAAI,EAAEH,KAAK,GAAG;AACjE;"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Colors } from './colors';
|
|
2
|
+
import { TypographyVariant } from './typography';
|
|
3
|
+
export declare enum ThemeName {
|
|
4
|
+
Base = "base",
|
|
5
|
+
TCX = "tcx",
|
|
6
|
+
TC5 = "tc5",
|
|
7
|
+
X5 = "x5"
|
|
8
|
+
}
|
|
9
|
+
export type ZIndex = {
|
|
10
|
+
dropdown: number;
|
|
11
|
+
modal: number;
|
|
12
|
+
tooltip: number;
|
|
13
|
+
loader: number;
|
|
14
|
+
onboarding: number;
|
|
15
|
+
};
|
|
16
|
+
export type ThemeProps = {
|
|
17
|
+
/** Цвета */
|
|
18
|
+
colors: Colors;
|
|
19
|
+
/** Размеры текста и шрифты */
|
|
20
|
+
typography: TypographyVariant;
|
|
21
|
+
/** Отступы */
|
|
22
|
+
zIndex: ZIndex;
|
|
23
|
+
};
|
|
24
|
+
declare module '@emotion/react' {
|
|
25
|
+
interface Theme extends ThemeProps {
|
|
26
|
+
}
|
|
27
|
+
}
|
package/dist/types.es.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.es.js","sources":["../src/types.ts"],"sourcesContent":["import '@emotion/react';\n\nimport type {Colors} from './colors';\nimport type {TypographyVariant} from './typography';\n\nexport enum ThemeName {\n Base = 'base',\n TCX = 'tcx',\n TC5 = 'tc5',\n X5 = 'x5',\n}\n\nexport type ZIndex = {\n dropdown: number;\n modal: number;\n tooltip: number;\n loader: number;\n onboarding: number;\n};\n\nexport type ThemeProps = {\n /** Цвета */\n colors: Colors;\n\n /** Размеры текста и шрифты */\n typography: TypographyVariant;\n\n /** Отступы */\n zIndex: ZIndex;\n};\n\ndeclare module '@emotion/react' {\n export interface Theme extends ThemeProps {}\n}\n"],"names":["ThemeName","Base","TCX","TC5","X5"],"mappings":";AAKYA,IAAAA,sBAAAA,OACVC,EAAAA,OAAO,QACPC,EAAAA,MAAM,OACNC,EAAAA,MAAM,OACNC,EAAAA,KAAK,MAJKJ,IAAAA,KAAAA,CAAAA,CAAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
import { TypographyVariant } from './types';
|
|
3
|
+
export type TypographyProps = {
|
|
4
|
+
/** Вариант */
|
|
5
|
+
variant: keyof TypographyVariant;
|
|
6
|
+
/** TagName - по умолчанию div */
|
|
7
|
+
as?: ElementType;
|
|
8
|
+
} & HTMLAttributes<HTMLDivElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
9
|
+
export declare const Typography: import('react').ForwardRefExoticComponent<{
|
|
10
|
+
/** Вариант */
|
|
11
|
+
variant: keyof TypographyVariant;
|
|
12
|
+
/** TagName - по умолчанию div */
|
|
13
|
+
as?: ElementType;
|
|
14
|
+
} & HTMLAttributes<HTMLDivElement> & AnchorHTMLAttributes<HTMLAnchorElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as b } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import Z from "@emotion/styled/base";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
const i = /* @__PURE__ */ Z("div", process.env.NODE_ENV === "production" ? {
|
|
5
|
+
target: "e195o4we0"
|
|
6
|
+
} : {
|
|
7
|
+
target: "e195o4we0",
|
|
8
|
+
label: "Container"
|
|
9
|
+
})((c) => c.theme.typography[c.variant], process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3NhZHlrb3ZzZC9qb2luLXg1L3BhY2thZ2VzL3RoZW1lL3NyYy90eXBvZ3JhcGh5L1R5cG9ncmFwaHkudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVrQiIsImZpbGUiOiIvaG9tZS9zYWR5a292c2Qvam9pbi14NS9wYWNrYWdlcy90aGVtZS9zcmMvdHlwb2dyYXBoeS9UeXBvZ3JhcGh5LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Zm9yd2FyZFJlZn0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgdHlwZSB7QW5jaG9ySFRNTEF0dHJpYnV0ZXMsIEVsZW1lbnRUeXBlLCBIVE1MQXR0cmlidXRlc30gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgdHlwZSB7VHlwb2dyYXBoeVZhcmlhbnR9IGZyb20gJy4vdHlwZXMnO1xuXG5leHBvcnQgdHlwZSBUeXBvZ3JhcGh5UHJvcHMgPSB7XG4gIC8qKiDQktCw0YDQuNCw0L3RgiAqL1xuICB2YXJpYW50OiBrZXlvZiBUeXBvZ3JhcGh5VmFyaWFudDtcbiAgLyoqIFRhZ05hbWUgLSDQv9C+INGD0LzQvtC70YfQsNC90LjRjiBkaXYgKi9cbiAgYXM/OiBFbGVtZW50VHlwZTtcbn0gJiBIVE1MQXR0cmlidXRlczxIVE1MRGl2RWxlbWVudD4gJlxuICBBbmNob3JIVE1MQXR0cmlidXRlczxIVE1MQW5jaG9yRWxlbWVudD47XG5cbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXY8UGljazxUeXBvZ3JhcGh5UHJvcHMsICd2YXJpYW50Jz4+KHByb3BzID0+IHByb3BzLnRoZW1lLnR5cG9ncmFwaHlbcHJvcHMudmFyaWFudF0pO1xuXG5leHBvcnQgY29uc3QgVHlwb2dyYXBoeSA9IGZvcndhcmRSZWY8SFRNTERpdkVsZW1lbnQsIFR5cG9ncmFwaHlQcm9wcz4oKHByb3BzLCByZWYpID0+IChcbiAgPENvbnRhaW5lciB7Li4ucHJvcHN9IHJlZj17cmVmfSAvPlxuKSk7XG4iXX0= */"), e = n((c, l) => /* @__PURE__ */ b(i, { ...c, ref: l }));
|
|
10
|
+
export {
|
|
11
|
+
e as Typography
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Typography.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.es.js","sources":["../../src/typography/Typography.tsx"],"sourcesContent":["import {forwardRef} from 'react';\nimport styled from '@emotion/styled';\n\nimport type {AnchorHTMLAttributes, ElementType, HTMLAttributes} from 'react';\n\nimport type {TypographyVariant} from './types';\n\nexport type TypographyProps = {\n /** Вариант */\n variant: keyof TypographyVariant;\n /** TagName - по умолчанию div */\n as?: ElementType;\n} & HTMLAttributes<HTMLDivElement> &\n AnchorHTMLAttributes<HTMLAnchorElement>;\n\nconst Container = styled.div<Pick<TypographyProps, 'variant'>>(props => props.theme.typography[props.variant]);\n\nexport const Typography = forwardRef<HTMLDivElement, TypographyProps>((props, ref) => (\n <Container {...props} ref={ref} />\n));\n"],"names":["Container","_styled","process","env","NODE_ENV","target","label","props","theme","typography","variant","Typography","forwardRef","ref"],"mappings":";;;AAeA,MAAMA,IAAY,gBAAAC,EAAA,OAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAA,QAAA;AAAA,EAAAC,OAAA;AAAA,CAAU,EAAmCC,CAAAA,MAASA,EAAMC,MAAMC,WAAWF,EAAMG,OAAO,GAACR,QAAAC,IAAAC,aAAC,eAAA,KAAA,6xCAAA,GAEjGO,IAAaC,EAA4C,CAACL,GAAOM,wBAC3Eb,GAAcO,EAAAA,GAAAA,GAAO,KAAAM,GAAS,CAChC;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties } from '../common';
|
|
2
|
+
export type TypographyVariant = {
|
|
3
|
+
base: CSSProperties;
|
|
4
|
+
h1: CSSProperties;
|
|
5
|
+
h2: CSSProperties;
|
|
6
|
+
h3: CSSProperties;
|
|
7
|
+
h4: CSSProperties;
|
|
8
|
+
h5: CSSProperties;
|
|
9
|
+
h6: CSSProperties;
|
|
10
|
+
p1: CSSProperties;
|
|
11
|
+
p1compact: CSSProperties;
|
|
12
|
+
p2: CSSProperties;
|
|
13
|
+
p3: CSSProperties;
|
|
14
|
+
};
|
|
15
|
+
export declare const typography: TypographyVariant;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
fontFamily: '"X5 Sans UI", Roboto, Arial, Helvetica, sans-serif',
|
|
3
|
+
WebkitFontSmoothing: "antialiased",
|
|
4
|
+
MozOsxFontSmoothing: "grayscale"
|
|
5
|
+
}, e = {
|
|
6
|
+
base: t,
|
|
7
|
+
h1: {
|
|
8
|
+
...t,
|
|
9
|
+
fontSize: "36px",
|
|
10
|
+
lineHeight: "44px",
|
|
11
|
+
fontWeight: "400",
|
|
12
|
+
letterSpacing: "-0.2px"
|
|
13
|
+
},
|
|
14
|
+
h2: {
|
|
15
|
+
...t,
|
|
16
|
+
fontSize: "28px",
|
|
17
|
+
lineHeight: "36px",
|
|
18
|
+
fontWeight: "500",
|
|
19
|
+
letterSpacing: "0px"
|
|
20
|
+
},
|
|
21
|
+
h3: {
|
|
22
|
+
...t,
|
|
23
|
+
fontSize: "20px",
|
|
24
|
+
lineHeight: "24px",
|
|
25
|
+
fontWeight: "500",
|
|
26
|
+
letterSpacing: "0.12px"
|
|
27
|
+
},
|
|
28
|
+
h4: {
|
|
29
|
+
...t,
|
|
30
|
+
fontSize: "16px",
|
|
31
|
+
lineHeight: "20px",
|
|
32
|
+
fontWeight: "500",
|
|
33
|
+
letterSpacing: "0.12px"
|
|
34
|
+
},
|
|
35
|
+
h5: {
|
|
36
|
+
...t,
|
|
37
|
+
fontSize: "14px",
|
|
38
|
+
lineHeight: "16px",
|
|
39
|
+
fontWeight: "500",
|
|
40
|
+
letterSpacing: "0.08px"
|
|
41
|
+
},
|
|
42
|
+
h6: {
|
|
43
|
+
...t,
|
|
44
|
+
fontSize: "12px",
|
|
45
|
+
lineHeight: "16px",
|
|
46
|
+
fontWeight: "500",
|
|
47
|
+
letterSpacing: "1.2px",
|
|
48
|
+
textTransform: "uppercase"
|
|
49
|
+
},
|
|
50
|
+
p1: {
|
|
51
|
+
...t,
|
|
52
|
+
fontSize: "16px",
|
|
53
|
+
lineHeight: "24px",
|
|
54
|
+
fontWeight: "400",
|
|
55
|
+
letterSpacing: "0.12px"
|
|
56
|
+
},
|
|
57
|
+
p1compact: {
|
|
58
|
+
...t,
|
|
59
|
+
fontSize: "16px",
|
|
60
|
+
lineHeight: "20px",
|
|
61
|
+
fontWeight: "400",
|
|
62
|
+
letterSpacing: "0.12px"
|
|
63
|
+
},
|
|
64
|
+
p2: {
|
|
65
|
+
...t,
|
|
66
|
+
fontSize: "14px",
|
|
67
|
+
lineHeight: "16px",
|
|
68
|
+
fontWeight: "400",
|
|
69
|
+
letterSpacing: "0.08px"
|
|
70
|
+
},
|
|
71
|
+
p3: {
|
|
72
|
+
...t,
|
|
73
|
+
fontSize: "12px",
|
|
74
|
+
lineHeight: "16px",
|
|
75
|
+
fontWeight: "400",
|
|
76
|
+
letterSpacing: "0.08px"
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
e as typography
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=types.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.es.js","sources":["../../src/typography/types.ts"],"sourcesContent":["import type {CSSProperties} from '../common';\n\nconst base = {\n fontFamily: '\"X5 Sans UI\", Roboto, Arial, Helvetica, sans-serif',\n WebkitFontSmoothing: 'antialiased',\n MozOsxFontSmoothing: 'grayscale',\n};\n\nexport type TypographyVariant = {\n base: CSSProperties;\n h1: CSSProperties;\n h2: CSSProperties;\n h3: CSSProperties;\n h4: CSSProperties;\n h5: CSSProperties;\n h6: CSSProperties;\n p1: CSSProperties;\n p1compact: CSSProperties;\n p2: CSSProperties;\n p3: CSSProperties;\n};\n\nexport const typography: TypographyVariant = {\n base,\n h1: {\n ...base,\n fontSize: '36px',\n lineHeight: '44px',\n fontWeight: '400',\n letterSpacing: '-0.2px',\n },\n h2: {\n ...base,\n fontSize: '28px',\n lineHeight: '36px',\n fontWeight: '500',\n letterSpacing: '0px',\n },\n h3: {\n ...base,\n fontSize: '20px',\n lineHeight: '24px',\n fontWeight: '500',\n letterSpacing: '0.12px',\n },\n h4: {\n ...base,\n fontSize: '16px',\n lineHeight: '20px',\n fontWeight: '500',\n letterSpacing: '0.12px',\n },\n h5: {\n ...base,\n fontSize: '14px',\n lineHeight: '16px',\n fontWeight: '500',\n letterSpacing: '0.08px',\n },\n h6: {\n ...base,\n fontSize: '12px',\n lineHeight: '16px',\n fontWeight: '500',\n letterSpacing: '1.2px',\n textTransform: 'uppercase',\n },\n p1: {\n ...base,\n fontSize: '16px',\n lineHeight: '24px',\n fontWeight: '400',\n letterSpacing: '0.12px',\n },\n p1compact: {\n ...base,\n fontSize: '16px',\n lineHeight: '20px',\n fontWeight: '400',\n letterSpacing: '0.12px',\n },\n p2: {\n ...base,\n fontSize: '14px',\n lineHeight: '16px',\n fontWeight: '400',\n letterSpacing: '0.08px',\n },\n p3: {\n ...base,\n fontSize: '12px',\n lineHeight: '16px',\n fontWeight: '400',\n letterSpacing: '0.08px',\n },\n} as const;\n"],"names":["base","fontFamily","WebkitFontSmoothing","MozOsxFontSmoothing","typography","h1","fontSize","lineHeight","fontWeight","letterSpacing","h2","h3","h4","h5","h6","textTransform","p1","p1compact","p2","p3"],"mappings":"AAEA,MAAMA,IAAO;AAAA,EACXC,YAAY;AAAA,EACZC,qBAAqB;AAAA,EACrBC,qBAAqB;AACvB,GAgBaC,IAAgC;AAAA,EAC3CJ,MAAAA;AAAAA,EACAK,IAAI;AAAA,IACF,GAAGL;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAC,IAAI;AAAA,IACF,GAAGV;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAE,IAAI;AAAA,IACF,GAAGX;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAG,IAAI;AAAA,IACF,GAAGZ;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAI,IAAI;AAAA,IACF,GAAGb;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAK,IAAI;AAAA,IACF,GAAGd;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,IACfM,eAAe;AAAA,EACjB;AAAA,EACAC,IAAI;AAAA,IACF,GAAGhB;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAQ,WAAW;AAAA,IACT,GAAGjB;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAS,IAAI;AAAA,IACF,GAAGlB;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EACjB;AAAA,EACAU,IAAI;AAAA,IACF,GAAGnB;AAAAA,IACHM,UAAU;AAAA,IACVC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,eAAe;AAAA,EAAA;AAEnB;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@join-x5/react-theme",
|
|
3
|
+
"version": "1.0.0-rc",
|
|
4
|
+
"private": false,
|
|
5
|
+
"homepage": "https://www.figma.com/design/c0xn3Ib5FZSfPcnfsOIrmy4i/Join-Web%3A-component",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.es.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc --noEmit && vite build",
|
|
15
|
+
"lint": "eslint src --ignore-pattern \"**/*.stories.tsx\""
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
19
|
+
"@eslint/js": "^9.3.0",
|
|
20
|
+
"@laynezh/vite-plugin-lib-assets": "^0.5.24",
|
|
21
|
+
"@types/react": "^18.3.11",
|
|
22
|
+
"@types/react-dom": "^18.3.0",
|
|
23
|
+
"@types/react-window": "^1.8.8",
|
|
24
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
25
|
+
"eslint": "^8.57.0",
|
|
26
|
+
"eslint-config-prettier": "^9.1.0",
|
|
27
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
28
|
+
"eslint-plugin-import": "^2.31.0",
|
|
29
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
30
|
+
"eslint-plugin-react": "^7.34.1",
|
|
31
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
32
|
+
"eslint-plugin-workspaces": "^0.10.1",
|
|
33
|
+
"jsdom": "^25.0.1",
|
|
34
|
+
"prettier": "3.3.3",
|
|
35
|
+
"react": "^18.3.1",
|
|
36
|
+
"react-dom": "^18.3.1",
|
|
37
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
38
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
39
|
+
"typescript": "^5.4.5",
|
|
40
|
+
"typescript-eslint": "^7.10.0",
|
|
41
|
+
"vite": "^5.4.8",
|
|
42
|
+
"vite-plugin-dts": "^4.2.4",
|
|
43
|
+
"vite-tsconfig-paths": "^5.0.1"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@emotion/react": "^11.11.4",
|
|
47
|
+
"@emotion/styled": "^11.11.5"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@emotion/react": "^11.11.4",
|
|
51
|
+
"@emotion/styled": "^11.11.5",
|
|
52
|
+
"react": ">=17.0.0",
|
|
53
|
+
"react-dom": ">=17.0.0"
|
|
54
|
+
}
|
|
55
|
+
}
|