@factorialco/rjsf-f0 3.2.1 → 3.3.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/README.md +4 -4
- package/dist/rjsf-f0.cjs.js +17 -17
- package/dist/rjsf-f0.cjs.js.map +1 -1
- package/dist/rjsf-f0.es.js +1483 -1442
- package/dist/rjsf-f0.es.js.map +1 -1
- package/dist/src/pairing/pairing-table.d.ts +3 -5
- package/dist/styles.css +87 -0
- package/package.json +1 -1
|
@@ -4,11 +4,9 @@ import { PairingTableProps } from './types';
|
|
|
4
4
|
* The f0 drawing of a `ui:field: "pairing"` object. The SDK owns the rows,
|
|
5
5
|
* the filter and the submitted values; this only lays them out: a header with
|
|
6
6
|
* the counts, the "Needs a choice" filter (filled while on) and "Accept N
|
|
7
|
-
* suggestions" (while any is pending),
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* "Accept" action on rows showing a suggestion), and a footer with the select to add rows
|
|
11
|
-
* not listed beside the note explaining which rows are.
|
|
7
|
+
* suggestions" (while any is pending), a table that takes the width it is
|
|
8
|
+
* given (the record's name wraps rather than being cut), and a footer with the
|
|
9
|
+
* select to add rows not listed beside the note explaining which rows are.
|
|
12
10
|
* F0Button renders a `<button>` with no `type`, so its clicks must prevent the
|
|
13
11
|
* default or they would submit the form.
|
|
14
12
|
*/
|
package/dist/styles.css
CHANGED
|
@@ -1117,6 +1117,93 @@
|
|
|
1117
1117
|
flex: 1 1 16rem;
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
+
/*
|
|
1121
|
+
* The table takes the width it is given: the record's name wraps instead of
|
|
1122
|
+
* being cut, the other system's select gets the most room, and the status
|
|
1123
|
+
* column holds the tag with its "Accept" beside it. Below ~40rem it scrolls
|
|
1124
|
+
* sideways rather than squeezing the controls.
|
|
1125
|
+
*/
|
|
1126
|
+
.rjsf-f0-pairing-table-wrap {
|
|
1127
|
+
overflow-x: auto;
|
|
1128
|
+
border: 1px solid hsl(var(--neutral-10, 217 96% 11% / 0.1));
|
|
1129
|
+
border-radius: 0.75rem;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.rjsf-f0-pairing-table {
|
|
1133
|
+
width: 100%;
|
|
1134
|
+
min-width: 40rem;
|
|
1135
|
+
border-collapse: collapse;
|
|
1136
|
+
table-layout: auto;
|
|
1137
|
+
font-size: 0.875rem;
|
|
1138
|
+
line-height: 1.25rem;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.rjsf-f0-pairing-table th,
|
|
1142
|
+
.rjsf-f0-pairing-table td {
|
|
1143
|
+
padding: 0.5rem 1rem;
|
|
1144
|
+
text-align: left;
|
|
1145
|
+
vertical-align: middle;
|
|
1146
|
+
border-bottom: 1px solid hsl(var(--neutral-10, 217 96% 11% / 0.1));
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
.rjsf-f0-pairing-table tbody tr:last-child th,
|
|
1150
|
+
.rjsf-f0-pairing-table tbody tr:last-child td {
|
|
1151
|
+
border-bottom: none;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.rjsf-f0-pairing-table thead th {
|
|
1155
|
+
padding-block: 0.625rem;
|
|
1156
|
+
font-weight: 500;
|
|
1157
|
+
color: hsl(var(--neutral-50, 217 96% 11% / 0.61));
|
|
1158
|
+
white-space: nowrap;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/* The record: f0's body text, wrapping on long names. */
|
|
1162
|
+
.rjsf-f0-pairing-table .rjsf-f0-pairing-record {
|
|
1163
|
+
width: 34%;
|
|
1164
|
+
font-weight: 500;
|
|
1165
|
+
overflow-wrap: anywhere;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.rjsf-f0-pairing-value {
|
|
1169
|
+
width: 42%;
|
|
1170
|
+
min-width: 14rem;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.rjsf-f0-pairing-control {
|
|
1174
|
+
display: flex;
|
|
1175
|
+
align-items: center;
|
|
1176
|
+
gap: 0.5rem;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.rjsf-f0-pairing-hint {
|
|
1180
|
+
display: inline-flex;
|
|
1181
|
+
flex: none;
|
|
1182
|
+
width: 1.25rem;
|
|
1183
|
+
cursor: help;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.rjsf-f0-pairing-input {
|
|
1187
|
+
flex: 1 1 auto;
|
|
1188
|
+
min-width: 0;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/* The status and, on a suggested row, its "Accept" right beside it. */
|
|
1192
|
+
.rjsf-f0-pairing-state {
|
|
1193
|
+
white-space: nowrap;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.rjsf-f0-pairing-state-inner {
|
|
1197
|
+
display: flex;
|
|
1198
|
+
align-items: center;
|
|
1199
|
+
gap: 0.5rem;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
.rjsf-f0-pairing-tag {
|
|
1203
|
+
display: inline-flex;
|
|
1204
|
+
cursor: help;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1120
1207
|
/* The launch-one button, with its collapse toggle, a link, beside it. */
|
|
1121
1208
|
.rjsf-f0-launch-assistant {
|
|
1122
1209
|
display: flex;
|
package/package.json
CHANGED