@wavv/ui 1.8.11 → 1.8.12
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/build/cjs/index.js +10 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/BarChart.d.ts +5 -1
- package/build/cjs/types/components/ChartHelpers.d.ts +4 -4
- package/build/cjs/types/components/types.d.ts +7 -0
- package/build/cjs/types/index.d.ts +1 -1
- package/build/esm/index.js +10 -10
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/BarChart.d.ts +5 -1
- package/build/esm/types/components/ChartHelpers.d.ts +4 -4
- package/build/esm/types/components/types.d.ts +7 -0
- package/build/esm/types/index.d.ts +1 -1
- package/build/index.d.ts +14 -3
- package/package.json +22 -22
|
@@ -16,6 +16,10 @@ type Props = {
|
|
|
16
16
|
hideYLabels?: boolean;
|
|
17
17
|
/** Removes the labels from the X axis */
|
|
18
18
|
hideXLabels?: boolean;
|
|
19
|
+
/** The height of the X axis */
|
|
20
|
+
xAxisHeight?: number;
|
|
21
|
+
/** The width of the Y axis */
|
|
22
|
+
yAxisWidth?: number;
|
|
19
23
|
} & ChartProps;
|
|
20
|
-
declare const BarChart: ({ data, legend, keys, stacked, barGap, barCategoryGap, barSize, maxBarSize, vertical, hideYLabels, hideXLabels, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const BarChart: ({ data, legend, keys, stacked, barGap, barCategoryGap, barSize, maxBarSize, vertical, hideYLabels, hideXLabels, xAxisHeight, yAxisWidth, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export default BarChart;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipProps } from 'recharts';
|
|
3
3
|
import { Payload } from 'recharts/types/component/DefaultLegendContent';
|
|
4
|
-
import { Margin, WidthHeight } from './types';
|
|
4
|
+
import { Margin, MaxWidthHeight, WidthHeight } from './types';
|
|
5
5
|
type ChartData = {
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
@@ -19,14 +19,14 @@ export type ChartProps = {
|
|
|
19
19
|
legend?: boolean;
|
|
20
20
|
/** Allows the chart to grow and shrink (default if no explicit width) */
|
|
21
21
|
responsive?: boolean;
|
|
22
|
-
} & Margin & WidthHeight;
|
|
22
|
+
} & Margin & WidthHeight & MaxWidthHeight;
|
|
23
23
|
export declare const ChartStyles: () => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const ChartContainer: import("@emotion/styled").StyledComponent<{
|
|
25
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
26
|
as?: import("react").ElementType<any> | undefined;
|
|
27
|
-
} &
|
|
27
|
+
} & {
|
|
28
28
|
responsive?: boolean | undefined;
|
|
29
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
} & Margin & import("./types").Width & import("./types").Height & import("./types").MaxWidth & import("./types").MaxHeight, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
30
30
|
export declare const TooltipContent: ({ active, payload, label }: TooltipProps<number, string>) => import("react/jsx-runtime").JSX.Element | null;
|
|
31
31
|
export declare const Tooltip: () => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export declare const LegendContent: ({ payload, toggleData, }: {
|
|
@@ -21,6 +21,12 @@ export type Position = {
|
|
|
21
21
|
right?: number | string;
|
|
22
22
|
left?: number | string;
|
|
23
23
|
};
|
|
24
|
+
export type MinWidth = {
|
|
25
|
+
minWidth?: number | string;
|
|
26
|
+
};
|
|
27
|
+
export type MinHeight = {
|
|
28
|
+
minHeight?: number | string;
|
|
29
|
+
};
|
|
24
30
|
export type MaxWidth = {
|
|
25
31
|
maxWidth?: number | string;
|
|
26
32
|
};
|
|
@@ -35,6 +41,7 @@ export type Height = {
|
|
|
35
41
|
};
|
|
36
42
|
export type WidthHeight = Width & Height;
|
|
37
43
|
export type MaxWidthHeight = MaxWidth & MaxHeight;
|
|
44
|
+
export type MinWidthHeight = MinWidth & MinHeight;
|
|
38
45
|
export type MarginPadding = Margin & Padding;
|
|
39
46
|
export type FlexPosition = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
|
|
40
47
|
export type As = {
|
|
@@ -44,7 +44,7 @@ export type { ITheme, ThemeProp } from './theme/ThemeTypes';
|
|
|
44
44
|
export type { IconNames } from './components/Icon/icons';
|
|
45
45
|
export type { DropdownOption } from './components/Dropdown';
|
|
46
46
|
export type { Item as TransferItem, Action as TransferAction, Next as TransferNext } from './components/TransferList';
|
|
47
|
-
export type { AudioRef, DraftEditorRef, InputRef, MultiSelectRef, Margin, Padding, Position, MaxWidth, MaxHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
|
|
47
|
+
export type { AudioRef, DraftEditorRef, InputRef, MultiSelectRef, Margin, Padding, Position, MinWidth, MaxWidth, MinHeight, MaxHeight, MinWidthHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
|
|
48
48
|
export { default as useEventListener } from './hooks/useEventListener';
|
|
49
49
|
export { default as useOnClickOutside } from './hooks/useOnClickOutside';
|
|
50
50
|
export { default as useSelect } from './hooks/useSelect';
|