@utahdts/utah-design-system 0.8.0 → 0.9.5

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.
@@ -1,6 +1,6 @@
1
1
  /*
2
- ############ _settings-index.scss ############
3
- CSS Class Variables
2
+ ############ _class-vars.scss ############
3
+ CSS Classes - SCSS Variables
4
4
  */
5
5
 
6
6
  $base-class: ".utah-design-system";
@@ -0,0 +1,11 @@
1
+ /*
2
+ ############ _media-size-vars.scss ############
3
+ Media Sizes - SCSS Variables
4
+ */
5
+
6
+ $media-size-mobile: 640px;
7
+ $media-size-tablet-portrait: 768px;
8
+ $media-size-tablet-landscape: 1024px;
9
+ $media-size-desktop-small: 1200px;
10
+ $media-size-desktop-medium: 1440px;
11
+ $media-size-desktop-large: 1920px;
@@ -80,13 +80,14 @@ variables and settings
80
80
  --form-checkbox-large: 1.375rem;
81
81
 
82
82
  /* content layout sizes */
83
- --content-width-narrow: 800px;
83
+ --content-width-narrow: 808px;
84
84
  --content-width: 1224px;
85
85
  --content-width-wide: 1432px;
86
86
  --documentation-width: 700px;
87
87
  --documentation-left-width: 200px;
88
88
  --documentation-right-width: 200px;
89
89
  --documentation-padding: var(--spacing-2xl) var(--spacing-xl);
90
+ --documentation-padding-small: var(--spacing-xl) var(--spacing);
90
91
 
91
92
  /* elevation box shadows */
92
93
  --drop-shadow-color: rgba(0, 0, 0, 0.3);
@@ -17,15 +17,18 @@ elemental html: h1, h2, h3, ul, li, etc.
17
17
  h1 {
18
18
  font-size: var(--font-size-4xl);
19
19
  margin: 0;
20
+ line-height: 1.1;
20
21
  }
21
22
  h2 {
22
23
  font-size: var(--font-size-3xl);
23
24
  margin: 0;
25
+ line-height: 1.2;
24
26
  }
25
27
  h3 {
26
28
  font-size: var(--font-size-2xl );
27
29
  font-weight: var(--font-weight-semi-bold);
28
30
  margin: 0;
31
+ line-height: 1.3;
29
32
  }
30
33
  h4 {
31
34
  font-size: var(--font-size-l);
@@ -56,31 +59,7 @@ elemental html: h1, h2, h3, ul, li, etc.
56
59
  background: var(--primary-color-light);
57
60
  }
58
61
  }
59
- pre {
60
- font-family: var(--fixed-width-font-family);
61
- font-size: .95rem;
62
- white-space: pre-wrap;
63
- word-wrap: break-word;
64
- margin: 0 0 var(--spacing) 0;
65
- &.gray-block {
66
- background: var(--gray-light-color);
67
- padding: var(--spacing-s) var(--spacing);
68
- border-radius: var(--radius-medium);
69
- }
70
- &.pre-block {
71
- &--overflow {
72
- width: 100%;
73
- overflow-x: scroll;
74
- box-sizing: border-box;
75
- }
76
- &--padded {
77
- padding: 0 var(--spacing);
78
- }
79
- }
80
- .pre-block__overflow-content {
81
- width: max-content;
82
- }
83
- }
62
+ // pre --- see _pre-code.scss
84
63
 
85
64
  ul, ol {
86
65
  padding: 0 0 0 var(--spacing-2xl);
@@ -18,6 +18,7 @@ component specific, BEM (Block, Element, Modifier)
18
18
  @use "base-components/forms/info-box";
19
19
  @use "base-components/forms/radio-button";
20
20
  @use "base-components/forms/switch";
21
+ @use "base-components/forms/fieldset";
21
22
  @use "base-components/navigation/main-menu";
22
23
  @use "base-components/navigation/menu-item";
23
24
  @use "base-components/navigation/pagination";
@@ -30,6 +31,7 @@ component specific, BEM (Block, Element, Modifier)
30
31
  @use "base-components/popups/search-modal";
31
32
  @use "base-components/templates/documenation-template";
32
33
  @use "base-components/templates/landing-page-template";
34
+ @use "base-components/text/pre-code";
33
35
  @use "base-components/forms/input";
34
36
  @use "base-components/widgetsInicators/spinner";
35
37
  @use "base-components/tablesAndLists/table";
@@ -2,25 +2,41 @@
2
2
 
3
3
  #{class-vars.$base-class} {
4
4
  .accordion {
5
+ width: 100%;
6
+
5
7
  &__header,
6
8
  &__header.button {
7
- border-radius: 0;
8
- font-size: var(--font-size-2xl);
9
+ border-radius: var(--radius-small);
10
+ font-size: var(--font-size-xl);
9
11
  font-weight: var(--font-weight-bold);
10
- padding: var(--spacing);
12
+ padding: var(--spacing-s) var(--spacing);
11
13
  border: none;
12
14
  display: flex;
13
15
  flex-direction: row;
14
16
  justify-content: space-between;
15
17
  width: 100%;
16
18
  box-sizing: border-box;
19
+
20
+ [class*=utds-icon-before-]::before {
21
+ margin-right: 0;
22
+ font-size: 1.5rem;
23
+ }
17
24
  }
25
+ &__header {
26
+ &--open {
27
+ border-bottom-left-radius: 0;
28
+ border-bottom-right-radius: 0;
29
+ }
30
+ }
31
+
18
32
  &__content {
19
33
  background: var(--gray-light-color);
20
34
  padding: 0;
21
35
  box-sizing: border-box;
22
36
  height: 0;
23
37
  overflow: hidden;
38
+ border-bottom-left-radius: var(--radius-small);
39
+ border-bottom-right-radius: var(--radius-small);
24
40
 
25
41
  &--open {
26
42
  height: auto;
@@ -1,4 +1,5 @@
1
1
  @use "../../../1-settings/class-vars";
2
+ @use "../../../1-settings/media-size-vars";
2
3
 
3
4
  #{class-vars.$base-class}.utds {
4
5
  &-footer {
@@ -86,7 +87,7 @@
86
87
  }
87
88
  }
88
89
  }
89
- @media screen and (max-width: 768px) {
90
+ @media screen and (max-width: #{media-size-vars.$media-size-tablet-portrait}) {
90
91
  #{class-vars.$base-class}.utds {
91
92
  &-footer {
92
93
  flex-wrap: wrap;
@@ -0,0 +1,8 @@
1
+ @use "../../../1-settings/class-vars";
2
+
3
+ #{class-vars.$base-class} {
4
+ fieldset {
5
+ border: none;
6
+ padding: 0;
7
+ }
8
+ }
@@ -52,9 +52,12 @@
52
52
  min-height: auto;
53
53
  line-height: 1.7;
54
54
 
55
- .icon-chevron-down {
56
- font-size: 1rem;
57
- margin-right: -2px;
55
+ .menu-item__menu-arrow {
56
+ font-size: .65rem;
57
+ margin-left: var(--spacing-2xs);
58
+ &[class*=utds-icon-before-]::before {
59
+ margin-right: 0;
60
+ }
58
61
  }
59
62
 
60
63
  &:hover {
@@ -47,7 +47,7 @@
47
47
  min-width: unset;
48
48
  }
49
49
  &__button-title {
50
- flex: 1 0 auto;
50
+ flex: 1 1 auto;
51
51
  justify-content: flex-start;
52
52
  font-size: var(--font-size-xs);
53
53
  padding: var(--spacing-2xs) var(--spacing);
@@ -1,6 +1,9 @@
1
1
  @use "../../../1-settings/class-vars";
2
2
 
3
3
  #{class-vars.$base-class} {
4
+ .table-wrapper {
5
+ overflow-x: scroll;
6
+ }
4
7
  table {
5
8
  border-collapse: collapse;
6
9
  thead {
@@ -1,4 +1,5 @@
1
1
  @use "../../../1-settings/class-vars";
2
+ @use "../../../1-settings/media-size-vars";
2
3
 
3
4
  #{class-vars.$base-class} {
4
5
  .documentation-template {
@@ -6,7 +7,7 @@
6
7
  flex-direction: row;
7
8
  width: 100%;
8
9
  max-width: var(--content-width-wide);
9
- justify-content: space-around;
10
+ justify-content: center;
10
11
  align-items: flex-start;
11
12
 
12
13
  &__wrapper {
@@ -18,10 +19,17 @@
18
19
  border-right: 1px solid var(--gray-border);
19
20
  padding: var(--documentation-padding);
20
21
  width: var(--documentation-left-width);
22
+ min-width: var(--documentation-left-width);
23
+ }
24
+ &__right-group {
25
+ display: flex;
26
+ flex-direction: row;
27
+ align-items: flex-start;
21
28
  }
22
29
  &__content {
23
30
  flex: 1 1 auto;
24
31
  max-width: var(--documentation-width);
32
+ min-width: 0;
25
33
  padding: var(--documentation-padding);
26
34
 
27
35
  h1 {
@@ -47,7 +55,75 @@
47
55
  border-left: 1px solid var(--gray-border);
48
56
  padding: var(--documentation-padding);
49
57
  width: var(--documentation-right-width);
58
+ min-width: var(--documentation-right-width);
50
59
  }
51
60
 
52
61
  }
53
62
  }
63
+
64
+ @media screen and (max-width: 1300px) {
65
+ #{class-vars.$base-class} {
66
+ .documentation-template {
67
+ &__content {
68
+ max-width: calc(100vw - (6 * var(--spacing-xl)) - (var(--documentation-left-width)) - (var(--documentation-right-width)));
69
+ }
70
+ }
71
+ }
72
+ }
73
+ @media screen and (max-width: #{media-size-vars.$media-size-desktop-small}) {
74
+ #{class-vars.$base-class} {
75
+ .documentation-template {
76
+ &__side-panel-left,
77
+ &__side-panel-right {
78
+ min-width: calc(var(--documentation-left-width) - 50px);
79
+ }
80
+ &__content {
81
+ max-width: calc(100vw - (2 * var(--spacing-xl)) - (var(--documentation-left-width)) - (var(--documentation-right-width)) - 100px);
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ @media screen and (max-width: #{media-size-vars.$media-size-tablet-landscape}) {
88
+ #{class-vars.$base-class} {
89
+ .documentation-template {
90
+ &__right-group {
91
+ flex-direction: column;
92
+ }
93
+ &__side-panel-left {
94
+ padding: var(--documentation-padding-small);
95
+ }
96
+ &__content {
97
+ order: 2;
98
+ max-width: calc(100vw - (2 * var(--spacing)) - (var(--documentation-left-width)) - 50px);
99
+ padding: var(--documentation-padding-small);
100
+ }
101
+ &__side-panel-right {
102
+ order: 1;
103
+ position: relative;
104
+
105
+ // border-left: none;
106
+ // padding-bottom: 0;
107
+
108
+ border-left: 4px solid var(--gray-border);
109
+ padding-bottom: 0;
110
+ padding-top: 0;
111
+ padding-left: var(--spacing);
112
+ margin-left: var(--spacing);
113
+ margin-top: var(--spacing-xl);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ @media screen and (max-width: #{media-size-vars.$media-size-tablet-portrait}) {
119
+ #{class-vars.$base-class} {
120
+ .documentation-template {
121
+ &__side-panel-left {
122
+ display: none;
123
+ }
124
+ &__content {
125
+ max-width: calc(100vw - (2 * var(--spacing)));
126
+ }
127
+ }
128
+ }
129
+ }
@@ -1,4 +1,5 @@
1
1
  @use "../../../1-settings/class-vars";
2
+ @use "../../../1-settings/media-size-vars";
2
3
 
3
4
  #{class-vars.$base-class} {
4
5
  .landing-page-template {
@@ -9,7 +10,19 @@
9
10
  padding-bottom: var(--spacing-xl);
10
11
 
11
12
  .content-width {
12
- max-width: var(--content-width-narrow);
13
+ max-width: calc(var(--content-width-narrow) + (2 * var(--spacing-2xl)));
14
+ padding: 0 var(--spacing-2xl);
15
+ box-sizing: border-box; }
16
+ }
17
+
18
+ }
19
+
20
+ @media screen and (max-width: #{media-size-vars.$media-size-mobile}) {
21
+ #{class-vars.$base-class} {
22
+ .landing-page-template {
23
+ .content-width {
24
+ padding: 0 var(--spacing-l);
25
+ }
13
26
  }
14
27
  }
15
28
  }
@@ -0,0 +1,38 @@
1
+
2
+ @use "../../../../../../@utahdts/utah-design-system/css/1-settings/class-vars";
3
+
4
+ #{class-vars.$base-class} {
5
+ .pre-code {
6
+ &__wrapper {
7
+ position: relative;
8
+ width: 100%;
9
+ }
10
+ }
11
+
12
+ pre {
13
+ position: relative;
14
+ font-family: var(--fixed-width-font-family);
15
+ font-size: .95rem;
16
+ white-space: pre-wrap;
17
+ word-wrap: break-word;
18
+ margin: 0 0 var(--spacing) 0;
19
+ &.gray-block {
20
+ background: var(--gray-light-color);
21
+ padding: var(--spacing-s) var(--spacing-xl) var(--spacing-s) var(--spacing);
22
+ border-radius: var(--radius-medium);
23
+ }
24
+ &.pre-code {
25
+ &--overflow {
26
+ width: 100%;
27
+ overflow-x: scroll;
28
+ box-sizing: border-box;
29
+ }
30
+ &--padded {
31
+ padding: 0 var(--spacing);
32
+ }
33
+ }
34
+ .pre-code__overflow-content {
35
+ width: max-content;
36
+ }
37
+ }
38
+ }
package/dist/style.css CHANGED
@@ -16,8 +16,8 @@ BEM standard: Block, Element, Modifier
16
16
  - cats-r-great--black
17
17
  */
18
18
  /*
19
- ############ _settings-index.scss ############
20
- CSS Class Variables
19
+ ############ _class-vars.scss ############
20
+ CSS Classes - SCSS Variables
21
21
  */
22
22
  /*
23
23
  ############ _spacing.scss ############
@@ -698,13 +698,14 @@ variables and settings
698
698
  --form-checkbox-medium: 1.125rem;
699
699
  --form-checkbox-large: 1.375rem;
700
700
  /* content layout sizes */
701
- --content-width-narrow: 800px;
701
+ --content-width-narrow: 808px;
702
702
  --content-width: 1224px;
703
703
  --content-width-wide: 1432px;
704
704
  --documentation-width: 700px;
705
705
  --documentation-left-width: 200px;
706
706
  --documentation-right-width: 200px;
707
707
  --documentation-padding: var(--spacing-2xl) var(--spacing-xl);
708
+ --documentation-padding-small: var(--spacing-xl) var(--spacing);
708
709
  /* elevation box shadows */
709
710
  --drop-shadow-color: rgba(0, 0, 0, 0.3);
710
711
  --elevation-small: 0 3px 6px var(--drop-shadow-color);
@@ -823,8 +824,8 @@ scss mixins and functions
823
824
  css resets, etc.
824
825
  */
825
826
  /*
826
- ############ _settings-index.scss ############
827
- CSS Class Variables
827
+ ############ _class-vars.scss ############
828
+ CSS Classes - SCSS Variables
828
829
  */
829
830
  /*
830
831
  ############ _elements-index.scss ############
@@ -844,17 +845,20 @@ elemental html: h1, h2, h3, ul, li, etc.
844
845
  .utah-design-system h1 {
845
846
  font-size: var(--font-size-4xl);
846
847
  margin: 0;
848
+ line-height: 1.1;
847
849
  }
848
850
 
849
851
  .utah-design-system h2 {
850
852
  font-size: var(--font-size-3xl);
851
853
  margin: 0;
854
+ line-height: 1.2;
852
855
  }
853
856
 
854
857
  .utah-design-system h3 {
855
858
  font-size: var(--font-size-2xl);
856
859
  font-weight: var(--font-weight-semi-bold);
857
860
  margin: 0;
861
+ line-height: 1.3;
858
862
  }
859
863
 
860
864
  .utah-design-system h4 {
@@ -890,34 +894,6 @@ elemental html: h1, h2, h3, ul, li, etc.
890
894
  background: var(--primary-color-light);
891
895
  }
892
896
 
893
- .utah-design-system pre {
894
- font-family: var(--fixed-width-font-family);
895
- font-size: 0.95rem;
896
- white-space: pre-wrap;
897
- word-wrap: break-word;
898
- margin: 0 0 var(--spacing) 0;
899
- }
900
-
901
- .utah-design-system pre.gray-block {
902
- background: var(--gray-light-color);
903
- padding: var(--spacing-s) var(--spacing);
904
- border-radius: var(--radius-medium);
905
- }
906
-
907
- .utah-design-system pre.pre-block--overflow {
908
- width: 100%;
909
- overflow-x: scroll;
910
- box-sizing: border-box;
911
- }
912
-
913
- .utah-design-system pre.pre-block--padded {
914
- padding: 0 var(--spacing);
915
- }
916
-
917
- .utah-design-system pre .pre-block__overflow-content {
918
- width: max-content;
919
- }
920
-
921
897
  .utah-design-system ul, .utah-design-system ol {
922
898
  padding: 0 0 0 var(--spacing-2xl);
923
899
  margin: 0;
@@ -958,14 +934,18 @@ containers and general design patterns, 2up, 3up, layout grids, etc.
958
934
  }
959
935
 
960
936
  /*
961
- ############ _settings-index.scss ############
962
- CSS Class Variables
937
+ ############ _class-vars.scss ############
938
+ CSS Classes - SCSS Variables
963
939
  */
940
+ .utah-design-system .accordion {
941
+ width: 100%;
942
+ }
943
+
964
944
  .utah-design-system .accordion__header, .utah-design-system .accordion__header.button {
965
- border-radius: 0;
966
- font-size: var(--font-size-2xl);
945
+ border-radius: var(--radius-small);
946
+ font-size: var(--font-size-xl);
967
947
  font-weight: var(--font-weight-bold);
968
- padding: var(--spacing);
948
+ padding: var(--spacing-s) var(--spacing);
969
949
  border: none;
970
950
  display: flex;
971
951
  flex-direction: row;
@@ -974,12 +954,24 @@ CSS Class Variables
974
954
  box-sizing: border-box;
975
955
  }
976
956
 
957
+ .utah-design-system .accordion__header [class*=utds-icon-before-]::before, .utah-design-system .accordion__header.button [class*=utds-icon-before-]::before {
958
+ margin-right: 0;
959
+ font-size: 1.5rem;
960
+ }
961
+
962
+ .utah-design-system .accordion__header--open {
963
+ border-bottom-left-radius: 0;
964
+ border-bottom-right-radius: 0;
965
+ }
966
+
977
967
  .utah-design-system .accordion__content {
978
968
  background: var(--gray-light-color);
979
969
  padding: 0;
980
970
  box-sizing: border-box;
981
971
  height: 0;
982
972
  overflow: hidden;
973
+ border-bottom-left-radius: var(--radius-small);
974
+ border-bottom-right-radius: var(--radius-small);
983
975
  }
984
976
 
985
977
  .utah-design-system .accordion__content--open {
@@ -2125,6 +2117,11 @@ base color swatches for the design system
2125
2117
  color: #699957;
2126
2118
  }
2127
2119
 
2120
+ .utah-design-system fieldset {
2121
+ border: none;
2122
+ padding: 0;
2123
+ }
2124
+
2128
2125
  .utah-design-system .main-menu__wrapper {
2129
2126
  background-color: var(--gray-light-color);
2130
2127
  display: flex;
@@ -2173,9 +2170,13 @@ base color swatches for the design system
2173
2170
  line-height: 1.7;
2174
2171
  }
2175
2172
 
2176
- .utah-design-system .horizontal-menu > ul li a[href] .icon-chevron-down, .utah-design-system .horizontal-menu > ul li button .icon-chevron-down {
2177
- font-size: 1rem;
2178
- margin-right: -2px;
2173
+ .utah-design-system .horizontal-menu > ul li a[href] .menu-item__menu-arrow, .utah-design-system .horizontal-menu > ul li button .menu-item__menu-arrow {
2174
+ font-size: 0.65rem;
2175
+ margin-left: var(--spacing-2xs);
2176
+ }
2177
+
2178
+ .utah-design-system .horizontal-menu > ul li a[href] .menu-item__menu-arrow[class*=utds-icon-before-]::before, .utah-design-system .horizontal-menu > ul li button .menu-item__menu-arrow[class*=utds-icon-before-]::before {
2179
+ margin-right: 0;
2179
2180
  }
2180
2181
 
2181
2182
  .utah-design-system .horizontal-menu > ul li a[href]:hover, .utah-design-system .horizontal-menu > ul li button:hover {
@@ -2380,7 +2381,7 @@ base color swatches for the design system
2380
2381
  }
2381
2382
 
2382
2383
  .utah-design-system .menu-side-panel .menu-item__button-title {
2383
- flex: 1 0 auto;
2384
+ flex: 1 1 auto;
2384
2385
  justify-content: flex-start;
2385
2386
  font-size: var(--font-size-xs);
2386
2387
  padding: var(--spacing-2xs) var(--spacing);
@@ -3191,13 +3192,14 @@ variables and settings
3191
3192
  --form-checkbox-medium: 1.125rem;
3192
3193
  --form-checkbox-large: 1.375rem;
3193
3194
  /* content layout sizes */
3194
- --content-width-narrow: 800px;
3195
+ --content-width-narrow: 808px;
3195
3196
  --content-width: 1224px;
3196
3197
  --content-width-wide: 1432px;
3197
3198
  --documentation-width: 700px;
3198
3199
  --documentation-left-width: 200px;
3199
3200
  --documentation-right-width: 200px;
3200
3201
  --documentation-padding: var(--spacing-2xl) var(--spacing-xl);
3202
+ --documentation-padding-small: var(--spacing-xl) var(--spacing);
3201
3203
  /* elevation box shadows */
3202
3204
  --drop-shadow-color: rgba(0, 0, 0, 0.3);
3203
3205
  --elevation-small: 0 3px 6px var(--drop-shadow-color);
@@ -3573,12 +3575,16 @@ variables and settings
3573
3575
  font-size: 1.3rem;
3574
3576
  }
3575
3577
 
3578
+ /*
3579
+ ############ _media-size-vars.scss ############
3580
+ Media Sizes - SCSS Variables
3581
+ */
3576
3582
  .utah-design-system .documentation-template {
3577
3583
  display: flex;
3578
3584
  flex-direction: row;
3579
3585
  width: 100%;
3580
3586
  max-width: var(--content-width-wide);
3581
- justify-content: space-around;
3587
+ justify-content: center;
3582
3588
  align-items: flex-start;
3583
3589
  }
3584
3590
 
@@ -3591,11 +3597,19 @@ variables and settings
3591
3597
  border-right: 1px solid var(--gray-border);
3592
3598
  padding: var(--documentation-padding);
3593
3599
  width: var(--documentation-left-width);
3600
+ min-width: var(--documentation-left-width);
3601
+ }
3602
+
3603
+ .utah-design-system .documentation-template__right-group {
3604
+ display: flex;
3605
+ flex-direction: row;
3606
+ align-items: flex-start;
3594
3607
  }
3595
3608
 
3596
3609
  .utah-design-system .documentation-template__content {
3597
3610
  flex: 1 1 auto;
3598
3611
  max-width: var(--documentation-width);
3612
+ min-width: 0;
3599
3613
  padding: var(--documentation-padding);
3600
3614
  }
3601
3615
 
@@ -3620,8 +3634,53 @@ variables and settings
3620
3634
  border-left: 1px solid var(--gray-border);
3621
3635
  padding: var(--documentation-padding);
3622
3636
  width: var(--documentation-right-width);
3637
+ min-width: var(--documentation-right-width);
3623
3638
  }
3624
3639
 
3640
+ @media screen and (max-width: 1300px) {
3641
+ .utah-design-system .documentation-template__content {
3642
+ max-width: calc(100vw - 6 * var(--spacing-xl) - (var(--documentation-left-width)) - (var(--documentation-right-width)));
3643
+ }
3644
+ }
3645
+ @media screen and (max-width: 1200px) {
3646
+ .utah-design-system .documentation-template__side-panel-left, .utah-design-system .documentation-template__side-panel-right {
3647
+ min-width: calc(var(--documentation-left-width) - 50px);
3648
+ }
3649
+ .utah-design-system .documentation-template__content {
3650
+ max-width: calc(100vw - 2 * var(--spacing-xl) - (var(--documentation-left-width)) - (var(--documentation-right-width)) - 100px);
3651
+ }
3652
+ }
3653
+ @media screen and (max-width: 1024px) {
3654
+ .utah-design-system .documentation-template__right-group {
3655
+ flex-direction: column;
3656
+ }
3657
+ .utah-design-system .documentation-template__side-panel-left {
3658
+ padding: var(--documentation-padding-small);
3659
+ }
3660
+ .utah-design-system .documentation-template__content {
3661
+ order: 2;
3662
+ max-width: calc(100vw - 2 * var(--spacing) - (var(--documentation-left-width)) - 50px);
3663
+ padding: var(--documentation-padding-small);
3664
+ }
3665
+ .utah-design-system .documentation-template__side-panel-right {
3666
+ order: 1;
3667
+ position: relative;
3668
+ border-left: 4px solid var(--gray-border);
3669
+ padding-bottom: 0;
3670
+ padding-top: 0;
3671
+ padding-left: var(--spacing);
3672
+ margin-left: var(--spacing);
3673
+ margin-top: var(--spacing-xl);
3674
+ }
3675
+ }
3676
+ @media screen and (max-width: 768px) {
3677
+ .utah-design-system .documentation-template__side-panel-left {
3678
+ display: none;
3679
+ }
3680
+ .utah-design-system .documentation-template__content {
3681
+ max-width: calc(100vw - 2 * var(--spacing));
3682
+ }
3683
+ }
3625
3684
  .utah-design-system .landing-page-template {
3626
3685
  display: flex;
3627
3686
  justify-content: center;
@@ -3631,7 +3690,48 @@ variables and settings
3631
3690
  }
3632
3691
 
3633
3692
  .utah-design-system .landing-page-template .content-width {
3634
- max-width: var(--content-width-narrow);
3693
+ max-width: calc(var(--content-width-narrow) + 2 * var(--spacing-2xl));
3694
+ padding: 0 var(--spacing-2xl);
3695
+ box-sizing: border-box;
3696
+ }
3697
+
3698
+ @media screen and (max-width: 640px) {
3699
+ .utah-design-system .landing-page-template .content-width {
3700
+ padding: 0 var(--spacing-l);
3701
+ }
3702
+ }
3703
+ .utah-design-system .pre-code__wrapper {
3704
+ position: relative;
3705
+ width: 100%;
3706
+ }
3707
+
3708
+ .utah-design-system pre {
3709
+ position: relative;
3710
+ font-family: var(--fixed-width-font-family);
3711
+ font-size: 0.95rem;
3712
+ white-space: pre-wrap;
3713
+ word-wrap: break-word;
3714
+ margin: 0 0 var(--spacing) 0;
3715
+ }
3716
+
3717
+ .utah-design-system pre.gray-block {
3718
+ background: var(--gray-light-color);
3719
+ padding: var(--spacing-s) var(--spacing-xl) var(--spacing-s) var(--spacing);
3720
+ border-radius: var(--radius-medium);
3721
+ }
3722
+
3723
+ .utah-design-system pre.pre-code--overflow {
3724
+ width: 100%;
3725
+ overflow-x: scroll;
3726
+ box-sizing: border-box;
3727
+ }
3728
+
3729
+ .utah-design-system pre.pre-code--padded {
3730
+ padding: 0 var(--spacing);
3731
+ }
3732
+
3733
+ .utah-design-system pre .pre-code__overflow-content {
3734
+ width: max-content;
3635
3735
  }
3636
3736
 
3637
3737
  .utah-design-system input.input--height-small,
@@ -3683,6 +3783,10 @@ variables and settings
3683
3783
  transform: rotate(1turn);
3684
3784
  }
3685
3785
  }
3786
+ .utah-design-system .table-wrapper {
3787
+ overflow-x: scroll;
3788
+ }
3789
+
3686
3790
  .utah-design-system table {
3687
3791
  border-collapse: collapse;
3688
3792
  }
@@ -7,7 +7,7 @@ const index = "";
7
7
  const name = "@utahdts/utah-design-system";
8
8
  const description = "Utah Design System React Library";
9
9
  const displayName = "Utah Design System React Library";
10
- const version$1 = "0.8.0";
10
+ const version$1 = "0.9.5";
11
11
  const exports = {
12
12
  ".": {
13
13
  "development-local": "./index.js",
@@ -65,7 +65,7 @@ const bugs = {
65
65
  };
66
66
  const homepage = "https://github.com/utahdts/utah-design-system";
67
67
  const dependencies = {
68
- "@utahdts/utah-design-system-header": "0.8.0",
68
+ "@utahdts/utah-design-system-header": "0.9.5",
69
69
  lodash: "4.17.21",
70
70
  "prop-types": "15.8.1",
71
71
  react: "18.x",
@@ -75,22 +75,14 @@ const dependencies = {
75
75
  uuid: "9.0.0"
76
76
  };
77
77
  const devDependencies = {
78
- "@types/react": "18.2.0",
78
+ "@types/react": "18.2.7",
79
79
  "@types/react-dom": "18.2.4",
80
80
  "@vitejs/plugin-react": "4.0.0",
81
- "@vitest/coverage-istanbul": "0.31.0",
82
- eslint: "8.40.0",
83
- "eslint-config-airbnb": "19.0.4",
84
- "eslint-plugin-import": "2.27.5",
85
- "eslint-plugin-jsx-a11y": "6.7.1",
86
- "eslint-plugin-react": "7.32.2",
87
- "eslint-plugin-react-hooks": "4.6.0",
88
- "eslint-plugin-react-refresh": "0.4.1",
89
- jsdom: "22.0.0",
81
+ "@vitest/coverage-istanbul": "0.31.2",
82
+ jsdom: "22.1.0",
90
83
  sass: "1.62.1",
91
- vite: "4.3.7",
92
- "vite-plugin-eslint": "1.8.1",
93
- vitest: "0.31.0"
84
+ vite: "4.3.9",
85
+ vitest: "0.31.2"
94
86
  };
95
87
  const type = "module";
96
88
  const packageJson = {
@@ -2642,6 +2634,7 @@ const propTypes$S = {
2642
2634
  children: PropTypes.node.isRequired,
2643
2635
  className: PropTypes.string,
2644
2636
  contentClassName: PropTypes.string,
2637
+ headingLevel: PropTypes.number,
2645
2638
  headerClassName: PropTypes.string,
2646
2639
  headerContent: PropTypes.node.isRequired,
2647
2640
  isOpen: PropTypes.bool,
@@ -2650,6 +2643,7 @@ const propTypes$S = {
2650
2643
  const defaultProps$S = {
2651
2644
  className: void 0,
2652
2645
  contentClassName: void 0,
2646
+ headingLevel: 2,
2653
2647
  headerClassName: void 0,
2654
2648
  isOpen: void 0,
2655
2649
  onToggle: void 0
@@ -2658,6 +2652,7 @@ function Accordion({
2658
2652
  children,
2659
2653
  className,
2660
2654
  contentClassName,
2655
+ headingLevel,
2661
2656
  headerClassName,
2662
2657
  headerContent,
2663
2658
  isOpen,
@@ -2674,16 +2669,17 @@ function Accordion({
2674
2669
  setStateIsOpen(!stateIsOpen);
2675
2670
  }
2676
2671
  }
2672
+ const HeadingTag = `h${headingLevel}`;
2677
2673
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: joinClassNames(["accordion", className]), children: [
2678
2674
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
2679
2675
  "button",
2680
2676
  {
2681
- className: joinClassNames(["accordion__header", headerClassName]),
2677
+ className: joinClassNames(["accordion__header", headerClassName, stateIsOpen ? "accordion__header--open" : ""]),
2682
2678
  type: "button",
2683
2679
  onClick: handleEvent(toggleAccordion),
2684
2680
  children: [
2685
- headerContent,
2686
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `material-symbols-outlined icon-button__icon ${stateIsOpen ? "" : "icon-button__icon--rotate180"}`, children: "expand_circle_down" })
2681
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeadingTag, { children: headerContent }),
2682
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `utds-icon-before-circle-chevron-up icon-button__icon ${stateIsOpen ? "" : "icon-button__icon--rotate180"}` })
2687
2683
  ]
2688
2684
  }
2689
2685
  ),
@@ -36364,16 +36360,20 @@ const TableBodyDataRowContext = React__default.createContext({});
36364
36360
  const TableContext = createContext({
36365
36361
  allData: [],
36366
36362
  filteredData: [],
36363
+ // eslint-disable-next-line no-console
36367
36364
  registerSortingRule: (sortingRule) => {
36368
36365
  console.error("Context not yet initialized: registerSortingRule", sortingRule);
36369
36366
  },
36370
36367
  // unregister a rule for sorting, generally when a <TableSortingRule> unmounts
36368
+ // eslint-disable-next-line no-console
36371
36369
  unregisterSortingRule: (recordFieldPath) => {
36372
36370
  console.error("Context not yet initialized: unregisterSortingRule", recordFieldPath);
36373
36371
  },
36372
+ // eslint-disable-next-line no-console
36374
36373
  setBodyDataForComponentGuid: (guid, allData, filteredData) => {
36375
36374
  console.error("Context not yet initialized: setBodyDataForComponentGuid", guid, allData, filteredData);
36376
36375
  },
36376
+ // eslint-disable-next-line no-console
36377
36377
  setState: (arg) => {
36378
36378
  console.error("Context not yet initialized: setState", arg);
36379
36379
  },
@@ -36502,7 +36502,6 @@ function TableCell({
36502
36502
  ref: innerRef,
36503
36503
  onClick,
36504
36504
  onDoubleClick,
36505
- onKeyPress: () => console.log("what should keypress on td do?"),
36506
36505
  role: "gridcell",
36507
36506
  ...rest,
36508
36507
  children
@@ -37662,7 +37661,7 @@ function TableWrapper({
37662
37661
  }),
37663
37662
  [state]
37664
37663
  );
37665
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: joinClassNames("some-table-wrapper-className", className), id, ref: innerRef, ...rest, children }) });
37664
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: joinClassNames("table-wrapper", className), id, ref: innerRef, ...rest, children }) });
37666
37665
  }
37667
37666
  TableWrapper.propTypes = propTypes$3;
37668
37667
  TableWrapper.defaultProps = defaultProps$3;
@@ -37681,8 +37680,10 @@ function DocumentationTemplate({
37681
37680
  }) {
37682
37681
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "documentation-template", children: [
37683
37682
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-left", children: sidePanelLeftContent }),
37684
- /* @__PURE__ */ jsxRuntimeExports.jsx("main", { className: "documentation-template__content", ref: contentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) }),
37685
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-right", children: sidePanelRightContent })
37683
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "documentation-template__right-group", children: [
37684
+ /* @__PURE__ */ jsxRuntimeExports.jsx("main", { className: "documentation-template__content", ref: contentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) }),
37685
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-right", children: sidePanelRightContent })
37686
+ ] })
37686
37687
  ] }) });
37687
37688
  }
37688
37689
  DocumentationTemplate.propTypes = propTypes$2;
@@ -37819,9 +37820,11 @@ const SettingsShape = PropTypes.shape({
37819
37820
  domLocationTarget: DomLocationTargetShape,
37820
37821
  footer: FooterSettingsShape,
37821
37822
  logo: LogoShape,
37822
- mainMenu: MainMenuShape,
37823
+ // mainMenu can be 'false' for the interactive presets
37824
+ mainMenu: PropTypes.oneOfType([MainMenuShape, PropTypes.bool]),
37823
37825
  mediaSizes: MediaSizesShape.isRequired,
37824
- onSearch: PropTypes.func,
37826
+ // onSearch can be 'false' for the interactive presets
37827
+ onSearch: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
37825
37828
  showTitle: PropTypes.bool.isRequired,
37826
37829
  size: PropTypes.oneOf(Object.values(sizes)),
37827
37830
  title: PropTypes.string.isRequired,
@@ -23,7 +23,7 @@
23
23
  const name = "@utahdts/utah-design-system";
24
24
  const description = "Utah Design System React Library";
25
25
  const displayName = "Utah Design System React Library";
26
- const version$1 = "0.8.0";
26
+ const version$1 = "0.9.5";
27
27
  const exports$1 = {
28
28
  ".": {
29
29
  "development-local": "./index.js",
@@ -81,7 +81,7 @@
81
81
  };
82
82
  const homepage = "https://github.com/utahdts/utah-design-system";
83
83
  const dependencies = {
84
- "@utahdts/utah-design-system-header": "0.8.0",
84
+ "@utahdts/utah-design-system-header": "0.9.5",
85
85
  lodash: "4.17.21",
86
86
  "prop-types": "15.8.1",
87
87
  react: "18.x",
@@ -91,22 +91,14 @@
91
91
  uuid: "9.0.0"
92
92
  };
93
93
  const devDependencies = {
94
- "@types/react": "18.2.0",
94
+ "@types/react": "18.2.7",
95
95
  "@types/react-dom": "18.2.4",
96
96
  "@vitejs/plugin-react": "4.0.0",
97
- "@vitest/coverage-istanbul": "0.31.0",
98
- eslint: "8.40.0",
99
- "eslint-config-airbnb": "19.0.4",
100
- "eslint-plugin-import": "2.27.5",
101
- "eslint-plugin-jsx-a11y": "6.7.1",
102
- "eslint-plugin-react": "7.32.2",
103
- "eslint-plugin-react-hooks": "4.6.0",
104
- "eslint-plugin-react-refresh": "0.4.1",
105
- jsdom: "22.0.0",
97
+ "@vitest/coverage-istanbul": "0.31.2",
98
+ jsdom: "22.1.0",
106
99
  sass: "1.62.1",
107
- vite: "4.3.7",
108
- "vite-plugin-eslint": "1.8.1",
109
- vitest: "0.31.0"
100
+ vite: "4.3.9",
101
+ vitest: "0.31.2"
110
102
  };
111
103
  const type = "module";
112
104
  const packageJson = {
@@ -2658,6 +2650,7 @@
2658
2650
  children: PropTypes.node.isRequired,
2659
2651
  className: PropTypes.string,
2660
2652
  contentClassName: PropTypes.string,
2653
+ headingLevel: PropTypes.number,
2661
2654
  headerClassName: PropTypes.string,
2662
2655
  headerContent: PropTypes.node.isRequired,
2663
2656
  isOpen: PropTypes.bool,
@@ -2666,6 +2659,7 @@
2666
2659
  const defaultProps$S = {
2667
2660
  className: void 0,
2668
2661
  contentClassName: void 0,
2662
+ headingLevel: 2,
2669
2663
  headerClassName: void 0,
2670
2664
  isOpen: void 0,
2671
2665
  onToggle: void 0
@@ -2674,6 +2668,7 @@
2674
2668
  children,
2675
2669
  className,
2676
2670
  contentClassName,
2671
+ headingLevel,
2677
2672
  headerClassName,
2678
2673
  headerContent,
2679
2674
  isOpen,
@@ -2690,16 +2685,17 @@
2690
2685
  setStateIsOpen(!stateIsOpen);
2691
2686
  }
2692
2687
  }
2688
+ const HeadingTag = `h${headingLevel}`;
2693
2689
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: joinClassNames(["accordion", className]), children: [
2694
2690
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
2695
2691
  "button",
2696
2692
  {
2697
- className: joinClassNames(["accordion__header", headerClassName]),
2693
+ className: joinClassNames(["accordion__header", headerClassName, stateIsOpen ? "accordion__header--open" : ""]),
2698
2694
  type: "button",
2699
2695
  onClick: handleEvent(toggleAccordion),
2700
2696
  children: [
2701
- headerContent,
2702
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `material-symbols-outlined icon-button__icon ${stateIsOpen ? "" : "icon-button__icon--rotate180"}`, children: "expand_circle_down" })
2697
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HeadingTag, { children: headerContent }),
2698
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `utds-icon-before-circle-chevron-up icon-button__icon ${stateIsOpen ? "" : "icon-button__icon--rotate180"}` })
2703
2699
  ]
2704
2700
  }
2705
2701
  ),
@@ -36380,16 +36376,20 @@
36380
36376
  const TableContext = React.createContext({
36381
36377
  allData: [],
36382
36378
  filteredData: [],
36379
+ // eslint-disable-next-line no-console
36383
36380
  registerSortingRule: (sortingRule) => {
36384
36381
  console.error("Context not yet initialized: registerSortingRule", sortingRule);
36385
36382
  },
36386
36383
  // unregister a rule for sorting, generally when a <TableSortingRule> unmounts
36384
+ // eslint-disable-next-line no-console
36387
36385
  unregisterSortingRule: (recordFieldPath) => {
36388
36386
  console.error("Context not yet initialized: unregisterSortingRule", recordFieldPath);
36389
36387
  },
36388
+ // eslint-disable-next-line no-console
36390
36389
  setBodyDataForComponentGuid: (guid, allData, filteredData) => {
36391
36390
  console.error("Context not yet initialized: setBodyDataForComponentGuid", guid, allData, filteredData);
36392
36391
  },
36392
+ // eslint-disable-next-line no-console
36393
36393
  setState: (arg) => {
36394
36394
  console.error("Context not yet initialized: setState", arg);
36395
36395
  },
@@ -36518,7 +36518,6 @@
36518
36518
  ref: innerRef,
36519
36519
  onClick,
36520
36520
  onDoubleClick,
36521
- onKeyPress: () => console.log("what should keypress on td do?"),
36522
36521
  role: "gridcell",
36523
36522
  ...rest,
36524
36523
  children
@@ -37678,7 +37677,7 @@
37678
37677
  }),
37679
37678
  [state]
37680
37679
  );
37681
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: joinClassNames("some-table-wrapper-className", className), id, ref: innerRef, ...rest, children }) });
37680
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: joinClassNames("table-wrapper", className), id, ref: innerRef, ...rest, children }) });
37682
37681
  }
37683
37682
  TableWrapper.propTypes = propTypes$3;
37684
37683
  TableWrapper.defaultProps = defaultProps$3;
@@ -37697,8 +37696,10 @@
37697
37696
  }) {
37698
37697
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "documentation-template", children: [
37699
37698
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-left", children: sidePanelLeftContent }),
37700
- /* @__PURE__ */ jsxRuntimeExports.jsx("main", { className: "documentation-template__content", ref: contentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) }),
37701
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-right", children: sidePanelRightContent })
37699
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "documentation-template__right-group", children: [
37700
+ /* @__PURE__ */ jsxRuntimeExports.jsx("main", { className: "documentation-template__content", ref: contentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) }),
37701
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "documentation-template__side-panel-right", children: sidePanelRightContent })
37702
+ ] })
37702
37703
  ] }) });
37703
37704
  }
37704
37705
  DocumentationTemplate.propTypes = propTypes$2;
@@ -37835,9 +37836,11 @@
37835
37836
  domLocationTarget: DomLocationTargetShape,
37836
37837
  footer: FooterSettingsShape,
37837
37838
  logo: LogoShape,
37838
- mainMenu: MainMenuShape,
37839
+ // mainMenu can be 'false' for the interactive presets
37840
+ mainMenu: PropTypes.oneOfType([MainMenuShape, PropTypes.bool]),
37839
37841
  mediaSizes: MediaSizesShape.isRequired,
37840
- onSearch: PropTypes.func,
37842
+ // onSearch can be 'false' for the interactive presets
37843
+ onSearch: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
37841
37844
  showTitle: PropTypes.bool.isRequired,
37842
37845
  size: PropTypes.oneOf(Object.values(utahDesignSystemHeader.sizes)),
37843
37846
  title: PropTypes.string.isRequired,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@utahdts/utah-design-system",
3
3
  "description": "Utah Design System React Library",
4
4
  "displayName": "Utah Design System React Library",
5
- "version": "0.8.0",
5
+ "version": "0.9.5",
6
6
  "exports": {
7
7
  ".": {
8
8
  "development-local": "./index.js",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "homepage": "https://github.com/utahdts/utah-design-system",
62
62
  "dependencies": {
63
- "@utahdts/utah-design-system-header": "0.8.0",
63
+ "@utahdts/utah-design-system-header": "0.9.5",
64
64
  "lodash": "4.17.21",
65
65
  "prop-types": "15.8.1",
66
66
  "react": "18.x",
@@ -70,22 +70,14 @@
70
70
  "uuid": "9.0.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@types/react": "18.2.0",
73
+ "@types/react": "18.2.7",
74
74
  "@types/react-dom": "18.2.4",
75
75
  "@vitejs/plugin-react": "4.0.0",
76
- "@vitest/coverage-istanbul": "0.31.0",
77
- "eslint": "8.40.0",
78
- "eslint-config-airbnb": "19.0.4",
79
- "eslint-plugin-import": "2.27.5",
80
- "eslint-plugin-jsx-a11y": "6.7.1",
81
- "eslint-plugin-react": "7.32.2",
82
- "eslint-plugin-react-hooks": "4.6.0",
83
- "eslint-plugin-react-refresh": "0.4.1",
84
- "jsdom": "22.0.0",
76
+ "@vitest/coverage-istanbul": "0.31.2",
77
+ "jsdom": "22.1.0",
85
78
  "sass": "1.62.1",
86
- "vite": "4.3.7",
87
- "vite-plugin-eslint": "1.8.1",
88
- "vitest": "0.31.0"
79
+ "vite": "4.3.9",
80
+ "vitest": "0.31.2"
89
81
  },
90
82
  "type": "module"
91
83
  }
@@ -7,6 +7,7 @@ const propTypes = {
7
7
  children: PropTypes.node.isRequired,
8
8
  className: PropTypes.string,
9
9
  contentClassName: PropTypes.string,
10
+ headingLevel: PropTypes.number,
10
11
  headerClassName: PropTypes.string,
11
12
  headerContent: PropTypes.node.isRequired,
12
13
  isOpen: PropTypes.bool,
@@ -15,6 +16,7 @@ const propTypes = {
15
16
  const defaultProps = {
16
17
  className: undefined,
17
18
  contentClassName: undefined,
19
+ headingLevel: 2,
18
20
  headerClassName: undefined,
19
21
  isOpen: undefined,
20
22
  onToggle: undefined,
@@ -24,6 +26,7 @@ function Accordion({
24
26
  children,
25
27
  className,
26
28
  contentClassName,
29
+ headingLevel,
27
30
  headerClassName,
28
31
  headerContent,
29
32
  isOpen,
@@ -42,15 +45,17 @@ function Accordion({
42
45
  setStateIsOpen(!stateIsOpen);
43
46
  }
44
47
  }
48
+ const HeadingTag = `h${headingLevel}`;
49
+
45
50
  return (
46
51
  <div className={joinClassNames(['accordion', className])}>
47
52
  <button
48
- className={joinClassNames(['accordion__header', headerClassName])}
53
+ className={joinClassNames(['accordion__header', headerClassName, stateIsOpen ? 'accordion__header--open' : ''])}
49
54
  type="button"
50
55
  onClick={handleEvent(toggleAccordion)}
51
56
  >
52
- {headerContent}
53
- <span className={`material-symbols-outlined icon-button__icon ${stateIsOpen ? '' : 'icon-button__icon--rotate180'}`}>expand_circle_down</span>
57
+ <HeadingTag>{headerContent}</HeadingTag>
58
+ <span className={`utds-icon-before-circle-chevron-up icon-button__icon ${stateIsOpen ? '' : 'icon-button__icon--rotate180'}`} />
54
59
  </button>
55
60
 
56
61
  <div className={joinClassNames(['accordion__content', contentClassName, stateIsOpen ? 'accordion__content--open' : ''])}>
@@ -35,7 +35,6 @@ function TableCell({
35
35
  ref={innerRef}
36
36
  onClick={onClick}
37
37
  onDoubleClick={onDoubleClick}
38
- onKeyPress={() => console.log('what should keypress on td do?')}
39
38
  role="gridcell"
40
39
  {...rest}
41
40
  >
@@ -168,7 +168,7 @@ function TableWrapper({
168
168
  );
169
169
  return (
170
170
  <TableContext.Provider value={contextValue}>
171
- <div className={joinClassNames('some-table-wrapper-className', className)} id={id} ref={innerRef} {...rest}>
171
+ <div className={joinClassNames('table-wrapper', className)} id={id} ref={innerRef} {...rest}>
172
172
  {children}
173
173
  </div>
174
174
  </TableContext.Provider>
@@ -3,10 +3,14 @@ import { createContext } from 'react';
3
3
  const TableContext = createContext({
4
4
  allData: [],
5
5
  filteredData: [],
6
+ // eslint-disable-next-line no-console
6
7
  registerSortingRule: (sortingRule) => { console.error('Context not yet initialized: registerSortingRule', sortingRule); },
7
8
  // unregister a rule for sorting, generally when a <TableSortingRule> unmounts
9
+ // eslint-disable-next-line no-console
8
10
  unregisterSortingRule: (recordFieldPath) => { console.error('Context not yet initialized: unregisterSortingRule', recordFieldPath); },
11
+ // eslint-disable-next-line no-console
9
12
  setBodyDataForComponentGuid: (guid, allData, filteredData) => { console.error('Context not yet initialized: setBodyDataForComponentGuid', guid, allData, filteredData); },
13
+ // eslint-disable-next-line no-console
10
14
  setState: (arg) => { console.error('Context not yet initialized: setState', arg); },
11
15
  state: {},
12
16
  });
@@ -21,11 +21,13 @@ function DocumentationTemplate({
21
21
  <div className="documentation-template__side-panel-left">
22
22
  {sidePanelLeftContent}
23
23
  </div>
24
- <main className="documentation-template__content" ref={contentRef}>
25
- <Content />
26
- </main>
27
- <div className="documentation-template__side-panel-right">
28
- {sidePanelRightContent}
24
+ <div className="documentation-template__right-group">
25
+ <main className="documentation-template__content" ref={contentRef}>
26
+ <Content />
27
+ </main>
28
+ <div className="documentation-template__side-panel-right">
29
+ {sidePanelRightContent}
30
+ </div>
29
31
  </div>
30
32
  </div>
31
33
  </div>
@@ -18,9 +18,11 @@ export default PropTypes.shape({
18
18
  domLocationTarget: DomLocationTargetShape,
19
19
  footer: FooterSettingsShape,
20
20
  logo: LogoShape,
21
- mainMenu: MainMenuShape,
21
+ // mainMenu can be 'false' for the interactive presets
22
+ mainMenu: PropTypes.oneOfType([MainMenuShape, PropTypes.bool]),
22
23
  mediaSizes: MediaSizesShape.isRequired,
23
- onSearch: PropTypes.func,
24
+ // onSearch can be 'false' for the interactive presets
25
+ onSearch: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
24
26
  showTitle: PropTypes.bool.isRequired,
25
27
  size: PropTypes.oneOf(Object.values(sizes)),
26
28
  title: PropTypes.string.isRequired,