@react-magma/charts 7.0.0-next.2 → 7.0.0-next.4

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.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ThemeInterface } from 'react-magma-dom';
3
- import '@carbon/charts/styles.css';
3
+ import './styles.min.css';
4
4
  export declare enum CarbonChartType {
5
5
  area = "area",
6
6
  areaStacked = "areaStacked",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-magma/charts",
3
- "version": "7.0.0-next.2",
3
+ "version": "7.0.0-next.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,7 +12,8 @@
12
12
  "types": "dist/index.d.ts",
13
13
  "files": [
14
14
  "dist",
15
- "src"
15
+ "src",
16
+ "src/components/CarbonChart/styles.min.css"
16
17
  ],
17
18
  "engines": {
18
19
  "npm": "^7.3.0",
@@ -49,5 +50,9 @@
49
50
  "react-dom": "^17.0.2",
50
51
  "react-magma-dom": "^4.4.0-next.2",
51
52
  "react-magma-icons": "^3.0.0"
53
+ },
54
+ "exports": {
55
+ ".": "./src",
56
+ "./src/components/CarbonChart/": "./styles.min.css"
52
57
  }
53
- }
58
+ }
@@ -13,7 +13,7 @@ import {
13
13
  SimpleBarChart,
14
14
  StackedBarChart,
15
15
  } from '@carbon/charts-react';
16
- import '@carbon/charts/styles.css';
16
+ import './styles.min.css';
17
17
 
18
18
  const typedStyled = styled as CreateStyled<ThemeInterface>;
19
19
 
@@ -365,6 +365,7 @@ const CarbonChartWrapper = typedStyled.div<{
365
365
  props.isInverse
366
366
  ? props.theme.colors.focusInverse
367
367
  : props.theme.colors.focus};
368
+ border-color: none;
368
369
  }
369
370
  outline-offset: 0;
370
371
  border: none;
@@ -515,6 +516,7 @@ export const CarbonChart = React.forwardRef<HTMLDivElement, CarbonChartProps>(
515
516
  ref={ref}
516
517
  isInverse={isInverse}
517
518
  theme={theme}
519
+ className="carbon-chart-wrapper"
518
520
  {...rest}
519
521
  >
520
522
  <ChartType data={dataSet} options={newOptions} />
@@ -1 +1 @@
1
- export * from "./CarbonChart";
1
+ export * from "./CarbonChart";