@bpmn-io/form-js-carbon-styles 1.5.0-alpha.0 → 1.6.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/package.json +5 -6
- package/src/carbon-styles.js +1 -1
- package/src/carbon-styles.scss +171 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-carbon-styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Custom carbon styles for form-js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"all": "run-s test",
|
|
@@ -18,13 +18,12 @@
|
|
|
18
18
|
"url": "https://github.com/bpmn-io"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@bpmn-io/form-js-viewer": "^1.
|
|
22
|
-
"@carbon/elements": "^11.
|
|
23
|
-
"
|
|
24
|
-
"styled-components": "^6.0.0"
|
|
21
|
+
"@bpmn-io/form-js-viewer": "^1.6.0",
|
|
22
|
+
"@carbon/elements": "^11.33.1",
|
|
23
|
+
"styled-components": "^6.1.1"
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
27
26
|
"src"
|
|
28
27
|
],
|
|
29
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "0f868b4c5679af5366998253e7a602f1375754a7"
|
|
30
29
|
}
|
package/src/carbon-styles.js
CHANGED
|
@@ -390,7 +390,7 @@ const LABEL_DESCRIPTION_ERROR_STYLES = css`
|
|
|
390
390
|
letter-spacing: var(--cds-label-01-letter-spacing);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
.fjs-form-field:not(.fjs-form-field-checkbox, .fjs-form-field-
|
|
393
|
+
.fjs-form-field:not(.fjs-form-field-checkbox, .fjs-form-field-grouplike)
|
|
394
394
|
.fjs-form-field-label:first-child {
|
|
395
395
|
margin: 0;
|
|
396
396
|
margin-bottom: var(--cds-spacing-03);
|
package/src/carbon-styles.scss
CHANGED
|
@@ -401,6 +401,17 @@
|
|
|
401
401
|
padding: 2px 0px;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
+
|
|
405
|
+
&.fjs-form-field-dynamiclist button.fjs-repeat-render-add,
|
|
406
|
+
&.fjs-form-field-dynamiclist button .fjs-repeat-row-remove-icon-container {
|
|
407
|
+
color: var(--cds-text-on-color-disabled);
|
|
408
|
+
|
|
409
|
+
&:hover {
|
|
410
|
+
color: var(--cds-text-on-color-disabled);
|
|
411
|
+
background-color: transparent;
|
|
412
|
+
cursor: not-allowed;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
404
415
|
}
|
|
405
416
|
}
|
|
406
417
|
|
|
@@ -492,8 +503,7 @@
|
|
|
492
503
|
letter-spacing: var(--cds-label-01-letter-spacing);
|
|
493
504
|
}
|
|
494
505
|
|
|
495
|
-
.fjs-form-field:not(.fjs-form-field-checkbox, .fjs-form-field-
|
|
496
|
-
.fjs-form-field-label:first-child {
|
|
506
|
+
.fjs-form-field:not(.fjs-form-field-checkbox, .fjs-form-field-grouplike, .fjs-form-field-table) .fjs-form-field-label:first-child {
|
|
497
507
|
margin: 0;
|
|
498
508
|
margin-bottom: var(--cds-spacing-03);
|
|
499
509
|
}
|
|
@@ -1202,3 +1212,162 @@
|
|
|
1202
1212
|
color: var(--cds-text-disabled);
|
|
1203
1213
|
}
|
|
1204
1214
|
}
|
|
1215
|
+
|
|
1216
|
+
// iFrame styles ////////////
|
|
1217
|
+
|
|
1218
|
+
.fjs-container {
|
|
1219
|
+
.fjs-iframe-placeholder {
|
|
1220
|
+
background-color: var(--cds-layer);
|
|
1221
|
+
border-color: var(--cds-border-subtle);
|
|
1222
|
+
color: var(--cds-text-helper);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.fjs-iframe {
|
|
1226
|
+
border-color: var(--cds-border-subtle);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
// Table styles ////////////
|
|
1231
|
+
|
|
1232
|
+
.fjs-container {
|
|
1233
|
+
.fjs-form-field-table {
|
|
1234
|
+
row-gap: var(--cds-spacing-04);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.fjs-form-field.fjs-form-field-table .fjs-form-field-label {
|
|
1238
|
+
color: var(--cds-text-secondary);
|
|
1239
|
+
font-size: var(--cds-label-02-font-size);
|
|
1240
|
+
font-weight: var(--cds-label-02-font-weight);
|
|
1241
|
+
line-height: var(--cds-label-02-line-height);
|
|
1242
|
+
letter-spacing: var(--cds-label-02-letter-spacing);
|
|
1243
|
+
margin-bottom: 0;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.fjs-table-th {
|
|
1247
|
+
color: var(--cds-color-primary);
|
|
1248
|
+
font-size: var(--cds-heading-compact-01-font-size);
|
|
1249
|
+
font-weight: var(--cds-heading-compact-01-font-weight);
|
|
1250
|
+
line-height: var(--cds-heading-compact-01-line-height);
|
|
1251
|
+
letter-spacing: var(--cds-heading-compact-01-letter-spacing);
|
|
1252
|
+
|
|
1253
|
+
&:focus {
|
|
1254
|
+
outline: 2px solid var(--cds-focus);
|
|
1255
|
+
outline-offset: -2px;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
.fjs-table-tr,
|
|
1260
|
+
.fjs-table-nav {
|
|
1261
|
+
block-size: rem(24px);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.fjs-table-td,
|
|
1265
|
+
.fjs-table-th {
|
|
1266
|
+
vertical-align: middle;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.fjs-table-middle-container.fjs-table-empty {
|
|
1270
|
+
background-color: transparent;
|
|
1271
|
+
color: var(--cds-text-secondary);
|
|
1272
|
+
padding-left: var(--cds-spacing-05);
|
|
1273
|
+
font-size: var(--cds-heading-compact-01-font-size);
|
|
1274
|
+
font-weight: var(--cds-heading-compact-01-font-weight);
|
|
1275
|
+
line-height: var(--cds-heading-compact-01-line-height);
|
|
1276
|
+
letter-spacing: var(--cds-heading-compact-01-letter-spacing);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.fjs-table-middle-container {
|
|
1280
|
+
border-radius: 0;
|
|
1281
|
+
background-color: var(--cds-layer);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.fjs-table-body .fjs-table-tr:hover {
|
|
1285
|
+
background-color: var(--cds-layer-hover);
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
.fjs-table-nav {
|
|
1289
|
+
color: var(--cds-text-primary);
|
|
1290
|
+
font-size: var(--cds-label-01-font-size);
|
|
1291
|
+
font-weight: var(--cds-label-01-font-weight);
|
|
1292
|
+
line-height: var(--cds-label-01-line-height);
|
|
1293
|
+
letter-spacing: var(--cds-label-01-letter-spacing);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
.fjs-table-nav-button {
|
|
1297
|
+
color: var(--cds-text-primary);
|
|
1298
|
+
|
|
1299
|
+
&:disabled {
|
|
1300
|
+
color: var(--cds-text-disabled);
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
&:focus {
|
|
1304
|
+
outline: 2px solid var(--cds-focus);
|
|
1305
|
+
outline-offset: -2px;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
// To be removed when this issue is fixed upstream: https://github.com/carbon-design-system/carbon/issues/14597
|
|
1310
|
+
|
|
1311
|
+
.fjs-table-body .fjs-table-tr:not(:last-child) {
|
|
1312
|
+
border-bottom: 1px solid var(--cds-border-subtle-02);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.fjs-table-middle-container {
|
|
1316
|
+
border: 1px solid var(--cds-border-subtle-02);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.fjs-table-nav {
|
|
1320
|
+
border-top: 1px solid var(--cds-border-subtle-02);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.fjs-table-nav-button {
|
|
1324
|
+
border-left: 1px solid var(--cds-border-subtle-02);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
// Dynamic lists ////////////
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
.fjs-container .fjs-form-field-dynamiclist {
|
|
1332
|
+
.fjs-repeat-row-container .fjs-repeat-row-remove-icon-container {
|
|
1333
|
+
border-radius: 0;
|
|
1334
|
+
color: var(--cds-button-danger-secondary);
|
|
1335
|
+
min-width: rem(40);
|
|
1336
|
+
min-height: rem(40);
|
|
1337
|
+
|
|
1338
|
+
&:hover {
|
|
1339
|
+
color: var(--cds-text-on-color);
|
|
1340
|
+
background-color: var(--cds-button-danger-hover);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.fjs-repeat-row-container .fjs-repeat-row-remove:focus-visible .fjs-repeat-row-remove-icon-container {
|
|
1345
|
+
outline: 2px solid var(--cds-focus);
|
|
1346
|
+
outline-offset: 1px;
|
|
1347
|
+
border-radius: 0;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.fjs-repeat-render-footer {
|
|
1351
|
+
padding-left: 8px;
|
|
1352
|
+
padding-right: 8px;
|
|
1353
|
+
margin-right: 0;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.fjs-repeat-render-add,
|
|
1357
|
+
.fjs-repeat-render-collapse {
|
|
1358
|
+
min-height: rem(40);
|
|
1359
|
+
padding-inline-end: rem(15);
|
|
1360
|
+
|
|
1361
|
+
&:focus {
|
|
1362
|
+
outline: 2px solid var(--cds-focus);
|
|
1363
|
+
outline-offset: 1px;
|
|
1364
|
+
border: none;
|
|
1365
|
+
border-radius: 0;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
&:hover {
|
|
1369
|
+
color: var(--cds-link-primary-hover);
|
|
1370
|
+
background-color: var(--cds-background-hover);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|