@pisell/charts-materials 1.0.61 → 1.0.62

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.
Files changed (43) hide show
  1. package/README.md +2 -2
  2. package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
  3. package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
  4. package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
  5. package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
  6. package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +12 -0
  7. package/es/area/index.d.ts +10 -7
  8. package/es/area/index.js +11 -15
  9. package/es/bar/index.d.ts +10 -7
  10. package/es/bar/index.js +11 -15
  11. package/es/column/index.d.ts +10 -7
  12. package/es/column/index.js +11 -15
  13. package/es/index.d.ts +6 -6
  14. package/es/index.js +7 -6
  15. package/es/line/index.d.ts +12 -8
  16. package/es/line/index.js +16 -26
  17. package/es/pie/index.d.ts +10 -7
  18. package/es/pie/index.js +11 -15
  19. package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
  20. package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
  21. package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
  22. package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
  23. package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +18 -0
  24. package/lib/_virtual/rolldown_runtime.js +29 -0
  25. package/lib/area/index.d.ts +10 -7
  26. package/lib/area/index.js +12 -44
  27. package/lib/bar/index.d.ts +10 -7
  28. package/lib/bar/index.js +12 -44
  29. package/lib/column/index.d.ts +10 -7
  30. package/lib/column/index.js +12 -44
  31. package/lib/index.d.ts +6 -6
  32. package/lib/index.js +10 -50
  33. package/lib/line/index.d.ts +12 -8
  34. package/lib/line/index.js +18 -54
  35. package/lib/pie/index.d.ts +10 -7
  36. package/lib/pie/index.js +12 -44
  37. package/lowcode/area/meta.ts +135 -135
  38. package/lowcode/bar/meta.ts +154 -154
  39. package/lowcode/column/meta.ts +154 -154
  40. package/lowcode/common/chartWrap.ts +25 -25
  41. package/lowcode/line/meta.ts +157 -157
  42. package/lowcode/pie/meta.ts +259 -259
  43. package/package.json +2 -2
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @pisell/charts-materials
2
-
1
+ # @pisell/charts-materials
2
+
3
3
  pisell图表物料
@@ -0,0 +1,14 @@
1
+ import { toPropertyKey } from "./toPropertyKey.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/defineProperty.js
4
+ function _defineProperty(e, r, t) {
5
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
+ value: t,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : e[r] = t, e;
11
+ }
12
+
13
+ //#endregion
14
+ export { _defineProperty };
@@ -0,0 +1,27 @@
1
+ import { _defineProperty } from "./defineProperty.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/objectSpread2.js
4
+ function ownKeys(e, r) {
5
+ var t = Object.keys(e);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var o = Object.getOwnPropertySymbols(e);
8
+ r && (o = o.filter(function(r$1) {
9
+ return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
10
+ })), t.push.apply(t, o);
11
+ }
12
+ return t;
13
+ }
14
+ function _objectSpread2(e) {
15
+ for (var r = 1; r < arguments.length; r++) {
16
+ var t = null != arguments[r] ? arguments[r] : {};
17
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
18
+ _defineProperty(e, r$1, t[r$1]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
20
+ Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
21
+ });
22
+ }
23
+ return e;
24
+ }
25
+
26
+ //#endregion
27
+ export { _objectSpread2 };
@@ -0,0 +1,16 @@
1
+ import { _typeof } from "./typeof.js";
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/toPrimitive.js
4
+ function toPrimitive(t, r) {
5
+ if ("object" != _typeof(t) || !t) return t;
6
+ var e = t[Symbol.toPrimitive];
7
+ if (void 0 !== e) {
8
+ var i = e.call(t, r || "default");
9
+ if ("object" != _typeof(i)) return i;
10
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11
+ }
12
+ return ("string" === r ? String : Number)(t);
13
+ }
14
+
15
+ //#endregion
16
+ export { toPrimitive };
@@ -0,0 +1,11 @@
1
+ import { _typeof } from "./typeof.js";
2
+ import { toPrimitive } from "./toPrimitive.js";
3
+
4
+ //#region \0@oxc-project+runtime@0.108.0/helpers/toPropertyKey.js
5
+ function toPropertyKey(t) {
6
+ var i = toPrimitive(t, "string");
7
+ return "symbol" == _typeof(i) ? i : i + "";
8
+ }
9
+
10
+ //#endregion
11
+ export { toPropertyKey };
@@ -0,0 +1,12 @@
1
+ //#region \0@oxc-project+runtime@0.108.0/helpers/typeof.js
2
+ function _typeof(o) {
3
+ "@babel/helpers - typeof";
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
5
+ return typeof o$1;
6
+ } : function(o$1) {
7
+ return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ //#endregion
12
+ export { _typeof };
@@ -1,7 +1,10 @@
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;
1
+ import React from "react";
2
+ import { Area as Area$1 } from "@ant-design/plots";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/area/index.d.ts
6
+ type AntAreaProps = typeof Area$1;
7
+ interface AreaProps extends React.ComponentProps<AntAreaProps> {}
8
+ declare const Area: (props: AreaProps) => react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ export { AreaProps, Area as default };
package/es/area/index.js CHANGED
@@ -1,17 +1,13 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
7
2
  import React from "react";
8
- import { Area as AntArea } from "@ant-design/plots";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- var Area = function Area(props) {
11
- return /*#__PURE__*/_jsx(AntArea, _objectSpread({
12
- style: {
13
- flex: 1
14
- }
15
- }, props), "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit));
3
+ import { Area } from "@ant-design/plots";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/area/index.tsx
7
+ const Area$1 = (props) => {
8
+ return /* @__PURE__ */ jsx(Area, _objectSpread2({ style: { flex: 1 } }, props), `${props.width}-${props.height}-${props.autoFit}`);
16
9
  };
17
- export default Area;
10
+ var area_default = Area$1;
11
+
12
+ //#endregion
13
+ export { area_default as default };
package/es/bar/index.d.ts CHANGED
@@ -1,7 +1,10 @@
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;
1
+ import React from "react";
2
+ import { Bar as Bar$1 } from "@ant-design/plots";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/bar/index.d.ts
6
+ type AntBarProps = typeof Bar$1;
7
+ interface BarProps extends React.ComponentProps<AntBarProps> {}
8
+ declare const Bar: (props: BarProps) => react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ export { BarProps, Bar as default };
package/es/bar/index.js CHANGED
@@ -1,17 +1,13 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
7
2
  import React from "react";
8
- import { Bar as AntBar } from "@ant-design/plots";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- var Bar = function Bar(props) {
11
- return /*#__PURE__*/_jsx(AntBar, _objectSpread({
12
- style: {
13
- flex: 1
14
- }
15
- }, props), "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit));
3
+ import { Bar } from "@ant-design/plots";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/bar/index.tsx
7
+ const Bar$1 = (props) => {
8
+ return /* @__PURE__ */ jsx(Bar, _objectSpread2({ style: { flex: 1 } }, props), `${props.width}-${props.height}-${props.autoFit}`);
16
9
  };
17
- export default Bar;
10
+ var bar_default = Bar$1;
11
+
12
+ //#endregion
13
+ export { bar_default as default };
@@ -1,7 +1,10 @@
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;
1
+ import React from "react";
2
+ import { Column as Column$1 } from "@ant-design/plots";
3
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
4
+
5
+ //#region src/column/index.d.ts
6
+ type AntColumnProps = typeof Column$1;
7
+ interface ColumnProps extends React.ComponentProps<AntColumnProps> {}
8
+ declare const Column: (props: ColumnProps) => react_jsx_runtime3.JSX.Element;
9
+ //#endregion
10
+ export { ColumnProps, Column as default };
@@ -1,17 +1,13 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
7
2
  import React from "react";
8
- import { Column as AntColumn } from "@ant-design/plots";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- var Column = function Column(props) {
11
- return /*#__PURE__*/_jsx(AntColumn, _objectSpread({
12
- style: {
13
- flex: 1
14
- }
15
- }, props), "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit));
3
+ import { Column } from "@ant-design/plots";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/column/index.tsx
7
+ const Column$1 = (props) => {
8
+ return /* @__PURE__ */ jsx(Column, _objectSpread2({ style: { flex: 1 } }, props), `${props.width}-${props.height}-${props.autoFit}`);
16
9
  };
17
- export default Column;
10
+ var column_default = Column$1;
11
+
12
+ //#endregion
13
+ export { column_default as default };
package/es/index.d.ts CHANGED
@@ -1,6 +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 };
1
+ import Area from "./area/index.js";
2
+ import Bar from "./bar/index.js";
3
+ import Column from "./column/index.js";
4
+ import Line from "./line/index.js";
5
+ import Pie from "./pie/index.js";
6
+ export { Area, Bar, Column, Line, Pie };
package/es/index.js CHANGED
@@ -1,6 +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 };
1
+ import line_default from "./line/index.js";
2
+ import pie_default from "./pie/index.js";
3
+ import bar_default from "./bar/index.js";
4
+ import area_default from "./area/index.js";
5
+ import column_default from "./column/index.js";
6
+
7
+ export { area_default as Area, bar_default as Bar, column_default as Column, line_default as Line, pie_default as Pie };
@@ -1,8 +1,12 @@
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
- others: any;
6
- }
7
- declare const Line: (props: LineProps) => JSX.Element;
8
- export default Line;
1
+ import React from "react";
2
+ import { Line as Line$1 } from "@ant-design/plots";
3
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
4
+
5
+ //#region src/line/index.d.ts
6
+ type AntLineProps = typeof Line$1;
7
+ interface LineProps extends React.ComponentProps<AntLineProps> {
8
+ others: any;
9
+ }
10
+ declare const Line: (props: LineProps) => react_jsx_runtime1.JSX.Element;
11
+ //#endregion
12
+ export { LineProps, Line as default };
package/es/line/index.js CHANGED
@@ -1,29 +1,19 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
7
2
  import React, { useMemo } from "react";
8
- import { Line as AntLine } from "@ant-design/plots";
3
+ import { Line } from "@ant-design/plots";
9
4
  import { isArr } from "@pisell/utils";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- var Line = function Line(props) {
12
- var color = props.color,
13
- _props$others = props.others,
14
- others = _props$others === void 0 ? {} : _props$others;
15
- var _color = useMemo(function () {
16
- if (isArr(color)) {
17
- return color.filter(Boolean);
18
- }
19
- return color;
20
- }, [color]);
21
- return /*#__PURE__*/_jsx(AntLine, _objectSpread(_objectSpread(_objectSpread({
22
- style: {
23
- flex: 1
24
- }
25
- }, props), others), {}, {
26
- color: _color
27
- }), "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit));
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/line/index.tsx
8
+ const Line$1 = (props) => {
9
+ const { color, others = {} } = props;
10
+ const _color = useMemo(() => {
11
+ if (isArr(color)) return color.filter(Boolean);
12
+ return color;
13
+ }, [color]);
14
+ return /* @__PURE__ */ jsx(Line, _objectSpread2(_objectSpread2(_objectSpread2({ style: { flex: 1 } }, props), others), {}, { color: _color }), `${props.width}-${props.height}-${props.autoFit}`);
28
15
  };
29
- export default Line;
16
+ var line_default = Line$1;
17
+
18
+ //#endregion
19
+ export { line_default as default };
package/es/pie/index.d.ts CHANGED
@@ -1,7 +1,10 @@
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;
1
+ import React from "react";
2
+ import { Pie as Pie$1 } from "@ant-design/plots";
3
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
4
+
5
+ //#region src/pie/index.d.ts
6
+ type AntPieProps = typeof Pie$1;
7
+ interface PieProps extends React.ComponentProps<AntPieProps> {}
8
+ declare const Pie: (props: PieProps) => react_jsx_runtime2.JSX.Element;
9
+ //#endregion
10
+ export { PieProps, Pie as default };
package/es/pie/index.js CHANGED
@@ -1,17 +1,13 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
7
2
  import React from "react";
8
- import { Pie as AntPie } from "@ant-design/plots";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- var Pie = function Pie(props) {
11
- return /*#__PURE__*/_jsx(AntPie, _objectSpread({
12
- style: {
13
- flex: 1
14
- }
15
- }, props), "".concat(props.width, "-").concat(props.height, "-").concat(props.autoFit));
3
+ import { Pie } from "@ant-design/plots";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/pie/index.tsx
7
+ const Pie$1 = (props) => {
8
+ return /* @__PURE__ */ jsx(Pie, _objectSpread2({ style: { flex: 1 } }, props), `${props.width}-${props.height}-${props.autoFit}`);
16
9
  };
17
- export default Pie;
10
+ var pie_default = Pie$1;
11
+
12
+ //#endregion
13
+ export { pie_default as default };
@@ -0,0 +1,14 @@
1
+ const require_toPropertyKey = require('./toPropertyKey.js');
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/defineProperty.js
4
+ function _defineProperty(e, r, t) {
5
+ return (r = require_toPropertyKey.toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
+ value: t,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : e[r] = t, e;
11
+ }
12
+
13
+ //#endregion
14
+ exports._defineProperty = _defineProperty;
@@ -0,0 +1,27 @@
1
+ const require_defineProperty = require('./defineProperty.js');
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/objectSpread2.js
4
+ function ownKeys(e, r) {
5
+ var t = Object.keys(e);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var o = Object.getOwnPropertySymbols(e);
8
+ r && (o = o.filter(function(r$1) {
9
+ return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
10
+ })), t.push.apply(t, o);
11
+ }
12
+ return t;
13
+ }
14
+ function _objectSpread2(e) {
15
+ for (var r = 1; r < arguments.length; r++) {
16
+ var t = null != arguments[r] ? arguments[r] : {};
17
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
18
+ require_defineProperty._defineProperty(e, r$1, t[r$1]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
20
+ Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
21
+ });
22
+ }
23
+ return e;
24
+ }
25
+
26
+ //#endregion
27
+ exports._objectSpread2 = _objectSpread2;
@@ -0,0 +1,16 @@
1
+ const require_typeof = require('./typeof.js');
2
+
3
+ //#region \0@oxc-project+runtime@0.108.0/helpers/toPrimitive.js
4
+ function toPrimitive(t, r) {
5
+ if ("object" != require_typeof._typeof(t) || !t) return t;
6
+ var e = t[Symbol.toPrimitive];
7
+ if (void 0 !== e) {
8
+ var i = e.call(t, r || "default");
9
+ if ("object" != require_typeof._typeof(i)) return i;
10
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11
+ }
12
+ return ("string" === r ? String : Number)(t);
13
+ }
14
+
15
+ //#endregion
16
+ exports.toPrimitive = toPrimitive;
@@ -0,0 +1,11 @@
1
+ const require_typeof = require('./typeof.js');
2
+ const require_toPrimitive = require('./toPrimitive.js');
3
+
4
+ //#region \0@oxc-project+runtime@0.108.0/helpers/toPropertyKey.js
5
+ function toPropertyKey(t) {
6
+ var i = require_toPrimitive.toPrimitive(t, "string");
7
+ return "symbol" == require_typeof._typeof(i) ? i : i + "";
8
+ }
9
+
10
+ //#endregion
11
+ exports.toPropertyKey = toPropertyKey;
@@ -0,0 +1,18 @@
1
+
2
+ //#region \0@oxc-project+runtime@0.108.0/helpers/typeof.js
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
6
+ return typeof o$1;
7
+ } : function(o$1) {
8
+ return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
9
+ }, _typeof(o);
10
+ }
11
+
12
+ //#endregion
13
+ Object.defineProperty(exports, '_typeof', {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _typeof;
17
+ }
18
+ });
@@ -0,0 +1,29 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+
29
+ exports.__toESM = __toESM;
@@ -1,7 +1,10 @@
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;
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Area as Area$1 } from "@ant-design/plots";
4
+
5
+ //#region src/area/index.d.ts
6
+ type AntAreaProps = typeof Area$1;
7
+ interface AreaProps extends React.ComponentProps<AntAreaProps> {}
8
+ declare const Area: (props: AreaProps) => react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ export { AreaProps, Area as default };
package/lib/area/index.js CHANGED
@@ -1,47 +1,15 @@
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);
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
2
+ const require_objectSpread2 = require('../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js');
3
+ let react = require("react");
4
+ react = require_rolldown_runtime.__toESM(react);
5
+ let _ant_design_plots = require("@ant-design/plots");
6
+ let react_jsx_runtime = require("react/jsx-runtime");
28
7
 
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
- );
8
+ //#region src/area/index.tsx
9
+ const Area = (props) => {
10
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ant_design_plots.Area, require_objectSpread2._objectSpread2({ style: { flex: 1 } }, props), `${props.width}-${props.height}-${props.autoFit}`);
46
11
  };
47
12
  var area_default = Area;
13
+
14
+ //#endregion
15
+ module.exports = area_default;
@@ -1,7 +1,10 @@
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;
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Bar as Bar$1 } from "@ant-design/plots";
4
+
5
+ //#region src/bar/index.d.ts
6
+ type AntBarProps = typeof Bar$1;
7
+ interface BarProps extends React.ComponentProps<AntBarProps> {}
8
+ declare const Bar: (props: BarProps) => react_jsx_runtime0.JSX.Element;
9
+ //#endregion
10
+ export { BarProps, Bar as default };