@wavv/ui 1.8.16 → 1.8.18

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.
@@ -17,7 +17,7 @@ export type DropdownItemProps<OptionType> = {
17
17
  children: ReactNode;
18
18
  /** Sets the value of the option that will be returned in the object */
19
19
  value?: number | string;
20
- /** Sets the lable property of the object to be returned. Only required if the content of the Item is anything other than a string (icons, other elements) */
20
+ /** Sets the label property of the object to be returned. Only required if the content of the Item is anything other than a string (icons, other elements) */
21
21
  displayText?: string;
22
22
  /** The flex positioning of the Item contents */
23
23
  contentPosition?: FlexPosition;
@@ -33,9 +33,11 @@ type ModalProps = {
33
33
  right?: number | string;
34
34
  /** Sets the `left` position of the modal. Used in conjunction with `noOverlay` */
35
35
  left?: number | string;
36
+ /** Sets the zIndex of the modal container */
37
+ zIndex?: number;
36
38
  } & WidthHeight & Padding;
37
39
  declare const Modal: {
38
- ({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: ModalProps): import("react").ReactPortal | null;
40
+ ({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, zIndex, }: ModalProps): import("react").ReactPortal | null;
39
41
  Header: import("@emotion/styled").StyledComponent<{
40
42
  theme?: import("@emotion/react").Theme | undefined;
41
43
  as?: import("react").ElementType<any> | undefined;
@@ -1,21 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- import { FlexPosition, Padding, ThemeProp } from '../types';
3
- type TableColumn = {
2
+ import { Padding } from '../types';
3
+ import { ContentProps } from './Content';
4
+ type ColumnProps = {
4
5
  children?: ReactNode;
5
- /** The flex positioning of the Column contents */
6
- contentPosition?: FlexPosition;
7
6
  /** The string value to display if the child text is undefined (i.e. "N/A", "—") */
8
7
  defaultValue?: string;
9
- } & Padding;
10
- declare const Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: TableColumn) => import("react/jsx-runtime").JSX.Element;
11
- declare const TableColumn: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
14
- } & {
15
- contentPosition?: FlexPosition | undefined;
16
- } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- } & {
19
- showDefault?: boolean | undefined;
20
- } & Padding & ThemeProp, {}, {}>;
8
+ } & Padding & ContentProps;
9
+ declare const Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
21
10
  export default Column;
@@ -1,9 +1,19 @@
1
1
  /// <reference types="react" />
2
- import { FlexPosition } from '../types';
2
+ import { FlexDirection, FlexPosition } from '../types';
3
+ export type ContentProps = {
4
+ /** The flex positioning of the content */
5
+ contentPosition?: FlexPosition;
6
+ /** The flex direction of the content */
7
+ direction?: FlexDirection;
8
+ /** The flex positioning of the content */
9
+ justify?: FlexPosition;
10
+ /** The flex alignment of the content */
11
+ align?: FlexPosition;
12
+ /** The flex gap of the content */
13
+ gap?: number | string;
14
+ };
3
15
  declare const Content: import("@emotion/styled").StyledComponent<{
4
16
  theme?: import("@emotion/react").Theme | undefined;
5
17
  as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- contentPosition?: FlexPosition | undefined;
8
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ } & ContentProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
19
  export default Content;
@@ -1,16 +1,14 @@
1
1
  import { MouseEvent, ReactNode } from 'react';
2
- import { FlexPosition } from '../types';
2
+ import { ContentProps } from './Content';
3
3
  import { SortDir } from './types';
4
4
  type HeaderCellProps = {
5
5
  children?: ReactNode;
6
- /** The flex positioning of the HeaderCell contents */
7
- contentPosition?: FlexPosition;
8
6
  /** The function to be called when the HeaderCell is clicked */
9
7
  onClick?: (event: MouseEvent) => void;
10
8
  /** Controls the direction of the sort icon indicating the direction of the data */
11
9
  sorted?: SortDir;
12
10
  /** The property of the data object to sort by */
13
11
  sortKey?: string;
14
- };
15
- declare const HeaderCell: ({ children, onClick, contentPosition, sorted, sortKey }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
12
+ } & ContentProps;
13
+ declare const HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
16
14
  export default HeaderCell;
@@ -10,21 +10,19 @@ declare const Table: {
10
10
  } & {
11
11
  columns?: import("./types").Columns | undefined;
12
12
  } & Width & import("../types").Margin & import("../types").Padding & import("react").HTMLProps<HTMLTableRowElement>) => import("react/jsx-runtime").JSX.Element;
13
- HeaderCell: ({ children, onClick, contentPosition, sorted, sortKey }: {
13
+ HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, }: {
14
14
  children?: ReactNode;
15
- contentPosition?: import("../types").FlexPosition | undefined;
16
15
  onClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
17
16
  sorted?: import("./types").SortDir | undefined;
18
17
  sortKey?: string | undefined;
19
- }) => import("react/jsx-runtime").JSX.Element;
18
+ } & import("./Content").ContentProps) => import("react/jsx-runtime").JSX.Element;
20
19
  Body: ({ children, height, maxHeight, ...rest }: {
21
20
  children: ReactNode;
22
21
  } & import("../types").Height & import("../types").MaxHeight & Omit<import("react").HTMLProps<HTMLTableSectionElement>, "as"> & import("../types").As) => import("react/jsx-runtime").JSX.Element;
23
22
  Row: ({ children, columns, onClick, columnStyles, ...rest }: import("./types").TableHeaderRow) => import("react/jsx-runtime").JSX.Element;
24
- Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
23
+ Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
25
24
  children?: ReactNode;
26
- contentPosition?: import("../types").FlexPosition | undefined;
27
25
  defaultValue?: string | undefined;
28
- } & import("../types").Padding) => import("react/jsx-runtime").JSX.Element;
26
+ } & import("../types").Padding & import("./Content").ContentProps) => import("react/jsx-runtime").JSX.Element;
29
27
  };
30
28
  export default Table;
@@ -44,6 +44,7 @@ export type MaxWidthHeight = MaxWidth & MaxHeight;
44
44
  export type MinWidthHeight = MinWidth & MinHeight;
45
45
  export type MarginPadding = Margin & Padding;
46
46
  export type FlexPosition = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
47
+ export type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
47
48
  export type As = {
48
49
  as?: ElementType<unknown>;
49
50
  };
@@ -56,9 +57,10 @@ export type MergeField = {
56
57
  export type InputRef = {
57
58
  focus: () => void;
58
59
  blur: () => void;
60
+ select: () => void;
59
61
  hasFocus: boolean;
60
62
  };
61
- export type MultiSelectRef = Omit<InputRef, 'hasFocus'>;
63
+ export type MultiSelectRef = Omit<InputRef, 'hasFocus' | 'select'>;
62
64
  export type AudioRef = {
63
65
  play?: () => void;
64
66
  pause?: () => void;