@mich8060/unified-design-system 0.2.20 → 0.2.21

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,4 +1,4 @@
1
- :root {
1
+ *,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}:root {
2
2
  --system-color-black: #111111;
3
3
  --system-color-white: #ffffff;
4
4
  --system-color-transparent: rgba(255, 255, 255, 0.0099999998);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mich8060/unified-design-system",
3
3
  "private": false,
4
- "version": "0.2.20",
4
+ "version": "0.2.21",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
@@ -312,12 +312,6 @@
312
312
  "require": "./dist/components/Tabs/Tabs.cjs",
313
313
  "default": "./dist/components/Tabs/Tabs.js"
314
314
  },
315
- "./charts-bizcharts": {
316
- "types": "./dist/design-system/charts/index.d.ts",
317
- "import": "./dist/charts-bizcharts/index.js",
318
- "require": "./dist/charts-bizcharts/index.cjs",
319
- "default": "./dist/charts-bizcharts/index.js"
320
- },
321
315
  "./Tag": {
322
316
  "types": "./dist/design-system/components/Tag/Tag.d.ts",
323
317
  "import": "./dist/components/Tag/Tag.js",
@@ -445,7 +439,10 @@
445
439
  "README.md",
446
440
  "LICENSE"
447
441
  ],
448
- "sideEffects": false,
442
+ "sideEffects": [
443
+ "**/*.css",
444
+ "**/*.scss"
445
+ ],
449
446
  "scripts": {
450
447
  "dev": "vite --configLoader native",
451
448
  "dev:preact": "UDS_USE_PREACT_COMPAT=1 vite --configLoader native",
@@ -480,7 +477,6 @@
480
477
  "sass:watch": "sass --watch src/design-system:src/design-system"
481
478
  },
482
479
  "dependencies": {
483
- "bizcharts": "^4.1.23",
484
480
  "prismjs": "^1.30.0"
485
481
  },
486
482
  "peerDependencies": {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),r=require("bizcharts"),l={width:"100%"};function p({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Line,{position:`${e}*${n}`,color:s}),t.jsx(r.Point,{position:`${e}*${n}`,color:s})]})}const d=c.memo(p);function S({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:`${e}*${n}`,color:s})]})}const D=c.memo(S);function m({data:o,angleField:e="value",colorField:n="type",height:s=320,autoFit:a=!0,className:i,style:h}){return t.jsxs(r.Chart,{data:o,autoFit:a,height:s,className:i,style:{...l,...h},children:[t.jsx(r.Coordinate,{type:"theta",radius:.85}),t.jsx(r.Tooltip,{showTitle:!1}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:e,color:n,adjust:"stack"})]})}const U=c.memo(m);function y({data:o,angleField:e="value",colorField:n="type",height:s=320,autoFit:a=!0,className:i,style:h}){return t.jsxs(r.Chart,{data:o,autoFit:a,height:s,className:i,style:{...l,...h},children:[t.jsx(r.Coordinate,{type:"theta",radius:.85,innerRadius:.62}),t.jsx(r.Tooltip,{showTitle:!1}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:e,color:n,adjust:"stack"})]})}const $=c.memo(y);function g({data:o,xField:e="x",yField:n="y",colorField:s,sizeField:a,height:i=320,autoFit:h=!0,className:u,style:j}){const x=`${e}*${n}`;return t.jsxs(r.Chart,{data:o,autoFit:h,height:i,className:u,style:{...l,...j},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Point,{position:x,color:s,size:a,shape:"circle"})]})}const C=c.memo(g);function f(o){return t.jsx(C,{...o})}function L({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Coordinate,{type:"polar",radius:.8}),t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Line,{position:`${e}*${n}`,color:s}),t.jsx(r.Point,{position:`${e}*${n}`,color:s})]})}const P=c.memo(L);function T({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Coordinate,{type:"polar",radius:.8}),t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Polygon,{position:`${e}*${n}`,color:s})]})}const b=c.memo(T);exports.UDSBarChart=D;exports.UDSBubbleChart=f;exports.UDSDoughnutChart=$;exports.UDSLineChart=d;exports.UDSPieChart=U;exports.UDSPolarAreaChart=b;exports.UDSRadarChart=P;exports.UDSScatterChart=C;
@@ -1 +0,0 @@
1
- import{jsx as t,jsxs as c}from"react/jsx-runtime";import{memo as h}from"react";import{Chart as l,Tooltip as p,Legend as C,Interval as S,Coordinate as y,Line as m,Point as D,Polygon as $}from"bizcharts";const d={width:"100%"};function x({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(p,{shared:!0}),t(C,{}),t(m,{position:`${o}*${n}`,color:e}),t(D,{position:`${o}*${n}`,color:e})]})}const k=h(x);function P({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(p,{shared:!0}),t(C,{}),t(S,{position:`${o}*${n}`,color:e})]})}const A=h(P);function g({data:r,angleField:o="value",colorField:n="type",height:e=320,autoFit:a=!0,className:i,style:s}){return c(l,{data:r,autoFit:a,height:e,className:i,style:{...d,...s},children:[t(y,{type:"theta",radius:.85}),t(p,{showTitle:!1}),t(C,{}),t(S,{position:o,color:n,adjust:"stack"})]})}const z=h(g);function j({data:r,angleField:o="value",colorField:n="type",height:e=320,autoFit:a=!0,className:i,style:s}){return c(l,{data:r,autoFit:a,height:e,className:i,style:{...d,...s},children:[t(y,{type:"theta",radius:.85,innerRadius:.62}),t(p,{showTitle:!1}),t(C,{}),t(S,{position:o,color:n,adjust:"stack"})]})}const I=h(j);function L({data:r,xField:o="x",yField:n="y",colorField:e,sizeField:a,height:i=320,autoFit:s=!0,className:u,style:U}){const f=`${o}*${n}`;return c(l,{data:r,autoFit:s,height:i,className:u,style:{...d,...U},children:[t(p,{shared:!0}),t(C,{}),t(D,{position:f,color:e,size:a,shape:"circle"})]})}const v=h(L);function q(r){return t(v,{...r})}function w({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(y,{type:"polar",radius:.8}),t(p,{shared:!0}),t(C,{}),t(m,{position:`${o}*${n}`,color:e}),t(D,{position:`${o}*${n}`,color:e})]})}const E=h(w);function B({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(y,{type:"polar",radius:.8}),t(p,{shared:!0}),t(C,{}),t($,{position:`${o}*${n}`,color:e})]})}const G=h(B);export{A as UDSBarChart,q as UDSBubbleChart,I as UDSDoughnutChart,k as UDSLineChart,z as UDSPieChart,G as UDSPolarAreaChart,E as UDSRadarChart,v as UDSScatterChart};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../charts/BizChartsAdapters.cjs");exports.UDSBarChart=r.UDSBarChart;exports.UDSBubbleChart=r.UDSBubbleChart;exports.UDSDoughnutChart=r.UDSDoughnutChart;exports.UDSLineChart=r.UDSLineChart;exports.UDSPieChart=r.UDSPieChart;exports.UDSPolarAreaChart=r.UDSPolarAreaChart;exports.UDSRadarChart=r.UDSRadarChart;exports.UDSScatterChart=r.UDSScatterChart;
@@ -1 +0,0 @@
1
- import{UDSBarChart as t,UDSBubbleChart as h,UDSDoughnutChart as D,UDSLineChart as S,UDSPieChart as C,UDSPolarAreaChart as U,UDSRadarChart as e,UDSScatterChart as o}from"../charts/BizChartsAdapters.js";export{t as UDSBarChart,h as UDSBubbleChart,D as UDSDoughnutChart,S as UDSLineChart,C as UDSPieChart,U as UDSPolarAreaChart,e as UDSRadarChart,o as UDSScatterChart};
@@ -1,40 +0,0 @@
1
- import { type CSSProperties } from "react";
2
- type ChartDatum = Record<string, string | number>;
3
- interface BaseChartProps {
4
- data: ChartDatum[];
5
- height?: number;
6
- autoFit?: boolean;
7
- className?: string;
8
- style?: CSSProperties;
9
- }
10
- interface CartesianChartProps extends BaseChartProps {
11
- xField?: string;
12
- yField?: string;
13
- seriesField?: string;
14
- }
15
- interface PieChartProps extends BaseChartProps {
16
- angleField?: string;
17
- colorField?: string;
18
- }
19
- interface ScatterChartProps extends BaseChartProps {
20
- xField?: string;
21
- yField?: string;
22
- colorField?: string;
23
- sizeField?: string;
24
- }
25
- declare function UDSLineChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
26
- export declare const UDSLineChart: import("react").MemoExoticComponent<typeof UDSLineChartComponent>;
27
- declare function UDSBarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
28
- export declare const UDSBarChart: import("react").MemoExoticComponent<typeof UDSBarChartComponent>;
29
- declare function UDSPieChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
30
- export declare const UDSPieChart: import("react").MemoExoticComponent<typeof UDSPieChartComponent>;
31
- declare function UDSDoughnutChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
32
- export declare const UDSDoughnutChart: import("react").MemoExoticComponent<typeof UDSDoughnutChartComponent>;
33
- declare function UDSScatterChartComponent({ data, xField, yField, colorField, sizeField, height, autoFit, className, style, }: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
34
- export declare const UDSScatterChart: import("react").MemoExoticComponent<typeof UDSScatterChartComponent>;
35
- export declare function UDSBubbleChart(props: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
36
- declare function UDSRadarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
37
- export declare const UDSRadarChart: import("react").MemoExoticComponent<typeof UDSRadarChartComponent>;
38
- declare function UDSPolarAreaChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
39
- export declare const UDSPolarAreaChart: import("react").MemoExoticComponent<typeof UDSPolarAreaChartComponent>;
40
- export {};
@@ -1 +0,0 @@
1
- export { UDSBarChart, UDSBubbleChart, UDSDoughnutChart, UDSLineChart, UDSPieChart, UDSPolarAreaChart, UDSRadarChart, UDSScatterChart, } from "./BizChartsAdapters";