@seed-design/css 0.0.10 → 0.0.13

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/all.css CHANGED
@@ -198,6 +198,8 @@
198
198
  --seed-dimension-spacing-x-global-gutter: var(--seed-dimension-x4);
199
199
  --seed-dimension-spacing-y-component-default: var(--seed-dimension-x3);
200
200
  --seed-dimension-spacing-y-nav-to-title: var(--seed-dimension-x5);
201
+ --seed-dimension-spacing-y-screen-bottom: var(--seed-dimension-x14);
202
+ --seed-dimension-spacing-y-between-text: var(--seed-dimension-x1_5);
201
203
  --seed-duration-d1: 50ms;
202
204
  --seed-duration-d2: .1s;
203
205
  --seed-duration-d3: .15s;
@@ -567,6 +569,8 @@
567
569
  box-sizing: border-box;
568
570
  vertical-align: top;
569
571
  border-radius: var(--seed-radius-full);
572
+ width: var(--avatar-size);
573
+ height: var(--avatar-size);
570
574
  justify-content: center;
571
575
  align-items: center;
572
576
  display: inline-flex;
@@ -575,11 +579,15 @@
575
579
 
576
580
  .seed-avatar__image {
577
581
  object-fit: cover;
578
- border-radius: var(--seed-radius-full);
579
582
  width: 100%;
580
583
  height: 100%;
584
+ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"white\"/></svg>"), var(--svg-mask-uri);
585
+ -webkit-mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
586
+ -webkit-mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
587
+ -webkit-mask-composite: source-out;
581
588
  display: block;
582
589
  overflow: hidden;
590
+ -webkit-mask-repeat: no-repeat;
583
591
  }
584
592
 
585
593
  .seed-avatar__image:not([data-loading-state="loaded"]) {
@@ -589,12 +597,17 @@
589
597
  .seed-avatar__fallback {
590
598
  object-fit: cover;
591
599
  border-radius: var(--seed-radius-full);
592
- justify-content: center;
593
- align-items: center;
594
600
  width: 100%;
595
601
  height: 100%;
602
+ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"white\"/></svg>"), var(--svg-mask-uri);
603
+ -webkit-mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
604
+ -webkit-mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
605
+ -webkit-mask-composite: source-out;
606
+ justify-content: center;
607
+ align-items: center;
596
608
  display: flex;
597
609
  overflow: hidden;
610
+ -webkit-mask-repeat: no-repeat;
598
611
  }
599
612
 
600
613
  .seed-avatar__fallback[data-loading-state="loaded"] {
@@ -604,8 +617,10 @@
604
617
  .seed-avatar__badge {
605
618
  box-sizing: border-box;
606
619
  z-index: 1;
607
- background: var(--seed-color-bg-layer-default);
608
- border-radius: var(--seed-radius-full);
620
+ top: var(--badge-offset);
621
+ left: var(--badge-offset);
622
+ width: var(--badge-size);
623
+ height: var(--badge-size);
609
624
  justify-content: center;
610
625
  align-items: center;
611
626
  display: flex;
@@ -613,99 +628,110 @@
613
628
  }
614
629
 
615
630
  .seed-avatar__root--size_20 {
616
- width: 20px;
617
- height: 20px;
631
+ --avatar-size: 20px;
632
+ --badge-mask-size: 0px;
633
+ --badge-mask-offset: 0px;
618
634
  }
619
635
 
620
636
  .seed-avatar__badge--size_20 {
621
- width: 10px;
622
- height: 10px;
623
- top: 12.0721px;
624
- left: 12.0721px;
637
+ display: none;
625
638
  }
626
639
 
627
640
  .seed-avatar__root--size_24 {
628
- width: 24px;
629
- height: 24px;
641
+ --avatar-size: 24px;
642
+ --badge-mask-size: 12px;
643
+ --badge-mask-offset: 14px;
630
644
  }
631
645
 
632
646
  .seed-avatar__badge--size_24 {
633
- width: 12px;
634
- height: 12px;
635
- top: 14.4866px;
636
- left: 14.4866px;
647
+ --badge-size: 10px;
648
+ --badge-offset: 15px;
637
649
  }
638
650
 
639
651
  .seed-avatar__root--size_36 {
640
- width: 36px;
641
- height: 36px;
652
+ --avatar-size: 36px;
653
+ --badge-mask-size: 18px;
654
+ --badge-mask-offset: 20px;
642
655
  }
643
656
 
644
657
  .seed-avatar__badge--size_36 {
645
- width: 16px;
646
- height: 16px;
647
- top: 22.7298px;
648
- left: 22.7298px;
658
+ --badge-size: 14px;
659
+ --badge-offset: 22px;
649
660
  }
650
661
 
651
662
  .seed-avatar__root--size_42 {
652
- width: 42px;
653
- height: 42px;
663
+ --avatar-size: 42px;
664
+ --badge-mask-size: 20px;
665
+ --badge-mask-offset: 24px;
654
666
  }
655
667
 
656
668
  .seed-avatar__badge--size_42 {
657
- width: 24px;
658
- height: 24px;
659
- top: 23.8515px;
660
- left: 23.8515px;
669
+ --badge-size: 16px;
670
+ --badge-offset: 26px;
661
671
  }
662
672
 
663
673
  .seed-avatar__root--size_48 {
664
- width: 48px;
665
- height: 48px;
674
+ --avatar-size: 48px;
675
+ --badge-mask-size: 22px;
676
+ --badge-mask-offset: 28px;
666
677
  }
667
678
 
668
679
  .seed-avatar__badge--size_48 {
669
- width: 24px;
670
- height: 24px;
671
- top: 28.9731px;
672
- left: 28.9731px;
680
+ --badge-size: 18px;
681
+ --badge-offset: 30px;
673
682
  }
674
683
 
675
684
  .seed-avatar__root--size_64 {
676
- width: 64px;
677
- height: 64px;
685
+ --avatar-size: 64px;
686
+ --badge-mask-size: 26px;
687
+ --badge-mask-offset: 40px;
678
688
  }
679
689
 
680
690
  .seed-avatar__badge--size_64 {
681
- width: 24px;
682
- height: 24px;
683
- top: 42.6308px;
684
- left: 42.6308px;
691
+ --badge-size: 22px;
692
+ --badge-offset: 42px;
685
693
  }
686
694
 
687
695
  .seed-avatar__root--size_80 {
688
- width: 80px;
689
- height: 80px;
696
+ --avatar-size: 80px;
697
+ --badge-mask-size: 32px;
698
+ --badge-mask-offset: 52px;
690
699
  }
691
700
 
692
701
  .seed-avatar__badge--size_80 {
693
- width: 24px;
694
- height: 24px;
695
- top: 56.2885px;
696
- left: 56.2885px;
702
+ --badge-size: 28px;
703
+ --badge-offset: 54px;
697
704
  }
698
705
 
699
706
  .seed-avatar__root--size_96 {
700
- width: 96px;
701
- height: 96px;
707
+ --avatar-size: 96px;
708
+ --badge-mask-size: 38px;
709
+ --badge-mask-offset: 62px;
702
710
  }
703
711
 
704
712
  .seed-avatar__badge--size_96 {
705
- width: 32px;
706
- height: 32px;
707
- top: 65.9463px;
708
- left: 65.9463px;
713
+ --badge-size: 32px;
714
+ --badge-offset: 65px;
715
+ }
716
+
717
+ .seed-avatar__root--badgeMask_none {
718
+ --svg-mask-uri: url("data:image/svg+xml;utf8,<svg />");
719
+ }
720
+
721
+ .seed-avatar__root--badgeMask_circle {
722
+ --svg-mask-uri: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"white\"/></svg>");
723
+ }
724
+
725
+ .seed-avatar__badge--badgeMask_circle {
726
+ border-radius: 9999px;
727
+ }
728
+
729
+ .seed-avatar__root--badgeMask_flower {
730
+ --svg-mask-uri: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path shape-rendering=\"crispEdges\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29.9115 8C28.4089 5.42609 25.682 4.02087 22.8994 4.10435C21.5637 1.68348 19.0037 0 15.9985 0C12.9933 0 10.4333 1.65565 9.09762 4.10435C6.32893 4.03478 3.60197 5.42609 2.09936 8C0.596754 10.5739 0.76371 13.6348 2.19675 16C0.749797 18.3652 0.596754 21.4261 2.09936 24C3.60197 26.5739 6.32893 27.9791 9.11154 27.8957C10.4472 30.3165 13.0072 32 16.0124 32C19.0176 32 21.5776 30.3443 22.9133 27.8957C25.682 27.9652 28.4089 26.5739 29.9115 24C31.4141 21.4261 31.2472 18.3652 29.8141 16C31.2611 13.6348 31.4141 10.5739 29.9115 8Z\" fill=\"white\"/></svg>");
731
+ }
732
+
733
+ .seed-avatar__root--badgeMask_shield {
734
+ --svg-mask-uri: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18.137 31.4527C18.1171 31.4616 18.0943 31.4721 18.0531 31.491C18.046 31.4943 18.0356 31.4994 18.0221 31.5059C17.8282 31.5996 16.9959 32.0019 16.0001 32C15.0096 32.002 14.1895 31.6075 13.986 31.5096L13.8629 31.4527C13.5452 31.3105 13.1039 31.1059 12.5795 30.8436C11.541 30.3242 10.1273 29.554 8.68691 28.5676C7.2706 27.5976 5.67543 26.3154 4.39746 24.7323C3.12739 23.159 1.92743 20.9794 1.92743 18.3179V7.77468C1.92743 6.02645 3.02031 4.4647 4.66276 3.86583L14.5747 0.25173C15.4953 -0.0839101 16.5047 -0.0839101 17.4252 0.25173L27.3372 3.86583C28.9796 4.4647 30.0725 6.02646 30.0725 7.77468V18.3179C30.0725 20.9794 28.8726 23.159 27.6025 24.7323C26.3245 26.3154 24.7294 27.5976 23.313 28.5676C21.8727 29.554 20.4589 30.3242 19.4205 30.8436C18.8961 31.1059 18.4547 31.3106 18.137 31.4527Z\" fill=\"white\"/></svg>");
709
735
  }
710
736
 
711
737
  .seed-avatar-stack__root {
@@ -1359,7 +1385,6 @@
1359
1385
 
1360
1386
  .seed-bottom-sheet__header {
1361
1387
  gap: var(--seed-dimension-x2);
1362
- padding-inline: var(--seed-dimension-spacing-x-global-gutter);
1363
1388
  padding-top: var(--seed-dimension-x6);
1364
1389
  padding-bottom: var(--seed-dimension-x4);
1365
1390
  flex-direction: column;
@@ -1429,6 +1454,18 @@
1429
1454
  inset: -8px;
1430
1455
  }
1431
1456
 
1457
+ .seed-bottom-sheet__header--headerAlign_left {
1458
+ padding-left: var(--seed-dimension-spacing-x-global-gutter);
1459
+ justify-content: flex-start;
1460
+ padding-right: 50px;
1461
+ }
1462
+
1463
+ .seed-bottom-sheet__header--headerAlign_center {
1464
+ justify-content: center;
1465
+ padding-left: 50px;
1466
+ padding-right: 50px;
1467
+ }
1468
+
1432
1469
  .seed-action-sheet__positioner {
1433
1470
  overscroll-behavior-y: none;
1434
1471
  --sheet-z-index: 2;
@@ -2116,7 +2153,6 @@
2116
2153
  background: var(--seed-color-bg-layer-default);
2117
2154
  max-width: 272px;
2118
2155
  margin: auto var(--seed-dimension-x8);
2119
- padding: var(--seed-dimension-x5) var(--seed-dimension-x5);
2120
2156
  border-radius: var(--seed-radius-r5);
2121
2157
  flex-direction: column;
2122
2158
  flex: 1;
@@ -2146,6 +2182,8 @@
2146
2182
  }
2147
2183
 
2148
2184
  .seed-dialog__header {
2185
+ padding-inline: var(--seed-dimension-x5);
2186
+ padding-top: var(--seed-dimension-x5);
2149
2187
  gap: var(--seed-dimension-x1_5);
2150
2188
  flex-direction: column;
2151
2189
  display: flex;
@@ -2169,7 +2207,9 @@
2169
2207
  }
2170
2208
 
2171
2209
  .seed-dialog__footer {
2210
+ padding-inline: var(--seed-dimension-x5);
2172
2211
  padding-top: var(--seed-dimension-x4);
2212
+ padding-bottom: var(--seed-dimension-x5);
2173
2213
  flex-direction: column;
2174
2214
  align-items: stretch;
2175
2215
  display: flex;
@@ -3081,8 +3121,8 @@
3081
3121
  height: 32px;
3082
3122
  display: flex;
3083
3123
  position: absolute;
3084
- top: 4px;
3085
- right: 4px;
3124
+ top: 3px;
3125
+ right: 3px;
3086
3126
  }
3087
3127
 
3088
3128
  .seed-identity-placeholder__root {
@@ -3710,22 +3750,22 @@
3710
3750
  min-height: 44px;
3711
3751
  animation: seed-enter;
3712
3752
  animation-timing-function: var(--seed-timing-function-enter);
3713
- animation-duration: var(--seed-duration-d4);
3753
+ animation-duration: var(--seed-duration-d3);
3714
3754
  --seed-enter-translate-x: 0;
3715
- --seed-enter-translate-y: 100%;
3755
+ --seed-enter-translate-y: 0;
3716
3756
  --seed-enter-opacity: 0;
3717
- --seed-enter-scale: 1;
3757
+ --seed-enter-scale: .8;
3718
3758
  display: flex;
3719
3759
  }
3720
3760
 
3721
3761
  .seed-snackbar__root:not([data-open]) {
3722
3762
  animation: seed-exit;
3723
3763
  animation-timing-function: var(--seed-timing-function-exit);
3724
- animation-duration: var(--seed-duration-d4);
3764
+ animation-duration: var(--seed-duration-d2);
3725
3765
  --seed-exit-translate-x: 0;
3726
- --seed-exit-translate-y: 100%;
3766
+ --seed-exit-translate-y: 0;
3727
3767
  --seed-exit-opacity: 0;
3728
- --seed-exit-scale: 1;
3768
+ --seed-exit-scale: .8;
3729
3769
  animation-fill-mode: forwards;
3730
3770
  }
3731
3771