@wavv/ui 1.9.9 → 1.9.11
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.
- package/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/assets/icons/Flag.d.ts +3 -0
- package/build/cjs/types/components/Icon/icons.d.ts +1 -0
- package/build/cjs/types/components/Table/Column.d.ts +1 -1
- package/build/cjs/types/components/Table/Content.d.ts +16 -4
- package/build/cjs/types/components/Table/HeaderCell.d.ts +1 -1
- package/build/cjs/types/components/Table/Table.d.ts +16 -4
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/assets/icons/Flag.d.ts +3 -0
- package/build/esm/types/components/Icon/icons.d.ts +1 -0
- package/build/esm/types/components/Table/Column.d.ts +1 -1
- package/build/esm/types/components/Table/Content.d.ts +16 -4
- package/build/esm/types/components/Table/HeaderCell.d.ts +1 -1
- package/build/esm/types/components/Table/Table.d.ts +16 -4
- package/build/index.d.ts +17 -17
- package/build/types/assets/icons/Flag.d.ts +3 -0
- package/build/types/components/Icon/icons.d.ts +1 -0
- package/build/types/components/Table/Column.d.ts +1 -1
- package/build/types/components/Table/Content.d.ts +16 -4
- package/build/types/components/Table/HeaderCell.d.ts +1 -1
- package/build/types/components/Table/Table.d.ts +16 -4
- package/package.json +1 -1
|
@@ -146,6 +146,7 @@ declare const icons: {
|
|
|
146
146
|
'eye-on': typeof EyeOn;
|
|
147
147
|
facebook: typeof Facebook;
|
|
148
148
|
filter: typeof Filter;
|
|
149
|
+
flag: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
149
150
|
flask: typeof Flask;
|
|
150
151
|
group: typeof Group;
|
|
151
152
|
hash: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,5 +6,5 @@ type ColumnProps = {
|
|
|
6
6
|
/** The string value to display if the child text is undefined (i.e. "N/A", "—") */
|
|
7
7
|
defaultValue?: string;
|
|
8
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;
|
|
9
|
+
declare const Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, ...rest }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Column;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { FlexDirection, FlexPosition } from '../types';
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
import { As, FlexDirection, FlexPosition } from '../types';
|
|
3
|
+
type DefaultContentProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
3
4
|
export type ContentProps = {
|
|
4
5
|
/** The flex positioning of the content */
|
|
5
6
|
contentPosition?: FlexPosition;
|
|
@@ -11,9 +12,20 @@ export type ContentProps = {
|
|
|
11
12
|
align?: FlexPosition;
|
|
12
13
|
/** The flex gap of the content */
|
|
13
14
|
gap?: number | string;
|
|
14
|
-
};
|
|
15
|
+
} & DefaultContentProps;
|
|
15
16
|
declare const Content: import("@emotion/styled").StyledComponent<{
|
|
16
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
-
} &
|
|
19
|
+
} & {
|
|
20
|
+
/** The flex positioning of the content */
|
|
21
|
+
contentPosition?: FlexPosition | undefined;
|
|
22
|
+
/** The flex direction of the content */
|
|
23
|
+
direction?: FlexDirection | undefined;
|
|
24
|
+
/** The flex positioning of the content */
|
|
25
|
+
justify?: FlexPosition | undefined;
|
|
26
|
+
/** The flex alignment of the content */
|
|
27
|
+
align?: FlexPosition | undefined;
|
|
28
|
+
/** The flex gap of the content */
|
|
29
|
+
gap?: string | number | undefined;
|
|
30
|
+
} & Omit<HTMLProps<HTMLDivElement>, "as"> & As, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
31
|
export default Content;
|
|
@@ -10,5 +10,5 @@ type HeaderCellProps = {
|
|
|
10
10
|
/** The property of the data object to sort by */
|
|
11
11
|
sortKey?: string;
|
|
12
12
|
} & ContentProps;
|
|
13
|
-
declare const HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, ...rest }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default HeaderCell;
|
|
@@ -10,19 +10,31 @@ 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, justify, align, direction, gap, sorted, sortKey, }: {
|
|
13
|
+
HeaderCell: ({ children, onClick, contentPosition, justify, align, direction, gap, sorted, sortKey, ...rest }: {
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
onClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
16
16
|
sorted?: import("./types").SortDir | undefined;
|
|
17
17
|
sortKey?: string | undefined;
|
|
18
|
-
} &
|
|
18
|
+
} & {
|
|
19
|
+
contentPosition?: import("../types").FlexPosition | undefined;
|
|
20
|
+
direction?: import("../types").FlexDirection | undefined;
|
|
21
|
+
justify?: import("../types").FlexPosition | undefined;
|
|
22
|
+
align?: import("../types").FlexPosition | undefined;
|
|
23
|
+
gap?: string | number | undefined;
|
|
24
|
+
} & Omit<import("react").HTMLProps<HTMLDivElement>, "as"> & import("../types").As) => import("react/jsx-runtime").JSX.Element;
|
|
19
25
|
Body: ({ children, height, maxHeight, ...rest }: {
|
|
20
26
|
children: ReactNode;
|
|
21
27
|
} & import("../types").Height & import("../types").MaxHeight & Omit<import("react").HTMLProps<HTMLTableSectionElement>, "as"> & import("../types").As) => import("react/jsx-runtime").JSX.Element;
|
|
22
28
|
Row: ({ children, columns, onClick, columnStyles, ...rest }: import("./types").TableHeaderRow) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
|
|
29
|
+
Column: ({ children, contentPosition, direction, justify, align, gap, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, ...rest }: {
|
|
24
30
|
children?: ReactNode;
|
|
25
31
|
defaultValue?: string | undefined;
|
|
26
|
-
} & import("../types").Padding &
|
|
32
|
+
} & import("../types").Padding & {
|
|
33
|
+
contentPosition?: import("../types").FlexPosition | undefined;
|
|
34
|
+
direction?: import("../types").FlexDirection | undefined;
|
|
35
|
+
justify?: import("../types").FlexPosition | undefined;
|
|
36
|
+
align?: import("../types").FlexPosition | undefined;
|
|
37
|
+
gap?: string | number | undefined;
|
|
38
|
+
} & Omit<import("react").HTMLProps<HTMLDivElement>, "as"> & import("../types").As) => import("react/jsx-runtime").JSX.Element;
|
|
27
39
|
};
|
|
28
40
|
export default Table;
|