@deque/cauldron-styles 6.4.2-canary.41dad212 → 6.4.2-canary.49a2ec0b

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.
Files changed (2) hide show
  1. package/dist/index.css +186 -47
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -166,7 +166,6 @@
166
166
  --font-weight-light: 300;
167
167
  --font-weight-normal: 400;
168
168
  --font-weight-medium: 500;
169
- --font-weight-semi-bold: 600;
170
169
  --font-weight-bold: 700;
171
170
  --font-weight-ultra-bold: 900;
172
171
 
@@ -1165,32 +1164,36 @@ textarea.Field--has-error:focus:hover,
1165
1164
  --button-background-color-error-active: var(--accent-error-active);
1166
1165
  --button-outline-color-error: var(--error);
1167
1166
 
1167
+ --button-text-size: var(--text-size-body);
1168
+ --button-thin-text-size: var(--text-size-body-small);
1168
1169
  --button-text-color-dark: var(--gray-90);
1169
- --button-text-color-light: var(--white);
1170
+ --button-text-color-light: #fff;
1171
+ --button-text-color-disabled: var(--disabled);
1170
1172
  --button-focus-ring-color: var(--focus-light);
1171
1173
  --button-thin-height: var(--target-size-minimum);
1172
1174
 
1173
- --button-height: 36px;
1175
+ --button-height: 2.25rem;
1174
1176
  }
1175
1177
 
1176
1178
  .Button--primary,
1177
1179
  .Button--secondary,
1180
+ .Button--tertiary,
1178
1181
  .Button--clear,
1179
1182
  .Button--error {
1180
1183
  border-radius: 3px;
1181
1184
  border: 1px solid transparent;
1182
- font-size: var(--text-size-small);
1185
+ font-size: var(--button-text-size);
1183
1186
  box-sizing: border-box;
1184
- padding: 0 16px;
1187
+ padding: 0 var(--space-small);
1185
1188
  position: relative;
1186
1189
  text-align: center;
1187
1190
  min-height: var(--button-height);
1188
- min-width: 100px;
1191
+ min-width: 6.25rem;
1189
1192
  display: inline-grid;
1190
1193
  grid-auto-flow: column;
1191
1194
  align-items: center;
1192
1195
  justify-items: center;
1193
- gap: 8px;
1196
+ gap: var(--space-smallest);
1194
1197
  }
1195
1198
 
1196
1199
  .Button--tag {
@@ -1204,6 +1207,7 @@ button.Link {
1204
1207
 
1205
1208
  .Button--primary:focus,
1206
1209
  .Button--secondary:focus,
1210
+ .Button--tertiary:focus,
1207
1211
  .Button--clear:focus,
1208
1212
  .Button--error:focus {
1209
1213
  outline: none;
@@ -1211,6 +1215,7 @@ button.Link {
1211
1215
 
1212
1216
  .Button--primary:before,
1213
1217
  .Button--secondary:before,
1218
+ .Button--tertiary:before,
1214
1219
  .Button--clear:before,
1215
1220
  .Button--error:before,
1216
1221
  .Button--tag:before {
@@ -1232,7 +1237,8 @@ button.Link {
1232
1237
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
1233
1238
  }
1234
1239
 
1235
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1240
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1241
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1236
1242
  box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
1237
1243
  }
1238
1244
 
@@ -1246,6 +1252,7 @@ button.Link {
1246
1252
 
1247
1253
  .Button--primary:focus:before,
1248
1254
  .Button--secondary:focus:before,
1255
+ .Button--tertiary:focus:before,
1249
1256
  .Button--error:focus:before {
1250
1257
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
1251
1258
  }
@@ -1264,19 +1271,29 @@ button.Link {
1264
1271
  background: var(--button-background-color-primary-active);
1265
1272
  }
1266
1273
 
1267
- .Button--secondary {
1274
+ .Button--secondary,
1275
+ .Button--tertiary {
1268
1276
  background-color: var(--button-background-color-secondary);
1269
1277
  color: var(--button-text-color-dark);
1270
1278
  border: 1px solid var(--field-border-color);
1271
1279
  }
1272
1280
 
1273
- .Button--secondary[aria-disabled='true'],
1274
- .Button--secondary[disabled] {
1275
- color: var(--disabled);
1281
+ .Button--tertiary:is(:not(:hover, :focus), [disabled], [aria-disabled='true']) {
1282
+ border-color: transparent;
1283
+ background-color: transparent;
1284
+ }
1285
+
1286
+ .Button--secondary:is([aria-disabled='true'], [disabled]) {
1287
+ color: var(--button-text-color-disabled);
1276
1288
  background-color: var(--button-background-color-secondary-disabled);
1277
1289
  }
1278
1290
 
1279
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1291
+ .Button--tertiary:is([aria-disabled='true'], [disabled]) {
1292
+ color: var(--button-text-color-disabled);
1293
+ }
1294
+
1295
+ .Button--secondary:not([disabled], [aria-disabled='true']):active,
1296
+ .Button--tertiary:not([disabled], [aria-disabled='true']):active {
1280
1297
  background-color: var(--button-background-color-secondary-active);
1281
1298
  }
1282
1299
 
@@ -1297,13 +1314,13 @@ button.Link {
1297
1314
  background-color: var(--button-background-color-error-active);
1298
1315
  }
1299
1316
 
1300
- .Button--tag[aria-disabled='true'],
1301
- .Button--tag[disabled] {
1317
+ .Button--tag:is([disabled], [aria-disabled='true']) {
1302
1318
  color: var(--disabled);
1303
1319
  }
1304
1320
 
1305
1321
  .Button--primary .Icon,
1306
1322
  .Button--secondary .Icon,
1323
+ .Button--tertiary .Icon,
1307
1324
  .Button--clear .Icon,
1308
1325
  .Button--error .Icon {
1309
1326
  margin: 0 -4px;
@@ -1314,16 +1331,20 @@ button.Link {
1314
1331
  height: calc(var(--button-thin-height) - 8px);
1315
1332
  }
1316
1333
 
1334
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1335
+
1317
1336
  .DefinitionButton {
1318
1337
  display: inline;
1319
1338
  vertical-align: baseline;
1320
1339
  position: relative;
1321
1340
  }
1322
1341
 
1342
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1343
+
1323
1344
  .DefinitionButton button {
1324
1345
  background-color: transparent;
1325
1346
  color: var(--text-color-base);
1326
- font-weight: var(--font-weight-normal);
1347
+ font-weight: var(--font-weight-medium);
1327
1348
  border-bottom: 1px dotted;
1328
1349
  display: inline-block;
1329
1350
  margin: 0 2px;
@@ -1337,9 +1358,9 @@ button.Link {
1337
1358
 
1338
1359
  .Button--thin {
1339
1360
  min-height: var(--button-thin-height);
1340
- min-width: 100px;
1341
- font-size: var(--text-size-smallest);
1342
- padding: 0 16px;
1361
+ min-width: 6.25rem;
1362
+ font-size: var(--button-thin-text-size);
1363
+ padding: 0 var(--space-small);
1343
1364
  }
1344
1365
 
1345
1366
  [class*='Button--'] + [class*='Button--'] {
@@ -1374,26 +1395,37 @@ button.Link {
1374
1395
  border: 2px solid var(--accent-light);
1375
1396
  }
1376
1397
 
1398
+ .cauldron--theme-dark .Button--tertiary {
1399
+ color: var(--accent-light);
1400
+ }
1401
+
1402
+ .cauldron--theme-dark .Button--tertiary:is(:hover, :active, :focus) {
1403
+ border: 2px solid var(--accent-light);
1404
+ }
1405
+
1406
+ .cauldron--theme-dark .Button--tertiary:not(:hover, :focus) {
1407
+ color: #fff;
1408
+ }
1409
+
1377
1410
  .cauldron--theme-dark .Button--error {
1378
1411
  background-color: var(--accent-medium);
1379
- color: var(--white);
1412
+ color: #fff;
1380
1413
  border: 2px solid var(--accent-danger);
1381
1414
  }
1382
1415
 
1383
- .cauldron--theme-dark .Button--primary[aria-disabled='true'],
1384
- .cauldron--theme-dark .Button--primary[disabled],
1385
- .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
1386
- .cauldron--theme-dark .Button--secondary[disabled],
1387
- .cauldron--theme-dark .Button--error[aria-disabled='true'],
1388
- .cauldron--theme-dark .Button--error[disabled],
1389
- .cauldron--theme-dark .Button--tag[disabled] {
1416
+ .cauldron--theme-dark .Button--primary:is([disabled], [aria-disabled='true']),
1417
+ .cauldron--theme-dark .Button--secondary:is([disabled], [aria-disabled='true']),
1418
+ .cauldron--theme-dark .Button--error:is([disabled], [aria-disabled='true']),
1419
+ .cauldron--theme-dark .Button--tag:is([disabled], [aria-disabled='true']) {
1390
1420
  color: var(--dark-workspace-color);
1391
1421
  }
1392
1422
 
1393
1423
  .cauldron--theme-dark
1394
1424
  .Button--primary:not([disabled]):not([aria-disabled='true']):active,
1395
1425
  .cauldron--theme-dark
1396
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1426
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active,
1427
+ .cauldron--theme-dark
1428
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):active {
1397
1429
  color: var(--accent-medium);
1398
1430
  }
1399
1431
 
@@ -1408,7 +1440,7 @@ button.Link {
1408
1440
  }
1409
1441
 
1410
1442
  .cauldron--theme-dark button.Link:hover {
1411
- color: var(--white);
1443
+ color: #fff;
1412
1444
  }
1413
1445
 
1414
1446
  .cauldron--theme-dark
@@ -1418,7 +1450,9 @@ button.Link {
1418
1450
  }
1419
1451
 
1420
1452
  .cauldron--theme-dark
1421
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1453
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1454
+ .cauldron--theme-dark
1455
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1422
1456
  box-shadow: 0 0 0 1px var(--dark-workspace-color),
1423
1457
  0 0 0 2px var(--accent-light);
1424
1458
  }
@@ -1435,6 +1469,10 @@ button.Link {
1435
1469
  0 0 0 2px var(--accent-info);
1436
1470
  }
1437
1471
 
1472
+ .cauldron--theme-dark .Button--tertiary:is([disabled], [aria-disabled='true']) {
1473
+ color: #74818b;
1474
+ }
1475
+
1438
1476
  :root {
1439
1477
  /* Primary */
1440
1478
  --icon-button-primary-color: var(--button-text-color-light);
@@ -1466,6 +1504,8 @@ button.Link {
1466
1504
  --button-background-color-error-active
1467
1505
  );
1468
1506
 
1507
+ --icon-button-text-color-disabled: var(--button-text-color-disabled);
1508
+
1469
1509
  /* Deprecated variables */
1470
1510
  --icon-button-content-color-light-disabled: #ccc;
1471
1511
  --icon-button-background-color-light: #dadada;
@@ -1541,11 +1581,16 @@ a.IconButton {
1541
1581
 
1542
1582
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1543
1583
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1544
- color: var(--disabled);
1584
+ color: var(--icon-button-text-color-disabled);
1545
1585
  background-color: var(--button-background-color-secondary-disabled);
1546
1586
  cursor: default;
1547
1587
  }
1548
1588
 
1589
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]),
1590
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]):active {
1591
+ color: var(--icon-button-text-color-disabled);
1592
+ }
1593
+
1549
1594
  .IconButton--primary:is([aria-disabled='true'], [disabled]),
1550
1595
  .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
1551
1596
  background-color: var(--button-background-color-primary-disabled);
@@ -1576,19 +1621,32 @@ a.IconButton {
1576
1621
  background-color: var(--icon-button-background-color-primary-active);
1577
1622
  }
1578
1623
 
1579
- .IconButton--secondary {
1624
+ .IconButton--secondary,
1625
+ .IconButton--tertiary,
1626
+ .IconButton--tertiary:is(:active) {
1580
1627
  border: 1px solid var(--icon-button-border-color-secondary);
1581
1628
  background-color: var(--icon-button-background-color-secondary);
1582
1629
  color: var(--icon-button-secondary-color);
1583
1630
  }
1584
1631
 
1585
- .IconButton--secondary:not([disabled]):not(
1586
- [aria-disabled='true']
1587
- ):hover:before {
1632
+ .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1633
+ .IconButton--tertiary:not([disabled]):not([aria-disabled='true']):is(
1634
+ :hover
1635
+ ):before {
1588
1636
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
1589
1637
  }
1590
1638
 
1591
- .IconButton--secondary:active {
1639
+ .IconButton--tertiary:is(
1640
+ :not(:hover, :focus, :active),
1641
+ [disabled],
1642
+ [aria-disabled='true']
1643
+ ) {
1644
+ border-color: transparent;
1645
+ background-color: transparent;
1646
+ }
1647
+
1648
+ .IconButton--secondary:active,
1649
+ .IconButton--tertiary:active {
1592
1650
  background-color: var(--icon-button-background-color-secondary-active);
1593
1651
  }
1594
1652
 
@@ -1640,7 +1698,8 @@ a.IconButton {
1640
1698
  border: 2px solid var(--icon-button-border-color-primary);
1641
1699
  }
1642
1700
 
1643
- .cauldron--theme-dark .IconButton--secondary {
1701
+ .cauldron--theme-dark .IconButton--secondary,
1702
+ .cauldron--theme-dark .IconButton--tertiary {
1644
1703
  border-width: 2px;
1645
1704
  }
1646
1705
 
@@ -1659,6 +1718,7 @@ a.IconButton {
1659
1718
 
1660
1719
  .cauldron--theme-dark .IconButton--primary:active,
1661
1720
  .cauldron--theme-dark .IconButton--secondary:active,
1721
+ .cauldron--theme-dark .IconButton--tertiary:active,
1662
1722
  .cauldron--theme-dark .IconButton--error:active {
1663
1723
  color: var(--icon-button-active-color);
1664
1724
  }
@@ -1679,6 +1739,10 @@ a.IconButton {
1679
1739
  .cauldron--theme-dark
1680
1740
  .IconButton--secondary:not([disabled]):not(
1681
1741
  [aria-disabled='true']
1742
+ ):hover:before,
1743
+ .cauldron--theme-dark
1744
+ .IconButton--tertiary:not([disabled]):not(
1745
+ [aria-disabled='true']
1682
1746
  ):hover:before {
1683
1747
  box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
1684
1748
  0 0 0 2px var(--icon-button-outline-color-secondary);
@@ -1695,6 +1759,11 @@ a.IconButton {
1695
1759
  0 0 0 4px var(--button-focus-ring-color, --focus);
1696
1760
  }
1697
1761
 
1762
+ .cauldron--theme-dark
1763
+ .IconButton--tertiary:is([disabled], [aria-disabled='true']) {
1764
+ color: #74818b;
1765
+ }
1766
+
1698
1767
  :root {
1699
1768
  --dialog-background-color: #fff;
1700
1769
  --dialog-border-color: var(--gray-40);
@@ -4470,17 +4539,20 @@ fieldset.Panel {
4470
4539
  }
4471
4540
 
4472
4541
  .Breadcrumb__Link {
4473
- font-weight: 400;
4474
4542
  padding: 0;
4475
4543
  display: inline;
4476
4544
  }
4477
4545
 
4478
4546
  .Breadcrumb__Item {
4479
- font-weight: 500;
4547
+ font-weight: var(--font-weight-medium);
4480
4548
  color: var(--link-text-color);
4481
4549
  display: inline;
4482
4550
  }
4483
4551
 
4552
+ .Breadcrumb__Item:last-child {
4553
+ font-weight: var(--font-weight-normal);
4554
+ }
4555
+
4484
4556
  :root {
4485
4557
  --two-column-panel-border-color: var(--gray-40);
4486
4558
  --two-column-panel-background-color: #fff;
@@ -4869,7 +4941,7 @@ button.Accordion__trigger {
4869
4941
  --notice-background-color: var(--notice-info-color);
4870
4942
  --notice-border-color: var(--accent-dark);
4871
4943
  --notice-link-hover-color: var(--accent-medium);
4872
- --notice-icon-size: 1.2em;
4944
+ --notice-icon-size: 1rem;
4873
4945
  }
4874
4946
 
4875
4947
  .Notice--info {
@@ -4885,20 +4957,35 @@ button.Accordion__trigger {
4885
4957
  }
4886
4958
 
4887
4959
  .Notice {
4888
- display: block;
4889
- padding: var(--space-smaller) var(--space-small);
4960
+ display: grid;
4961
+ grid-template-columns: auto 1fr;
4962
+ gap: var(--space-small);
4963
+ padding: var(--space-large);
4964
+ align-items: start;
4965
+ border-radius: 4px;
4890
4966
  border: 1px solid var(--notice-border-color);
4891
4967
  background-color: var(--notice-background-color);
4892
4968
  color: var(--notice-text-color);
4893
- width: 100%;
4894
- font-size: var(--text-size-smaller);
4969
+ }
4970
+
4971
+ .Notice--condensed {
4972
+ grid-template-columns: 1fr;
4973
+ padding: var(--space-small);
4974
+ gap: var(--space-smallest);
4975
+ }
4976
+
4977
+ .Notice__content {
4978
+ grid-column: 2;
4979
+ }
4980
+
4981
+ .Notice--condensed .Notice__content {
4982
+ grid-column: 1;
4895
4983
  }
4896
4984
 
4897
4985
  .Notice .Notice__title,
4898
4986
  .Notice .Notice__title > :is(h1, h2, h3, h4, h5, h6) {
4899
4987
  display: flex;
4900
4988
  align-items: flex-start;
4901
- font-size: var(--text-size-small);
4902
4989
  font-weight: var(--notice-title-font-weight);
4903
4990
  margin: 0;
4904
4991
  padding: 0;
@@ -4906,7 +4993,7 @@ button.Accordion__trigger {
4906
4993
  color: var(--notice-title-text-color);
4907
4994
  }
4908
4995
 
4909
- .Notice .Notice__title + .Notice__content {
4996
+ .Notice .Notice__content {
4910
4997
  margin-top: var(--space-smallest);
4911
4998
  }
4912
4999
 
@@ -4925,7 +5012,6 @@ button.Accordion__trigger {
4925
5012
  .Notice button.Link,
4926
5013
  .Notice a.Link {
4927
5014
  color: var(--accent-dark);
4928
- font-size: var(--text-size-small);
4929
5015
  font-weight: var(--font-weight-light);
4930
5016
  text-decoration: underline;
4931
5017
  }
@@ -4946,6 +5032,15 @@ button.Accordion__trigger {
4946
5032
  margin-bottom: var(--space-smallest);
4947
5033
  }
4948
5034
 
5035
+ .Notice ul {
5036
+ margin: var(--space-smallest) 0;
5037
+ padding-left: var(--space-small);
5038
+ }
5039
+
5040
+ .Notice li {
5041
+ margin-bottom: var(--space-smallest);
5042
+ }
5043
+
4949
5044
  :root {
4950
5045
  --combobox-listbox-border-color: var(--gray-40);
4951
5046
  --combobox-listbox-background-color: #fff;
@@ -5389,3 +5484,47 @@ button.Accordion__trigger {
5389
5484
  -webkit-box-orient: vertical;
5390
5485
  white-space: normal;
5391
5486
  }
5487
+
5488
+ :root {
5489
+ --badge-text-color: var(--gray-90);
5490
+ --badge-background-color: transparent;
5491
+ --badge-border-color: var(--gray-30);
5492
+
5493
+ --badge-height: var(--button-height);
5494
+ --badge-small-height: 1.5rem;
5495
+
5496
+ --badge-font-size: 1rem;
5497
+ }
5498
+
5499
+ .cauldron--theme-dark {
5500
+ --badge-text-color: var(--white);
5501
+ --badge-background-color: var(--accent-medium);
5502
+ --badge-border-color: var(--stroke-dark);
5503
+ }
5504
+
5505
+ .Badge {
5506
+ color: var(--badge-text-color);
5507
+ background-color: var(--badge-background-color);
5508
+ border: 1px solid var(--badge-border-color);
5509
+ display: inline-flex;
5510
+ justify-content: center;
5511
+ align-items: center;
5512
+ padding: 0 var(--space-small) 0 var(--space-smaller);
5513
+ min-height: var(--badge-height);
5514
+ border-radius: var(--badge-height);
5515
+ font-size: var(--badge-font-size);
5516
+ }
5517
+
5518
+ .Badge--small {
5519
+ border-radius: var(--badge-small-height);
5520
+ min-height: var(--badge-small-height);
5521
+ }
5522
+
5523
+ .Badge__Label {
5524
+ margin-right: 3px;
5525
+ font-weight: var(--font-weight-medium);
5526
+ }
5527
+
5528
+ .Badge .Icon {
5529
+ margin: 0 var(--space-half) 0 -4px;
5530
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.4.2-canary.41dad212",
3
+ "version": "6.4.2-canary.49a2ec0b",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",