@ngrok/mantle 0.0.15 → 0.0.17
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 +1 -1
- package/assets/mantle.css +240 -19
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/src/alert.d.ts +9 -0
- package/dist/components/alert/src/alert.d.ts.map +1 -0
- package/dist/components/anchor/index.d.ts +2 -0
- package/dist/components/anchor/index.d.ts.map +1 -0
- package/dist/components/anchor/src/anchor.d.ts +15 -0
- package/dist/components/anchor/src/anchor.d.ts.map +1 -0
- package/dist/components/back-to-top-button/index.d.ts +9 -0
- package/dist/components/back-to-top-button/index.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/src/button.d.ts +26 -0
- package/dist/components/button/src/button.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/src/card.d.ts +26 -0
- package/dist/components/card/src/card.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/src/checkbox.d.ts +5 -0
- package/dist/components/checkbox/src/checkbox.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +5 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/src/code-block.d.ts +25 -0
- package/dist/components/code-block/src/code-block.d.ts.map +1 -0
- package/dist/components/code-block/src/code.d.ts +7 -0
- package/dist/components/code-block/src/code.d.ts.map +1 -0
- package/dist/components/code-block/src/line-numbers.d.ts +9 -0
- package/dist/components/code-block/src/line-numbers.d.ts.map +1 -0
- package/dist/components/code-block/src/parse-metastring.d.ts +48 -0
- package/dist/components/code-block/src/parse-metastring.d.ts.map +1 -0
- package/dist/components/code-block/src/supported-languages.d.ts +24 -0
- package/dist/components/code-block/src/supported-languages.d.ts.map +1 -0
- package/dist/components/core/index.d.ts +2 -0
- package/dist/components/core/index.d.ts.map +1 -0
- package/dist/components/core/src/cx.d.ts +8 -0
- package/dist/components/core/src/cx.d.ts.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +2 -0
- package/dist/components/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/dropdown-menu/src/dropdown-menu.d.ts +33 -0
- package/dist/components/dropdown-menu/src/dropdown-menu.d.ts.map +1 -0
- package/dist/components/hooks/use-matches-media-query.d.ts +2 -0
- package/dist/components/hooks/use-matches-media-query.d.ts.map +1 -0
- package/dist/components/hooks/use-prefers-reduced-motion.d.ts +5 -0
- package/dist/components/hooks/use-prefers-reduced-motion.d.ts.map +1 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inline-code/index.d.ts +2 -0
- package/dist/components/inline-code/index.d.ts.map +1 -0
- package/dist/components/inline-code/src/inline-code.d.ts +7 -0
- package/dist/components/inline-code/src/inline-code.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/src/input.d.ts +18 -0
- package/dist/components/input/src/input.d.ts.map +1 -0
- package/dist/components/input/src/types.d.ts +21 -0
- package/dist/components/input/src/types.d.ts.map +1 -0
- package/dist/components/media-object/index.d.ts +2 -0
- package/dist/components/media-object/index.d.ts.map +1 -0
- package/dist/components/media-object/src/media-object.d.ts +24 -0
- package/dist/components/media-object/src/media-object.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +3 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/src/password-input.d.ts +10 -0
- package/dist/components/password-input/src/password-input.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/src/popover.d.ts +7 -0
- package/dist/components/popover/src/popover.d.ts.map +1 -0
- package/dist/components/portal/index.d.ts +7 -0
- package/dist/components/portal/index.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/src/select.d.ts +17 -0
- package/dist/components/select/src/select.d.ts.map +1 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/separator/src/separator.d.ts +8 -0
- package/dist/components/separator/src/separator.d.ts.map +1 -0
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/sheet/index.d.ts.map +1 -0
- package/dist/components/sheet/src/sheet.d.ts +18 -0
- package/dist/components/sheet/src/sheet.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/src/skeleton.d.ts +12 -0
- package/dist/components/skeleton/src/skeleton.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/src/table.d.ts +11 -0
- package/dist/components/table/src/table.d.ts.map +1 -0
- package/dist/components/text-area/index.d.ts +3 -0
- package/dist/components/text-area/index.d.ts.map +1 -0
- package/dist/components/text-area/src/text-area.d.ts +14 -0
- package/dist/components/text-area/src/text-area.d.ts.map +1 -0
- package/dist/components/theme-provider/index.d.ts +4 -0
- package/dist/components/theme-provider/index.d.ts.map +1 -0
- package/dist/components/theme-provider/src/theme-provider.d.ts +63 -0
- package/dist/components/theme-provider/src/theme-provider.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/src/tooltip.d.ts +11 -0
- package/dist/components/tooltip/src/tooltip.d.ts.map +1 -0
- package/dist/components/types/index.d.ts +5 -0
- package/dist/components/types/index.d.ts.map +1 -0
- package/dist/components/types/src/as-child.d.ts +21 -0
- package/dist/components/types/src/as-child.d.ts.map +1 -0
- package/dist/components/types/src/deep-non-nullable.d.ts +7 -0
- package/dist/components/types/src/deep-non-nullable.d.ts.map +1 -0
- package/dist/components/types/src/variant-props.d.ts +9 -0
- package/dist/components/types/src/variant-props.d.ts.map +1 -0
- package/dist/components/types/src/with-style-props.d.ts +25 -0
- package/dist/components/types/src/with-style-props.d.ts.map +1 -0
- package/dist/index.js +165 -84
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.publish.tsbuildinfo +1 -0
- package/package.json +34 -30
- package/dist/index.d.ts +0 -407
- package/dist/index.d.ts.map +0 -1
- package/dist/mantle.css +0 -1223
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Mantle uses `pnpm` as its package manager. First, install the dependencies in th
|
|
|
8
8
|
|
|
9
9
|
### Development and preview
|
|
10
10
|
|
|
11
|
-
Run `pnpm dev` to run Remix's development mode, rebuilding assets on file changes.
|
|
11
|
+
Run `pnpm run docs:dev` to run Remix's development mode, rebuilding assets on file changes.
|
|
12
12
|
|
|
13
13
|
Open up [http://localhost:3000](http://localhost:3000) and you should be ready to go!
|
|
14
14
|
|
package/assets/mantle.css
CHANGED
|
@@ -439,13 +439,122 @@
|
|
|
439
439
|
--rose-900: var(--tw-rose-900);
|
|
440
440
|
--rose-950: var(--tw-rose-950);
|
|
441
441
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
--
|
|
445
|
-
--
|
|
446
|
-
--
|
|
447
|
-
--
|
|
448
|
-
|
|
442
|
+
/* Elevation Tokens */
|
|
443
|
+
|
|
444
|
+
--bg-base: var(--gray-050);
|
|
445
|
+
--bg-card: var(--white);
|
|
446
|
+
--bg-popover: var(--white);
|
|
447
|
+
--bg-dialog: var(--white);
|
|
448
|
+
|
|
449
|
+
--bg-base-hover: var(--gray-100);
|
|
450
|
+
--bg-card-hover: var(--gray-100);
|
|
451
|
+
--bg-popover-hover: var(--gray-100);
|
|
452
|
+
--bg-dialog-hover: var(--gray-100);
|
|
453
|
+
|
|
454
|
+
--border-base: var(--gray-300);
|
|
455
|
+
--border-card: var(--gray-300);
|
|
456
|
+
--border-popover: var(--gray-300);
|
|
457
|
+
--border-dialog: var(--gray-300);
|
|
458
|
+
|
|
459
|
+
--border-base-muted: var(--gray-200);
|
|
460
|
+
--border-card-muted: var(--gray-200);
|
|
461
|
+
--border-popover-muted: var(--gray-200);
|
|
462
|
+
--border-dialog-muted: var(--gray-200);
|
|
463
|
+
|
|
464
|
+
/* Overlay */
|
|
465
|
+
|
|
466
|
+
--bg-overlay: var(--tw-black) / 0.12;
|
|
467
|
+
|
|
468
|
+
/* Tooltip */
|
|
469
|
+
|
|
470
|
+
--bg-tooltip: var(--gray-800);
|
|
471
|
+
--text-on-bg-tooltip: var(--tw-white);
|
|
472
|
+
|
|
473
|
+
/* Form Tokens */
|
|
474
|
+
|
|
475
|
+
--bg-form: var(--white);
|
|
476
|
+
--bg-form-hover: var(--bg-neutral-muted-hover);
|
|
477
|
+
--bg-form-active: var(--bg-neutral-muted-active);
|
|
478
|
+
--border-form: var(--gray-300);
|
|
479
|
+
|
|
480
|
+
/* Theme Tokens */
|
|
481
|
+
|
|
482
|
+
--bg-neutral: var(--gray-500);
|
|
483
|
+
--bg-accent: var(--blue-500);
|
|
484
|
+
--bg-danger: var(--red-500);
|
|
485
|
+
--bg-warning: var(--amber-500);
|
|
486
|
+
--bg-success: var(--green-500);
|
|
487
|
+
|
|
488
|
+
--bg-neutral-hover: var(--gray-600);
|
|
489
|
+
--bg-accent-hover: var(--blue-600);
|
|
490
|
+
--bg-danger-hover: var(--red-600);
|
|
491
|
+
--bg-warning-hover: var(--amber-600);
|
|
492
|
+
--bg-success-hover: var(--green-600);
|
|
493
|
+
|
|
494
|
+
--bg-neutral-active: var(--gray-700);
|
|
495
|
+
--bg-accent-active: var(--blue-700);
|
|
496
|
+
--bg-danger-active: var(--red-700);
|
|
497
|
+
--bg-warning-active: var(--amber-700);
|
|
498
|
+
--bg-success-active: var(--green-700);
|
|
499
|
+
|
|
500
|
+
--bg-neutral-muted: var(--gray-500) / 0.08;
|
|
501
|
+
--bg-accent-muted: var(--blue-500) / 0.08;
|
|
502
|
+
--bg-danger-muted: var(--red-500) / 0.08;
|
|
503
|
+
--bg-warning-muted: var(--amber-500) / 0.08;
|
|
504
|
+
--bg-success-muted: var(--green-500) / 0.08;
|
|
505
|
+
|
|
506
|
+
--bg-neutral-muted-hover: var(--gray-500) / 0.08;
|
|
507
|
+
--bg-accent-muted-hover: var(--blue-500) / 0.08;
|
|
508
|
+
--bg-danger-muted-hover: var(--red-500) / 0.08;
|
|
509
|
+
--bg-warning-muted-hover: var(--amber-500) / 0.08;
|
|
510
|
+
--bg-success-muted-hover: var(--green-500) / 0.08;
|
|
511
|
+
|
|
512
|
+
--bg-neutral-muted-active: var(--gray-500) / 0.12;
|
|
513
|
+
--bg-accent-muted-active: var(--blue-500) / 0.12;
|
|
514
|
+
--bg-danger-muted-active: var(--red-500) / 0.12;
|
|
515
|
+
--bg-warning-muted-active: var(--amber-500) / 0.12;
|
|
516
|
+
--bg-success-muted-active: var(--green-500) / 0.12;
|
|
517
|
+
|
|
518
|
+
--border-neutral: var(--gray-600);
|
|
519
|
+
--border-accent: var(--blue-600);
|
|
520
|
+
--border-danger: var(--red-600);
|
|
521
|
+
--border-warning: var(--amber-600);
|
|
522
|
+
--border-success: var(--green-600);
|
|
523
|
+
|
|
524
|
+
--border-neutral-muted: var(--gray-500) / 0.75;
|
|
525
|
+
--border-accent-muted: var(--blue-500) / 0.75;
|
|
526
|
+
--border-danger-muted: var(--red-500) / 0.75;
|
|
527
|
+
--border-warning-muted: var(--amber-500) / 0.75;
|
|
528
|
+
--border-success-muted: var(--green-500) / 0.75;
|
|
529
|
+
|
|
530
|
+
--text-strong: var(--gray-950);
|
|
531
|
+
--text-default: var(--gray-950) / 0.75;
|
|
532
|
+
--text-muted: var(--gray-950) / 0.6;
|
|
533
|
+
--text-placeholder: var(--gray-950) / 0.5;
|
|
534
|
+
|
|
535
|
+
--text-neutral: var(--gray-600);
|
|
536
|
+
--text-accent: var(--blue-600);
|
|
537
|
+
--text-danger: var(--red-600);
|
|
538
|
+
--text-warning: var(--amber-600);
|
|
539
|
+
--text-success: var(--green-600);
|
|
540
|
+
|
|
541
|
+
--text-on-bg-neutral-muted: var(--gray-700);
|
|
542
|
+
--text-on-bg-accent-muted: var(--blue-700);
|
|
543
|
+
--text-on-bg-danger-muted: var(--red-700);
|
|
544
|
+
--text-on-bg-warning-muted: var(--amber-700);
|
|
545
|
+
--text-on-bg-success-muted: var(--green-700);
|
|
546
|
+
|
|
547
|
+
--text-on-bg-neutral: var(--tw-white);
|
|
548
|
+
--text-on-bg-accent: var(--tw-white);
|
|
549
|
+
--text-on-bg-danger: var(--tw-white);
|
|
550
|
+
--text-on-bg-warning: var(--tw-white);
|
|
551
|
+
--text-on-bg-success: var(--tw-white);
|
|
552
|
+
|
|
553
|
+
--ring-neutral: var(--gray-500) / 0.25;
|
|
554
|
+
--ring-accent: var(--blue-500) / 0.25;
|
|
555
|
+
--ring-danger: var(--red-500) / 0.25;
|
|
556
|
+
--ring-warning: var(--amber-500) / 0.25;
|
|
557
|
+
--ring-success: var(--green-500) / 0.25;
|
|
449
558
|
}
|
|
450
559
|
|
|
451
560
|
:root.dark {
|
|
@@ -652,12 +761,78 @@
|
|
|
652
761
|
--rose-900: var(--tw-rose-100);
|
|
653
762
|
--rose-950: var(--tw-rose-050);
|
|
654
763
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
--
|
|
658
|
-
--card: var(--gray-100);
|
|
659
|
-
--popover: var(--gray-
|
|
660
|
-
--
|
|
764
|
+
/* Elevation Tokens */
|
|
765
|
+
|
|
766
|
+
--bg-base: var(--gray-050);
|
|
767
|
+
--bg-card: var(--gray-100);
|
|
768
|
+
--bg-popover: var(--gray-100);
|
|
769
|
+
--bg-dialog: var(--gray-050);
|
|
770
|
+
|
|
771
|
+
--bg-base-hover: var(--gray-200);
|
|
772
|
+
--bg-card-hover: var(--gray-200);
|
|
773
|
+
--bg-popover-hover: var(--gray-200);
|
|
774
|
+
--bg-dialog-hover: var(--gray-200);
|
|
775
|
+
|
|
776
|
+
--border-base: var(--gray-300);
|
|
777
|
+
--border-card: var(--gray-300);
|
|
778
|
+
--border-popover: var(--gray-300);
|
|
779
|
+
--border-dialog: var(--gray-300);
|
|
780
|
+
|
|
781
|
+
--border-base-muted: var(--gray-200);
|
|
782
|
+
--border-card-muted: var(--gray-200);
|
|
783
|
+
--border-popover-muted: var(--gray-200);
|
|
784
|
+
--border-dialog-muted: var(--gray-200);
|
|
785
|
+
|
|
786
|
+
/* Overlay */
|
|
787
|
+
|
|
788
|
+
--bg-overlay: var(--tw-black) / 0.6;
|
|
789
|
+
|
|
790
|
+
/* Tooltip */
|
|
791
|
+
|
|
792
|
+
--bg-tooltip: var(--tw-black);
|
|
793
|
+
--text-on-bg-tooltip: var(--gray-900);
|
|
794
|
+
|
|
795
|
+
/* Form Tokens */
|
|
796
|
+
|
|
797
|
+
--bg-form: var(--gray-050);
|
|
798
|
+
--border-form: var(--gray-300);
|
|
799
|
+
|
|
800
|
+
/* Theme Tokens */
|
|
801
|
+
|
|
802
|
+
--bg-neutral: var(--gray-500);
|
|
803
|
+
--bg-accent: var(--blue-500);
|
|
804
|
+
--bg-danger: var(--red-500);
|
|
805
|
+
--bg-warning: var(--amber-500);
|
|
806
|
+
--bg-success: var(--green-500);
|
|
807
|
+
|
|
808
|
+
--bg-neutral-hover: var(--gray-500) / 0.9;
|
|
809
|
+
--bg-accent-hover: var(--blue-500) / 0.9;
|
|
810
|
+
--bg-danger-hover: var(--red-500) / 0.9;
|
|
811
|
+
--bg-warning-hover: var(--amber-500) / 0.9;
|
|
812
|
+
--bg-success-hover: var(--green-500) / 0.9;
|
|
813
|
+
|
|
814
|
+
--bg-neutral-active: var(--gray-500) / 0.8;
|
|
815
|
+
--bg-accent-active: var(--blue-500) / 0.8;
|
|
816
|
+
--bg-danger-active: var(--red-500) / 0.8;
|
|
817
|
+
--bg-warning-active: var(--amber-500) / 0.8;
|
|
818
|
+
--bg-success-active: var(--green-500) / 0.8;
|
|
819
|
+
|
|
820
|
+
--text-strong: var(--black);
|
|
821
|
+
--text-default: var(--black) / 0.7;
|
|
822
|
+
--text-muted: var(--black) / 0.5;
|
|
823
|
+
--text-placeholder: var(--black) / 0.4;
|
|
824
|
+
|
|
825
|
+
--text-on-bg-neutral: var(--tw-white);
|
|
826
|
+
--text-on-bg-accent: var(--tw-white);
|
|
827
|
+
--text-on-bg-danger: var(--tw-white);
|
|
828
|
+
--text-on-bg-warning: var(--tw-white);
|
|
829
|
+
--text-on-bg-success: var(--tw-white);
|
|
830
|
+
|
|
831
|
+
--ring-neutral: var(--gray-600) / 0.35;
|
|
832
|
+
--ring-accent: var(--blue-600) / 0.35;
|
|
833
|
+
--ring-danger: var(--red-600) / 0.35;
|
|
834
|
+
--ring-warning: var(--amber-600) / 0.35;
|
|
835
|
+
--ring-success: var(--green-600) / 0.35;
|
|
661
836
|
}
|
|
662
837
|
|
|
663
838
|
:root.light-high-contrast {
|
|
@@ -879,6 +1054,24 @@
|
|
|
879
1054
|
|
|
880
1055
|
--black: 0 0% 0%;
|
|
881
1056
|
--white: 0 0% 100%;
|
|
1057
|
+
|
|
1058
|
+
/* Tokens */
|
|
1059
|
+
|
|
1060
|
+
--border-base-muted: var(--gray-300);
|
|
1061
|
+
--border-card-muted: var(--gray-300);
|
|
1062
|
+
--border-popover-muted: var(--gray-300);
|
|
1063
|
+
--border-dialog-muted: var(--gray-300);
|
|
1064
|
+
|
|
1065
|
+
--text-strong: var(--black);
|
|
1066
|
+
--text-default: var(--black);
|
|
1067
|
+
--text-muted: var(--black) / 0.75;
|
|
1068
|
+
--text-placeholder: var(--black) / 0.5;
|
|
1069
|
+
|
|
1070
|
+
--ring-neutral: var(--gray-400) / 0.4;
|
|
1071
|
+
--ring-accent: var(--blue-400) / 0.4;
|
|
1072
|
+
--ring-danger: var(--red-400) / 0.4;
|
|
1073
|
+
--ring-warning: var(--amber-400) / 0.4;
|
|
1074
|
+
--ring-success: var(--green-400) / 0.4;
|
|
882
1075
|
}
|
|
883
1076
|
|
|
884
1077
|
:root.dark-high-contrast {
|
|
@@ -1101,12 +1294,40 @@
|
|
|
1101
1294
|
--yellow-900: 50 96% 89%;
|
|
1102
1295
|
--yellow-950: 55 92% 95%;
|
|
1103
1296
|
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
--
|
|
1107
|
-
--card: var(--gray-050);
|
|
1108
|
-
--popover: var(--gray-
|
|
1109
|
-
--
|
|
1297
|
+
/* Tokens */
|
|
1298
|
+
|
|
1299
|
+
--bg-base: var(--white);
|
|
1300
|
+
--bg-card: var(--gray-050);
|
|
1301
|
+
--bg-popover: var(--gray-050);
|
|
1302
|
+
--bg-dialog: var(--gray-050);
|
|
1303
|
+
--bg-overlay: var(--tw-black) / 0.8;
|
|
1304
|
+
|
|
1305
|
+
--text-strong: var(--black);
|
|
1306
|
+
--text-default: var(--black);
|
|
1307
|
+
--text-muted: var(--black) / 0.75;
|
|
1308
|
+
--text-placeholder: var(--black) / 0.5;
|
|
1309
|
+
|
|
1310
|
+
--text-on-bg-neutral: var(--tw-black);
|
|
1311
|
+
--text-on-bg-accent: var(--tw-black);
|
|
1312
|
+
--text-on-bg-danger: var(--tw-black);
|
|
1313
|
+
--text-on-bg-warning: var(--tw-black);
|
|
1314
|
+
--text-on-bg-success: var(--tw-black);
|
|
1315
|
+
|
|
1316
|
+
--border-base-muted: var(--gray-300);
|
|
1317
|
+
--border-card-muted: var(--gray-300);
|
|
1318
|
+
--border-popover-muted: var(--gray-300);
|
|
1319
|
+
--border-dialog-muted: var(--gray-300);
|
|
1320
|
+
|
|
1321
|
+
--ring-neutral: var(--gray-700) / 0.65;
|
|
1322
|
+
--ring-accent: var(--blue-700) / 0.65;
|
|
1323
|
+
--ring-danger: var(--red-700) / 0.65;
|
|
1324
|
+
--ring-warning: var(--amber-700) / 0.65;
|
|
1325
|
+
--ring-success: var(--green-700) / 0.65;
|
|
1326
|
+
|
|
1327
|
+
--bg-overlay: var(--tw-black) / 0.6;
|
|
1328
|
+
|
|
1329
|
+
--bg-tooltip: var(--tw-black);
|
|
1330
|
+
--text-on-bg-tooltip: var(--tw-white);
|
|
1110
1331
|
}
|
|
1111
1332
|
|
|
1112
1333
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
declare const Alert: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & Partial<import("../../types").DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
3
|
+
priority?: "danger" | "default" | "info" | "success" | "warning" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AlertContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertContent, AlertTitle, AlertDescription };
|
|
9
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../components/alert/src/alert.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAqB5C,QAAA,MAAM,KAAK;;kIAIV,CAAC;AAGF,QAAA,MAAM,YAAY,2HAEhB,CAAC;AAGH,QAAA,MAAM,UAAU,qIAEf,CAAC;AAGF,QAAA,MAAM,gBAAgB,uIAErB,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/anchor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes } from "react";
|
|
2
|
+
import { WithAsChild } from "../../types/src/as-child";
|
|
3
|
+
declare const anchorClassNames: (className: string | undefined) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Fundamental component for rendering links to external addresses.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
|
|
8
|
+
*
|
|
9
|
+
* @note If you need to link to an internal application route, prefer using the
|
|
10
|
+
* [`react-router-dom` `<Link>`](https://reactrouter.com/en/main/components/link) or the
|
|
11
|
+
* [`@remix-run/react` `<Link>`](https://remix.run/docs/en/main/components/link).
|
|
12
|
+
*/
|
|
13
|
+
declare const Anchor: import("react").ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & WithAsChild & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
export { Anchor, anchorClassNames };
|
|
15
|
+
//# sourceMappingURL=anchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../../../components/anchor/src/anchor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,QAAA,MAAM,gBAAgB,cAAe,MAAM,GAAG,SAAS,WAIrD,CAAC;AAIH;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,qJAIV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
className?: string;
|
|
4
|
+
showThresholdPx?: number;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare const BackToTopButton: ({ className, showThresholdPx, style }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/back-to-top-button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAM9D,KAAK,KAAK,GAAG;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,0CAAiD,KAAK,4CAuCjF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes } from "react";
|
|
2
|
+
import type { WithAsChild } from "../../types/src/as-child";
|
|
3
|
+
import type { VariantProps } from "../../types/src/variant-props";
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
appearance?: "link" | "outlined" | "filled" | "ghost" | null | undefined;
|
|
6
|
+
priority?: "danger" | "default" | "neutral" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
9
|
+
/**
|
|
10
|
+
* The props for the `Button` component.
|
|
11
|
+
*/
|
|
12
|
+
export type ButtonProps = WithAsChild & ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariants;
|
|
13
|
+
/**
|
|
14
|
+
* Renders a button or a component that looks like a button, an interactive
|
|
15
|
+
* element activated by a user with a mouse, keyboard, finger, voice command, or
|
|
16
|
+
* other assistive technology. Once activated, it then performs an action, such
|
|
17
|
+
* as submitting a form or opening a dialog.
|
|
18
|
+
*
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
|
|
20
|
+
*/
|
|
21
|
+
declare const Button: import("react").ForwardRefExoticComponent<WithAsChild & ButtonHTMLAttributes<HTMLButtonElement> & Partial<import("../..").DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
22
|
+
appearance?: "link" | "outlined" | "filled" | "ghost" | null | undefined;
|
|
23
|
+
priority?: "danger" | "default" | "neutral" | null | undefined;
|
|
24
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export { Button, buttonVariants };
|
|
26
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../components/button/src/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,QAAA,MAAM,cAAc;;;8EAuEnB,CAAC;AAEF,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,cAAc,CAAC;AAEjG;;;;;;;GAOG;AACH,QAAA,MAAM,MAAM;;;qIAMX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/E,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
import type { WithAsChild } from "../../types/src/as-child";
|
|
3
|
+
export type CardProps = HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
/**
|
|
5
|
+
* A container that can be used to display content in a box resembling a playing
|
|
6
|
+
* card.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* The main content of a card. Usually composed as a direct child of a `Card` component.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CardBody: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* The footer container of a card. Usually composed as a direct child of a `Card` component.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CardFooter: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/**
|
|
18
|
+
* The header container of a card. Usually composed as a direct child of a `Card` component.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CardHeader: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export type CardTitleProps = HTMLAttributes<HTMLHeadingElement> & WithAsChild;
|
|
22
|
+
/**
|
|
23
|
+
* The title of a card. Usually composed as a direct child of a `CardHeader` component.
|
|
24
|
+
*/
|
|
25
|
+
export declare const CardTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & WithAsChild & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../components/card/src/card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,IAAI,sGAIf,CAAC;AAGH;;GAEG;AACH,eAAO,MAAM,QAAQ,sGAInB,CAAC;AAGH;;GAEG;AACH,eAAO,MAAM,UAAU,sGAIrB,CAAC;AAGH;;GAEG;AACH,eAAO,MAAM,UAAU,sGAIrB,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,SAAS,mJAGpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
5
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../components/checkbox/src/checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAQ9D,QAAA,MAAM,QAAQ,+LAiBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton, CodeBlockExpanderButton, CodeBlockHeader, CodeBlockTitle, } from "./src/code-block";
|
|
2
|
+
export { code } from "./src/code";
|
|
3
|
+
export { parseMetastring } from "./src/parse-metastring";
|
|
4
|
+
export { isSupportedLanguage, parseLanguage } from "./src/supported-languages";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/code-block/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,cAAc,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import "prismjs/components/prism-bash.js";
|
|
3
|
+
import "prismjs/components/prism-jsx.js";
|
|
4
|
+
import "prismjs/components/prism-tsx.js";
|
|
5
|
+
import type { WithStyleProps } from "../../types/src/with-style-props";
|
|
6
|
+
declare const CodeBlock: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CodeBlockBody: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const CodeBlockCode: import("react").ForwardRefExoticComponent<WithStyleProps & {
|
|
9
|
+
children?: string | undefined;
|
|
10
|
+
highlightLines?: (number | `${number}-${number}`)[] | undefined;
|
|
11
|
+
language?: "html" | "ruby" | "bash" | "cs" | "csharp" | "css" | "dotnet" | "go" | "java" | "javascript" | "js" | "json" | "jsx" | "py" | "python" | "rb" | "rust" | "sh" | "shell" | "ts" | "tsx" | "typescript" | "yaml" | "yml" | undefined;
|
|
12
|
+
showLineNumbers?: boolean | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLPreElement>>;
|
|
14
|
+
declare const CodeBlockHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const CodeBlockTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
16
|
+
asChild?: boolean | undefined;
|
|
17
|
+
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const CodeBlockCopyButton: import("react").ForwardRefExoticComponent<WithStyleProps & {
|
|
19
|
+
onCopy?: ((value: string) => void) | undefined;
|
|
20
|
+
onCopyError?: ((error: unknown) => void) | undefined;
|
|
21
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
type CodeBlockExpanderButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, "children" | "aria-controls" | "aria-expanded">;
|
|
23
|
+
declare const CodeBlockExpanderButton: import("react").ForwardRefExoticComponent<CodeBlockExpanderButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export { CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton, CodeBlockExpanderButton, CodeBlockHeader, CodeBlockTitle, };
|
|
25
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../../components/code-block/src/code-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKN,cAAc,EAQd,MAAM,OAAO,CAAC;AACf,OAAO,kCAAkC,CAAC;AAC1C,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AAOzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAmCvE,QAAA,MAAM,SAAS,2HA4Cb,CAAC;AAGH,QAAA,MAAM,aAAa,2HAEjB,CAAC;AAUH,QAAA,MAAM,aAAa;eANP,MAAM,GAAG,SAAS;;;;kDA4D5B,CAAC;AAGH,QAAA,MAAM,eAAe,2HAMnB,CAAC;AAGH,QAAA,MAAM,cAAc;;sDAKnB,CAAC;AAQF,QAAA,MAAM,mBAAmB;sBAJP,MAAM,KAAK,IAAI;2BACV,OAAO,KAAK,IAAI;qDAsDtC,CAAC;AAGF,KAAK,4BAA4B,GAAG,IAAI,CACvC,cAAc,CAAC,iBAAiB,CAAC,EACjC,UAAU,GAAG,eAAe,GAAG,eAAe,CAC9C,CAAC;AAEF,QAAA,MAAM,uBAAuB,4HAoC5B,CAAC;AAGF,OAAO,EACN,SAAS,EACT,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,cAAc,GACd,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Primitive = string | number | boolean | undefined | null;
|
|
2
|
+
/**
|
|
3
|
+
* Tagged template literal to format code blocks and normalize leading indentation
|
|
4
|
+
*/
|
|
5
|
+
export declare function code(strings: TemplateStringsArray, ...values: Primitive[]): string;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../../components/code-block/src/code.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;AAE9D;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAwBlF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A line range is a string in the format of `start-end` where `start` and `end` are line numbers.
|
|
3
|
+
*/
|
|
4
|
+
export type LineRange = `${number}-${number}`;
|
|
5
|
+
/**
|
|
6
|
+
* Given a list of line ranges and numbers, resolves them into a unique list of line numbers as a set.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveLineNumbers(...items: (LineRange | number)[]): Set<number>;
|
|
9
|
+
//# sourceMappingURL=line-numbers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-numbers.d.ts","sourceRoot":"","sources":["../../../../components/code-block/src/line-numbers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAE9C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAqChF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const modes: readonly ["file", "cli"];
|
|
3
|
+
export type Mode = (typeof modes)[number];
|
|
4
|
+
declare const metaSchema: z.ZodObject<{
|
|
5
|
+
collapsible: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
disableCopy: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
mode: z.ZodOptional<z.ZodEnum<["file", "cli"]>>;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
collapsible: boolean;
|
|
11
|
+
disableCopy: boolean;
|
|
12
|
+
mode?: "file" | "cli" | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
collapsible?: boolean | undefined;
|
|
16
|
+
disableCopy?: boolean | undefined;
|
|
17
|
+
mode?: "file" | "cli" | undefined;
|
|
18
|
+
title?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export type MetaInput = z.input<typeof metaSchema>;
|
|
21
|
+
export type Meta = z.infer<typeof metaSchema>;
|
|
22
|
+
export declare const defaultMeta: {
|
|
23
|
+
readonly collapsible: false;
|
|
24
|
+
readonly disableCopy: false;
|
|
25
|
+
readonly mode: undefined;
|
|
26
|
+
readonly title: undefined;
|
|
27
|
+
};
|
|
28
|
+
export type DefaultMeta = typeof defaultMeta;
|
|
29
|
+
/**
|
|
30
|
+
* Parses a markdown code block (```) metastring into a meta object.
|
|
31
|
+
* Defaults to DefaultMeta if no metastring given or if metastring is invalid.
|
|
32
|
+
* Useful for parsing the metastring from a markdown code block to pass into the
|
|
33
|
+
* CodeBlock components as props.
|
|
34
|
+
*/
|
|
35
|
+
export declare function parseMetastring(value: string | undefined): Meta;
|
|
36
|
+
/**
|
|
37
|
+
* Remove leading and trailing `"` quotes around value
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
export declare function normalizeValue(value: string | undefined): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Splits a metastring into an array of tokens that can be parsed into a meta object.
|
|
43
|
+
* Should allow for quotes and spaces in tokens
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
export declare function tokenizeMetastring(value: string | undefined): string[];
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=parse-metastring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-metastring.d.ts","sourceRoot":"","sources":["../../../../components/code-block/src/parse-metastring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,KAAK,0BAA2B,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;EAKd,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW;;;;;CAKC,CAAC;AAE1B,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CA2B/D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,sBAEvD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CA0BtE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of supported languages for syntax highlighting.
|
|
3
|
+
* @private
|
|
4
|
+
*/
|
|
5
|
+
export declare const supportedLanguages: readonly ["bash", "cs", "csharp", "css", "dotnet", "go", "html", "java", "javascript", "js", "json", "jsx", "py", "python", "rb", "ruby", "rust", "sh", "shell", "ts", "tsx", "typescript", "yaml", "yml"];
|
|
6
|
+
/**
|
|
7
|
+
* Supported languages for syntax highlighting.
|
|
8
|
+
*/
|
|
9
|
+
export type SupportedLanguage = (typeof supportedLanguages)[number];
|
|
10
|
+
/**
|
|
11
|
+
* Parses a markdown code block (```) language class into a SupportedLanguage.
|
|
12
|
+
* Defaults to "sh" if no supported language is found.
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseLanguage(value: `language-${string}` | `lang-${string}` | (string & {}) | undefined): SupportedLanguage;
|
|
15
|
+
/**
|
|
16
|
+
* Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isSupportedLanguage: (value: unknown) => value is "html" | "ruby" | "bash" | "cs" | "csharp" | "css" | "dotnet" | "go" | "java" | "javascript" | "js" | "json" | "jsx" | "py" | "python" | "rb" | "rust" | "sh" | "shell" | "ts" | "tsx" | "typescript" | "yaml" | "yml";
|
|
19
|
+
/**
|
|
20
|
+
* Formats a language name into a class name that Prism.js can understand.
|
|
21
|
+
* @default "language-sh"
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatLanguageClassName(language?: SupportedLanguage | undefined): "language-html" | "language-ruby" | "language-bash" | "language-cs" | "language-csharp" | "language-css" | "language-dotnet" | "language-go" | "language-java" | "language-javascript" | "language-js" | "language-json" | "language-jsx" | "language-py" | "language-python" | "language-rb" | "language-rust" | "language-sh" | "language-shell" | "language-ts" | "language-tsx" | "language-typescript" | "language-yaml" | "language-yml";
|
|
24
|
+
//# sourceMappingURL=supported-languages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-languages.d.ts","sourceRoot":"","sources":["../../../../components/code-block/src/supported-languages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,4MAyBrB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,YAAY,MAAM,EAAE,GAAG,QAAQ,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,SAAS,GACxE,iBAAiB,CAUnB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAW,OAAO,oOAEjD,CAAC;AAOF;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,GAAE,iBAAiB,GAAG,SAAgB,kbAIrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ClassValue } from "clsx";
|
|
2
|
+
/**
|
|
3
|
+
* Conditionally add Tailwind (and other) CSS classes.
|
|
4
|
+
*
|
|
5
|
+
* Allows for tailwind overrides in LTR-specificity-like order of applied classes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function cx(...inputs: ClassValue[]): string;
|
|
8
|
+
//# sourceMappingURL=cx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../../../components/core/src/cx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C;;;;GAIG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|