@cdc/markup-include 1.0.2 → 9.22.9
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.
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "",
|
|
3
|
+
"showHeader": false,
|
|
4
|
+
"type": "markup-include",
|
|
5
|
+
"srcUrl": "https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Markup-Include-Button-and-Text.html",
|
|
6
|
+
"theme": "theme-blue",
|
|
7
|
+
"data": [
|
|
8
|
+
{
|
|
9
|
+
"Race": "Hispanic or Latino",
|
|
10
|
+
"Age-adjusted rate": "644.2"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"Race": "Non-Hispanic American Indian",
|
|
14
|
+
"Age-adjusted rate": "636.1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"Race": "Non-Hispanic Black",
|
|
18
|
+
"Age-adjusted rate": "563.7"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
22
|
+
"Age-adjusted rate": "202.5"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"Race": "Non-Hispanic White",
|
|
26
|
+
"Age-adjusted rate": "183.6"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"dataFileName": "valid-data-chart.csv",
|
|
30
|
+
"dataFileSourceType": "file"
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "",
|
|
3
|
+
"showHeader": false,
|
|
4
|
+
"type": "markup-include",
|
|
5
|
+
"srcUrl": "https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/SSI-Example-Markup-Include.html",
|
|
6
|
+
"theme": "theme-blue",
|
|
7
|
+
"data": [
|
|
8
|
+
{
|
|
9
|
+
"Race": "Hispanic or Latino",
|
|
10
|
+
"Age-adjusted rate": "644.2"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"Race": "Non-Hispanic American Indian",
|
|
14
|
+
"Age-adjusted rate": "636.1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"Race": "Non-Hispanic Black",
|
|
18
|
+
"Age-adjusted rate": "563.7"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
22
|
+
"Age-adjusted rate": "202.5"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"Race": "Non-Hispanic White",
|
|
26
|
+
"Age-adjusted rate": "183.6"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"dataFileName": "valid-data-chart.csv",
|
|
30
|
+
"dataFileSourceType": "file"
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "<strong>Markup Include</strong> - Image with Text",
|
|
3
|
+
"showHeader": false,
|
|
4
|
+
"type": "markup-include",
|
|
5
|
+
"srcUrl": "/wcms/4.0/cdc-wp/data-presentation/examples/SSI-Image-With-Text.html",
|
|
6
|
+
"theme": "theme-slate",
|
|
7
|
+
"data": [
|
|
8
|
+
{
|
|
9
|
+
"Race": "Hispanic or Latino",
|
|
10
|
+
"Age-adjusted rate": "644.2"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"Race": "Non-Hispanic American Indian",
|
|
14
|
+
"Age-adjusted rate": "636.1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"Race": "Non-Hispanic Black",
|
|
18
|
+
"Age-adjusted rate": "563.7"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
22
|
+
"Age-adjusted rate": "202.5"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"Race": "Non-Hispanic White",
|
|
26
|
+
"Age-adjusted rate": "183.6"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"dataFileName": "valid-data-chart.csv",
|
|
30
|
+
"dataFileSourceType": "file"
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/markup-include",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.22.9",
|
|
4
4
|
"description": "React component for displaying HTML content from an outside link",
|
|
5
5
|
"main": "dist/cdcmarkupinclude",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@cdc/core": "^
|
|
23
|
+
"@cdc/core": "^9.22.9",
|
|
24
24
|
"axios": "^0.26.1",
|
|
25
25
|
"chroma": "0.0.1",
|
|
26
26
|
"chroma-js": "^2.1.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"resolutions": {
|
|
36
36
|
"@types/react": "17.x"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "90faf22c91ca0062432607e4599598f9e67c848a"
|
|
39
39
|
}
|
package/src/index.html
CHANGED
|
@@ -3,9 +3,29 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
/* max-width: 1000px; */
|
|
9
|
+
margin: 0 auto !important;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.react-container+.react-container {
|
|
16
|
+
margin-top: 3rem;
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
6
19
|
</head>
|
|
7
20
|
<body>
|
|
21
|
+
|
|
22
|
+
<!-- Original -->
|
|
8
23
|
<div class="react-container" data-config="/examples/example-config.json"></div>
|
|
24
|
+
|
|
25
|
+
<!-- DATA PRESENTATION GALLERY: https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/Markup-Include.html#examples -->
|
|
26
|
+
<!-- <div class="react-container" data-config="/examples/gallery/icon-no-text.json"></div> -->
|
|
27
|
+
<!-- <div class="react-container" data-config="/examples/gallery/image-with-text.json"></div> -->
|
|
28
|
+
<!-- <div class="react-container" data-config="/examples/gallery/button-and-text.json"></div> -->
|
|
9
29
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
10
30
|
</body>
|
|
11
31
|
</html>
|