@seed-design/css 0.0.12 → 0.0.14
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 +109 -66
- package/all.min.css +1 -1
- package/package.json +1 -1
- package/recipes/avatar.css +80 -51
- package/recipes/avatar.d.ts +4 -0
- package/recipes/avatar.mjs +8 -1
- package/recipes/help-bubble.css +20 -11
- package/recipes/help-bubble.d.ts +1 -1
- package/recipes/help-bubble.mjs +0 -4
- package/vars/component/action-chip.d.ts +8 -4
- package/vars/component/action-chip.mjs +8 -4
- package/vars/component/avatar.d.ts +41 -13
- package/vars/component/avatar.mjs +41 -13
- package/vars/component/help-bubble.d.ts +12 -5
- package/vars/component/help-bubble.mjs +12 -5
package/all.css
CHANGED
|
@@ -569,6 +569,8 @@
|
|
|
569
569
|
box-sizing: border-box;
|
|
570
570
|
vertical-align: top;
|
|
571
571
|
border-radius: var(--seed-radius-full);
|
|
572
|
+
width: var(--avatar-size);
|
|
573
|
+
height: var(--avatar-size);
|
|
572
574
|
justify-content: center;
|
|
573
575
|
align-items: center;
|
|
574
576
|
display: inline-flex;
|
|
@@ -577,11 +579,20 @@
|
|
|
577
579
|
|
|
578
580
|
.seed-avatar__image {
|
|
579
581
|
object-fit: cover;
|
|
580
|
-
border-radius: var(--seed-radius-full);
|
|
581
582
|
width: 100%;
|
|
582
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;
|
|
588
|
+
-webkit-mask-repeat: no-repeat;
|
|
589
|
+
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);
|
|
590
|
+
mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
|
|
591
|
+
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
583
592
|
display: block;
|
|
584
593
|
overflow: hidden;
|
|
594
|
+
mask-repeat: no-repeat;
|
|
595
|
+
mask-composite: subtract;
|
|
585
596
|
}
|
|
586
597
|
|
|
587
598
|
.seed-avatar__image:not([data-loading-state="loaded"]) {
|
|
@@ -591,12 +602,22 @@
|
|
|
591
602
|
.seed-avatar__fallback {
|
|
592
603
|
object-fit: cover;
|
|
593
604
|
border-radius: var(--seed-radius-full);
|
|
594
|
-
justify-content: center;
|
|
595
|
-
align-items: center;
|
|
596
605
|
width: 100%;
|
|
597
606
|
height: 100%;
|
|
607
|
+
-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);
|
|
608
|
+
-webkit-mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
|
|
609
|
+
-webkit-mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
610
|
+
-webkit-mask-composite: source-out;
|
|
611
|
+
-webkit-mask-repeat: no-repeat;
|
|
612
|
+
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);
|
|
613
|
+
mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
|
|
614
|
+
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
615
|
+
justify-content: center;
|
|
616
|
+
align-items: center;
|
|
598
617
|
display: flex;
|
|
599
618
|
overflow: hidden;
|
|
619
|
+
mask-repeat: no-repeat;
|
|
620
|
+
mask-composite: subtract;
|
|
600
621
|
}
|
|
601
622
|
|
|
602
623
|
.seed-avatar__fallback[data-loading-state="loaded"] {
|
|
@@ -606,8 +627,10 @@
|
|
|
606
627
|
.seed-avatar__badge {
|
|
607
628
|
box-sizing: border-box;
|
|
608
629
|
z-index: 1;
|
|
609
|
-
|
|
610
|
-
|
|
630
|
+
top: var(--badge-offset);
|
|
631
|
+
left: var(--badge-offset);
|
|
632
|
+
width: var(--badge-size);
|
|
633
|
+
height: var(--badge-size);
|
|
611
634
|
justify-content: center;
|
|
612
635
|
align-items: center;
|
|
613
636
|
display: flex;
|
|
@@ -615,99 +638,110 @@
|
|
|
615
638
|
}
|
|
616
639
|
|
|
617
640
|
.seed-avatar__root--size_20 {
|
|
618
|
-
|
|
619
|
-
|
|
641
|
+
--avatar-size: 20px;
|
|
642
|
+
--badge-mask-size: 0px;
|
|
643
|
+
--badge-mask-offset: 0px;
|
|
620
644
|
}
|
|
621
645
|
|
|
622
646
|
.seed-avatar__badge--size_20 {
|
|
623
|
-
|
|
624
|
-
height: 10px;
|
|
625
|
-
top: 12.0721px;
|
|
626
|
-
left: 12.0721px;
|
|
647
|
+
display: none;
|
|
627
648
|
}
|
|
628
649
|
|
|
629
650
|
.seed-avatar__root--size_24 {
|
|
630
|
-
|
|
631
|
-
|
|
651
|
+
--avatar-size: 24px;
|
|
652
|
+
--badge-mask-size: 12px;
|
|
653
|
+
--badge-mask-offset: 14px;
|
|
632
654
|
}
|
|
633
655
|
|
|
634
656
|
.seed-avatar__badge--size_24 {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
top: 14.4866px;
|
|
638
|
-
left: 14.4866px;
|
|
657
|
+
--badge-size: 10px;
|
|
658
|
+
--badge-offset: 15px;
|
|
639
659
|
}
|
|
640
660
|
|
|
641
661
|
.seed-avatar__root--size_36 {
|
|
642
|
-
|
|
643
|
-
|
|
662
|
+
--avatar-size: 36px;
|
|
663
|
+
--badge-mask-size: 18px;
|
|
664
|
+
--badge-mask-offset: 20px;
|
|
644
665
|
}
|
|
645
666
|
|
|
646
667
|
.seed-avatar__badge--size_36 {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
top: 22.7298px;
|
|
650
|
-
left: 22.7298px;
|
|
668
|
+
--badge-size: 14px;
|
|
669
|
+
--badge-offset: 22px;
|
|
651
670
|
}
|
|
652
671
|
|
|
653
672
|
.seed-avatar__root--size_42 {
|
|
654
|
-
|
|
655
|
-
|
|
673
|
+
--avatar-size: 42px;
|
|
674
|
+
--badge-mask-size: 20px;
|
|
675
|
+
--badge-mask-offset: 24px;
|
|
656
676
|
}
|
|
657
677
|
|
|
658
678
|
.seed-avatar__badge--size_42 {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
top: 23.8515px;
|
|
662
|
-
left: 23.8515px;
|
|
679
|
+
--badge-size: 16px;
|
|
680
|
+
--badge-offset: 26px;
|
|
663
681
|
}
|
|
664
682
|
|
|
665
683
|
.seed-avatar__root--size_48 {
|
|
666
|
-
|
|
667
|
-
|
|
684
|
+
--avatar-size: 48px;
|
|
685
|
+
--badge-mask-size: 22px;
|
|
686
|
+
--badge-mask-offset: 28px;
|
|
668
687
|
}
|
|
669
688
|
|
|
670
689
|
.seed-avatar__badge--size_48 {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
top: 28.9731px;
|
|
674
|
-
left: 28.9731px;
|
|
690
|
+
--badge-size: 18px;
|
|
691
|
+
--badge-offset: 30px;
|
|
675
692
|
}
|
|
676
693
|
|
|
677
694
|
.seed-avatar__root--size_64 {
|
|
678
|
-
|
|
679
|
-
|
|
695
|
+
--avatar-size: 64px;
|
|
696
|
+
--badge-mask-size: 26px;
|
|
697
|
+
--badge-mask-offset: 40px;
|
|
680
698
|
}
|
|
681
699
|
|
|
682
700
|
.seed-avatar__badge--size_64 {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
top: 42.6308px;
|
|
686
|
-
left: 42.6308px;
|
|
701
|
+
--badge-size: 22px;
|
|
702
|
+
--badge-offset: 42px;
|
|
687
703
|
}
|
|
688
704
|
|
|
689
705
|
.seed-avatar__root--size_80 {
|
|
690
|
-
|
|
691
|
-
|
|
706
|
+
--avatar-size: 80px;
|
|
707
|
+
--badge-mask-size: 32px;
|
|
708
|
+
--badge-mask-offset: 52px;
|
|
692
709
|
}
|
|
693
710
|
|
|
694
711
|
.seed-avatar__badge--size_80 {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
top: 56.2885px;
|
|
698
|
-
left: 56.2885px;
|
|
712
|
+
--badge-size: 28px;
|
|
713
|
+
--badge-offset: 54px;
|
|
699
714
|
}
|
|
700
715
|
|
|
701
716
|
.seed-avatar__root--size_96 {
|
|
702
|
-
|
|
703
|
-
|
|
717
|
+
--avatar-size: 96px;
|
|
718
|
+
--badge-mask-size: 38px;
|
|
719
|
+
--badge-mask-offset: 62px;
|
|
704
720
|
}
|
|
705
721
|
|
|
706
722
|
.seed-avatar__badge--size_96 {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
723
|
+
--badge-size: 32px;
|
|
724
|
+
--badge-offset: 65px;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.seed-avatar__root--badgeMask_none {
|
|
728
|
+
--svg-mask-uri: url("data:image/svg+xml;utf8,<svg />");
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.seed-avatar__root--badgeMask_circle {
|
|
732
|
+
--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>");
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.seed-avatar__badge--badgeMask_circle {
|
|
736
|
+
border-radius: 9999px;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.seed-avatar__root--badgeMask_flower {
|
|
740
|
+
--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>");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.seed-avatar__root--badgeMask_shield {
|
|
744
|
+
--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>");
|
|
711
745
|
}
|
|
712
746
|
|
|
713
747
|
.seed-avatar-stack__root {
|
|
@@ -3038,19 +3072,6 @@
|
|
|
3038
3072
|
margin-top: calc(12px - .59375rem);
|
|
3039
3073
|
}
|
|
3040
3074
|
|
|
3041
|
-
.seed-help-bubble__backdrop {
|
|
3042
|
-
z-index: 1000;
|
|
3043
|
-
background: var(--seed-color-bg-overlay);
|
|
3044
|
-
width: 100vw;
|
|
3045
|
-
height: 100vh;
|
|
3046
|
-
position: fixed;
|
|
3047
|
-
inset: 0;
|
|
3048
|
-
}
|
|
3049
|
-
|
|
3050
|
-
.seed-help-bubble__backdrop:is(:hidden, [hidden], [data-hidden]) {
|
|
3051
|
-
display: none !important;
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
3075
|
.seed-help-bubble__content {
|
|
3055
3076
|
background: var(--seed-color-bg-neutral-solid);
|
|
3056
3077
|
padding-inline: var(--seed-dimension-x3);
|
|
@@ -3061,6 +3082,28 @@
|
|
|
3061
3082
|
max-width: var(--seed-box-max-width);
|
|
3062
3083
|
flex-direction: column;
|
|
3063
3084
|
display: flex;
|
|
3085
|
+
box-shadow: 0 8px 24px #00000029;
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
.seed-help-bubble__content:is([data-state="open"], [data-open]) {
|
|
3089
|
+
animation: seed-enter;
|
|
3090
|
+
animation-timing-function: var(--seed-timing-function-enter);
|
|
3091
|
+
animation-duration: var(--seed-duration-d4);
|
|
3092
|
+
--seed-enter-translate-x: 0;
|
|
3093
|
+
--seed-enter-translate-y: 0;
|
|
3094
|
+
--seed-enter-opacity: 0;
|
|
3095
|
+
--seed-enter-scale: .9;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.seed-help-bubble__content:not(:is([data-state="open"], [data-open])) {
|
|
3099
|
+
animation: seed-exit;
|
|
3100
|
+
animation-timing-function: var(--seed-timing-function-easing);
|
|
3101
|
+
animation-duration: var(--seed-duration-d4);
|
|
3102
|
+
--seed-exit-translate-x: 0;
|
|
3103
|
+
--seed-exit-translate-y: 0;
|
|
3104
|
+
--seed-exit-opacity: 0;
|
|
3105
|
+
--seed-exit-scale: 1;
|
|
3106
|
+
animation-fill-mode: forwards;
|
|
3064
3107
|
}
|
|
3065
3108
|
|
|
3066
3109
|
.seed-help-bubble__content:is(:hidden, [hidden], [data-hidden]) {
|