@frontile/theme 0.18.0-alpha.18 → 0.18.0-alpha.19

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.
@@ -304,6 +304,34 @@ declare const modal: import("tailwind-variants").TVReturnType<{
304
304
  };
305
305
  }>, unknown, unknown, undefined>>;
306
306
  declare const drawer: import("tailwind-variants").TVReturnType<{
307
+ appearance: {
308
+ default: {
309
+ base: string;
310
+ body: string;
311
+ header: string;
312
+ footer: string;
313
+ closeButton: string;
314
+ headerCloseButton: string;
315
+ icon: string;
316
+ title: string;
317
+ description: string;
318
+ dragHandleBar: string;
319
+ };
320
+ ghost: {
321
+ base: string;
322
+ body: string;
323
+ header: string;
324
+ footer: string;
325
+ title: string;
326
+ description: string;
327
+ dragHandleBar: string;
328
+ };
329
+ };
330
+ hasCloseButton: {
331
+ true: {
332
+ header: string;
333
+ };
334
+ };
307
335
  size: {
308
336
  xs: string;
309
337
  sm: string;
@@ -321,12 +349,22 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
321
349
  }, {
322
350
  base: string;
323
351
  closeButton: string;
352
+ headerCloseButton: string;
324
353
  header: string;
354
+ headerContent: string;
355
+ headerActions: string;
325
356
  body: string;
326
357
  footer: string;
358
+ icon: string;
359
+ title: string;
360
+ description: string;
361
+ dragHandle: string;
362
+ dragHandleBar: string;
327
363
  }, undefined, {
328
364
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
329
365
  size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
366
+ appearance?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
367
+ hasCloseButton?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
330
368
  placement?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
331
369
  } | undefined;
332
370
  } & import("tailwind-variants/dist/config.js").TWMConfig & {
@@ -371,6 +409,34 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
371
409
  };
372
410
  };
373
411
  }, {
412
+ appearance: {
413
+ default: {
414
+ base: string;
415
+ body: string;
416
+ header: string;
417
+ footer: string;
418
+ closeButton: string;
419
+ headerCloseButton: string;
420
+ icon: string;
421
+ title: string;
422
+ description: string;
423
+ dragHandleBar: string;
424
+ };
425
+ ghost: {
426
+ base: string;
427
+ body: string;
428
+ header: string;
429
+ footer: string;
430
+ title: string;
431
+ description: string;
432
+ dragHandleBar: string;
433
+ };
434
+ };
435
+ hasCloseButton: {
436
+ true: {
437
+ header: string;
438
+ };
439
+ };
374
440
  size: {
375
441
  xs: string;
376
442
  sm: string;
@@ -388,10 +454,46 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
388
454
  }, {
389
455
  base: string;
390
456
  closeButton: string;
457
+ headerCloseButton: string;
391
458
  header: string;
459
+ headerContent: string;
460
+ headerActions: string;
392
461
  body: string;
393
462
  footer: string;
463
+ icon: string;
464
+ title: string;
465
+ description: string;
466
+ dragHandle: string;
467
+ dragHandleBar: string;
394
468
  }, import("tailwind-variants").TVReturnType<{
469
+ appearance: {
470
+ default: {
471
+ base: string;
472
+ body: string;
473
+ header: string;
474
+ footer: string;
475
+ closeButton: string;
476
+ headerCloseButton: string;
477
+ icon: string;
478
+ title: string;
479
+ description: string;
480
+ dragHandleBar: string;
481
+ };
482
+ ghost: {
483
+ base: string;
484
+ body: string;
485
+ header: string;
486
+ footer: string;
487
+ title: string;
488
+ description: string;
489
+ dragHandleBar: string;
490
+ };
491
+ };
492
+ hasCloseButton: {
493
+ true: {
494
+ header: string;
495
+ };
496
+ };
395
497
  size: {
396
498
  xs: string;
397
499
  sm: string;
@@ -409,10 +511,46 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
409
511
  }, {
410
512
  base: string;
411
513
  closeButton: string;
514
+ headerCloseButton: string;
412
515
  header: string;
516
+ headerContent: string;
517
+ headerActions: string;
413
518
  body: string;
414
519
  footer: string;
520
+ icon: string;
521
+ title: string;
522
+ description: string;
523
+ dragHandle: string;
524
+ dragHandleBar: string;
415
525
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
526
+ appearance: {
527
+ default: {
528
+ base: string;
529
+ body: string;
530
+ header: string;
531
+ footer: string;
532
+ closeButton: string;
533
+ headerCloseButton: string;
534
+ icon: string;
535
+ title: string;
536
+ description: string;
537
+ dragHandleBar: string;
538
+ };
539
+ ghost: {
540
+ base: string;
541
+ body: string;
542
+ header: string;
543
+ footer: string;
544
+ title: string;
545
+ description: string;
546
+ dragHandleBar: string;
547
+ };
548
+ };
549
+ hasCloseButton: {
550
+ true: {
551
+ header: string;
552
+ };
553
+ };
416
554
  size: {
417
555
  xs: string;
418
556
  sm: string;
@@ -428,6 +566,34 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
428
566
  right: string;
429
567
  };
430
568
  }, {
569
+ appearance: {
570
+ default: {
571
+ base: string;
572
+ body: string;
573
+ header: string;
574
+ footer: string;
575
+ closeButton: string;
576
+ headerCloseButton: string;
577
+ icon: string;
578
+ title: string;
579
+ description: string;
580
+ dragHandleBar: string;
581
+ };
582
+ ghost: {
583
+ base: string;
584
+ body: string;
585
+ header: string;
586
+ footer: string;
587
+ title: string;
588
+ description: string;
589
+ dragHandleBar: string;
590
+ };
591
+ };
592
+ hasCloseButton: {
593
+ true: {
594
+ header: string;
595
+ };
596
+ };
431
597
  size: {
432
598
  xs: string;
433
599
  sm: string;
@@ -443,7 +609,67 @@ declare const drawer: import("tailwind-variants").TVReturnType<{
443
609
  right: string;
444
610
  };
445
611
  }>, unknown, unknown, undefined>>;
612
+ /**
613
+ * The arrow shared by `Popover.Content` and `Tooltip`.
614
+ *
615
+ * A rotated square rather than a border triangle, so it can carry the
616
+ * content's own border. `bg-inherit` is the point: the arrow takes whatever
617
+ * background the content has, so intents and custom classes never have to be
618
+ * restated here. Its offset along the content's edge comes from the
619
+ * floating-ui `arrow` middleware and is written as inline `left`/`top`; the
620
+ * static side is pinned by the component from the resolved placement.
621
+ */
622
+ declare const overlayArrow: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "absolute w-2 h-2 rotate-45 bg-inherit border border-neutral-subtle pointer-events-none", {
623
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
624
+ } & import("tailwind-variants/dist/config.js").TWMConfig & {
625
+ twMerge: true;
626
+ twMergeConfig: {
627
+ readonly extend: {
628
+ readonly classGroups: {
629
+ readonly 'icon-size': readonly [{
630
+ readonly 'size-icon': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
631
+ }];
632
+ readonly 'border-w': readonly [{
633
+ readonly border: readonly ["thin", "heavy", "aggressive"];
634
+ }];
635
+ readonly rounded: readonly [{
636
+ readonly rounded: readonly ["default", "pill"];
637
+ }];
638
+ readonly shadow: readonly [{
639
+ readonly 'shadow-elevation': string[];
640
+ }];
641
+ readonly opacity: readonly [{
642
+ readonly opacity: readonly ["hover", "disabled"];
643
+ }];
644
+ readonly 'font-size': readonly [{
645
+ readonly 'text-marquee': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
646
+ }, {
647
+ readonly 'text-header': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
648
+ }, {
649
+ readonly 'text-body': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
650
+ }, {
651
+ readonly 'text-strong': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
652
+ }, {
653
+ readonly 'text-code': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
654
+ }, {
655
+ readonly 'text-caption': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
656
+ }, {
657
+ readonly 'text-label': readonly ["pico", "nano", "micro", "5xs", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "kilo", "mega"];
658
+ }];
659
+ };
660
+ readonly conflictingClassGroups: {
661
+ readonly 'icon-size': readonly ["w", "h", "size"];
662
+ };
663
+ };
664
+ };
665
+ }, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "absolute w-2 h-2 rotate-45 bg-inherit border border-neutral-subtle pointer-events-none", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
446
666
  declare const overlayTransitions: {
667
+ /**
668
+ * Deliberately has no `prefers-reduced-motion` branch: a cross-fade is not
669
+ * motion. Reduced motion asks for movement to be removed, not for state
670
+ * changes to become instant, so the other transitions below drop their
671
+ * travel and keep exactly this fade.
672
+ */
447
673
  fade: {
448
674
  enter: {
449
675
  opacity: string;
@@ -460,11 +686,17 @@ declare const overlayTransitions: {
460
686
  };
461
687
  zoom: {
462
688
  enter: {
689
+ '@media (prefers-reduced-motion: reduce)': {
690
+ transform: string;
691
+ };
463
692
  opacity: string;
464
693
  transform: string;
465
694
  };
466
695
  enterActive: {
467
696
  transition: string;
697
+ '@media (prefers-reduced-motion: reduce)': {
698
+ transition: string;
699
+ };
468
700
  };
469
701
  leave: {
470
702
  opacity: string;
@@ -472,61 +704,116 @@ declare const overlayTransitions: {
472
704
  };
473
705
  leaveActive: {
474
706
  transition: string;
707
+ '@media (prefers-reduced-motion: reduce)': {
708
+ transition: string;
709
+ };
475
710
  };
476
711
  };
477
712
  slideFromLeft: {
478
713
  enterActive: {
479
714
  transition: string;
715
+ '@media (prefers-reduced-motion: reduce)': {
716
+ transition: string;
717
+ };
480
718
  };
481
719
  leaveActive: {
482
720
  transition: string;
721
+ '@media (prefers-reduced-motion: reduce)': {
722
+ transition: string;
723
+ };
483
724
  };
484
725
  enter: {
726
+ '@media (prefers-reduced-motion: reduce)': {
727
+ transform: string;
728
+ opacity: string;
729
+ };
485
730
  transform: string;
486
731
  };
487
732
  leave: {
733
+ '@media (prefers-reduced-motion: reduce)': {
734
+ opacity: string;
735
+ };
488
736
  transform: string;
489
737
  };
490
738
  };
491
739
  slideFromRight: {
492
740
  enterActive: {
493
741
  transition: string;
742
+ '@media (prefers-reduced-motion: reduce)': {
743
+ transition: string;
744
+ };
494
745
  };
495
746
  leaveActive: {
496
747
  transition: string;
748
+ '@media (prefers-reduced-motion: reduce)': {
749
+ transition: string;
750
+ };
497
751
  };
498
752
  enter: {
753
+ '@media (prefers-reduced-motion: reduce)': {
754
+ transform: string;
755
+ opacity: string;
756
+ };
499
757
  transform: string;
500
758
  };
501
759
  leave: {
760
+ '@media (prefers-reduced-motion: reduce)': {
761
+ opacity: string;
762
+ };
502
763
  transform: string;
503
764
  };
504
765
  };
505
766
  slideFromTop: {
506
767
  enterActive: {
507
768
  transition: string;
769
+ '@media (prefers-reduced-motion: reduce)': {
770
+ transition: string;
771
+ };
508
772
  };
509
773
  leaveActive: {
510
774
  transition: string;
775
+ '@media (prefers-reduced-motion: reduce)': {
776
+ transition: string;
777
+ };
511
778
  };
512
779
  enter: {
780
+ '@media (prefers-reduced-motion: reduce)': {
781
+ transform: string;
782
+ opacity: string;
783
+ };
513
784
  transform: string;
514
785
  };
515
786
  leave: {
787
+ '@media (prefers-reduced-motion: reduce)': {
788
+ opacity: string;
789
+ };
516
790
  transform: string;
517
791
  };
518
792
  };
519
793
  slideFromBottom: {
520
794
  enterActive: {
521
795
  transition: string;
796
+ '@media (prefers-reduced-motion: reduce)': {
797
+ transition: string;
798
+ };
522
799
  };
523
800
  leaveActive: {
524
801
  transition: string;
802
+ '@media (prefers-reduced-motion: reduce)': {
803
+ transition: string;
804
+ };
525
805
  };
526
806
  enter: {
807
+ '@media (prefers-reduced-motion: reduce)': {
808
+ transform: string;
809
+ opacity: string;
810
+ };
527
811
  transform: string;
528
812
  };
529
813
  leave: {
814
+ '@media (prefers-reduced-motion: reduce)': {
815
+ opacity: string;
816
+ };
530
817
  transform: string;
531
818
  };
532
819
  };
@@ -575,8 +862,58 @@ declare const overlayTransitions: {
575
862
  };
576
863
  };
577
864
  };
865
+ /**
866
+ * Tooltip: a short scale-and-approach. Deliberately faster than `scale` --
867
+ * a tooltip fires on every mouse pass, so a 200ms reveal reads as lag. The
868
+ * translate is toward the anchor and the origin is set from the resolved
869
+ * placement (see the `tooltip` component's `data-placement` classes), so it
870
+ * grows out of the trigger rather than appearing in space.
871
+ */
872
+ tooltip: {
873
+ enter: {
874
+ opacity: string;
875
+ transform: string;
876
+ '@media (prefers-reduced-motion: reduce)': {
877
+ transform: string;
878
+ };
879
+ };
880
+ enterActive: {
881
+ transitionProperty: string;
882
+ transitionDuration: string;
883
+ transitionTimingFunction: string;
884
+ '@media (prefers-reduced-motion: reduce)': {
885
+ transitionProperty: string;
886
+ };
887
+ };
888
+ enterTo: {
889
+ opacity: string;
890
+ transform: string;
891
+ };
892
+ leave: {
893
+ opacity: string;
894
+ transform: string;
895
+ };
896
+ leaveActive: {
897
+ transitionProperty: string;
898
+ transitionDuration: string;
899
+ transitionTimingFunction: string;
900
+ '@media (prefers-reduced-motion: reduce)': {
901
+ transitionProperty: string;
902
+ };
903
+ };
904
+ leaveTo: {
905
+ opacity: string;
906
+ transform: string;
907
+ '@media (prefers-reduced-motion: reduce)': {
908
+ transform: string;
909
+ };
910
+ };
911
+ };
578
912
  scale: {
579
913
  enter: {
914
+ '@media (prefers-reduced-motion: reduce)': {
915
+ transform: string;
916
+ };
580
917
  opacity: string;
581
918
  transform: string;
582
919
  };
@@ -584,6 +921,9 @@ declare const overlayTransitions: {
584
921
  transitionProperty: string;
585
922
  transitionDuration: string;
586
923
  transitionTimingFunction: string;
924
+ '@media (prefers-reduced-motion: reduce)': {
925
+ transitionProperty: string;
926
+ };
587
927
  };
588
928
  enterTo: {
589
929
  opacity: string;
@@ -597,8 +937,14 @@ declare const overlayTransitions: {
597
937
  transitionProperty: string;
598
938
  transitionDuration: string;
599
939
  transitionTimingFunction: string;
940
+ '@media (prefers-reduced-motion: reduce)': {
941
+ transitionProperty: string;
942
+ };
600
943
  };
601
944
  leaveTo: {
945
+ '@media (prefers-reduced-motion: reduce)': {
946
+ transform: string;
947
+ };
602
948
  opacity: string;
603
949
  transform: string;
604
950
  };
@@ -612,4 +958,5 @@ export type ModalVariants = VariantProps<typeof modal>;
612
958
  export type ModalSlots = keyof ReturnType<typeof modal>;
613
959
  export type BackdropVariants = VariantProps<typeof backdrop>;
614
960
  export type BackdropSlots = keyof ReturnType<typeof backdrop>;
615
- export { overlay, drawer, modal, overlayTransitions, backdrop };
961
+ export type OverlayArrowVariants = VariantProps<typeof overlayArrow>;
962
+ export { overlay, drawer, modal, overlayTransitions, backdrop, overlayArrow };