@sproutsocial/racine 33.0.0 → 33.0.1
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 +8 -0
- package/dist/components.css +136 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/components.css
CHANGED
|
@@ -6162,6 +6162,142 @@
|
|
|
6162
6162
|
}
|
|
6163
6163
|
}
|
|
6164
6164
|
|
|
6165
|
+
/* --- seeds-react-token-input --- */
|
|
6166
|
+
/**
|
|
6167
|
+
* Seeds TokenInput component classes
|
|
6168
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
6169
|
+
*
|
|
6170
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
6171
|
+
* CSS variable definitions and dark mode support.
|
|
6172
|
+
*
|
|
6173
|
+
* Usage:
|
|
6174
|
+
* <div class="seeds-token-input"><input /></div>
|
|
6175
|
+
* <div class="seeds-token-input seeds-token-input-invalid"><input /></div>
|
|
6176
|
+
*
|
|
6177
|
+
* Rules live in `@layer components` so that consumer Tailwind utilities win in
|
|
6178
|
+
* the cascade and can override these component styles, rather than tying/beating
|
|
6179
|
+
* them on specificity.
|
|
6180
|
+
*/
|
|
6181
|
+
|
|
6182
|
+
@layer components {
|
|
6183
|
+
.seeds-token-input {
|
|
6184
|
+
box-sizing: border-box;
|
|
6185
|
+
position: relative;
|
|
6186
|
+
display: flex;
|
|
6187
|
+
flex-wrap: wrap;
|
|
6188
|
+
align-items: center;
|
|
6189
|
+
align-content: center;
|
|
6190
|
+
cursor: text;
|
|
6191
|
+
width: 100%;
|
|
6192
|
+
border: 1px solid var(--color-form-border-base);
|
|
6193
|
+
border-radius: var(--radius-500);
|
|
6194
|
+
margin: 0;
|
|
6195
|
+
padding: var(--space-300);
|
|
6196
|
+
padding-top: var(--space-200);
|
|
6197
|
+
background-color: var(--color-form-bg-base);
|
|
6198
|
+
color: var(--color-text-body);
|
|
6199
|
+
transition:
|
|
6200
|
+
border-color var(--duration-fast) var(--ease-ease_in),
|
|
6201
|
+
box-shadow var(--duration-fast) var(--ease-ease_in);
|
|
6202
|
+
font-size: var(--font-size-200);
|
|
6203
|
+
line-height: 16px;
|
|
6204
|
+
font-family: var(--font-family);
|
|
6205
|
+
font-weight: var(--font-weight-normal);
|
|
6206
|
+
appearance: none;
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6209
|
+
.seeds-token-input button {
|
|
6210
|
+
margin: var(--space-200) var(--space-200) 0 0;
|
|
6211
|
+
}
|
|
6212
|
+
|
|
6213
|
+
.seeds-token-input input,
|
|
6214
|
+
.seeds-token-input textarea {
|
|
6215
|
+
font-size: var(--font-size-200);
|
|
6216
|
+
line-height: 16px;
|
|
6217
|
+
outline: none;
|
|
6218
|
+
border: none;
|
|
6219
|
+
flex: 1;
|
|
6220
|
+
padding: 0;
|
|
6221
|
+
padding-top: var(--space-100);
|
|
6222
|
+
margin: var(--space-200) var(--space-300) var(--space-100) 0;
|
|
6223
|
+
color: var(--color-text-body);
|
|
6224
|
+
background-color: var(--color-form-bg-base);
|
|
6225
|
+
/* This matches the height of the token so size does not change as tokens are added */
|
|
6226
|
+
min-height: 20px;
|
|
6227
|
+
}
|
|
6228
|
+
|
|
6229
|
+
.seeds-token-input input::-webkit-search-cancel-button,
|
|
6230
|
+
.seeds-token-input textarea::-webkit-search-cancel-button {
|
|
6231
|
+
appearance: none;
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6234
|
+
/* Explicitly removes double focus ring — focus is passed up from the input to
|
|
6235
|
+
the parent container (.seeds-token-input-focused). */
|
|
6236
|
+
.seeds-token-input input:focus,
|
|
6237
|
+
.seeds-token-input textarea:focus {
|
|
6238
|
+
box-shadow: none;
|
|
6239
|
+
}
|
|
6240
|
+
|
|
6241
|
+
/* https://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs */
|
|
6242
|
+
.seeds-token-input input::-ms-clear,
|
|
6243
|
+
.seeds-token-input textarea::-ms-clear {
|
|
6244
|
+
display: none;
|
|
6245
|
+
}
|
|
6246
|
+
|
|
6247
|
+
/* Fix for red ring when input is marked required in Firefox */
|
|
6248
|
+
.seeds-token-input input:not(output):not(:focus):-moz-ui-invalid,
|
|
6249
|
+
.seeds-token-input textarea:not(output):not(:focus):-moz-ui-invalid {
|
|
6250
|
+
box-shadow: none;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6253
|
+
.seeds-token-input input::placeholder,
|
|
6254
|
+
.seeds-token-input textarea::placeholder {
|
|
6255
|
+
color: var(--color-form-placeholder-base);
|
|
6256
|
+
font-style: italic;
|
|
6257
|
+
}
|
|
6258
|
+
|
|
6259
|
+
.seeds-token-input textarea {
|
|
6260
|
+
font-family: var(--font-family);
|
|
6261
|
+
}
|
|
6262
|
+
|
|
6263
|
+
/* Accessory spacing */
|
|
6264
|
+
.seeds-token-input-has-before {
|
|
6265
|
+
padding-left: 40px;
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
.seeds-token-input-has-after {
|
|
6269
|
+
padding-right: 40px;
|
|
6270
|
+
}
|
|
6271
|
+
|
|
6272
|
+
/* Focus ring on the container (mirrors the focusRing mixin) */
|
|
6273
|
+
.seeds-token-input-focused {
|
|
6274
|
+
box-shadow:
|
|
6275
|
+
0 0 0 1px var(--color-button-primary-bg-base),
|
|
6276
|
+
0 0 0 4px color-mix(in srgb, var(--color-button-primary-bg-base) 30%, transparent);
|
|
6277
|
+
}
|
|
6278
|
+
|
|
6279
|
+
/* State borders — declared after base so border-color wins */
|
|
6280
|
+
.seeds-token-input-invalid {
|
|
6281
|
+
border-color: var(--color-form-border-error);
|
|
6282
|
+
}
|
|
6283
|
+
|
|
6284
|
+
.seeds-token-input-warning {
|
|
6285
|
+
border-color: var(--color-form-border-warning);
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6288
|
+
/* Disabled */
|
|
6289
|
+
.seeds-token-input-disabled {
|
|
6290
|
+
opacity: 0.4;
|
|
6291
|
+
cursor: not-allowed;
|
|
6292
|
+
}
|
|
6293
|
+
|
|
6294
|
+
.seeds-token-input-disabled input,
|
|
6295
|
+
.seeds-token-input-disabled textarea {
|
|
6296
|
+
opacity: 0.4;
|
|
6297
|
+
cursor: not-allowed;
|
|
6298
|
+
}
|
|
6299
|
+
}
|
|
6300
|
+
|
|
6165
6301
|
/* --- seeds-react-tooltip --- */
|
|
6166
6302
|
/**
|
|
6167
6303
|
* Seeds Tooltip component classes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "33.0.
|
|
3
|
+
"version": "33.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@size-limit/file": "^11.1.6",
|
|
71
|
-
"@sproutsocial/seeds-react-accordion": "^0.4.
|
|
71
|
+
"@sproutsocial/seeds-react-accordion": "^0.4.71",
|
|
72
72
|
"@sproutsocial/seeds-react-avatar": "^1.2.2",
|
|
73
73
|
"@sproutsocial/seeds-react-badge": "^2.0.48",
|
|
74
74
|
"@sproutsocial/seeds-react-banner": "^1.1.38",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@sproutsocial/seeds-react-panel": "^1.2.4",
|
|
113
113
|
"@sproutsocial/seeds-react-peek-in": "^0.6.4",
|
|
114
114
|
"@sproutsocial/seeds-react-partner-logo": "^1.7.26",
|
|
115
|
-
"@sproutsocial/seeds-react-popout": "^2.5.
|
|
115
|
+
"@sproutsocial/seeds-react-popout": "^2.5.27",
|
|
116
116
|
"@sproutsocial/seeds-react-portal": "^1.2.0",
|
|
117
117
|
"@sproutsocial/seeds-react-progress": "^0.2.21",
|
|
118
118
|
"@sproutsocial/seeds-react-radio": "^1.3.37",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@sproutsocial/seeds-motion": "^1.8.2",
|
|
159
159
|
"@sproutsocial/seeds-networkcolor": "^2.22.0",
|
|
160
160
|
"@sproutsocial/seeds-partner-logos": "^2.4.1",
|
|
161
|
-
"@sproutsocial/seeds-react-menu": "^1.18.
|
|
161
|
+
"@sproutsocial/seeds-react-menu": "^1.18.5",
|
|
162
162
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
163
163
|
"@sproutsocial/seeds-space": "^0.8.1",
|
|
164
164
|
"@sproutsocial/seeds-testing": "*",
|