@deque/cauldron-styles 6.6.1 → 6.7.0-canary.099092f1

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 +119 -11
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -128,6 +128,7 @@
128
128
  --z-index-top-bar: 25;
129
129
  /* ensure this is 1 higher than the top bar z-index */
130
130
  --z-index-skip-container: calc(var(--z-index-top-bar) + 1);
131
+ --z-index-drawer: calc(var(--z-index-top-bar) + 1);
131
132
 
132
133
  /* radio card */
133
134
  --radio-card-width: 255px;
@@ -267,7 +268,6 @@ button,
267
268
 
268
269
  a {
269
270
  color: var(--link-text-color);
270
- font-weight: var(--font-weight-medium);
271
271
  }
272
272
 
273
273
  p {
@@ -1238,6 +1238,7 @@ textarea.Field--has-error:focus:hover,
1238
1238
  button.Link {
1239
1239
  cursor: pointer;
1240
1240
  font-size: inherit;
1241
+ font-weight: var(--font-weight-normal);
1241
1242
  }
1242
1243
 
1243
1244
  .Button--primary:focus,
@@ -1567,6 +1568,7 @@ button.Link {
1567
1568
  --icon-button-background-color-error-disabled: var(
1568
1569
  --button-background-color-error-disabled
1569
1570
  );
1571
+ --icon-button-icon-size: var(--icon-size);
1570
1572
  }
1571
1573
 
1572
1574
  .IconButton {
@@ -1593,8 +1595,8 @@ a.IconButton {
1593
1595
  }
1594
1596
 
1595
1597
  .IconButton .Icon {
1596
- height: var(--space-small);
1597
- width: var(--space-small);
1598
+ height: calc(var(--icon-button-icon-size) - 8px);
1599
+ width: calc(var(--icon-button-icon-size) - 8px);
1598
1600
  pointer-events: none;
1599
1601
  }
1600
1602
 
@@ -1623,6 +1625,11 @@ a.IconButton {
1623
1625
  width: var(--icon-button-large-height);
1624
1626
  }
1625
1627
 
1628
+ .IconButton--large .Icon {
1629
+ height: var(--icon-button-icon-size);
1630
+ width: var(--icon-button-icon-size);
1631
+ }
1632
+
1626
1633
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1627
1634
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1628
1635
  color: var(--icon-button-text-color-disabled);
@@ -2020,8 +2027,6 @@ a.IconButton {
2020
2027
  .Link {
2021
2028
  text-decoration: underline;
2022
2029
  color: var(--link-text-color);
2023
- font-weight: var(--font-weight-medium);
2024
- display: inline-block;
2025
2030
  padding: var(--space-quarter);
2026
2031
  background: transparent;
2027
2032
  vertical-align: baseline;
@@ -2037,12 +2042,11 @@ a.IconButton {
2037
2042
  outline-offset: 0;
2038
2043
  }
2039
2044
 
2040
- p .Link {
2041
- margin: 0 2px;
2042
- display: inline;
2043
- text-decoration: underline;
2044
- color: var(--link-text-color);
2045
- font-weight: var(--font-weight-normal);
2045
+ .Link:has(.Icon) {
2046
+ display: inline-flex;
2047
+ align-items: center;
2048
+ gap: var(--space-half);
2049
+ flex-wrap: wrap;
2046
2050
  }
2047
2051
 
2048
2052
  :root {
@@ -3200,6 +3204,15 @@ button.TooltipTabstop {
3200
3204
  --code-border-color: var(--stroke-dark);
3201
3205
  }
3202
3206
 
3207
+ .Code__Header {
3208
+ display: flex;
3209
+ justify-content: space-between;
3210
+ align-items: center;
3211
+ margin-bottom: var(--space-smallest);
3212
+ font-weight: var(--font-weight-medium);
3213
+ font-size: var(--text-size-body);
3214
+ }
3215
+
3203
3216
  .Code.hljs {
3204
3217
  display: block;
3205
3218
  padding: var(--space-smaller);
@@ -4993,18 +5006,24 @@ button.Accordion__trigger {
4993
5006
  --notice-border-color: var(--accent-dark);
4994
5007
  --notice-link-hover-color: var(--accent-medium);
4995
5008
  --notice-icon-size: 1rem;
5009
+ --notice-info-border-color: var(--accent-primary-disabled);
5010
+ --notice-caution-border-color: var(--accent-warning);
5011
+ --notice-danger-border-color: var(--accent-error-disabled);
4996
5012
  }
4997
5013
 
4998
5014
  .Notice--info {
4999
5015
  --notice-background-color: var(--notice-info-color);
5016
+ --notice-border-color: var(--notice-info-border-color);
5000
5017
  }
5001
5018
 
5002
5019
  .Notice--caution {
5003
5020
  --notice-background-color: var(--notice-caution-color);
5021
+ --notice-border-color: var(--notice-caution-border-color);
5004
5022
  }
5005
5023
 
5006
5024
  .Notice--danger {
5007
5025
  --notice-background-color: var(--notice-danger-color);
5026
+ --notice-border-color: var(--notice-danger-border-color);
5008
5027
  }
5009
5028
 
5010
5029
  .Notice {
@@ -5619,3 +5638,92 @@ button.Accordion__trigger {
5619
5638
  --badge-background-color: var(--impact-badge-minor-background-color);
5620
5639
  --badge-border-color: var(--impact-badge-minor-border-color);
5621
5640
  }
5641
+
5642
+ .Drawer {
5643
+ position: fixed;
5644
+ max-height: var(--drawer-height, 100vh);
5645
+ max-width: var(--drawer-height, 100vw);
5646
+ z-index: var(--z-index-drawer);
5647
+ transition: transform ease-in-out 250ms;
5648
+ }
5649
+
5650
+ .Drawer--top,
5651
+ .Drawer--bottom {
5652
+ max-height: var(--drawer-height, auto);
5653
+ min-width: 100%;
5654
+ }
5655
+
5656
+ .Drawer--left,
5657
+ .Drawer--right {
5658
+ max-width: var(--drawer-width, auto);
5659
+ min-height: var(--drawer-height, 100%);
5660
+ }
5661
+
5662
+ .Drawer--top {
5663
+ top: var(--drawer-top, 0);
5664
+ transform: translateY(-100%);
5665
+ }
5666
+
5667
+ .Drawer--bottom {
5668
+ bottom: var(--drawer-bottom, 0);
5669
+ transform: translateY(100%);
5670
+ }
5671
+
5672
+ .Drawer--left {
5673
+ top: var(--drawer-top, 0);
5674
+ transform: translateX(-100%);
5675
+ }
5676
+
5677
+ .Drawer--right {
5678
+ top: var(--drawer-top, 0);
5679
+ right: 0;
5680
+ transform: translateX(100%);
5681
+ }
5682
+
5683
+ .Drawer--open:is(.Drawer--top, .Drawer--bottom) {
5684
+ transform: translateX(0);
5685
+ }
5686
+
5687
+ .Drawer--open:is(.Drawer--left, .Drawer--right) {
5688
+ transform: translateY(0);
5689
+ }
5690
+
5691
+ @media (prefers-reduced-motion: reduce) {
5692
+ .Drawer {
5693
+ transition: none !important;
5694
+ }
5695
+ }
5696
+
5697
+ :root {
5698
+ --bottom-sheet-width: 40rem;
5699
+ --bottom-sheet-background-color: #fff;
5700
+ }
5701
+
5702
+ .cauldron--theme-dark {
5703
+ --bottom-sheet-background-color: var(--accent-medium);
5704
+ --bottom-sheet-text-color: #fff;
5705
+ }
5706
+
5707
+ .BottomSheet {
5708
+ max-width: var(--bottom-sheet-width);
5709
+ color: var(--bottom-sheet-text-color);
5710
+ background-color: var(--bottom-sheet-background-color);
5711
+ margin: 0 auto;
5712
+ border-top-left-radius: var(--space-small);
5713
+ border-top-right-radius: var(--space-small);
5714
+ padding: var(--space-large) var(--space-small);
5715
+ }
5716
+
5717
+ .BottomSheet__title {
5718
+ font-weight: var(--font-weight-medium);
5719
+ }
5720
+
5721
+ .BottomSheet__header {
5722
+ display: flex;
5723
+ align-items: center;
5724
+ justify-content: space-between;
5725
+ gap: var(--space-small);
5726
+ border-bottom: 1px solid var(--gray-30);
5727
+ padding-bottom: var(--space-small);
5728
+ margin-bottom: var(--space-small);
5729
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.6.1",
3
+ "version": "6.7.0-canary.099092f1",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",