@codeplex-sac/graficos 0.0.16
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/index.cjs +174 -0
- package/index.d.ts +5 -0
- package/index.js +27375 -0
- package/lib/area-chart.d.ts +11 -0
- package/lib/area-chart.stories.d.ts +8 -0
- package/lib/bar-chart.d.ts +8 -0
- package/lib/bar-chart.stories.d.ts +7 -0
- package/lib/donut-chart.d.ts +12 -0
- package/lib/donut-chart.stories.d.ts +9 -0
- package/lib/line-chart.d.ts +8 -0
- package/lib/line-chart.stories.d.ts +7 -0
- package/lib/pie-chart.d.ts +8 -0
- package/lib/pie-chart.stories.d.ts +7 -0
- package/package.json +25 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
2
|
+
export interface CodeplexAreaChartProps extends Omit<LineChartProps, 'series'> {
|
|
3
|
+
titulo?: string;
|
|
4
|
+
subtitulo?: string;
|
|
5
|
+
conPapel?: boolean;
|
|
6
|
+
alto?: number;
|
|
7
|
+
series: (LineChartProps['series'][number] & {
|
|
8
|
+
area?: boolean;
|
|
9
|
+
})[];
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeplexAreaChart: ({ titulo, subtitulo, conPapel, alto, sx, series, ...props }: CodeplexAreaChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeplexAreaChart } from './area-chart';
|
|
3
|
+
declare const meta: Meta<typeof CodeplexAreaChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CodeplexAreaChart>;
|
|
6
|
+
export declare const Basico: Story;
|
|
7
|
+
export declare const MultiplesSeries: Story;
|
|
8
|
+
export declare const SinPapel: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
2
|
+
export interface CodeplexBarChartProps extends BarChartProps {
|
|
3
|
+
titulo?: string;
|
|
4
|
+
subtitulo?: string;
|
|
5
|
+
conPapel?: boolean;
|
|
6
|
+
alto?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const CodeplexBarChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexBarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeplexBarChart } from './bar-chart';
|
|
3
|
+
declare const meta: Meta<typeof CodeplexBarChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CodeplexBarChart>;
|
|
6
|
+
export declare const Basico: Story;
|
|
7
|
+
export declare const Comparativo: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PieChartProps } from '@mui/x-charts/PieChart';
|
|
2
|
+
export interface CodeplexDonutChartProps extends PieChartProps {
|
|
3
|
+
titulo?: string;
|
|
4
|
+
subtitulo?: string;
|
|
5
|
+
conPapel?: boolean;
|
|
6
|
+
alto?: number;
|
|
7
|
+
radioInterior?: number;
|
|
8
|
+
etiquetaCentral?: string;
|
|
9
|
+
valorCentral?: string | number;
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeplexDonutChart: ({ titulo, subtitulo, conPapel, alto, radioInterior, etiquetaCentral, valorCentral, sx, series, ...props }: CodeplexDonutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const CodeplexGraficoPastelDonut: ({ titulo, subtitulo, conPapel, alto, radioInterior, etiquetaCentral, valorCentral, sx, series, ...props }: CodeplexDonutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeplexDonutChart } from './donut-chart';
|
|
3
|
+
declare const meta: Meta<typeof CodeplexDonutChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CodeplexDonutChart>;
|
|
6
|
+
export declare const Basico: Story;
|
|
7
|
+
export declare const ConEtiquetaCentral: Story;
|
|
8
|
+
export declare const RadioGrande: Story;
|
|
9
|
+
export declare const SinPapel: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
2
|
+
export interface CodeplexLineChartProps extends LineChartProps {
|
|
3
|
+
titulo?: string;
|
|
4
|
+
subtitulo?: string;
|
|
5
|
+
conPapel?: boolean;
|
|
6
|
+
alto?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const CodeplexLineChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexLineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeplexLineChart } from './line-chart';
|
|
3
|
+
declare const meta: Meta<typeof CodeplexLineChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CodeplexLineChart>;
|
|
6
|
+
export declare const Basico: Story;
|
|
7
|
+
export declare const UnicoSerie: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PieChartProps } from '@mui/x-charts/PieChart';
|
|
2
|
+
export interface CodeplexPieChartProps extends PieChartProps {
|
|
3
|
+
titulo?: string;
|
|
4
|
+
subtitulo?: string;
|
|
5
|
+
conPapel?: boolean;
|
|
6
|
+
alto?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const CodeplexPieChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexPieChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeplexPieChart } from './pie-chart';
|
|
3
|
+
declare const meta: Meta<typeof CodeplexPieChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CodeplexPieChart>;
|
|
6
|
+
export declare const Basico: Story;
|
|
7
|
+
export declare const Donut: Story;
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codeplex-sac/graficos",
|
|
3
|
+
"version": "0.0.16",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"import": "./index.js",
|
|
12
|
+
"require": "./index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": "^19.0.0",
|
|
20
|
+
"react-dom": "^19.0.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@mui/x-charts": "^8.23.0"
|
|
24
|
+
}
|
|
25
|
+
}
|