@removify/tailwind-preset 1.0.7 → 1.0.8

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.
@@ -0,0 +1,482 @@
1
+ import { Config } from "tailwindcss";
2
+
3
+ //#region src/constant/index.d.ts
4
+ declare const colorsNames: readonly ["primary", "bateau", "secondary", "pompelmo", "green", "fuchsia", "indigo", "neutral", "orange", "red", "amber", "seafoam"];
5
+ //#endregion
6
+ //#region src/types/color.d.ts
7
+ type ColorsNames = typeof colorsNames[number];
8
+ type RatingVariations = `${'low' | 'high' | 'medium'}${'' | '-star'}`;
9
+ declare const ratingColorVariations: RatingVariations[];
10
+ type CustomColors = 'rating' | 'table';
11
+ type TableVariations = 'border';
12
+ type ColorsVariations = 'DEFAULT' | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
13
+ interface MainColors {
14
+ black: string;
15
+ white: string;
16
+ inherit: 'inherit';
17
+ current: 'currentColor';
18
+ transparent: 'transparent';
19
+ }
20
+ interface DefaultColors {
21
+ danger: string;
22
+ warning: string;
23
+ success: string;
24
+ info: string;
25
+ special: string;
26
+ }
27
+ type Colors = DefaultColors & MainColors & Record<ColorsNames, Record<ColorsVariations, string>> & { [K in Extract<CustomColors, 'rating'>]: Record<RatingVariations, string> } & { [K in Extract<CustomColors, 'table'>]: Record<TableVariations, string> };
28
+ type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors | CustomColors;
29
+ //#endregion
30
+ //#region src/types/factory.d.ts
31
+ declare const configuredThemes: readonly ["colors", "boxShadow", "fontSize", "fontFamily", "animation", "keyframes", "screens"];
32
+ type ConfiguredThemes = typeof configuredThemes[number];
33
+ interface ThemeOptions {
34
+ enabled?: boolean;
35
+ prefix?: string;
36
+ }
37
+ type BuildThemeOptions = { [k in ConfiguredThemes]?: ThemeOptions };
38
+ //#endregion
39
+ //#region src/types/fontSize.d.ts
40
+ interface FontSizeDetail {
41
+ lineHeight?: string;
42
+ letterSpacing?: string;
43
+ fontWeight?: number;
44
+ }
45
+ type FontValue = `${number}px` | `${number}rem`;
46
+ type FontAndLineHeight = [FontValue, FontValue];
47
+ type DetailFont = [FontValue, FontSizeDetail];
48
+ type FontSize = FontAndLineHeight | FontValue | DetailFont;
49
+ type SizeKeys = `${number}xs` | 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | `${number}xl`;
50
+ type HeadingKeys = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
51
+ type DisplayKeys = 'display1' | 'display2' | 'display3' | 'display4';
52
+ type FontSizeKeys = SizeKeys | HeadingKeys | DisplayKeys;
53
+ declare function isDetailFont(value: FontSize): value is DetailFont;
54
+ type FontSizes = { [K in FontSizeKeys]?: FontSize };
55
+ //#endregion
56
+ //#region src/types/screen.d.ts
57
+ declare const screenSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "tablet", "tablet-lg", "laptop", "desktop"];
58
+ type Screens = Record<typeof screenSizes[number], `${number}px`>;
59
+ type ExtractNumber<T extends string> = T extends `${infer N extends number}px` ? N : never;
60
+ type ScreensNumber = { [K in keyof Screens]: ExtractNumber<Screens[K]> };
61
+ //#endregion
62
+ //#region src/types/shadow.d.ts
63
+ type BorderSize = 0 | `${number}px`;
64
+ type RgbValue = number;
65
+ type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
66
+ type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
67
+ type ShadowKeys = `elevation-${ShadowSize}`;
68
+ declare const shadowVariations: ShadowKeys[];
69
+ type Shadows = Record<ShadowKeys, Shadow>;
70
+ //#endregion
71
+ //#region src/theme/animation.d.ts
72
+ declare const animation: {
73
+ 'radix-accordion-down': string;
74
+ 'radix-accordion-up': string;
75
+ 'radix-collapsible-down': string;
76
+ 'radix-collapsible-up': string;
77
+ 'reka-accordion-down': string;
78
+ 'reka-accordion-up': string;
79
+ 'reka-collapsible-down': string;
80
+ 'reka-collapsible-up': string;
81
+ 'accordion-down': string;
82
+ 'accordion-up': string;
83
+ 'collapsible-down': string;
84
+ 'collapsible-up': string;
85
+ };
86
+ declare const keyframes: {
87
+ 'radix-accordion-down': {
88
+ from: {
89
+ height: string;
90
+ };
91
+ to: {
92
+ height: string;
93
+ };
94
+ };
95
+ 'radix-accordion-up': {
96
+ from: {
97
+ height: string;
98
+ };
99
+ to: {
100
+ height: string;
101
+ };
102
+ };
103
+ 'radix-collapsible-down': {
104
+ from: {
105
+ height: string;
106
+ };
107
+ to: {
108
+ height: string;
109
+ };
110
+ };
111
+ 'radix-collapsible-up': {
112
+ from: {
113
+ height: string;
114
+ };
115
+ to: {
116
+ height: string;
117
+ };
118
+ };
119
+ 'reka-accordion-down': {
120
+ from: {
121
+ height: string;
122
+ };
123
+ to: {
124
+ height: string;
125
+ };
126
+ };
127
+ 'reka-accordion-up': {
128
+ from: {
129
+ height: string;
130
+ };
131
+ to: {
132
+ height: string;
133
+ };
134
+ };
135
+ 'reka-collapsible-down': {
136
+ from: {
137
+ height: string;
138
+ };
139
+ to: {
140
+ height: string;
141
+ };
142
+ };
143
+ 'reka-collapsible-up': {
144
+ from: {
145
+ height: string;
146
+ };
147
+ to: {
148
+ height: string;
149
+ };
150
+ };
151
+ 'accordion-down': {
152
+ from: {
153
+ height: string;
154
+ };
155
+ to: {
156
+ height: string;
157
+ };
158
+ };
159
+ 'accordion-up': {
160
+ from: {
161
+ height: string;
162
+ };
163
+ to: {
164
+ height: string;
165
+ };
166
+ };
167
+ 'collapsible-down': {
168
+ from: {
169
+ height: string;
170
+ };
171
+ to: {
172
+ height: string;
173
+ };
174
+ };
175
+ 'collapsible-up': {
176
+ from: {
177
+ height: string;
178
+ };
179
+ to: {
180
+ height: string;
181
+ };
182
+ };
183
+ };
184
+ //#endregion
185
+ //#region src/theme/colors.d.ts
186
+ declare const colors: {
187
+ primary: {
188
+ DEFAULT: string;
189
+ 50: string;
190
+ 100: string;
191
+ 200: string;
192
+ 300: string;
193
+ 400: string;
194
+ 500: string;
195
+ 600: string;
196
+ 700: string;
197
+ 800: string;
198
+ 900: string;
199
+ 950: string;
200
+ };
201
+ secondary: {
202
+ DEFAULT: string;
203
+ 50: string;
204
+ 100: string;
205
+ 200: string;
206
+ 300: string;
207
+ 400: string;
208
+ 500: string;
209
+ 600: string;
210
+ 700: string;
211
+ 800: string;
212
+ 900: string;
213
+ 950: string;
214
+ };
215
+ inherit: "inherit";
216
+ current: "currentColor";
217
+ transparent: "transparent";
218
+ danger: string;
219
+ warning: string;
220
+ success: string;
221
+ info: string;
222
+ special: string;
223
+ black: string;
224
+ white: string;
225
+ bateau: {
226
+ DEFAULT: string;
227
+ 50: string;
228
+ 100: string;
229
+ 200: string;
230
+ 300: string;
231
+ 400: string;
232
+ 500: string;
233
+ 600: string;
234
+ 700: string;
235
+ 800: string;
236
+ 900: string;
237
+ 950: string;
238
+ };
239
+ pompelmo: {
240
+ DEFAULT: string;
241
+ 50: string;
242
+ 100: string;
243
+ 200: string;
244
+ 300: string;
245
+ 400: string;
246
+ 500: string;
247
+ 600: string;
248
+ 700: string;
249
+ 800: string;
250
+ 900: string;
251
+ 950: string;
252
+ };
253
+ neutral: {
254
+ DEFAULT: string;
255
+ 50: string;
256
+ 100: string;
257
+ 200: string;
258
+ 300: string;
259
+ 400: string;
260
+ 500: string;
261
+ 600: string;
262
+ 700: string;
263
+ 800: string;
264
+ 900: string;
265
+ 950: string;
266
+ };
267
+ orange: {
268
+ DEFAULT: string;
269
+ 50: string;
270
+ 100: string;
271
+ 200: string;
272
+ 300: string;
273
+ 400: string;
274
+ 500: string;
275
+ 600: string;
276
+ 700: string;
277
+ 800: string;
278
+ 900: string;
279
+ 950: string;
280
+ };
281
+ amber: {
282
+ DEFAULT: string;
283
+ 50: string;
284
+ 100: string;
285
+ 200: string;
286
+ 300: string;
287
+ 400: string;
288
+ 500: string;
289
+ 600: string;
290
+ 700: string;
291
+ 800: string;
292
+ 900: string;
293
+ 950: string;
294
+ };
295
+ indigo: {
296
+ DEFAULT: string;
297
+ 50: string;
298
+ 100: string;
299
+ 200: string;
300
+ 300: string;
301
+ 400: string;
302
+ 500: string;
303
+ 600: string;
304
+ 700: string;
305
+ 800: string;
306
+ 900: string;
307
+ 950: string;
308
+ };
309
+ seafoam: {
310
+ DEFAULT: string;
311
+ 50: string;
312
+ 100: string;
313
+ 200: string;
314
+ 300: string;
315
+ 400: string;
316
+ 500: string;
317
+ 600: string;
318
+ 700: string;
319
+ 800: string;
320
+ 900: string;
321
+ 950: string;
322
+ };
323
+ green: {
324
+ DEFAULT: string;
325
+ 50: string;
326
+ 100: string;
327
+ 200: string;
328
+ 300: string;
329
+ 400: string;
330
+ 500: string;
331
+ 600: string;
332
+ 700: string;
333
+ 800: string;
334
+ 900: string;
335
+ 950: string;
336
+ };
337
+ fuchsia: {
338
+ DEFAULT: string;
339
+ 50: string;
340
+ 100: string;
341
+ 200: string;
342
+ 300: string;
343
+ 400: string;
344
+ 500: string;
345
+ 600: string;
346
+ 700: string;
347
+ 800: string;
348
+ 900: string;
349
+ 950: string;
350
+ };
351
+ red: {
352
+ DEFAULT: string;
353
+ 50: string;
354
+ 100: string;
355
+ 200: string;
356
+ 300: string;
357
+ 400: string;
358
+ 500: string;
359
+ 600: string;
360
+ 700: string;
361
+ 800: string;
362
+ 900: string;
363
+ 950: string;
364
+ };
365
+ rating: {
366
+ high: string;
367
+ medium: string;
368
+ low: string;
369
+ 'high-star': string;
370
+ 'medium-star': string;
371
+ 'low-star': string;
372
+ };
373
+ table: {
374
+ border: string;
375
+ };
376
+ };
377
+ //#endregion
378
+ //#region src/theme/fontFamily.d.ts
379
+ declare const customFontFamily: {
380
+ sans: string[];
381
+ };
382
+ //#endregion
383
+ //#region src/theme/fontSize.d.ts
384
+ declare const fontSize: {
385
+ '2xs': ["0.6875rem", "1rem"];
386
+ xs: ["0.75rem", "1rem"];
387
+ sm: ["0.875rem", "1.25rem"];
388
+ base: ["1rem", "1.5rem"];
389
+ md: ["1.125rem", "1.5rem"];
390
+ lg: ["1.25rem", "1.625rem"];
391
+ display1: ["3.75rem", {
392
+ fontWeight: number;
393
+ lineHeight: string;
394
+ letterSpacing: string;
395
+ }];
396
+ display2: ["3.25rem", {
397
+ fontWeight: number;
398
+ lineHeight: string;
399
+ letterSpacing: string;
400
+ }];
401
+ display3: ["2.75rem", {
402
+ fontWeight: number;
403
+ lineHeight: string;
404
+ letterSpacing: string;
405
+ }];
406
+ h1: ["3rem", {
407
+ fontWeight: number;
408
+ lineHeight: string;
409
+ letterSpacing: string;
410
+ }];
411
+ h2: ["2.5rem", {
412
+ fontWeight: number;
413
+ lineHeight: string;
414
+ letterSpacing: string;
415
+ }];
416
+ h3: ["2.25rem", {
417
+ fontWeight: number;
418
+ lineHeight: string;
419
+ letterSpacing: string;
420
+ }];
421
+ h4: ["2rem", {
422
+ fontWeight: number;
423
+ lineHeight: string;
424
+ letterSpacing: string;
425
+ }];
426
+ h5: ["1.5rem", {
427
+ fontWeight: number;
428
+ lineHeight: string;
429
+ letterSpacing: string;
430
+ }];
431
+ h6: ["1.25rem", {
432
+ fontWeight: number;
433
+ lineHeight: string;
434
+ letterSpacing: string;
435
+ }];
436
+ };
437
+ //#endregion
438
+ //#region src/theme/screen.d.ts
439
+ declare const screensNumber: {
440
+ xs: number;
441
+ sm: number;
442
+ md: number;
443
+ lg: number;
444
+ xl: number;
445
+ '2xl': number;
446
+ tablet: number;
447
+ 'tablet-lg': number;
448
+ laptop: number;
449
+ desktop: number;
450
+ };
451
+ declare const screens: {
452
+ xs: `${number}px`;
453
+ sm: `${number}px`;
454
+ md: `${number}px`;
455
+ lg: `${number}px`;
456
+ xl: `${number}px`;
457
+ '2xl': `${number}px`;
458
+ tablet: `${number}px`;
459
+ 'tablet-lg': `${number}px`;
460
+ laptop: `${number}px`;
461
+ desktop: `${number}px`;
462
+ };
463
+ //#endregion
464
+ //#region src/theme/shadows.d.ts
465
+ declare const boxShadow: {
466
+ 'elevation-0': "0 0 0 0 rgba(0, 0, 0, 0.10)";
467
+ 'elevation-1': "0 1px 2px 0 rgba(0, 0, 0, 0.10)";
468
+ 'elevation-2': "0 4px 8px 0 rgba(0, 0, 0, 0.10)";
469
+ 'elevation-3': "0 6px 12px 0 rgba(0, 0, 0, 0.10)";
470
+ 'elevation-4': "0 8px 16px 0 rgba(0, 0, 0, 0.10)";
471
+ 'elevation-5': "0 12px 24px 0 rgba(0, 0, 0, 0.10)";
472
+ };
473
+ //#endregion
474
+ //#region src/theme/index.d.ts
475
+ declare function buildTheme<T extends object>(object: T, option?: ThemeOptions): null | T | { [K in keyof T as `${string}${string & K}`]: T[K] };
476
+ declare function factory(options?: BuildThemeOptions): Config['theme'];
477
+ declare const defaultTheme: Config['theme'];
478
+ //#endregion
479
+ //#region src/index.d.ts
480
+ declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
481
+ //#endregion
482
+ export { BorderSize, BuildThemeOptions, ColorString, Colors, ColorsNames, ColorsVariations, ConfiguredThemes, CustomColors, DefaultColors, DetailFont, DisplayKeys, ExtractNumber, FontAndLineHeight, FontSize, FontSizeDetail, FontSizeKeys, FontSizes, FontValue, HeadingKeys, MainColors, RatingVariations, RgbValue, Screens, ScreensNumber, Shadow, ShadowKeys, ShadowSize, Shadows, SizeKeys, TableVariations, ThemeOptions, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations };