@utahdts/utah-design-system 4.3.0 → 5.0.1

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 (27) hide show
  1. package/css/1-settings/_color-swatches.scss +74 -0
  2. package/css/1-settings/_font-stuff.scss +52 -2
  3. package/css/1-settings/_settings-index.scss +91 -12
  4. package/css/6-components/base-components/containers/_drawer.scss +1 -1
  5. package/css/6-components/base-components/containers/_tab-group.scss +3 -0
  6. package/css/6-components/base-components/footer/_utah-footer.scss +4 -1
  7. package/css/6-components/base-components/forms/_text-input.scss +1 -0
  8. package/css/6-components/base-components/navigation/_main-menu.scss +8 -3
  9. package/css/6-components/base-components/navigation/_vertical-menu.scss +1 -0
  10. package/css/6-components/base-components/popups/_search-modal.scss +8 -0
  11. package/css/6-components/base-components/widgetsIndicators/_badge.scss +2 -2
  12. package/css/6-components/project-components/_swatch-list.scss +5 -2
  13. package/css/6-components/utah-header/_badge.scss +2 -2
  14. package/css/6-components/utah-header/_citizen-experience.scss +16 -0
  15. package/css/6-components/utah-header/_logos.scss +22 -6
  16. package/css/6-components/utah-header/_mobile-menu.scss +3 -3
  17. package/css/6-components/utah-header/_notifications.scss +200 -0
  18. package/css/6-components/utah-header/_official-banner.scss +85 -0
  19. package/css/6-components/utah-header/_official-website-popup.scss +3 -2
  20. package/css/6-components/utah-header/_utah-header-wrapper.scss +12 -1
  21. package/css/6-components/utah-header/index.scss +2 -0
  22. package/dist/style.css +435 -38
  23. package/dist/utah-design-system.es.js +7455 -7232
  24. package/dist/utah-design-system.umd.js +7737 -7340
  25. package/package.json +14 -14
  26. package/react/components/table/TableWrapper.jsx +7 -0
  27. package/react/components/table/useCurrentValuesFromStateContext.js +1 -2
@@ -0,0 +1,200 @@
1
+ @use "../../1-settings/class-vars";
2
+ @use "../../1-settings/color-swatches.scss";
3
+
4
+ #{class-vars.$base-class} {
5
+ .utds {
6
+ &-notifications-drawer {
7
+ .drawer__inner {
8
+ max-width: 350px;
9
+ color: var(--gray-color);
10
+ background: var(--gray-light-color);
11
+ }
12
+ .drawer__title {
13
+ background: white;
14
+ height: 38px;
15
+ font-size: 1.5rem;
16
+ display: flex;
17
+ align-items: center;
18
+ gap: .5rem;
19
+ box-sizing: content-box;
20
+ }
21
+ .utds-icon-before-alert {
22
+ font-size: 1.2rem;
23
+ }
24
+ &__header-buttons {
25
+ background: var(--gray-light-color);
26
+ display: flex;
27
+ gap: var(--spacing-s);
28
+ padding: var(--spacing);
29
+ border-bottom: 1px solid var(--gray-3-1-contrast);
30
+
31
+ .button {
32
+ padding: 0 var(--spacing);
33
+ }
34
+ }
35
+ a.notifications-settings-button {
36
+ background: var(--gray-color);
37
+ color: white;
38
+ fill: white;
39
+ &:hover {
40
+ background-color: var(--gray-dark-color);
41
+ box-shadow: none;
42
+ color: white;
43
+ fill: white;
44
+ }
45
+ &:focus-visible {
46
+ outline: 2px solid var(--notifications-drawer-color);
47
+ outline-offset: 2px;
48
+ transition: none;
49
+ }
50
+ }
51
+
52
+ .utds-notify-list-item:focus, .utds-notify-list-item:focus-visible, [tabindex]:focus, [tabindex]:focus-visible {
53
+ outline: 3px solid var(--notifications-drawer-color);
54
+ outline-offset: -3px;
55
+ border: none;
56
+ border-bottom: 1px solid var(--gray-3-1-contrast);
57
+ box-shadow: none;
58
+ }
59
+
60
+ .button--primary-color {
61
+ border-color: var(--notifications-drawer-color);
62
+ color: var(--notifications-drawer-color);
63
+ &:hover {
64
+ background-color: var(--notifications-drawer-color);
65
+ color: white;
66
+ }
67
+ }
68
+
69
+ button.button--solid.button--primary-color {
70
+ background-color: var(--notifications-drawer-color);
71
+ border-color: var(--notifications-drawer-color);
72
+ color: white;
73
+ &:hover {
74
+ background-color: var(--notifications-drawer-color-dark);
75
+ border-color: var(--notifications-drawer-color-dark);
76
+ }
77
+ }
78
+ }
79
+
80
+ &-notifications__list {
81
+ margin: 0;
82
+ padding: 0;
83
+ list-style-type: none;
84
+ height: calc(100vh - (55px + 68px));
85
+ overflow: auto;
86
+ overscroll-behavior: contain;
87
+ }
88
+
89
+ &-notify-list-item {
90
+ border-bottom: 1px solid var(--gray-3-1-contrast);
91
+ display: flex;
92
+ flex-direction: column;
93
+ gap: var(--spacing-2xs);
94
+ padding: 0 0 var(--spacing-s) 0;
95
+ background: white;
96
+
97
+ &:focus-visible, &:focus {
98
+ outline: 3px solid var(--notifications-drawer-color);
99
+ outline-offset: -3px;
100
+ }
101
+ &:hover {
102
+ background: var(--gray-light-color);
103
+ cursor: pointer;
104
+ }
105
+
106
+ &__header {
107
+ position: relative;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ gap: var(--spacing-s);
112
+ }
113
+ &__title {
114
+ font-size: var(--font-size-m);
115
+ line-height: 1.1;
116
+ flex: 1;
117
+ font-weight: bold;
118
+ }
119
+ &__status {
120
+ position: absolute;
121
+ top: 4px;
122
+ left: 0;
123
+ height: calc(100% - 4px);
124
+ width: 6px;
125
+ border-top-right-radius: 6px;
126
+ border-bottom-right-radius: 6px;
127
+ background: var(--notifications-drawer-color);
128
+ &--is-read {
129
+ background: transparent;
130
+ font-weight: normal;
131
+ }
132
+ }
133
+ &__icon {
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ padding: var(--spacing-s) 0 var(--spacing-s) var(--spacing);
138
+ span {
139
+ font-size: 1.5rem;
140
+ &[class*='error'] {
141
+ color: color-swatches.$red-rock-04;
142
+ }
143
+ &[class*='clock'] {
144
+ color: color-swatches.$aspen-green-04;
145
+ }
146
+ &[class*='info'] {
147
+ color: color-swatches.$azul-04;
148
+ }
149
+ &[class*='help'] {
150
+ color: color-swatches.$neutral-gray-07;
151
+ }
152
+ &[class*='account'] {
153
+ color: color-swatches.$azul-04;
154
+ }
155
+ &[class*='utds-icon-before']::before {
156
+ margin: 0;
157
+ }
158
+ }
159
+ }
160
+ &__time {
161
+ padding: var(--spacing-s) var(--spacing-s) var(--spacing-s) 0;
162
+ color: var(--gray-medium-color);
163
+ }
164
+ &__brand-wrapper {
165
+ display: flex;
166
+ height: 34px;
167
+ }
168
+ &__brand {
169
+ max-height: 35px;
170
+ min-width: 0;
171
+ }
172
+ &__message {
173
+ padding: 0 var(--spacing);
174
+ line-height: 1.3;
175
+ }
176
+ &__footer {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ padding: var(--spacing-xs) var(--spacing) 0 var(--spacing);
181
+
182
+ .utds-notify-list-item__link {
183
+ flex: 0 0 auto;
184
+ }
185
+ }
186
+
187
+ &:last-of-type {
188
+ border-bottom: 1px solid var(--gray-3-1-contrast);
189
+ }
190
+
191
+ &--busy-card {
192
+ padding: 3rem 1rem;
193
+ }
194
+
195
+ &--is-read {
196
+ background-color: var(--gray-light-color);
197
+ }
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,85 @@
1
+ .utds-official-website {
2
+ &__wrapper {
3
+ button {
4
+ padding: 0;
5
+ border: none;
6
+ display: inline-flex;
7
+ min-height: 0;
8
+ background: transparent;
9
+ color: var(--gray-light-color);
10
+ font-size: var(--font-size-xs);
11
+ border-radius: 0;
12
+
13
+ span {
14
+ text-decoration: underline;
15
+ }
16
+
17
+ svg {
18
+ margin-left: var(--spacing-2xs);
19
+ }
20
+
21
+ &:hover {
22
+ color: white;
23
+ }
24
+
25
+ &:active {
26
+ scale: 1;
27
+ box-shadow: none;
28
+ }
29
+
30
+ &[aria-expanded="true"] {
31
+ svg {
32
+ transform: rotate(180deg);
33
+ }
34
+ }
35
+
36
+ &:focus-visible {
37
+ outline: 2px solid #FFF;
38
+ outline-offset: 2px;
39
+ border-radius: var(--radius-small1x);
40
+ }
41
+ }
42
+ }
43
+
44
+ &__banner {
45
+ padding: var(--spacing-3xs) var(--spacing-l);
46
+ background: var(--gray-color);
47
+ color: var(--gray-light-color);
48
+ font-size: var(--font-size-xs);
49
+ }
50
+
51
+ &-popup__wrapper {
52
+ background: var(--gray-dark-color);
53
+ }
54
+
55
+ &__button-title--mobile {
56
+ display: none;
57
+ }
58
+ }
59
+
60
+ @media screen and (max-width: 990px) {
61
+ .utah-design-system .utds-official-website-popup__content {
62
+ flex-wrap: wrap;
63
+ gap: var(--spacing-l);
64
+ flex-direction: column;
65
+ align-items: flex-start;
66
+ }
67
+ }
68
+
69
+ @media screen and (max-width: 768px) {
70
+ .utds-official-website__banner > span:first-child, .utds-official-website__button-title--desktop {
71
+ display: none;
72
+ }
73
+ .utds-official-website__button-title--mobile {
74
+ display: inline;
75
+ }
76
+ .utds-official-website__banner {
77
+ padding: var(--spacing-3xs) 0;
78
+ }
79
+ .utds-official-website__button {
80
+ width: 100%;
81
+ outline-offset: 0 !important;
82
+ justify-content: flex-start !important;
83
+ padding: 0 var(--spacing-l) !important;
84
+ }
85
+ }
@@ -1,7 +1,7 @@
1
1
  .utah-design-system {
2
2
  &.utds-official-website-popup {
3
3
  &__wrapper {
4
- background: var(--gray-color);
4
+ background: var(--gray-dark-color);
5
5
  color: white;
6
6
  padding: var(--spacing-l);
7
7
  position: relative;
@@ -63,7 +63,7 @@
63
63
  margin-top: var(--spacing-xs);
64
64
  }
65
65
  &__official-image {
66
- width: 150px;
66
+ width: 325px;
67
67
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, Helvetica, sans-serif;
68
68
  font-weight: normal;
69
69
  font-size: 14px;
@@ -72,6 +72,7 @@
72
72
  }
73
73
  &__copyright {
74
74
  font-size: var(--font-size-s);
75
+ margin-left: 27%;
75
76
  }
76
77
  }
77
78
  }
@@ -1,6 +1,6 @@
1
1
  .utds {
2
2
  &-header {
3
- padding: var(--spacing-s) var(--spacing-l);
3
+ padding: var(--spacing-s) var(--spacing);
4
4
  border-bottom: 1px solid #d7d7d7 !important;
5
5
  width: 100%;
6
6
  justify-content: flex-start;
@@ -19,6 +19,17 @@
19
19
  &--small {
20
20
  height: 60px;
21
21
  }
22
+
23
+ & + .main-menu__outer {
24
+ .menu-item a[href].menu-item--selected,
25
+ .vertical-menu a[href].vertical-menu__link-title:hover,
26
+ .vertical-menu button.vertical-menu__button-title:hover {
27
+ color: var(--header-primary-color);
28
+ }
29
+ .horizontal-menu > ul li a[href].menu-item--selected + span.menu-chiclet::after {
30
+ background-color: var(--header-primary-color);
31
+ }
32
+ }
22
33
  }
23
34
  }
24
35
  .utds-header-desktop--hidden {
@@ -3,7 +3,9 @@
3
3
  @use 'action-items';
4
4
  @use 'utah-header-wrapper';
5
5
  @use 'logos';
6
+ @use 'official-banner';
6
7
  @use 'official-website-popup';
7
8
  @use 'badge';
8
9
  @use 'mobile-menu';
9
10
  @use 'footer';
11
+ @use 'notifications';