@fuf-stack/pixel-utils 1.4.0 → 2.0.0-next.1
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/README.md +56 -4
- package/dist/index.d.mts +58 -715
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +128 -10
- package/dist/index.mjs.map +1 -1
- package/dist/tokens.css +574 -0
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ import { Options } from "slug";
|
|
|
16
16
|
* // Output: 'text-center bg-red-500 p-4'
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare const cn: (...classes: ArgumentArray) => string;
|
|
19
|
+
export declare const cn: (...classes: ArgumentArray) => string;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/isTestEnvironment.d.ts
|
|
22
22
|
/**
|
|
@@ -41,9 +41,9 @@ declare const cn: (...classes: ArgumentArray) => string;
|
|
|
41
41
|
* return debouncedValue;
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare const isTestEnvironment: () => boolean;
|
|
44
|
+
export declare const isTestEnvironment: () => boolean;
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region ../../node_modules/.pnpm/tailwind-merge@3.
|
|
46
|
+
//#region ../../node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/types.d.ts
|
|
47
47
|
/**
|
|
48
48
|
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
|
49
49
|
*
|
|
@@ -58,7 +58,7 @@ type ClassNameArray = readonly ClassNameValue[];
|
|
|
58
58
|
/**
|
|
59
59
|
* Type the tailwind-merge configuration adheres to.
|
|
60
60
|
*/
|
|
61
|
-
interface Config
|
|
61
|
+
interface Config<ClassGroupIds extends string, ThemeGroupIds extends string> extends ConfigStaticPart, ConfigGroupsPart<ClassGroupIds, ThemeGroupIds> {}
|
|
62
62
|
/**
|
|
63
63
|
* The static part of the tailwind-merge configuration. When merging multiple configurations, the properties of this interface are always overridden.
|
|
64
64
|
*/
|
|
@@ -210,6 +210,10 @@ type ClassValidator = (classPart: string) => boolean;
|
|
|
210
210
|
interface ThemeGetter {
|
|
211
211
|
(theme: ThemeObject<AnyThemeGroupIds>): ClassGroup<AnyClassGroupIds>;
|
|
212
212
|
isThemeGetter: true;
|
|
213
|
+
/**
|
|
214
|
+
* The theme key the getter reads. Set on getters created with `fromTheme` so that tooling (e.g. config generators) can identify the referenced theme scale without invoking the getter. Optional because theme getters can be hand-written.
|
|
215
|
+
*/
|
|
216
|
+
themeKey?: string;
|
|
213
217
|
}
|
|
214
218
|
type ClassObject<ThemeGroupIds extends string> = Record<string, readonly ClassDefinition<ThemeGroupIds>[]>;
|
|
215
219
|
/**
|
|
@@ -230,7 +234,7 @@ type NoInferString<T extends string> = T extends (infer S) ? S & string : never;
|
|
|
230
234
|
* If you want to use a scale that is not supported in the `ThemeObject` type,
|
|
231
235
|
* consider using `classGroups` instead of `theme`.
|
|
232
236
|
*
|
|
233
|
-
* @see https://github.com/dcastil/tailwind-merge/blob/
|
|
237
|
+
* @see https://github.com/dcastil/tailwind-merge/blob/tailwind-merge@3.7.0/packages/tailwind-merge/docs/configuration.md#theme
|
|
234
238
|
* (the list of supported keys may vary between `tailwind-merge` versions)
|
|
235
239
|
*/
|
|
236
240
|
type DefaultThemeGroupIds = 'animate' | 'aspect' | 'blur' | 'breakpoint' | 'color' | 'container' | 'drop-shadow' | 'ease' | 'font-weight' | 'font' | 'inset-shadow' | 'leading' | 'perspective' | 'radius' | 'shadow' | 'spacing' | 'text' | 'text-shadow' | 'tracking';
|
|
@@ -243,28 +247,28 @@ type AnyThemeGroupIds = string;
|
|
|
243
247
|
/**
|
|
244
248
|
* type of the tailwind-merge configuration that allows for any possible configuration.
|
|
245
249
|
*/
|
|
246
|
-
type AnyConfig = Config
|
|
250
|
+
type AnyConfig = Config<AnyClassGroupIds, AnyThemeGroupIds>;
|
|
247
251
|
type CreateConfigSubsequent = (config: AnyConfig) => AnyConfig;
|
|
248
252
|
declare const extendTailwindMerge: <AdditionalClassGroupIds extends string = never, AdditionalThemeGroupIds extends string = never>(configExtension: ConfigExtension<DefaultClassGroupIds | AdditionalClassGroupIds, DefaultThemeGroupIds | AdditionalThemeGroupIds> | CreateConfigSubsequent, ...createConfig: CreateConfigSubsequent[]) => (...classLists: ClassNameValue[]) => string;
|
|
249
253
|
//#endregion
|
|
250
254
|
//#region src/proseTwMerge.d.ts
|
|
251
255
|
type ProseClassGroupIds = 'prose-size' | 'prose-color';
|
|
252
|
-
declare const proseTwMergeClassGroups: NonNullable<NonNullable<ConfigExtension<ProseClassGroupIds, never>['extend']>['classGroups']>;
|
|
256
|
+
export declare const proseTwMergeClassGroups: NonNullable<NonNullable<ConfigExtension<ProseClassGroupIds, never>['extend']>['classGroups']>;
|
|
253
257
|
/**
|
|
254
258
|
* Prose-aware `tailwind-merge` instance that deduplicates `prose-*` classes.
|
|
255
259
|
* Used by `cn(...)` internally. Also exported for direct use in components
|
|
256
260
|
* that need prose-aware class merging outside of `cn`.
|
|
257
261
|
*/
|
|
258
|
-
declare const proseTwMerge: (...classLists: ClassNameValue[]) => string;
|
|
262
|
+
export declare const proseTwMerge: (...classLists: ClassNameValue[]) => string;
|
|
259
263
|
//#endregion
|
|
260
264
|
//#region src/slugify.d.ts
|
|
261
265
|
interface SlugifyOptions extends Options {
|
|
262
266
|
/** When true, dots are also replaced (default is false) */
|
|
263
267
|
replaceDots?: boolean;
|
|
264
268
|
}
|
|
265
|
-
declare const slugify: (string: string, options?: SlugifyOptions) => string;
|
|
269
|
+
export declare const slugify: (string: string, options?: SlugifyOptions) => string;
|
|
266
270
|
//#endregion
|
|
267
|
-
//#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.
|
|
271
|
+
//#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.7.0_tailwindcss@4.3.3/node_modules/tailwind-variants/dist/config.d.ts
|
|
268
272
|
type MergeConfig = Parameters<typeof extendTailwindMerge>[0];
|
|
269
273
|
type LegacyMergeConfig = Extract<MergeConfig, {
|
|
270
274
|
extend?: unknown;
|
|
@@ -286,7 +290,7 @@ type TWMConfig = {
|
|
|
286
290
|
};
|
|
287
291
|
type TVConfig = TWMConfig;
|
|
288
292
|
//#endregion
|
|
289
|
-
//#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.
|
|
293
|
+
//#region ../../node_modules/.pnpm/tailwind-variants@3.2.2_tailwind-merge@3.7.0_tailwindcss@4.3.3/node_modules/tailwind-variants/dist/types.d.ts
|
|
290
294
|
type ClassProp<V extends unknown = ClassNameValue> = {
|
|
291
295
|
class?: V;
|
|
292
296
|
className?: never;
|
|
@@ -393,693 +397,7 @@ type TV = {
|
|
|
393
397
|
};
|
|
394
398
|
type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
|
|
395
399
|
//#endregion
|
|
396
|
-
//#region
|
|
397
|
-
type ColorScale = Partial<{
|
|
398
|
-
50: string;
|
|
399
|
-
100: string;
|
|
400
|
-
200: string;
|
|
401
|
-
300: string;
|
|
402
|
-
400: string;
|
|
403
|
-
500: string;
|
|
404
|
-
600: string;
|
|
405
|
-
700: string;
|
|
406
|
-
800: string;
|
|
407
|
-
900: string;
|
|
408
|
-
foreground: string;
|
|
409
|
-
DEFAULT: string;
|
|
410
|
-
}> | string;
|
|
411
|
-
type BaseColors = {
|
|
412
|
-
background: ColorScale;
|
|
413
|
-
foreground: ColorScale;
|
|
414
|
-
divider: ColorScale;
|
|
415
|
-
overlay: ColorScale;
|
|
416
|
-
focus: ColorScale;
|
|
417
|
-
content1: ColorScale;
|
|
418
|
-
content2: ColorScale;
|
|
419
|
-
content3: ColorScale;
|
|
420
|
-
content4: ColorScale;
|
|
421
|
-
};
|
|
422
|
-
type ThemeColors = BaseColors & {
|
|
423
|
-
default: ColorScale;
|
|
424
|
-
primary: ColorScale;
|
|
425
|
-
secondary: ColorScale;
|
|
426
|
-
success: ColorScale;
|
|
427
|
-
warning: ColorScale;
|
|
428
|
-
danger: ColorScale;
|
|
429
|
-
};
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region ../../node_modules/.pnpm/@heroui+theme@2.4.26_tailwindcss@4.3.2/node_modules/@heroui/theme/dist/types.d.ts
|
|
432
|
-
type DefaultThemeType = "light" | "dark";
|
|
433
|
-
type BaseThemeUnit = {
|
|
434
|
-
small?: string;
|
|
435
|
-
medium?: string;
|
|
436
|
-
large?: string;
|
|
437
|
-
};
|
|
438
|
-
type FontThemeUnit = BaseThemeUnit & {
|
|
439
|
-
tiny?: string;
|
|
440
|
-
};
|
|
441
|
-
interface LayoutTheme {
|
|
442
|
-
/**
|
|
443
|
-
* The default font size applied across the components.
|
|
444
|
-
*
|
|
445
|
-
* @default
|
|
446
|
-
* {
|
|
447
|
-
* tiny: "0.75rem",
|
|
448
|
-
* small: "0.875rem",
|
|
449
|
-
* medium: "1rem",
|
|
450
|
-
* large: "1.125rem",
|
|
451
|
-
* DEFAULT: "1rem",
|
|
452
|
-
* }
|
|
453
|
-
*/
|
|
454
|
-
fontSize?: FontThemeUnit;
|
|
455
|
-
/**
|
|
456
|
-
* The default line height applied across the components.
|
|
457
|
-
*
|
|
458
|
-
* @default
|
|
459
|
-
* {
|
|
460
|
-
* tiny: "1rem",
|
|
461
|
-
* small: "1.25rem",
|
|
462
|
-
* medium: "1.5rem",
|
|
463
|
-
* large: "1.75rem",
|
|
464
|
-
* DEFAULT: "1.5rem",
|
|
465
|
-
* }
|
|
466
|
-
*/
|
|
467
|
-
lineHeight?: FontThemeUnit;
|
|
468
|
-
/**
|
|
469
|
-
* The default radius applied across the components.
|
|
470
|
-
* we recommend to use `rem` units.
|
|
471
|
-
*
|
|
472
|
-
* @default
|
|
473
|
-
* {
|
|
474
|
-
* small: "0.25rem",
|
|
475
|
-
* medium: "0.5rem",
|
|
476
|
-
* large: "0.75rem",
|
|
477
|
-
* }
|
|
478
|
-
*/
|
|
479
|
-
radius?: BaseThemeUnit;
|
|
480
|
-
/**
|
|
481
|
-
* A number between 0 and 1 that is applied as opacity-[value] when the component is disabled.
|
|
482
|
-
*
|
|
483
|
-
* format: ".[value]"
|
|
484
|
-
*
|
|
485
|
-
* @default .5
|
|
486
|
-
*/
|
|
487
|
-
disabledOpacity?: string | number;
|
|
488
|
-
/**
|
|
489
|
-
* A number between 0 and 1 that is applied as opacity-[value] when the component is hovered.
|
|
490
|
-
*
|
|
491
|
-
* format: ".[value]"
|
|
492
|
-
*
|
|
493
|
-
* @default .8
|
|
494
|
-
*/
|
|
495
|
-
hoverOpacity?: string | number;
|
|
496
|
-
/**
|
|
497
|
-
* The default height applied to the divider component.
|
|
498
|
-
* we recommend to use `px` units.
|
|
499
|
-
*
|
|
500
|
-
* @default 1px
|
|
501
|
-
*/
|
|
502
|
-
dividerWeight?: string;
|
|
503
|
-
/**
|
|
504
|
-
* The border width applied across the components.
|
|
505
|
-
* @default
|
|
506
|
-
* {
|
|
507
|
-
* small: "1px",
|
|
508
|
-
* medium: "2px",
|
|
509
|
-
* large: "3px",
|
|
510
|
-
* }
|
|
511
|
-
*
|
|
512
|
-
*/
|
|
513
|
-
borderWidth?: BaseThemeUnit;
|
|
514
|
-
/**
|
|
515
|
-
* The box shadow applied across the components.
|
|
516
|
-
*
|
|
517
|
-
* @default
|
|
518
|
-
* {
|
|
519
|
-
* small: 0px 0px 5px 0px rgb(0 0 0 / 0.01), 0px 2px 10px 0px rgb(0 0 0 / 0.06),
|
|
520
|
-
* medium: 0px 0px 15px 0px rgb(0 0 0 / 0.02), 0px 2px 30px 0px rgb(0 0 0 / 0.08),
|
|
521
|
-
* large: 0px 0px 30px 0px rgb(0 0 0 / 0.03), 0px 30px 60px 0px rgb(0 0 0 / 0.12),
|
|
522
|
-
* }
|
|
523
|
-
*/
|
|
524
|
-
boxShadow?: BaseThemeUnit;
|
|
525
|
-
}
|
|
526
|
-
type ConfigTheme = {
|
|
527
|
-
extend?: "light" | "dark";
|
|
528
|
-
layout?: LayoutTheme;
|
|
529
|
-
colors?: Partial<ThemeColors>;
|
|
530
|
-
};
|
|
531
|
-
type ConfigThemes = Record<string, ConfigTheme>;
|
|
532
|
-
/**
|
|
533
|
-
* The HeroUI config.
|
|
534
|
-
* @see https://heroui.com/docs/customization/customize-theme
|
|
535
|
-
*/
|
|
536
|
-
type HeroUIPluginConfig = {
|
|
537
|
-
/**
|
|
538
|
-
* The prefix for the css variables.
|
|
539
|
-
* @default "heroui"
|
|
540
|
-
*/
|
|
541
|
-
prefix?: string;
|
|
542
|
-
/**
|
|
543
|
-
* If true, the common heroui colors (e.g. "blue", "green", "purple") will not be extended on the theme.
|
|
544
|
-
* @default false
|
|
545
|
-
*/
|
|
546
|
-
addCommonColors?: boolean;
|
|
547
|
-
/**
|
|
548
|
-
* Common layout definitions. These definitions are applied to all themes.
|
|
549
|
-
*/
|
|
550
|
-
layout?: LayoutTheme;
|
|
551
|
-
/**
|
|
552
|
-
* The theme definitions.
|
|
553
|
-
*/
|
|
554
|
-
themes?: ConfigThemes;
|
|
555
|
-
/**
|
|
556
|
-
* The default theme to use.
|
|
557
|
-
* @default "light"
|
|
558
|
-
*/
|
|
559
|
-
defaultTheme?: DefaultThemeType;
|
|
560
|
-
/**
|
|
561
|
-
* The default theme to extend.
|
|
562
|
-
* @default "light"
|
|
563
|
-
*/
|
|
564
|
-
defaultExtendTheme?: DefaultThemeType;
|
|
565
|
-
};
|
|
566
|
-
//#endregion
|
|
567
|
-
//#region ../../node_modules/.pnpm/tailwindcss@4.3.2/node_modules/tailwindcss/dist/colors.d.mts
|
|
568
|
-
declare const _default: {
|
|
569
|
-
inherit: string;
|
|
570
|
-
current: string;
|
|
571
|
-
transparent: string;
|
|
572
|
-
black: string;
|
|
573
|
-
white: string;
|
|
574
|
-
slate: {
|
|
575
|
-
'50': string;
|
|
576
|
-
'100': string;
|
|
577
|
-
'200': string;
|
|
578
|
-
'300': string;
|
|
579
|
-
'400': string;
|
|
580
|
-
'500': string;
|
|
581
|
-
'600': string;
|
|
582
|
-
'700': string;
|
|
583
|
-
'800': string;
|
|
584
|
-
'900': string;
|
|
585
|
-
'950': string;
|
|
586
|
-
};
|
|
587
|
-
gray: {
|
|
588
|
-
'50': string;
|
|
589
|
-
'100': string;
|
|
590
|
-
'200': string;
|
|
591
|
-
'300': string;
|
|
592
|
-
'400': string;
|
|
593
|
-
'500': string;
|
|
594
|
-
'600': string;
|
|
595
|
-
'700': string;
|
|
596
|
-
'800': string;
|
|
597
|
-
'900': string;
|
|
598
|
-
'950': string;
|
|
599
|
-
};
|
|
600
|
-
zinc: {
|
|
601
|
-
'50': string;
|
|
602
|
-
'100': string;
|
|
603
|
-
'200': string;
|
|
604
|
-
'300': string;
|
|
605
|
-
'400': string;
|
|
606
|
-
'500': string;
|
|
607
|
-
'600': string;
|
|
608
|
-
'700': string;
|
|
609
|
-
'800': string;
|
|
610
|
-
'900': string;
|
|
611
|
-
'950': string;
|
|
612
|
-
};
|
|
613
|
-
neutral: {
|
|
614
|
-
'50': string;
|
|
615
|
-
'100': string;
|
|
616
|
-
'200': string;
|
|
617
|
-
'300': string;
|
|
618
|
-
'400': string;
|
|
619
|
-
'500': string;
|
|
620
|
-
'600': string;
|
|
621
|
-
'700': string;
|
|
622
|
-
'800': string;
|
|
623
|
-
'900': string;
|
|
624
|
-
'950': string;
|
|
625
|
-
};
|
|
626
|
-
stone: {
|
|
627
|
-
'50': string;
|
|
628
|
-
'100': string;
|
|
629
|
-
'200': string;
|
|
630
|
-
'300': string;
|
|
631
|
-
'400': string;
|
|
632
|
-
'500': string;
|
|
633
|
-
'600': string;
|
|
634
|
-
'700': string;
|
|
635
|
-
'800': string;
|
|
636
|
-
'900': string;
|
|
637
|
-
'950': string;
|
|
638
|
-
};
|
|
639
|
-
mauve: {
|
|
640
|
-
'50': string;
|
|
641
|
-
'100': string;
|
|
642
|
-
'200': string;
|
|
643
|
-
'300': string;
|
|
644
|
-
'400': string;
|
|
645
|
-
'500': string;
|
|
646
|
-
'600': string;
|
|
647
|
-
'700': string;
|
|
648
|
-
'800': string;
|
|
649
|
-
'900': string;
|
|
650
|
-
'950': string;
|
|
651
|
-
};
|
|
652
|
-
olive: {
|
|
653
|
-
'50': string;
|
|
654
|
-
'100': string;
|
|
655
|
-
'200': string;
|
|
656
|
-
'300': string;
|
|
657
|
-
'400': string;
|
|
658
|
-
'500': string;
|
|
659
|
-
'600': string;
|
|
660
|
-
'700': string;
|
|
661
|
-
'800': string;
|
|
662
|
-
'900': string;
|
|
663
|
-
'950': string;
|
|
664
|
-
};
|
|
665
|
-
mist: {
|
|
666
|
-
'50': string;
|
|
667
|
-
'100': string;
|
|
668
|
-
'200': string;
|
|
669
|
-
'300': string;
|
|
670
|
-
'400': string;
|
|
671
|
-
'500': string;
|
|
672
|
-
'600': string;
|
|
673
|
-
'700': string;
|
|
674
|
-
'800': string;
|
|
675
|
-
'900': string;
|
|
676
|
-
'950': string;
|
|
677
|
-
};
|
|
678
|
-
taupe: {
|
|
679
|
-
'50': string;
|
|
680
|
-
'100': string;
|
|
681
|
-
'200': string;
|
|
682
|
-
'300': string;
|
|
683
|
-
'400': string;
|
|
684
|
-
'500': string;
|
|
685
|
-
'600': string;
|
|
686
|
-
'700': string;
|
|
687
|
-
'800': string;
|
|
688
|
-
'900': string;
|
|
689
|
-
'950': string;
|
|
690
|
-
};
|
|
691
|
-
red: {
|
|
692
|
-
'50': string;
|
|
693
|
-
'100': string;
|
|
694
|
-
'200': string;
|
|
695
|
-
'300': string;
|
|
696
|
-
'400': string;
|
|
697
|
-
'500': string;
|
|
698
|
-
'600': string;
|
|
699
|
-
'700': string;
|
|
700
|
-
'800': string;
|
|
701
|
-
'900': string;
|
|
702
|
-
'950': string;
|
|
703
|
-
};
|
|
704
|
-
orange: {
|
|
705
|
-
'50': string;
|
|
706
|
-
'100': string;
|
|
707
|
-
'200': string;
|
|
708
|
-
'300': string;
|
|
709
|
-
'400': string;
|
|
710
|
-
'500': string;
|
|
711
|
-
'600': string;
|
|
712
|
-
'700': string;
|
|
713
|
-
'800': string;
|
|
714
|
-
'900': string;
|
|
715
|
-
'950': string;
|
|
716
|
-
};
|
|
717
|
-
amber: {
|
|
718
|
-
'50': string;
|
|
719
|
-
'100': string;
|
|
720
|
-
'200': string;
|
|
721
|
-
'300': string;
|
|
722
|
-
'400': string;
|
|
723
|
-
'500': string;
|
|
724
|
-
'600': string;
|
|
725
|
-
'700': string;
|
|
726
|
-
'800': string;
|
|
727
|
-
'900': string;
|
|
728
|
-
'950': string;
|
|
729
|
-
};
|
|
730
|
-
yellow: {
|
|
731
|
-
'50': string;
|
|
732
|
-
'100': string;
|
|
733
|
-
'200': string;
|
|
734
|
-
'300': string;
|
|
735
|
-
'400': string;
|
|
736
|
-
'500': string;
|
|
737
|
-
'600': string;
|
|
738
|
-
'700': string;
|
|
739
|
-
'800': string;
|
|
740
|
-
'900': string;
|
|
741
|
-
'950': string;
|
|
742
|
-
};
|
|
743
|
-
lime: {
|
|
744
|
-
'50': string;
|
|
745
|
-
'100': string;
|
|
746
|
-
'200': string;
|
|
747
|
-
'300': string;
|
|
748
|
-
'400': string;
|
|
749
|
-
'500': string;
|
|
750
|
-
'600': string;
|
|
751
|
-
'700': string;
|
|
752
|
-
'800': string;
|
|
753
|
-
'900': string;
|
|
754
|
-
'950': string;
|
|
755
|
-
};
|
|
756
|
-
green: {
|
|
757
|
-
'50': string;
|
|
758
|
-
'100': string;
|
|
759
|
-
'200': string;
|
|
760
|
-
'300': string;
|
|
761
|
-
'400': string;
|
|
762
|
-
'500': string;
|
|
763
|
-
'600': string;
|
|
764
|
-
'700': string;
|
|
765
|
-
'800': string;
|
|
766
|
-
'900': string;
|
|
767
|
-
'950': string;
|
|
768
|
-
};
|
|
769
|
-
emerald: {
|
|
770
|
-
'50': string;
|
|
771
|
-
'100': string;
|
|
772
|
-
'200': string;
|
|
773
|
-
'300': string;
|
|
774
|
-
'400': string;
|
|
775
|
-
'500': string;
|
|
776
|
-
'600': string;
|
|
777
|
-
'700': string;
|
|
778
|
-
'800': string;
|
|
779
|
-
'900': string;
|
|
780
|
-
'950': string;
|
|
781
|
-
};
|
|
782
|
-
teal: {
|
|
783
|
-
'50': string;
|
|
784
|
-
'100': string;
|
|
785
|
-
'200': string;
|
|
786
|
-
'300': string;
|
|
787
|
-
'400': string;
|
|
788
|
-
'500': string;
|
|
789
|
-
'600': string;
|
|
790
|
-
'700': string;
|
|
791
|
-
'800': string;
|
|
792
|
-
'900': string;
|
|
793
|
-
'950': string;
|
|
794
|
-
};
|
|
795
|
-
cyan: {
|
|
796
|
-
'50': string;
|
|
797
|
-
'100': string;
|
|
798
|
-
'200': string;
|
|
799
|
-
'300': string;
|
|
800
|
-
'400': string;
|
|
801
|
-
'500': string;
|
|
802
|
-
'600': string;
|
|
803
|
-
'700': string;
|
|
804
|
-
'800': string;
|
|
805
|
-
'900': string;
|
|
806
|
-
'950': string;
|
|
807
|
-
};
|
|
808
|
-
sky: {
|
|
809
|
-
'50': string;
|
|
810
|
-
'100': string;
|
|
811
|
-
'200': string;
|
|
812
|
-
'300': string;
|
|
813
|
-
'400': string;
|
|
814
|
-
'500': string;
|
|
815
|
-
'600': string;
|
|
816
|
-
'700': string;
|
|
817
|
-
'800': string;
|
|
818
|
-
'900': string;
|
|
819
|
-
'950': string;
|
|
820
|
-
};
|
|
821
|
-
blue: {
|
|
822
|
-
'50': string;
|
|
823
|
-
'100': string;
|
|
824
|
-
'200': string;
|
|
825
|
-
'300': string;
|
|
826
|
-
'400': string;
|
|
827
|
-
'500': string;
|
|
828
|
-
'600': string;
|
|
829
|
-
'700': string;
|
|
830
|
-
'800': string;
|
|
831
|
-
'900': string;
|
|
832
|
-
'950': string;
|
|
833
|
-
};
|
|
834
|
-
indigo: {
|
|
835
|
-
'50': string;
|
|
836
|
-
'100': string;
|
|
837
|
-
'200': string;
|
|
838
|
-
'300': string;
|
|
839
|
-
'400': string;
|
|
840
|
-
'500': string;
|
|
841
|
-
'600': string;
|
|
842
|
-
'700': string;
|
|
843
|
-
'800': string;
|
|
844
|
-
'900': string;
|
|
845
|
-
'950': string;
|
|
846
|
-
};
|
|
847
|
-
violet: {
|
|
848
|
-
'50': string;
|
|
849
|
-
'100': string;
|
|
850
|
-
'200': string;
|
|
851
|
-
'300': string;
|
|
852
|
-
'400': string;
|
|
853
|
-
'500': string;
|
|
854
|
-
'600': string;
|
|
855
|
-
'700': string;
|
|
856
|
-
'800': string;
|
|
857
|
-
'900': string;
|
|
858
|
-
'950': string;
|
|
859
|
-
};
|
|
860
|
-
purple: {
|
|
861
|
-
'50': string;
|
|
862
|
-
'100': string;
|
|
863
|
-
'200': string;
|
|
864
|
-
'300': string;
|
|
865
|
-
'400': string;
|
|
866
|
-
'500': string;
|
|
867
|
-
'600': string;
|
|
868
|
-
'700': string;
|
|
869
|
-
'800': string;
|
|
870
|
-
'900': string;
|
|
871
|
-
'950': string;
|
|
872
|
-
};
|
|
873
|
-
fuchsia: {
|
|
874
|
-
'50': string;
|
|
875
|
-
'100': string;
|
|
876
|
-
'200': string;
|
|
877
|
-
'300': string;
|
|
878
|
-
'400': string;
|
|
879
|
-
'500': string;
|
|
880
|
-
'600': string;
|
|
881
|
-
'700': string;
|
|
882
|
-
'800': string;
|
|
883
|
-
'900': string;
|
|
884
|
-
'950': string;
|
|
885
|
-
};
|
|
886
|
-
pink: {
|
|
887
|
-
'50': string;
|
|
888
|
-
'100': string;
|
|
889
|
-
'200': string;
|
|
890
|
-
'300': string;
|
|
891
|
-
'400': string;
|
|
892
|
-
'500': string;
|
|
893
|
-
'600': string;
|
|
894
|
-
'700': string;
|
|
895
|
-
'800': string;
|
|
896
|
-
'900': string;
|
|
897
|
-
'950': string;
|
|
898
|
-
};
|
|
899
|
-
rose: {
|
|
900
|
-
'50': string;
|
|
901
|
-
'100': string;
|
|
902
|
-
'200': string;
|
|
903
|
-
'300': string;
|
|
904
|
-
'400': string;
|
|
905
|
-
'500': string;
|
|
906
|
-
'600': string;
|
|
907
|
-
'700': string;
|
|
908
|
-
'800': string;
|
|
909
|
-
'900': string;
|
|
910
|
-
'950': string;
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
//#endregion
|
|
914
|
-
//#region ../../node_modules/.pnpm/tailwindcss@4.3.2/node_modules/tailwindcss/dist/resolve-config-QUZ9b-Gn.d.mts
|
|
915
|
-
type NamedUtilityValue = {
|
|
916
|
-
kind: 'named';
|
|
917
|
-
/**
|
|
918
|
-
* ```
|
|
919
|
-
* bg-red-500
|
|
920
|
-
* ^^^^^^^
|
|
921
|
-
*
|
|
922
|
-
* w-1/2
|
|
923
|
-
* ^
|
|
924
|
-
* ```
|
|
925
|
-
*/
|
|
926
|
-
value: string;
|
|
927
|
-
/**
|
|
928
|
-
* ```
|
|
929
|
-
* w-1/2
|
|
930
|
-
* ^^^
|
|
931
|
-
* ```
|
|
932
|
-
*/
|
|
933
|
-
fraction: string | null;
|
|
934
|
-
};
|
|
935
|
-
type PluginUtils = {
|
|
936
|
-
theme: (keypath: string, defaultValue?: any) => any;
|
|
937
|
-
colors: typeof _default;
|
|
938
|
-
};
|
|
939
|
-
//#endregion
|
|
940
|
-
//#region ../../node_modules/.pnpm/tailwindcss@4.3.2/node_modules/tailwindcss/dist/types-DWdTiksJ.d.mts
|
|
941
|
-
/**
|
|
942
|
-
* The source code for one or more nodes in the AST
|
|
943
|
-
*
|
|
944
|
-
* This generally corresponds to a stylesheet
|
|
945
|
-
*/
|
|
946
|
-
interface Source {
|
|
947
|
-
/**
|
|
948
|
-
* The path to the file that contains the referenced source code
|
|
949
|
-
*
|
|
950
|
-
* If this references the *output* source code, this is `null`.
|
|
951
|
-
*/
|
|
952
|
-
file: string | null;
|
|
953
|
-
/**
|
|
954
|
-
* The referenced source code
|
|
955
|
-
*/
|
|
956
|
-
code: string;
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* The file and offsets within it that this node covers
|
|
960
|
-
*
|
|
961
|
-
* This can represent either:
|
|
962
|
-
* - A location in the original CSS which caused this node to be created
|
|
963
|
-
* - A location in the output CSS where this node resides
|
|
964
|
-
*/
|
|
965
|
-
type SourceLocation = [source: Source, start: number, end: number];
|
|
966
|
-
type Config = UserConfig;
|
|
967
|
-
type PluginFn = (api: PluginAPI) => void;
|
|
968
|
-
type PluginWithConfig = {
|
|
969
|
-
handler: PluginFn;
|
|
970
|
-
config?: UserConfig;
|
|
971
|
-
/** @internal */
|
|
972
|
-
reference?: boolean;
|
|
973
|
-
src?: SourceLocation | undefined;
|
|
974
|
-
};
|
|
975
|
-
type PluginWithOptions<T> = {
|
|
976
|
-
(options?: T): PluginWithConfig;
|
|
977
|
-
__isOptionsFunction: true;
|
|
978
|
-
};
|
|
979
|
-
type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
|
|
980
|
-
type PluginAPI = {
|
|
981
|
-
addBase(base: CssInJs): void;
|
|
982
|
-
addVariant(name: string, variant: string | string[] | CssInJs): void;
|
|
983
|
-
matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
|
|
984
|
-
modifier: string | null;
|
|
985
|
-
}) => string | string[], options?: {
|
|
986
|
-
values?: Record<string, T>;
|
|
987
|
-
sort?(a: {
|
|
988
|
-
value: T | string;
|
|
989
|
-
modifier: string | null;
|
|
990
|
-
}, b: {
|
|
991
|
-
value: T | string;
|
|
992
|
-
modifier: string | null;
|
|
993
|
-
}): number;
|
|
994
|
-
}): void;
|
|
995
|
-
addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
|
|
996
|
-
matchUtilities(utilities: Record<string, (value: string, extra: {
|
|
997
|
-
modifier: string | null;
|
|
998
|
-
}) => CssInJs | CssInJs[]>, options?: Partial<{
|
|
999
|
-
type: string | string[];
|
|
1000
|
-
supportsNegativeValues: boolean;
|
|
1001
|
-
values: Record<string, string> & {
|
|
1002
|
-
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
|
1003
|
-
};
|
|
1004
|
-
modifiers: 'any' | Record<string, string>;
|
|
1005
|
-
}>): void;
|
|
1006
|
-
addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
|
|
1007
|
-
matchComponents(utilities: Record<string, (value: string, extra: {
|
|
1008
|
-
modifier: string | null;
|
|
1009
|
-
}) => CssInJs>, options?: Partial<{
|
|
1010
|
-
type: string | string[];
|
|
1011
|
-
supportsNegativeValues: boolean;
|
|
1012
|
-
values: Record<string, string> & {
|
|
1013
|
-
__BARE_VALUE__?: (value: NamedUtilityValue) => string | undefined;
|
|
1014
|
-
};
|
|
1015
|
-
modifiers: 'any' | Record<string, string>;
|
|
1016
|
-
}>): void;
|
|
1017
|
-
theme(path: string, defaultValue?: any): any;
|
|
1018
|
-
config(path?: string, defaultValue?: any): any;
|
|
1019
|
-
prefix(className: string): string;
|
|
1020
|
-
};
|
|
1021
|
-
type CssInJs = {
|
|
1022
|
-
[key: string]: string | string[] | CssInJs | CssInJs[];
|
|
1023
|
-
};
|
|
1024
|
-
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
|
1025
|
-
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
|
1026
|
-
type ThemeConfig = Record<string, ThemeValue> & {
|
|
1027
|
-
extend?: Record<string, ThemeValue>;
|
|
1028
|
-
};
|
|
1029
|
-
type ContentFile = string | {
|
|
1030
|
-
raw: string;
|
|
1031
|
-
extension?: string;
|
|
1032
|
-
};
|
|
1033
|
-
type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
|
|
1034
|
-
interface UserConfig {
|
|
1035
|
-
presets?: UserConfig[];
|
|
1036
|
-
theme?: ThemeConfig;
|
|
1037
|
-
plugins?: Plugin[];
|
|
1038
|
-
}
|
|
1039
|
-
interface UserConfig {
|
|
1040
|
-
content?: ContentFile[] | {
|
|
1041
|
-
relative?: boolean;
|
|
1042
|
-
files: ContentFile[];
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
interface UserConfig {
|
|
1046
|
-
darkMode?: DarkModeStrategy;
|
|
1047
|
-
}
|
|
1048
|
-
interface UserConfig {
|
|
1049
|
-
prefix?: string;
|
|
1050
|
-
}
|
|
1051
|
-
interface UserConfig {
|
|
1052
|
-
blocklist?: string[];
|
|
1053
|
-
}
|
|
1054
|
-
interface UserConfig {
|
|
1055
|
-
important?: boolean | string;
|
|
1056
|
-
}
|
|
1057
|
-
interface UserConfig {
|
|
1058
|
-
future?: 'all' | Record<string, boolean>;
|
|
1059
|
-
}
|
|
1060
|
-
interface UserConfig {
|
|
1061
|
-
experimental?: 'all' | Record<string, boolean>;
|
|
1062
|
-
}
|
|
1063
|
-
//#endregion
|
|
1064
|
-
//#region ../../node_modules/.pnpm/tailwindcss@4.3.2/node_modules/tailwindcss/dist/plugin.d.mts
|
|
1065
|
-
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
|
1066
|
-
declare namespace createPlugin {
|
|
1067
|
-
var withOptions: <T>(pluginFunction: (options?: T) => PluginFn, configFunction?: (options?: T) => Partial<Config>) => PluginWithOptions<T>;
|
|
1068
|
-
}
|
|
1069
|
-
//#endregion
|
|
1070
|
-
//#region ../../node_modules/.pnpm/@heroui+theme@2.4.26_tailwindcss@4.3.2/node_modules/@heroui/theme/dist/plugin.d.ts
|
|
1071
|
-
/**
|
|
1072
|
-
* Based on tw-colors by L-Blondy
|
|
1073
|
-
* @see https://github.com/L-Blondy/tw-colors
|
|
1074
|
-
*/
|
|
1075
|
-
declare const heroui: (config?: HeroUIPluginConfig) => ReturnType<typeof createPlugin>;
|
|
1076
|
-
//#endregion
|
|
1077
|
-
//#region src/tv.d.ts
|
|
1078
|
-
/**
|
|
1079
|
-
* Represents a class value which can be either a string or an array of strings
|
|
1080
|
-
* Used for handling both single class names and multiple class names
|
|
1081
|
-
*/
|
|
1082
|
-
type ClassValue = string | string[];
|
|
400
|
+
//#region src/slotClassNames.d.ts
|
|
1083
401
|
/**
|
|
1084
402
|
* Props accepted by tailwind-variants slot functions
|
|
1085
403
|
* Combines a dynamic record of string/number values with the ClassProp from tailwind-variants
|
|
@@ -1098,21 +416,6 @@ type TVFunction = (slotProps?: TVSlotProps) => string;
|
|
|
1098
416
|
* Used to type the variants parameter in variantsToClassNames
|
|
1099
417
|
*/
|
|
1100
418
|
type TVRecord = Record<string, TVFunction>;
|
|
1101
|
-
/**
|
|
1102
|
-
* Re-export of tailwind-variants tv function
|
|
1103
|
-
* Used to create variant definitions with slots and variants
|
|
1104
|
-
*/
|
|
1105
|
-
declare const tv: TV;
|
|
1106
|
-
/**
|
|
1107
|
-
* Extracts variant props from a tailwind-variants component
|
|
1108
|
-
* Used for typing component props that use variants
|
|
1109
|
-
*/
|
|
1110
|
-
type TVProps<Component extends (...args: any) => any> = VariantProps<Component>;
|
|
1111
|
-
/**
|
|
1112
|
-
* Extracts className type from a tailwind-variants component
|
|
1113
|
-
* Can be either a partial record of slot names to class values, or a single class value
|
|
1114
|
-
*/
|
|
1115
|
-
type TVClassName<Component extends (...args: any) => any> = Partial<Record<keyof ReturnType<Component>, ClassValue>> | ClassValue;
|
|
1116
419
|
/**
|
|
1117
420
|
* Converts tailwind-variants slots instance to actual classnames object
|
|
1118
421
|
*
|
|
@@ -1138,7 +441,47 @@ type TVClassName<Component extends (...args: any) => any> = Partial<Record<keyof
|
|
|
1138
441
|
* // Result: { base: 'bg-white', content: 'p-4 text-gray-700' }
|
|
1139
442
|
* ```
|
|
1140
443
|
*/
|
|
1141
|
-
declare const variantsToClassNames: <T extends TVRecord>(variants: T, className?: ClassValue | Record<string, ClassValue>, baseSlot?: keyof T) => Record<keyof T, string>;
|
|
444
|
+
declare const variantsToClassNames: <T extends TVRecord>(variants: T, className?: ClassValue | Record<string, ClassValue | undefined>, baseSlot?: keyof T) => Record<keyof T, string>;
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region src/tv.d.ts
|
|
447
|
+
/**
|
|
448
|
+
* Represents a class value which can be either a string or an array of strings
|
|
449
|
+
* Used for handling both single class names and multiple class names
|
|
450
|
+
*/
|
|
451
|
+
export type ClassValue = string | string[];
|
|
452
|
+
/**
|
|
453
|
+
* Tailwind Variants recipe factory with isolated semantic class merging
|
|
454
|
+
* Used to create variant definitions with slots and variants
|
|
455
|
+
*/
|
|
456
|
+
export declare const tv: TV;
|
|
457
|
+
/**
|
|
458
|
+
* Extracts variant props from a tailwind-variants component
|
|
459
|
+
* Used for typing component props that use variants
|
|
460
|
+
*/
|
|
461
|
+
export type TVProps<Component extends (...args: any) => any> = VariantProps<Component>;
|
|
462
|
+
/**
|
|
463
|
+
* Extracts className type from a tailwind-variants component
|
|
464
|
+
* Can be either a partial record of slot names to class values, or a single class value
|
|
465
|
+
*/
|
|
466
|
+
export type TVClassName<Component extends (...args: any) => any> = Partial<Record<keyof ReturnType<Component>, ClassValue>> | ClassValue;
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/styling.d.ts
|
|
469
|
+
type Recipe = (...args: any[]) => any;
|
|
470
|
+
export type StylingConfig = ConfigExtension<string, string>;
|
|
471
|
+
export interface Styling {
|
|
472
|
+
readonly cn: (...classes: ArgumentArray) => string;
|
|
473
|
+
/** Resolve a module-level pixel-utils recipe with this instance's merge rules. */
|
|
474
|
+
readonly resolve: <T extends Recipe>(recipe: T, ...props: Parameters<T>) => ReturnType<T>;
|
|
475
|
+
readonly tv: TV;
|
|
476
|
+
readonly variantsToClassNames: typeof variantsToClassNames;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Creates isolated class helpers. No React or process-global configuration.
|
|
480
|
+
* Recipe classes are concatenated by the lite engine, then merged once, after
|
|
481
|
+
* defaults, variants, compounds, and caller overrides have all been collected.
|
|
482
|
+
*/
|
|
483
|
+
export declare const createStyling: (config?: StylingConfig) => Styling;
|
|
484
|
+
export declare const defaultStyling: Styling;
|
|
1142
485
|
//#endregion
|
|
1143
|
-
export {
|
|
486
|
+
export { variantsToClassNames };
|
|
1144
487
|
//# sourceMappingURL=index.d.mts.map
|