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

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/dist/default.css CHANGED
@@ -47784,7 +47784,7 @@ example:
47784
47784
  .blocks-card-detailed__description {
47785
47785
  color: #1b1b1b;
47786
47786
  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;
47787
+ font-size: 1rem;
47788
47788
  font-style: normal;
47789
47789
  font-weight: normal;
47790
47790
  line-height: 1.6;
@@ -48681,7 +48681,7 @@ example:
48681
48681
  .blocks-card-detailed__description {
48682
48682
  color: #0d313d;
48683
48683
  font-family: Inter Variable, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
48684
- font-size: 0.75rem;
48684
+ font-size: 1rem;
48685
48685
  font-style: normal;
48686
48686
  font-weight: normal;
48687
48687
  line-height: 1.6;
package/dist/index.d.ts CHANGED
@@ -63,11 +63,13 @@ type CardProps = {
63
63
  callToAction?: {
64
64
  label: string;
65
65
  href: string;
66
+ isExternal?: boolean;
66
67
  };
67
68
  /** Optional: Secondary outlined call to action for the card. */
68
69
  callToActionSecondary?: {
69
70
  label: string;
70
71
  href: string;
72
+ isExternal?: boolean;
71
73
  };
72
74
  /** Required: media element rendered as either the card background or
73
75
  * an image within the card.
@@ -122,11 +124,13 @@ type CardDetailedProps = {
122
124
  callToAction?: {
123
125
  label: string;
124
126
  href: string;
127
+ isExternal?: boolean;
125
128
  };
126
129
  /** Optional: Secondary outlined call to action for the card. */
127
130
  callToActionSecondary?: {
128
131
  label: string;
129
132
  href: string;
133
+ isExternal?: boolean;
130
134
  };
131
135
  /** Required: media element rendered as either the card background or
132
136
  * an image within the card.
package/dist/index.js CHANGED
@@ -104,6 +104,7 @@ var DEFAULT_EXPANDED_CONTENT_JSX = /* @__PURE__ */ jsxs("div", { className: "blo
104
104
  ] });
105
105
 
106
106
  // src/components/Cards/Card/Card.tsx
107
+ import { Icon as Icon2 } from "@trussworks/react-uswds";
107
108
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
108
109
  function Card({
109
110
  tag,
@@ -136,8 +137,30 @@ function Card({
136
137
  subtitle && /* @__PURE__ */ jsx2("div", { className: "blocks-card__subtitle", children: subtitle }),
137
138
  description && /* @__PURE__ */ jsx2("p", { className: "blocks-card__description", children: description }),
138
139
  (callToAction || callToActionSecondary) && /* @__PURE__ */ jsxs2("div", { className: "blocks-card__actions", children: [
139
- callToAction && /* @__PURE__ */ jsx2("a", { href: callToAction.href, className: "usa-button", children: callToAction.label }),
140
- callToActionSecondary && /* @__PURE__ */ jsx2("a", { href: callToActionSecondary.href, className: "usa-button usa-button--outline", children: callToActionSecondary.label })
140
+ callToAction && /* @__PURE__ */ jsxs2(
141
+ "a",
142
+ {
143
+ href: callToAction.href,
144
+ className: "usa-button",
145
+ ...get_external_anchor_props(callToAction.isExternal),
146
+ children: [
147
+ callToAction.label,
148
+ callToAction.isExternal && /* @__PURE__ */ jsx2(Icon2.Launch, { "aria-hidden": true, focusable: false, size: 3 })
149
+ ]
150
+ }
151
+ ),
152
+ callToActionSecondary && /* @__PURE__ */ jsxs2(
153
+ "a",
154
+ {
155
+ href: callToActionSecondary.href,
156
+ className: "usa-button usa-button--outline",
157
+ ...get_external_anchor_props(callToActionSecondary.isExternal),
158
+ children: [
159
+ callToActionSecondary.label,
160
+ callToActionSecondary.isExternal && /* @__PURE__ */ jsx2(Icon2.Launch, { "aria-hidden": true, focusable: false, size: 3 })
161
+ ]
162
+ }
163
+ )
141
164
  ] })
142
165
  ] })
143
166
  ] }),
@@ -199,6 +222,7 @@ function CardCTA({
199
222
  }
200
223
 
201
224
  // src/components/Cards/CardDetailed/CardDetailed.tsx
225
+ import { Icon as Icon3 } from "@trussworks/react-uswds";
202
226
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
203
227
  function CardDetailed({
204
228
  intro,
@@ -228,8 +252,30 @@ function CardDetailed({
228
252
  isNonEmptyArray(tags) && /* @__PURE__ */ jsx5("div", { className: "blocks-card-detailed__tags", children: tags }),
229
253
  description && /* @__PURE__ */ jsx5("p", { className: "blocks-card-detailed__description", children: description }),
230
254
  (callToAction || callToActionSecondary) && /* @__PURE__ */ jsxs5("div", { className: "blocks-card-detailed__actions", children: [
231
- callToAction && /* @__PURE__ */ jsx5("a", { href: callToAction.href, className: "usa-button", children: callToAction.label }),
232
- callToActionSecondary && /* @__PURE__ */ jsx5("a", { href: callToActionSecondary.href, className: "usa-button usa-button--outline", children: callToActionSecondary.label })
255
+ callToAction && /* @__PURE__ */ jsxs5(
256
+ "a",
257
+ {
258
+ href: callToAction.href,
259
+ className: "usa-button",
260
+ ...get_external_anchor_props(callToAction.isExternal),
261
+ children: [
262
+ callToAction.label,
263
+ callToAction.isExternal && /* @__PURE__ */ jsx5(Icon3.Launch, { "aria-hidden": true, focusable: false, size: 3 })
264
+ ]
265
+ }
266
+ ),
267
+ callToActionSecondary && /* @__PURE__ */ jsxs5(
268
+ "a",
269
+ {
270
+ href: callToActionSecondary.href,
271
+ className: "usa-button usa-button--outline",
272
+ ...get_external_anchor_props(callToActionSecondary.isExternal),
273
+ children: [
274
+ callToActionSecondary.label,
275
+ callToActionSecondary.isExternal && /* @__PURE__ */ jsx5(Icon3.Launch, { "aria-hidden": true, focusable: false, size: 3 })
276
+ ]
277
+ }
278
+ )
233
279
  ] })
234
280
  ] })
235
281
  ] });
@@ -286,7 +332,7 @@ function CardSimple({
286
332
  }
287
333
 
288
334
  // src/components/Footer/Footer.tsx
289
- import { GridContainer, Icon as Icon2, Link, Footer as USWDSFooter } from "@trussworks/react-uswds";
335
+ import { GridContainer, Icon as Icon4, Link, Footer as USWDSFooter } from "@trussworks/react-uswds";
290
336
  import { Fragment, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
291
337
  function Footer({
292
338
  portalDetails,
@@ -342,7 +388,7 @@ function Footer({
342
388
  portalDetails.contacts?.length ? /* @__PURE__ */ jsx8("nav", { className: "blocks-footer__contacts-nav", "aria-label": "Site contacts", children: /* @__PURE__ */ jsx8("ul", { children: portalDetails.contacts.map(({ label, name, email }) => /* @__PURE__ */ jsxs8("li", { children: [
343
389
  /* @__PURE__ */ jsx8("span", { children: label }),
344
390
  /* @__PURE__ */ jsxs8(Link, { href: `mailto:${email}`, ...get_external_anchor_props(), children: [
345
- /* @__PURE__ */ jsx8(Icon2.Mail, { "aria-hidden": "true", focusable: false }),
391
+ /* @__PURE__ */ jsx8(Icon4.Mail, { "aria-hidden": "true", focusable: false }),
346
392
  /* @__PURE__ */ jsx8("span", { children: name })
347
393
  ] })
348
394
  ] }, `${label}-${email}`)) }) }) : null
@@ -765,7 +811,7 @@ function GeoConfigProvider({
765
811
  }
766
812
 
767
813
  // src/geo/Legend/Legend.tsx
768
- import { Icon as Icon3 } from "@trussworks/react-uswds";
814
+ import { Icon as Icon5 } from "@trussworks/react-uswds";
769
815
  import { useState as useState3 } from "react";
770
816
  import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
771
817
  function Legend({ initialExpanded = false, ...props }) {
@@ -786,7 +832,7 @@ function Legend({ initialExpanded = false, ...props }) {
786
832
  "aria-expanded": isExpanded,
787
833
  "aria-label": "Toggle layer description",
788
834
  onClick: () => setIsExpanded((v) => !v),
789
- children: /* @__PURE__ */ jsx15(Icon3.InfoOutline, { "aria-hidden": true, focusable: false, size: 3 })
835
+ children: /* @__PURE__ */ jsx15(Icon5.InfoOutline, { "aria-hidden": true, focusable: false, size: 3 })
790
836
  }
791
837
  )
792
838
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamimpact/veda-ui-blocks",
3
- "version": "0.1.0-beta.12",
3
+ "version": "0.1.0-beta.13",
4
4
  "description": "UI component library for VEDA-based portals, built on USWDS and React",
5
5
  "license": "MIT",
6
6
  "repository": {