@botiverse/raft-ui 0.19.0 → 0.20.0
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 +86 -3
- package/codemods/token-names.mjs +16 -0
- package/dist/cn.mjs +15 -1
- package/dist/components/combobox-select/combobox-select.css +58 -40
- package/dist/components/float-button/float-button.css +21 -12
- package/dist/foundation.css +53 -39
- package/dist/{index-DsVVBZ5T.d.mts → index-RFu5pOr7.d.mts} +4 -1
- package/dist/index.d.mts +16 -5
- package/dist/index.mjs +161 -105
- package/dist/style.css +73 -58
- package/dist/styles.css +61 -24
- package/dist/tokens.json +66 -55
- package/dist/{touch-drag-CbWqiMlZ.mjs → touch-drag-BA_Fxs2Z.mjs} +61 -37
- package/dist/wip.d.mts +1 -1
- package/dist/wip.mjs +3 -3
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--r-float-button-border-color: var(--line-strong);
|
|
9
9
|
--r-float-button-bg: var(--layer-card);
|
|
10
10
|
--r-float-button-bg-hover: var(--layer-card);
|
|
11
|
-
--r-float-button-press: var(--fill-
|
|
11
|
+
--r-float-button-press: var(--fill-medium);
|
|
12
12
|
--r-float-button-text-color: var(--foreground);
|
|
13
13
|
--r-float-button-text-hover-color: var(--foreground);
|
|
14
14
|
--r-float-button-text-disabled-color: var(--foreground-disabled);
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
--r-float-button-border-color: var(--sticker-ink);
|
|
72
72
|
--r-float-button-bg: var(--attention-400);
|
|
73
73
|
--r-float-button-bg-hover: var(--attention-400);
|
|
74
|
-
--r-float-button-press: var(--sticker-
|
|
74
|
+
--r-float-button-press: var(--sticker-medium);
|
|
75
75
|
--r-float-button-text-color: var(--sticker-ink);
|
|
76
76
|
--r-float-button-text-hover-color: var(--sticker-ink);
|
|
77
77
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
--r-float-button-border-color: var(--sticker-ink);
|
|
81
81
|
--r-float-button-bg: var(--warning);
|
|
82
82
|
--r-float-button-bg-hover: var(--warning);
|
|
83
|
-
--r-float-button-press: var(--sticker-
|
|
83
|
+
--r-float-button-press: var(--sticker-medium);
|
|
84
84
|
--r-float-button-text-color: var(--sticker-ink);
|
|
85
85
|
--r-float-button-text-hover-color: var(--sticker-ink);
|
|
86
86
|
}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
--r-float-button-border-color: var(--sticker-ink);
|
|
90
90
|
--r-float-button-bg: var(--danger);
|
|
91
91
|
--r-float-button-bg-hover: var(--danger);
|
|
92
|
-
--r-float-button-press: var(--sticker-
|
|
92
|
+
--r-float-button-press: var(--sticker-medium);
|
|
93
93
|
--r-float-button-text-color: var(--sticker-ink);
|
|
94
94
|
--r-float-button-text-hover-color: var(--sticker-ink);
|
|
95
95
|
}
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
&.r-float-button--ghost {
|
|
98
98
|
--r-float-button-border-color: transparent;
|
|
99
99
|
--r-float-button-bg: transparent;
|
|
100
|
-
--r-float-button-bg-hover:
|
|
101
|
-
--r-float-button-press:
|
|
100
|
+
--r-float-button-bg-hover: transparent;
|
|
101
|
+
--r-float-button-press: var(--fill-medium);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -136,11 +136,13 @@
|
|
|
136
136
|
padding-right: var(--r-float-button-padding-x);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
@media (hover: hover) {
|
|
140
|
+
&:hover:not(:disabled) {
|
|
141
|
+
background-color: var(--r-float-button-bg-hover);
|
|
142
|
+
color: var(--r-float-button-text-hover-color);
|
|
143
|
+
box-shadow: var(--r-float-button-shadow-hover);
|
|
144
|
+
transform: var(--r-float-button-transform-hover);
|
|
145
|
+
}
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
&:active:not(:disabled) {
|
|
@@ -153,7 +155,13 @@
|
|
|
153
155
|
outline-offset: var(--r-float-button-outline-offset);
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
|
|
158
|
+
@media (hover: hover) {
|
|
159
|
+
&:hover:not(:disabled) {
|
|
160
|
+
background-image: linear-gradient(var(--r-float-button-press), var(--r-float-button-press));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:active:not(:disabled) {
|
|
157
165
|
background-image: linear-gradient(var(--r-float-button-press), var(--r-float-button-press));
|
|
158
166
|
}
|
|
159
167
|
|
|
@@ -1062,16 +1070,16 @@
|
|
|
1062
1070
|
box-sizing: border-box;
|
|
1063
1071
|
min-width: 0;
|
|
1064
1072
|
min-height: var(--control-height);
|
|
1073
|
+
align-items: center;
|
|
1074
|
+
gap: var(--control-embedded-inset);
|
|
1075
|
+
padding: 0 calc(var(--control-embedded-inset) - 1px) 0 12px;
|
|
1065
1076
|
border: 1.5px solid var(--line-field);
|
|
1077
|
+
border-radius: var(--radius-control);
|
|
1066
1078
|
background: var(--layer-card);
|
|
1067
1079
|
color: var(--foreground);
|
|
1068
1080
|
font-size: var(--field-font-size);
|
|
1069
1081
|
line-height: var(--field-line-height);
|
|
1070
|
-
border-radius: 8px;
|
|
1071
1082
|
outline: 0;
|
|
1072
|
-
align-items: center;
|
|
1073
|
-
gap: .5rem;
|
|
1074
|
-
padding: 0 6px 0 12px;
|
|
1075
1083
|
transition: box-shadow 90ms ease-out;
|
|
1076
1084
|
display: flex;
|
|
1077
1085
|
}
|
|
@@ -1094,31 +1102,31 @@
|
|
|
1094
1102
|
}
|
|
1095
1103
|
|
|
1096
1104
|
.r-combobox-select__chips {
|
|
1105
|
+
min-height: var(--control-embedded-size);
|
|
1106
|
+
min-width: 0;
|
|
1107
|
+
padding: calc(var(--control-embedded-inset) - 1.5px) 0;
|
|
1108
|
+
align-items: center;
|
|
1109
|
+
gap: var(--control-embedded-inset);
|
|
1097
1110
|
border: 0;
|
|
1098
1111
|
flex-wrap: wrap;
|
|
1099
1112
|
flex: 1;
|
|
1100
|
-
|
|
1101
|
-
gap: 6px;
|
|
1102
|
-
min-width: 0;
|
|
1103
|
-
min-height: 28px;
|
|
1104
|
-
margin-inline-start: -6px;
|
|
1105
|
-
padding: 6px 0;
|
|
1113
|
+
margin-inline-start: calc(var(--control-embedded-inset) - 13px);
|
|
1106
1114
|
display: flex;
|
|
1107
1115
|
}
|
|
1108
1116
|
|
|
1109
1117
|
.r-combobox-select__chips .r-combobox-select__input {
|
|
1110
|
-
|
|
1118
|
+
height: var(--control-embedded-size);
|
|
1111
1119
|
padding: 0 4px;
|
|
1112
1120
|
}
|
|
1113
1121
|
|
|
1114
1122
|
.r-combobox-select__chip {
|
|
1115
|
-
background: var(--fill-muted);
|
|
1116
1123
|
max-width: 100%;
|
|
1117
|
-
|
|
1124
|
+
height: var(--control-embedded-size);
|
|
1125
|
+
border-radius: var(--radius-chip);
|
|
1126
|
+
background: var(--fill-muted);
|
|
1118
1127
|
color: var(--foreground);
|
|
1119
1128
|
font-size: var(--text-footnote);
|
|
1120
1129
|
line-height: var(--text-footnote--line-height);
|
|
1121
|
-
border-radius: 6px;
|
|
1122
1130
|
align-items: center;
|
|
1123
1131
|
gap: 6px;
|
|
1124
1132
|
padding: 0 2px 0 8px;
|
|
@@ -1147,9 +1155,9 @@
|
|
|
1147
1155
|
}
|
|
1148
1156
|
|
|
1149
1157
|
.r-combobox-select__actions {
|
|
1150
|
-
flex: none;
|
|
1151
1158
|
align-items: center;
|
|
1152
|
-
gap:
|
|
1159
|
+
gap: var(--control-embedded-inset);
|
|
1160
|
+
flex: none;
|
|
1153
1161
|
display: inline-flex;
|
|
1154
1162
|
}
|
|
1155
1163
|
|
|
@@ -1166,17 +1174,17 @@
|
|
|
1166
1174
|
}
|
|
1167
1175
|
|
|
1168
1176
|
.r-combobox-select__remove {
|
|
1169
|
-
width:
|
|
1170
|
-
height:
|
|
1177
|
+
width: calc(var(--control-embedded-size) - 4px);
|
|
1178
|
+
height: calc(var(--control-embedded-size) - 4px);
|
|
1179
|
+
border-radius: var(--radius-sticker);
|
|
1171
1180
|
color: var(--foreground-hint);
|
|
1172
|
-
border-radius: 4px;
|
|
1173
1181
|
}
|
|
1174
1182
|
|
|
1175
1183
|
.r-combobox-select__action {
|
|
1176
|
-
width:
|
|
1177
|
-
height:
|
|
1184
|
+
width: var(--control-embedded-size);
|
|
1185
|
+
height: var(--control-embedded-size);
|
|
1186
|
+
border-radius: var(--radius-chip);
|
|
1178
1187
|
color: var(--foreground-hint);
|
|
1179
|
-
border-radius: 8px;
|
|
1180
1188
|
}
|
|
1181
1189
|
|
|
1182
1190
|
.r-combobox-select__action > svg, .r-combobox-select__remove > svg {
|
|
@@ -1193,15 +1201,26 @@
|
|
|
1193
1201
|
height: .875rem;
|
|
1194
1202
|
}
|
|
1195
1203
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1204
|
+
@media (hover: hover) {
|
|
1205
|
+
.r-combobox-select__action:hover, .r-combobox-select__remove:hover {
|
|
1206
|
+
background: var(--fill-medium);
|
|
1207
|
+
color: var(--foreground);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.r-combobox-select__action:active, .r-combobox-select__remove:active {
|
|
1212
|
+
background: var(--fill-medium);
|
|
1198
1213
|
color: var(--foreground);
|
|
1199
1214
|
}
|
|
1200
1215
|
|
|
1201
|
-
.r-combobox-select__action:focus-visible
|
|
1216
|
+
.r-combobox-select__action:focus-visible {
|
|
1202
1217
|
box-shadow: var(--focus-ring);
|
|
1203
1218
|
}
|
|
1204
1219
|
|
|
1220
|
+
.r-combobox-select__remove:focus-visible:not(:where(:root[data-input-modality="pointer"] *)) {
|
|
1221
|
+
box-shadow: inset 0 0 0 2px var(--foreground);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1205
1224
|
.r-combobox-select__positioner {
|
|
1206
1225
|
z-index: 50;
|
|
1207
1226
|
isolation: isolate;
|
|
@@ -1214,12 +1233,12 @@
|
|
|
1214
1233
|
min-width: 13.75rem;
|
|
1215
1234
|
max-width: var(--available-width);
|
|
1216
1235
|
max-height: min(var(--available-height), max(24rem, var(--combobox-select-list-max-height, 0px)));
|
|
1236
|
+
border-radius: var(--radius-container);
|
|
1217
1237
|
background: var(--layer-popover);
|
|
1218
1238
|
color: var(--foreground);
|
|
1219
1239
|
box-shadow: 0 0 0 1px var(--line-seam),
|
|
1220
1240
|
var(--elevation-float);
|
|
1221
1241
|
border: 0;
|
|
1222
|
-
border-radius: 10px;
|
|
1223
1242
|
outline: 0;
|
|
1224
1243
|
overflow: hidden;
|
|
1225
1244
|
}
|
|
@@ -1228,13 +1247,14 @@
|
|
|
1228
1247
|
box-sizing: border-box;
|
|
1229
1248
|
max-height: var(--combobox-select-list-max-height, 16rem);
|
|
1230
1249
|
overscroll-behavior: contain;
|
|
1231
|
-
padding:
|
|
1232
|
-
scroll-padding-block:
|
|
1250
|
+
padding: 4px;
|
|
1251
|
+
scroll-padding-block: 4px;
|
|
1233
1252
|
overflow-y: auto;
|
|
1234
1253
|
}
|
|
1235
1254
|
|
|
1236
1255
|
.r-combobox-select__option {
|
|
1237
1256
|
box-sizing: border-box;
|
|
1257
|
+
border-radius: var(--radius-chip);
|
|
1238
1258
|
cursor: default;
|
|
1239
1259
|
user-select: none;
|
|
1240
1260
|
width: 100%;
|
|
@@ -1242,7 +1262,6 @@
|
|
|
1242
1262
|
color: var(--foreground);
|
|
1243
1263
|
font-size: var(--text-callout);
|
|
1244
1264
|
line-height: var(--text-callout--line-height);
|
|
1245
|
-
border-radius: 8px;
|
|
1246
1265
|
outline: 0;
|
|
1247
1266
|
justify-content: space-between;
|
|
1248
1267
|
align-items: center;
|
|
@@ -1254,7 +1273,14 @@
|
|
|
1254
1273
|
overflow: hidden;
|
|
1255
1274
|
}
|
|
1256
1275
|
|
|
1257
|
-
|
|
1276
|
+
@media (hover: hover) {
|
|
1277
|
+
.r-combobox-select__option:hover {
|
|
1278
|
+
background: var(--brand-soft);
|
|
1279
|
+
color: var(--foreground);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.r-combobox-select__option[data-highlighted] {
|
|
1258
1284
|
background: var(--brand-soft);
|
|
1259
1285
|
color: var(--foreground);
|
|
1260
1286
|
}
|
|
@@ -1321,27 +1347,16 @@
|
|
|
1321
1347
|
}
|
|
1322
1348
|
|
|
1323
1349
|
.r-combobox-select--sm.r-combobox-select__control {
|
|
1324
|
-
|
|
1350
|
+
--control-height: 1.75rem;
|
|
1351
|
+
--control-embedded-inset: 3px;
|
|
1352
|
+
--control-embedded-size: 22px;
|
|
1325
1353
|
font-size: var(--text-control);
|
|
1326
1354
|
line-height: var(--text-control--line-height);
|
|
1327
1355
|
}
|
|
1328
1356
|
|
|
1329
|
-
.r-combobox-select--sm .r-combobox-select__chips {
|
|
1330
|
-
min-height: 1.5rem;
|
|
1331
|
-
padding: 1px 0;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
.r-combobox-select--sm .r-combobox-select__chip {
|
|
1335
|
-
min-height: 1.375rem;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
.r-combobox-select--sm .r-combobox-select__action {
|
|
1339
|
-
width: 1.5rem;
|
|
1340
|
-
height: 1.5rem;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
1357
|
.r-combobox-select--lg.r-combobox-select__control {
|
|
1344
|
-
|
|
1358
|
+
--control-height: 52px;
|
|
1359
|
+
--control-embedded-size: 40px;
|
|
1345
1360
|
}
|
|
1346
1361
|
|
|
1347
1362
|
.r-combobox-select__control[data-status="error"], .r-combobox-select__control[data-invalid] {
|
package/dist/styles.css
CHANGED
|
@@ -65,9 +65,14 @@
|
|
|
65
65
|
|
|
66
66
|
/* Raft Design System shape scale: pixels are hard, containers are soft.
|
|
67
67
|
sticker = avatars, channel tiles, checkboxes, counts, inline marks;
|
|
68
|
-
chip =
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
chip = chips, a popup's highlighted item, and every control embedded in
|
|
69
|
+
another component's frame (a field's buttons, the composer's, a floating
|
|
70
|
+
toolbar's, a card's corner action); control = buttons, fields and rows
|
|
71
|
+
that stand on their own; container = cards, menus, composer, banners;
|
|
72
|
+
dialog = dialogs and sheet tops. Round (rounded-full) is only for
|
|
73
|
+
switches and radios. A frame keeps its radius whatever it holds: the
|
|
74
|
+
element keeps its own, and the space around it adapts
|
|
75
|
+
(design/foundations/shape.md#inside-a-frame). */
|
|
71
76
|
--radius-sticker: 4px;
|
|
72
77
|
--radius-chip: 6px;
|
|
73
78
|
--radius-control: 8px;
|
|
@@ -281,17 +286,15 @@
|
|
|
281
286
|
--color-foreground-on-frame: var(--foreground-on-frame);
|
|
282
287
|
--color-foreground-on-frame-muted: var(--foreground-on-frame-muted);
|
|
283
288
|
--color-foreground-on-frame-active: var(--foreground-on-frame-active);
|
|
284
|
-
--color-fill-
|
|
285
|
-
--color-fill-
|
|
286
|
-
--color-fill-
|
|
287
|
-
--color-fill-message-hover: var(--fill-message-hover);
|
|
288
|
-
--color-fill-row-open: var(--fill-row-open);
|
|
289
|
+
--color-fill-subtle: var(--fill-subtle);
|
|
290
|
+
--color-fill-medium: var(--fill-medium);
|
|
291
|
+
--color-fill-frame-medium: var(--fill-frame-medium);
|
|
289
292
|
--color-layer-code: var(--layer-code);
|
|
290
293
|
--color-foreground-link: var(--foreground-link);
|
|
291
294
|
--color-sticker-ink: var(--sticker-ink);
|
|
292
295
|
--color-sticker-paper: var(--sticker-paper);
|
|
293
296
|
--color-sticker-edge: var(--sticker-edge);
|
|
294
|
-
--color-sticker-
|
|
297
|
+
--color-sticker-medium: var(--sticker-medium);
|
|
295
298
|
--color-presence-online: var(--presence-online);
|
|
296
299
|
--color-presence-busy: var(--presence-busy);
|
|
297
300
|
--color-presence-error: var(--presence-error);
|
|
@@ -370,6 +373,15 @@
|
|
|
370
373
|
--spacing-control-cta: var(--control-height-cta);
|
|
371
374
|
--spacing-control-icon: var(--control-icon-size);
|
|
372
375
|
--spacing-control-hit: var(--control-hit-inset);
|
|
376
|
+
/* A chip or a button embedded in a frame sits `embedded-inset` (6px) inside
|
|
377
|
+
the frame's outer edge on every side and from its sibling; in a field it
|
|
378
|
+
is `control-embedded` tall, 20px on a desktop and 32px on a phone, so the
|
|
379
|
+
field keeps the control height (design/foundations/shape.md#inside-a-frame).
|
|
380
|
+
Consumers: `ComboboxChips`, `ComboboxControl`, `ComboboxSelect`,
|
|
381
|
+
InputGroup's end addon, the composer, CodeBlock and the corner actions of
|
|
382
|
+
MessageAttachment. */
|
|
383
|
+
--spacing-control-embedded: var(--control-embedded-size);
|
|
384
|
+
--spacing-embedded-inset: var(--control-embedded-inset);
|
|
373
385
|
/* ─── Option metric axis ────────────────────────────────────────────────────
|
|
374
386
|
An option in a popup list (a Select, Combobox or ComboboxSelect option, a
|
|
375
387
|
menu item) is as tall as its content, with the same space above and below
|
|
@@ -397,6 +409,12 @@
|
|
|
397
409
|
--spacing-icon-inset: var(--icon-inset);
|
|
398
410
|
|
|
399
411
|
/* Deprecated utility names, kept until raft-ui 1.0 (see codemods/token-names.mjs). */
|
|
412
|
+
--color-fill-pressed: var(--fill-medium);
|
|
413
|
+
--color-fill-frame-pressed: var(--fill-frame-medium);
|
|
414
|
+
--color-fill-row-hover: var(--fill-subtle);
|
|
415
|
+
--color-fill-row-open: var(--fill-subtle);
|
|
416
|
+
--color-fill-message-hover: var(--fill-subtle);
|
|
417
|
+
--color-sticker-pressed: var(--sticker-medium);
|
|
400
418
|
--color-foreground-strong: var(--foreground);
|
|
401
419
|
--color-foreground-icon: var(--foreground-muted);
|
|
402
420
|
--color-foreground-placeholder: var(--foreground-hint);
|
|
@@ -542,28 +560,47 @@ textarea:-webkit-autofill:disabled {
|
|
|
542
560
|
background-size: 16px 16px;
|
|
543
561
|
}
|
|
544
562
|
|
|
545
|
-
/* Raft Design System
|
|
546
|
-
resting colour instead of
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
563
|
+
/* Raft Design System hover and press: two tiers, each a translucent ink
|
|
564
|
+
layer over the resting colour instead of a swap, so a control keeps its
|
|
565
|
+
identity and the step looks the same on white, the yellowish sidebar and a
|
|
566
|
+
card (design/foundations/states.md#hover-and-press).
|
|
567
|
+
overlay-subtle: hover on large things people read (rows, messages, readable
|
|
568
|
+
cards) and a row whose menu is open.
|
|
569
|
+
overlay-medium: hover on small controls and press on everything; on a colour
|
|
570
|
+
sticker overlay-sticker-medium, on the frame overlay-frame-medium.
|
|
571
|
+
Use the bg-fill-* colours instead on a transparent control whose fill fades
|
|
572
|
+
in with transition-colors. */
|
|
573
|
+
@utility overlay-subtle {
|
|
574
|
+
background-image: linear-gradient(var(--fill-subtle), var(--fill-subtle));
|
|
551
575
|
}
|
|
552
576
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
replaces it instead of stacking on it. */
|
|
556
|
-
@utility row-hover-overlay {
|
|
557
|
-
background-image: linear-gradient(var(--fill-row-hover), var(--fill-row-hover));
|
|
577
|
+
@utility overlay-medium {
|
|
578
|
+
background-image: linear-gradient(var(--fill-medium), var(--fill-medium));
|
|
558
579
|
}
|
|
559
580
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
581
|
+
@utility overlay-sticker-medium {
|
|
582
|
+
background-image: linear-gradient(var(--sticker-medium), var(--sticker-medium));
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@utility overlay-frame-medium {
|
|
586
|
+
background-image: linear-gradient(var(--fill-frame-medium), var(--fill-frame-medium));
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* Deprecated overlay names, kept until raft-ui 1.0 (see codemods/token-names.mjs). */
|
|
590
|
+
@utility press-overlay {
|
|
591
|
+
background-image: linear-gradient(var(--fill-medium), var(--fill-medium));
|
|
563
592
|
}
|
|
564
593
|
|
|
565
594
|
@utility press-overlay-sticker {
|
|
566
|
-
background-image: linear-gradient(var(--sticker-
|
|
595
|
+
background-image: linear-gradient(var(--sticker-medium), var(--sticker-medium));
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
@utility row-hover-overlay {
|
|
599
|
+
background-image: linear-gradient(var(--fill-subtle), var(--fill-subtle));
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@utility row-open-overlay {
|
|
603
|
+
background-image: linear-gradient(var(--fill-subtle), var(--fill-subtle));
|
|
567
604
|
}
|
|
568
605
|
|
|
569
606
|
/* Space and rules between siblings: stack-y-* / stack-x-* and rule-y / rule-x
|
package/dist/tokens.json
CHANGED
|
@@ -1492,44 +1492,8 @@
|
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
},
|
|
1495
|
-
"
|
|
1496
|
-
"$
|
|
1497
|
-
"colorSpace": "oklch",
|
|
1498
|
-
"components": [0.1813, 0.005, 17.62],
|
|
1499
|
-
"alpha": 0.122
|
|
1500
|
-
},
|
|
1501
|
-
"$extensions": {
|
|
1502
|
-
"build.botiverse.raft": {
|
|
1503
|
-
"modes": {
|
|
1504
|
-
"dark": {
|
|
1505
|
-
"colorSpace": "oklch",
|
|
1506
|
-
"components": [0.9843, 0.004, 106.47],
|
|
1507
|
-
"alpha": 0.078
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
"pressed": {
|
|
1514
|
-
"$value": {
|
|
1515
|
-
"colorSpace": "oklch",
|
|
1516
|
-
"components": [0.1813, 0.005, 17.62],
|
|
1517
|
-
"alpha": 0.078
|
|
1518
|
-
},
|
|
1519
|
-
"$extensions": {
|
|
1520
|
-
"build.botiverse.raft": {
|
|
1521
|
-
"modes": {
|
|
1522
|
-
"dark": {
|
|
1523
|
-
"colorSpace": "oklch",
|
|
1524
|
-
"components": [0.9843, 0.004, 106.47],
|
|
1525
|
-
"alpha": 0.078
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
},
|
|
1531
|
-
"row-hover": {
|
|
1532
|
-
"$description": "Hover on a whole row (sidebar, list, inbox, search result, table, file row): one perceptible step (OKLab dE about 2.8 in both modes), below every selection tint, so text keeps its contrast.",
|
|
1495
|
+
"subtle": {
|
|
1496
|
+
"$description": "Hover tier subtle (light): hover on large things people read, a row, a message, a readable card, and a row whose menu is open. About 2.5 to 3 OKLab dE in both modes, on paper, the sidebar and cards alike, under every selection tint, so text keeps its contrast.",
|
|
1533
1497
|
"$value": {
|
|
1534
1498
|
"colorSpace": "oklch",
|
|
1535
1499
|
"components": [0.1813, 0.005, 17.62],
|
|
@@ -1547,12 +1511,12 @@
|
|
|
1547
1511
|
}
|
|
1548
1512
|
}
|
|
1549
1513
|
},
|
|
1550
|
-
"
|
|
1551
|
-
"$description": "Hover
|
|
1514
|
+
"medium": {
|
|
1515
|
+
"$description": "Hover tier medium: hover on small controls (buttons, icon buttons, chips, tabs, segment items) and press on everything, on paper-coloured surfaces. About 5.5 to 6.5 OKLab dE; dark is lighter than light because the same ink alpha shows more on a dark surface.",
|
|
1552
1516
|
"$value": {
|
|
1553
1517
|
"colorSpace": "oklch",
|
|
1554
1518
|
"components": [0.1813, 0.005, 17.62],
|
|
1555
|
-
"alpha": 0.
|
|
1519
|
+
"alpha": 0.078
|
|
1556
1520
|
},
|
|
1557
1521
|
"$extensions": {
|
|
1558
1522
|
"build.botiverse.raft": {
|
|
@@ -1560,18 +1524,18 @@
|
|
|
1560
1524
|
"dark": {
|
|
1561
1525
|
"colorSpace": "oklch",
|
|
1562
1526
|
"components": [0.9843, 0.004, 106.47],
|
|
1563
|
-
"alpha": 0.
|
|
1527
|
+
"alpha": 0.065
|
|
1564
1528
|
}
|
|
1565
1529
|
}
|
|
1566
1530
|
}
|
|
1567
1531
|
}
|
|
1568
1532
|
},
|
|
1569
|
-
"
|
|
1570
|
-
"$description": "
|
|
1533
|
+
"frame-medium": {
|
|
1534
|
+
"$description": "Hover tier medium on the frame (rail items, on-frame buttons, the workspace button): hover and press. Its own alphas because ink shows differently on the yellow and on the near-black frame: 10% on the yellow and 6% on the dark frame land on the medium step, about 6 OKLab dE.",
|
|
1571
1535
|
"$value": {
|
|
1572
1536
|
"colorSpace": "oklch",
|
|
1573
1537
|
"components": [0.1813, 0.005, 17.62],
|
|
1574
|
-
"alpha": 0.
|
|
1538
|
+
"alpha": 0.1
|
|
1575
1539
|
},
|
|
1576
1540
|
"$extensions": {
|
|
1577
1541
|
"build.botiverse.raft": {
|
|
@@ -1579,7 +1543,7 @@
|
|
|
1579
1543
|
"dark": {
|
|
1580
1544
|
"colorSpace": "oklch",
|
|
1581
1545
|
"components": [0.9843, 0.004, 106.47],
|
|
1582
|
-
"alpha": 0.
|
|
1546
|
+
"alpha": 0.06
|
|
1583
1547
|
}
|
|
1584
1548
|
}
|
|
1585
1549
|
}
|
|
@@ -1907,7 +1871,7 @@
|
|
|
1907
1871
|
"dark": {
|
|
1908
1872
|
"colorSpace": "oklch",
|
|
1909
1873
|
"components": [0.5501, 0.0999, 91.5],
|
|
1910
|
-
"alpha": 0.
|
|
1874
|
+
"alpha": 0.2
|
|
1911
1875
|
}
|
|
1912
1876
|
}
|
|
1913
1877
|
}
|
|
@@ -1923,8 +1887,8 @@
|
|
|
1923
1887
|
}
|
|
1924
1888
|
},
|
|
1925
1889
|
"hover": {
|
|
1926
|
-
"$value": "color-mix(in srgb, var(--brand-400)
|
|
1927
|
-
"$description": "
|
|
1890
|
+
"$value": "color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))",
|
|
1891
|
+
"$description": "Hovering or pressing a sticker lays sticker-medium (10% ink) over its colour.",
|
|
1928
1892
|
"$extensions": {
|
|
1929
1893
|
"build.botiverse.raft": {
|
|
1930
1894
|
"css": true
|
|
@@ -2007,7 +1971,7 @@
|
|
|
2007
1971
|
}
|
|
2008
1972
|
},
|
|
2009
1973
|
"hover": {
|
|
2010
|
-
"$value": "color-mix(in srgb, var(--attention-400)
|
|
1974
|
+
"$value": "color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))",
|
|
2011
1975
|
"$extensions": {
|
|
2012
1976
|
"build.botiverse.raft": {
|
|
2013
1977
|
"css": true
|
|
@@ -2072,7 +2036,7 @@
|
|
|
2072
2036
|
}
|
|
2073
2037
|
},
|
|
2074
2038
|
"hover": {
|
|
2075
|
-
"$value": "color-mix(in srgb, var(--info)
|
|
2039
|
+
"$value": "color-mix(in srgb, var(--info) 90%, var(--sticker-ink))",
|
|
2076
2040
|
"$extensions": {
|
|
2077
2041
|
"build.botiverse.raft": {
|
|
2078
2042
|
"css": true
|
|
@@ -2195,7 +2159,7 @@
|
|
|
2195
2159
|
}
|
|
2196
2160
|
},
|
|
2197
2161
|
"hover": {
|
|
2198
|
-
"$value": "color-mix(in srgb, var(--warning)
|
|
2162
|
+
"$value": "color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))",
|
|
2199
2163
|
"$extensions": {
|
|
2200
2164
|
"build.botiverse.raft": {
|
|
2201
2165
|
"css": true
|
|
@@ -2266,7 +2230,7 @@
|
|
|
2266
2230
|
}
|
|
2267
2231
|
},
|
|
2268
2232
|
"hover": {
|
|
2269
|
-
"$value": "color-mix(in srgb, var(--danger)
|
|
2233
|
+
"$value": "color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))",
|
|
2270
2234
|
"$extensions": {
|
|
2271
2235
|
"build.botiverse.raft": {
|
|
2272
2236
|
"css": true
|
|
@@ -2698,6 +2662,28 @@
|
|
|
2698
2662
|
}
|
|
2699
2663
|
}
|
|
2700
2664
|
}
|
|
2665
|
+
},
|
|
2666
|
+
"embedded-inset": {
|
|
2667
|
+
"$value": {
|
|
2668
|
+
"value": 6,
|
|
2669
|
+
"unit": "px"
|
|
2670
|
+
},
|
|
2671
|
+
"$description": "How far a chip or a button embedded in a field, the composer or a corner sits inside its frame's outer edge, and from its sibling."
|
|
2672
|
+
},
|
|
2673
|
+
"embedded-size": {
|
|
2674
|
+
"$value": {
|
|
2675
|
+
"value": 32,
|
|
2676
|
+
"unit": "px"
|
|
2677
|
+
},
|
|
2678
|
+
"$description": "A chip or a button embedded in a field: the control height less the embedded inset above and below, so the field keeps its height.",
|
|
2679
|
+
"$extensions": {
|
|
2680
|
+
"build.botiverse.raft": {
|
|
2681
|
+
"desktop": {
|
|
2682
|
+
"value": 20,
|
|
2683
|
+
"unit": "px"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2701
2687
|
}
|
|
2702
2688
|
},
|
|
2703
2689
|
"sticker": {
|
|
@@ -2732,11 +2718,12 @@
|
|
|
2732
2718
|
}
|
|
2733
2719
|
}
|
|
2734
2720
|
},
|
|
2735
|
-
"
|
|
2721
|
+
"medium": {
|
|
2722
|
+
"$description": "Hover tier medium on a colour sticker (primary, warning and danger buttons, colour badges, the selected segment on press): hover and press, 10% ink in both modes.",
|
|
2736
2723
|
"$value": {
|
|
2737
2724
|
"colorSpace": "oklch",
|
|
2738
2725
|
"components": [0.1813, 0.005, 17.62],
|
|
2739
|
-
"alpha": 0.
|
|
2726
|
+
"alpha": 0.1
|
|
2740
2727
|
}
|
|
2741
2728
|
}
|
|
2742
2729
|
},
|
|
@@ -2775,6 +2762,30 @@
|
|
|
2775
2762
|
},
|
|
2776
2763
|
"deprecated": {
|
|
2777
2764
|
"$description": "Former names, kept as aliases until raft-ui 1.0. Keys are the CSS custom property names.",
|
|
2765
|
+
"fill-pressed": {
|
|
2766
|
+
"$value": "{fill.medium}",
|
|
2767
|
+
"$deprecated": "Use {fill.medium}."
|
|
2768
|
+
},
|
|
2769
|
+
"fill-frame-pressed": {
|
|
2770
|
+
"$value": "{fill.frame-medium}",
|
|
2771
|
+
"$deprecated": "Use {fill.frame-medium}."
|
|
2772
|
+
},
|
|
2773
|
+
"fill-row-hover": {
|
|
2774
|
+
"$value": "{fill.subtle}",
|
|
2775
|
+
"$deprecated": "Use {fill.subtle}."
|
|
2776
|
+
},
|
|
2777
|
+
"fill-row-open": {
|
|
2778
|
+
"$value": "{fill.subtle}",
|
|
2779
|
+
"$deprecated": "Use {fill.subtle}."
|
|
2780
|
+
},
|
|
2781
|
+
"fill-message-hover": {
|
|
2782
|
+
"$value": "{fill.subtle}",
|
|
2783
|
+
"$deprecated": "Use {fill.subtle}."
|
|
2784
|
+
},
|
|
2785
|
+
"sticker-pressed": {
|
|
2786
|
+
"$value": "{sticker.medium}",
|
|
2787
|
+
"$deprecated": "Use {sticker.medium}."
|
|
2788
|
+
},
|
|
2778
2789
|
"layer-panel": {
|
|
2779
2790
|
"$value": "{layer.canvas}",
|
|
2780
2791
|
"$deprecated": "Use {layer.canvas}."
|