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