@deque/cauldron-styles 6.7.0 → 6.8.0-canary.07c97356

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 +105 -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 {
@@ -1228,6 +1228,7 @@ textarea.Field--has-error:focus:hover,
1228
1228
  grid-auto-flow: column;
1229
1229
  align-items: center;
1230
1230
  justify-items: center;
1231
+ justify-content: center;
1231
1232
  gap: var(--space-smallest);
1232
1233
  }
1233
1234
 
@@ -1238,6 +1239,7 @@ textarea.Field--has-error:focus:hover,
1238
1239
  button.Link {
1239
1240
  cursor: pointer;
1240
1241
  font-size: inherit;
1242
+ font-weight: var(--font-weight-normal);
1241
1243
  }
1242
1244
 
1243
1245
  .Button--primary:focus,
@@ -1567,6 +1569,7 @@ button.Link {
1567
1569
  --icon-button-background-color-error-disabled: var(
1568
1570
  --button-background-color-error-disabled
1569
1571
  );
1572
+ --icon-button-icon-size: var(--icon-size);
1570
1573
  }
1571
1574
 
1572
1575
  .IconButton {
@@ -1593,8 +1596,8 @@ a.IconButton {
1593
1596
  }
1594
1597
 
1595
1598
  .IconButton .Icon {
1596
- height: var(--space-small);
1597
- width: var(--space-small);
1599
+ height: calc(var(--icon-button-icon-size) - 8px);
1600
+ width: calc(var(--icon-button-icon-size) - 8px);
1598
1601
  pointer-events: none;
1599
1602
  }
1600
1603
 
@@ -1623,6 +1626,11 @@ a.IconButton {
1623
1626
  width: var(--icon-button-large-height);
1624
1627
  }
1625
1628
 
1629
+ .IconButton--large .Icon {
1630
+ height: var(--icon-button-icon-size);
1631
+ width: var(--icon-button-icon-size);
1632
+ }
1633
+
1626
1634
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1627
1635
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1628
1636
  color: var(--icon-button-text-color-disabled);
@@ -2020,8 +2028,6 @@ a.IconButton {
2020
2028
  .Link {
2021
2029
  text-decoration: underline;
2022
2030
  color: var(--link-text-color);
2023
- font-weight: var(--font-weight-medium);
2024
- display: inline-block;
2025
2031
  padding: var(--space-quarter);
2026
2032
  background: transparent;
2027
2033
  vertical-align: baseline;
@@ -2037,12 +2043,11 @@ a.IconButton {
2037
2043
  outline-offset: 0;
2038
2044
  }
2039
2045
 
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);
2046
+ .Link:has(.Icon) {
2047
+ display: inline-flex;
2048
+ align-items: center;
2049
+ gap: var(--space-half);
2050
+ flex-wrap: wrap;
2046
2051
  }
2047
2052
 
2048
2053
  :root {
@@ -5634,3 +5639,92 @@ button.Accordion__trigger {
5634
5639
  --badge-background-color: var(--impact-badge-minor-background-color);
5635
5640
  --badge-border-color: var(--impact-badge-minor-border-color);
5636
5641
  }
5642
+
5643
+ .Drawer {
5644
+ position: fixed;
5645
+ max-height: var(--drawer-height, 100vh);
5646
+ max-width: var(--drawer-height, 100vw);
5647
+ z-index: var(--z-index-drawer);
5648
+ transition: transform ease-in-out 250ms;
5649
+ }
5650
+
5651
+ .Drawer--top,
5652
+ .Drawer--bottom {
5653
+ max-height: var(--drawer-height, auto);
5654
+ min-width: 100%;
5655
+ }
5656
+
5657
+ .Drawer--left,
5658
+ .Drawer--right {
5659
+ max-width: var(--drawer-width, auto);
5660
+ min-height: var(--drawer-height, 100%);
5661
+ }
5662
+
5663
+ .Drawer--top {
5664
+ top: var(--drawer-top, 0);
5665
+ transform: translateY(-100%);
5666
+ }
5667
+
5668
+ .Drawer--bottom {
5669
+ bottom: var(--drawer-bottom, 0);
5670
+ transform: translateY(100%);
5671
+ }
5672
+
5673
+ .Drawer--left {
5674
+ top: var(--drawer-top, 0);
5675
+ transform: translateX(-100%);
5676
+ }
5677
+
5678
+ .Drawer--right {
5679
+ top: var(--drawer-top, 0);
5680
+ right: 0;
5681
+ transform: translateX(100%);
5682
+ }
5683
+
5684
+ .Drawer--open:is(.Drawer--top, .Drawer--bottom) {
5685
+ transform: translateX(0);
5686
+ }
5687
+
5688
+ .Drawer--open:is(.Drawer--left, .Drawer--right) {
5689
+ transform: translateY(0);
5690
+ }
5691
+
5692
+ @media (prefers-reduced-motion: reduce) {
5693
+ .Drawer {
5694
+ transition: none !important;
5695
+ }
5696
+ }
5697
+
5698
+ :root {
5699
+ --bottom-sheet-width: 40rem;
5700
+ --bottom-sheet-background-color: #fff;
5701
+ }
5702
+
5703
+ .cauldron--theme-dark {
5704
+ --bottom-sheet-background-color: var(--accent-medium);
5705
+ --bottom-sheet-text-color: #fff;
5706
+ }
5707
+
5708
+ .BottomSheet {
5709
+ max-width: var(--bottom-sheet-width);
5710
+ color: var(--bottom-sheet-text-color);
5711
+ background-color: var(--bottom-sheet-background-color);
5712
+ margin: 0 auto;
5713
+ border-top-left-radius: var(--space-small);
5714
+ border-top-right-radius: var(--space-small);
5715
+ padding: var(--space-large) var(--space-small);
5716
+ }
5717
+
5718
+ .BottomSheet__title {
5719
+ font-weight: var(--font-weight-medium);
5720
+ }
5721
+
5722
+ .BottomSheet__header {
5723
+ display: flex;
5724
+ align-items: center;
5725
+ justify-content: space-between;
5726
+ gap: var(--space-small);
5727
+ border-bottom: 1px solid var(--gray-30);
5728
+ padding-bottom: var(--space-small);
5729
+ margin-bottom: var(--space-small);
5730
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.7.0",
3
+ "version": "6.8.0-canary.07c97356",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",