@cdc/data-bite 4.25.8 → 4.25.11

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,26 @@
1
+ {
2
+ "type": "data-bite",
3
+ "dataUrl": "/packages/data-bite/tests/fixtures/example-data.json",
4
+ "dataBite": "",
5
+ "dataFunction": "Mean (Average)",
6
+ "dataColumn": "Insured Rate",
7
+ "bitePosition": "Left",
8
+ "biteFontSize": "24",
9
+ "imageData": {
10
+ "display": "none",
11
+ "url": "",
12
+ "options": []
13
+ },
14
+ "biteBody": "Test data bite body text for E2E testing",
15
+ "dataFormat": {
16
+ "roundToPlace": 0,
17
+ "commas": true,
18
+ "prefix": "",
19
+ "suffix": "%"
20
+ },
21
+ "filters": [],
22
+ "biteStyle": "graphic",
23
+ "subtext": "Test Data Source Citation",
24
+ "title": "Test Data Bite Title",
25
+ "theme": "theme-blue"
26
+ }
package/vite.config.js CHANGED
@@ -1,4 +1,4 @@
1
- import GenerateViteConfig from '../../generateViteConfig.js'
1
+ import GenerateViteConfig from '@cdc/core/generateViteConfig.js'
2
2
  import { moduleName } from './package.json'
3
3
 
4
4
  export default GenerateViteConfig(moduleName)
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'vitest/config'
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: 'jsdom',
6
+ globals: true,
7
+ setupFiles: ['../../vitest.setup.ts'],
8
+ exclude: [
9
+ '**/node_modules/**',
10
+ '**/dist/**',
11
+ '**/.storybook/**',
12
+ '**/*.stories.*',
13
+ '**/storybook-static/**'
14
+ ]
15
+ }
16
+ })
@@ -1,3 +0,0 @@
1
- @import '@cdc/core/styles/base';
2
- @import '@cdc/core/styles/heading-colors';
3
- @import '@cdc/core/styles/v2/themes/color-definitions';
@@ -1 +0,0 @@
1
- $editorWidth: 350px;