@validationcloud/fractal-ui 0.0.1 → 1.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/components/button/button.d.ts +15 -0
- package/dist/components/button/button.stories.d.ts +26 -0
- package/dist/fractal-ui.d.ts +1 -0
- package/dist/fractal-ui.js +3228 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/tailwind-merge.d.ts +1 -0
- package/dist/styles/animation.css +83 -0
- package/dist/styles/colors.css +74 -0
- package/dist/styles/gap.css +39 -0
- package/dist/styles/gradients.css +105 -0
- package/dist/styles/scrollbar.css +37 -0
- package/dist/{tailwind.css → styles/tailwind.css} +2 -4
- package/dist/styles/typography.css +371 -0
- package/package.json +11 -2
- package/dist/components/Test/test.d.ts +0 -3
- package/dist/components/Test/test.stories.d.ts +0 -8
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
@utility tg-display-1 {
|
|
2
|
+
font-family: var(--font-family-display);
|
|
3
|
+
font-size: 4.875rem;
|
|
4
|
+
font-weight: 700;
|
|
5
|
+
line-height: 1em;
|
|
6
|
+
letter-spacing: 0.007em;
|
|
7
|
+
@variant min-xs {
|
|
8
|
+
font-size: 8.125rem;
|
|
9
|
+
}
|
|
10
|
+
@variant min-md {
|
|
11
|
+
font-size: 9rem;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
line-height: 0.8em;
|
|
14
|
+
letter-spacing: -0.02em;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@utility tg-display-2 {
|
|
19
|
+
font-family: var(--font-family-display);
|
|
20
|
+
font-size: 3.75rem;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
line-height: 1em;
|
|
23
|
+
letter-spacing: 0.02em;
|
|
24
|
+
@variant min-xs {
|
|
25
|
+
font-size: 6rem;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
letter-spacing: -0.007em;
|
|
28
|
+
}
|
|
29
|
+
@variant min-md {
|
|
30
|
+
font-size: 6rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@utility tg-headline-1 {
|
|
35
|
+
font-family: var(--font-family-display);
|
|
36
|
+
font-size: 3rem;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
line-height: 1em;
|
|
39
|
+
letter-spacing: 0.024em;
|
|
40
|
+
@variant min-xs {
|
|
41
|
+
font-size: 4.25rem;
|
|
42
|
+
}
|
|
43
|
+
@variant min-md {
|
|
44
|
+
font-size: 5rem;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@utility tg-headline-2 {
|
|
50
|
+
font-family: var(--font-family-display);
|
|
51
|
+
font-size: 2.5rem;
|
|
52
|
+
line-height: 1em;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
letter-spacing: 0.004em;
|
|
55
|
+
@variant min-xs {
|
|
56
|
+
font-size: 3.5rem;
|
|
57
|
+
}
|
|
58
|
+
@variant min-md {
|
|
59
|
+
font-size: 4rem;
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
line-height: 1.1em;
|
|
62
|
+
letter-spacing: 0.01em;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility tg-headline-3 {
|
|
67
|
+
font-family: var(--font-family-display);
|
|
68
|
+
font-size: 2rem;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
line-height: 1em;
|
|
71
|
+
letter-spacing: -0.02em;
|
|
72
|
+
@variant min-xs {
|
|
73
|
+
font-size: 2.5rem;
|
|
74
|
+
letter-spacing: 0em;
|
|
75
|
+
}
|
|
76
|
+
@variant min-md {
|
|
77
|
+
font-size: 2.75rem;
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
line-height: 1.1em;
|
|
80
|
+
letter-spacing: 0.018em;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@utility tg-headline-4 {
|
|
85
|
+
font-family: var(--font-family-display);
|
|
86
|
+
font-size: 1.5rem;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: 1em;
|
|
89
|
+
letter-spacing: -0.042em;
|
|
90
|
+
@variant min-xs {
|
|
91
|
+
font-size: 2rem;
|
|
92
|
+
line-height: 1.3em;
|
|
93
|
+
letter-spacing: 0.015em;
|
|
94
|
+
}
|
|
95
|
+
@variant min-md {
|
|
96
|
+
font-size: 2.25rem;
|
|
97
|
+
line-height: 1.1em;
|
|
98
|
+
font-weight: 700;
|
|
99
|
+
letter-spacing: -0.02em;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@utility tg-headline-5 {
|
|
104
|
+
font-family: var(--font-family-display);
|
|
105
|
+
font-size: 1.25rem;
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
line-height: 1.1em;
|
|
108
|
+
letter-spacing: -0.042em;
|
|
109
|
+
@variant min-xs {
|
|
110
|
+
font-size: 1.625rem;
|
|
111
|
+
letter-spacing: -0.037em;
|
|
112
|
+
}
|
|
113
|
+
@variant min-md {
|
|
114
|
+
font-size: 2rem;
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
line-height: 1.2em;
|
|
117
|
+
letter-spacing: 0.015em;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@utility tg-headline-6 {
|
|
122
|
+
font-family: var(--font-family-display);
|
|
123
|
+
font-size: 1.125rem;
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
line-height: 1em;
|
|
126
|
+
letter-spacing: -0.02em;
|
|
127
|
+
@variant min-xs {
|
|
128
|
+
font-size: 1.375rem;
|
|
129
|
+
font-weight: 700;
|
|
130
|
+
line-height: 1.2em;
|
|
131
|
+
letter-spacing: -0.015em;
|
|
132
|
+
}
|
|
133
|
+
@variant min-md {
|
|
134
|
+
font-size: 1.5rem;
|
|
135
|
+
line-height: 1.33em;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@utility tg-title-and-quote-bold {
|
|
140
|
+
font-family: var(--font-family-body);
|
|
141
|
+
font-size: 1rem;
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
line-height: 1.1em;
|
|
144
|
+
letter-spacing: -0.025em;
|
|
145
|
+
@variant min-xs {
|
|
146
|
+
font-size: 1.125rem;
|
|
147
|
+
line-height: 1.2em;
|
|
148
|
+
}
|
|
149
|
+
@variant min-md {
|
|
150
|
+
font-size: 1.25rem;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
letter-spacing: 0em;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@utility tg-title-and-quote {
|
|
157
|
+
font-family: var(--font-family-body);
|
|
158
|
+
font-size: 1rem;
|
|
159
|
+
font-weight: 400;
|
|
160
|
+
line-height: 1.1em;
|
|
161
|
+
letter-spacing: -0.025em;
|
|
162
|
+
@variant min-xs {
|
|
163
|
+
font-size: 1.125rem;
|
|
164
|
+
line-height: 1.2em;
|
|
165
|
+
letter-spacing: 0em;
|
|
166
|
+
}
|
|
167
|
+
@variant min-md {
|
|
168
|
+
font-size: 1.25rem;
|
|
169
|
+
letter-spacing: -0.025em;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@utility tg-body-large-bold {
|
|
174
|
+
font-family: var(--font-family-body);
|
|
175
|
+
font-size: 0.875em;
|
|
176
|
+
font-weight: 700;
|
|
177
|
+
line-height: 1.1em;
|
|
178
|
+
letter-spacing: -0.025em;
|
|
179
|
+
@variant min-xs {
|
|
180
|
+
font-size: 1rem;
|
|
181
|
+
line-height: 1.2em;
|
|
182
|
+
}
|
|
183
|
+
@variant min-md {
|
|
184
|
+
font-size: 1.125rem;
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
letter-spacing: 0em;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@utility tg-body-large {
|
|
191
|
+
font-family: var(--font-family-body);
|
|
192
|
+
font-size: 1.125rem;
|
|
193
|
+
font-weight: 400;
|
|
194
|
+
line-height: 1.1em;
|
|
195
|
+
letter-spacing: -0.025em;
|
|
196
|
+
@variant min-xs {
|
|
197
|
+
font-size: 1rem;
|
|
198
|
+
line-height: 1.2em;
|
|
199
|
+
}
|
|
200
|
+
@variant min-md {
|
|
201
|
+
font-size: 1.125rem;
|
|
202
|
+
letter-spacing: 0em;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility tg-subtitle-bold {
|
|
207
|
+
font-family: var(--font-family-body);
|
|
208
|
+
font-size: 0.8125rem;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
line-height: normal;
|
|
211
|
+
letter-spacing: 0em;
|
|
212
|
+
@variant min-xs {
|
|
213
|
+
font-size: 0.875rem;
|
|
214
|
+
font-weight: 700;
|
|
215
|
+
line-height: 1.1em;
|
|
216
|
+
letter-spacing: -0.01em;
|
|
217
|
+
}
|
|
218
|
+
@variant min-md {
|
|
219
|
+
font-size: 1rem;
|
|
220
|
+
font-weight: 600;
|
|
221
|
+
line-height: 1.2em;
|
|
222
|
+
letter-spacing: -0.02em;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility tg-subtitle {
|
|
227
|
+
font-family: var(--font-family-body);
|
|
228
|
+
font-size: 0.8125rem;
|
|
229
|
+
font-weight: 400;
|
|
230
|
+
line-height: normal;
|
|
231
|
+
letter-spacing: 0em;
|
|
232
|
+
@variant min-xs {
|
|
233
|
+
font-size: 0.875rem;
|
|
234
|
+
font-weight: 500;
|
|
235
|
+
line-height: 1.1em;
|
|
236
|
+
letter-spacing: -0.025em;
|
|
237
|
+
}
|
|
238
|
+
@variant min-md {
|
|
239
|
+
font-size: 1rem;
|
|
240
|
+
line-height: 1.2em;
|
|
241
|
+
letter-spacing: 0em;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@utility tg-button-text {
|
|
246
|
+
font-family: var(--font-family-body);
|
|
247
|
+
font-size: 0.75rem;
|
|
248
|
+
font-weight: 500;
|
|
249
|
+
line-height: normal;
|
|
250
|
+
letter-spacing: -0.04em;
|
|
251
|
+
@variant min-xs {
|
|
252
|
+
font-weight: 600;
|
|
253
|
+
line-height: 1.23em;
|
|
254
|
+
font-size: 0.8125rem;
|
|
255
|
+
}
|
|
256
|
+
@variant min-md {
|
|
257
|
+
font-size: 0.875rem;
|
|
258
|
+
line-height: 1.4em;
|
|
259
|
+
letter-spacing: 0em;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@utility tg-button-small {
|
|
264
|
+
font-family: var(--font-family-body);
|
|
265
|
+
font-size: 0.6875rem;
|
|
266
|
+
font-weight: 500;
|
|
267
|
+
line-height: 1.45em;
|
|
268
|
+
letter-spacing: -0.04em;
|
|
269
|
+
@variant min-xs {
|
|
270
|
+
font-size: 0.75rem;
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
line-height: 1.4em;
|
|
273
|
+
letter-spacing: -0.02em;
|
|
274
|
+
}
|
|
275
|
+
@variant min-md {
|
|
276
|
+
font-size: 0.8125rem;
|
|
277
|
+
letter-spacing: 0em;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@utility tg-body-bold {
|
|
282
|
+
font-family: var(--font-family-body);
|
|
283
|
+
font-size: 0.6875rem;
|
|
284
|
+
font-weight: 600;
|
|
285
|
+
line-height: 1.4em;
|
|
286
|
+
letter-spacing: -0.025em;
|
|
287
|
+
@variant min-xs {
|
|
288
|
+
font-size: 0.75rem;
|
|
289
|
+
}
|
|
290
|
+
@variant min-md {
|
|
291
|
+
font-size: 0.8125rem;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@utility tg-body {
|
|
296
|
+
font-family: var(--font-family-body);
|
|
297
|
+
font-size: 0.6875rem;
|
|
298
|
+
font-weight: 400;
|
|
299
|
+
line-height: 1.4em;
|
|
300
|
+
letter-spacing: -0.025em;
|
|
301
|
+
@variant min-xs {
|
|
302
|
+
font-size: 0.75rem;
|
|
303
|
+
}
|
|
304
|
+
@variant min-md {
|
|
305
|
+
font-size: 0.8125rem;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@utility tg-link {
|
|
310
|
+
font-family: var(--font-family-body);
|
|
311
|
+
font-size: 0.6875rem;
|
|
312
|
+
font-weight: 500;
|
|
313
|
+
line-height: normal;
|
|
314
|
+
letter-spacing: -0.04em;
|
|
315
|
+
text-decoration-line: underline;
|
|
316
|
+
@variant min-xs {
|
|
317
|
+
font-size: 0.75rem;
|
|
318
|
+
}
|
|
319
|
+
@variant min-md {
|
|
320
|
+
font-size: 0.8125rem;
|
|
321
|
+
line-height: 1.4em;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@utility tg-caption-bold {
|
|
326
|
+
font-family: var(--font-family-body);
|
|
327
|
+
font-size: 0.625rem;
|
|
328
|
+
font-weight: 700;
|
|
329
|
+
line-height: 1.4em;
|
|
330
|
+
letter-spacing: -0.025em;
|
|
331
|
+
@variant min-xs {
|
|
332
|
+
font-size: 0.6875rem;
|
|
333
|
+
line-height: 1.2em;
|
|
334
|
+
}
|
|
335
|
+
@variant min-md {
|
|
336
|
+
font-size: 0.75rem;
|
|
337
|
+
font-weight: 600;
|
|
338
|
+
line-height: 1.4em;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@utility tg-caption {
|
|
343
|
+
font-family: var(--font-family-body);
|
|
344
|
+
font-size: 0.625rem;
|
|
345
|
+
font-weight: 400;
|
|
346
|
+
line-height: 1.4em;
|
|
347
|
+
letter-spacing: -0.025em;
|
|
348
|
+
@variant min-xs {
|
|
349
|
+
font-size: 0.6875rem;
|
|
350
|
+
line-height: 1.3em;
|
|
351
|
+
}
|
|
352
|
+
@variant min-md {
|
|
353
|
+
font-size: 0.75rem;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@utility tg-tag {
|
|
358
|
+
font-family: var(--font-family-body);
|
|
359
|
+
font-size: 0.5625rem;
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
line-height: 1.1em;
|
|
362
|
+
letter-spacing: -0.03em;
|
|
363
|
+
@variant min-xs {
|
|
364
|
+
font-size: 0.625rem;
|
|
365
|
+
}
|
|
366
|
+
@variant min-md {
|
|
367
|
+
font-size: 0.6875rem;
|
|
368
|
+
line-height: 1.4em;
|
|
369
|
+
letter-spacing: 0em;
|
|
370
|
+
}
|
|
371
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validationcloud/fractal-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"module": "./dist/fractal-ui.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -21,9 +21,18 @@
|
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./dist/fractal-ui.js"
|
|
23
23
|
},
|
|
24
|
-
"./tailwind.css": "./dist/tailwind.css"
|
|
24
|
+
"./tailwind.css": "./dist/styles/tailwind.css"
|
|
25
|
+
},
|
|
26
|
+
"release": {
|
|
27
|
+
"branches": [
|
|
28
|
+
"main"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
25
33
|
},
|
|
26
34
|
"dependencies": {
|
|
35
|
+
"radix-ui": "^1.4.2",
|
|
27
36
|
"react": "^19.0.0",
|
|
28
37
|
"react-dom": "^19.0.0",
|
|
29
38
|
"tailwind-merge": "^3.3.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Test } from './test';
|
|
3
|
-
declare const meta: Meta<typeof Test>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Test>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const One: Story;
|
|
8
|
-
export declare const Two: Story;
|