@sproutsocial/racine 31.7.4 → 31.7.5
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/CHANGELOG.md +17 -0
- package/dist/components.css +502 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 31.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c35fe22]
|
|
8
|
+
- Updated dependencies [dcd3fb9]
|
|
9
|
+
- Updated dependencies [235938d]
|
|
10
|
+
- Updated dependencies [c19788f]
|
|
11
|
+
- Updated dependencies [5b5b1bd]
|
|
12
|
+
- @sproutsocial/seeds-react-fieldset@1.0.27
|
|
13
|
+
- @sproutsocial/seeds-react-form-field@1.1.21
|
|
14
|
+
- @sproutsocial/seeds-react-radio@1.3.27
|
|
15
|
+
- @sproutsocial/seeds-react-input@1.5.31
|
|
16
|
+
- @sproutsocial/seeds-react-switch@1.2.43
|
|
17
|
+
- @sproutsocial/seeds-react-token-input@1.4.53
|
|
18
|
+
- @sproutsocial/seeds-react-accordion@0.4.52
|
|
19
|
+
|
|
3
20
|
## 31.7.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/components.css
CHANGED
|
@@ -929,6 +929,109 @@
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
+
/* --- seeds-react-fieldset --- */
|
|
933
|
+
/**
|
|
934
|
+
* Seeds Fieldset component classes
|
|
935
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
936
|
+
*
|
|
937
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
938
|
+
* CSS variable definitions and dark mode support.
|
|
939
|
+
*
|
|
940
|
+
* Usage:
|
|
941
|
+
* <fieldset class="seeds-fieldset">
|
|
942
|
+
* <legend class="seeds-fieldset-legend">Label</legend>
|
|
943
|
+
* <p class="seeds-fieldset-helper-text">Helper text</p>
|
|
944
|
+
* <div class="seeds-fieldset-list seeds-fieldset-list-vertical">
|
|
945
|
+
* <div class="seeds-fieldset-item seeds-fieldset-item-vertical">...</div>
|
|
946
|
+
* </div>
|
|
947
|
+
* </fieldset>
|
|
948
|
+
*/
|
|
949
|
+
|
|
950
|
+
@layer components {
|
|
951
|
+
.seeds-fieldset {
|
|
952
|
+
box-sizing: border-box;
|
|
953
|
+
font-family: var(--font-family);
|
|
954
|
+
border: none;
|
|
955
|
+
padding: 0;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.seeds-fieldset-legend {
|
|
959
|
+
margin: 0;
|
|
960
|
+
font-family: var(--font-family);
|
|
961
|
+
font-size: var(--font-size-300);
|
|
962
|
+
line-height: var(--line-height-300);
|
|
963
|
+
font-weight: var(--font-weight-semibold);
|
|
964
|
+
color: var(--color-text-body);
|
|
965
|
+
margin-bottom: var(--space-300);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.seeds-fieldset-helper-text {
|
|
969
|
+
margin: 0;
|
|
970
|
+
font-family: var(--font-family);
|
|
971
|
+
font-size: var(--font-size-200);
|
|
972
|
+
line-height: var(--line-height-200);
|
|
973
|
+
margin-bottom: var(--space-300);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.seeds-fieldset-list {
|
|
977
|
+
box-sizing: border-box;
|
|
978
|
+
font-family: var(--font-family);
|
|
979
|
+
display: flex;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.seeds-fieldset-list-vertical {
|
|
983
|
+
flex-direction: column;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.seeds-fieldset-list-horizontal {
|
|
987
|
+
flex-direction: row;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.seeds-fieldset-item {
|
|
991
|
+
box-sizing: border-box;
|
|
992
|
+
font-family: var(--font-family);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.seeds-fieldset-item-vertical {
|
|
996
|
+
margin-top: var(--space-300);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.seeds-fieldset-item-vertical:first-child {
|
|
1000
|
+
margin-top: 0;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.seeds-fieldset-item-horizontal {
|
|
1004
|
+
margin-left: var(--space-300);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.seeds-fieldset-item-horizontal:first-child {
|
|
1008
|
+
margin-left: 0;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/* --- seeds-react-form-field --- */
|
|
1013
|
+
/**
|
|
1014
|
+
* Seeds FormField component classes
|
|
1015
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
1016
|
+
*
|
|
1017
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
1018
|
+
* CSS variable definitions and dark mode support.
|
|
1019
|
+
*
|
|
1020
|
+
* FormField only contributes the container's vertical layout/margin; the
|
|
1021
|
+
* label, helper text, and error text colors and spacing are owned by the
|
|
1022
|
+
* composed Label/Text children (via their styled-system tokens), so this
|
|
1023
|
+
* class carries layout only and hard-codes no color tokens.
|
|
1024
|
+
*
|
|
1025
|
+
* Usage:
|
|
1026
|
+
* <div class="seeds-form-field">…label, field, error…</div>
|
|
1027
|
+
*/
|
|
1028
|
+
|
|
1029
|
+
@layer components {
|
|
1030
|
+
.seeds-form-field {
|
|
1031
|
+
display: block;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
932
1035
|
/* --- seeds-react-icon --- */
|
|
933
1036
|
/**
|
|
934
1037
|
* Seeds Icon component classes
|
|
@@ -967,6 +1070,141 @@
|
|
|
967
1070
|
}
|
|
968
1071
|
}
|
|
969
1072
|
|
|
1073
|
+
/* --- seeds-react-input --- */
|
|
1074
|
+
/**
|
|
1075
|
+
* Seeds Input component classes
|
|
1076
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
1077
|
+
*
|
|
1078
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
1079
|
+
* CSS variable definitions and dark mode support.
|
|
1080
|
+
*
|
|
1081
|
+
* Usage:
|
|
1082
|
+
* <div class="seeds-input seeds-input-primary"><input /></div>
|
|
1083
|
+
* <div class="seeds-input seeds-input-primary seeds-input-lg"><input /></div>
|
|
1084
|
+
*/
|
|
1085
|
+
|
|
1086
|
+
@layer components {
|
|
1087
|
+
.seeds-input {
|
|
1088
|
+
box-sizing: border-box;
|
|
1089
|
+
position: relative;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.seeds-input input {
|
|
1093
|
+
box-sizing: border-box;
|
|
1094
|
+
width: 100%;
|
|
1095
|
+
border: 1px solid transparent;
|
|
1096
|
+
border-radius: var(--radius-500);
|
|
1097
|
+
background-color: var(--color-form-bg-base);
|
|
1098
|
+
color: var(--color-text-body);
|
|
1099
|
+
outline: none;
|
|
1100
|
+
transition:
|
|
1101
|
+
border-color var(--duration-fast) var(--ease-ease_in),
|
|
1102
|
+
box-shadow var(--duration-fast) var(--ease-ease_in);
|
|
1103
|
+
font-family: var(--font-family);
|
|
1104
|
+
font-weight: var(--font-weight-normal);
|
|
1105
|
+
appearance: none;
|
|
1106
|
+
/* This matches the overall height of Button and Select */
|
|
1107
|
+
margin: 0;
|
|
1108
|
+
text-overflow: ellipsis;
|
|
1109
|
+
overflow: hidden;
|
|
1110
|
+
white-space: nowrap;
|
|
1111
|
+
padding: var(--space-300);
|
|
1112
|
+
font-size: var(--font-size-200);
|
|
1113
|
+
line-height: 16px;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/* https://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs */
|
|
1117
|
+
.seeds-input input::-ms-clear {
|
|
1118
|
+
display: none;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.seeds-input input::-webkit-search-cancel-button {
|
|
1122
|
+
appearance: none;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.seeds-input input:focus {
|
|
1126
|
+
outline: none;
|
|
1127
|
+
box-shadow:
|
|
1128
|
+
0 0 0 1px var(--color-button-primary-bg-base),
|
|
1129
|
+
0 0 0 4px color-mix(in srgb, var(--color-button-primary-bg-base) 30%, transparent);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/* Fix for red ring when input is marked required in Firefox */
|
|
1133
|
+
.seeds-input input:not(output):not(:focus):-moz-ui-invalid {
|
|
1134
|
+
box-shadow: none;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
.seeds-input input::placeholder {
|
|
1138
|
+
color: var(--color-form-placeholder-base);
|
|
1139
|
+
font-style: italic;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/* Size modifiers */
|
|
1143
|
+
.seeds-input-lg input {
|
|
1144
|
+
padding: var(--space-350) var(--space-400);
|
|
1145
|
+
font-size: var(--font-size-300);
|
|
1146
|
+
line-height: var(--line-height-300);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
.seeds-input-sm input {
|
|
1150
|
+
padding: var(--space-200);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/* Accessory spacing */
|
|
1154
|
+
.seeds-input-has-before input {
|
|
1155
|
+
padding-left: 40px;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.seeds-input-has-after input {
|
|
1159
|
+
padding-right: 40px;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/* Appearance */
|
|
1163
|
+
.seeds-input-primary input {
|
|
1164
|
+
border: 1px solid var(--color-form-border-base);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/* State borders — declared after appearance so border-color wins */
|
|
1168
|
+
.seeds-input-invalid input {
|
|
1169
|
+
border-color: var(--color-form-border-error);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.seeds-input-warning input {
|
|
1173
|
+
border-color: var(--color-form-border-warning);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/* Disabled */
|
|
1177
|
+
.seeds-input-disabled {
|
|
1178
|
+
opacity: 0.4;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.seeds-input-disabled input {
|
|
1182
|
+
cursor: not-allowed;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/* Accessories (before / after / clear button) */
|
|
1186
|
+
.seeds-input-accessory {
|
|
1187
|
+
position: absolute;
|
|
1188
|
+
top: 50%;
|
|
1189
|
+
transform: translateY(-50%);
|
|
1190
|
+
color: var(--color-icon-base);
|
|
1191
|
+
display: flex;
|
|
1192
|
+
align-items: center;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.seeds-input-accessory-before {
|
|
1196
|
+
left: var(--space-300);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.seeds-input-accessory-after {
|
|
1200
|
+
right: var(--space-300);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.seeds-input-accessory-clear {
|
|
1204
|
+
right: 0;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
970
1208
|
/* --- seeds-react-link --- */
|
|
971
1209
|
/**
|
|
972
1210
|
* Seeds Link component classes
|
|
@@ -2585,6 +2823,129 @@
|
|
|
2585
2823
|
}
|
|
2586
2824
|
}
|
|
2587
2825
|
|
|
2826
|
+
/* --- seeds-react-radio --- */
|
|
2827
|
+
/**
|
|
2828
|
+
* Seeds Radio component classes
|
|
2829
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
2830
|
+
*
|
|
2831
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
2832
|
+
* CSS variable definitions and dark mode support.
|
|
2833
|
+
*
|
|
2834
|
+
* Usage:
|
|
2835
|
+
* <label class="seeds-radio">
|
|
2836
|
+
* <span class="seeds-radio-wrapper seeds-radio-checked">
|
|
2837
|
+
* <input type="radio" class="seeds-radio-input" />
|
|
2838
|
+
* </span>
|
|
2839
|
+
* <span class="seeds-radio-label">Label</span>
|
|
2840
|
+
* </label>
|
|
2841
|
+
*/
|
|
2842
|
+
|
|
2843
|
+
@layer components {
|
|
2844
|
+
.seeds-radio {
|
|
2845
|
+
display: inline-flex;
|
|
2846
|
+
align-items: center;
|
|
2847
|
+
box-sizing: border-box;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
.seeds-radio-wrapper {
|
|
2851
|
+
position: relative;
|
|
2852
|
+
width: var(--space-400);
|
|
2853
|
+
height: var(--space-400);
|
|
2854
|
+
cursor: pointer;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
.seeds-radio-wrapper.seeds-radio-disabled {
|
|
2858
|
+
opacity: 0.4;
|
|
2859
|
+
pointer-events: none;
|
|
2860
|
+
cursor: not-allowed;
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
.seeds-radio-input {
|
|
2864
|
+
box-sizing: border-box;
|
|
2865
|
+
position: absolute;
|
|
2866
|
+
top: 0;
|
|
2867
|
+
left: 0;
|
|
2868
|
+
width: 100%;
|
|
2869
|
+
height: 100%;
|
|
2870
|
+
margin: 0;
|
|
2871
|
+
appearance: none;
|
|
2872
|
+
cursor: pointer;
|
|
2873
|
+
border: 1px solid var(--color-form-border-base);
|
|
2874
|
+
border-radius: 50%;
|
|
2875
|
+
background-color: var(--color-form-bg-base);
|
|
2876
|
+
transition:
|
|
2877
|
+
border-color var(--duration-fast) ease-in,
|
|
2878
|
+
background-color var(--duration-fast) ease-in;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
/* Focus ring mirrors button.css (the CSS form of the focusRing mixin) */
|
|
2882
|
+
.seeds-radio-input:focus {
|
|
2883
|
+
outline: none;
|
|
2884
|
+
box-shadow:
|
|
2885
|
+
0 0 0 1px var(--color-button-primary-bg-base),
|
|
2886
|
+
0 0 0 4px color-mix(in srgb, var(--color-button-primary-bg-base) 30%, transparent);
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
.seeds-radio-wrapper:before {
|
|
2890
|
+
content: "";
|
|
2891
|
+
position: absolute;
|
|
2892
|
+
top: 50%;
|
|
2893
|
+
left: 50%;
|
|
2894
|
+
transform: translate(-50%, -50%);
|
|
2895
|
+
width: 6px;
|
|
2896
|
+
height: 6px;
|
|
2897
|
+
border-radius: 50%;
|
|
2898
|
+
opacity: 0;
|
|
2899
|
+
transition: opacity var(--duration-fast) ease-in;
|
|
2900
|
+
z-index: 1;
|
|
2901
|
+
pointer-events: none;
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
/* Unchecked hover / focus: show the dot (only when NOT checked) */
|
|
2905
|
+
.seeds-radio-wrapper:not(.seeds-radio-checked):hover .seeds-radio-input,
|
|
2906
|
+
.seeds-radio-wrapper:not(.seeds-radio-checked):focus-within .seeds-radio-input {
|
|
2907
|
+
border-color: var(--color-form-border-base);
|
|
2908
|
+
background-color: var(--color-form-bg-base);
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
.seeds-radio-wrapper:not(.seeds-radio-checked):hover:before,
|
|
2912
|
+
.seeds-radio-wrapper:not(.seeds-radio-checked):focus-within:before {
|
|
2913
|
+
opacity: 1;
|
|
2914
|
+
background-color: var(--color-form-bg-base);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
/* Disabled-unchecked keeps the hover dot hidden (parity with opacity: disabled ? 0 : 1) */
|
|
2918
|
+
.seeds-radio-wrapper.seeds-radio-disabled:not(.seeds-radio-checked):hover:before {
|
|
2919
|
+
opacity: 0;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/* Checked state */
|
|
2923
|
+
.seeds-radio-wrapper.seeds-radio-checked .seeds-radio-input {
|
|
2924
|
+
border-color: var(--color-form-border-selected);
|
|
2925
|
+
/* No --color-form-bg-selected token exists; form.background.selected resolves
|
|
2926
|
+
to the same value as form.border.selected in both light and dark themes. */
|
|
2927
|
+
background-color: var(--color-form-border-selected);
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
.seeds-radio-wrapper.seeds-radio-checked:before {
|
|
2931
|
+
opacity: 1;
|
|
2932
|
+
background-color: var(--color-form-bg-base);
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
.seeds-radio-label {
|
|
2936
|
+
margin-left: var(--space-300);
|
|
2937
|
+
font-size: var(--font-size-200);
|
|
2938
|
+
line-height: 1;
|
|
2939
|
+
cursor: pointer;
|
|
2940
|
+
color: var(--color-text-headline);
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.seeds-radio.seeds-radio-disabled .seeds-radio-label {
|
|
2944
|
+
opacity: 0.4;
|
|
2945
|
+
cursor: not-allowed;
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2588
2949
|
/* --- seeds-react-rating --- */
|
|
2589
2950
|
@layer components {
|
|
2590
2951
|
.seeds-rating {
|
|
@@ -2959,6 +3320,147 @@
|
|
|
2959
3320
|
}
|
|
2960
3321
|
}
|
|
2961
3322
|
|
|
3323
|
+
/* --- seeds-react-switch --- */
|
|
3324
|
+
/**
|
|
3325
|
+
* Seeds Switch component classes
|
|
3326
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
3327
|
+
*
|
|
3328
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
3329
|
+
* CSS variable definitions and dark mode support.
|
|
3330
|
+
*
|
|
3331
|
+
* Usage:
|
|
3332
|
+
* <button class="seeds-switch" role="switch" aria-checked="true"></button>
|
|
3333
|
+
* <button class="seeds-switch loading" role="switch" aria-checked="false"></button>
|
|
3334
|
+
*/
|
|
3335
|
+
|
|
3336
|
+
@layer components {
|
|
3337
|
+
.seeds-switch {
|
|
3338
|
+
position: relative;
|
|
3339
|
+
display: inline-flex;
|
|
3340
|
+
align-self: center;
|
|
3341
|
+
width: 40px;
|
|
3342
|
+
height: 24px;
|
|
3343
|
+
margin: 0;
|
|
3344
|
+
padding: var(--space-100) var(--space-200);
|
|
3345
|
+
vertical-align: middle;
|
|
3346
|
+
appearance: none;
|
|
3347
|
+
background-color: var(--color-form-bg-base);
|
|
3348
|
+
border-radius: 16px;
|
|
3349
|
+
outline: none;
|
|
3350
|
+
cursor: pointer;
|
|
3351
|
+
transition: background-color var(--duration-fast) var(--ease-ease_inout);
|
|
3352
|
+
border: 1px solid var(--color-form-border-base);
|
|
3353
|
+
white-space: nowrap;
|
|
3354
|
+
overflow: hidden;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/* Mixin for styled focus ring — copied from button.css:34-39 */
|
|
3358
|
+
.seeds-switch:focus {
|
|
3359
|
+
outline: none;
|
|
3360
|
+
box-shadow:
|
|
3361
|
+
0 0 0 1px var(--color-button-primary-bg-base),
|
|
3362
|
+
0 0 0 4px color-mix(in srgb, var(--color-button-primary-bg-base) 30%, transparent);
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
/* Base styles for circle element */
|
|
3366
|
+
.seeds-switch[aria-checked]::after {
|
|
3367
|
+
display: block;
|
|
3368
|
+
width: 16px;
|
|
3369
|
+
height: 16px;
|
|
3370
|
+
border-radius: 50%;
|
|
3371
|
+
content: "";
|
|
3372
|
+
transition: transform var(--duration-fast) var(--ease-ease_inout);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.seeds-switch[aria-checked].loading {
|
|
3376
|
+
cursor: not-allowed;
|
|
3377
|
+
pointer-events: none;
|
|
3378
|
+
background-size: contain;
|
|
3379
|
+
background-color: var(--color-form-bg-base);
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
.seeds-switch[aria-checked].loading::after {
|
|
3383
|
+
position: absolute;
|
|
3384
|
+
box-sizing: content-box;
|
|
3385
|
+
width: 8px;
|
|
3386
|
+
height: 8px;
|
|
3387
|
+
border-radius: var(--radius-pill);
|
|
3388
|
+
border: 3px dotted var(--color-icon-base);
|
|
3389
|
+
background-color: transparent;
|
|
3390
|
+
animation: seeds-switch-loading 2s linear infinite;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
/* Checked State */
|
|
3394
|
+
.seeds-switch[aria-checked="true"] {
|
|
3395
|
+
color: var(--color-text-body);
|
|
3396
|
+
text-align: left;
|
|
3397
|
+
border-color: var(--color-form-border-selected);
|
|
3398
|
+
background-color: var(--color-form-bg-selected);
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
.seeds-switch[aria-checked="true"] .Icon {
|
|
3402
|
+
position: absolute;
|
|
3403
|
+
top: 50%;
|
|
3404
|
+
left: 4px;
|
|
3405
|
+
transform: translate(0, -50%);
|
|
3406
|
+
color: var(--color-icon-inverse);
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
.seeds-switch[aria-checked="true"]::after {
|
|
3410
|
+
background-color: var(--color-icon-inverse);
|
|
3411
|
+
opacity: 1;
|
|
3412
|
+
transform: translate(100%, 6%);
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
.seeds-switch[aria-checked="true"].loading::after {
|
|
3416
|
+
top: 4px;
|
|
3417
|
+
right: 5px;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
.seeds-switch[aria-checked="true"]:hover::after,
|
|
3421
|
+
.seeds-switch[aria-checked="true"]:focus::after {
|
|
3422
|
+
transform: translate(90%, 6%);
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
/* Unchecked State */
|
|
3426
|
+
.seeds-switch[aria-checked="false"]::after {
|
|
3427
|
+
background-color: var(--color-icon-base);
|
|
3428
|
+
opacity: 0.64;
|
|
3429
|
+
transform: translate(0%, 6%);
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
.seeds-switch[aria-checked="false"].loading::after {
|
|
3433
|
+
top: 4px;
|
|
3434
|
+
left: 5px;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
.seeds-switch[aria-checked="false"]:hover::after,
|
|
3438
|
+
.seeds-switch[aria-checked="false"]:focus::after {
|
|
3439
|
+
transform: translate(10%, 6%);
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
/* Disabled State Styles */
|
|
3443
|
+
.seeds-switch:disabled {
|
|
3444
|
+
opacity: 0.4;
|
|
3445
|
+
pointer-events: none;
|
|
3446
|
+
cursor: not-allowed;
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
.seeds-switch:disabled[aria-checked="true"]:hover,
|
|
3450
|
+
.seeds-switch:disabled[aria-checked="true"]:focus {
|
|
3451
|
+
background-color: var(--color-container-bg-selected);
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3454
|
+
@keyframes seeds-switch-loading {
|
|
3455
|
+
0% {
|
|
3456
|
+
transform: rotate(0deg);
|
|
3457
|
+
}
|
|
3458
|
+
100% {
|
|
3459
|
+
transform: rotate(360deg);
|
|
3460
|
+
}
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
2962
3464
|
/* --- seeds-react-text --- */
|
|
2963
3465
|
/**
|
|
2964
3466
|
* Seeds Text component classes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "31.7.
|
|
3
|
+
"version": "31.7.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@size-limit/file": "^11.1.6",
|
|
76
|
-
"@sproutsocial/seeds-react-accordion": "^0.4.
|
|
76
|
+
"@sproutsocial/seeds-react-accordion": "^0.4.52",
|
|
77
77
|
"@sproutsocial/seeds-react-avatar": "^1.1.20",
|
|
78
78
|
"@sproutsocial/seeds-react-badge": "^2.0.37",
|
|
79
79
|
"@sproutsocial/seeds-react-banner": "^1.1.25",
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
"@sproutsocial/seeds-react-drawer": "^2.2.11",
|
|
95
95
|
"@sproutsocial/seeds-react-duration": "^1.0.27",
|
|
96
96
|
"@sproutsocial/seeds-react-empty-state": "^1.0.26",
|
|
97
|
-
"@sproutsocial/seeds-react-fieldset": "^1.0.
|
|
98
|
-
"@sproutsocial/seeds-react-form-field": "^1.1.
|
|
97
|
+
"@sproutsocial/seeds-react-fieldset": "^1.0.27",
|
|
98
|
+
"@sproutsocial/seeds-react-form-field": "^1.1.21",
|
|
99
99
|
"@sproutsocial/seeds-react-grid": "^0.2.8",
|
|
100
100
|
"@sproutsocial/seeds-react-hooks": "^3.2.4",
|
|
101
101
|
"@sproutsocial/seeds-react-icon": "^2.4.3",
|
|
102
102
|
"@sproutsocial/seeds-react-image": "^1.0.24",
|
|
103
103
|
"@sproutsocial/seeds-react-indicator": "^1.0.43",
|
|
104
|
-
"@sproutsocial/seeds-react-input": "^1.5.
|
|
104
|
+
"@sproutsocial/seeds-react-input": "^1.5.31",
|
|
105
105
|
"@sproutsocial/seeds-react-keyboard-key": "^1.0.26",
|
|
106
106
|
"@sproutsocial/seeds-react-label": "^1.0.26",
|
|
107
107
|
"@sproutsocial/seeds-react-link": "^1.1.16",
|
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
"@sproutsocial/seeds-react-popout": "^2.5.12",
|
|
121
121
|
"@sproutsocial/seeds-react-portal": "^1.2.0",
|
|
122
122
|
"@sproutsocial/seeds-react-progress": "^0.2.11",
|
|
123
|
-
"@sproutsocial/seeds-react-radio": "^1.3.
|
|
123
|
+
"@sproutsocial/seeds-react-radio": "^1.3.27",
|
|
124
124
|
"@sproutsocial/seeds-react-rating": "^1.0.44",
|
|
125
125
|
"@sproutsocial/seeds-react-segmented-control": "^1.1.25",
|
|
126
126
|
"@sproutsocial/seeds-react-spot-illustration": "^1.2.4",
|
|
127
127
|
"@sproutsocial/seeds-react-select": "^1.1.44",
|
|
128
128
|
"@sproutsocial/seeds-react-skeleton": "^1.1.24",
|
|
129
129
|
"@sproutsocial/seeds-react-stack": "^1.0.23",
|
|
130
|
-
"@sproutsocial/seeds-react-switch": "^1.2.
|
|
130
|
+
"@sproutsocial/seeds-react-switch": "^1.2.43",
|
|
131
131
|
"@sproutsocial/seeds-react-system-props": "^3.1.2",
|
|
132
132
|
"@sproutsocial/seeds-react-table": "^1.0.45",
|
|
133
133
|
"@sproutsocial/seeds-react-tabs": "^1.4.14",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@sproutsocial/seeds-react-textarea": "^1.0.25",
|
|
136
136
|
"@sproutsocial/seeds-react-toast": "^1.0.45",
|
|
137
137
|
"@sproutsocial/seeds-react-token": "^1.5.10",
|
|
138
|
-
"@sproutsocial/seeds-react-token-input": "^1.4.
|
|
138
|
+
"@sproutsocial/seeds-react-token-input": "^1.4.53",
|
|
139
139
|
"@sproutsocial/seeds-react-tooltip": "^1.1.30",
|
|
140
140
|
"@sproutsocial/seeds-react-theme": "^4.2.0",
|
|
141
141
|
"@sproutsocial/seeds-react-theme-provider": "^1.1.22",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@sproutsocial/seeds-motion": "^1.8.2",
|
|
164
164
|
"@sproutsocial/seeds-networkcolor": "^2.22.0",
|
|
165
165
|
"@sproutsocial/seeds-partner-logos": "^2.4.1",
|
|
166
|
-
"@sproutsocial/seeds-react-menu": "^1.16.
|
|
166
|
+
"@sproutsocial/seeds-react-menu": "^1.16.5",
|
|
167
167
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
168
168
|
"@sproutsocial/seeds-space": "^0.8.1",
|
|
169
169
|
"@sproutsocial/seeds-testing": "*",
|