@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;
package/build/index.d.ts CHANGED
@@ -552,6 +552,7 @@ type MaxWidthHeight = MaxWidth & MaxHeight;
552
552
  type MinWidthHeight = MinWidth & MinHeight;
553
553
  type MarginPadding = Margin & Padding;
554
554
  type FlexPosition = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
555
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
555
556
  type As = {
556
557
  as?: ElementType<unknown>;
557
558
  };
@@ -564,9 +565,10 @@ type MergeField$1 = {
564
565
  type InputRef = {
565
566
  focus: () => void;
566
567
  blur: () => void;
568
+ select: () => void;
567
569
  hasFocus: boolean;
568
570
  };
569
- type MultiSelectRef = Omit<InputRef, 'hasFocus'>;
571
+ type MultiSelectRef = Omit<InputRef, 'hasFocus' | 'select'>;
570
572
  type AudioRef = {
571
573
  play?: () => void;
572
574
  pause?: () => void;
@@ -713,7 +715,7 @@ type DropdownItemProps<OptionType> = {
713
715
  children: ReactNode;
714
716
  /** Sets the value of the option that will be returned in the object */
715
717
  value?: number | string;
716
- /** 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) */
718
+ /** 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) */
717
719
  displayText?: string;
718
720
  /** The flex positioning of the Item contents */
719
721
  contentPosition?: FlexPosition;
@@ -2159,9 +2161,11 @@ type ModalProps = {
2159
2161
  right?: number | string;
2160
2162
  /** Sets the `left` position of the modal. Used in conjunction with `noOverlay` */
2161
2163
  left?: number | string;
2164
+ /** Sets the zIndex of the modal container */
2165
+ zIndex?: number;
2162
2166
  } & WidthHeight & Padding;
2163
2167
  declare const Modal: {
2164
- ({ children, rootSelector, visible, width, height, onClose, closeIcon, preventOverlayClose, overlayColor, backgroundColor, small, noOverlay, centerX, centerY, top, bottom, right, left, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: ModalProps): react.ReactPortal | null;
2168
+ ({ 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): react.ReactPortal | null;
2165
2169
  Header: _emotion_styled.StyledComponent<{
2166
2170
  theme?: _emotion_react.Theme | undefined;
2167
2171
  as?: react.ElementType<any> | undefined;
@@ -2437,6 +2441,19 @@ type TransferListProps = {
2437
2441
  } & Width & Margin;
2438
2442
  declare const TransferList: ({ items, onChange, beforeItemChange, listTitle, noItemsMessage, hideSelectAll, hideRemoveAll, readOnly, width, margin, marginTop, marginBottom, marginRight, marginLeft, }: TransferListProps) => react_jsx_runtime.JSX.Element;
2439
2443
 
2444
+ type ContentProps = {
2445
+ /** The flex positioning of the content */
2446
+ contentPosition?: FlexPosition;
2447
+ /** The flex direction of the content */
2448
+ direction?: FlexDirection;
2449
+ /** The flex positioning of the content */
2450
+ justify?: FlexPosition;
2451
+ /** The flex alignment of the content */
2452
+ align?: FlexPosition;
2453
+ /** The flex gap of the content */
2454
+ gap?: number | string;
2455
+ };
2456
+
2440
2457
  type Data = {
2441
2458
  [key: string]: unknown;
2442
2459
  };
@@ -2473,22 +2490,20 @@ declare const Table: {
2473
2490
  } & {
2474
2491
  columns?: Columns | undefined;
2475
2492
  } & Width & Margin & Padding & react.HTMLProps<HTMLTableRowElement>) => react_jsx_runtime.JSX.Element;
2476
- HeaderCell: ({ children, onClick, contentPosition, sorted, sortKey }: {
2493
+ HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, }: {
2477
2494
  children?: ReactNode;
2478
- contentPosition?: FlexPosition | undefined;
2479
2495
  onClick?: ((event: react.MouseEvent<Element, MouseEvent>) => void) | undefined;
2480
2496
  sorted?: SortDir | undefined;
2481
2497
  sortKey?: string | undefined;
2482
- }) => react_jsx_runtime.JSX.Element;
2498
+ } & ContentProps) => react_jsx_runtime.JSX.Element;
2483
2499
  Body: ({ children, height, maxHeight, ...rest }: {
2484
2500
  children: ReactNode;
2485
2501
  } & Height & MaxHeight & Omit<react.HTMLProps<HTMLTableSectionElement>, "as"> & As) => react_jsx_runtime.JSX.Element;
2486
2502
  Row: ({ children, columns, onClick, columnStyles, ...rest }: TableHeaderRow) => react_jsx_runtime.JSX.Element;
2487
- Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
2503
+ Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
2488
2504
  children?: ReactNode;
2489
- contentPosition?: FlexPosition | undefined;
2490
2505
  defaultValue?: string | undefined;
2491
- } & Padding) => react_jsx_runtime.JSX.Element;
2506
+ } & Padding & ContentProps) => react_jsx_runtime.JSX.Element;
2492
2507
  };
2493
2508
 
2494
2509
  type ToggleProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.8.16",
3
+ "version": "1.8.18",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],