@seed-design/css 0.1.8 → 0.1.9

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