@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.
Files changed (96) hide show
  1. package/dist/scss/components/additional-information-table.scss +9 -0
  2. package/dist/scss/components/breadcrumb.scss +32 -0
  3. package/dist/scss/components/dataset-downloads.scss +0 -0
  4. package/dist/scss/components/dataset-search-facets.scss +10 -0
  5. package/dist/scss/components/dataset-search-list-item.scss +20 -0
  6. package/dist/scss/components/dataset-tags.scss +4 -0
  7. package/dist/scss/components/datatable.scss +24 -0
  8. package/dist/scss/components/index.scss +9 -0
  9. package/dist/scss/components/pagination.scss +59 -0
  10. package/dist/scss/components/resource-information-table.scss +5 -0
  11. package/dist/scss/index.scss +24 -0
  12. package/dist/scss/templates/dataset-search.scss +38 -0
  13. package/dist/scss/templates/dataset.scss +44 -0
  14. package/dist/scss/templates/filtered-resource.scss +19 -0
  15. package/dist/scss/templates/footer.scss +83 -0
  16. package/dist/scss/templates/header.scss +402 -0
  17. package/dist/scss/templates/index.scss +7 -0
  18. package/dist/scss/templates/query-builder.scss +22 -0
  19. package/dist/scss/templates/swagger.scss +21 -0
  20. package/lib/assets/frequencyMap.js +22 -0
  21. package/lib/assets/icons/close.js +33 -0
  22. package/lib/assets/icons/close.jsx +24 -0
  23. package/lib/assets/icons/copy.js +33 -0
  24. package/lib/assets/icons/copy.jsx +23 -0
  25. package/lib/assets/icons/download.js +33 -0
  26. package/lib/assets/icons/download.jsx +23 -0
  27. package/lib/assets/icons/settings.js +34 -0
  28. package/lib/assets/icons/settings.jsx +24 -0
  29. package/lib/assets/metadataMapping.js +161 -0
  30. package/lib/assets/metadataMapping.jsx +110 -0
  31. package/lib/commands/index.js +7 -0
  32. package/lib/commands/templates/footer.js +61 -0
  33. package/lib/commands/templates/header.js +84 -0
  34. package/lib/commands/templates/page_not_found.js +14 -0
  35. package/lib/components/ApiDocumentation/index.js +24 -0
  36. package/lib/components/Breadcrumb/index.js +47 -0
  37. package/lib/components/DataTableDensity/datatabledensity.test.js +30 -0
  38. package/lib/components/DataTableDensity/index.js +47 -0
  39. package/lib/components/DataTableRowChanger/datatablerowchanger.test.js +49 -0
  40. package/lib/components/DataTableRowChanger/index.js +46 -0
  41. package/lib/components/DatasetAdditionalInformation/index.js +59 -0
  42. package/lib/components/DatasetDownloads/datasetdownloads.test.js +30 -0
  43. package/lib/components/DatasetDownloads/index.js +34 -0
  44. package/lib/components/DatasetSearchFacets/dataset_search_facets.test.js +103 -0
  45. package/lib/components/DatasetSearchFacets/index.js +104 -0
  46. package/lib/components/DatasetSearchListItem/datasetsearchlistitem.test.js +44 -0
  47. package/lib/components/DatasetSearchListItem/index.js +86 -0
  48. package/lib/components/DatasetTags/datasettags.test.js +40 -0
  49. package/lib/components/DatasetTags/index.js +38 -0
  50. package/lib/components/Hero/index.js +92 -0
  51. package/lib/components/ManageColumns/index.js +36 -0
  52. package/lib/components/NavBar/index.js +55 -0
  53. package/lib/components/NavLink/index.js +60 -0
  54. package/lib/components/NavLink/navlink.test.js +35 -0
  55. package/lib/components/Pagination/index.js +263 -0
  56. package/lib/components/Pagination/pagination.test.js +541 -0
  57. package/lib/components/ResourceConditionField/ResourceConditionalField.test.js +20 -0
  58. package/lib/components/ResourceConditionField/index.js +246 -0
  59. package/lib/components/ResourceFilter/index.js +174 -0
  60. package/lib/components/ResourceFilter/resourcefilter.test.js +440 -0
  61. package/lib/components/ResourceFooter/index.js +34 -0
  62. package/lib/components/ResourceHeader/index.js +149 -0
  63. package/lib/components/ResourceInformation/index.js +37 -0
  64. package/lib/components/ResourcePreview/index.js +139 -0
  65. package/lib/components/SearchModal/index.js +116 -0
  66. package/lib/components/SubMenu/index.js +86 -0
  67. package/lib/components/TransformedDate/index.js +34 -0
  68. package/lib/components/useAddLoginLink/index.js +44 -0
  69. package/lib/components/useScrollToTop/index.js +22 -0
  70. package/lib/index.js +247 -0
  71. package/lib/templates/APIPage/index.js +30 -0
  72. package/lib/templates/Dataset/DatasetBody.js +189 -0
  73. package/lib/templates/Dataset/index.js +83 -0
  74. package/lib/templates/DatasetSearch/datasetsearch.test.js +122 -0
  75. package/lib/templates/DatasetSearch/index.js +356 -0
  76. package/lib/templates/DrupalPage/index.js +37 -0
  77. package/lib/templates/FilteredResource/FilteredResourceBody.js +160 -0
  78. package/lib/templates/FilteredResource/QueryBuilder.js +235 -0
  79. package/lib/templates/FilteredResource/QueryRow.js +175 -0
  80. package/lib/templates/FilteredResource/QueryTitle.js +89 -0
  81. package/lib/templates/FilteredResource/functions.js +142 -0
  82. package/lib/templates/FilteredResource/index.js +95 -0
  83. package/lib/templates/Footer/footer.test.js +48 -0
  84. package/lib/templates/Footer/index.js +366 -0
  85. package/lib/templates/PageNotFound/index.js +25 -0
  86. package/lib/templates/header/index.js +112 -0
  87. package/lib/templates/mobile_header/index.js +199 -0
  88. package/package.json +11 -7
  89. package/dist/main.css +0 -679
  90. package/dist/main.css.map +0 -1
  91. package/dist/main.js +0 -4832
  92. package/dist/main.js.map +0 -1
  93. package/dist/types.d.ts +0 -414
  94. package/dist/types.d.ts.map +0 -1
  95. /package/{dist/CMSGovLogo-O.90ce815c.png → lib/assets/images/CMSGovLogo-O.png} +0 -0
  96. /package/{dist/CMSgov@2x-white-O.78cd05d3.png → lib/assets/images/CMSgov@2x-white-O.png} +0 -0
@@ -0,0 +1,9 @@
1
+ .dc-c-additional-info-table {
2
+ table {
3
+ width: 100%;
4
+ }
5
+ }
6
+
7
+ .dc-c-additional-info-table a {
8
+ word-break: break-all;
9
+ }
@@ -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,10 @@
1
+ .dc-dataset-search--facets-container .ds-c-accordion__content {
2
+ max-height: 32rem;
3
+ }
4
+
5
+ .dc-dataset-search--facets {
6
+ display: block;
7
+ list-style: none;
8
+ position: relative;
9
+ max-height: 32rem;
10
+ }
@@ -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,4 @@
1
+ .dc-c-dataset-tags--tag {
2
+ display: inline-block;
3
+ background: $color-primary-alt-lightest;
4
+ }
@@ -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,5 @@
1
+ .dc-c-resource-info-table {
2
+ table {
3
+ width: 100%;
4
+ }
5
+ }
@@ -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
+ }