@solexllc/usx-react 0.4.0 → 0.6.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/README.md +99 -0
- package/dist/index.cjs +576 -442
- package/dist/index.js +576 -442
- package/package.json +5 -5
- package/src/components/attribution/config.json +5 -5
- package/src/components/banner/config.json +2 -2
- package/src/components/breadcrumb/Breadcrumb.tsx +5 -6
- package/src/components/breadcrumb/config.json +11 -1
- package/src/components/button/button.html +2 -2
- package/src/components/button-group/button-group.django.html +1 -1
- package/src/components/calendar-date/calendar-date.django.html +3 -3
- package/src/components/callout/Callout.tsx +53 -0
- package/src/components/callout/callout.django.html +5 -0
- package/src/components/callout/callout.html +76 -0
- package/src/components/callout/config.json +74 -0
- package/src/components/card/Card.tsx +18 -34
- package/src/components/card/card.django.html +12 -10
- package/src/components/card/config.json +15 -40
- package/src/components/card-group/card-group.django.html +1 -1
- package/src/components/carousel/Carousel.tsx +3 -2
- package/src/components/carousel/carousel.django.html +13 -2
- package/src/components/carousel/config.json +2 -2
- package/src/components/character-count/config.json +2 -2
- package/src/components/checkbox-group/CheckboxGroup.tsx +10 -20
- package/src/components/checkbox-group/checkbox-group.django.html +10 -4
- package/src/components/checkbox-group/config.json +10 -5
- package/src/components/clickable/clickable.html +21 -39
- package/src/components/clickable/config.json +2 -2
- package/src/components/collection/Collection.tsx +5 -5
- package/src/components/collection/collection.django.html +2 -4
- package/src/components/collection/config.json +7 -6
- package/src/components/combobox/config.json +4 -4
- package/src/components/container/Container.tsx +108 -0
- package/src/components/container/_layout-classes.django.html +12 -0
- package/src/components/container/config.json +288 -0
- package/src/components/container/container.django.html +13 -0
- package/src/components/container/container.html +125 -0
- package/src/components/date-picker/config.json +4 -4
- package/src/components/date-range-picker/config.json +7 -7
- package/src/components/error-message/config.json +2 -2
- package/src/components/eyebrow/Eyebrow.tsx +2 -1
- package/src/components/eyebrow/config.json +2 -2
- package/src/components/fieldset/config.json +5 -5
- package/src/components/file-input/FileInput.tsx +3 -2
- package/src/components/file-input/config.json +5 -5
- package/src/components/file-list/FileList.tsx +2 -1
- package/src/components/file-list/config.json +2 -2
- package/src/components/footer/Footer.tsx +5 -5
- package/src/components/form-group/config.json +2 -2
- package/src/components/hero/Hero.tsx +8 -14
- package/src/components/hero/config.json +36 -27
- package/src/components/hero/hero.django.html +2 -2
- package/src/components/hint/config.json +2 -2
- package/src/components/in-page-nav/config.json +11 -1
- package/src/components/indicator/config.json +2 -2
- package/src/components/input/config.json +2 -2
- package/src/components/label/config.json +2 -2
- package/src/components/language-selector/config.json +2 -2
- package/src/components/layout/Layout.tsx +1 -1
- package/src/components/legend/config.json +3 -3
- package/src/components/link/config.json +2 -2
- package/src/components/memorable-date/config.json +9 -9
- package/src/components/misc-banner/MiscBanner.tsx +2 -1
- package/src/components/misc-banner/config.json +2 -2
- package/src/components/modal/config.json +2 -2
- package/src/components/page/Page.tsx +2 -1
- package/src/components/page/config.json +7 -7
- package/src/components/page/page.django.html +1 -1
- package/src/components/pagination/Pagination.tsx +2 -1
- package/src/components/pagination/container/PaginationContainer.tsx +2 -1
- package/src/components/prose/config.json +5 -1
- package/src/components/quote/Quote.tsx +58 -0
- package/src/components/quote/config.json +51 -0
- package/src/components/quote/quote.django.html +15 -0
- package/src/components/quote/quote.html +66 -0
- package/src/components/radio-buttons/config.json +3 -3
- package/src/components/range-slider/RangeSlider.tsx +2 -1
- package/src/components/range-slider/config.json +4 -4
- package/src/components/required/config.json +2 -2
- package/src/components/section/Section.tsx +6 -2
- package/src/components/section/config.json +19 -6
- package/src/components/section/section.django.html +9 -2
- package/src/components/select/config.json +2 -2
- package/src/components/site-alert/SiteAlert.tsx +5 -6
- package/src/components/skipnav/config.json +2 -2
- package/src/components/summary-box/config.json +3 -3
- package/src/components/swap/Swap.tsx +4 -3
- package/src/components/swap/config.json +4 -4
- package/src/components/switch/config.json +2 -2
- package/src/components/table/config.json +13 -3
- package/src/components/tag/config.json +2 -2
- package/src/components/tag-group/config.json +2 -2
- package/src/components/text-area/config.json +2 -2
- package/src/components/time-picker/config.json +4 -4
- package/src/components/toggle/Toggle.tsx +69 -40
- package/src/components/toggle/config.json +42 -10
- package/src/components/toggle/toggle.django.html +25 -17
- package/src/components/toggle/toggle.html +319 -85
- package/src/components/tooltip/config.json +2 -2
- package/src/components/villain/Villain.tsx +2 -1
- package/src/index.js +3 -1
- package/src/components/block/Block.tsx +0 -78
- package/src/components/block/block.django.html +0 -26
- package/src/components/block/block.html +0 -162
- package/src/components/block/config.json +0 -88
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "container",
|
|
3
|
+
"template": "container/container.django.html",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"props": {
|
|
6
|
+
"element": {
|
|
7
|
+
"type": "select",
|
|
8
|
+
"description": "Root HTML element. Use a heading or accessible label for named sections and navigation; list roots require list-item children.",
|
|
9
|
+
"options": [
|
|
10
|
+
"div",
|
|
11
|
+
"section",
|
|
12
|
+
"article",
|
|
13
|
+
"aside",
|
|
14
|
+
"nav",
|
|
15
|
+
"ul",
|
|
16
|
+
"ol",
|
|
17
|
+
"li"
|
|
18
|
+
],
|
|
19
|
+
"default": "div"
|
|
20
|
+
},
|
|
21
|
+
"gridContainer": {
|
|
22
|
+
"type": "select",
|
|
23
|
+
"description": "Opt-in centered USWDS page-width container with side padding. Default uses the USX themed grid-container; named sizes use USWDS widths. Usually wrap a gridRow inside this container rather than combining them.",
|
|
24
|
+
"options": [
|
|
25
|
+
"default",
|
|
26
|
+
"card",
|
|
27
|
+
"card-lg",
|
|
28
|
+
"mobile",
|
|
29
|
+
"mobile-lg",
|
|
30
|
+
"tablet",
|
|
31
|
+
"tablet-lg",
|
|
32
|
+
"desktop",
|
|
33
|
+
"desktop-lg",
|
|
34
|
+
"widescreen"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"gridRow": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Use a wrapping USWDS grid row. Nest Containers with column settings as direct children. Omitted leaves the container unstyled.",
|
|
40
|
+
"default": false
|
|
41
|
+
},
|
|
42
|
+
"display": {
|
|
43
|
+
"type": "select",
|
|
44
|
+
"description": "Display mode. Choose flex or inline-flex to enable direction, wrap, alignment, and gap. Flow-root contains floated children; none hides the container and its descendants.",
|
|
45
|
+
"options": [
|
|
46
|
+
"block",
|
|
47
|
+
"flex",
|
|
48
|
+
"inline",
|
|
49
|
+
"inline-block",
|
|
50
|
+
"inline-flex",
|
|
51
|
+
"none",
|
|
52
|
+
"flow-root"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"direction": {
|
|
56
|
+
"type": "select",
|
|
57
|
+
"description": "Direction of flex children. Requires display flex or inline-flex (or gridRow). Reverse directions change visual order only, not reading or keyboard order.",
|
|
58
|
+
"options": [
|
|
59
|
+
"row",
|
|
60
|
+
"column",
|
|
61
|
+
"row-reverse",
|
|
62
|
+
"column-reverse"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"wrap": {
|
|
66
|
+
"type": "select",
|
|
67
|
+
"description": "Whether flex children wrap onto new lines. Set wrap for a flexible toolbar; omitted uses normal CSS behavior.",
|
|
68
|
+
"options": [
|
|
69
|
+
"wrap",
|
|
70
|
+
"nowrap",
|
|
71
|
+
"wrap-reverse"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"justify": {
|
|
75
|
+
"type": "select",
|
|
76
|
+
"description": "Distribute children along the main flex axis.",
|
|
77
|
+
"options": [
|
|
78
|
+
"start",
|
|
79
|
+
"end",
|
|
80
|
+
"center",
|
|
81
|
+
"space-between",
|
|
82
|
+
"space-around",
|
|
83
|
+
"space-evenly"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"align": {
|
|
87
|
+
"type": "select",
|
|
88
|
+
"description": "Align children across the flex axis.",
|
|
89
|
+
"options": [
|
|
90
|
+
"start",
|
|
91
|
+
"end",
|
|
92
|
+
"center",
|
|
93
|
+
"stretch",
|
|
94
|
+
"baseline"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"alignSelf": {
|
|
98
|
+
"type": "select",
|
|
99
|
+
"description": "Override this container’s alignment as a child of a flex parent. Auto restores parent alignment.",
|
|
100
|
+
"options": [
|
|
101
|
+
"auto",
|
|
102
|
+
"start",
|
|
103
|
+
"end",
|
|
104
|
+
"center",
|
|
105
|
+
"stretch",
|
|
106
|
+
"baseline"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"flex": {
|
|
110
|
+
"type": "select",
|
|
111
|
+
"description": "Size this container as a flex child: auto uses its content size, fill shares available space, none keeps its size. Use column instead when this is a USWDS grid column.",
|
|
112
|
+
"options": [
|
|
113
|
+
"auto",
|
|
114
|
+
"fill",
|
|
115
|
+
"none"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"gap": {
|
|
119
|
+
"type": "select",
|
|
120
|
+
"description": "Space between flex children using USWDS spacing tokens (1 = 8px, 05 = 4px). Use gutters instead on gridRow: CSS gap adds to percentage column widths.",
|
|
121
|
+
"options": [
|
|
122
|
+
"0",
|
|
123
|
+
"2px",
|
|
124
|
+
"05",
|
|
125
|
+
"1",
|
|
126
|
+
"2",
|
|
127
|
+
"3",
|
|
128
|
+
"4",
|
|
129
|
+
"5",
|
|
130
|
+
"6"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"column": {
|
|
134
|
+
"type": "select",
|
|
135
|
+
"description": "Width of this container inside a gridRow: 1–12 columns, auto for content width, or fill for equal shares. Set 12 at the base to stack on small screens, then override at larger breakpoints.",
|
|
136
|
+
"options": [
|
|
137
|
+
"auto",
|
|
138
|
+
"fill",
|
|
139
|
+
"1",
|
|
140
|
+
"2",
|
|
141
|
+
"3",
|
|
142
|
+
"4",
|
|
143
|
+
"5",
|
|
144
|
+
"6",
|
|
145
|
+
"7",
|
|
146
|
+
"8",
|
|
147
|
+
"9",
|
|
148
|
+
"10",
|
|
149
|
+
"11",
|
|
150
|
+
"12"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"offset": {
|
|
154
|
+
"type": "select",
|
|
155
|
+
"description": "Offset this grid column by 1–12 columns. Use none to reset an earlier offset.",
|
|
156
|
+
"options": [
|
|
157
|
+
"none",
|
|
158
|
+
"1",
|
|
159
|
+
"2",
|
|
160
|
+
"3",
|
|
161
|
+
"4",
|
|
162
|
+
"5",
|
|
163
|
+
"6",
|
|
164
|
+
"7",
|
|
165
|
+
"8",
|
|
166
|
+
"9",
|
|
167
|
+
"10",
|
|
168
|
+
"11",
|
|
169
|
+
"12"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"gutters": {
|
|
173
|
+
"type": "select",
|
|
174
|
+
"description": "Horizontal USWDS grid gutters; requires gridRow. Use 2 with a desktop override of 4 for standard responsive spacing; 0 removes gutters. Rows use negative margins, so nest them in a gridContainer or another padded parent.",
|
|
175
|
+
"options": [
|
|
176
|
+
"sm",
|
|
177
|
+
"md",
|
|
178
|
+
"lg",
|
|
179
|
+
"0",
|
|
180
|
+
"2px",
|
|
181
|
+
"05",
|
|
182
|
+
"1",
|
|
183
|
+
"2",
|
|
184
|
+
"3",
|
|
185
|
+
"4",
|
|
186
|
+
"5",
|
|
187
|
+
"6"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"float": {
|
|
191
|
+
"type": "select",
|
|
192
|
+
"description": "Float this container so surrounding content wraps around it. Float has no effect on flex children; use a flow-root parent to contain floats.",
|
|
193
|
+
"options": [
|
|
194
|
+
"none",
|
|
195
|
+
"left",
|
|
196
|
+
"right"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"responsive": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"description": "Mobile-first overrides keyed by mobileLg, tablet, and desktop. Omitted fields keep the smaller-screen setting; use explicit values (none, 0, row, etc.) to reset. Breakpoints match precompiled USWDS and do not follow USX page-layout theme breakpoints.",
|
|
202
|
+
"properties": {
|
|
203
|
+
"mobileLg": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"description": "Layout overrides at 30em / 480px and wider (pixel equivalent assumes 16px browser default).",
|
|
206
|
+
"component": "container",
|
|
207
|
+
"omit": [
|
|
208
|
+
"element",
|
|
209
|
+
"gridContainer",
|
|
210
|
+
"gridRow",
|
|
211
|
+
"responsive",
|
|
212
|
+
"children",
|
|
213
|
+
"content",
|
|
214
|
+
"className",
|
|
215
|
+
"id",
|
|
216
|
+
"role",
|
|
217
|
+
"ariaLabel",
|
|
218
|
+
"ariaLabelledby"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"tablet": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"description": "Layout overrides at 40em / 640px and wider (pixel equivalent assumes 16px browser default).",
|
|
224
|
+
"component": "container",
|
|
225
|
+
"omit": [
|
|
226
|
+
"element",
|
|
227
|
+
"gridContainer",
|
|
228
|
+
"gridRow",
|
|
229
|
+
"responsive",
|
|
230
|
+
"children",
|
|
231
|
+
"content",
|
|
232
|
+
"className",
|
|
233
|
+
"id",
|
|
234
|
+
"role",
|
|
235
|
+
"ariaLabel",
|
|
236
|
+
"ariaLabelledby"
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"desktop": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"description": "Layout overrides at 64em / 1024px and wider (pixel equivalent assumes 16px browser default).",
|
|
242
|
+
"component": "container",
|
|
243
|
+
"omit": [
|
|
244
|
+
"element",
|
|
245
|
+
"gridContainer",
|
|
246
|
+
"gridRow",
|
|
247
|
+
"responsive",
|
|
248
|
+
"children",
|
|
249
|
+
"content",
|
|
250
|
+
"className",
|
|
251
|
+
"id",
|
|
252
|
+
"role",
|
|
253
|
+
"ariaLabel",
|
|
254
|
+
"ariaLabelledby"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"children": {
|
|
260
|
+
"type": "slot",
|
|
261
|
+
"description": "Grouped content rendered directly, with no child wrappers or reordering. Takes precedence over content unless null or undefined."
|
|
262
|
+
},
|
|
263
|
+
"content": {
|
|
264
|
+
"type": "slot",
|
|
265
|
+
"description": "Fallback grouped content when children is null or undefined."
|
|
266
|
+
},
|
|
267
|
+
"className": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"description": "Additional CSS classes for spacing, decoration, or layouts beyond these controls."
|
|
270
|
+
},
|
|
271
|
+
"id": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "HTML identifier for links and accessible references."
|
|
274
|
+
},
|
|
275
|
+
"role": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "Optional ARIA role; prefer an appropriate semantic element."
|
|
278
|
+
},
|
|
279
|
+
"ariaLabel": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Accessible name when a visible label is not available."
|
|
282
|
+
},
|
|
283
|
+
"ariaLabelledby": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"description": "ID of the visible heading or label that names this container."
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% load components %}
|
|
2
|
+
{% fragment as containerTag %}{% if element == 'section' or element == 'article' or element == 'aside' or element == 'nav' or element == 'ul' or element == 'ol' or element == 'li' %}{{ element }}{% else %}div{% endif %}{% endfragment %}
|
|
3
|
+
{% dict display=display direction=direction wrap=wrap justify=justify align=align alignSelf=alignSelf flex=flex gap=gap column=column offset=offset gutters=gutters float=float as baseLayout %}
|
|
4
|
+
{% fragment as containerClasses %}
|
|
5
|
+
usx-container
|
|
6
|
+
{% if gridContainer == 'default' %} grid-container{% elif gridContainer == 'card' or gridContainer == 'card-lg' or gridContainer == 'mobile' or gridContainer == 'mobile-lg' or gridContainer == 'tablet' or gridContainer == 'tablet-lg' or gridContainer == 'desktop' or gridContainer == 'desktop-lg' or gridContainer == 'widescreen' %} grid-container-{{ gridContainer }}{% endif %}
|
|
7
|
+
{% if gridRow is True %} grid-row{% endif %}
|
|
8
|
+
{% include 'container/_layout-classes.django.html' with layout=baseLayout prefix='' only %}
|
|
9
|
+
{% include 'container/_layout-classes.django.html' with layout=responsive.mobileLg prefix='mobile-lg:' only %}
|
|
10
|
+
{% include 'container/_layout-classes.django.html' with layout=responsive.tablet prefix='tablet:' only %}
|
|
11
|
+
{% include 'container/_layout-classes.django.html' with layout=responsive.desktop prefix='desktop:' only %}
|
|
12
|
+
{% endfragment %}
|
|
13
|
+
<{{ containerTag }} class="{{ containerClasses.split|join:' ' }}{% if className and className == className|stringformat:'s' %} {{ className }}{% endif %}"{% if id == id|stringformat:'s' %} id="{{ id }}"{% endif %}{% if role == role|stringformat:'s' %} role="{{ role }}"{% endif %}{% if ariaLabel == ariaLabel|stringformat:'s' %} aria-label="{{ ariaLabel }}"{% endif %}{% if ariaLabelledby == ariaLabelledby|stringformat:'s' %} aria-labelledby="{{ ariaLabelledby }}"{% endif %}>{% if children is not None %}{% if children is not True and children is not False %}{{ children|safe }}{% endif %}{% elif content is not None and content is not True and content is not False %}{{ content|safe }}{% endif %}</{{ containerTag }}>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<main class="maxw-desktop margin-x-auto">
|
|
2
|
+
<header class="margin-bottom-4">
|
|
3
|
+
<span class="usa-tag usx-tag">Applications open</span>
|
|
4
|
+
<h1 class="margin-top-2 margin-bottom-1">Community project support</h1>
|
|
5
|
+
<p class="maxw-tablet margin-top-0">Find the guidance and tools you need to prepare an application, submit it, and follow its progress.</p>
|
|
6
|
+
</header>
|
|
7
|
+
|
|
8
|
+
<section class="usx-section" id="before-you-begin">
|
|
9
|
+
<h2 class="usx-section__title">Before you begin</h2>
|
|
10
|
+
<div class="usx-section__content">
|
|
11
|
+
<!-- The base container adds no layout or visual styles. -->
|
|
12
|
+
<div class="usx-container">
|
|
13
|
+
<div class="usa-prose usx-prose">
|
|
14
|
+
<p>Review the program requirements and gather your supporting documents before you start.</p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</section>
|
|
19
|
+
|
|
20
|
+
<section class="usx-section">
|
|
21
|
+
<h2 class="usx-section__title">Choose your next step</h2>
|
|
22
|
+
<div class="usx-section__content">
|
|
23
|
+
<!-- Stack on small screens; use a wrapping row from tablet upward. -->
|
|
24
|
+
<div class="usx-container usx-container--display-flex usx-container--direction-column usx-container--gap-2 tablet:usx-container--direction-row tablet:usx-container--wrap-wrap tablet:usx-container--align-center tablet:usx-container--gap-3">
|
|
25
|
+
<a class="usa-button usx-button usa-button--primary margin-0" href="#apply">Start an application</a>
|
|
26
|
+
<a class="usa-button usx-button usa-button--outline margin-0" href="#resources">Explore resources</a>
|
|
27
|
+
<a class="usa-link usx-link" href="#before-you-begin">Check requirements</a>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</section>
|
|
31
|
+
|
|
32
|
+
<section class="usx-section" id="application-steps">
|
|
33
|
+
<h2 class="usx-section__title">From idea to decision</h2>
|
|
34
|
+
<div class="usx-section__content">
|
|
35
|
+
<!-- Nest grid-container > grid-row > grid columns. Use grid gutters, not CSS gap. -->
|
|
36
|
+
<div class="usx-container grid-container padding-x-0">
|
|
37
|
+
<div class="usx-container grid-row grid-gap-2 desktop:grid-gap-3">
|
|
38
|
+
<div class="usx-container grid-col-12 tablet:grid-col-6 desktop:grid-col-4 margin-bottom-3" id="prepare">
|
|
39
|
+
<div class="usa-card usx-card height-full margin-0">
|
|
40
|
+
<div class="usa-card__container">
|
|
41
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Prepare</h4></div>
|
|
42
|
+
<div class="usa-card__body"><p>Gather the information and documents needed for your application.</p></div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="usx-container grid-col-12 tablet:grid-col-6 desktop:grid-col-4 margin-bottom-3" id="apply">
|
|
47
|
+
<div class="usa-card usx-card height-full margin-0">
|
|
48
|
+
<div class="usa-card__container">
|
|
49
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Apply</h4></div>
|
|
50
|
+
<div class="usa-card__body"><p>Complete and submit your application online.</p></div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<!-- Center the last card on tablet; reset the offset when all three fit on desktop. -->
|
|
55
|
+
<div class="usx-container grid-col-12 tablet:grid-col-6 tablet:grid-offset-3 desktop:grid-col-4 desktop:grid-offset-none margin-bottom-3" id="track">
|
|
56
|
+
<div class="usa-card usx-card height-full margin-0">
|
|
57
|
+
<div class="usa-card__container">
|
|
58
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Track</h4></div>
|
|
59
|
+
<div class="usa-card__body"><p>Check your application status and see what happens next.</p></div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</section>
|
|
67
|
+
|
|
68
|
+
<section class="usx-section" id="program-overview">
|
|
69
|
+
<h2 class="usx-section__title">About the program</h2>
|
|
70
|
+
<div class="usx-section__content">
|
|
71
|
+
<!-- Full width on mobile, centered on tablet, side by side on desktop. -->
|
|
72
|
+
<div class="usx-container grid-container padding-x-0">
|
|
73
|
+
<div class="usx-container grid-row grid-gap-3">
|
|
74
|
+
<div class="usx-container grid-col-12 tablet:grid-col-8 tablet:grid-offset-2 desktop:grid-col-8 desktop:grid-offset-none margin-bottom-3">
|
|
75
|
+
<div class="usa-card usx-card height-full margin-0">
|
|
76
|
+
<div class="usa-card__container">
|
|
77
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Program overview</h4></div>
|
|
78
|
+
<div class="usa-card__body"><p>Funding is available for community-led projects that improve access to local services.</p></div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<!-- Reset the tablet offset explicitly when this becomes a sidebar. -->
|
|
83
|
+
<aside class="usx-container grid-col-12 tablet:grid-col-8 tablet:grid-offset-2 desktop:grid-col-4 desktop:grid-offset-none margin-bottom-3">
|
|
84
|
+
<div class="usa-summary-box usx-summary-box height-full margin-0" role="region" aria-labelledby="container-html-related-resources">
|
|
85
|
+
<div class="usa-summary-box__body">
|
|
86
|
+
<h4 class="usa-summary-box__heading" id="container-html-related-resources">Related resources</h4>
|
|
87
|
+
<div class="usa-summary-box__text"><a class="usa-link usx-link maxw-full" href="#resources">Eligibility and supporting documents</a></div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</aside>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</section>
|
|
95
|
+
|
|
96
|
+
<section class="usx-section" id="resources">
|
|
97
|
+
<h2 class="usx-section__title">Explore resources</h2>
|
|
98
|
+
<div class="usx-section__content">
|
|
99
|
+
<!-- Container can be the semantic list element, with no generated item wrappers. -->
|
|
100
|
+
<ul class="usx-container usx-container--display-flex usx-container--direction-column usx-container--gap-2 tablet:usx-container--direction-row tablet:usx-container--wrap-wrap add-list-reset margin-0">
|
|
101
|
+
<li class="usx-container"><a class="usa-link usx-link" href="#before-you-begin">Before you begin</a></li>
|
|
102
|
+
<li class="usx-container"><a class="usa-link usx-link" href="#application-steps">Application steps</a></li>
|
|
103
|
+
<li class="usx-container"><a class="usa-link usx-link" href="#program-overview">Program details</a></li>
|
|
104
|
+
</ul>
|
|
105
|
+
</div>
|
|
106
|
+
</section>
|
|
107
|
+
|
|
108
|
+
<section class="usx-section" id="application-updates">
|
|
109
|
+
<h2 class="usx-section__title">Application updates</h2>
|
|
110
|
+
<div class="usx-section__content">
|
|
111
|
+
<div class="usx-container">
|
|
112
|
+
<div class="usa-prose usx-prose"><p>Check which documents have been received and what happens next.</p></div>
|
|
113
|
+
<!-- Additional context is visible from tablet width upward. -->
|
|
114
|
+
<div class="usx-container usx-container--display-none tablet:usx-container--display-block">
|
|
115
|
+
<div class="usa-summary-box usx-summary-box margin-top-2" role="region" aria-labelledby="container-html-review-process">
|
|
116
|
+
<div class="usa-summary-box__body">
|
|
117
|
+
<h4 class="usa-summary-box__heading" id="container-html-review-process">How reviews work</h4>
|
|
118
|
+
<div class="usa-summary-box__text">Applications are reviewed in the order received. Keep your confirmation number for future reference.</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</section>
|
|
125
|
+
</main>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-picker",
|
|
3
3
|
"template": "date-picker/date-picker.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"default": {
|
|
6
6
|
"id": "appointment-date",
|
|
7
7
|
"name": "appointment-date",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"description": "name attribute for the input. Defaults to id."
|
|
20
20
|
},
|
|
21
21
|
"label": {
|
|
22
|
-
"type": "
|
|
22
|
+
"type": "slot",
|
|
23
23
|
"description": "Label text for the field."
|
|
24
24
|
},
|
|
25
25
|
"hint": {
|
|
26
|
-
"type": "
|
|
26
|
+
"type": "slot",
|
|
27
27
|
"default": "mm/dd/yyyy",
|
|
28
28
|
"description": "Hint text displayed below the label."
|
|
29
29
|
},
|
|
30
30
|
"error": {
|
|
31
|
-
"type": "
|
|
31
|
+
"type": "slot",
|
|
32
32
|
"description": "Error message. Renders aria-describedby and error styling."
|
|
33
33
|
},
|
|
34
34
|
"disabled": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-range-picker",
|
|
3
3
|
"template": "date-range-picker/date-range-picker.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"default": {
|
|
6
6
|
"startId": "event-date-start",
|
|
7
7
|
"endId": "event-date-end",
|
|
@@ -30,31 +30,31 @@
|
|
|
30
30
|
"description": "name attribute for the end date input. Defaults to endId."
|
|
31
31
|
},
|
|
32
32
|
"startLabel": {
|
|
33
|
-
"type": "
|
|
33
|
+
"type": "slot",
|
|
34
34
|
"default": "Event start date",
|
|
35
35
|
"description": "Label text for the start date field."
|
|
36
36
|
},
|
|
37
37
|
"endLabel": {
|
|
38
|
-
"type": "
|
|
38
|
+
"type": "slot",
|
|
39
39
|
"default": "Event end date",
|
|
40
40
|
"description": "Label text for the end date field."
|
|
41
41
|
},
|
|
42
42
|
"startHint": {
|
|
43
|
-
"type": "
|
|
43
|
+
"type": "slot",
|
|
44
44
|
"default": "mm/dd/yyyy",
|
|
45
45
|
"description": "Hint text displayed below the start date label."
|
|
46
46
|
},
|
|
47
47
|
"endHint": {
|
|
48
|
-
"type": "
|
|
48
|
+
"type": "slot",
|
|
49
49
|
"default": "mm/dd/yyyy",
|
|
50
50
|
"description": "Hint text displayed below the end date label."
|
|
51
51
|
},
|
|
52
52
|
"startError": {
|
|
53
|
-
"type": "
|
|
53
|
+
"type": "slot",
|
|
54
54
|
"description": "Error message for the start date field."
|
|
55
55
|
},
|
|
56
56
|
"endError": {
|
|
57
|
-
"type": "
|
|
57
|
+
"type": "slot",
|
|
58
58
|
"description": "Error message for the end date field."
|
|
59
59
|
},
|
|
60
60
|
"disabled": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "error-message",
|
|
3
3
|
"template": "error-message/error-message.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"props": {
|
|
6
6
|
"id": {
|
|
7
7
|
"type": "string",
|
|
8
8
|
"description": "Element id, referenced by the associated field's aria-describedby"
|
|
9
9
|
},
|
|
10
10
|
"children": {
|
|
11
|
-
"type": "
|
|
11
|
+
"type": "slot",
|
|
12
12
|
"description": "Inner HTML or text"
|
|
13
13
|
},
|
|
14
14
|
"className": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import ClassNames from 'classnames';
|
|
2
3
|
|
|
3
4
|
export interface EyebrowProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
5
|
children?: React.ReactNode;
|
|
@@ -6,7 +7,7 @@ export interface EyebrowProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export default function Eyebrow({ children = null, className = '', ...props }: EyebrowProps) {
|
|
9
|
-
const classes =
|
|
10
|
+
const classes = ClassNames('usx-eyebrow', className);
|
|
10
11
|
return (
|
|
11
12
|
<span className={classes} {...props}>
|
|
12
13
|
{children}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fieldset",
|
|
3
3
|
"template": "fieldset/fieldset.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"props": {
|
|
6
6
|
"legend": {
|
|
7
|
-
"type": "
|
|
7
|
+
"type": "slot",
|
|
8
8
|
"description": "Text for the fieldset legend"
|
|
9
9
|
},
|
|
10
10
|
"largeLegend": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"description": "Whether to disable all form controls within the fieldset"
|
|
21
21
|
},
|
|
22
22
|
"hint": {
|
|
23
|
-
"type": "
|
|
23
|
+
"type": "slot",
|
|
24
24
|
"description": "Group-level hint text, rendered after the legend"
|
|
25
25
|
},
|
|
26
26
|
"error": {
|
|
27
|
-
"type": "
|
|
27
|
+
"type": "slot",
|
|
28
28
|
"description": "Group-level error message, rendered after the hint"
|
|
29
29
|
},
|
|
30
30
|
"hintId": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"description": "Element id for the error message span"
|
|
37
37
|
},
|
|
38
38
|
"children": {
|
|
39
|
-
"type": "
|
|
39
|
+
"type": "slot",
|
|
40
40
|
"description": "Inner HTML or text"
|
|
41
41
|
},
|
|
42
42
|
"className": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
|
+
import ClassNames from 'classnames';
|
|
2
3
|
|
|
3
4
|
import Label from '../label/Label';
|
|
4
5
|
import Hint from '../hint/Hint';
|
|
@@ -125,7 +126,7 @@ export default function FileInput({
|
|
|
125
126
|
{commonHint}
|
|
126
127
|
{commonError}
|
|
127
128
|
<input
|
|
128
|
-
className={
|
|
129
|
+
className={ClassNames('usa-file-input', 'usx-file-input', className)}
|
|
129
130
|
id={id}
|
|
130
131
|
type="file"
|
|
131
132
|
name={name || id}
|
|
@@ -149,7 +150,7 @@ export default function FileInput({
|
|
|
149
150
|
{commonError}
|
|
150
151
|
<div className="usx-file-input__add-only">
|
|
151
152
|
<input
|
|
152
|
-
className={
|
|
153
|
+
className={ClassNames('usa-file-input', 'usx-file-input', className)}
|
|
153
154
|
id={id}
|
|
154
155
|
type="file"
|
|
155
156
|
name={name || id}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "file-input",
|
|
3
3
|
"template": "file-input/file-input.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"default": {
|
|
6
6
|
"id": "file-input-single",
|
|
7
7
|
"name": "file-input-single",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
"description": "name attribute for the input. Defaults to id."
|
|
19
19
|
},
|
|
20
20
|
"label": {
|
|
21
|
-
"type": "
|
|
21
|
+
"type": "slot",
|
|
22
22
|
"description": "Label text for the field."
|
|
23
23
|
},
|
|
24
24
|
"hint": {
|
|
25
|
-
"type": "
|
|
25
|
+
"type": "slot",
|
|
26
26
|
"description": "Hint text displayed below the label."
|
|
27
27
|
},
|
|
28
28
|
"fileListHint": {
|
|
29
|
-
"type": "
|
|
29
|
+
"type": "slot",
|
|
30
30
|
"default": "Selected files",
|
|
31
31
|
"description": "Heading/hint text shown above the managed file list, passed to FileList's hint prop. React only."
|
|
32
32
|
},
|
|
33
33
|
"error": {
|
|
34
|
-
"type": "
|
|
34
|
+
"type": "slot",
|
|
35
35
|
"description": "Error message. Renders aria-describedby and error styling."
|
|
36
36
|
},
|
|
37
37
|
"disabled": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import ClassNames from 'classnames';
|
|
2
3
|
|
|
3
4
|
import Icon from '../icon/Icon';
|
|
4
5
|
import Link from '../link/Link';
|
|
@@ -52,7 +53,7 @@ export default function FileList({ files, hint = 'Selected files', onRemove = nu
|
|
|
52
53
|
const lastEntry = getEntryDisplay(files[files.length - 1]);
|
|
53
54
|
|
|
54
55
|
return (
|
|
55
|
-
<div className={
|
|
56
|
+
<div className={ClassNames('usx-file-input__list', 'margin-top-1', className)}>
|
|
56
57
|
<span className="usa-sr-only" aria-live="polite">
|
|
57
58
|
{`You have selected the file: ${lastEntry.name}.`}
|
|
58
59
|
</span>
|