@wavv/ui 1.8.8 → 1.8.9

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.
@@ -2,6 +2,20 @@ import { ChartProps } from './ChartHelpers';
2
2
  type Props = {
3
3
  /** Stacks multiple data points within a single bar */
4
4
  stacked?: boolean;
5
+ /** Orients the bars outward from the Y axis */
6
+ vertical?: boolean;
7
+ /** The gap between two bars in the same category */
8
+ barGap?: number;
9
+ /** The gap between two bar categories */
10
+ barCategoryGap?: number;
11
+ /** The thickness of each bar */
12
+ barSize?: number;
13
+ /** The maximum thickness of each bar */
14
+ maxBarSize?: number;
15
+ /** Removes the labels from the Y axis */
16
+ hideYLabels?: boolean;
17
+ /** Removes the labels from the X axis */
18
+ hideXLabels?: boolean;
5
19
  } & ChartProps;
6
- declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ declare const BarChart: ({ data, legend, keys, stacked, barGap, barCategoryGap, barSize, maxBarSize, vertical, hideYLabels, hideXLabels, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
7
21
  export default BarChart;
@@ -20,7 +20,8 @@ export type ChartProps = {
20
20
  /** Allows the chart to grow and shrink (default if no explicit width) */
21
21
  responsive?: boolean;
22
22
  } & Margin & WidthHeight;
23
- export declare const ChartStyles: () => import("react/jsx-runtime").JSX.Element;
23
+ export declare const VerticalStyles: () => import("react/jsx-runtime").JSX.Element;
24
+ export declare const HorizontalStyles: () => import("react/jsx-runtime").JSX.Element;
24
25
  export declare const ChartContainer: import("@emotion/styled").StyledComponent<{
25
26
  theme?: import("@emotion/react").Theme | undefined;
26
27
  as?: import("react").ElementType<any> | undefined;
package/build/index.d.ts CHANGED
@@ -668,8 +668,22 @@ type ChartProps = {
668
668
  type Props$2 = {
669
669
  /** Stacks multiple data points within a single bar */
670
670
  stacked?: boolean;
671
+ /** Orients the bars outward from the Y axis */
672
+ vertical?: boolean;
673
+ /** The gap between two bars in the same category */
674
+ barGap?: number;
675
+ /** The gap between two bar categories */
676
+ barCategoryGap?: number;
677
+ /** The thickness of each bar */
678
+ barSize?: number;
679
+ /** The maximum thickness of each bar */
680
+ maxBarSize?: number;
681
+ /** Removes the labels from the Y axis */
682
+ hideYLabels?: boolean;
683
+ /** Removes the labels from the X axis */
684
+ hideXLabels?: boolean;
671
685
  } & ChartProps;
672
- declare const BarChart: ({ data, legend, keys, stacked, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
686
+ declare const BarChart: ({ data, legend, keys, stacked, barGap, barCategoryGap, barSize, maxBarSize, vertical, hideYLabels, hideXLabels, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
673
687
 
674
688
  type OptionItem = {
675
689
  id: number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],