@cdc/data-bite 4.24.12 → 4.25.2-25

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/index.html CHANGED
@@ -13,8 +13,7 @@
13
13
  min-height: 100vh;
14
14
  }
15
15
  </style>
16
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/contrib/libs/bootstrap/latest/css/bootstrap.min.css?_=39423" />
17
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/4.0/assets/css/app.min.css?_=39423" />
16
+ <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
18
17
  </head>
19
18
  <body>
20
19
  <!-- Original -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/data-bite",
3
- "version": "4.24.12",
3
+ "version": "4.25.2-25",
4
4
  "description": "React component for displaying a single piece of data in a card module",
5
5
  "moduleName": "CdcDataBite",
6
6
  "main": "dist/cdcdatabite",
@@ -27,7 +27,7 @@
27
27
  "license": "Apache-2.0",
28
28
  "homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
29
29
  "dependencies": {
30
- "@cdc/core": "^4.24.12",
30
+ "@cdc/core": "^4.25.2-25",
31
31
  "chroma": "0.0.1",
32
32
  "chroma-js": "^2.1.0",
33
33
  "html-react-parser": "^3.0.8",
@@ -40,5 +40,5 @@
40
40
  "react": "^18.2.0",
41
41
  "react-dom": "^18.2.0"
42
42
  },
43
- "gitHead": "347414f1da4b0e9bf2f22a7b59335deccf0b2d9c"
43
+ "gitHead": "f00bd8a0fc746def7cc23b91ef49a03a3ceac65e"
44
44
  }
package/src/index.jsx CHANGED
@@ -2,6 +2,7 @@ import React from 'react'
2
2
  import ReactDOM from 'react-dom/client'
3
3
 
4
4
  import CdcDataBite from './CdcDataBite'
5
+ import '@cdc/core/styles/cove-main.scss'
5
6
  import './coreStyles_databite.scss'
6
7
 
7
8
  let isEditor = window.location.href.includes('editor=true')
@@ -26,7 +26,6 @@
26
26
  }
27
27
  }
28
28
 
29
-
30
29
  .warning-icon {
31
30
  position: relative;
32
31
  top: 2px;
@@ -49,12 +48,4 @@
49
48
  padding: 8px 12px !important;
50
49
  opacity: 1;
51
50
  }
52
-
53
- &.font-small .bite-content-container {
54
- font-size: 0.9em !important;
55
- }
56
- &.font-large .bite-content-container {
57
- font-size: 1.1em !important;
58
- }
59
- // Medium is just the default
60
51
  }
@@ -1,3 +1,5 @@
1
+ import { Version } from '@cdc/core/types/Version'
2
+
1
3
  export type Config = {
2
4
  type: string
3
5
  data: Object[]
@@ -36,4 +38,5 @@ export type Config = {
36
38
  general: {
37
39
  isCompactStyle: boolean
38
40
  }
41
+ version: Version
39
42
  }