@mbao01/common 0.0.44 → 0.0.46
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/dist/types/components/Chart/Chart.d.ts +2 -0
- package/dist/types/components/Chart/ChartContext.d.ts +2 -0
- package/dist/types/components/Chart/components/ChartLegend.d.ts +4 -0
- package/dist/types/components/Chart/components/ChartStyle.d.ts +2 -0
- package/dist/types/components/Chart/components/ChartTooltip.d.ts +4 -0
- package/dist/types/components/Chart/components/index.d.ts +3 -0
- package/dist/types/components/Chart/constants.d.ts +22 -0
- package/dist/types/components/Chart/helpers.d.ts +11 -0
- package/dist/types/components/Chart/hooks/index.d.ts +1 -0
- package/dist/types/components/Chart/hooks/useChart/index.d.ts +1 -0
- package/dist/types/components/Chart/hooks/useChart/useChart.d.ts +1 -0
- package/dist/types/components/Chart/index.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/activeShapeArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/animationArgs.d.ts +12 -0
- package/dist/types/components/Chart/stories/args/areaArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/areaChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/barArgs.d.ts +5 -0
- package/dist/types/components/Chart/stories/args/barChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/cartesianChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/cartesianSharedArgs.d.ts +11 -0
- package/dist/types/components/Chart/stories/args/chartArgs.d.ts +6 -0
- package/dist/types/components/Chart/stories/args/dotArgs.d.ts +10 -0
- package/dist/types/components/Chart/stories/args/events.d.ts +804 -0
- package/dist/types/components/Chart/stories/args/labelListArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/legendArgs.d.ts +3 -0
- package/dist/types/components/Chart/stories/args/lineArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/lineChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/pieArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/pieChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/polarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/polarSharedArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radarArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radialBarArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/radialBarChartArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/rectangleArgs.d.ts +9 -0
- package/dist/types/components/Chart/stories/args/referenceSharedArgs.d.ts +4 -0
- package/dist/types/components/Chart/stories/args/sectorArgs.d.ts +7 -0
- package/dist/types/components/Chart/stories/args/sharedAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/stylesArgs.d.ts +6 -0
- package/dist/types/components/Chart/stories/args/textArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/tooltipArgs.d.ts +4 -0
- package/dist/types/components/Chart/stories/args/types.d.ts +13 -0
- package/dist/types/components/Chart/stories/args/xAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/args/yAxisArgs.d.ts +2 -0
- package/dist/types/components/Chart/stories/examples/AreaChart.d.ts +16 -0
- package/dist/types/components/Chart/stories/examples/BarChart.d.ts +20 -0
- package/dist/types/components/Chart/stories/examples/LineChart.d.ts +16 -0
- package/dist/types/components/Chart/stories/examples/PieChart.d.ts +19 -0
- package/dist/types/components/Chart/stories/examples/RadarChart.d.ts +24 -0
- package/dist/types/components/Chart/stories/examples/RadialChart.d.ts +17 -0
- package/dist/types/components/Chart/stories/examples/Tooltip.d.ts +15 -0
- package/dist/types/components/Chart/stories/helpers/index.d.ts +9 -0
- package/dist/types/components/Chart/types.d.ts +37 -0
- package/dist/types/components/DragAndDrop/Draggable/Draggable.d.ts +29 -0
- package/dist/types/components/DragAndDrop/Draggable/Draggable.example.d.ts +24 -0
- package/dist/types/components/DragAndDrop/Draggable/constants.d.ts +9 -0
- package/dist/types/components/DragAndDrop/Draggable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Draggable/types.d.ts +41 -0
- package/dist/types/components/DragAndDrop/Droppable/Droppable.d.ts +2 -0
- package/dist/types/components/DragAndDrop/Droppable/Droppable.example.d.ts +10 -0
- package/dist/types/components/DragAndDrop/Droppable/constants.d.ts +5 -0
- package/dist/types/components/DragAndDrop/Droppable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Droppable/types.d.ts +4 -0
- package/dist/types/components/DragAndDrop/Sortable/Sortable.d.ts +2 -0
- package/dist/types/components/DragAndDrop/Sortable/Sortable.example.d.ts +6 -0
- package/dist/types/components/DragAndDrop/Sortable/constants.d.ts +4 -0
- package/dist/types/components/DragAndDrop/Sortable/index.d.ts +1 -0
- package/dist/types/components/DragAndDrop/Sortable/types.d.ts +7 -0
- package/dist/types/components/DragAndDrop/index.d.ts +3 -0
- package/dist/types/components/Widget/InternalWidgetsContext.d.ts +2 -0
- package/dist/types/components/Widget/Widget.d.ts +2 -0
- package/dist/types/components/Widget/Widgets.example.d.ts +1 -0
- package/dist/types/components/Widget/WidgetsContext.d.ts +2 -0
- package/dist/types/components/Widget/hooks/index.d.ts +2 -0
- package/dist/types/components/Widget/hooks/useWidget/index.d.ts +1 -0
- package/dist/types/components/Widget/hooks/useWidget/useWidget.d.ts +7 -0
- package/dist/types/components/Widget/hooks/useWidgets/index.d.ts +1 -0
- package/dist/types/components/Widget/hooks/useWidgets/useWidgets.d.ts +1 -0
- package/dist/types/components/Widget/index.d.ts +3 -0
- package/dist/types/components/Widget/modifiers/index.d.ts +1 -0
- package/dist/types/components/Widget/modifiers/restrictToElement.d.ts +2 -0
- package/dist/types/components/Widget/types.d.ts +28 -0
- package/package.json +9 -3
- package/src/components/Chart/Chart.tsx +26 -0
- package/src/components/Chart/ChartContext.tsx +4 -0
- package/src/components/Chart/components/ChartLegend.tsx +52 -0
- package/src/components/Chart/components/ChartStyle.tsx +32 -0
- package/src/components/Chart/components/ChartTooltip.tsx +126 -0
- package/src/components/Chart/components/index.ts +3 -0
- package/src/components/Chart/constants.ts +78 -0
- package/src/components/Chart/helpers.ts +27 -0
- package/src/components/Chart/hooks/index.ts +1 -0
- package/src/components/Chart/hooks/useChart/index.ts +1 -0
- package/src/components/Chart/hooks/useChart/useChart.ts +12 -0
- package/src/components/Chart/index.ts +2 -0
- package/src/components/Chart/stories/args/activeShapeArgs.ts +34 -0
- package/src/components/Chart/stories/args/animationArgs.ts +67 -0
- package/src/components/Chart/stories/args/areaArgs.ts +16 -0
- package/src/components/Chart/stories/args/areaChartArgs.ts +19 -0
- package/src/components/Chart/stories/args/barArgs.ts +123 -0
- package/src/components/Chart/stories/args/barChartArgs.ts +65 -0
- package/src/components/Chart/stories/args/cartesianChartArgs.ts +42 -0
- package/src/components/Chart/stories/args/cartesianSharedArgs.ts +136 -0
- package/src/components/Chart/stories/args/chartArgs.ts +244 -0
- package/src/components/Chart/stories/args/dotArgs.ts +46 -0
- package/src/components/Chart/stories/args/events.ts +343 -0
- package/src/components/Chart/stories/args/index.ts +178 -0
- package/src/components/Chart/stories/args/labelListArgs.ts +124 -0
- package/src/components/Chart/stories/args/legendArgs.ts +205 -0
- package/src/components/Chart/stories/args/lineArgs.ts +87 -0
- package/src/components/Chart/stories/args/lineChartArgs.ts +17 -0
- package/src/components/Chart/stories/args/pieArgs.ts +18 -0
- package/src/components/Chart/stories/args/pieChartArgs.ts +7 -0
- package/src/components/Chart/stories/args/polarChartArgs.ts +86 -0
- package/src/components/Chart/stories/args/polarSharedArgs.ts +42 -0
- package/src/components/Chart/stories/args/radarArgs.ts +26 -0
- package/src/components/Chart/stories/args/radarChartArgs.ts +26 -0
- package/src/components/Chart/stories/args/radialBarArgs.ts +36 -0
- package/src/components/Chart/stories/args/radialBarChartArgs.ts +16 -0
- package/src/components/Chart/stories/args/rectangleArgs.ts +35 -0
- package/src/components/Chart/stories/args/referenceSharedArgs.ts +75 -0
- package/src/components/Chart/stories/args/sectorArgs.ts +106 -0
- package/src/components/Chart/stories/args/sharedAxisArgs.ts +332 -0
- package/src/components/Chart/stories/args/stylesArgs.ts +258 -0
- package/src/components/Chart/stories/args/textArgs.ts +97 -0
- package/src/components/Chart/stories/args/tooltipArgs.ts +41 -0
- package/src/components/Chart/stories/args/types.ts +23 -0
- package/src/components/Chart/stories/args/xAxisArgs.ts +109 -0
- package/src/components/Chart/stories/args/yAxisArgs.ts +73 -0
- package/src/components/Chart/stories/examples/AreaChart.tsx +156 -0
- package/src/components/Chart/stories/examples/BarChart.tsx +425 -0
- package/src/components/Chart/stories/examples/LineChart.tsx +144 -0
- package/src/components/Chart/stories/examples/PieChart.tsx +238 -0
- package/src/components/Chart/stories/examples/RadarChart.tsx +261 -0
- package/src/components/Chart/stories/examples/RadialChart.tsx +239 -0
- package/src/components/Chart/stories/examples/Tooltip.tsx +68 -0
- package/src/components/Chart/stories/helpers/index.tsx +75 -0
- package/src/components/Chart/types.ts +39 -0
- package/src/components/DragAndDrop/Draggable/Draggable.example.tsx +147 -0
- package/src/components/DragAndDrop/Draggable/Draggable.tsx +161 -0
- package/src/components/DragAndDrop/Draggable/constants.ts +47 -0
- package/src/components/DragAndDrop/Draggable/index.ts +1 -0
- package/src/components/DragAndDrop/Draggable/types.ts +56 -0
- package/src/components/DragAndDrop/Droppable/Droppable.example.tsx +86 -0
- package/src/components/DragAndDrop/Droppable/Droppable.tsx +38 -0
- package/src/components/DragAndDrop/Droppable/constants.ts +15 -0
- package/src/components/DragAndDrop/Droppable/index.ts +1 -0
- package/src/components/DragAndDrop/Droppable/types.ts +7 -0
- package/src/components/DragAndDrop/Sortable/Sortable.example.tsx +61 -0
- package/src/components/DragAndDrop/Sortable/Sortable.tsx +65 -0
- package/src/components/DragAndDrop/Sortable/constants.ts +12 -0
- package/src/components/DragAndDrop/Sortable/index.ts +1 -0
- package/src/components/DragAndDrop/Sortable/types.ts +11 -0
- package/src/components/DragAndDrop/index.ts +3 -0
- package/src/components/Widget/InternalWidgetsContext.tsx +4 -0
- package/src/components/Widget/Widget.tsx +17 -0
- package/src/components/Widget/Widgets.example.tsx +118 -0
- package/src/components/Widget/WidgetsContext.tsx +97 -0
- package/src/components/Widget/hooks/index.ts +2 -0
- package/src/components/Widget/hooks/useWidget/index.ts +1 -0
- package/src/components/Widget/hooks/useWidget/useWidget.ts +21 -0
- package/src/components/Widget/hooks/useWidgets/index.ts +1 -0
- package/src/components/Widget/hooks/useWidgets/useWidgets.ts +12 -0
- package/src/components/Widget/index.ts +3 -0
- package/src/components/Widget/modifiers/index.ts +1 -0
- package/src/components/Widget/modifiers/restrictToElement.ts +8 -0
- package/src/components/Widget/types.ts +30 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArgTypes } from '@storybook/react';
|
|
2
|
+
export declare const radius: ArgTypes[0];
|
|
3
|
+
export declare const isUpdateAnimationActive: ArgTypes[0];
|
|
4
|
+
/**
|
|
5
|
+
* Caveat: If any prop is added here, it would falsely be add to the documentation of the component
|
|
6
|
+
* where this group is used. If the group is to be extended, then only single props should be imported
|
|
7
|
+
* by each component that does not use all of them.
|
|
8
|
+
* */
|
|
9
|
+
export declare const rectangleArgs: ArgTypes;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ArgTypes } from '@storybook/react';
|
|
2
|
+
/**
|
|
3
|
+
* Caveat: If any prop is added here, it would falsely be add to the documentation of the component
|
|
4
|
+
* where this group is used. If the group is to be extended, then only single props should be imported
|
|
5
|
+
* by each component that does not use all of them.
|
|
6
|
+
* */
|
|
7
|
+
export declare const sectorArgs: ArgTypes;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Args, ArgTypes } from '@storybook/react';
|
|
2
|
+
export declare const hide: ArgTypes[0];
|
|
3
|
+
export declare const generalStyleArgs: ArgTypes;
|
|
4
|
+
export declare const labelDescription = "If false set, labels will not be drawn. If true set, labels will be drawn which have\nthe props calculated internally. If object set, labels will be drawn which have the props merged\nby the internal calculated props and the option. If ReactElement set, the option can be the custom\nlabel element. If set a function, the function will be called to render customized label.";
|
|
5
|
+
export declare const labelSummary = "boolean | Object | ReactElement | Function";
|
|
6
|
+
export declare const radialBarStyleArgs: Args;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type SVGKeys = Exclude<keyof SVGProps<SVGElement>, "type" | "fill" | "fillOpacity" | "stroke" | "strokeWidth" | "className">;
|
|
3
|
+
export type OmitSVGElement<T> = Omit<T, SVGKeys>;
|
|
4
|
+
export type Flatten<T> = NonNullable<{
|
|
5
|
+
[K in keyof T]: T[K] extends never ? never : {
|
|
6
|
+
[P in keyof T[K]]: T[K][P] extends never ? {
|
|
7
|
+
[Q in `${Exclude<K, symbol>} ${Exclude<P, symbol>}`]: never;
|
|
8
|
+
} : {
|
|
9
|
+
[Q in `${Exclude<K, symbol>} ${Exclude<P, symbol>}`]: T[K][P];
|
|
10
|
+
};
|
|
11
|
+
}[keyof T[K]];
|
|
12
|
+
}[keyof T]>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AreaChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The AreaChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The AreaChart can be used with the following child components: `<XAxis />`, `<YAxis />`, `<ReferenceArea />`, `<ReferenceDot />`, `<ReferenceArea />`,
|
|
10
|
+
* `<Brush />`, `<CartesianGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<Area />`, `<Customized />` or valid svg elements.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AreaChartExample: (props: Partial<AreaChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const StackedAreaChartExample: (props: Partial<AreaChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const StackedExpandedAreaChartExample: (props: Partial<AreaChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LabeledAreaChartExample: (props: Partial<AreaChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const WithLegendAreaChartExample: (props: Partial<AreaChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BarChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The BarChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The BarChart can be used with the following child components: `<XAxis />`, `<YAxis />`, `<ReferenceArea />`, `<ReferenceDot />`, `<ReferenceLine />`,
|
|
10
|
+
* `<Brush />`, `<CartesianGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<Bar />`, `<Customized />` or valid svg elements.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const MultipleBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const HorizontalBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LabelBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CustomLabelBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const MixedBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const StackedBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const ActiveBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const NegativeBarChartExample: (props: Partial<BarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LineChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The LineChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The LineChart can be used with the following child components: `<XAxis />`, `<YAxis />`, `<ReferenceArea />`, `<ReferenceDot />`, `<ReferenceLine />`,
|
|
10
|
+
* `<Brush />`, `<CartesianGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<Line />`, `<Customized />` or valid svg elements.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LineChartExample: (props: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const StackedLineChartExample: (props: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const CustomDotLineChartExample: (props: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LabeledLineChartExample: (props: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const WithLegendLineChartExample: (props: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PieChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The PieChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The PieChart can be used with the following child components: `<PolarAngleAxis />`, `<PolarRadiusAxis />`,
|
|
10
|
+
* `<PolarGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<Pie />`, `<Customized />`
|
|
11
|
+
*/
|
|
12
|
+
export declare const PieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const LabeledPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const CustomLabeledPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LabelListPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const WithLegendPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const DonutPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ActiveDonutPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const StackedPieChartExample: (props: Partial<PieChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RadarChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The RadarChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The RadarChart can be used with the following child components: `<PolarAngleAxis />`, `<PolarRadiusAxis />`,
|
|
10
|
+
* `<PolarGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<Radar />`, `<Customized />`
|
|
11
|
+
*/
|
|
12
|
+
export declare const RadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const DotRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const MultipleRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const LinesRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CustomLabeledRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const RadiusAxisRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const GridCustomRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const GridFilledRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const NoGridRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const GridCircleRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const NoLinesGridCircleRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const GridCircleFilledRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const LegendRadarChartExample: (props: Partial<RadarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RadialBarChartProps } from '../args';
|
|
2
|
+
/**
|
|
3
|
+
* ## Parent
|
|
4
|
+
*
|
|
5
|
+
* The RadialBarChart can be used within: `<Chart />`
|
|
6
|
+
*
|
|
7
|
+
* ## Children
|
|
8
|
+
*
|
|
9
|
+
* The RadialBarChart can be used with the following child components: `<PolarAngleAxis />`, `<PolarRadiusAxis />`,
|
|
10
|
+
* `<PolarGrid />`, `<ChartLegend />`, `<ChartTooltip />`, `<RadialBar />`, `<Customized />`
|
|
11
|
+
*/
|
|
12
|
+
export declare const RadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const LabeledRadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const GridRadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const TextRadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ShapeRadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const StackedRadialChartExample: (props: Partial<RadialBarChartProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChartTooltipContentProps } from '../../types';
|
|
2
|
+
export declare const tooltipChartConfig: {
|
|
3
|
+
activities: {
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
running: {
|
|
7
|
+
label: string;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
swimming: {
|
|
11
|
+
label: string;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const BarChartExample: (props: ChartTooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArgTypes, StoryContext, StoryFn } from '@storybook/react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
export declare const categorizeArgs: (args: ArgTypes, category: string) => ArgTypes<import('@storybook/react').Args>;
|
|
4
|
+
export declare const withArgs: <T extends object>(Component: StoryFn, context: StoryContext<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const getArgsFromArgTypes: <T extends ArgTypes>(argsTypes: T) => Record<keyof T, unknown>;
|
|
6
|
+
export declare const renderer: <T extends ElementType>(Component: T) => {
|
|
7
|
+
<G>(props: G): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentProps, ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { LegendProps, ResponsiveContainer, Tooltip } from 'recharts';
|
|
3
|
+
import { Theme } from '../../utilities';
|
|
4
|
+
export type ChartConfig = {
|
|
5
|
+
[k in string]: {
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
icon?: ComponentType;
|
|
8
|
+
} & ({
|
|
9
|
+
color?: string;
|
|
10
|
+
theme?: never;
|
|
11
|
+
} | {
|
|
12
|
+
color?: never;
|
|
13
|
+
theme: Record<Theme, string>;
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export type ChartContextProps = {
|
|
17
|
+
config: ChartConfig;
|
|
18
|
+
};
|
|
19
|
+
export type ChartProps = ComponentProps<"div"> & {
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
children: ComponentProps<typeof ResponsiveContainer>["children"];
|
|
22
|
+
};
|
|
23
|
+
export type ChartStyleProps = {
|
|
24
|
+
id: string;
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
};
|
|
27
|
+
export type ChartTooltipContentProps = ComponentProps<typeof Tooltip> & ComponentProps<"div"> & {
|
|
28
|
+
hideLabel?: boolean;
|
|
29
|
+
hideIndicator?: boolean;
|
|
30
|
+
indicator?: "line" | "dot" | "dashed";
|
|
31
|
+
nameKey?: string;
|
|
32
|
+
labelKey?: string;
|
|
33
|
+
};
|
|
34
|
+
export type ChartLegendContentProps = ComponentProps<"div"> & Pick<LegendProps, "payload" | "verticalAlign"> & {
|
|
35
|
+
hideIcon?: boolean;
|
|
36
|
+
nameKey?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from 'react';
|
|
2
|
+
import { DraggableOverlayProps, DraggableProps } from './types';
|
|
3
|
+
declare const Draggable: {
|
|
4
|
+
({ id, axis, data, disabled, attributes, style, handle, className, ...props }: DraggableProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
Root: import('react').ForwardRefExoticComponent<Partial<{
|
|
6
|
+
axis: import('./types').DraggableAxis;
|
|
7
|
+
style: CSSProperties;
|
|
8
|
+
handle: import('./types').DraggableHandleElement;
|
|
9
|
+
actions: (args: Partial<import('./types').DraggableActionsArgs>) => import('react').ReactNode;
|
|
10
|
+
}> & import('react').HTMLAttributes<HTMLDivElement> & Partial<{
|
|
11
|
+
isDragOverlay: boolean;
|
|
12
|
+
isDragging: boolean;
|
|
13
|
+
listeners: import('@dnd-kit/core').DraggableSyntheticListeners;
|
|
14
|
+
transform: import('@dnd-kit/utilities').Transform | null;
|
|
15
|
+
activatorNodeRef: Ref<HTMLElement>;
|
|
16
|
+
}> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Action: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
18
|
+
active?: Partial<{
|
|
19
|
+
fill: string;
|
|
20
|
+
background: string;
|
|
21
|
+
}>;
|
|
22
|
+
cursor?: CSSProperties["cursor"];
|
|
23
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
24
|
+
Overlay: {
|
|
25
|
+
({ axis, dropAnimation, className, ...props }: DraggableOverlayProps): import('react').ReactPortal;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export { Draggable };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DropAnimation, Modifiers, PointerActivationConstraint } from '@dnd-kit/core';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { DraggableAxis, DraggableHandleElement } from './types';
|
|
4
|
+
type DraggableExampleProps = Partial<{
|
|
5
|
+
activationConstraint: PointerActivationConstraint;
|
|
6
|
+
axis: DraggableAxis;
|
|
7
|
+
handle: DraggableHandleElement;
|
|
8
|
+
modifiers: Modifiers;
|
|
9
|
+
buttonStyle: CSSProperties;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const DraggableExample: ({ activationConstraint, axis, handle, modifiers, label, }: DraggableExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const DraggableSnapToGridExample: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type DraggableOverlayExampleProps = Partial<{
|
|
15
|
+
activationConstraint: PointerActivationConstraint;
|
|
16
|
+
axis: DraggableAxis;
|
|
17
|
+
handle: DraggableHandleElement;
|
|
18
|
+
modifiers: Modifiers;
|
|
19
|
+
label: string;
|
|
20
|
+
dragOverlayModifiers: Modifiers;
|
|
21
|
+
dropAnimation: DropAnimation | null;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const DraggableOverlayExample: ({ axis, dropAnimation, handle, label, modifiers, }: DraggableOverlayExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DropAnimation } from '@dnd-kit/core';
|
|
2
|
+
export declare const DROP_ANIMATION_CONFIG: DropAnimation;
|
|
3
|
+
export declare const getDraggableClasses: (props?: ({
|
|
4
|
+
isDragging?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export declare const getDraggableRootClasses: (props?: ({
|
|
7
|
+
isDragging?: boolean | null | undefined;
|
|
8
|
+
isDragOverlay?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Draggable } from './Draggable';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DraggableSyntheticListeners, DragOverlayProps, DropAnimation, UseDraggableArguments } from '@dnd-kit/core';
|
|
2
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
3
|
+
import { Transform } from '@dnd-kit/utilities';
|
|
4
|
+
export declare enum DraggableAxis {
|
|
5
|
+
All = 0,
|
|
6
|
+
Vertical = 1,
|
|
7
|
+
Horizontal = 2
|
|
8
|
+
}
|
|
9
|
+
export type DraggableHandleElement = JSX.Element | null;
|
|
10
|
+
export type DraggableActionsArgs = {
|
|
11
|
+
draggable: {
|
|
12
|
+
ref: Ref<HTMLElement> | undefined;
|
|
13
|
+
listeners: DraggableSyntheticListeners;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type BaseDraggableProps = Partial<{
|
|
17
|
+
axis: DraggableAxis;
|
|
18
|
+
style: CSSProperties;
|
|
19
|
+
handle: DraggableHandleElement;
|
|
20
|
+
actions: (args: Partial<DraggableActionsArgs>) => ReactNode;
|
|
21
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
22
|
+
export type DraggableProps = BaseDraggableProps & UseDraggableArguments;
|
|
23
|
+
export type DraggableRootProps = BaseDraggableProps & Partial<{
|
|
24
|
+
isDragOverlay: boolean;
|
|
25
|
+
isDragging: boolean;
|
|
26
|
+
listeners: DraggableSyntheticListeners;
|
|
27
|
+
transform: Transform | null;
|
|
28
|
+
activatorNodeRef: Ref<HTMLElement>;
|
|
29
|
+
}>;
|
|
30
|
+
export type DraggableActionProps = React.HTMLAttributes<HTMLButtonElement> & {
|
|
31
|
+
active?: Partial<{
|
|
32
|
+
fill: string;
|
|
33
|
+
background: string;
|
|
34
|
+
}>;
|
|
35
|
+
cursor?: CSSProperties["cursor"];
|
|
36
|
+
};
|
|
37
|
+
export type DraggableOverlayProps = {
|
|
38
|
+
axis?: DraggableRootProps["axis"];
|
|
39
|
+
dropAnimation?: DropAnimation | null;
|
|
40
|
+
} & DragOverlayProps;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Modifiers, UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
type CollisionDetectionType = "rectIntersection" | "closestCenter" | "closestCorners" | "pointerWithin";
|
|
3
|
+
type DroppableExampleProps = {
|
|
4
|
+
collisionDetection?: CollisionDetectionType;
|
|
5
|
+
containers?: UniqueIdentifier[];
|
|
6
|
+
modifiers?: Modifiers;
|
|
7
|
+
};
|
|
8
|
+
export declare const DroppableExample: ({ containers, collisionDetection, modifiers, }: DroppableExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CollisionDetectionAlgorithmsDroppableExample: ({ collisionDetection, ...props }: DroppableExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Droppable } from './Droppable';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SortableProps } from './types';
|
|
2
|
+
export declare const Sortable: ({ id, data, style, className, children, disabled, attributes, resizeObserverConfig, animateLayoutChanges, getNewIndex, strategy, transition, ...props }: SortableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SortableProps } from './types';
|
|
2
|
+
type SortableExampleProps = Partial<SortableProps> & {
|
|
3
|
+
hasDraggableOverlay?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const SortableExample: ({ hasDraggableOverlay, ...props }: SortableExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sortable } from './Sortable';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseSortableArguments } from '@dnd-kit/sortable';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { DraggableAxis, DraggableRootProps } from '../Draggable/types';
|
|
4
|
+
export type SortableProps = Omit<React.HTMLAttributes<HTMLDivElement>, "id"> & UseSortableArguments & Pick<DraggableRootProps, "handle" | "actions"> & Partial<{
|
|
5
|
+
axis: DraggableAxis;
|
|
6
|
+
style: CSSProperties;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WidgetsExample: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useWidget } from './useWidget';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useWidgets } from './useWidgets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWidgets: () => import('../../types').InternalWidgetsContextProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { restrictToElement } from './restrictToElement';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Data, UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DraggableActionsArgs } from '../DragAndDrop/Draggable/types';
|
|
4
|
+
import { SortableProps } from '../DragAndDrop/Sortable/types';
|
|
5
|
+
export type Widget = Data<{
|
|
6
|
+
id: UniqueIdentifier;
|
|
7
|
+
}>;
|
|
8
|
+
type WidgetActions = (args: Partial<DraggableActionsArgs> & {
|
|
9
|
+
deleteWidget: () => void;
|
|
10
|
+
}) => ReactNode;
|
|
11
|
+
export type WidgetProps = Omit<SortableProps, "actions"> & {
|
|
12
|
+
actions?: WidgetActions;
|
|
13
|
+
};
|
|
14
|
+
export type WidgetsContextProps = {
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
initialWidgets?: Widget[];
|
|
17
|
+
};
|
|
18
|
+
export type InternalWidgetsContextProps = {
|
|
19
|
+
widgets: Data<{
|
|
20
|
+
id: UniqueIdentifier;
|
|
21
|
+
}>[];
|
|
22
|
+
addWidget: (widget: Widget, insertIndex?: number) => void;
|
|
23
|
+
addWidgets: (widgets: Widget[], startIndex?: number) => void;
|
|
24
|
+
deleteWidget: (widget: Widget) => void;
|
|
25
|
+
deleteWidgets: (widgets: Widget[]) => void;
|
|
26
|
+
resetWidgets: () => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|