@utahdts/utah-design-system-header 0.4.3 → 0.6.0-beta.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utahdts/utah-design-system-header",
3
- "version": "0.4.3",
3
+ "version": "0.6.0-beta.0",
4
4
  "description": "Utah Header for the Utah Design System",
5
5
  "exports": {
6
6
  ".": {
@@ -23,6 +23,7 @@
23
23
  "build": "vite build",
24
24
  "preview": "vite preview",
25
25
  "publishHeader": "npm publish --access public",
26
+ "publishHeaderBeta": "npm publish --access public --tag beta",
26
27
  "sass-build": "sass --no-source-map ./src/css/index.scss ./src/css/build/utah-design-system-header.css",
27
28
  "test-publish": "npm publish --dry-run",
28
29
  "test": "vitest",
@@ -39,17 +40,18 @@
39
40
  },
40
41
  "homepage": "https://github.com/utahdts/utah-design-system#readme",
41
42
  "dependencies": {
42
- "@popperjs/core": "2.11.7"
43
+ "@popperjs/core": "2.11.7",
44
+ "@utahdts/utah-design-system": "0.6.0-beta.0"
43
45
  },
44
46
  "devDependencies": {
45
- "eslint": "8.37.0",
47
+ "eslint": "8.38.0",
46
48
  "eslint-config-airbnb": "19.0.4",
47
49
  "eslint-plugin-import": "2.27.5",
48
50
  "eslint-plugin-jsx-a11y": "6.7.1",
49
- "sass": "1.60.0",
50
- "vite": "4.2.1",
51
+ "sass": "1.62.0",
52
+ "vite": "4.2.2",
51
53
  "vite-plugin-eslint": "1.8.1",
52
- "vitest": "0.29.8"
54
+ "vitest": "0.30.1"
53
55
  },
54
56
  "type": "module"
55
57
  }
@@ -48,17 +48,59 @@
48
48
  }
49
49
  }
50
50
  }
51
- .utah-logo-svg {
52
- height: 100%;
53
- position: relative;
54
- margin-bottom: -4px;
55
- svg {
51
+ .utah-design-system {
52
+ .utah-logo-wrapper {
56
53
  height: 100%;
57
- width: auto;
58
- fill: var(--primary-color);
59
- font-family: SourceSansPro-Regular, 'Source Sans Pro', Arial, Helvetica, sans-serif;
60
- font-weight: normal;
61
- font-size: 14px;
62
- display: block;
54
+
55
+ .popup {
56
+ &__wrapper {
57
+
58
+ }
59
+ &__content {
60
+ border-radius: var(--radius-small);
61
+ background: var(--gray-color);
62
+ color: white;
63
+ box-sizing: border-box;
64
+ padding: var(--spacing-3xs) var(--spacing-s);
65
+ border-color: var(--gray-color)
66
+ }
67
+ &__arrow {
68
+ &::before {
69
+
70
+ border-color: var(--gray-color) !important;
71
+ }
72
+ }
73
+ }
74
+ }
75
+ button.utah-logo-svg {
76
+ height: 100%;
77
+ position: relative;
78
+ margin-bottom: -4px;
79
+ border: none;
80
+ border-radius: 0;
81
+ padding: 0;
82
+ &:hover {
83
+ background: none;
84
+ }
85
+ &:active {
86
+ box-shadow: none;
87
+ }
88
+ svg {
89
+ height: 100%;
90
+ width: auto;
91
+ fill: var(--primary-color);
92
+ font-family: SourceSansPro-Regular, 'Source Sans Pro', Arial, Helvetica, sans-serif;
93
+ font-weight: normal;
94
+ font-size: 14px;
95
+ display: block;
96
+ }
97
+ }
98
+ .utds-official-website-hover {
99
+ &__wrapper {
100
+ font-size: 1rem;
101
+ font-weight: var(--font-weight-normal);
102
+ text-align: center;
103
+ }
63
104
  }
64
105
  }
106
+
@@ -0,0 +1,56 @@
1
+ .utah-design-system {
2
+ &.utds-official-website-popup {
3
+ &__wrapper {
4
+ background: var(--gray-color);
5
+ color: white;
6
+ padding: var(--spacing-l);
7
+ position: relative;
8
+
9
+ &.visually-hidden {
10
+ position: absolute;
11
+ }
12
+ }
13
+ }
14
+ button.utds-official-website-popup__close-button {
15
+ position: absolute;
16
+ top: var(--spacing);
17
+ right: var(--spacing);
18
+
19
+ &.icon-button [class*=utds-icon-before-] {
20
+ color: white;
21
+ &::before {
22
+ font-size: .9rem;
23
+ }
24
+ }
25
+ }
26
+ .utds-official-website-popup {
27
+ &__heading {
28
+ font-size: var(--font-size-xl);
29
+ font-weight: var(--font-weight-semi-bold);
30
+ padding: 0 var(--spacing-xl) 0 0;
31
+ line-height: 1;
32
+ margin-bottom: var(--spacing-s);
33
+ }
34
+ &__content {
35
+ display: flex;
36
+ gap: var(--spacing-2xl);
37
+ }
38
+ &__col {
39
+ max-width: 400px;
40
+ display: flex;
41
+ align-items: flex-start;
42
+ gap: var(--spacing-xs);
43
+
44
+ [class*=utds-icon-before-]::before {
45
+ margin: 0;
46
+ }
47
+
48
+ .big-icon[class*=utds-icon-before-] {
49
+ &::before {
50
+ font-size: 2.5rem;
51
+ margin: 0;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
@@ -912,6 +912,11 @@ base color swatches for the design system
912
912
  content: "j";
913
913
  }
914
914
 
915
+ .utah-design-system .utds-icon-before-lock::before,
916
+ .utah-design-system .utds-icon-after-lock::after {
917
+ content: "k";
918
+ }
919
+
915
920
  /*
916
921
  ############ _settings-index.scss ############
917
922
  variables and settings
@@ -1128,13 +1133,13 @@ elemental html: h1, h2, h3, ul, li, etc.
1128
1133
 
1129
1134
  .utah-design-system h3 {
1130
1135
  font-size: var(--font-size-2xl);
1131
- font-weight: var(--font-weight-normal);
1136
+ font-weight: var(--font-weight-semi-bold);
1132
1137
  margin: 0;
1133
1138
  }
1134
1139
 
1135
1140
  .utah-design-system h4 {
1136
1141
  font-size: var(--font-size-l);
1137
- font-weight: var(--font-weight-normal);
1142
+ font-weight: var(--font-weight-semi-bold);
1138
1143
  margin: 0;
1139
1144
  }
1140
1145
 
@@ -3198,6 +3203,11 @@ Font size variables
3198
3203
  content: "j";
3199
3204
  }
3200
3205
 
3206
+ .utah-design-system .utds-icon-before-lock::before,
3207
+ .utah-design-system .utds-icon-after-lock::after {
3208
+ content: "k";
3209
+ }
3210
+
3201
3211
  /*
3202
3212
  ############ _settings-index.scss ############
3203
3213
  variables and settings
@@ -4790,6 +4800,10 @@ base color swatches for the design system
4790
4800
  .utah-design-system .utds-icon-after-account::after {
4791
4801
  content: "j";
4792
4802
  }
4803
+ .utah-design-system .utds-icon-before-lock::before,
4804
+ .utah-design-system .utds-icon-after-lock::after {
4805
+ content: "k";
4806
+ }
4793
4807
 
4794
4808
  /*
4795
4809
  ############ _settings-index.scss ############
@@ -5132,12 +5146,35 @@ variables and settings
5132
5146
  color: var(--gray-medium-color);
5133
5147
  }
5134
5148
 
5135
- .utah-logo-svg {
5149
+ .utah-design-system .utah-logo-wrapper {
5150
+ height: 100%;
5151
+ }
5152
+ .utah-design-system .utah-logo-wrapper .popup__content {
5153
+ border-radius: var(--radius-small);
5154
+ background: var(--gray-color);
5155
+ color: white;
5156
+ box-sizing: border-box;
5157
+ padding: var(--spacing-3xs) var(--spacing-s);
5158
+ border-color: var(--gray-color);
5159
+ }
5160
+ .utah-design-system .utah-logo-wrapper .popup__arrow::before {
5161
+ border-color: var(--gray-color) !important;
5162
+ }
5163
+ .utah-design-system button.utah-logo-svg {
5136
5164
  height: 100%;
5137
5165
  position: relative;
5138
5166
  margin-bottom: -4px;
5167
+ border: none;
5168
+ border-radius: 0;
5169
+ padding: 0;
5170
+ }
5171
+ .utah-design-system button.utah-logo-svg:hover {
5172
+ background: none;
5139
5173
  }
5140
- .utah-logo-svg svg {
5174
+ .utah-design-system button.utah-logo-svg:active {
5175
+ box-shadow: none;
5176
+ }
5177
+ .utah-design-system button.utah-logo-svg svg {
5141
5178
  height: 100%;
5142
5179
  width: auto;
5143
5180
  fill: var(--primary-color);
@@ -5146,6 +5183,56 @@ variables and settings
5146
5183
  font-size: 14px;
5147
5184
  display: block;
5148
5185
  }
5186
+ .utah-design-system .utds-official-website-hover__wrapper {
5187
+ font-size: 1rem;
5188
+ font-weight: var(--font-weight-normal);
5189
+ text-align: center;
5190
+ }
5191
+
5192
+ .utah-design-system.utds-official-website-popup__wrapper {
5193
+ background: var(--gray-color);
5194
+ color: white;
5195
+ padding: var(--spacing-l);
5196
+ position: relative;
5197
+ }
5198
+ .utah-design-system.utds-official-website-popup__wrapper.visually-hidden {
5199
+ position: absolute;
5200
+ }
5201
+ .utah-design-system button.utds-official-website-popup__close-button {
5202
+ position: absolute;
5203
+ top: var(--spacing);
5204
+ right: var(--spacing);
5205
+ }
5206
+ .utah-design-system button.utds-official-website-popup__close-button.icon-button [class*=utds-icon-before-] {
5207
+ color: white;
5208
+ }
5209
+ .utah-design-system button.utds-official-website-popup__close-button.icon-button [class*=utds-icon-before-]::before {
5210
+ font-size: 0.9rem;
5211
+ }
5212
+ .utah-design-system .utds-official-website-popup__heading {
5213
+ font-size: var(--font-size-xl);
5214
+ font-weight: var(--font-weight-semi-bold);
5215
+ padding: 0 var(--spacing-xl) 0 0;
5216
+ line-height: 1;
5217
+ margin-bottom: var(--spacing-s);
5218
+ }
5219
+ .utah-design-system .utds-official-website-popup__content {
5220
+ display: flex;
5221
+ gap: var(--spacing-2xl);
5222
+ }
5223
+ .utah-design-system .utds-official-website-popup__col {
5224
+ max-width: 400px;
5225
+ display: flex;
5226
+ align-items: flex-start;
5227
+ gap: var(--spacing-xs);
5228
+ }
5229
+ .utah-design-system .utds-official-website-popup__col [class*=utds-icon-before-]::before {
5230
+ margin: 0;
5231
+ }
5232
+ .utah-design-system .utds-official-website-popup__col .big-icon[class*=utds-icon-before-]::before {
5233
+ font-size: 2.5rem;
5234
+ margin: 0;
5235
+ }
5149
5236
 
5150
5237
  .utds-badge__wrapper {
5151
5238
  align-items: center;
@@ -5,6 +5,7 @@
5
5
  @use 'popup';
6
6
  @use 'utah-header-wrapper';
7
7
  @use 'logos';
8
+ @use 'official-website-popup';
8
9
  @use 'badge';
9
10
  @use 'vertical-menu';
10
11
  @use 'mobile-menu';
@@ -43,6 +43,14 @@
43
43
  left: 50%;
44
44
  transform: translateX(-50%) translateY(110%);
45
45
  }
46
+
47
+ .utah-design-system .utds-official-website-popup__content {
48
+ flex-wrap: wrap;
49
+ gap: var(--spacing-l);
50
+ }
51
+ .utah-design-system .utds-official-website-popup__col {
52
+ width: 100%;
53
+ }
46
54
  }
47
55
 
48
56
  @media screen and (max-width: media-size__mobile__PLACEHOLDER) {