@usace/groundwork 1.0.1 → 1.0.3
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/groundwork.es.js +5131 -0
- package/dist/groundwork.umd.js +30 -0
- package/dist/style.css +1 -0
- package/package.json +17 -3
- package/.eslintrc.cjs +0 -18
- package/.github/workflows/deploy-docs.yml +0 -59
- package/.github/workflows/publish.yml +0 -19
- package/index.html +0 -13
- package/lib/catalyst/alert.jsx +0 -110
- package/lib/catalyst/avatar.jsx +0 -64
- package/lib/catalyst/badge.jsx +0 -72
- package/lib/catalyst/checkbox.jsx +0 -160
- package/lib/catalyst/dialog.jsx +0 -101
- package/lib/catalyst/dropdown.jsx +0 -202
- package/lib/catalyst/fieldset.jsx +0 -87
- package/lib/catalyst/input.jsx +0 -78
- package/lib/catalyst/listbox.jsx +0 -195
- package/lib/catalyst/pagination.jsx +0 -75
- package/lib/catalyst/radio.jsx +0 -144
- package/lib/catalyst/select.jsx +0 -78
- package/lib/catalyst/switch.jsx +0 -203
- package/lib/catalyst/textarea.jsx +0 -59
- package/lib/components/breadcrumbs.jsx +0 -46
- package/lib/components/button.jsx +0 -219
- package/lib/components/display/headings.jsx +0 -39
- package/lib/components/display/text.jsx +0 -48
- package/lib/components/hero.jsx +0 -51
- package/lib/components/layout/container.jsx +0 -13
- package/lib/components/layout/usace-box.jsx +0 -26
- package/lib/components/link.jsx +0 -18
- package/lib/components/table.jsx +0 -146
- package/lib/composite/footer/essayons.jsx +0 -12
- package/lib/composite/footer/footer-links.jsx +0 -33
- package/lib/composite/footer/index.jsx +0 -148
- package/lib/composite/footer/logo-banner.jsx +0 -55
- package/lib/composite/footer/social-links.jsx +0 -60
- package/lib/composite/header/index.jsx +0 -83
- package/lib/composite/header/navbar-links.jsx +0 -113
- package/lib/composite/header/usa-banner/USABanner.jsx +0 -114
- package/lib/composite/header/usa-banner/usa-banner.css +0 -220
- package/lib/composite/site-wrapper/index.jsx +0 -52
- package/lib/index.jsx +0 -19
- package/postcss.config.js +0 -6
- package/public/Magnifying_glass_icon.svg +0 -5
- package/public/armystar-logo-rb.svg +0 -4
- package/public/cwbi-logo.png +0 -0
- package/public/essayonscrest.png +0 -0
- package/public/icon-dot-gov.svg +0 -1
- package/public/icon-https.svg +0 -1
- package/public/nww-lucky-peak-dam.jpg +0 -0
- package/public/rsgis-logo.png +0 -0
- package/public/us_flag_small.png +0 -0
- package/public/usace-logo-color.svg +0 -1
- package/src/App.jsx +0 -38
- package/src/app-bundles/index.js +0 -4
- package/src/app-bundles/route-bundle.js +0 -36
- package/src/app-components/code-example.jsx +0 -17
- package/src/app-components/copy-button.jsx +0 -32
- package/src/app-components/props-table.jsx +0 -43
- package/src/app-components/sub-site-banner.jsx +0 -15
- package/src/app-pages/documentation/_docs-page.jsx +0 -31
- package/src/app-pages/documentation/_docs-sidebar.jsx +0 -111
- package/src/app-pages/documentation/_template.jsx +0 -55
- package/src/app-pages/documentation/app-shell/index.jsx +0 -39
- package/src/app-pages/documentation/app-shell/site-wrapper.jsx +0 -190
- package/src/app-pages/documentation/buttons/index.jsx +0 -170
- package/src/app-pages/documentation/index.jsx +0 -57
- package/src/app-pages/documentation/layout/container.jsx +0 -68
- package/src/app-pages/documentation/layout/index.jsx +0 -52
- package/src/app-pages/documentation/layout/usace-box.jsx +0 -76
- package/src/app-pages/documentation/navigation/breadcrumbs.jsx +0 -119
- package/src/app-pages/documentation/navigation/index.jsx +0 -31
- package/src/app-pages/documentation/types/index.jsx +0 -31
- package/src/app-pages/documentation/types/link.jsx +0 -72
- package/src/app-pages/home.jsx +0 -71
- package/src/index.css +0 -3
- package/src/main.jsx +0 -18
- package/tailwind.config.js +0 -31
- package/vite.config.js +0 -46
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
.header_banner_container,
|
|
2
|
-
.header_banner_container .header_banner_content .banner-contentLeft-text,
|
|
3
|
-
.header_banner_container .header_banner_content .banner-contentRight-text {
|
|
4
|
-
color: #fff;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.header_banner_container {
|
|
8
|
-
padding: 0 20px;
|
|
9
|
-
position: relative;
|
|
10
|
-
z-index: 10;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.header_banner_container .header_banner_flag {
|
|
14
|
-
display: block;
|
|
15
|
-
padding: 6px 0;
|
|
16
|
-
height: 50px;
|
|
17
|
-
font-size: 13px;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media screen and (min-width: 544px) {
|
|
22
|
-
.header_banner_container .header_banner_flag {
|
|
23
|
-
height: 30px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.header_banner_container .header_banner_flag:before {
|
|
28
|
-
background-image: url(/us_flag_small.png);
|
|
29
|
-
background-size: 20px 12px;
|
|
30
|
-
content: "";
|
|
31
|
-
display: inline-block;
|
|
32
|
-
height: 12px;
|
|
33
|
-
margin-right: 10px;
|
|
34
|
-
width: 20px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.header_banner_flag_img {
|
|
38
|
-
background-size: 20px 12px;
|
|
39
|
-
content: "";
|
|
40
|
-
display: inline-block;
|
|
41
|
-
height: 12px;
|
|
42
|
-
margin-right: 10px;
|
|
43
|
-
width: 20px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.header_banner_container .header_banner_inner {
|
|
47
|
-
display: block;
|
|
48
|
-
line-height: 1.5;
|
|
49
|
-
margin: 0 auto;
|
|
50
|
-
max-width: 1400px;
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.header_banner_container .header_banner_accordion {
|
|
55
|
-
border: 0;
|
|
56
|
-
color: #aebfd4;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
font-size: 13px;
|
|
59
|
-
outline: none;
|
|
60
|
-
text-align: left;
|
|
61
|
-
-webkit-transition: all 0.4s ease-out;
|
|
62
|
-
transition: all 0.4s ease-out;
|
|
63
|
-
margin: 0 4px 0 10px;
|
|
64
|
-
display: inline-block;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.header_banner_container .header_banner_accordion:focus-visible {
|
|
68
|
-
outline: 5px auto -webkit-focus-ring-color;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@media screen and (min-width: 367px) {
|
|
72
|
-
.header_banner_container .header_banner_accordion {
|
|
73
|
-
margin: 0 4px 0 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media screen and (min-width: 518px) {
|
|
78
|
-
.header_banner_container .header_banner_accordion {
|
|
79
|
-
margin: 0 4px 0 10px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.header_banner_container .header_banner_accordion svg {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
position: relative;
|
|
86
|
-
-webkit-transition: all 0.4s ease-out;
|
|
87
|
-
transition: all 0.4s ease-out;
|
|
88
|
-
height: 18px;
|
|
89
|
-
width: 18px;
|
|
90
|
-
vertical-align: middle;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.header_banner_container .header_banner_accordion svg .expand-more {
|
|
94
|
-
fill: #aebfd4;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.header_banner_container .header_banner_panel {
|
|
98
|
-
display: -webkit-box;
|
|
99
|
-
display: -ms-flexbox;
|
|
100
|
-
display: flex;
|
|
101
|
-
-webkit-box-orient: vertical;
|
|
102
|
-
-webkit-box-direction: normal;
|
|
103
|
-
-ms-flex-direction: column;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
margin: 0 auto;
|
|
106
|
-
max-height: 0;
|
|
107
|
-
max-width: 1400px;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
-webkit-transition: all 0.2s ease-out;
|
|
110
|
-
transition: all 0.2s ease-out;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media screen and (min-width: 768px) {
|
|
114
|
-
.header_banner_container .header_banner_panel {
|
|
115
|
-
-webkit-box-orient: horizontal;
|
|
116
|
-
-webkit-box-direction: normal;
|
|
117
|
-
-ms-flex-direction: row;
|
|
118
|
-
flex-direction: row;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.header_banner_container .header_banner_panel_item {
|
|
123
|
-
display: -webkit-box;
|
|
124
|
-
display: -ms-flexbox;
|
|
125
|
-
display: flex;
|
|
126
|
-
-webkit-box-orient: horizontal;
|
|
127
|
-
-webkit-box-direction: normal;
|
|
128
|
-
-ms-flex-direction: row;
|
|
129
|
-
flex-direction: row;
|
|
130
|
-
width: 100%;
|
|
131
|
-
height: 100%;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.header_banner_container .header_banner_panel_item:last-child {
|
|
135
|
-
margin-top: 20px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@media screen and (min-width: 768px) {
|
|
139
|
-
.header_banner_container .header_banner_panel_item {
|
|
140
|
-
width: 50%;
|
|
141
|
-
margin-right: 50px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.header_banner_container .header_banner_panel_item:last-child {
|
|
145
|
-
margin-top: 0;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.header_banner_container .header_banner_content {
|
|
150
|
-
font-size: 14px;
|
|
151
|
-
line-height: 26px;
|
|
152
|
-
max-width: none;
|
|
153
|
-
width: 100%;
|
|
154
|
-
margin-bottom: 10px;
|
|
155
|
-
letter-spacing: 0.5px;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.header_banner_container .header_banner_content .banner-contentLeft-text,
|
|
159
|
-
.header_banner_container .header_banner_content .banner-contentRight-text {
|
|
160
|
-
margin-bottom: 0;
|
|
161
|
-
font-size: 18px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.header_banner_container .header_banner_dotgov:before {
|
|
165
|
-
background-image: url(/icon-dot-gov.svg);
|
|
166
|
-
background-size: 50px;
|
|
167
|
-
content: "";
|
|
168
|
-
display: inline-block;
|
|
169
|
-
height: 50px;
|
|
170
|
-
margin-right: 10px;
|
|
171
|
-
width: 50px;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.header_banner_container .header_banner_https:before {
|
|
175
|
-
background-image: url(/icon-https.svg);
|
|
176
|
-
background-size: 50px;
|
|
177
|
-
content: "";
|
|
178
|
-
display: inline-block;
|
|
179
|
-
height: 50px;
|
|
180
|
-
margin-right: 10px;
|
|
181
|
-
width: 50px;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.header_banner_container .header_banner_icon_lock {
|
|
185
|
-
display: inline-block;
|
|
186
|
-
height: 15px;
|
|
187
|
-
position: relative;
|
|
188
|
-
width: 15px;
|
|
189
|
-
margin: 0 8px;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.header_banner_container .header_banner_icon_lock svg {
|
|
193
|
-
height: 15px;
|
|
194
|
-
width: 15px;
|
|
195
|
-
fill: black;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
body {
|
|
199
|
-
-webkit-transition: padding-top 200ms ease-out;
|
|
200
|
-
transition: padding-top 200ms ease-out;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.expand-more-container.active {
|
|
204
|
-
display: inline-block;
|
|
205
|
-
-webkit-transform: rotate(180deg);
|
|
206
|
-
transform: rotate(180deg);
|
|
207
|
-
vertical-align: text-top;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.header_banner_container {
|
|
211
|
-
background-color: #15263b;
|
|
212
|
-
color: #fff;
|
|
213
|
-
}
|
|
214
|
-
.icon_lock {
|
|
215
|
-
fill: #fff;
|
|
216
|
-
}
|
|
217
|
-
.header_banner_container .header_banner_content .banner-contentLeft-text,
|
|
218
|
-
.header_banner_container .header_banner_content .banner-contentRight-text {
|
|
219
|
-
color: #fff;
|
|
220
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import USABanner from "../header/usa-banner/USABanner";
|
|
2
|
-
import Header from "../header";
|
|
3
|
-
import Footer from "../footer";
|
|
4
|
-
|
|
5
|
-
function SiteWrapper({
|
|
6
|
-
children,
|
|
7
|
-
headerLinks,
|
|
8
|
-
usaBanner = true,
|
|
9
|
-
msgBanner: MsgBanner = false,
|
|
10
|
-
title = "US Army Corps of Engineers",
|
|
11
|
-
subtitle = "",
|
|
12
|
-
missionText = "",
|
|
13
|
-
aboutText = "",
|
|
14
|
-
facebookUrl = "",
|
|
15
|
-
twitterUrl = "",
|
|
16
|
-
youtubeUrl = "",
|
|
17
|
-
flickrUrl = "",
|
|
18
|
-
usaceLinks = [],
|
|
19
|
-
externalLinks = [],
|
|
20
|
-
armyLogo = true,
|
|
21
|
-
usaceLogo = true,
|
|
22
|
-
rsgisLogo = false,
|
|
23
|
-
cwbiLogo = false,
|
|
24
|
-
}) {
|
|
25
|
-
return (
|
|
26
|
-
<div className="grid min-h-[100vh] grid-rows-1fr-auto">
|
|
27
|
-
<div>
|
|
28
|
-
{usaBanner && <USABanner />}
|
|
29
|
-
{MsgBanner && <MsgBanner />}
|
|
30
|
-
<Header links={headerLinks} title={title} subtitle={subtitle} />
|
|
31
|
-
{children}
|
|
32
|
-
</div>
|
|
33
|
-
<Footer
|
|
34
|
-
missionText={missionText}
|
|
35
|
-
aboutText={aboutText}
|
|
36
|
-
facebookUrl={facebookUrl}
|
|
37
|
-
twitterUrl={twitterUrl}
|
|
38
|
-
youtubeUrl={youtubeUrl}
|
|
39
|
-
flickrUrl={flickrUrl}
|
|
40
|
-
usaceLinks={usaceLinks}
|
|
41
|
-
externalLinks={externalLinks}
|
|
42
|
-
armyLogo={armyLogo}
|
|
43
|
-
usaceLogo={usaceLogo}
|
|
44
|
-
rsgisLogo={rsgisLogo}
|
|
45
|
-
cwbiLogo={cwbiLogo}
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export default SiteWrapper;
|
|
52
|
-
export { SiteWrapper };
|
package/lib/index.jsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// layout components
|
|
2
|
-
export { Container } from "./components/layout/container";
|
|
3
|
-
export { UsaceBox } from "./components/layout/usace-box";
|
|
4
|
-
|
|
5
|
-
// display components
|
|
6
|
-
export * from "./components/display/text";
|
|
7
|
-
export * from "./components/display/headings";
|
|
8
|
-
|
|
9
|
-
// composite components
|
|
10
|
-
export { Header } from "./composite/header";
|
|
11
|
-
export { Footer } from "./composite/footer";
|
|
12
|
-
export { USABanner } from "./composite/header/usa-banner/USABanner";
|
|
13
|
-
export { SiteWrapper } from "./composite/site-wrapper";
|
|
14
|
-
|
|
15
|
-
// standard components
|
|
16
|
-
export * from "./components/button";
|
|
17
|
-
export { Hero } from "./components/hero";
|
|
18
|
-
export { Breadcrumbs, BreadcrumbItem } from "./components/breadcrumbs";
|
|
19
|
-
export * from "./components/table";
|
package/postcss.config.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="73" height="90" viewBox="0 0 73 90" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M6.4603 78.0566H8.9683V87.1841C8.9683 88.6848 7.91987 89.5893 6.37807 89.5893H3.2328C1.67044 89.5893 0.642578 88.6848 0.642578 87.1841V78.0566H3.19169V86.8346C3.19169 87.0402 3.35615 87.2252 3.58228 87.2252H6.09027C6.29584 87.2252 6.48086 87.0607 6.48086 86.8346V78.0566H6.4603ZM9.99616 87.0402H12.5042V89.5893H9.99616V87.0402ZM13.5526 80.174C13.5526 78.9612 14.4365 78.0566 15.8139 78.0566H19.4525C20.8299 78.0566 21.7138 78.9612 21.7138 80.174V81.8597H19.2675V80.6674C19.2675 80.4618 19.1031 80.2768 18.8769 80.2768H16.3895C16.1634 80.2768 15.9989 80.4413 15.9989 80.6674V81.7364C15.9989 81.9009 16.0811 82.0653 16.3484 82.1475L20.1104 83.2576C21.3849 83.6277 21.7138 84.2033 21.7138 85.5395V87.4719C21.7138 88.6642 20.8299 89.5893 19.4731 89.5893H15.7728C14.416 89.5893 13.532 88.6642 13.532 87.4719V85.6012H15.9578V86.9785C15.9578 87.1841 16.1222 87.3691 16.3484 87.3691H18.8564C19.0825 87.3691 19.247 87.2047 19.247 86.9785V85.7862C19.247 85.6217 19.1236 85.4573 18.8975 85.3956L15.1355 84.2855C13.8609 83.9155 13.532 83.3399 13.532 82.0036L13.5526 80.174ZM22.7417 87.0402H25.2497V89.5893H22.7417V87.0402ZM35.7545 87.6569H31.7047L31.1702 89.5893H28.5594L32.0131 78.0566H35.6517L38.9614 89.5893H36.3095L35.7545 87.6569ZM35.1378 85.4367L33.7399 80.3179L32.3214 85.4367H35.1378ZM47.5339 84.82L46.9171 85.3339L48.9523 89.5893H46.1565L44.3475 85.6423H42.6823V89.5893H40.1332V78.0566H45.9715C47.4105 78.0566 48.4178 78.9406 48.4178 80.2563V82.5176C48.4384 83.6688 48.315 84.1622 47.5339 84.82ZM45.9098 83.0521V80.7702C45.9098 80.5646 45.7454 80.3796 45.5192 80.3796H42.7029V83.4221H45.5192C45.7454 83.4221 45.9098 83.2576 45.9098 83.0521ZM57.5453 78.0566H60.8139V89.5893H58.3881V82.3942L55.9007 89.5893H55.1812L52.6937 82.3942V89.5893H50.3502V78.0566H53.6188L55.5923 84.3061L57.5453 78.0566ZM72.1204 78.0566L68.2351 85.1695V89.5687H65.686V85.19L61.9034 78.0566H64.8637L67.0633 82.5176L69.2424 78.0566H72.1204Z" fill="white"/>
|
|
3
|
-
<path d="M71.0913 25.6761H44.5312L36.3289 0.411133L28.1265 25.6761H1.56641L23.0488 41.2791L14.8464 66.5441L36.3289 50.9411L57.8113 66.5441L49.6089 41.2791L71.0913 25.6761ZM36.3289 43.1704L26.7697 50.1188L30.4289 38.8739L20.8697 31.9255H32.6902L36.3494 20.6807L40.0086 31.9255H51.8291L42.2699 38.8739L45.9291 50.1188L36.3289 43.1704Z" fill="#FFCC01"/>
|
|
4
|
-
</svg>
|
package/public/cwbi-logo.png
DELETED
|
Binary file
|
package/public/essayonscrest.png
DELETED
|
Binary file
|
package/public/icon-dot-gov.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>icon-dot-gov</title><path fill="#2378C3" fill-rule="evenodd" d="M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 1.208C14.994 1.208 1.208 14.994 1.208 32S14.994 62.792 32 62.792 62.792 49.006 62.792 32 49.006 1.208 32 1.208zm10.59 38.858a.857.857 0 0 1 .882.822v1.642H18.886v-1.642a.857.857 0 0 1 .882-.822H42.59zM25.443 27.774v9.829h1.642v-9.83h3.273v9.83H32v-9.83h3.272v9.83h1.643v-9.83h3.272v9.83h.76a.857.857 0 0 1 .882.821v.821h-21.3v-.809a.857.857 0 0 1 .88-.82h.762v-9.842h3.272zm5.736-8.188l12.293 4.915v1.642h-1.63a.857.857 0 0 1-.882.822H21.41a.857.857 0 0 1-.882-.822h-1.642v-1.642l12.293-4.915z"/></svg>
|
package/public/icon-https.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>icon-https</title><path fill="#719F2A" fill-rule="evenodd" d="M32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0zm0 1.208C14.994 1.208 1.208 14.994 1.208 32S14.994 62.792 32 62.792 62.792 49.006 62.792 32 49.006 1.208 32 1.208zm0 18.886a7.245 7.245 0 0 1 7.245 7.245v3.103h.52c.86 0 1.557.698 1.557 1.558v9.322c0 .86-.697 1.558-1.557 1.558h-15.53c-.86 0-1.557-.697-1.557-1.558V32c0-.86.697-1.558 1.557-1.558h.52V27.34A7.245 7.245 0 0 1 32 20.094zm0 3.103a4.142 4.142 0 0 0-4.142 4.142v3.103h8.284V27.34A4.142 4.142 0 0 0 32 23.197z"/></svg>
|
|
Binary file
|
package/public/rsgis-logo.png
DELETED
|
Binary file
|
package/public/us_flag_small.png
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105.52 80.94"><defs><style>.cls-1{fill:#DE1E2E;}.cls-2{fill:#fff;}</style></defs><title>usace-logo</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" width="105.52" height="80.94" rx="10.67" ry="10.67"/><path class="cls-2" d="M95.07,74.83H11A4.9,4.9,0,0,1,6.1,69.94V11A4.9,4.9,0,0,1,11,6.1H95.07A4.9,4.9,0,0,1,100,11v59A4.89,4.89,0,0,1,95.07,74.83ZM11,8.1A2.9,2.9,0,0,0,8.1,11v59A2.9,2.9,0,0,0,11,72.83H95.07A2.9,2.9,0,0,0,98,69.94V11A2.9,2.9,0,0,0,95.07,8.1Z"/><path class="cls-2" d="M84.5,52V26.42l4.12-4.12V16.42H83.69v4.33L80,20.68V16.42c0-.05-4.53,0-4.53,0v4.33H71.81V16.42c0-.06-4.87,0-4.87,0V22.3L71,26.42s.06,12.83.06,12.7-10.92,0-10.94,0,0-5.07,0-5.07l2.77-2.77V24.06c0-.14-4.12.06-4.39,0-.09,0,0,4.25,0,4.25H55.06V24.12H50.6a40.46,40.46,0,0,0,.07,4.12H46.82V24.12H42.49c-.13,0,0,7,0,7l3.11,3.11.07,4.86h-11V26.42l3.92-3.92V16.42H33.71v4.33l-3.78-.07V16.42H25.68s0,4.34,0,4.33-3.45-.07-3.78-.07V16.42s-4.93-.06-4.93,0v6.22l3.78,3.71V52.83s-3.92,3.85-3.92,4,.07,6.42.07,6.42H89V56.48ZM29.19,56.41h-3V45.74h3Zm.07-17.29h-3V28.45h3ZM41.08,53.23h-3V45.67h3ZM60.8,60.66H45.74V50.06s2.89-7.51,7.16-7.57l.13,0,.14-.15.17.17c4.65.38,7.46,7.53,7.46,7.53Zm7.29-7.36h-3V45.74h3Zm11.75,3.11h-3V45.74h3ZM80,37.9H77V27.23h3Z"/></g></g></svg>
|
package/src/App.jsx
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { SiteWrapper } from "../lib";
|
|
2
|
-
import { getNavHelper } from "internal-nav-helper";
|
|
3
|
-
import { useConnect } from "redux-bundler-hook";
|
|
4
|
-
|
|
5
|
-
const links = [{ id: "docs", label: "Documentation", link: "/docs" }];
|
|
6
|
-
|
|
7
|
-
function App() {
|
|
8
|
-
const {
|
|
9
|
-
route: Route,
|
|
10
|
-
hash,
|
|
11
|
-
doUpdateHash,
|
|
12
|
-
} = useConnect("selectRoute", "selectHash", "doUpdateHash");
|
|
13
|
-
|
|
14
|
-
console.log("trying to render");
|
|
15
|
-
if (hash === "") {
|
|
16
|
-
console.log("redirecting to home");
|
|
17
|
-
window.setTimeout(() => {
|
|
18
|
-
doUpdateHash("/");
|
|
19
|
-
}, 100);
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div onClick={getNavHelper((url) => doUpdateHash(url))}>
|
|
25
|
-
<SiteWrapper
|
|
26
|
-
headerLinks={links}
|
|
27
|
-
usaBanner={true}
|
|
28
|
-
subtitle="Groundwork React Components"
|
|
29
|
-
missionText="We strive to provide the best React components for the USACE."
|
|
30
|
-
aboutText="This is the about text for the footer."
|
|
31
|
-
>
|
|
32
|
-
<Route />
|
|
33
|
-
</SiteWrapper>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default App;
|
package/src/app-bundles/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRouteBundle } from "redux-bundler";
|
|
2
|
-
import Home from "../app-pages/home";
|
|
3
|
-
import Docs from "../app-pages/documentation";
|
|
4
|
-
import Navigation from "../app-pages/documentation/navigation";
|
|
5
|
-
import Breadcrumbs from "../app-pages/documentation/navigation/breadcrumbs";
|
|
6
|
-
import AppShell from "../app-pages/documentation/app-shell";
|
|
7
|
-
import Layout from "../app-pages/documentation/layout";
|
|
8
|
-
import SiteWrapperDocs from "../app-pages/documentation/app-shell/site-wrapper";
|
|
9
|
-
import Types from "../app-pages/documentation/types";
|
|
10
|
-
import LinkDocs from "../app-pages/documentation/types/link";
|
|
11
|
-
import ContainerDocs from "../app-pages/documentation/layout/container";
|
|
12
|
-
import USACEBoxDocs from "../app-pages/documentation/layout/usace-box";
|
|
13
|
-
import ButtonsDocs from "../app-pages/documentation/buttons";
|
|
14
|
-
|
|
15
|
-
export default createRouteBundle(
|
|
16
|
-
{
|
|
17
|
-
"/": Home,
|
|
18
|
-
"/docs": Docs,
|
|
19
|
-
"/docs/app-shell": AppShell,
|
|
20
|
-
"/docs/app-shell/site-wrapper": SiteWrapperDocs,
|
|
21
|
-
"/docs/layout": Layout,
|
|
22
|
-
"/docs/layout/container": ContainerDocs,
|
|
23
|
-
"/docs/layout/usace-box": USACEBoxDocs,
|
|
24
|
-
"/docs/navigation": Navigation,
|
|
25
|
-
"/docs/navigation/breadcrumbs": Breadcrumbs,
|
|
26
|
-
"/docs/buttons": ButtonsDocs,
|
|
27
|
-
"/docs/types": Types,
|
|
28
|
-
"/docs/types/link": LinkDocs,
|
|
29
|
-
"/about": "about",
|
|
30
|
-
"/contact": "contact",
|
|
31
|
-
"/404": () => "notFound",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
routeInfoSelector: "selectHash",
|
|
35
|
-
}
|
|
36
|
-
);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Code } from "../../lib";
|
|
2
|
-
import CopyButton from "./copy-button";
|
|
3
|
-
|
|
4
|
-
// render a code block for the example
|
|
5
|
-
function CodeExample({ code }) {
|
|
6
|
-
return (
|
|
7
|
-
<Code className="block relative p-4 px-2 whitespace-pre-wrap">
|
|
8
|
-
{code}
|
|
9
|
-
<div className="absolute top-2 right-2">
|
|
10
|
-
<CopyButton />
|
|
11
|
-
</div>
|
|
12
|
-
</Code>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default CodeExample;
|
|
17
|
-
export { CodeExample };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Button } from "../../lib";
|
|
2
|
-
import { BsCopy } from "react-icons/bs";
|
|
3
|
-
import { GoThumbsup } from "react-icons/go";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
|
|
7
|
-
function CopyButton({ className, text }) {
|
|
8
|
-
const [copying, setCopying] = useState(false);
|
|
9
|
-
const handleCopy = () => {
|
|
10
|
-
navigator.clipboard.writeText(text);
|
|
11
|
-
};
|
|
12
|
-
const btnClass = clsx("", className);
|
|
13
|
-
return (
|
|
14
|
-
<Button
|
|
15
|
-
className={btnClass}
|
|
16
|
-
outline={!copying}
|
|
17
|
-
color={copying ? "green" : undefined}
|
|
18
|
-
onClick={() => {
|
|
19
|
-
handleCopy();
|
|
20
|
-
setCopying(true);
|
|
21
|
-
setTimeout(() => {
|
|
22
|
-
setCopying(false);
|
|
23
|
-
}, 1000);
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
{copying ? <GoThumbsup /> : <BsCopy />}
|
|
27
|
-
</Button>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default CopyButton;
|
|
32
|
-
export { CopyButton };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Table,
|
|
3
|
-
TableBody,
|
|
4
|
-
TableRow,
|
|
5
|
-
TableHead,
|
|
6
|
-
TableHeader,
|
|
7
|
-
TableCell,
|
|
8
|
-
Code,
|
|
9
|
-
} from "../../lib";
|
|
10
|
-
|
|
11
|
-
function PropsTable({ propsList }) {
|
|
12
|
-
return (
|
|
13
|
-
<Table striped dense>
|
|
14
|
-
<TableHead>
|
|
15
|
-
<TableRow>
|
|
16
|
-
<TableHeader>Prop</TableHeader>
|
|
17
|
-
<TableHeader>Type</TableHeader>
|
|
18
|
-
<TableHeader>Default</TableHeader>
|
|
19
|
-
<TableHeader>Description</TableHeader>
|
|
20
|
-
</TableRow>
|
|
21
|
-
</TableHead>
|
|
22
|
-
<TableBody>
|
|
23
|
-
{propsList.map((prop) => (
|
|
24
|
-
<TableRow key={prop.name}>
|
|
25
|
-
<TableCell>
|
|
26
|
-
<Code>{prop.name}</Code>
|
|
27
|
-
</TableCell>
|
|
28
|
-
<TableCell>
|
|
29
|
-
<Code>{prop.type}</Code>
|
|
30
|
-
</TableCell>
|
|
31
|
-
<TableCell>
|
|
32
|
-
<Code>{prop.default}</Code>
|
|
33
|
-
</TableCell>
|
|
34
|
-
<TableCell className="text-wrap">{prop.desc}</TableCell>
|
|
35
|
-
</TableRow>
|
|
36
|
-
))}
|
|
37
|
-
</TableBody>
|
|
38
|
-
</Table>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default PropsTable;
|
|
43
|
-
export { PropsTable };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function SubSiteBanner({ title }) {
|
|
2
|
-
return (
|
|
3
|
-
<div className="bg-emerald-600 text-white text-sm px-4 py-[2px] text-wrap">
|
|
4
|
-
<span>
|
|
5
|
-
You are viewing the {title} site, click here to return to the national{" "}
|
|
6
|
-
<a className="underline" href="https://water.usace.army.mil">
|
|
7
|
-
Access to Water Site
|
|
8
|
-
</a>
|
|
9
|
-
</span>
|
|
10
|
-
</div>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default SubSiteBanner;
|
|
15
|
-
export { SubSiteBanner };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Breadcrumbs, BreadcrumbItem, Container } from "../../../lib";
|
|
2
|
-
import { DocsSidebar } from "./_docs-sidebar";
|
|
3
|
-
|
|
4
|
-
function DocsPage({ breadcrumbs = [], children }) {
|
|
5
|
-
return (
|
|
6
|
-
<div>
|
|
7
|
-
<Container fluid>
|
|
8
|
-
<Breadcrumbs>
|
|
9
|
-
{breadcrumbs.map((breadcrumb) => {
|
|
10
|
-
return (
|
|
11
|
-
<BreadcrumbItem
|
|
12
|
-
key={breadcrumb.href}
|
|
13
|
-
href={breadcrumb.href}
|
|
14
|
-
text={breadcrumb.text}
|
|
15
|
-
/>
|
|
16
|
-
);
|
|
17
|
-
})}
|
|
18
|
-
</Breadcrumbs>
|
|
19
|
-
<div className="grid grid-cols-12 gap-6">
|
|
20
|
-
<div className="col-span-2">
|
|
21
|
-
<DocsSidebar />
|
|
22
|
-
</div>
|
|
23
|
-
<div className="col-span-10">{children}</div>
|
|
24
|
-
</div>
|
|
25
|
-
</Container>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default DocsPage;
|
|
31
|
-
export { DocsPage };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { useConnect } from "redux-bundler-hook";
|
|
2
|
-
import { UsaceBox } from "../../../lib";
|
|
3
|
-
import { VscChevronRight } from "react-icons/vsc";
|
|
4
|
-
|
|
5
|
-
const sidebarLinks = [
|
|
6
|
-
{
|
|
7
|
-
title: "Getting Started",
|
|
8
|
-
href: "/docs",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: "Application Shell",
|
|
12
|
-
href: "/docs/app-shell",
|
|
13
|
-
children: [
|
|
14
|
-
{
|
|
15
|
-
title: "Site Wrapper",
|
|
16
|
-
href: "/docs/app-shell/site-wrapper",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
title: "Layout",
|
|
22
|
-
href: "/docs/layout",
|
|
23
|
-
children: [
|
|
24
|
-
{
|
|
25
|
-
title: "Container",
|
|
26
|
-
href: "/docs/layout/container",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
title: "UsaceBox",
|
|
30
|
-
href: "/docs/layout/usace-box",
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: "Navigation",
|
|
36
|
-
href: "/docs/navigation",
|
|
37
|
-
children: [
|
|
38
|
-
{
|
|
39
|
-
title: "Breadcrumbs",
|
|
40
|
-
href: "/docs/navigation/breadcrumbs",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
title: "Buttons",
|
|
46
|
-
href: "/docs/buttons",
|
|
47
|
-
children: [],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: "Types",
|
|
51
|
-
href: "/docs/types",
|
|
52
|
-
children: [
|
|
53
|
-
{
|
|
54
|
-
title: "Link",
|
|
55
|
-
href: "/docs/types/link",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
];
|
|
60
|
-
|
|
61
|
-
function DocsSidebar() {
|
|
62
|
-
const { hash } = useConnect("selectHash");
|
|
63
|
-
return (
|
|
64
|
-
<UsaceBox title="Contents">
|
|
65
|
-
{sidebarLinks.map((link) => {
|
|
66
|
-
return (
|
|
67
|
-
<div key={link.href}>
|
|
68
|
-
<a href={link.href}>
|
|
69
|
-
<div
|
|
70
|
-
className={`text-lg font-bold pl-1 py-1 flex justify-between items-center cursor-pointer hover:bg-gray-100 ${
|
|
71
|
-
hash === link.href ? "bg-gray-50 rounded" : ""
|
|
72
|
-
}`}
|
|
73
|
-
>
|
|
74
|
-
{link.title}
|
|
75
|
-
<VscChevronRight
|
|
76
|
-
size={18}
|
|
77
|
-
aria-hidden="true"
|
|
78
|
-
color="rgb(156 163 175)"
|
|
79
|
-
/>
|
|
80
|
-
</div>
|
|
81
|
-
</a>
|
|
82
|
-
<ul>
|
|
83
|
-
{link.children &&
|
|
84
|
-
link.children.map((child) => {
|
|
85
|
-
return (
|
|
86
|
-
<a href={child.href} key={child.href}>
|
|
87
|
-
<li
|
|
88
|
-
className={`pl-3 py-1 flex justify-between items-center cursor-pointer hover:bg-gray-100 ${
|
|
89
|
-
hash === child.href ? "bg-gray-50 rounded" : ""
|
|
90
|
-
}`}
|
|
91
|
-
>
|
|
92
|
-
{child.title}
|
|
93
|
-
<VscChevronRight
|
|
94
|
-
size={18}
|
|
95
|
-
aria-hidden="true"
|
|
96
|
-
color="rgb(156 163 175)"
|
|
97
|
-
/>
|
|
98
|
-
</li>
|
|
99
|
-
</a>
|
|
100
|
-
);
|
|
101
|
-
})}
|
|
102
|
-
</ul>
|
|
103
|
-
</div>
|
|
104
|
-
);
|
|
105
|
-
})}
|
|
106
|
-
</UsaceBox>
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export default DocsSidebar;
|
|
111
|
-
export { DocsSidebar };
|