@teamimpact/veda-ui-blocks 0.1.0-beta.12 → 0.1.0-beta.14

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/README.md CHANGED
@@ -12,19 +12,6 @@ See [CHANGELOG.md](CHANGELOG.md) for version history and changes.
12
12
  pnpm add @teamimpact/veda-ui-blocks
13
13
  ```
14
14
 
15
- Required peer dependencies:
16
-
17
- ```bash
18
- pnpm add react react-dom @uswds/uswds @trussworks/react-uswds
19
- ```
20
-
21
- Additional peer dependencies for geo/map components:
22
-
23
- ```bash
24
- pnpm add @tanstack/react-query maplibre-gl react-map-gl \
25
- mapbox-gl-compare @developmentseed/stac-react
26
- ```
27
-
28
15
  ## Usage
29
16
 
30
17
  ```tsx
@@ -40,7 +27,7 @@ import "@teamimpact/veda-ui-blocks/default.css"; // USWDS defaults
40
27
  import "@teamimpact/veda-ui-blocks/disasters.css"; // Disasters.gov theme
41
28
  ```
42
29
 
43
- The compiled CSS bundles all fonts (Inter, DM Mono, USWDS fonts) and USWDS images. No separate imports needed.
30
+ The compiled CSS bundles all fonts and USWDS images. No separate imports needed.
44
31
 
45
32
  ---
46
33
 
package/dist/default.css CHANGED
@@ -47620,23 +47620,7 @@ example:
47620
47620
  z-index: 1;
47621
47621
  }
47622
47622
  .blocks-card-cta__title {
47623
- display: flex;
47624
- align-items: center;
47625
- gap: 0.75rem;
47626
- margin: 0;
47627
- }
47628
- .blocks-card-cta__icon {
47629
- color: var(--blocks-card-cta-custom-accent-color);
47630
- display: inline-flex;
47631
- align-items: center;
47632
- flex-shrink: 0;
47633
- vertical-align: baseline;
47634
- width: 1cap;
47635
- height: 1cap;
47636
- }
47637
- .blocks-card-cta__icon > svg {
47638
- width: 100%;
47639
- height: 100%;
47623
+ pointer-events: none;
47640
47624
  }
47641
47625
  .blocks-card-cta__description {
47642
47626
  margin: 0;
@@ -47647,20 +47631,15 @@ example:
47647
47631
  border-radius: 2px;
47648
47632
  border: 1px solid #dfe1e2;
47649
47633
  }
47650
- .blocks-card-cta:hover, .blocks-card-cta:focus-visible {
47651
- text-decoration: none;
47634
+ .blocks-card-cta__title.blocks-link {
47635
+ color: #1b1b1b;
47652
47636
  }
47653
- .blocks-card-cta:hover .blocks-card-cta__title, .blocks-card-cta:focus-visible .blocks-card-cta__title {
47654
- text-decoration-line: underline;
47655
- text-decoration-color: var(--blocks-card-cta-custom-accent-color);
47656
- text-decoration-thickness: 2px;
47657
- text-underline-offset: 0.25rem;
47637
+ .blocks-card-cta__title.blocks-link > svg {
47638
+ color: var(--blocks-card-cta-custom-accent-color);
47658
47639
  }
47659
- .blocks-card-cta__title {
47640
+ .blocks-card-cta__title.blocks-link.usa-button--hover {
47660
47641
  color: #1b1b1b;
47661
- font-family: Public Sans Web, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
47662
- font-size: 1.38rem;
47663
- font-weight: 700;
47642
+ text-decoration-color: var(--blocks-card-cta-custom-accent-color);
47664
47643
  }
47665
47644
  .blocks-card-cta__description {
47666
47645
  color: #1b1b1b;
@@ -47756,8 +47735,17 @@ example:
47756
47735
  .blocks-card-detailed__actions {
47757
47736
  display: flex;
47758
47737
  flex-wrap: wrap;
47738
+ gap: 0.5rem;
47739
+ }
47740
+
47741
+ [class*=grid-col-] > .blocks-card-detailed .blocks-card-detailed__content-container {
47742
+ align-items: stretch;
47743
+ }
47744
+ [class*=grid-col-] > .blocks-card-detailed .blocks-card-detailed__actions {
47759
47745
  margin-top: auto;
47760
- row-gap: 0.25rem;
47746
+ }
47747
+ [class*=grid-col-] > .blocks-card-detailed .blocks-card-detailed__actions > .blocks-link {
47748
+ flex: 1;
47761
47749
  }
47762
47750
 
47763
47751
  .blocks-card-detailed {
@@ -47784,7 +47772,7 @@ example:
47784
47772
  .blocks-card-detailed__description {
47785
47773
  color: #1b1b1b;
47786
47774
  font-family: Public Sans Web, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
47787
- font-size: 0.75rem;
47775
+ font-size: 1rem;
47788
47776
  font-style: normal;
47789
47777
  font-weight: normal;
47790
47778
  line-height: 1.6;
@@ -47927,6 +47915,7 @@ example:
47927
47915
  }
47928
47916
 
47929
47917
  .blocks-card {
47918
+ border-radius: 0.5rem;
47930
47919
  display: flex;
47931
47920
  flex-direction: column;
47932
47921
  isolation: isolate;
@@ -48049,13 +48038,10 @@ example:
48049
48038
  flex-wrap: wrap;
48050
48039
  gap: 0.5rem;
48051
48040
  }
48052
- .blocks-card__actions .usa-button {
48053
- margin-right: 0;
48054
- }
48055
48041
  .blocks-card--image-left .blocks-card__actions, .blocks-card--image-right .blocks-card__actions {
48056
48042
  width: fit-content;
48057
48043
  }
48058
- .blocks-card--image-left .blocks-card__actions .usa-button, .blocks-card--image-right .blocks-card__actions .usa-button {
48044
+ .blocks-card--image-left .blocks-card__actions .blocks-link, .blocks-card--image-right .blocks-card__actions .blocks-link {
48059
48045
  flex: 1 1 0;
48060
48046
  white-space: nowrap;
48061
48047
  }
@@ -48066,14 +48052,16 @@ example:
48066
48052
  z-index: 0;
48067
48053
  }
48068
48054
 
48069
- @media all and (min-width: 40em) {
48070
- [class*=grid-col-] > .blocks-card .blocks-card__content-container {
48071
- align-items: stretch;
48072
- }
48073
- [class*=grid-col-] > .blocks-card .blocks-card__actions {
48074
- margin-top: auto;
48075
- }
48055
+ [class*=grid-col-] > .blocks-card .blocks-card__content-container {
48056
+ align-items: stretch;
48076
48057
  }
48058
+ [class*=grid-col-] > .blocks-card .blocks-card__actions {
48059
+ margin-top: auto;
48060
+ }
48061
+ [class*=grid-col-] > .blocks-card .blocks-card__actions > .blocks-link {
48062
+ flex: 1;
48063
+ }
48064
+
48077
48065
  .blocks-card::after {
48078
48066
  background: linear-gradient(90deg, #f0f0f0 0%, rgba(240, 240, 240, 0.3) 100%);
48079
48067
  }
@@ -48149,6 +48137,79 @@ example:
48149
48137
  color: white;
48150
48138
  }
48151
48139
 
48140
+ .blocks-carousel {
48141
+ display: flex;
48142
+ flex-direction: column;
48143
+ gap: 1rem;
48144
+ }
48145
+ .blocks-carousel__viewport {
48146
+ overflow: hidden;
48147
+ flex: 1;
48148
+ min-height: 0;
48149
+ display: flex;
48150
+ flex-direction: column;
48151
+ }
48152
+ .blocks-carousel__track {
48153
+ display: flex;
48154
+ flex: 1;
48155
+ margin-left: -1rem;
48156
+ }
48157
+ .blocks-carousel__item {
48158
+ flex: 0 0 100%;
48159
+ min-width: 0;
48160
+ padding-left: 1rem;
48161
+ display: flex;
48162
+ }
48163
+ .blocks-carousel__item .blocks-card .blocks-card__content-container {
48164
+ align-items: stretch;
48165
+ }
48166
+ .blocks-carousel__item .blocks-card .blocks-card__actions {
48167
+ margin-top: auto;
48168
+ }
48169
+ @media all and (min-width: 40em) {
48170
+ .blocks-carousel__item--2 {
48171
+ flex: 0 0 50%;
48172
+ }
48173
+ }
48174
+ @media all and (min-width: 40em) {
48175
+ .blocks-carousel__item--3 {
48176
+ flex: 0 0 33.333%;
48177
+ }
48178
+ }
48179
+ .blocks-carousel__controls {
48180
+ display: flex;
48181
+ align-items: center;
48182
+ justify-content: center;
48183
+ gap: 0.5rem;
48184
+ }
48185
+ .blocks-carousel__controls--hidden {
48186
+ visibility: hidden;
48187
+ }
48188
+ .blocks-carousel__btn {
48189
+ display: flex;
48190
+ align-items: center;
48191
+ justify-content: center;
48192
+ padding: 0;
48193
+ }
48194
+ .blocks-carousel__btn:disabled {
48195
+ opacity: 0.4;
48196
+ cursor: not-allowed;
48197
+ }
48198
+
48199
+ .blocks-carousel__btn {
48200
+ color: #1b1b1b;
48201
+ }
48202
+ .blocks-carousel__btn:focus-visible {
48203
+ outline: 0.25rem solid #2491ff;
48204
+ outline-offset: 0.25rem;
48205
+ }
48206
+ .blocks-carousel__counter {
48207
+ color: #1b1b1b;
48208
+ font-size: 1rem;
48209
+ min-width: 2rem;
48210
+ text-align: center;
48211
+ }
48212
+
48152
48213
  .blocks-footer.usa-footer--slim {
48153
48214
  line-height: normal;
48154
48215
  }
@@ -48787,6 +48848,54 @@ example:
48787
48848
  color: #1b1b1b;
48788
48849
  }
48789
48850
 
48851
+ .blocks-map-scroll-guard {
48852
+ border: none;
48853
+ font: inherit;
48854
+ padding: 0;
48855
+ align-items: center;
48856
+ background: transparent;
48857
+ cursor: pointer;
48858
+ display: flex;
48859
+ inset: 0;
48860
+ justify-content: center;
48861
+ position: absolute;
48862
+ touch-action: pan-y;
48863
+ z-index: 3;
48864
+ }
48865
+ .blocks-map-scroll-guard__pill {
48866
+ align-items: center;
48867
+ background-color: rgba(27, 27, 27, 0.6);
48868
+ border-radius: 0.25rem;
48869
+ display: flex;
48870
+ flex-direction: column;
48871
+ gap: 0.75rem;
48872
+ max-width: 44%;
48873
+ padding: 1.5rem 2rem;
48874
+ }
48875
+ .blocks-map-scroll-guard__pill svg {
48876
+ color: white;
48877
+ flex-shrink: 0;
48878
+ height: 1.5rem;
48879
+ width: 1.5rem;
48880
+ }
48881
+ .blocks-map-scroll-guard__label {
48882
+ color: white;
48883
+ font-size: 1.34rem;
48884
+ font-weight: 600;
48885
+ text-align: center;
48886
+ }
48887
+
48888
+ .blocks-map-scroll-guard-exit {
48889
+ align-items: center;
48890
+ display: flex;
48891
+ justify-content: center;
48892
+ }
48893
+ .blocks-map-scroll-guard-exit svg {
48894
+ color: #1b1b1b;
48895
+ height: 1.25rem;
48896
+ width: 1.25rem;
48897
+ }
48898
+
48790
48899
  .blocks-stacmap-compare {
48791
48900
  position: relative;
48792
48901
  width: 100%;