@solexllc/usx-react 0.6.1 → 0.7.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/dist/index.cjs +231 -98
- package/dist/index.js +231 -98
- package/package.json +5 -5
- package/src/components/accordion/accordion.html +596 -291
- package/src/components/alert/alert.html +112 -148
- package/src/components/attribution/attribution.html +50 -21
- package/src/components/avatar/avatar.html +86 -51
- package/src/components/breadcrumb/breadcrumb.html +45 -66
- package/src/components/button/button.html +363 -226
- package/src/components/callout/Callout.tsx +1 -2
- package/src/components/callout/callout.django.html +2 -2
- package/src/components/callout/callout.html +0 -5
- package/src/components/callout/config.json +1 -5
- package/src/components/card/Card.tsx +6 -3
- package/src/components/card/card.django.html +2 -2
- package/src/components/card/card.html +1032 -35
- package/src/components/card/config.json +6 -2
- package/src/components/card-group/card-group.html +388 -95
- package/src/components/carousel/Carousel.tsx +42 -71
- package/src/components/carousel/carousel.django.html +22 -46
- package/src/components/carousel/carousel.html +715 -32
- package/src/components/carousel/config.json +25 -12
- package/src/components/character-count/character-count.html +231 -26
- package/src/components/checkbox/checkbox.html +313 -241
- package/src/components/checkbox-group/checkbox-group.html +346 -26
- package/src/components/clickable/clickable.html +168 -83
- package/src/components/code/Code.tsx +4 -3
- package/src/components/code/code.django.html +1 -1
- package/src/components/code/config.json +4 -0
- package/src/components/collection/collection.html +203 -379
- package/src/components/combobox/combobox.html +21 -9
- package/src/components/container/container.html +2616 -80
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
- package/src/components/details/Details.tsx +69 -0
- package/src/components/details/config.json +73 -0
- package/src/components/details/details.django.html +7 -0
- package/src/components/details/details.html +186 -0
- package/src/components/error-message/error-message.html +15 -2
- package/src/components/error-page/ErrorPage.tsx +169 -0
- package/src/components/error-page/config.json +152 -0
- package/src/components/error-page/error-page.django.html +80 -0
- package/src/components/error-page/error-page.html +437 -0
- package/src/components/eyebrow/eyebrow.html +8 -4
- package/src/components/fieldset/fieldset.html +33 -7
- package/src/components/file-input/file-input.html +310 -31
- package/src/components/file-list/file-list.html +191 -7
- package/src/components/footer/footer.html +611 -232
- package/src/components/header/header.html +2553 -611
- package/src/components/hero/hero.html +300 -38
- package/src/components/hint/hint.html +7 -2
- package/src/components/identifier/identifier.html +483 -255
- package/src/components/image/Image.tsx +2 -2
- package/src/components/image/image.django.html +4 -10
- package/src/components/image/image.html +144 -29
- package/src/components/indicator/indicator.html +25 -23
- package/src/components/label/label.html +15 -16
- package/src/components/language-selector/language-selector.html +74 -25
- package/src/components/layout/layout.html +991 -21
- package/src/components/legend/legend.html +10 -9
- package/src/components/list/list.html +45 -25
- package/src/components/page/Page.tsx +15 -2
- package/src/components/page/config.json +13 -1
- package/src/components/page/page.django.html +2 -2
- package/src/components/page/page.html +29 -8
- package/src/components/pagination/pagination.html +907 -305
- package/src/components/prose/prose.html +244 -85
- package/src/components/quote/Quote.tsx +1 -1
- package/src/components/quote/config.json +1 -2
- package/src/components/quote/quote.html +2 -7
- package/src/components/radio-buttons/radio-buttons.html +623 -127
- package/src/components/required/required.html +3 -4
- package/src/components/search/search.html +336 -54
- package/src/components/section/section.html +73 -11
- package/src/components/select/select.html +112 -58
- package/src/components/skipnav/skipnav.html +40 -1
- package/src/components/spinner/spinner.html +143 -23
- package/src/components/step-indicator/step-indicator.html +26 -68
- package/src/components/swap/swap.html +99 -154
- package/src/components/table/table.html +2168 -988
- package/src/components/tag/tag.html +73 -17
- package/src/components/task-list/task-list.html +252 -15
- package/src/components/theme-picker/theme-picker.html +26 -8
- package/src/components/toggle/toggle.html +64 -5
- package/src/index.js +2 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "card",
|
|
3
3
|
"template": "card/card.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 4,
|
|
5
5
|
"props": {
|
|
6
6
|
"id": {
|
|
7
7
|
"type": "string",
|
|
8
|
-
"description": "Card element ID
|
|
8
|
+
"description": "Card element ID."
|
|
9
9
|
},
|
|
10
10
|
"title": {
|
|
11
11
|
"type": "string",
|
|
@@ -86,6 +86,10 @@
|
|
|
86
86
|
"type": "string",
|
|
87
87
|
"description": "Additional CSS classes"
|
|
88
88
|
},
|
|
89
|
+
"containerClassName": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Additional CSS classes for the card container"
|
|
92
|
+
},
|
|
89
93
|
"tag": {
|
|
90
94
|
"type": "string",
|
|
91
95
|
"description": "HTML tag to use for the card element (div or li)"
|
|
@@ -1,164 +1,457 @@
|
|
|
1
|
-
<h3 class="site-preview-heading">Default
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
2
|
<ul class="usa-card-group usx-card-group">
|
|
3
3
|
<li class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
|
|
4
4
|
<div class="usa-card__container">
|
|
5
|
-
<div class="usa-card__header">
|
|
6
|
-
<h4 class="usa-card__heading">Card</h4>
|
|
7
|
-
</div>
|
|
5
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
|
|
8
6
|
<div class="usa-card__body">
|
|
9
|
-
<p>
|
|
10
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum
|
|
11
|
-
tenetur quo cupiditate, eaque qui officia recusandae.
|
|
12
|
-
</p>
|
|
7
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
13
8
|
</div>
|
|
14
9
|
<div class="usa-card__footer">
|
|
15
|
-
<
|
|
10
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
11
|
+
<li class="usa-button-group__item">
|
|
12
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
13
|
+
Learn More
|
|
14
|
+
</button>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="usa-button-group__item">
|
|
17
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
18
|
+
View Details
|
|
19
|
+
</button>
|
|
20
|
+
</li>
|
|
21
|
+
</ul>
|
|
16
22
|
</div>
|
|
17
23
|
</div>
|
|
18
24
|
</li>
|
|
19
25
|
<li class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
|
|
20
26
|
<div class="usa-card__container">
|
|
21
|
-
<div class="usa-card__header">
|
|
22
|
-
<h4 class="usa-card__heading">Card with Media</h4>
|
|
23
|
-
</div>
|
|
27
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Card with Media</h4></div>
|
|
24
28
|
<div class="usa-card__media">
|
|
25
|
-
<div
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
<div
|
|
30
|
+
class="usx-carousel usx-card__carousel"
|
|
31
|
+
role="group"
|
|
32
|
+
aria-roledescription="carousel"
|
|
33
|
+
aria-label="Featured content"
|
|
34
|
+
>
|
|
35
|
+
<div class="usx-carousel__viewport">
|
|
36
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
37
|
+
<section
|
|
38
|
+
id="html-card-group-default-card-carousel-slide-1-card-1"
|
|
39
|
+
class="usx-carousel__slide"
|
|
40
|
+
role="group"
|
|
41
|
+
aria-roledescription="slide"
|
|
42
|
+
aria-label="1 of 2"
|
|
43
|
+
>
|
|
44
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
45
|
+
<img
|
|
46
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
47
|
+
alt="Placeholder image for card"
|
|
48
|
+
/>
|
|
49
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
50
|
+
This is an image caption.
|
|
51
|
+
</figcaption>
|
|
52
|
+
</figure>
|
|
53
|
+
</section>
|
|
54
|
+
<section
|
|
55
|
+
id="html-card-group-default-card-carousel-slide-2-card-1"
|
|
56
|
+
class="usx-carousel__slide"
|
|
57
|
+
role="group"
|
|
58
|
+
aria-roledescription="slide"
|
|
59
|
+
aria-label="2 of 2"
|
|
60
|
+
>
|
|
61
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
62
|
+
<img
|
|
63
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
64
|
+
alt="Placeholder image for card"
|
|
65
|
+
/>
|
|
66
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
67
|
+
This is another image caption.
|
|
68
|
+
</figcaption>
|
|
69
|
+
</figure>
|
|
70
|
+
</section>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
30
73
|
</div>
|
|
31
74
|
</div>
|
|
32
75
|
<div class="usa-card__body">
|
|
33
|
-
<p>
|
|
34
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum
|
|
35
|
-
tenetur quo cupiditate, eaque qui officia recusandae.
|
|
36
|
-
</p>
|
|
76
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
37
77
|
</div>
|
|
38
78
|
<div class="usa-card__footer">
|
|
39
|
-
<
|
|
79
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
80
|
+
<li class="usa-button-group__item">
|
|
81
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
82
|
+
Learn More
|
|
83
|
+
</button>
|
|
84
|
+
</li>
|
|
85
|
+
<li class="usa-button-group__item">
|
|
86
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
87
|
+
View Details
|
|
88
|
+
</button>
|
|
89
|
+
</li>
|
|
90
|
+
</ul>
|
|
40
91
|
</div>
|
|
41
92
|
</div>
|
|
42
93
|
</li>
|
|
43
|
-
<li class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4
|
|
94
|
+
<li class="usa-card usx-card usa-card--header-first tablet:grid-col-6 widescreen:grid-col-4">
|
|
44
95
|
<div class="usa-card__container">
|
|
45
|
-
<div class="usa-card__header">
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
96
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Media with header first</h4></div>
|
|
97
|
+
<div class="usa-card__media">
|
|
98
|
+
<div
|
|
99
|
+
class="usx-carousel usx-card__carousel"
|
|
100
|
+
role="group"
|
|
101
|
+
aria-roledescription="carousel"
|
|
102
|
+
aria-label="Featured content"
|
|
103
|
+
>
|
|
104
|
+
<div class="usx-carousel__viewport">
|
|
105
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
106
|
+
<section
|
|
107
|
+
id="html-card-group-default-card-carousel-slide-1-card-2"
|
|
108
|
+
class="usx-carousel__slide"
|
|
109
|
+
role="group"
|
|
110
|
+
aria-roledescription="slide"
|
|
111
|
+
aria-label="1 of 2"
|
|
112
|
+
>
|
|
113
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
114
|
+
<img
|
|
115
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
116
|
+
alt="Placeholder image for card"
|
|
117
|
+
/>
|
|
118
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
119
|
+
This is an image caption.
|
|
120
|
+
</figcaption>
|
|
121
|
+
</figure>
|
|
122
|
+
</section>
|
|
123
|
+
<section
|
|
124
|
+
id="html-card-group-default-card-carousel-slide-2-card-2"
|
|
125
|
+
class="usx-carousel__slide"
|
|
126
|
+
role="group"
|
|
127
|
+
aria-roledescription="slide"
|
|
128
|
+
aria-label="2 of 2"
|
|
129
|
+
>
|
|
130
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
131
|
+
<img
|
|
132
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
133
|
+
alt="Placeholder image for card"
|
|
134
|
+
/>
|
|
135
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
136
|
+
This is another image caption.
|
|
137
|
+
</figcaption>
|
|
138
|
+
</figure>
|
|
139
|
+
</section>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
54
142
|
</div>
|
|
55
143
|
</div>
|
|
56
144
|
<div class="usa-card__body">
|
|
57
|
-
<p>
|
|
58
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore
|
|
59
|
-
possimus similique nemo odit doloremque laudantium?
|
|
60
|
-
</p>
|
|
145
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
61
146
|
</div>
|
|
62
147
|
<div class="usa-card__footer">
|
|
63
|
-
<
|
|
148
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
149
|
+
<li class="usa-button-group__item">
|
|
150
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
151
|
+
Learn More
|
|
152
|
+
</button>
|
|
153
|
+
</li>
|
|
154
|
+
<li class="usa-button-group__item">
|
|
155
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
156
|
+
View Details
|
|
157
|
+
</button>
|
|
158
|
+
</li>
|
|
159
|
+
</ul>
|
|
64
160
|
</div>
|
|
65
161
|
</div>
|
|
66
162
|
</li>
|
|
67
|
-
|
|
163
|
+
</ul>
|
|
164
|
+
|
|
165
|
+
<h3 class="site-preview-heading">Flag Layout</h3>
|
|
166
|
+
<ul class="usa-card-group usx-card-group">
|
|
167
|
+
<li class="usa-card usx-card usa-card--flag flex-1">
|
|
68
168
|
<div class="usa-card__container">
|
|
69
|
-
<div class="usa-card__header">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
169
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Default flag</h4></div>
|
|
170
|
+
<div class="usa-card__media">
|
|
171
|
+
<div
|
|
172
|
+
class="usx-carousel usx-card__carousel"
|
|
173
|
+
role="group"
|
|
174
|
+
aria-roledescription="carousel"
|
|
175
|
+
aria-label="Featured content"
|
|
176
|
+
>
|
|
177
|
+
<div class="usx-carousel__viewport">
|
|
178
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
179
|
+
<section
|
|
180
|
+
id="html-card-group-flag-layout-card-carousel-slide-1-card-1"
|
|
181
|
+
class="usx-carousel__slide"
|
|
182
|
+
role="group"
|
|
183
|
+
aria-roledescription="slide"
|
|
184
|
+
aria-label="1 of 2"
|
|
185
|
+
>
|
|
186
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
187
|
+
<img
|
|
188
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
189
|
+
alt="Placeholder image for card"
|
|
190
|
+
/>
|
|
191
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
192
|
+
This is an image caption.
|
|
193
|
+
</figcaption>
|
|
194
|
+
</figure>
|
|
195
|
+
</section>
|
|
196
|
+
<section
|
|
197
|
+
id="html-card-group-flag-layout-card-carousel-slide-2-card-1"
|
|
198
|
+
class="usx-carousel__slide"
|
|
199
|
+
role="group"
|
|
200
|
+
aria-roledescription="slide"
|
|
201
|
+
aria-label="2 of 2"
|
|
202
|
+
>
|
|
203
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
204
|
+
<img
|
|
205
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
206
|
+
alt="Placeholder image for card"
|
|
207
|
+
/>
|
|
208
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
209
|
+
This is another image caption.
|
|
210
|
+
</figcaption>
|
|
211
|
+
</figure>
|
|
212
|
+
</section>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
78
215
|
</div>
|
|
79
216
|
</div>
|
|
80
217
|
<div class="usa-card__body">
|
|
81
|
-
<p>
|
|
82
|
-
Etiam vitae sodales metus. Fusce id orci dignissim, efficitur risus
|
|
83
|
-
eget, tempus odio. Donec lectus ante, auctor eget cursus sed,
|
|
84
|
-
convallis quis magna. Orci varius natoque penatibus et magnis dis
|
|
85
|
-
parturient montes, nascetur ridiculus mus. Mauris mattis tellus
|
|
86
|
-
bibendum aliquet malesuada.
|
|
87
|
-
</p>
|
|
218
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
88
219
|
</div>
|
|
89
220
|
<div class="usa-card__footer">
|
|
90
|
-
<
|
|
221
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
222
|
+
<li class="usa-button-group__item">
|
|
223
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
224
|
+
Learn More
|
|
225
|
+
</button>
|
|
226
|
+
</li>
|
|
227
|
+
<li class="usa-button-group__item">
|
|
228
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
229
|
+
View Details
|
|
230
|
+
</button>
|
|
231
|
+
</li>
|
|
232
|
+
</ul>
|
|
91
233
|
</div>
|
|
92
234
|
</div>
|
|
93
235
|
</li>
|
|
94
|
-
<li class="usa-card usx-card
|
|
236
|
+
<li class="usa-card usx-card usa-card--flag usa-card--media-right flex-1">
|
|
95
237
|
<div class="usa-card__container">
|
|
96
|
-
<div class="usa-card__header">
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
238
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Flag media right</h4></div>
|
|
239
|
+
<div class="usa-card__media">
|
|
240
|
+
<div
|
|
241
|
+
class="usx-carousel usx-card__carousel"
|
|
242
|
+
role="group"
|
|
243
|
+
aria-roledescription="carousel"
|
|
244
|
+
aria-label="Featured content"
|
|
245
|
+
>
|
|
246
|
+
<div class="usx-carousel__viewport">
|
|
247
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
248
|
+
<section
|
|
249
|
+
id="html-card-group-flag-layout-card-carousel-slide-1-card-2"
|
|
250
|
+
class="usx-carousel__slide"
|
|
251
|
+
role="group"
|
|
252
|
+
aria-roledescription="slide"
|
|
253
|
+
aria-label="1 of 2"
|
|
254
|
+
>
|
|
255
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
256
|
+
<img
|
|
257
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
258
|
+
alt="Placeholder image for card"
|
|
259
|
+
/>
|
|
260
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
261
|
+
This is an image caption.
|
|
262
|
+
</figcaption>
|
|
263
|
+
</figure>
|
|
264
|
+
</section>
|
|
265
|
+
<section
|
|
266
|
+
id="html-card-group-flag-layout-card-carousel-slide-2-card-2"
|
|
267
|
+
class="usx-carousel__slide"
|
|
268
|
+
role="group"
|
|
269
|
+
aria-roledescription="slide"
|
|
270
|
+
aria-label="2 of 2"
|
|
271
|
+
>
|
|
272
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
273
|
+
<img
|
|
274
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
275
|
+
alt="Placeholder image for card"
|
|
276
|
+
/>
|
|
277
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
278
|
+
This is another image caption.
|
|
279
|
+
</figcaption>
|
|
280
|
+
</figure>
|
|
281
|
+
</section>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
105
284
|
</div>
|
|
106
285
|
</div>
|
|
107
286
|
<div class="usa-card__body">
|
|
108
|
-
<p>
|
|
109
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore
|
|
110
|
-
possimus similique nemo odit doloremque laudantium?
|
|
111
|
-
</p>
|
|
287
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
112
288
|
</div>
|
|
113
289
|
<div class="usa-card__footer">
|
|
114
|
-
<
|
|
290
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
291
|
+
<li class="usa-button-group__item">
|
|
292
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
293
|
+
Learn More
|
|
294
|
+
</button>
|
|
295
|
+
</li>
|
|
296
|
+
<li class="usa-button-group__item">
|
|
297
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
298
|
+
View Details
|
|
299
|
+
</button>
|
|
300
|
+
</li>
|
|
301
|
+
</ul>
|
|
115
302
|
</div>
|
|
116
303
|
</div>
|
|
117
304
|
</li>
|
|
118
305
|
</ul>
|
|
119
306
|
|
|
120
|
-
<h3 class="site-preview-heading">
|
|
307
|
+
<h3 class="site-preview-heading">With Tags</h3>
|
|
121
308
|
<ul class="usa-card-group usx-card-group">
|
|
122
|
-
<li class="usa-card usx-card
|
|
309
|
+
<li class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
|
|
123
310
|
<div class="usa-card__container">
|
|
124
|
-
<div class="usa-card__header">
|
|
125
|
-
<h4 class="usa-card__heading">Default flag</h4>
|
|
126
|
-
</div>
|
|
311
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
|
|
127
312
|
<div class="usa-card__media">
|
|
128
|
-
<div
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
313
|
+
<div
|
|
314
|
+
class="usx-carousel usx-card__carousel"
|
|
315
|
+
role="group"
|
|
316
|
+
aria-roledescription="carousel"
|
|
317
|
+
aria-label="Featured content"
|
|
318
|
+
>
|
|
319
|
+
<div class="usx-carousel__viewport">
|
|
320
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
321
|
+
<section
|
|
322
|
+
id="html-card-group-with-tags-card-carousel-slide-1-card-1"
|
|
323
|
+
class="usx-carousel__slide"
|
|
324
|
+
role="group"
|
|
325
|
+
aria-roledescription="slide"
|
|
326
|
+
aria-label="1 of 2"
|
|
327
|
+
>
|
|
328
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
329
|
+
<img
|
|
330
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
331
|
+
alt="Placeholder image for card"
|
|
332
|
+
/>
|
|
333
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
334
|
+
This is an image caption.
|
|
335
|
+
</figcaption>
|
|
336
|
+
</figure>
|
|
337
|
+
</section>
|
|
338
|
+
<section
|
|
339
|
+
id="html-card-group-with-tags-card-carousel-slide-2-card-1"
|
|
340
|
+
class="usx-carousel__slide"
|
|
341
|
+
role="group"
|
|
342
|
+
aria-roledescription="slide"
|
|
343
|
+
aria-label="2 of 2"
|
|
344
|
+
>
|
|
345
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
346
|
+
<img
|
|
347
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
348
|
+
alt="Placeholder image for card"
|
|
349
|
+
/>
|
|
350
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
351
|
+
This is another image caption.
|
|
352
|
+
</figcaption>
|
|
353
|
+
</figure>
|
|
354
|
+
</section>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
133
357
|
</div>
|
|
134
358
|
</div>
|
|
135
359
|
<div class="usa-card__body">
|
|
136
|
-
<
|
|
360
|
+
<div class="usx-tag-group">
|
|
361
|
+
<span class="usa-tag usx-tag bg-primary"> Primary</span
|
|
362
|
+
><span class="usa-tag usx-tag bg-success"> Success</span
|
|
363
|
+
><span class="usa-tag usx-tag bg-warning"> Warning</span>
|
|
364
|
+
</div>
|
|
365
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
137
366
|
</div>
|
|
138
367
|
<div class="usa-card__footer">
|
|
139
|
-
<
|
|
368
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
369
|
+
<li class="usa-button-group__item">
|
|
370
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
371
|
+
Learn More
|
|
372
|
+
</button>
|
|
373
|
+
</li>
|
|
374
|
+
<li class="usa-button-group__item">
|
|
375
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
376
|
+
View Details
|
|
377
|
+
</button>
|
|
378
|
+
</li>
|
|
379
|
+
</ul>
|
|
140
380
|
</div>
|
|
141
381
|
</div>
|
|
142
382
|
</li>
|
|
143
|
-
<li class="usa-card usx-card
|
|
383
|
+
<li class="usa-card usx-card tablet:grid-col-6 widescreen:grid-col-4">
|
|
144
384
|
<div class="usa-card__container">
|
|
145
|
-
<div class="usa-card__header">
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
385
|
+
<div class="usa-card__header"><h4 class="usa-card__heading">Card Title</h4></div>
|
|
386
|
+
<div class="usa-card__media">
|
|
387
|
+
<div
|
|
388
|
+
class="usx-carousel usx-card__carousel"
|
|
389
|
+
role="group"
|
|
390
|
+
aria-roledescription="carousel"
|
|
391
|
+
aria-label="Featured content"
|
|
392
|
+
>
|
|
393
|
+
<div class="usx-carousel__viewport">
|
|
394
|
+
<div class="usx-carousel__track" aria-live="polite">
|
|
395
|
+
<section
|
|
396
|
+
id="html-card-group-with-tags-card-carousel-slide-1-card-2"
|
|
397
|
+
class="usx-carousel__slide"
|
|
398
|
+
role="group"
|
|
399
|
+
aria-roledescription="slide"
|
|
400
|
+
aria-label="1 of 2"
|
|
401
|
+
>
|
|
402
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
403
|
+
<img
|
|
404
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
405
|
+
alt="Placeholder image for card"
|
|
406
|
+
/>
|
|
407
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
408
|
+
This is an image caption.
|
|
409
|
+
</figcaption>
|
|
410
|
+
</figure>
|
|
411
|
+
</section>
|
|
412
|
+
<section
|
|
413
|
+
id="html-card-group-with-tags-card-carousel-slide-2-card-2"
|
|
414
|
+
class="usx-carousel__slide"
|
|
415
|
+
role="group"
|
|
416
|
+
aria-roledescription="slide"
|
|
417
|
+
aria-label="2 of 2"
|
|
418
|
+
>
|
|
419
|
+
<figure class="usx-image usx-object-fit-cover">
|
|
420
|
+
<img
|
|
421
|
+
src="https://designsystem.digital.gov/img/introducing-uswds-2-0/built-to-grow--alt.jpg"
|
|
422
|
+
alt="Placeholder image for card"
|
|
423
|
+
/>
|
|
424
|
+
<figcaption class="usx-image--caption usa-sr-only" aria-hidden="true">
|
|
425
|
+
This is another image caption.
|
|
426
|
+
</figcaption>
|
|
427
|
+
</figure>
|
|
428
|
+
</section>
|
|
429
|
+
</div>
|
|
430
|
+
</div>
|
|
154
431
|
</div>
|
|
155
432
|
</div>
|
|
156
433
|
<div class="usa-card__body">
|
|
157
|
-
<
|
|
434
|
+
<div class="usx-tag-group">
|
|
435
|
+
<span class="usa-tag usx-tag bg-primary"> Primary</span
|
|
436
|
+
><span class="usa-tag usx-tag bg-success"> Success</span
|
|
437
|
+
><span class="usa-tag usx-tag bg-warning"> Warning</span>
|
|
438
|
+
</div>
|
|
439
|
+
<p>This is the main content of the card. It can contain text, links, or other elements.</p>
|
|
158
440
|
</div>
|
|
159
441
|
<div class="usa-card__footer">
|
|
160
|
-
<
|
|
442
|
+
<ul class="usa-button-group usx-button-group flex-wrap">
|
|
443
|
+
<li class="usa-button-group__item">
|
|
444
|
+
<button type="button" class="usa-button usx-button usa-button--primary">
|
|
445
|
+
Learn More
|
|
446
|
+
</button>
|
|
447
|
+
</li>
|
|
448
|
+
<li class="usa-button-group__item">
|
|
449
|
+
<button type="button" class="usa-button usx-button usa-button--secondary">
|
|
450
|
+
View Details
|
|
451
|
+
</button>
|
|
452
|
+
</li>
|
|
453
|
+
</ul>
|
|
161
454
|
</div>
|
|
162
455
|
</div>
|
|
163
456
|
</li>
|
|
164
|
-
</ul>
|
|
457
|
+
</ul>
|