@teamimpact/veda-ui-blocks 0.1.0-beta.7 → 0.1.0-beta.9

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 (35) hide show
  1. package/README.md +6 -3
  2. package/dist/default.css +11280 -10085
  3. package/dist/default.css.map +1 -1
  4. package/dist/disasters.css +11278 -10083
  5. package/dist/disasters.css.map +1 -1
  6. package/dist/index.d.ts +169 -68
  7. package/dist/index.js +713 -152
  8. package/package.json +5 -7
  9. package/src/styles/components/banner.scss +0 -18
  10. package/src/styles/components/card-cta.scss +0 -90
  11. package/src/styles/components/card-detailed.scss +0 -164
  12. package/src/styles/components/card-mini.scss +0 -81
  13. package/src/styles/components/card-simple.scss +0 -79
  14. package/src/styles/components/card.scss +0 -284
  15. package/src/styles/components/compare-map.scss +0 -15
  16. package/src/styles/components/footer.scss +0 -256
  17. package/src/styles/components/header.scss +0 -212
  18. package/src/styles/components/index.scss +0 -11
  19. package/src/styles/components/tag.scss +0 -89
  20. package/src/styles/default/index.scss +0 -10
  21. package/src/styles/default/theme-tokens.scss +0 -84
  22. package/src/styles/disasters/card-cta.scss +0 -31
  23. package/src/styles/disasters/card-mini.scss +0 -4
  24. package/src/styles/disasters/card-simple.scss +0 -13
  25. package/src/styles/disasters/card.scss +0 -13
  26. package/src/styles/disasters/compare-map.scss +0 -3
  27. package/src/styles/disasters/fonts.scss +0 -29
  28. package/src/styles/disasters/footer.scss +0 -9
  29. package/src/styles/disasters/header.scss +0 -10
  30. package/src/styles/disasters/index.scss +0 -22
  31. package/src/styles/disasters/tag.scss +0 -6
  32. package/src/styles/disasters/theme-tokens.scss +0 -150
  33. package/src/styles/earthgov/footer.scss +0 -15
  34. package/src/styles/earthgov/index.scss +0 -12
  35. package/src/styles/earthgov/theme-tokens.scss +0 -104
@@ -1,284 +0,0 @@
1
- @use "uswds-core" as *;
2
- $theme-card-max-width: "desktop-lg" !default;
3
- $theme-card-title-color: "ink" !default;
4
- $theme-card-text-color: "ink" !default;
5
- $theme-card-overlay-color: "base-lightest" !default;
6
- $theme-card-title-dark-color: "white" !default;
7
- $theme-card-text-dark-color: "white" !default;
8
- $theme-card-overlay-dark-color: "base-darkest" !default;
9
- $theme-card-title-brand-color: "white" !default;
10
- $theme-card-text-brand-color: "white" !default;
11
- $theme-card-overlay-brand-color: "primary-dark" !default;
12
-
13
- @mixin blocks-card-overlay($color, $direction: 90deg) {
14
- background: linear-gradient($direction, rgba(color($color), 1) 0%, rgba(color($color), 0.3) 100%);
15
-
16
- @include at-media("desktop") {
17
- background: linear-gradient(
18
- $direction,
19
- rgba(color($color), 1) 0%,
20
- rgba(color($color), 0.3) 70%,
21
- rgba(color($color), 0) 100%
22
- );
23
- }
24
- }
25
-
26
- // LAYOUT
27
- .blocks-card {
28
- display: flex;
29
- flex-direction: column;
30
- isolation: isolate;
31
- min-height: units("mobile");
32
- position: relative;
33
- width: 100%;
34
-
35
- &__content-container {
36
- flex: 1;
37
- }
38
-
39
- &__content-container,
40
- &__children {
41
- align-items: center;
42
- display: flex;
43
- padding: units(4) units(3);
44
- width: 100%;
45
- z-index: 1;
46
-
47
- @include at-media("tablet") {
48
- padding: units(5) units(8);
49
- }
50
-
51
- @include at-media("desktop") {
52
- padding: units(5) units(10);
53
- }
54
- }
55
-
56
- &--image-left,
57
- &--image-right {
58
- .blocks-card__content-container {
59
- align-items: start;
60
- flex-direction: column;
61
- gap: units(3);
62
-
63
- @include at-media("tablet") {
64
- align-items: center;
65
- flex-direction: row;
66
- gap: units(5);
67
- }
68
- }
69
- }
70
-
71
- &--image-right {
72
- .blocks-card__content-container {
73
- @include at-media("tablet") {
74
- flex-direction: row-reverse;
75
- }
76
- }
77
- }
78
-
79
- &--mast-head {
80
- .blocks-card__content-container,
81
- .blocks-card__children {
82
- @include grid-container($theme-card-max-width);
83
- }
84
- }
85
-
86
- &__media {
87
- inset: 0;
88
- min-height: 175px;
89
- position: absolute;
90
- width: 100%;
91
- z-index: 0;
92
-
93
- &:only-child {
94
- min-height: 100%;
95
- }
96
-
97
- @include at-media("tablet") {
98
- min-height: 0;
99
- }
100
-
101
- > :is(img, svg, video, canvas) {
102
- height: 100%;
103
- display: block;
104
- inset: 0;
105
- object-fit: cover;
106
- position: absolute;
107
- width: 100%;
108
- }
109
- }
110
-
111
- &--image-left,
112
- &--image-right {
113
- .blocks-card__media {
114
- position: relative;
115
-
116
- @include at-media("tablet") {
117
- align-self: stretch;
118
- flex: 1 1 0;
119
- }
120
-
121
- &:only-child {
122
- position: unset;
123
- }
124
- }
125
- }
126
-
127
- &__content {
128
- display: flex;
129
- flex-direction: column;
130
- gap: units(2);
131
- position: relative;
132
-
133
- @include at-media("tablet") {
134
- flex: 1 1 0;
135
- max-width: measure(5);
136
- }
137
- }
138
-
139
- &--image-left,
140
- &--image-right {
141
- .blocks-card__content {
142
- @include at-media("tablet") {
143
- max-width: none;
144
- }
145
- }
146
- }
147
-
148
- &__title {
149
- margin: 0;
150
- }
151
-
152
- &__description {
153
- margin: 0;
154
- }
155
-
156
- &__actions {
157
- display: flex;
158
- flex-wrap: wrap;
159
- gap: units(1);
160
-
161
- .usa-button {
162
- margin-right: 0;
163
- }
164
- }
165
-
166
- &--image-left,
167
- &--image-right {
168
- .blocks-card__actions {
169
- .usa-button {
170
- flex: 1 1 0;
171
- white-space: nowrap;
172
- }
173
- }
174
- }
175
-
176
- &::after {
177
- content: "";
178
- position: absolute;
179
- inset: 0;
180
- z-index: 0;
181
- }
182
- }
183
-
184
- // Visually align card content if placed in a grid column
185
- @include at-media("tablet") {
186
- [class*="grid-col-"] > .blocks-card {
187
- .blocks-card__content-container {
188
- align-items: stretch;
189
- }
190
-
191
- .blocks-card__actions {
192
- margin-top: auto;
193
- }
194
- }
195
- }
196
-
197
- // THEME
198
- .blocks-card {
199
- &::after {
200
- @include blocks-card-overlay($theme-card-overlay-color);
201
- }
202
-
203
- &--dark {
204
- &::after {
205
- @include blocks-card-overlay($theme-card-overlay-dark-color);
206
- }
207
- }
208
-
209
- &--brand {
210
- &::after {
211
- @include blocks-card-overlay($theme-card-overlay-brand-color);
212
- }
213
- }
214
-
215
- &--image-left,
216
- &--image-right {
217
- background-color: color($theme-card-overlay-color);
218
-
219
- &::after {
220
- background: none;
221
- }
222
- }
223
-
224
- &--dark.blocks-card--image-left,
225
- &--dark.blocks-card--image-right {
226
- background-color: color($theme-card-overlay-dark-color);
227
- }
228
-
229
- &--brand.blocks-card--image-left,
230
- &--brand.blocks-card--image-right {
231
- background-color: color($theme-card-overlay-brand-color);
232
- }
233
-
234
- &__title {
235
- color: color($theme-card-title-color);
236
- font-family: family($theme-card-font-family);
237
- font-size: size("heading", "xl");
238
- font-weight: font-weight("bold");
239
- line-height: lh("heading", 1);
240
- }
241
-
242
- &__subtitle {
243
- color: color($theme-card-text-color);
244
- font-family: family($theme-card-font-family);
245
- font-size: size("heading", "xl");
246
- line-height: lh("heading", 3);
247
- }
248
-
249
- &__description {
250
- color: color($theme-card-text-color);
251
- font-family: family($theme-card-font-family);
252
- font-size: size("body", "sm");
253
- font-weight: font-weight("normal");
254
- line-height: lh("body", 5);
255
- }
256
-
257
- &--dark {
258
- .blocks-card__title {
259
- color: color($theme-card-title-dark-color);
260
- }
261
-
262
- .blocks-card__subtitle {
263
- color: color($theme-card-text-dark-color);
264
- }
265
-
266
- .blocks-card__description {
267
- color: color($theme-card-text-dark-color);
268
- }
269
- }
270
-
271
- &--brand {
272
- .blocks-card__title {
273
- color: color($theme-card-title-brand-color);
274
- }
275
-
276
- .blocks-card__subtitle {
277
- color: color($theme-card-text-brand-color);
278
- }
279
-
280
- .blocks-card__description {
281
- color: color($theme-card-text-brand-color);
282
- }
283
- }
284
- }
@@ -1,15 +0,0 @@
1
- @use "uswds-core" as *;
2
-
3
- $theme-compare-swiper-bgcolor: "primary" !default;
4
-
5
- .blocks-compare-map {
6
- position: relative;
7
- width: 100%;
8
- flex: 1;
9
- min-height: 0;
10
-
11
- // Override mapbox-gl-compare handle color
12
- .mapboxgl-compare .compare-swiper-vertical {
13
- background-color: color($theme-compare-swiper-bgcolor);
14
- }
15
- }
@@ -1,256 +0,0 @@
1
- @use "uswds-core" as *;
2
-
3
- $theme-footer-background-color: $theme-body-background-color !default;
4
- $theme-footer-primary-link-color: $theme-link-color !default;
5
- $theme-footer-secondary-link-color: "ink" !default;
6
- $theme-footer-title-color: "ink" !default;
7
- $theme-footer-text-color: "ink" !default;
8
- $theme-footer-separator-color: "ink" !default;
9
-
10
- // LAYOUT
11
- .blocks-footer.usa-footer--slim {
12
- .usa-footer__primary-section > .grid-container,
13
- .usa-footer__secondary-section > .grid-container {
14
- section {
15
- padding-bottom: units(3);
16
- }
17
- }
18
-
19
- .usa-footer__primary-section {
20
- > .grid-container {
21
- padding-top: units(4);
22
-
23
- @include at-media("desktop") {
24
- padding-top: units(5);
25
- }
26
- }
27
- }
28
-
29
- .usa-footer__secondary-section {
30
- padding-top: 0;
31
- padding-bottom: 0;
32
-
33
- > .grid-container {
34
- padding-bottom: units(3);
35
-
36
- @include at-media("desktop") {
37
- padding-bottom: units(7);
38
- }
39
- }
40
- }
41
-
42
- .blocks-footer__primary-section-lower {
43
- display: grid;
44
- gap: units(5);
45
-
46
- @include at-media("desktop") {
47
- align-items: start;
48
- column-gap: units(8);
49
- grid-template-columns: (units(10) * 4) minmax(0, 1fr);
50
- }
51
- }
52
-
53
- .blocks-footer__secondary-section-lower {
54
- display: grid;
55
- gap: units(4);
56
- padding-top: units(3);
57
-
58
- @include at-media("desktop") {
59
- align-items: start;
60
- column-gap: units(8);
61
- grid-template-columns: minmax(0, auto) minmax(0, 1fr);
62
- }
63
- }
64
-
65
- .blocks-footer__secondary-meta {
66
- display: flex;
67
- flex-direction: column;
68
- gap: units(4);
69
-
70
- @include at-media("desktop") {
71
- column-gap: units(6);
72
- flex-direction: row;
73
- flex-wrap: wrap-reverse;
74
- justify-content: flex-end;
75
- }
76
- }
77
-
78
- .blocks-footer__title {
79
- display: grid;
80
- gap: units(1.5);
81
- }
82
-
83
- .usa-footer__primary-section,
84
- .usa-footer__secondary-section {
85
- nav {
86
- ul {
87
- display: flex;
88
- flex-direction: column;
89
- gap: units(3);
90
- @include add-list-reset;
91
-
92
- @include at-media("desktop") {
93
- flex-direction: row;
94
- flex-wrap: wrap;
95
- gap: units(5);
96
- }
97
- }
98
- }
99
- }
100
-
101
- .blocks-footer__primary-nav,
102
- .blocks-footer__secondary-nav {
103
- padding-top: units(2);
104
-
105
- @include at-media("desktop") {
106
- padding-top: units(3);
107
- }
108
- }
109
-
110
- .blocks-footer__primary-nav {
111
- ul {
112
- justify-content: flex-end;
113
- }
114
- }
115
-
116
- .usa-footer__secondary-link {
117
- line-height: inherit;
118
- margin-left: 0;
119
- padding: 0;
120
-
121
- & + .usa-footer__secondary-link {
122
- padding-top: 0;
123
- }
124
- }
125
-
126
- .blocks-footer__utility-nav,
127
- .blocks-footer__contacts-nav {
128
- display: flex;
129
- flex-wrap: wrap;
130
- gap: units(2);
131
-
132
- li {
133
- align-items: center;
134
- display: flex;
135
- gap: units(1.5);
136
-
137
- a {
138
- display: inline-flex;
139
- gap: units(1);
140
- align-items: center;
141
- }
142
- }
143
- }
144
-
145
- .blocks-footer__utility-nav ul {
146
- gap: units(1);
147
- }
148
-
149
- .blocks-footer__contacts-nav ul {
150
- gap: units(3);
151
-
152
- @include at-media("desktop") {
153
- align-items: center;
154
- gap: units(3);
155
- justify-content: flex-end;
156
- }
157
- }
158
-
159
- .blocks-footer__secondary-meta > p {
160
- margin: 0;
161
-
162
- @include at-media("desktop") {
163
- text-align: right;
164
- }
165
- }
166
- }
167
-
168
- // THEME
169
- .blocks-footer.usa-footer--slim {
170
- .usa-footer__primary-section,
171
- .usa-footer__secondary-section {
172
- background-color: color($theme-footer-background-color);
173
- color: color($theme-text-color);
174
- }
175
-
176
- .blocks-footer__primary-section-lower,
177
- .blocks-footer__secondary-section-upper {
178
- border-bottom: 1px solid rgba(color($theme-footer-separator-color), 0.1);
179
- }
180
-
181
- .blocks-footer__title {
182
- span {
183
- color: color($theme-footer-title-color);
184
- font-size: size("body", "lg");
185
- font-weight: font-weight("bold");
186
- text-decoration: none;
187
- }
188
-
189
- p {
190
- color: color($theme-footer-text-color);
191
- margin: 0;
192
- font-size: size("body", "2xs");
193
- line-height: line-height("body", 5);
194
- }
195
- }
196
-
197
- .usa-footer__primary-link {
198
- border: 0;
199
- color: color($theme-footer-primary-link-color);
200
- font-size: size("body", "2xs");
201
- font-weight: font-weight("bold");
202
- padding: 0;
203
- text-decoration: none;
204
-
205
- &:visited {
206
- color: color($theme-footer-primary-link-color);
207
- }
208
-
209
- &:hover,
210
- &:active {
211
- color: color($theme-footer-primary-link-color);
212
- text-decoration: underline;
213
- text-underline-offset: 0.18em;
214
- }
215
- }
216
-
217
- .usa-footer__secondary-link > a {
218
- color: color($theme-footer-secondary-link-color);
219
- font-size: size("body", "2xs");
220
- line-height: line-height("body", 5);
221
- text-decoration: underline;
222
- text-decoration-thickness: 1px;
223
- text-underline-offset: 0.18em;
224
-
225
- &:visited {
226
- color: color($theme-footer-secondary-link-color);
227
- }
228
-
229
- &:hover,
230
- &:active {
231
- color: color($theme-footer-secondary-link-color);
232
- text-decoration-thickness: 2px;
233
- }
234
- }
235
-
236
- .blocks-footer__secondary-section-lower {
237
- color: color($theme-footer-text-color);
238
- font-size: size("body", "2xs");
239
- }
240
-
241
- .blocks-footer__secondary-section-lower a {
242
- text-decoration: underline;
243
- text-decoration-thickness: 1px;
244
- text-underline-offset: 0.18em;
245
- color: color($theme-footer-primary-link-color);
246
- &:visited {
247
- color: color($theme-footer-primary-link-color);
248
- }
249
-
250
- &:hover,
251
- &:active {
252
- color: color($theme-footer-primary-link-color);
253
- text-decoration-thickness: 2px;
254
- }
255
- }
256
- }