@civicactions/cmsds-open-data-components 2.0.0-alpha.9 → 2.0.1
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/scss/components/additional-information-table.scss +9 -0
- package/dist/scss/components/breadcrumb.scss +32 -0
- package/dist/scss/components/dataset-downloads.scss +0 -0
- package/dist/scss/components/dataset-search-facets.scss +10 -0
- package/dist/scss/components/dataset-search-list-item.scss +20 -0
- package/dist/scss/components/dataset-tags.scss +4 -0
- package/dist/scss/components/datatable.scss +24 -0
- package/dist/scss/components/index.scss +9 -0
- package/dist/scss/components/pagination.scss +59 -0
- package/dist/scss/components/resource-information-table.scss +5 -0
- package/dist/scss/index.scss +24 -0
- package/dist/scss/templates/dataset-search.scss +38 -0
- package/dist/scss/templates/dataset.scss +44 -0
- package/dist/scss/templates/filtered-resource.scss +19 -0
- package/dist/scss/templates/footer.scss +83 -0
- package/dist/scss/templates/header.scss +402 -0
- package/dist/scss/templates/index.scss +7 -0
- package/dist/scss/templates/query-builder.scss +22 -0
- package/dist/scss/templates/swagger.scss +21 -0
- package/lib/assets/frequencyMap.js +22 -0
- package/lib/assets/icons/close.js +33 -0
- package/lib/assets/icons/close.jsx +24 -0
- package/lib/assets/icons/copy.js +33 -0
- package/lib/assets/icons/copy.jsx +23 -0
- package/lib/assets/icons/download.js +33 -0
- package/lib/assets/icons/download.jsx +23 -0
- package/lib/assets/icons/settings.js +34 -0
- package/lib/assets/icons/settings.jsx +24 -0
- package/lib/assets/metadataMapping.js +161 -0
- package/lib/assets/metadataMapping.jsx +110 -0
- package/lib/commands/index.js +7 -0
- package/lib/commands/templates/footer.js +61 -0
- package/lib/commands/templates/header.js +84 -0
- package/lib/commands/templates/page_not_found.js +14 -0
- package/lib/components/ApiDocumentation/index.js +24 -0
- package/lib/components/Breadcrumb/index.js +47 -0
- package/lib/components/DataTableDensity/datatabledensity.test.js +30 -0
- package/lib/components/DataTableDensity/index.js +47 -0
- package/lib/components/DataTableRowChanger/datatablerowchanger.test.js +49 -0
- package/lib/components/DataTableRowChanger/index.js +46 -0
- package/lib/components/DatasetAdditionalInformation/index.js +59 -0
- package/lib/components/DatasetDownloads/datasetdownloads.test.js +30 -0
- package/lib/components/DatasetDownloads/index.js +34 -0
- package/lib/components/DatasetSearchFacets/dataset_search_facets.test.js +103 -0
- package/lib/components/DatasetSearchFacets/index.js +104 -0
- package/lib/components/DatasetSearchListItem/datasetsearchlistitem.test.js +44 -0
- package/lib/components/DatasetSearchListItem/index.js +86 -0
- package/lib/components/DatasetTags/datasettags.test.js +40 -0
- package/lib/components/DatasetTags/index.js +38 -0
- package/lib/components/Hero/index.js +92 -0
- package/lib/components/ManageColumns/index.js +36 -0
- package/lib/components/NavBar/index.js +55 -0
- package/lib/components/NavLink/index.js +60 -0
- package/lib/components/NavLink/navlink.test.js +35 -0
- package/lib/components/Pagination/index.js +263 -0
- package/lib/components/Pagination/pagination.test.js +541 -0
- package/lib/components/ResourceConditionField/ResourceConditionalField.test.js +20 -0
- package/lib/components/ResourceConditionField/index.js +246 -0
- package/lib/components/ResourceFilter/index.js +174 -0
- package/lib/components/ResourceFilter/resourcefilter.test.js +440 -0
- package/lib/components/ResourceFooter/index.js +34 -0
- package/lib/components/ResourceHeader/index.js +149 -0
- package/lib/components/ResourceInformation/index.js +37 -0
- package/lib/components/ResourcePreview/index.js +139 -0
- package/lib/components/SearchModal/index.js +116 -0
- package/lib/components/SubMenu/index.js +86 -0
- package/lib/components/TransformedDate/index.js +34 -0
- package/lib/components/useAddLoginLink/index.js +44 -0
- package/lib/components/useScrollToTop/index.js +22 -0
- package/lib/index.js +247 -0
- package/lib/templates/APIPage/index.js +30 -0
- package/lib/templates/Dataset/DatasetBody.js +189 -0
- package/lib/templates/Dataset/index.js +83 -0
- package/lib/templates/DatasetSearch/datasetsearch.test.js +122 -0
- package/lib/templates/DatasetSearch/index.js +356 -0
- package/lib/templates/DrupalPage/index.js +37 -0
- package/lib/templates/FilteredResource/FilteredResourceBody.js +160 -0
- package/lib/templates/FilteredResource/QueryBuilder.js +235 -0
- package/lib/templates/FilteredResource/QueryRow.js +175 -0
- package/lib/templates/FilteredResource/QueryTitle.js +89 -0
- package/lib/templates/FilteredResource/functions.js +142 -0
- package/lib/templates/FilteredResource/index.js +95 -0
- package/lib/templates/Footer/footer.test.js +48 -0
- package/lib/templates/Footer/index.js +366 -0
- package/lib/templates/PageNotFound/index.js +25 -0
- package/lib/templates/header/index.js +112 -0
- package/lib/templates/mobile_header/index.js +199 -0
- package/package.json +11 -7
- package/dist/main.css +0 -679
- package/dist/main.css.map +0 -1
- package/dist/main.js +0 -4832
- package/dist/main.js.map +0 -1
- package/dist/types.d.ts +0 -414
- package/dist/types.d.ts.map +0 -1
- /package/{dist/CMSGovLogo-O.90ce815c.png → lib/assets/images/CMSGovLogo-O.png} +0 -0
- /package/{dist/CMSgov@2x-white-O.78cd05d3.png → lib/assets/images/CMSgov@2x-white-O.png} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.dc-c-breadcrumb__list {
|
|
2
|
+
margin-top: 0;
|
|
3
|
+
margin-bottom: 0;
|
|
4
|
+
list-style-type: none;
|
|
5
|
+
padding-left: 0;
|
|
6
|
+
> li {
|
|
7
|
+
margin-bottom: 0;
|
|
8
|
+
max-width: unset;
|
|
9
|
+
&::after {
|
|
10
|
+
font-family: 'Font Awesome 5 Pro';
|
|
11
|
+
content: '\f054';
|
|
12
|
+
margin: 0 10px;
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
}
|
|
16
|
+
&:last-child {
|
|
17
|
+
&::after {
|
|
18
|
+
content: '';
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dc-c-breadcrumb__list-item {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dc-c-breadcrumb__link {
|
|
31
|
+
display: inline;
|
|
32
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '~@cmsgov/design-system/dist/scss/settings/variables/color';
|
|
2
|
+
|
|
3
|
+
.dc-dataset-searchlist-item {
|
|
4
|
+
h2 a {
|
|
5
|
+
text-decoration: none;
|
|
6
|
+
&:hover {
|
|
7
|
+
text-decoration: underline;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
ul {
|
|
12
|
+
list-style: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dc-dataset-searchlist-item--keyword {
|
|
16
|
+
background: $color-primary-alt-lightest;
|
|
17
|
+
border: none;
|
|
18
|
+
color: $color-base;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.dc-c-datatable {
|
|
2
|
+
width: 100%;
|
|
3
|
+
.dc-c-table-header-cell {
|
|
4
|
+
.dc-c-resize-handle {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
width: 10px;
|
|
7
|
+
height: 100%;
|
|
8
|
+
position: absolute;
|
|
9
|
+
right: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
transform: translateX(50%);
|
|
12
|
+
z-index: 1;
|
|
13
|
+
touch-action: none;
|
|
14
|
+
&.isResizing {
|
|
15
|
+
background: #adb0b5;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&:hover {
|
|
19
|
+
.dc-c-resize-handle {
|
|
20
|
+
background: #d6d7d9;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import './datatable.scss';
|
|
2
|
+
@import './dataset-tags.scss';
|
|
3
|
+
@import './dataset-downloads.scss';
|
|
4
|
+
@import './pagination.scss';
|
|
5
|
+
@import './dataset-search-list-item.scss';
|
|
6
|
+
@import './dataset-search-facets.scss';
|
|
7
|
+
@import './additional-information-table.scss';
|
|
8
|
+
@import './breadcrumb.scss';
|
|
9
|
+
@import './resource-information-table.scss';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import '~@cmsgov/design-system/dist/scss/settings/variables/color';
|
|
2
|
+
|
|
3
|
+
.dc-pagination {
|
|
4
|
+
ol {
|
|
5
|
+
list-style: none;
|
|
6
|
+
}
|
|
7
|
+
button {
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
}
|
|
10
|
+
.dc-pagination-current__button {
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
color: $color-base;
|
|
13
|
+
text-decoration: underline;
|
|
14
|
+
}
|
|
15
|
+
.dc-pagination--previous__button,
|
|
16
|
+
.dc-pagination--next__button {
|
|
17
|
+
height: 100%;
|
|
18
|
+
&:disabled {
|
|
19
|
+
background: transparent !important;
|
|
20
|
+
&::before,
|
|
21
|
+
&::after {
|
|
22
|
+
color: $color-base;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&::before,
|
|
26
|
+
&::after {
|
|
27
|
+
font-family: 'Font Awesome 5 Pro';
|
|
28
|
+
color: $color-primary;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
padding-right: 10px;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
line-height: 16px;
|
|
33
|
+
height: 16px;
|
|
34
|
+
width: 16px;
|
|
35
|
+
margin-left: 10px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
font-weight: lighter;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dc-pagination--previous {
|
|
43
|
+
margin-right: auto;
|
|
44
|
+
}
|
|
45
|
+
.dc-pagination--next {
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dc-pagination--previous__button {
|
|
50
|
+
&::before {
|
|
51
|
+
content: '\f053';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.dc-pagination--next__button {
|
|
55
|
+
&::after {
|
|
56
|
+
content: '\f054';
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import './components';
|
|
2
|
+
@import './templates';
|
|
3
|
+
|
|
4
|
+
main {
|
|
5
|
+
padding-bottom: 100px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dc-c-word-break--all {
|
|
9
|
+
word-break: break-all;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html a:focus {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
button.ds-c-dialog__close {
|
|
17
|
+
&:focus {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
outline: 3px solid #bd13b8;
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
outline-offset: inherit;
|
|
22
|
+
border-radius: 0px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '~@cmsgov/design-system/dist/scss/settings/variables/color';
|
|
2
|
+
|
|
3
|
+
.dc-dataset-search-list {
|
|
4
|
+
list-style: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dc-c-clear-filters {
|
|
8
|
+
font-weight: 300;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dc-fulltext--input-container {
|
|
12
|
+
width: 100%;
|
|
13
|
+
input {
|
|
14
|
+
max-width: inherit;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dc-search-header {
|
|
19
|
+
display: relative;
|
|
20
|
+
&::after {
|
|
21
|
+
content: '';
|
|
22
|
+
display: block;
|
|
23
|
+
width: 48px;
|
|
24
|
+
height: 4px;
|
|
25
|
+
margin: 16px 0;
|
|
26
|
+
background-color: $color-primary-alt-light;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dataset-results-count {
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dc-dataset-search--facets-container .ds-c-accordion__button {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
padding: 16px 24px 16px 24px;
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.dc-resource-header {
|
|
2
|
+
&::before {
|
|
3
|
+
content: '';
|
|
4
|
+
display: block;
|
|
5
|
+
width: 48px;
|
|
6
|
+
height: 4px;
|
|
7
|
+
margin: 8px 0;
|
|
8
|
+
background-color: $color-primary-alt-light;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dc-truncate {
|
|
13
|
+
max-width: 85%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dc-c-table-header-group > div {
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dc-c-resize-handle {
|
|
24
|
+
top: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
position: absolute;
|
|
28
|
+
background-color: $color-gray-light;
|
|
29
|
+
width: 10px;
|
|
30
|
+
min-width: 10px;
|
|
31
|
+
display: block;
|
|
32
|
+
margin-left: -10px;
|
|
33
|
+
border-bottom: 2px solid #323a45;
|
|
34
|
+
border-top: 2px solid #323a45;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
&.isResizing,
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: $color-primary;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dc-c-metadata-description {
|
|
43
|
+
white-space: pre-line;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.dc-c-resource-action {
|
|
2
|
+
min-height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.dc-filtered-resource-toggle {
|
|
6
|
+
align-self: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dc-c-filterd-resouce-drawer {
|
|
10
|
+
.ds-c-help-drawer__footer {
|
|
11
|
+
h4 {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dc-c-resource-header--buttons {
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import '~@cmsgov/design-system/dist/scss/settings/variables/color';
|
|
2
|
+
|
|
3
|
+
.dc-c-footer {
|
|
4
|
+
background-color: white;
|
|
5
|
+
ul {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
list-style: none;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dc-c-footer--middle-container {
|
|
13
|
+
background: linear-gradient(90deg, #f6f9fd 50%, #e8f0fa 50%);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dc-c-footer__title {
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
color: $color-gray;
|
|
19
|
+
span {
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dc-c-footer__resources {
|
|
25
|
+
background: #f6f9fd;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dc-c-footer__utility {
|
|
29
|
+
background: $color-white;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dc-c-footer__utility li {
|
|
33
|
+
list-style: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dc-c-footer__cms-information {
|
|
37
|
+
background: #e8f0fa;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dc-footer--heading {
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dc-c-emailupdates {
|
|
45
|
+
background-image: linear-gradient(
|
|
46
|
+
35deg,
|
|
47
|
+
$color-primary-darkest,
|
|
48
|
+
$color-primary-darker,
|
|
49
|
+
$color-primary
|
|
50
|
+
);
|
|
51
|
+
color: $color-white;
|
|
52
|
+
}
|
|
53
|
+
.dc-c-footer--svg-icon {
|
|
54
|
+
width: 40px;
|
|
55
|
+
height: 40px;
|
|
56
|
+
font-size: 42px;
|
|
57
|
+
display: inline-block;
|
|
58
|
+
text-align: center;
|
|
59
|
+
position: relative;
|
|
60
|
+
|
|
61
|
+
svg.svg-inline--fa {
|
|
62
|
+
width: 1em;
|
|
63
|
+
height: 1em;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fa-circle {
|
|
67
|
+
fill: #6f757c;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.fa-inverse {
|
|
71
|
+
font-size: 25px;
|
|
72
|
+
padding-left: 2px;
|
|
73
|
+
fill: $color-white;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.svg-inline--fa {
|
|
77
|
+
bottom: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
margin: auto;
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: 0;
|
|
82
|
+
top: 0;
|
|
83
|
+
}
|