@pisell/charts-materials 1.0.3 → 1.0.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.
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Area as AntArea } from "@ant-design/plots";
3
+ declare type AntAreaProps = typeof AntArea;
4
+ export interface AreaProps extends React.ComponentProps<AntAreaProps> {
5
+ }
6
+ declare const Area: (props: AreaProps) => JSX.Element;
7
+ export default Area;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,aAAK,YAAY,GAAG,OAAO,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC;CAAG;AAExE,QAAA,MAAM,IAAI,UAAW,SAAS,gBAQ7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from "react";
3
+ import { Area as AntArea } from "@ant-design/plots";
4
+ var Area = function Area(props) {
5
+ return /*#__PURE__*/React.createElement(AntArea, _extends({
6
+ key: "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit),
7
+ style: {
8
+ flex: 1
9
+ }
10
+ }, props));
11
+ };
12
+ export default Area;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Bar as AntBar } from "@ant-design/plots";
3
+ declare type AntBarProps = typeof AntBar;
4
+ export interface BarProps extends React.ComponentProps<AntBarProps> {
5
+ }
6
+ declare const Bar: (props: BarProps) => JSX.Element;
7
+ export default Bar;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAElD,aAAK,WAAW,GAAG,OAAO,MAAM,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAEtE,QAAA,MAAM,GAAG,UAAW,QAAQ,gBAQ3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from "react";
3
+ import { Bar as AntBar } from "@ant-design/plots";
4
+ var Bar = function Bar(props) {
5
+ return /*#__PURE__*/React.createElement(AntBar, _extends({
6
+ key: "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit),
7
+ style: {
8
+ flex: 1
9
+ }
10
+ }, props));
11
+ };
12
+ export default Bar;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Column as AntColumn } from "@ant-design/plots";
3
+ declare type AntColumnProps = typeof AntColumn;
4
+ export interface ColumnProps extends React.ComponentProps<AntColumnProps> {
5
+ }
6
+ declare const Column: (props: ColumnProps) => JSX.Element;
7
+ export default Column;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAExD,aAAK,cAAc,GAAG,OAAO,SAAS,CAAC;AAEvC,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE5E,QAAA,MAAM,MAAM,UAAW,WAAW,gBAQjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from "react";
3
+ import { Column as AntColumn } from "@ant-design/plots";
4
+ var Column = function Column(props) {
5
+ return /*#__PURE__*/React.createElement(AntColumn, _extends({
6
+ key: "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit),
7
+ style: {
8
+ flex: 1
9
+ }
10
+ }, props));
11
+ };
12
+ export default Column;
package/es/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import Line from "./line";
2
+ import Pie from "./pie";
3
+ import Bar from "./bar";
4
+ import Area from "./area";
5
+ import Column from "./column";
6
+ export { Line, Pie, Bar, Area, Column };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC"}
package/es/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import Line from "./line";
2
+ import Pie from "./pie";
3
+ import Bar from "./bar";
4
+ import Area from "./area";
5
+ import Column from "./column";
6
+ export { Line, Pie, Bar, Area, Column };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Line as AntLine } from "@ant-design/plots";
3
+ declare type AntLineProps = typeof AntLine;
4
+ export interface LineProps extends React.ComponentProps<AntLineProps> {
5
+ }
6
+ declare const Line: (props: LineProps) => JSX.Element;
7
+ export default Line;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,aAAK,YAAY,GAAG,OAAO,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC;CAAG;AAExE,QAAA,MAAM,IAAI,UAAW,SAAS,gBAQ7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from "react";
3
+ import { Line as AntLine } from "@ant-design/plots";
4
+ var Line = function Line(props) {
5
+ return /*#__PURE__*/React.createElement(AntLine, _extends({
6
+ key: "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit),
7
+ style: {
8
+ flex: 1
9
+ }
10
+ }, props));
11
+ };
12
+ export default Line;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Pie as AntPie } from "@ant-design/plots";
3
+ declare type AntPieProps = typeof AntPie;
4
+ export interface PieProps extends React.ComponentProps<AntPieProps> {
5
+ }
6
+ declare const Pie: (props: PieProps) => JSX.Element;
7
+ export default Pie;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAElD,aAAK,WAAW,GAAG,OAAO,MAAM,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAEtE,QAAA,MAAM,GAAG,UAAW,QAAQ,gBAQ3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from "react";
3
+ import { Pie as AntPie } from "@ant-design/plots";
4
+ var Pie = function Pie(props) {
5
+ return /*#__PURE__*/React.createElement(AntPie, _extends({
6
+ key: "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit),
7
+ style: {
8
+ flex: 1
9
+ }
10
+ }, props));
11
+ };
12
+ export default Pie;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Area as AntArea } from "@ant-design/plots";
3
+ declare type AntAreaProps = typeof AntArea;
4
+ export interface AreaProps extends React.ComponentProps<AntAreaProps> {
5
+ }
6
+ declare const Area: (props: AreaProps) => JSX.Element;
7
+ export default Area;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,aAAK,YAAY,GAAG,OAAO,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC;CAAG;AAExE,QAAA,MAAM,IAAI,UAAW,SAAS,gBAQ7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/area/index.tsx
30
+ var area_exports = {};
31
+ __export(area_exports, {
32
+ default: () => area_default
33
+ });
34
+ module.exports = __toCommonJS(area_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_plots = require("@ant-design/plots");
37
+ var Area = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_plots.Area,
40
+ {
41
+ key: `${props.width}-${props.height}-${props.autoFit}`,
42
+ style: { flex: 1 },
43
+ ...props
44
+ }
45
+ );
46
+ };
47
+ var area_default = Area;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Bar as AntBar } from "@ant-design/plots";
3
+ declare type AntBarProps = typeof AntBar;
4
+ export interface BarProps extends React.ComponentProps<AntBarProps> {
5
+ }
6
+ declare const Bar: (props: BarProps) => JSX.Element;
7
+ export default Bar;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAElD,aAAK,WAAW,GAAG,OAAO,MAAM,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAEtE,QAAA,MAAM,GAAG,UAAW,QAAQ,gBAQ3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/bar/index.tsx
30
+ var bar_exports = {};
31
+ __export(bar_exports, {
32
+ default: () => bar_default
33
+ });
34
+ module.exports = __toCommonJS(bar_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_plots = require("@ant-design/plots");
37
+ var Bar = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_plots.Bar,
40
+ {
41
+ key: `${props.width}-${props.height}-${props.autoFit}`,
42
+ style: { flex: 1 },
43
+ ...props
44
+ }
45
+ );
46
+ };
47
+ var bar_default = Bar;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Column as AntColumn } from "@ant-design/plots";
3
+ declare type AntColumnProps = typeof AntColumn;
4
+ export interface ColumnProps extends React.ComponentProps<AntColumnProps> {
5
+ }
6
+ declare const Column: (props: ColumnProps) => JSX.Element;
7
+ export default Column;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAExD,aAAK,cAAc,GAAG,OAAO,SAAS,CAAC;AAEvC,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE5E,QAAA,MAAM,MAAM,UAAW,WAAW,gBAQjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/column/index.tsx
30
+ var column_exports = {};
31
+ __export(column_exports, {
32
+ default: () => column_default
33
+ });
34
+ module.exports = __toCommonJS(column_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_plots = require("@ant-design/plots");
37
+ var Column = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_plots.Column,
40
+ {
41
+ key: `${props.width}-${props.height}-${props.autoFit}`,
42
+ style: { flex: 1 },
43
+ ...props
44
+ }
45
+ );
46
+ };
47
+ var column_default = Column;
package/lib/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import Line from "./line";
2
+ import Pie from "./pie";
3
+ import Bar from "./bar";
4
+ import Area from "./area";
5
+ import Column from "./column";
6
+ export { Line, Pie, Bar, Area, Column };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,51 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/index.ts
30
+ var src_exports = {};
31
+ __export(src_exports, {
32
+ Area: () => import_area.default,
33
+ Bar: () => import_bar.default,
34
+ Column: () => import_column.default,
35
+ Line: () => import_line.default,
36
+ Pie: () => import_pie.default
37
+ });
38
+ module.exports = __toCommonJS(src_exports);
39
+ var import_line = __toESM(require("./line"));
40
+ var import_pie = __toESM(require("./pie"));
41
+ var import_bar = __toESM(require("./bar"));
42
+ var import_area = __toESM(require("./area"));
43
+ var import_column = __toESM(require("./column"));
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ Area,
47
+ Bar,
48
+ Column,
49
+ Line,
50
+ Pie
51
+ });
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Line as AntLine } from "@ant-design/plots";
3
+ declare type AntLineProps = typeof AntLine;
4
+ export interface LineProps extends React.ComponentProps<AntLineProps> {
5
+ }
6
+ declare const Line: (props: LineProps) => JSX.Element;
7
+ export default Line;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,aAAK,YAAY,GAAG,OAAO,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC;CAAG;AAExE,QAAA,MAAM,IAAI,UAAW,SAAS,gBAQ7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/line/index.tsx
30
+ var line_exports = {};
31
+ __export(line_exports, {
32
+ default: () => line_default
33
+ });
34
+ module.exports = __toCommonJS(line_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_plots = require("@ant-design/plots");
37
+ var Line = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_plots.Line,
40
+ {
41
+ key: `${props.width}-${props.height}-${props.autoFit}`,
42
+ style: { flex: 1 },
43
+ ...props
44
+ }
45
+ );
46
+ };
47
+ var line_default = Line;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Pie as AntPie } from "@ant-design/plots";
3
+ declare type AntPieProps = typeof AntPie;
4
+ export interface PieProps extends React.ComponentProps<AntPieProps> {
5
+ }
6
+ declare const Pie: (props: PieProps) => JSX.Element;
7
+ export default Pie;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAElD,aAAK,WAAW,GAAG,OAAO,MAAM,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAEtE,QAAA,MAAM,GAAG,UAAW,QAAQ,gBAQ3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,47 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/pie/index.tsx
30
+ var pie_exports = {};
31
+ __export(pie_exports, {
32
+ default: () => pie_default
33
+ });
34
+ module.exports = __toCommonJS(pie_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_plots = require("@ant-design/plots");
37
+ var Pie = (props) => {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_plots.Pie,
40
+ {
41
+ key: `${props.width}-${props.height}-${props.autoFit}`,
42
+ style: { flex: 1 },
43
+ ...props
44
+ }
45
+ );
46
+ };
47
+ var pie_default = Pie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/charts-materials",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "react-resizable": "^3.0.5",
52
52
  "styled-components": "^6.0.0-rc.3",
53
53
  "ahooks": "^3.7.6",
54
- "@pisell/utils": "1.0.4",
54
+ "@pisell/utils": "1.0.5",
55
55
  "@pisell/icon": "0.0.8"
56
56
  },
57
57
  "peerDependencies": {