@wavv/ui 1.8.7 → 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;
@@ -16,6 +16,10 @@ declare const DraftEditor: import("react").ForwardRefExoticComponent<{
16
16
  mergeFields?: MergeField[] | undefined;
17
17
  /** Placeholder text of editor when value is empty */
18
18
  placeholder?: string | undefined;
19
+ /** Places a description message below the editor */
20
+ description?: string | undefined;
21
+ /** Sets the Editor's bottom border and description text to red */
22
+ invalid?: boolean | undefined;
19
23
  /** Width of the editor */
20
24
  width?: string | number | undefined;
21
25
  /** Height of the editor */
@@ -37,6 +37,12 @@ export declare const Label: import("@emotion/styled").StyledComponent<{
37
37
  focused?: boolean | undefined;
38
38
  disabled?: boolean | undefined;
39
39
  } & ThemeProp, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
40
+ export declare const Description: import("@emotion/styled").StyledComponent<{
41
+ theme?: import("@emotion/react").Theme | undefined;
42
+ as?: import("react").ElementType<any> | undefined;
43
+ } & {
44
+ invalid?: boolean | undefined;
45
+ } & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
40
46
  declare const _default: {
41
47
  Container: import("@emotion/styled").StyledComponent<{
42
48
  theme?: import("@emotion/react").Theme | undefined;
@@ -68,6 +74,12 @@ declare const _default: {
68
74
  focused?: boolean | undefined;
69
75
  disabled?: boolean | undefined;
70
76
  } & ThemeProp, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
77
+ Description: import("@emotion/styled").StyledComponent<{
78
+ theme?: import("@emotion/react").Theme | undefined;
79
+ as?: import("react").ElementType<any> | undefined;
80
+ } & {
81
+ invalid?: boolean | undefined;
82
+ } & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
71
83
  useInputFocus: (onFocus?: FocusCallBack | undefined, onBlur?: FocusCallBack | undefined, focusCondition?: boolean) => {
72
84
  focused: boolean;
73
85
  handleFocus: (event?: InputFocusEvent | undefined) => void;
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;
@@ -1275,6 +1289,10 @@ declare const DraftEditor: react.ForwardRefExoticComponent<{
1275
1289
  mergeFields?: MergeField$1[] | undefined;
1276
1290
  /** Placeholder text of editor when value is empty */
1277
1291
  placeholder?: string | undefined;
1292
+ /** Places a description message below the editor */
1293
+ description?: string | undefined;
1294
+ /** Sets the Editor's bottom border and description text to red */
1295
+ invalid?: boolean | undefined;
1278
1296
  /** Width of the editor */
1279
1297
  width?: string | number | undefined;
1280
1298
  /** Height of the editor */
@@ -1963,6 +1981,12 @@ declare const _default: {
1963
1981
  focused?: boolean | undefined;
1964
1982
  disabled?: boolean | undefined;
1965
1983
  } & ThemeProp, react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
1984
+ Description: _emotion_styled.StyledComponent<{
1985
+ theme?: _emotion_react.Theme | undefined;
1986
+ as?: react.ElementType<any> | undefined;
1987
+ } & {
1988
+ invalid?: boolean | undefined;
1989
+ } & ThemeProp, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1966
1990
  useInputFocus: (onFocus?: FocusCallBack | undefined, onBlur?: FocusCallBack | undefined, focusCondition?: boolean) => {
1967
1991
  focused: boolean;
1968
1992
  handleFocus: (event?: InputFocusEvent | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],