@carbon/charts-svelte 1.11.20 → 1.12.0
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/CHANGELOG.md +26 -0
- package/README.md +3 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +4249 -781
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/package.json +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.12.0 (2023-09-05)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **scss:** Optimized SCSS to remove need to separately load @carbon/styles
|
|
11
|
+
([#1652](https://github.com/carbon-design-system/carbon-charts/issues/1652))
|
|
12
|
+
([d970944](https://github.com/carbon-design-system/carbon-charts/commit/d970944e49da6f0ca5cc4f290be9b2895e521e7d))
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## 1.11.21 (2023-08-14)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **umd:** Issue 1646 - change process.env.NODE_ENV to string
|
|
24
|
+
([#1649](https://github.com/carbon-design-system/carbon-charts/issues/1649))
|
|
25
|
+
([8e11271](https://github.com/carbon-design-system/carbon-charts/commit/8e11271903e92b54aa71c5fabc6ea21103fc5d91))
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
6
32
|
## 1.11.20 (2023-08-10)
|
|
7
33
|
|
|
8
34
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -17,13 +17,13 @@ Please direct all questions regarding support, bug fixes and feature requests to
|
|
|
17
17
|
Run the following command using [npm](https://www.npmjs.com/):
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install -D @carbon/charts-svelte
|
|
20
|
+
npm install -D @carbon/charts-svelte d3 d3-cloud d3-sankey
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
If you prefer [Yarn](https://yarnpkg.com/en/), use the following command instead:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
yarn add -D @carbon/charts-svelte
|
|
26
|
+
yarn add -D @carbon/charts-svelte d3 d3-cloud d3-sankey
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### SvelteKit
|
|
@@ -54,10 +54,9 @@ You may see circular dependency warnings for `d3` packages. These can be safely
|
|
|
54
54
|
|
|
55
55
|
## Usage
|
|
56
56
|
|
|
57
|
-
Styles must be imported from
|
|
57
|
+
Styles must be imported from `@carbon/charts-svelte`.
|
|
58
58
|
|
|
59
59
|
```js
|
|
60
|
-
import '@carbon/styles/css/styles.css'
|
|
61
60
|
import '@carbon/charts-svelte/styles.css'
|
|
62
61
|
```
|
|
63
62
|
|
|
@@ -65,7 +64,6 @@ import '@carbon/charts-svelte/styles.css'
|
|
|
65
64
|
|
|
66
65
|
```svelte
|
|
67
66
|
<script>
|
|
68
|
-
import '@carbon/styles/css/styles.css'
|
|
69
67
|
import '@carbon/charts-svelte/styles.css'
|
|
70
68
|
import { BarChartSimple } from '@carbon/charts-svelte'
|
|
71
69
|
</script>
|
|
@@ -114,7 +112,6 @@ server-side rendering.
|
|
|
114
112
|
|
|
115
113
|
```svelte
|
|
116
114
|
<script>
|
|
117
|
-
import '@carbon/styles/css/styles.css'
|
|
118
115
|
import '@carbon/charts-svelte/styles.css'
|
|
119
116
|
import { onMount } from 'svelte'
|
|
120
117
|
|
|
@@ -152,7 +149,6 @@ In this example, an event listener is attached to the `BarChartSimple` component
|
|
|
152
149
|
|
|
153
150
|
```svelte
|
|
154
151
|
<script>
|
|
155
|
-
import '@carbon/styles/css/styles.css'
|
|
156
152
|
import '@carbon/charts-svelte/styles.css'
|
|
157
153
|
import { onDestroy, onMount } from 'svelte'
|
|
158
154
|
import { BarChartSimple } from '@carbon/charts-svelte'
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ import StackedAreaChart from './StackedAreaChart.svelte';
|
|
|
23
23
|
import TreeChart from './TreeChart.svelte';
|
|
24
24
|
import TreemapChart from './TreemapChart.svelte';
|
|
25
25
|
import WordCloudChart from './WordCloudChart.svelte';
|
|
26
|
-
export type { ChartTabularData, AlluvialChartOptions, AreaChartOptions, BarChartOptions, BoxplotChartOptions, BubbleChartOptions, BulletChartOptions, ChoroplethChartOptions, CirclePackChartOptions, ComboChartOptions, DonutChartOptions, GaugeChartOptions, HeatmapChartOptions, HistogramChartOptions, LineChartOptions, LollipopChartOptions, MeterChartOptions, PieChartOptions, RadarChartOptions, ScatterChartOptions, StackedAreaChartOptions, TreeChartOptions, TreemapChartOptions, WorldCloudChartOptions } from '@carbon/charts';
|
|
27
|
-
export { Alignments, ScaleTypes } from '@carbon/charts';
|
|
26
|
+
export type { ChartTabularData, ChartOptions, AlluvialChartOptions, AreaChartOptions, BarChartOptions, BoxplotChartOptions, BubbleChartOptions, BulletChartOptions, ChoroplethChartOptions, CirclePackChartOptions, ComboChartOptions, DonutChartOptions, GaugeChartOptions, HeatmapChartOptions, HistogramChartOptions, LineChartOptions, LollipopChartOptions, MeterChartOptions, PieChartOptions, RadarChartOptions, ScatterChartOptions, StackedAreaChartOptions, TreeChartOptions, TreemapChartOptions, WorldCloudChartOptions } from '@carbon/charts';
|
|
27
|
+
export { Alignments, ChartTheme, ScaleTypes } from '@carbon/charts';
|
|
28
28
|
export { AlluvialChart, AreaChart, BarChartGrouped, BarChartSimple, BarChartStacked, BoxplotChart, BubbleChart, BulletChart, ExperimentalChoroplethChart, CirclePackChart, ComboChart, DonutChart, GaugeChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, StackedAreaChart, TreeChart, TreemapChart, WordCloudChart };
|
package/dist/index.js
CHANGED
|
@@ -24,5 +24,5 @@ import TreeChart from './TreeChart.svelte';
|
|
|
24
24
|
import TreemapChart from './TreemapChart.svelte';
|
|
25
25
|
import WordCloudChart from './WordCloudChart.svelte';
|
|
26
26
|
// Commonly-used enums
|
|
27
|
-
export { Alignments, ScaleTypes } from '@carbon/charts';
|
|
27
|
+
export { Alignments, ChartTheme, ScaleTypes } from '@carbon/charts';
|
|
28
28
|
export { AlluvialChart, AreaChart, BarChartGrouped, BarChartSimple, BarChartStacked, BoxplotChart, BubbleChart, BulletChart, ExperimentalChoroplethChart, CirclePackChart, ComboChart, DonutChart, GaugeChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, StackedAreaChart, TreeChart, TreemapChart, WordCloudChart };
|