@deque/cauldron-styles 6.21.0 → 6.22.0-canary.0869b40a
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/dist/index.css +135 -45
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1209,6 +1209,11 @@ textarea.Field--has-error:focus:hover,
|
|
|
1209
1209
|
|
|
1210
1210
|
--button-background-color-badge-active: var(--gray-20);
|
|
1211
1211
|
|
|
1212
|
+
--button-background-color-danger: var(--error);
|
|
1213
|
+
--button-background-color-danger-disabled: #db6379;
|
|
1214
|
+
--button-background-color-danger-active: var(--accent-error-active);
|
|
1215
|
+
--button-outline-color-danger: var(--error);
|
|
1216
|
+
|
|
1212
1217
|
--button-background-color-error: var(--error);
|
|
1213
1218
|
--button-background-color-error-disabled: #db6379;
|
|
1214
1219
|
--button-background-color-error-active: var(--accent-error-active);
|
|
@@ -1229,7 +1234,9 @@ textarea.Field--has-error:focus:hover,
|
|
|
1229
1234
|
.Button--secondary,
|
|
1230
1235
|
.Button--tertiary,
|
|
1231
1236
|
.Button--clear,
|
|
1232
|
-
.Button--error
|
|
1237
|
+
.Button--error,
|
|
1238
|
+
.Button--danger,
|
|
1239
|
+
.Button--danger-secondary {
|
|
1233
1240
|
border-radius: 3px;
|
|
1234
1241
|
border: 1px solid transparent;
|
|
1235
1242
|
font-size: var(--button-text-size);
|
|
@@ -1276,21 +1283,27 @@ button.Link {
|
|
|
1276
1283
|
font-weight: var(--font-weight-normal);
|
|
1277
1284
|
}
|
|
1278
1285
|
|
|
1279
|
-
|
|
1280
|
-
.Button--
|
|
1281
|
-
.Button--
|
|
1282
|
-
.Button--
|
|
1283
|
-
.Button--error
|
|
1286
|
+
:is(
|
|
1287
|
+
.Button--primary,
|
|
1288
|
+
.Button--secondary,
|
|
1289
|
+
.Button--tertiary,
|
|
1290
|
+
.Button--error,
|
|
1291
|
+
.Button--danger,
|
|
1292
|
+
.Button--danger-secondary
|
|
1293
|
+
):focus {
|
|
1284
1294
|
outline: none;
|
|
1285
1295
|
}
|
|
1286
1296
|
|
|
1287
|
-
|
|
1288
|
-
.Button--
|
|
1289
|
-
.Button--
|
|
1290
|
-
.Button--
|
|
1291
|
-
.Button--error
|
|
1292
|
-
.Button--
|
|
1293
|
-
.Button--
|
|
1297
|
+
:is(
|
|
1298
|
+
.Button--primary,
|
|
1299
|
+
.Button--secondary,
|
|
1300
|
+
.Button--tertiary,
|
|
1301
|
+
.Button--error,
|
|
1302
|
+
.Button--danger,
|
|
1303
|
+
.Button--danger-secondary,
|
|
1304
|
+
.Button--tag,
|
|
1305
|
+
.Button--badge
|
|
1306
|
+
):before {
|
|
1294
1307
|
content: '';
|
|
1295
1308
|
position: absolute;
|
|
1296
1309
|
top: -2px;
|
|
@@ -1301,8 +1314,7 @@ button.Link {
|
|
|
1301
1314
|
pointer-events: none;
|
|
1302
1315
|
}
|
|
1303
1316
|
|
|
1304
|
-
.Button--tag:before
|
|
1305
|
-
.Button--badge:before {
|
|
1317
|
+
:is(.Button--tag, .Button--badge):before {
|
|
1306
1318
|
border-radius: var(--button-height);
|
|
1307
1319
|
}
|
|
1308
1320
|
|
|
@@ -1310,24 +1322,32 @@ button.Link {
|
|
|
1310
1322
|
box-shadow: 0 0 0 1px var(--button-outline-color-primary);
|
|
1311
1323
|
}
|
|
1312
1324
|
|
|
1313
|
-
.Button--secondary:not([disabled]):not(
|
|
1314
|
-
|
|
1325
|
+
:is(.Button--secondary, .Button--tertiary):not([disabled]):not(
|
|
1326
|
+
[aria-disabled='true']
|
|
1327
|
+
):hover:before {
|
|
1315
1328
|
box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
|
|
1316
1329
|
}
|
|
1317
1330
|
|
|
1318
|
-
.Button--error
|
|
1331
|
+
:is(.Button--error, .Button--danger, .Button--danger-secondary):not(
|
|
1332
|
+
[disabled]
|
|
1333
|
+
):not([aria-disabled='true']):hover:before {
|
|
1319
1334
|
box-shadow: 0 0 0 1px var(--button-outline-color-error);
|
|
1320
1335
|
}
|
|
1321
1336
|
|
|
1322
|
-
.Button--tag:not([disabled]):not(
|
|
1323
|
-
|
|
1337
|
+
:is(.Button--tag, .Button--badge):not([disabled]):not(
|
|
1338
|
+
[aria-disabled='true']
|
|
1339
|
+
):hover:before {
|
|
1324
1340
|
box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
|
|
1325
1341
|
}
|
|
1326
1342
|
|
|
1327
|
-
|
|
1328
|
-
.Button--
|
|
1329
|
-
.Button--
|
|
1330
|
-
.Button--
|
|
1343
|
+
:is(
|
|
1344
|
+
.Button--primary,
|
|
1345
|
+
.Button--secondary,
|
|
1346
|
+
.Button--tertiary,
|
|
1347
|
+
.Button--error,
|
|
1348
|
+
.Button--danger,
|
|
1349
|
+
.Button--danger-secondary
|
|
1350
|
+
):focus:before {
|
|
1331
1351
|
box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
|
|
1332
1352
|
}
|
|
1333
1353
|
|
|
@@ -1366,16 +1386,27 @@ button.Link {
|
|
|
1366
1386
|
color: var(--button-text-color-disabled);
|
|
1367
1387
|
}
|
|
1368
1388
|
|
|
1369
|
-
.Button--secondary
|
|
1370
|
-
|
|
1389
|
+
:is(.Button--secondary, .Button--tertiary):not(
|
|
1390
|
+
[disabled],
|
|
1391
|
+
[aria-disabled='true']
|
|
1392
|
+
):active {
|
|
1371
1393
|
background-color: var(--button-background-color-secondary-active);
|
|
1372
1394
|
}
|
|
1373
1395
|
|
|
1374
|
-
.Button--error
|
|
1375
|
-
|
|
1396
|
+
.Button--error,
|
|
1397
|
+
.Button--danger,
|
|
1398
|
+
.Button--danger-secondary:active {
|
|
1399
|
+
background-color: var(--button-background-color-danger);
|
|
1376
1400
|
box-shadow: none;
|
|
1377
1401
|
color: var(--button-text-color-light);
|
|
1378
|
-
--button-hover-outline-color: var(--error);
|
|
1402
|
+
--button-hover-outline-color: var(--button-outline-color-error);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.Button--danger-secondary {
|
|
1406
|
+
background-color: transparent;
|
|
1407
|
+
color: var(--button-background-color-danger);
|
|
1408
|
+
border: 1px solid var(--button-background-color-danger);
|
|
1409
|
+
--button-hover-outline-color: var(--button-outline-color-error);
|
|
1379
1410
|
}
|
|
1380
1411
|
|
|
1381
1412
|
.Button--error[aria-disabled='true'],
|
|
@@ -1393,11 +1424,15 @@ button.Link {
|
|
|
1393
1424
|
color: var(--disabled);
|
|
1394
1425
|
}
|
|
1395
1426
|
|
|
1396
|
-
|
|
1397
|
-
.Button--
|
|
1398
|
-
.Button--
|
|
1399
|
-
.Button--
|
|
1400
|
-
.Button--error
|
|
1427
|
+
:is(
|
|
1428
|
+
.Button--primary,
|
|
1429
|
+
.Button--secondary,
|
|
1430
|
+
.Button--tertiary,
|
|
1431
|
+
.Button--error,
|
|
1432
|
+
.Button--danger,
|
|
1433
|
+
.Button--danger-secondary
|
|
1434
|
+
)
|
|
1435
|
+
.Icon {
|
|
1401
1436
|
margin: 0 -4px;
|
|
1402
1437
|
}
|
|
1403
1438
|
|
|
@@ -1464,6 +1499,8 @@ button.Link {
|
|
|
1464
1499
|
--button-background-color-secondary-active: var(--accent-light);
|
|
1465
1500
|
--button-background-color-error-active: #fea7a6;
|
|
1466
1501
|
|
|
1502
|
+
--button-background-color-danger: var(--accent-danger);
|
|
1503
|
+
|
|
1467
1504
|
--button-background-color-badge-active: var(--badge-background-color);
|
|
1468
1505
|
|
|
1469
1506
|
--button-focus-ring-color: var(--focus-dark);
|
|
@@ -1485,6 +1522,22 @@ button.Link {
|
|
|
1485
1522
|
color: var(--accent-light);
|
|
1486
1523
|
}
|
|
1487
1524
|
|
|
1525
|
+
.cauldron--theme-dark .Button--danger {
|
|
1526
|
+
color: var(--button-background-color-secondary);
|
|
1527
|
+
--button-outline-color-secondary: var(--button-background-color-danger);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.cauldron--theme-dark .Button--danger-secondary {
|
|
1531
|
+
border-width: 2px;
|
|
1532
|
+
color: var(--accent-light);
|
|
1533
|
+
background-color: var(--button-background-color-secondary);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.cauldron--theme-dark .Button--danger-secondary:active {
|
|
1537
|
+
color: var(--accent-light);
|
|
1538
|
+
background-color: var(--button-background-color-secondary);
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1488
1541
|
.cauldron--theme-dark .Button--tertiary:is(:hover, :active, :focus) {
|
|
1489
1542
|
border: 2px solid var(--accent-light);
|
|
1490
1543
|
}
|
|
@@ -1499,11 +1552,16 @@ button.Link {
|
|
|
1499
1552
|
border: 2px solid var(--accent-danger);
|
|
1500
1553
|
}
|
|
1501
1554
|
|
|
1502
|
-
.cauldron--theme-dark
|
|
1503
|
-
|
|
1504
|
-
.
|
|
1505
|
-
.
|
|
1506
|
-
.
|
|
1555
|
+
.cauldron--theme-dark
|
|
1556
|
+
:is(
|
|
1557
|
+
.Button--primary,
|
|
1558
|
+
.Button--secondary,
|
|
1559
|
+
.Button--error,
|
|
1560
|
+
.Button--danger,
|
|
1561
|
+
.Button--danger-secondary,
|
|
1562
|
+
.Button--tag,
|
|
1563
|
+
.Button--badge
|
|
1564
|
+
):is([disabled], [aria-disabled='true']) {
|
|
1507
1565
|
color: var(--dark-workspace-color);
|
|
1508
1566
|
}
|
|
1509
1567
|
|
|
@@ -1517,7 +1575,9 @@ button.Link {
|
|
|
1517
1575
|
}
|
|
1518
1576
|
|
|
1519
1577
|
.cauldron--theme-dark
|
|
1520
|
-
.Button--error
|
|
1578
|
+
:is(.Button--error, .Button--danger, .Button--danger-secondary):not(
|
|
1579
|
+
[disabled]
|
|
1580
|
+
):not([aria-disabled='true']):active {
|
|
1521
1581
|
background-color: #fea7a6;
|
|
1522
1582
|
color: var(--accent-medium);
|
|
1523
1583
|
}
|
|
@@ -1532,7 +1592,8 @@ button.Link {
|
|
|
1532
1592
|
|
|
1533
1593
|
.cauldron--theme-dark
|
|
1534
1594
|
.Button--primary:not([disabled]):not([aria-disabled='true']):hover:before {
|
|
1535
|
-
box-shadow:
|
|
1595
|
+
box-shadow:
|
|
1596
|
+
0 0 0 1px var(--dark-workspace-color),
|
|
1536
1597
|
0 0 0 2px var(--accent-info);
|
|
1537
1598
|
}
|
|
1538
1599
|
|
|
@@ -1540,13 +1601,24 @@ button.Link {
|
|
|
1540
1601
|
.Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
|
|
1541
1602
|
.cauldron--theme-dark
|
|
1542
1603
|
.Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
|
|
1543
|
-
box-shadow:
|
|
1604
|
+
box-shadow:
|
|
1605
|
+
0 0 0 1px var(--dark-workspace-color),
|
|
1544
1606
|
0 0 0 2px var(--accent-light);
|
|
1545
1607
|
}
|
|
1546
1608
|
|
|
1547
1609
|
.cauldron--theme-dark
|
|
1548
1610
|
.Button--error:not([disabled]):not([aria-disabled='true']):hover:before {
|
|
1549
|
-
box-shadow:
|
|
1611
|
+
box-shadow:
|
|
1612
|
+
0 0 0 1px var(--dark-workspace-color),
|
|
1613
|
+
0 0 0 2px var(--accent-danger);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.cauldron--theme-dark
|
|
1617
|
+
.Button--danger-secondary:not([disabled]):not(
|
|
1618
|
+
[aria-disabled='true']
|
|
1619
|
+
):hover:before {
|
|
1620
|
+
box-shadow:
|
|
1621
|
+
0 0 0 1px var(--dark-workspace-color),
|
|
1550
1622
|
0 0 0 2px var(--accent-danger);
|
|
1551
1623
|
}
|
|
1552
1624
|
|
|
@@ -1554,7 +1626,8 @@ button.Link {
|
|
|
1554
1626
|
.Button--tag:not([disabled]):not([aria-disabled='true']):hover:before,
|
|
1555
1627
|
.cauldron--theme-dark
|
|
1556
1628
|
.Button--badge:not([disabled]):not([aria-disabled='true']):hover:before {
|
|
1557
|
-
box-shadow:
|
|
1629
|
+
box-shadow:
|
|
1630
|
+
0 0 0 1px var(--dark-workspace-color),
|
|
1558
1631
|
0 0 0 2px var(--accent-info);
|
|
1559
1632
|
}
|
|
1560
1633
|
|
|
@@ -5972,11 +6045,16 @@ button.Accordion__trigger {
|
|
|
5972
6045
|
border-radius: 8px;
|
|
5973
6046
|
width: var(--action-menu-width);
|
|
5974
6047
|
min-width: var(--action-menu-min-width, 10rem);
|
|
5975
|
-
max-height: var(--action-menu-height);
|
|
6048
|
+
max-height: var(--action-menu-max-height, 80vh);
|
|
5976
6049
|
box-shadow: var(--drop-shadow-overlay);
|
|
5977
6050
|
overflow-y: auto;
|
|
5978
6051
|
}
|
|
5979
6052
|
|
|
6053
|
+
:where(.cauldron--theme-dark) .ActionMenu .ActionListItem--danger {
|
|
6054
|
+
--action-list-text-color: var(--accent-warning-light);
|
|
6055
|
+
--action-list-item-icon-color: var(--accent-warning-light);
|
|
6056
|
+
}
|
|
6057
|
+
|
|
5980
6058
|
:root {
|
|
5981
6059
|
--action-list-background-color: #fff;
|
|
5982
6060
|
--action-list-text-color: var(--gray-90);
|
|
@@ -6048,12 +6126,24 @@ button.Accordion__trigger {
|
|
|
6048
6126
|
padding: var(--space-smallest);
|
|
6049
6127
|
}
|
|
6050
6128
|
|
|
6129
|
+
.ActionListItem--danger {
|
|
6130
|
+
--action-list-text-color: var(--accent-error);
|
|
6131
|
+
--action-list-item-icon-color: var(--accent-error);
|
|
6132
|
+
--action-list-item-description-color: var(--action-list-text-color);
|
|
6133
|
+
}
|
|
6134
|
+
|
|
6135
|
+
:where(.cauldron--theme-dark) .ActionListItem--danger {
|
|
6136
|
+
--action-list-text-color: #fff;
|
|
6137
|
+
--action-list-item-icon-color: #fff;
|
|
6138
|
+
}
|
|
6139
|
+
|
|
6051
6140
|
.ActionListItem {
|
|
6052
6141
|
--icon-size: 1rem;
|
|
6053
6142
|
--icon-spacing: 1.2rem;
|
|
6054
6143
|
display: grid;
|
|
6055
6144
|
align-items: center;
|
|
6056
6145
|
gap: var(--space-half);
|
|
6146
|
+
color: var(--action-list-text-color);
|
|
6057
6147
|
margin: 0 var(--space-smallest);
|
|
6058
6148
|
border-radius: 4px;
|
|
6059
6149
|
cursor: pointer;
|