@wavv/ui 1.2.2 → 1.2.5-beta.1

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.
@@ -7,7 +7,9 @@ declare type MultiSelectProps = {
7
7
  /** The list of selected options */
8
8
  items: DropdownOption[];
9
9
  /** A function that gives control of the list items to the user */
10
- children?: (listOpen: boolean) => ReactNode;
10
+ children?: (listOpen: boolean, disabled: boolean) => ReactNode;
11
+ /** Text to display in place of the conplete list of items */
12
+ listLabel?: string;
11
13
  /** Text to display in front of the list of selected items */
12
14
  listText?: string;
13
15
  /** The name of the items list to display (1/5 items) */
@@ -29,5 +31,5 @@ declare type MultiSelectProps = {
29
31
  /** The function to be called when the input is updated */
30
32
  onTextChange?: (text: string) => void;
31
33
  } & Width & Margin;
32
- declare const MultiSelect: ({ children, options, items, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
34
+ declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
33
35
  export default MultiSelect;
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- import { FlexPosition, ThemeProp } from '../types';
2
+ import { FlexPosition, Padding, ThemeProp } from '../types';
3
3
  declare type TableColumn = {
4
4
  children?: ReactNode;
5
5
  /** The flex positioning of the Column contents */
6
6
  contentPosition?: FlexPosition;
7
7
  /** The string value to display if the child text is undefined (i.e. "N/A", "—") */
8
8
  defaultValue?: string;
9
- };
10
- declare const Column: ({ children, contentPosition, defaultValue }: TableColumn) => JSX.Element;
9
+ } & Padding;
10
+ declare const Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: TableColumn) => JSX.Element;
11
11
  declare const TableColumn: import("@emotion/styled").StyledComponent<{
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
13
  as?: import("react").ElementType<any> | undefined;
@@ -17,5 +17,5 @@ declare const TableColumn: import("@emotion/styled").StyledComponent<{
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
18
  } & {
19
19
  showDefault?: boolean | undefined;
20
- } & ThemeProp, {}, {}>;
20
+ } & Padding & ThemeProp, {}, {}>;
21
21
  export default Column;
@@ -14,10 +14,10 @@ declare const Table: {
14
14
  children: ReactNode;
15
15
  } & import("../types").Height & import("react").HTMLProps<HTMLTableSectionElement>) => JSX.Element;
16
16
  Row: ({ children, columns, onClick, ...rest }: import("./types").TableHeaderRow) => JSX.Element;
17
- Column: ({ children, contentPosition, defaultValue }: {
17
+ Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
18
18
  children?: ReactNode;
19
19
  contentPosition?: import("../types").FlexPosition | undefined;
20
20
  defaultValue?: string | undefined;
21
- }) => JSX.Element;
21
+ } & import("../types").Padding) => JSX.Element;
22
22
  };
23
23
  export default Table;