@solexllc/usx-react 0.1.6 → 0.1.7
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/index.cjs +24 -28
- package/dist/index.js +25 -29
- package/package.json +2 -2
- package/src/components/identifier/Identifier.tsx +26 -40
- package/src/components/identifier/config.json +6 -6
- package/src/components/identifier/identifier.django.html +9 -13
- package/src/components/identifier/identifier.html +10 -10
package/dist/index.cjs
CHANGED
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
|
-
const shapeClassMap
|
|
214
|
+
const shapeClassMap = {
|
|
215
215
|
circle: "usx-circle",
|
|
216
216
|
"rounded-sm": "usx-rounded-sm",
|
|
217
217
|
"rounded-md": "usx-rounded-md",
|
|
@@ -239,12 +239,12 @@
|
|
|
239
239
|
);
|
|
240
240
|
const imgClasses = classNames(
|
|
241
241
|
"usx-avatar__img",
|
|
242
|
-
shape ? shapeClassMap
|
|
242
|
+
shape ? shapeClassMap[shape] : null,
|
|
243
243
|
imageClassName
|
|
244
244
|
);
|
|
245
245
|
const contentClasses = classNames(
|
|
246
246
|
"usx-avatar__content",
|
|
247
|
-
shape ? shapeClassMap
|
|
247
|
+
shape ? shapeClassMap[shape] : "usx-circle",
|
|
248
248
|
contentClassName
|
|
249
249
|
);
|
|
250
250
|
const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: value, alt: alt || `${value} icon` }) }) : /* @__PURE__ */ jsxRuntime.jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props });
|
|
@@ -2343,13 +2343,6 @@
|
|
|
2343
2343
|
] })
|
|
2344
2344
|
] }, index)) });
|
|
2345
2345
|
}
|
|
2346
|
-
const shapeClassMap = {
|
|
2347
|
-
circle: "usx-circle",
|
|
2348
|
-
"rounded-sm": "usx-rounded-sm",
|
|
2349
|
-
"rounded-md": "usx-rounded-md",
|
|
2350
|
-
"rounded-lg": "usx-rounded-lg",
|
|
2351
|
-
"rounded-xl": "usx-rounded-xl"
|
|
2352
|
-
};
|
|
2353
2346
|
const defaultRequiredLinks = {
|
|
2354
2347
|
en: [
|
|
2355
2348
|
"About <Parent shortname>",
|
|
@@ -2399,12 +2392,18 @@
|
|
|
2399
2392
|
}
|
|
2400
2393
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2401
2394
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "An " }),
|
|
2402
|
-
"official website of
|
|
2395
|
+
"official website of",
|
|
2403
2396
|
" ",
|
|
2404
|
-
parentAgencies.map((agency, index) =>
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2397
|
+
parentAgencies.map((agency, index) => {
|
|
2398
|
+
const isLast = index === parentAgencies.length - 1;
|
|
2399
|
+
const prefix = index === 0 ? "" : isLast ? " and " : ", ";
|
|
2400
|
+
const article = agency.useThe === false ? "" : "the ";
|
|
2401
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
2402
|
+
prefix,
|
|
2403
|
+
article,
|
|
2404
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { href: agency.href || "", children: agency.name })
|
|
2405
|
+
] }, `${agency.name}-${index}`);
|
|
2406
|
+
}),
|
|
2408
2407
|
taxpayerDisclaimer ? ". Produced and published at taxpayer expense." : ""
|
|
2409
2408
|
] });
|
|
2410
2409
|
}
|
|
@@ -2412,7 +2411,7 @@
|
|
|
2412
2411
|
domain = "domain.gov",
|
|
2413
2412
|
language = "en",
|
|
2414
2413
|
parentAgencies = [],
|
|
2415
|
-
|
|
2414
|
+
avatarProps = [],
|
|
2416
2415
|
logoShape = null,
|
|
2417
2416
|
requiredLinks,
|
|
2418
2417
|
taxpayerDisclaimer = false,
|
|
@@ -2430,7 +2429,7 @@
|
|
|
2430
2429
|
const usaGov = defaultUsaGov[language] || defaultUsaGov.en;
|
|
2431
2430
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes, children: [
|
|
2432
2431
|
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "usa-identifier__section usa-identifier__section--masthead", "aria-label": labels.masthead, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "usa-identifier__container", children: [
|
|
2433
|
-
|
|
2432
|
+
avatarProps.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2434
2433
|
"div",
|
|
2435
2434
|
{
|
|
2436
2435
|
className: classNames(
|
|
@@ -2438,19 +2437,16 @@
|
|
|
2438
2437
|
"usx-avatar-group",
|
|
2439
2438
|
overlapAvatars && "usa-avatar-group--overlap"
|
|
2440
2439
|
),
|
|
2441
|
-
children:
|
|
2442
|
-
|
|
2440
|
+
children: avatarProps.map((avatar, index) => /* @__PURE__ */ React.createElement(
|
|
2441
|
+
Avatar,
|
|
2443
2442
|
{
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
)
|
|
2449
|
-
src: logo.src,
|
|
2450
|
-
alt: logo.alt,
|
|
2451
|
-
role: "img"
|
|
2443
|
+
...avatar,
|
|
2444
|
+
key: `${avatar.alt}-${index}`,
|
|
2445
|
+
shape: avatar.shape || logoShape,
|
|
2446
|
+
className: classNames("usa-identifier__logo", avatar.className),
|
|
2447
|
+
imageClassName: classNames("usa-identifier__logo-img", avatar.imageClassName)
|
|
2452
2448
|
}
|
|
2453
|
-
)
|
|
2449
|
+
))
|
|
2454
2450
|
}
|
|
2455
2451
|
) : null,
|
|
2456
2452
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "usa-identifier__identity", "aria-label": labels.description, children: [
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React, { useState, useRef, useId, createContext, useContext, useEffect, useCallback, useMemo } from "react";
|
|
2
|
+
import React, { useState, useRef, createElement, useId, createContext, useContext, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
function getDefaultExportFromCjs(x) {
|
|
4
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
5
5
|
}
|
|
@@ -209,7 +209,7 @@ function Icon({
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
const shapeClassMap
|
|
212
|
+
const shapeClassMap = {
|
|
213
213
|
circle: "usx-circle",
|
|
214
214
|
"rounded-sm": "usx-rounded-sm",
|
|
215
215
|
"rounded-md": "usx-rounded-md",
|
|
@@ -237,12 +237,12 @@ function Avatar({
|
|
|
237
237
|
);
|
|
238
238
|
const imgClasses = classNames(
|
|
239
239
|
"usx-avatar__img",
|
|
240
|
-
shape ? shapeClassMap
|
|
240
|
+
shape ? shapeClassMap[shape] : null,
|
|
241
241
|
imageClassName
|
|
242
242
|
);
|
|
243
243
|
const contentClasses = classNames(
|
|
244
244
|
"usx-avatar__content",
|
|
245
|
-
shape ? shapeClassMap
|
|
245
|
+
shape ? shapeClassMap[shape] : "usx-circle",
|
|
246
246
|
contentClassName
|
|
247
247
|
);
|
|
248
248
|
const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsx(Icon, { name: value, alt: alt || `${value} icon` }) }) : /* @__PURE__ */ jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props });
|
|
@@ -2341,13 +2341,6 @@ function IconList({ items = [], primary = false, size = null, className = "", ..
|
|
|
2341
2341
|
] })
|
|
2342
2342
|
] }, index)) });
|
|
2343
2343
|
}
|
|
2344
|
-
const shapeClassMap = {
|
|
2345
|
-
circle: "usx-circle",
|
|
2346
|
-
"rounded-sm": "usx-rounded-sm",
|
|
2347
|
-
"rounded-md": "usx-rounded-md",
|
|
2348
|
-
"rounded-lg": "usx-rounded-lg",
|
|
2349
|
-
"rounded-xl": "usx-rounded-xl"
|
|
2350
|
-
};
|
|
2351
2344
|
const defaultRequiredLinks = {
|
|
2352
2345
|
en: [
|
|
2353
2346
|
"About <Parent shortname>",
|
|
@@ -2397,12 +2390,18 @@ function renderDisclaimer({ language, parentAgencies, taxpayerDisclaimer }) {
|
|
|
2397
2390
|
}
|
|
2398
2391
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2399
2392
|
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "An " }),
|
|
2400
|
-
"official website of
|
|
2393
|
+
"official website of",
|
|
2401
2394
|
" ",
|
|
2402
|
-
parentAgencies.map((agency, index) =>
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2395
|
+
parentAgencies.map((agency, index) => {
|
|
2396
|
+
const isLast = index === parentAgencies.length - 1;
|
|
2397
|
+
const prefix = index === 0 ? "" : isLast ? " and " : ", ";
|
|
2398
|
+
const article = agency.useThe === false ? "" : "the ";
|
|
2399
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
2400
|
+
prefix,
|
|
2401
|
+
article,
|
|
2402
|
+
/* @__PURE__ */ jsx("a", { href: agency.href || "", children: agency.name })
|
|
2403
|
+
] }, `${agency.name}-${index}`);
|
|
2404
|
+
}),
|
|
2406
2405
|
taxpayerDisclaimer ? ". Produced and published at taxpayer expense." : ""
|
|
2407
2406
|
] });
|
|
2408
2407
|
}
|
|
@@ -2410,7 +2409,7 @@ function Identifier({
|
|
|
2410
2409
|
domain = "domain.gov",
|
|
2411
2410
|
language = "en",
|
|
2412
2411
|
parentAgencies = [],
|
|
2413
|
-
|
|
2412
|
+
avatarProps = [],
|
|
2414
2413
|
logoShape = null,
|
|
2415
2414
|
requiredLinks,
|
|
2416
2415
|
taxpayerDisclaimer = false,
|
|
@@ -2428,7 +2427,7 @@ function Identifier({
|
|
|
2428
2427
|
const usaGov = defaultUsaGov[language] || defaultUsaGov.en;
|
|
2429
2428
|
return /* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
2430
2429
|
/* @__PURE__ */ jsx("section", { className: "usa-identifier__section usa-identifier__section--masthead", "aria-label": labels.masthead, children: /* @__PURE__ */ jsxs("div", { className: "usa-identifier__container", children: [
|
|
2431
|
-
|
|
2430
|
+
avatarProps.length > 0 ? /* @__PURE__ */ jsx(
|
|
2432
2431
|
"div",
|
|
2433
2432
|
{
|
|
2434
2433
|
className: classNames(
|
|
@@ -2436,19 +2435,16 @@ function Identifier({
|
|
|
2436
2435
|
"usx-avatar-group",
|
|
2437
2436
|
overlapAvatars && "usa-avatar-group--overlap"
|
|
2438
2437
|
),
|
|
2439
|
-
children:
|
|
2440
|
-
|
|
2438
|
+
children: avatarProps.map((avatar, index) => /* @__PURE__ */ createElement(
|
|
2439
|
+
Avatar,
|
|
2441
2440
|
{
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
)
|
|
2447
|
-
src: logo.src,
|
|
2448
|
-
alt: logo.alt,
|
|
2449
|
-
role: "img"
|
|
2441
|
+
...avatar,
|
|
2442
|
+
key: `${avatar.alt}-${index}`,
|
|
2443
|
+
shape: avatar.shape || logoShape,
|
|
2444
|
+
className: classNames("usa-identifier__logo", avatar.className),
|
|
2445
|
+
imageClassName: classNames("usa-identifier__logo-img", avatar.imageClassName)
|
|
2450
2446
|
}
|
|
2451
|
-
)
|
|
2447
|
+
))
|
|
2452
2448
|
}
|
|
2453
2449
|
) : null,
|
|
2454
2450
|
/* @__PURE__ */ jsxs("section", { className: "usa-identifier__identity", "aria-label": labels.description, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solexllc/usx-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React component library for USX.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@solexllc/usx": "0.1.
|
|
28
|
+
"@solexllc/usx": "0.1.7",
|
|
29
29
|
"@solexllc/usx-theme": "0.2.2",
|
|
30
30
|
"@solexllc/usx-uswds-fixes": "0.1.4",
|
|
31
31
|
"classnames": "^2.5.1",
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
|
|
4
|
-
const shapeClassMap = {
|
|
5
|
-
circle: 'usx-circle',
|
|
6
|
-
'rounded-sm': 'usx-rounded-sm',
|
|
7
|
-
'rounded-md': 'usx-rounded-md',
|
|
8
|
-
'rounded-lg': 'usx-rounded-lg',
|
|
9
|
-
'rounded-xl': 'usx-rounded-xl',
|
|
10
|
-
};
|
|
3
|
+
import Avatar, { AvatarProps } from '../avatar/Avatar';
|
|
11
4
|
|
|
12
5
|
interface Agency {
|
|
13
6
|
name: string;
|
|
14
7
|
href?: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
interface Logo {
|
|
18
|
-
href?: string;
|
|
19
|
-
src: string;
|
|
20
|
-
alt: string;
|
|
21
|
-
shape?: null | 'circle' | 'rounded-sm' | 'rounded-md' | 'rounded-lg' | 'rounded-xl';
|
|
22
|
-
imageClassName?: string;
|
|
8
|
+
/** Whether "the" precedes the name in the English disclaimer, e.g. "the Department of...". Default true. */
|
|
9
|
+
useThe?: boolean;
|
|
23
10
|
}
|
|
24
11
|
|
|
25
12
|
interface RequiredLink {
|
|
@@ -33,8 +20,8 @@ export interface IdentifierProps {
|
|
|
33
20
|
domain?: string;
|
|
34
21
|
language?: 'en' | 'es';
|
|
35
22
|
parentAgencies?: Agency[];
|
|
36
|
-
|
|
37
|
-
logoShape?:
|
|
23
|
+
avatarProps?: AvatarProps[];
|
|
24
|
+
logoShape?: AvatarProps['shape'];
|
|
38
25
|
requiredLinks?: RequiredLinks;
|
|
39
26
|
taxpayerDisclaimer?: boolean;
|
|
40
27
|
overlapAvatars?: boolean;
|
|
@@ -95,13 +82,17 @@ function renderDisclaimer({ language, parentAgencies, taxpayerDisclaimer }: { la
|
|
|
95
82
|
}
|
|
96
83
|
return (
|
|
97
84
|
<>
|
|
98
|
-
<span aria-hidden="true">An </span>official website of
|
|
99
|
-
{parentAgencies.map((agency, index) =>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
85
|
+
<span aria-hidden="true">An </span>official website of{' '}
|
|
86
|
+
{parentAgencies.map((agency, index) => {
|
|
87
|
+
const isLast = index === parentAgencies.length - 1;
|
|
88
|
+
const prefix = index === 0 ? '' : isLast ? ' and ' : ', ';
|
|
89
|
+
const article = agency.useThe === false ? '' : 'the ';
|
|
90
|
+
return (
|
|
91
|
+
<React.Fragment key={`${agency.name}-${index}`}>
|
|
92
|
+
{prefix}{article}<a href={agency.href || ''}>{agency.name}</a>
|
|
93
|
+
</React.Fragment>
|
|
94
|
+
);
|
|
95
|
+
})}
|
|
105
96
|
{taxpayerDisclaimer ? '. Produced and published at taxpayer expense.' : ''}
|
|
106
97
|
</>
|
|
107
98
|
);
|
|
@@ -111,7 +102,7 @@ export default function Identifier({
|
|
|
111
102
|
domain = 'domain.gov',
|
|
112
103
|
language = 'en',
|
|
113
104
|
parentAgencies = [],
|
|
114
|
-
|
|
105
|
+
avatarProps = [],
|
|
115
106
|
logoShape = null,
|
|
116
107
|
requiredLinks,
|
|
117
108
|
taxpayerDisclaimer = false,
|
|
@@ -133,7 +124,7 @@ export default function Identifier({
|
|
|
133
124
|
<div className={classes}>
|
|
134
125
|
<section className="usa-identifier__section usa-identifier__section--masthead" aria-label={labels.masthead}>
|
|
135
126
|
<div className="usa-identifier__container">
|
|
136
|
-
{
|
|
127
|
+
{avatarProps.length > 0 ? (
|
|
137
128
|
<div
|
|
138
129
|
className={classNames(
|
|
139
130
|
'usa-identifier__logos',
|
|
@@ -141,19 +132,14 @@ export default function Identifier({
|
|
|
141
132
|
overlapAvatars && 'usa-avatar-group--overlap',
|
|
142
133
|
)}
|
|
143
134
|
>
|
|
144
|
-
{
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
src={logo.src}
|
|
153
|
-
alt={logo.alt}
|
|
154
|
-
role="img"
|
|
155
|
-
/>
|
|
156
|
-
</a>
|
|
135
|
+
{avatarProps.map((avatar, index) => (
|
|
136
|
+
<Avatar
|
|
137
|
+
{...avatar}
|
|
138
|
+
key={`${avatar.alt}-${index}`}
|
|
139
|
+
shape={avatar.shape || logoShape}
|
|
140
|
+
className={classNames('usa-identifier__logo', avatar.className)}
|
|
141
|
+
imageClassName={classNames('usa-identifier__logo-img', avatar.imageClassName)}
|
|
142
|
+
/>
|
|
157
143
|
))}
|
|
158
144
|
</div>
|
|
159
145
|
) : null}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"href": ""
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"
|
|
14
|
+
"avatarProps": [
|
|
15
15
|
{
|
|
16
16
|
"href": "",
|
|
17
17
|
"src": "./lady_liberty.png",
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
"description": "Parent agency.",
|
|
73
73
|
"properties": {
|
|
74
74
|
"name": { "type": "string", "description": "Agency name." },
|
|
75
|
-
"href": { "type": "string", "description": "Link to the agency's site." }
|
|
75
|
+
"href": { "type": "string", "description": "Link to the agency's site." },
|
|
76
|
+
"useThe": { "type": "boolean", "description": "Whether \"the\" precedes the name in the English disclaimer, e.g. \"the Department of...\". Default true. Has no effect on the Spanish disclaimer." }
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
|
-
"
|
|
80
|
+
"avatarProps": {
|
|
80
81
|
"type": "array",
|
|
81
|
-
"description": "
|
|
82
|
+
"description": "Props for Avatar components rendered in the identifier masthead.",
|
|
82
83
|
"items": {
|
|
83
84
|
"type": "object",
|
|
84
|
-
"description": "
|
|
85
|
+
"description": "Avatar props, including image, initials, and icon variants.",
|
|
85
86
|
"component": "avatar",
|
|
86
|
-
"omit": ["variant", "value", "tooltip", "className", "contentClassName"],
|
|
87
87
|
"properties": {
|
|
88
88
|
"shape": {
|
|
89
89
|
"type": "select",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{# Django template for Identifier #}
|
|
2
|
+
{% load components %}
|
|
2
3
|
|
|
3
4
|
<div class="usa-identifier usx-identifier{% if className %} {{ className }}{% endif %}">
|
|
4
5
|
<section
|
|
@@ -6,17 +7,12 @@
|
|
|
6
7
|
aria-label="{% if language == 'es' %}Identificador de la agencia,{% else %}Agency identifier,{% endif %}"
|
|
7
8
|
>
|
|
8
9
|
<div class="usa-identifier__container">
|
|
9
|
-
{% if
|
|
10
|
+
{% if avatarProps %}
|
|
10
11
|
<div class="usa-identifier__logos usx-avatar-group{% if overlapAvatars %} usa-avatar-group--overlap{% endif %}">
|
|
11
|
-
{% for
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
src="{{ logo.src }}"
|
|
16
|
-
alt="{{ logo.alt }}"
|
|
17
|
-
role="img"
|
|
18
|
-
/>
|
|
19
|
-
</a>
|
|
12
|
+
{% for item in avatarProps %}
|
|
13
|
+
{% with avatarClass=item.className|default:'' imageClass=item.imageClassName|default:'' defaultShape=logoShape|default:'' %}
|
|
14
|
+
{% avatar href=item.href src=item.src alt=item.alt variant=item.variant|default:'image' value=item.value shape=item.shape|default:defaultShape tooltip=item.tooltip className='usa-identifier__logo '|add:avatarClass imageClassName='usa-identifier__logo-img '|add:imageClass contentClassName=item.contentClassName %}{% endavatar %}
|
|
15
|
+
{% endwith %}
|
|
20
16
|
{% endfor %}
|
|
21
17
|
</div>
|
|
22
18
|
{% endif %}
|
|
@@ -35,10 +31,10 @@
|
|
|
35
31
|
{% endfor %}
|
|
36
32
|
{% if taxpayerDisclaimer %} . Producido y publicado con dinero de los contribuyentes de impuestos.{% endif %}
|
|
37
33
|
{% else %}
|
|
38
|
-
<span aria-hidden="true">An </span>official website of
|
|
34
|
+
<span aria-hidden="true">An </span>official website of
|
|
39
35
|
{% for agency in parentAgencies %}
|
|
40
|
-
{% if not forloop.first %}{% if forloop.last %} and
|
|
41
|
-
<a href="{{ agency.href|default:'' }}">{{ agency.name }}</a>
|
|
36
|
+
{% if not forloop.first %}{% if forloop.last %} and{% else %},{% endif %}{% endif %}
|
|
37
|
+
{% if agency.useThe|default_bool:True %} the{% endif %} <a href="{{ agency.href|default:'' }}">{{ agency.name }}</a>
|
|
42
38
|
{% endfor %}
|
|
43
39
|
{% if taxpayerDisclaimer %} . Produced and published at taxpayer expense.{% endif %}
|
|
44
40
|
{% endif %}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
10
10
|
<a href="" class="usa-identifier__logo usx-avatar"
|
|
11
11
|
><img
|
|
12
|
-
class="usa-identifier__logo-img"
|
|
12
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
13
13
|
src="./lady_liberty.png"
|
|
14
14
|
alt="Statue of Liberty"
|
|
15
15
|
role="img"
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
100
100
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
101
101
|
><img
|
|
102
|
-
class="usa-identifier__logo-img"
|
|
102
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
103
103
|
src="./lady_liberty.png"
|
|
104
104
|
alt="Statue of Liberty"
|
|
105
105
|
role="img"
|
|
@@ -190,14 +190,14 @@
|
|
|
190
190
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
191
191
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
192
192
|
><img
|
|
193
|
-
class="usa-identifier__logo-img"
|
|
193
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
194
194
|
src="./george_washington.png"
|
|
195
195
|
alt="George Washington"
|
|
196
196
|
role="img"
|
|
197
197
|
/> </a
|
|
198
198
|
><a href="javascript:void(0);" class="usa-identifier__logo usx-avatar"
|
|
199
199
|
><img
|
|
200
|
-
class="usa-identifier__logo-img"
|
|
200
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
201
201
|
src="./thomas_jefferson.png"
|
|
202
202
|
alt="Thomas Jefferson"
|
|
203
203
|
role="img"
|
|
@@ -288,14 +288,14 @@
|
|
|
288
288
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
289
289
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
290
290
|
><img
|
|
291
|
-
class="usa-identifier__logo-img"
|
|
291
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
292
292
|
src="./george_washington.png"
|
|
293
293
|
alt="George Washington"
|
|
294
294
|
role="img"
|
|
295
295
|
/> </a
|
|
296
296
|
><a href="javascript:void(0);" class="usa-identifier__logo usx-avatar"
|
|
297
297
|
><img
|
|
298
|
-
class="usa-identifier__logo-img"
|
|
298
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
299
299
|
src="./thomas_jefferson.png"
|
|
300
300
|
alt="Thomas Jefferson"
|
|
301
301
|
role="img"
|
|
@@ -387,14 +387,14 @@
|
|
|
387
387
|
<div class="usa-identifier__logos usx-avatar-group usa-avatar-group--overlap">
|
|
388
388
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
389
389
|
><img
|
|
390
|
-
class="usa-identifier__logo-img usx-circle"
|
|
390
|
+
class="usx-avatar__img usa-identifier__logo-img usx-circle"
|
|
391
391
|
src="./george_washington.png"
|
|
392
392
|
alt="George Washington"
|
|
393
393
|
role="img"
|
|
394
394
|
/> </a
|
|
395
395
|
><a href="javascript:void(0);" class="usa-identifier__logo usx-avatar"
|
|
396
396
|
><img
|
|
397
|
-
class="usa-identifier__logo-img usx-circle"
|
|
397
|
+
class="usx-avatar__img usa-identifier__logo-img usx-circle"
|
|
398
398
|
src="./thomas_jefferson.png"
|
|
399
399
|
alt="Thomas Jefferson"
|
|
400
400
|
role="img"
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
567
567
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
568
568
|
><img
|
|
569
|
-
class="usa-identifier__logo-img"
|
|
569
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
570
570
|
src="./lady_liberty.png"
|
|
571
571
|
alt="Statue of Liberty"
|
|
572
572
|
role="img"
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
<div class="usa-identifier__logos usx-avatar-group">
|
|
658
658
|
<a href="javascript:void(0)" class="usa-identifier__logo usx-avatar"
|
|
659
659
|
><img
|
|
660
|
-
class="usa-identifier__logo-img"
|
|
660
|
+
class="usx-avatar__img usa-identifier__logo-img"
|
|
661
661
|
src="./lady_liberty.png"
|
|
662
662
|
alt="Statue of Liberty"
|
|
663
663
|
role="img"
|