@deque/cauldron-styles 6.16.0 → 6.17.0-canary.82c3a847

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 +352 -31
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -546,8 +546,6 @@ ul.semantic-only {
546
546
  input,
547
547
  select,
548
548
  textarea,
549
- [role='menuitemcheckbox'],
550
- [role='menuitemradio'],
551
549
  [role='textbox'],
552
550
  [role='listbox'],
553
551
  [role='spinbutton'] {
@@ -561,8 +559,6 @@ textarea,
561
559
  .cauldron--theme-dark input,
562
560
  select,
563
561
  textarea,
564
- [role='menuitemcheckbox'],
565
- [role='menuitemradio'],
566
562
  [role='textbox'],
567
563
  [role='listbox'],
568
564
  [role='spinbutton'] {
@@ -572,14 +568,13 @@ textarea,
572
568
  input:focus,
573
569
  select:focus,
574
570
  textarea:focus,
575
- [role='menuitemcheckbox']:focus,
576
- [role='menuitemradio']:focus,
577
571
  [role='textbox']:focus,
578
572
  [role='listbox']:focus,
579
573
  [role='spinbutton']:focus {
580
574
  outline: 0;
581
575
  border: 1px solid var(--field-border-color-focus);
582
- box-shadow: 0 0 0 1px var(--field-border-color-focus),
576
+ box-shadow:
577
+ 0 0 0 1px var(--field-border-color-focus),
583
578
  0 0 5px var(--field-border-color-focus-glow),
584
579
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
585
580
  }
@@ -587,8 +582,6 @@ textarea:focus,
587
582
  input:hover,
588
583
  select:hover,
589
584
  textarea:hover,
590
- [role='menuitemcheckbox']:hover,
591
- [role='menuitemradio']:hover,
592
585
  [role='textbox']:hover,
593
586
  [role='listbox']:hover,
594
587
  [role='spinbutton']:hover {
@@ -598,13 +591,13 @@ textarea:hover,
598
591
  input:focus:hover,
599
592
  select:focus:hover,
600
593
  textarea:focus:hover,
601
- [role='menuitemcheckbox']:focus:hover,
602
594
  [role='menuitemradio']:focus:hover,
603
595
  [role='textbox']:focus:hover,
604
596
  [role='listbox']:focus:hover,
605
597
  [role='spinbutton']:focus:hover {
606
598
  border: 1px solid var(--field-border-color-focus-hover);
607
- box-shadow: 0 0 0 1px var(--field-border-color-focus-hover),
599
+ box-shadow:
600
+ 0 0 0 1px var(--field-border-color-focus-hover),
608
601
  0 0 5px var(--field-border-color-focus-glow),
609
602
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
610
603
  }
@@ -623,8 +616,6 @@ textarea::placeholder {
623
616
  input.Field--has-error,
624
617
  select.Field--has-error,
625
618
  textarea.Field--has-error,
626
- [role='menuitemcheckbox'].Field--has-error,
627
- [role='menuitemradio'].Field--has-error,
628
619
  [role='textbox'].Field--has-error,
629
620
  [role='listbox'].Field--has-error,
630
621
  [role='spinbutton'].Field--has-error {
@@ -645,26 +636,24 @@ textarea.Field--has-error,
645
636
  input.Field--has-error:hover,
646
637
  select.Field--has-error:hover,
647
638
  textarea.Field--has-error:hover,
648
- [role='menuitemcheckbox'].Field--has-error:hover,
649
- [role='menuitemradio'].Field--has-error:hover,
650
639
  [role='textbox'].Field--has-error:hover,
651
640
  [role='listbox'].Field--has-error:hover,
652
641
  [role='spinbutton'].Field--has-error:hover {
653
642
  border-color: var(--field-border-color-error-hover);
654
- box-shadow: 0 0 0 1px var(--field-border-color-error),
643
+ box-shadow:
644
+ 0 0 0 1px var(--field-border-color-error),
655
645
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
656
646
  }
657
647
 
658
648
  input.Field--has-error:focus,
659
649
  select.Field--has-error:focus,
660
650
  textarea.Field--has-error:focus,
661
- [role='menuitemcheckbox'].Field--has-error:focus,
662
- [role='menuitemradio'].Field--has-error:focus,
663
651
  [role='textbox'].Field--has-error:focus,
664
652
  [role='listbox'].Field--has-error:focus,
665
653
  [role='spinbutton'].Field--has-error:focus {
666
654
  border: 1px solid var(--field-border-color-error);
667
- box-shadow: 0 0 0 1px var(--field-border-color-error),
655
+ box-shadow:
656
+ 0 0 0 1px var(--field-border-color-error),
668
657
  0 0 5px var(--field-border-color-error-focus-glow),
669
658
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
670
659
  }
@@ -672,8 +661,6 @@ textarea.Field--has-error:focus,
672
661
  input.Field--has-error:focus:hover,
673
662
  select.Field--has-error:focus:hover,
674
663
  textarea.Field--has-error:focus:hover,
675
- [role='menuitemcheckbox'].Field--has-error:focus:hover,
676
- [role='menuitemradio'].Field--has-error:focus:hover,
677
664
  [role='textbox'].Field--has-error:focus:hover,
678
665
  [role='listbox'].Field--has-error:focus:hover,
679
666
  [role='spinbutton'].Field--has-error:focus:hover {
@@ -696,13 +683,22 @@ textarea.Field--has-error:focus:hover,
696
683
  color: var(--field-listbox-selected-text-color);
697
684
  }
698
685
 
699
- .Error {
686
+ .Error,
687
+ .Field__error {
688
+ --icon-size: var(--text-size-base);
700
689
  color: var(--field-error-text-color);
690
+ display: flex;
691
+ gap: var(--space-half);
701
692
  text-align: left;
702
693
  font-size: var(--text-size-smallest);
703
694
  font-weight: var(--font-weight-normal);
704
695
  }
705
696
 
697
+ .Field__error {
698
+ font-size: var(--text-size-small);
699
+ margin-bottom: var(--space-smallest);
700
+ }
701
+
706
702
  .Checkbox__wrap .Error {
707
703
  margin-top: var(--space-half);
708
704
  border-top: 1px solid var(--field-error-border-color);
@@ -771,12 +767,21 @@ textarea.Field--has-error:focus:hover,
771
767
  align-items: center;
772
768
  text-align: left;
773
769
  color: var(--field-label-text-color);
774
- margin-bottom: var(--space-half);
770
+ margin-bottom: var(--space-smallest);
775
771
  font-size: var(--text-size-small);
776
772
  font-weight: var(--font-weight-medium);
777
773
  cursor: default;
778
774
  }
779
775
 
776
+ .Field__description {
777
+ display: flex;
778
+ align-items: center;
779
+ text-align: left;
780
+ font-size: var(--text-size-small);
781
+ color: var(--field-label-description-text-color);
782
+ margin-bottom: var(--space-smallest);
783
+ }
784
+
780
785
  .Field__label + .Checkbox__wrap {
781
786
  margin-top: var(--space-half);
782
787
  }
@@ -1195,7 +1200,7 @@ textarea.Field--has-error:focus:hover,
1195
1200
  --button-background-color-primary-active: var(--accent-primary-active);
1196
1201
 
1197
1202
  --button-background-color-secondary: var(--gray-20);
1198
- --button-background-color-secondary-disabled: var(--gray-30);
1203
+ --button-background-color-secondary-disabled: var(--gray-20);
1199
1204
  --button-outline-color-secondary: var(--gray-90);
1200
1205
  --button-background-color-secondary-active: var(--gray-30);
1201
1206
  --button-border-color-secondary: var(--gray-40);
@@ -3982,8 +3987,8 @@ button.TooltipTabstop {
3982
3987
 
3983
3988
  --step-current-indicator-background: #fff;
3984
3989
  --step-current-indicator-color: var(--accent-dark);
3985
- --step-current-indicator-shadow: 0 0 0 2px var(--accent-dark),
3986
- 0 0 0 4px var(--accent-info);
3990
+ --step-current-indicator-shadow:
3991
+ 0 0 0 2px var(--accent-dark), 0 0 0 4px var(--accent-info);
3987
3992
  --step-current-complete-line-border-color: var(--accent-info);
3988
3993
 
3989
3994
  --step-complete-indicator-background: var(--accent-info);
@@ -4002,7 +4007,6 @@ button.TooltipTabstop {
4002
4007
  align-items: flex-start;
4003
4008
  color: var(--stepper-color);
4004
4009
  background-color: var(--stepper-background-color);
4005
- counter-reset: stepper;
4006
4010
  list-style-type: none;
4007
4011
  margin: 0 auto;
4008
4012
  }
@@ -4046,8 +4050,7 @@ button.TooltipTabstop {
4046
4050
 
4047
4051
  .Stepper__step-indicator:before {
4048
4052
  font-size: var(--text-size-small);
4049
- counter-increment: stepper;
4050
- content: counter(stepper);
4053
+ content: counter(list-item);
4051
4054
  }
4052
4055
 
4053
4056
  .Stepper__step-label {
@@ -4101,7 +4104,7 @@ button.TooltipTabstop {
4101
4104
  --panel-border-color: var(--gray-40);
4102
4105
  --panel-background-color: var(--white);
4103
4106
  --panel-heading-color: var(--gray-90);
4104
- --panel-padding: var(--space-small);
4107
+ --panel-padding: var(--space-large);
4105
4108
  --panel-divider-border-color: var(--gray-40);
4106
4109
  --panel-content-color: var(--gray-80);
4107
4110
  }
@@ -4110,7 +4113,7 @@ button.TooltipTabstop {
4110
4113
  padding: var(--panel-padding);
4111
4114
  margin: 0;
4112
4115
  border: 1px solid var(--panel-border-color);
4113
- border-radius: 3px;
4116
+ border-radius: 16px;
4114
4117
  box-shadow: var(--drop-shadow-raised);
4115
4118
  background-color: var(--panel-background-color);
4116
4119
  word-break: break-word;
@@ -5834,3 +5837,321 @@ button.Accordion__trigger {
5834
5837
  padding-bottom: var(--space-small);
5835
5838
  margin-bottom: var(--space-small);
5836
5839
  }
5840
+
5841
+ :root {
5842
+ --page-header-overline-color: var(--gray-60);
5843
+ }
5844
+
5845
+ .cauldron--theme-dark {
5846
+ --page-header-overline-color: var(--accent-light);
5847
+ }
5848
+
5849
+ .PageHeader__overline {
5850
+ margin: 0 0 var(--space-smallest) 0;
5851
+ padding: 0;
5852
+ color: var(--page-header-overline-color);
5853
+ font-size: var(--text-size-base);
5854
+ }
5855
+
5856
+ :root {
5857
+ --section-header-description-color: var(--gray-60);
5858
+ }
5859
+
5860
+ .cauldron--theme-dark {
5861
+ --section-header-description-color: var(--accent-light);
5862
+ }
5863
+
5864
+ .SectionHeader {
5865
+ container-type: inline-size;
5866
+ }
5867
+
5868
+ .SectionHeader__content {
5869
+ display: grid;
5870
+ grid-template-columns: 1fr;
5871
+ grid-template-areas:
5872
+ 'heading'
5873
+ 'description'
5874
+ 'children';
5875
+ }
5876
+
5877
+ .SectionHeader__actions {
5878
+ margin-top: var(--space-small);
5879
+ grid-area: children;
5880
+ }
5881
+
5882
+ .SectionHeader .SectionHeader__content .SectionHeader__description {
5883
+ margin: var(--space-smallest) 0 0 0;
5884
+ padding: 0;
5885
+ color: var(--section-header-description-color);
5886
+ font-size: var(--text-size-base);
5887
+ grid-area: description;
5888
+ }
5889
+
5890
+ .SectionHeader :is(h1, h2, h3, h4, h5, h6) {
5891
+ font-weight: var(--font-weight-medium);
5892
+ margin: 0;
5893
+ padding: 0;
5894
+ }
5895
+
5896
+ @container (min-width: 48rem) {
5897
+ .SectionHeader__content {
5898
+ grid-template-columns: 1fr auto;
5899
+ grid-template-areas:
5900
+ 'heading children'
5901
+ 'description children';
5902
+ align-items: start;
5903
+ }
5904
+
5905
+ .SectionHeader__actions {
5906
+ margin: 0;
5907
+ align-self: center;
5908
+ justify-self: end;
5909
+ }
5910
+ }
5911
+
5912
+ :root {
5913
+ --empty-state-border-color: var(--gray-30);
5914
+ }
5915
+
5916
+ .cauldron--theme-dark {
5917
+ --empty-state-border-color: var(--accent-light);
5918
+ }
5919
+
5920
+ .EmptyState > :where(h1, h2, h3, h4, h5, h6) {
5921
+ font-size: var(--text-size-heading-3);
5922
+ line-height: var(--line-height-heading-3);
5923
+ margin-top: 0;
5924
+ margin-bottom: 0;
5925
+ }
5926
+
5927
+ .EmptyState > :where(h1, h2, h3, h4, h5, h6) + :where(p) {
5928
+ margin-top: 0.25rem;
5929
+ margin-bottom: 0;
5930
+ }
5931
+
5932
+ .EmptyState__primary {
5933
+ padding-top: var(--space-small);
5934
+ }
5935
+
5936
+ .EmptyState__secondary {
5937
+ margin-top: var(--space-small);
5938
+ padding-top: var(--space-small);
5939
+ border-top: 1px solid var(--empty-state-border-color);
5940
+ }
5941
+
5942
+ :root {
5943
+ --action-menu-border-color: var(--gray-30);
5944
+ --action-menu-background-color: #fff;
5945
+ }
5946
+
5947
+ .cauldron--theme-dark {
5948
+ --action-menu-background-color: var(--accent-medium);
5949
+ }
5950
+
5951
+ .ActionMenu {
5952
+ border: 1px solid var(--action-menu-border-color);
5953
+ background-color: var(--action-menu-background-color);
5954
+ padding: var(--space-smallest) 0;
5955
+ border-radius: 8px;
5956
+ width: var(--action-menu-width);
5957
+ min-width: var(--action-menu-min-width, 10rem);
5958
+ max-height: var(--action-menu-height);
5959
+ box-shadow: var(--drop-shadow-overlay);
5960
+ overflow-y: auto;
5961
+ }
5962
+
5963
+ :root {
5964
+ --action-list-background-color: #fff;
5965
+ --action-list-text-color: var(--gray-90);
5966
+ --action-list-group-label-font-size: var(--text-size-base);
5967
+ --action-list-item-hover-background-color: var(--gray-20);
5968
+ --action-list-item-description-color: var(--gray-60);
5969
+ --action-list-item-icon-color: var(--gray-60);
5970
+ --action-list-item-disabled-text-color: var(--gray-40);
5971
+ }
5972
+
5973
+ .cauldron--theme-dark {
5974
+ --action-list-background-color: var(--accent-medium);
5975
+ --action-list-text-color: #fff;
5976
+ --action-list-item-description-color: var(--accent-light);
5977
+ --action-list-item-icon-color: var(--accent-light);
5978
+ --action-list-item-hover-background-color: var(--accent-dark);
5979
+ --action-list-item-disabled-text-color: rgba(255, 255, 255, 0.25);
5980
+ }
5981
+
5982
+ .ActionList,
5983
+ .ActionList:hover,
5984
+ .ActionList:focus,
5985
+ .ActionList:focus:hover {
5986
+ color: var(--action-list-text-color);
5987
+ border: none;
5988
+ box-shadow: none;
5989
+ background: none;
5990
+ margin: 0;
5991
+ }
5992
+
5993
+ .ActionList li {
5994
+ list-style-type: none;
5995
+ }
5996
+
5997
+ .ActionMenu > .ActionList {
5998
+ outline: none;
5999
+ }
6000
+
6001
+ .ActionListGroup,
6002
+ .ActionListSeparator {
6003
+ padding-bottom: var(--space-smallest);
6004
+ margin-bottom: var(--space-smallest);
6005
+ border-bottom: 1px solid var(--action-menu-border-color);
6006
+ }
6007
+
6008
+ .ActionList > li:last-child .ActionListGroup {
6009
+ border-bottom: 0;
6010
+ margin-bottom: 0;
6011
+ padding-bottom: 0;
6012
+ }
6013
+
6014
+ .ActionListGroup > li:first-child {
6015
+ font-weight: var(--font-weight-medium);
6016
+ font-size: var(--action-list-group-label-font-size);
6017
+ padding: var(--space-smallest) var(--space-small);
6018
+ }
6019
+
6020
+ .ActionList:focus {
6021
+ outline: none;
6022
+ }
6023
+
6024
+ :where(.ActionList:focus-within) .ActionListItem--active {
6025
+ position: relative;
6026
+ box-shadow: inset 0 0 0 2px var(--focus);
6027
+ z-index: 1;
6028
+ }
6029
+
6030
+ .ActionListItem {
6031
+ padding: var(--space-smallest);
6032
+ }
6033
+
6034
+ .ActionListItem {
6035
+ --icon-size: 1rem;
6036
+ --icon-spacing: 1.2rem;
6037
+ display: grid;
6038
+ align-items: center;
6039
+ gap: var(--space-half);
6040
+ margin: 0 var(--space-smallest);
6041
+ border-radius: 4px;
6042
+ cursor: pointer;
6043
+ }
6044
+
6045
+ .ActionListItem:is([aria-disabled='true']) {
6046
+ color: var(--action-list-item-disabled-text-color);
6047
+ cursor: not-allowed;
6048
+ }
6049
+
6050
+ .ActionListItem:hover:not([aria-disabled='true']) {
6051
+ background-color: var(--action-list-item-hover-background-color);
6052
+ }
6053
+
6054
+ .ActionListItem__selection,
6055
+ .ActionListItem__leadingIcon,
6056
+ .ActionListItem__trailingIcon {
6057
+ width: var(--icon-spacing);
6058
+ }
6059
+
6060
+ :where(.ActionListItem:not([aria-disabled='true']))
6061
+ :is(
6062
+ .ActionListItem__selection,
6063
+ .ActionListItem__leadingIcon,
6064
+ .ActionListItem__trailingIcon
6065
+ ) {
6066
+ color: var(--action-list-item-icon-color);
6067
+ }
6068
+
6069
+ .ActionListItem:has(> .ActionListItem__selection) {
6070
+ grid-template-columns: var(--icon-spacing) auto;
6071
+ }
6072
+
6073
+ :where(.ActionListItem:has(.ActionListItem__description))
6074
+ :is(
6075
+ .ActionListItem__selection,
6076
+ .ActionListItem__leadingIcon,
6077
+ .ActionListItem__trailingIcon
6078
+ ) {
6079
+ grid-row: span 2;
6080
+ align-self: start;
6081
+ }
6082
+
6083
+ :where(.ActionListItem:has(> .ActionListItem__selection))
6084
+ .ActionListItem__description,
6085
+ :where(
6086
+ .ActionListItem:has(> .ActionListItem__leadingIcon):has(
6087
+ > .ActionListItem__description
6088
+ )
6089
+ )
6090
+ .ActionListItem__description {
6091
+ grid-column: 2;
6092
+ }
6093
+
6094
+ :where(
6095
+ .ActionListItem:has(> .ActionListItem__selection):has(
6096
+ > .ActionListItem__leadingIcon
6097
+ )
6098
+ )
6099
+ .ActionListItem__description {
6100
+ grid-column: 3;
6101
+ }
6102
+
6103
+ :where(
6104
+ .ActionListItem:has(> .ActionListItem__trailingIcon):has(
6105
+ > .ActionListItem__description
6106
+ )
6107
+ )
6108
+ .ActionListItem__description {
6109
+ grid-row: 2;
6110
+ }
6111
+
6112
+ .ActionListItem:has(> .ActionListItem__leadingIcon) {
6113
+ grid-template-columns: var(--icon-spacing) auto;
6114
+ }
6115
+
6116
+ .ActionListItem:has(> .ActionListItem__trailingIcon) {
6117
+ grid-template-columns: auto var(--icon-spacing);
6118
+ }
6119
+
6120
+ .ActionListItem:has(> .ActionListItem__leadingIcon):has(
6121
+ > .ActionListItem__trailingIcon
6122
+ ) {
6123
+ grid-template-columns: var(--icon-spacing) auto var(--icon-spacing);
6124
+ }
6125
+
6126
+ .ActionListItem:has(> .ActionListItem__selection):has(
6127
+ > .ActionListItem__leadingIcon
6128
+ ) {
6129
+ grid-template-columns: var(--icon-spacing) var(--icon-spacing) auto;
6130
+ }
6131
+
6132
+ .ActionListItem:has(> .ActionListItem__selection):has(
6133
+ > .ActionListItem__trailingIcon
6134
+ ) {
6135
+ grid-template-columns: var(--icon-spacing) auto var(--icon-spacing);
6136
+ }
6137
+
6138
+ .ActionListItem:has(> .ActionListItem__selection):has(
6139
+ > .ActionListItem__leadingIcon
6140
+ ):has(> .ActionListItem__trailingIcon) {
6141
+ grid-template-columns: var(--icon-spacing) var(--icon-spacing) auto var(
6142
+ --icon-spacing
6143
+ );
6144
+ }
6145
+
6146
+ :where(.ActionListItem:not([aria-checked='true'])) .ActionListItem__selection {
6147
+ visibility: hidden;
6148
+ }
6149
+
6150
+ .ActionListItem__description {
6151
+ color: var(--action-list-item-description-color);
6152
+ }
6153
+
6154
+ :where(.ActionListItem:is([aria-disabled='true']))
6155
+ .ActionListItem__description {
6156
+ color: var(--action-list-item-disabled-text-color);
6157
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.16.0",
3
+ "version": "6.17.0-canary.82c3a847",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",