@seed-design/css 0.1.8 → 0.1.10

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
@@ -1646,6 +1646,7 @@
1646
1646
  background: var(--seed-color-bg-neutral-weak);
1647
1647
  --seed-icon-size: 14px;
1648
1648
  --seed-icon-color: var(--seed-color-fg-neutral);
1649
+ border: none;
1649
1650
  justify-content: center;
1650
1651
  align-items: center;
1651
1652
  width: 28px;
@@ -2890,6 +2891,7 @@
2890
2891
  line-height: 1;
2891
2892
  transition-property: background-color, color, border-color, box-shadow;
2892
2893
  display: inline-flex;
2894
+ position: relative;
2893
2895
  }
2894
2896
 
2895
2897
  .seed-chip__root:is(:focus, [data-focus]) {
@@ -3118,6 +3120,7 @@
3118
3120
  justify-content: center;
3119
3121
  align-items: center;
3120
3122
  display: inline-flex;
3123
+ position: relative;
3121
3124
  }
3122
3125
 
3123
3126
  .seed-control-chip:is(:focus, [data-focus]) {
@@ -3696,6 +3699,7 @@
3696
3699
  .seed-select-box__content {
3697
3700
  gap: var(--seed-dimension-x0_5);
3698
3701
  flex-direction: column;
3702
+ flex-grow: 1;
3699
3703
  display: flex;
3700
3704
  }
3701
3705
 
@@ -3797,7 +3801,6 @@
3797
3801
  box-sizing: border-box;
3798
3802
  vertical-align: top;
3799
3803
  isolation: isolate;
3800
- opacity: 1;
3801
3804
  cursor: pointer;
3802
3805
  justify-content: space-between;
3803
3806
  align-items: flex-start;
@@ -3806,7 +3809,6 @@
3806
3809
  }
3807
3810
 
3808
3811
  .seed-switch__root:is(:disabled, [disabled], [data-disabled]) {
3809
- opacity: .38;
3810
3812
  cursor: not-allowed;
3811
3813
  }
3812
3814
 
@@ -3819,6 +3821,10 @@
3819
3821
  position: relative;
3820
3822
  }
3821
3823
 
3824
+ .seed-switch__control:is(:disabled, [disabled], [data-disabled]) {
3825
+ opacity: .38;
3826
+ }
3827
+
3822
3828
  .seed-switch__control:is(:checked, [data-checked]) {
3823
3829
  background: var(--seed-color-bg-brand-solid);
3824
3830
  }
@@ -3829,54 +3835,98 @@
3829
3835
  transition: transform .15s cubic-bezier(.35, 0, .35, 1);
3830
3836
  }
3831
3837
 
3832
- .seed-switch__root--size_medium {
3833
- min-height: 32px;
3834
- }
3835
-
3836
- .seed-switch__control--size_medium {
3837
- min-block-size: 32px;
3838
- min-inline-size: 52px;
3839
- padding: 2px;
3840
- }
3841
-
3842
- .seed-switch__thumb--size_medium {
3843
- width: 28px;
3844
- height: 28px;
3845
- box-shadow: 0 3px 8px #00000026, 0 1px 3px #0000000f;
3838
+ .seed-switch__label {
3839
+ font-weight: var(--seed-font-weight-medium);
3840
+ color: var(--seed-color-fg-neutral);
3846
3841
  }
3847
3842
 
3848
- .seed-switch__thumb--size_medium:is(:checked, [data-checked]) {
3849
- transform: translateX(20px);
3843
+ .seed-switch__label:is(:disabled, [disabled], [data-disabled]) {
3844
+ color: var(--seed-color-fg-disabled);
3850
3845
  }
3851
3846
 
3852
- .seed-switch__root--size_small {
3853
- gap: var(--seed-dimension-x2);
3847
+ .seed-switch__root--size_16 {
3848
+ gap: var(--seed-dimension-x1_5);
3854
3849
  min-height: 24px;
3855
3850
  }
3856
3851
 
3857
- .seed-switch__control--size_small {
3852
+ .seed-switch__control--size_16 {
3858
3853
  min-block-size: 16px;
3859
3854
  min-inline-size: 26px;
3860
3855
  margin: 4px 0;
3861
3856
  padding: 2px;
3862
3857
  }
3863
3858
 
3864
- .seed-switch__thumb--size_small {
3859
+ .seed-switch__thumb--size_16 {
3865
3860
  width: 12px;
3866
3861
  height: 12px;
3867
3862
  }
3868
3863
 
3869
- .seed-switch__thumb--size_small:is(:checked, [data-checked]) {
3864
+ .seed-switch__thumb--size_16:is(:checked, [data-checked]) {
3870
3865
  transform: translateX(10px);
3871
3866
  }
3872
3867
 
3873
- .seed-switch__label--size_small {
3868
+ .seed-switch__label--size_16 {
3869
+ font-size: var(--seed-font-size-t3);
3870
+ line-height: var(--seed-line-height-t3);
3871
+ margin-top: calc(12px - .5625rem);
3872
+ }
3873
+
3874
+ .seed-switch__root--size_24 {
3875
+ gap: var(--seed-dimension-x2);
3876
+ min-height: 24px;
3877
+ }
3878
+
3879
+ .seed-switch__control--size_24 {
3880
+ min-block-size: 24px;
3881
+ min-inline-size: 38px;
3882
+ margin: 0;
3883
+ padding: 2px;
3884
+ }
3885
+
3886
+ .seed-switch__thumb--size_24 {
3887
+ width: 20px;
3888
+ height: 20px;
3889
+ box-shadow: 0 3px 8px #00000026, 0 1px 3px #0000000f;
3890
+ }
3891
+
3892
+ .seed-switch__thumb--size_24:is(:checked, [data-checked]) {
3893
+ transform: translateX(14px);
3894
+ }
3895
+
3896
+ .seed-switch__label--size_24 {
3874
3897
  font-size: var(--seed-font-size-t4);
3875
3898
  line-height: var(--seed-line-height-t4);
3876
- font-weight: var(--seed-font-weight-regular);
3877
3899
  margin-top: calc(12px - .59375rem);
3878
3900
  }
3879
3901
 
3902
+ .seed-switch__root--size_32 {
3903
+ gap: var(--seed-dimension-x2_5);
3904
+ min-height: 32px;
3905
+ }
3906
+
3907
+ .seed-switch__control--size_32 {
3908
+ min-block-size: 32px;
3909
+ min-inline-size: 52px;
3910
+ margin: 0;
3911
+ padding: 2px;
3912
+ }
3913
+
3914
+ .seed-switch__thumb--size_32 {
3915
+ width: 28px;
3916
+ height: 28px;
3917
+ box-shadow: 0 3px 8px #00000026, 0 1px 3px #0000000f;
3918
+ }
3919
+
3920
+ .seed-switch__thumb--size_32:is(:checked, [data-checked]) {
3921
+ transform: translateX(20px);
3922
+ }
3923
+
3924
+ .seed-switch__label--size_32 {
3925
+ font-size: var(--seed-font-size-t5);
3926
+ line-height: var(--seed-line-height-t5);
3927
+ margin-top: calc(16px - .6875rem);
3928
+ }
3929
+
3880
3930
  .seed-help-bubble__content {
3881
3931
  background: var(--seed-color-bg-neutral-solid);
3882
3932
  padding-inline: var(--seed-dimension-x3);