@instructure/ui-table 8.26.2 → 8.26.4-snapshot-3
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/CHANGELOG.md +15 -0
- package/es/Table/ColHeader/index.js +1 -1
- package/lib/Table/ColHeader/index.js +1 -1
- package/package.json +17 -17
- package/src/Table/Cell/props.ts +3 -3
- package/src/Table/ColHeader/index.tsx +1 -1
- package/src/Table/ColHeader/props.ts +1 -1
- package/src/Table/Head/props.ts +2 -1
- package/src/Table/RowHeader/props.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Table/Body/index.d.ts +2 -2
- package/types/Table/Cell/index.d.ts +4 -4
- package/types/Table/Cell/props.d.ts +3 -4
- package/types/Table/Cell/props.d.ts.map +1 -1
- package/types/Table/ColHeader/index.d.ts +3 -3
- package/types/Table/ColHeader/props.d.ts +1 -1
- package/types/Table/ColHeader/props.d.ts.map +1 -1
- package/types/Table/Head/index.d.ts +2 -2
- package/types/Table/Head/props.d.ts +2 -2
- package/types/Table/Head/props.d.ts.map +1 -1
- package/types/Table/Row/index.d.ts +2 -2
- package/types/Table/RowHeader/index.d.ts +2 -2
- package/types/Table/RowHeader/props.d.ts +2 -3
- package/types/Table/RowHeader/props.d.ts.map +1 -1
- package/types/Table/index.d.ts +1 -1
@@ -14,13 +14,13 @@ declare class Body extends Component<TableBodyProps> {
|
|
14
14
|
static allowedProps: readonly (keyof {
|
15
15
|
hover?: boolean | undefined;
|
16
16
|
isStacked?: boolean | undefined;
|
17
|
-
headers?:
|
17
|
+
headers?: import("@instructure/shared-types").Renderable<never>[] | undefined;
|
18
18
|
children?: import("react").ReactNode;
|
19
19
|
})[];
|
20
20
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
21
21
|
hover?: boolean | undefined;
|
22
22
|
isStacked?: boolean | undefined;
|
23
|
-
headers?:
|
23
|
+
headers?: import("@instructure/shared-types").Renderable<never>[] | undefined;
|
24
24
|
children?: import("react").ReactNode;
|
25
25
|
}>;
|
26
26
|
static defaultProps: {
|
@@ -13,15 +13,15 @@ declare class Cell extends Component<TableCellProps> {
|
|
13
13
|
static readonly componentId = "Table.Cell";
|
14
14
|
static allowedProps: readonly (keyof {
|
15
15
|
isStacked?: boolean | undefined;
|
16
|
-
header?: import("
|
16
|
+
header?: import("@instructure/shared-types").Renderable<never>;
|
17
17
|
textAlign?: "start" | "center" | "end" | undefined;
|
18
|
-
children?: import("
|
18
|
+
children?: import("@instructure/shared-types").Renderable<never>;
|
19
19
|
})[];
|
20
20
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
21
21
|
isStacked?: boolean | undefined;
|
22
|
-
header?: import("
|
22
|
+
header?: import("@instructure/shared-types").Renderable<never>;
|
23
23
|
textAlign?: "start" | "center" | "end" | undefined;
|
24
|
-
children?: import("
|
24
|
+
children?: import("@instructure/shared-types").Renderable<never>;
|
25
25
|
}>;
|
26
26
|
static defaultProps: {
|
27
27
|
textAlign: string;
|
@@ -1,14 +1,13 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
3
|
-
import type { OtherHTMLAttributes, PropValidators, TableCellTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, Renderable, TableCellTheme } from '@instructure/shared-types';
|
4
3
|
declare type TableCellOwnProps = {
|
5
4
|
isStacked?: boolean;
|
6
|
-
header?:
|
5
|
+
header?: Renderable;
|
7
6
|
/**
|
8
7
|
* Control the text alignment in cell
|
9
8
|
*/
|
10
9
|
textAlign?: 'start' | 'center' | 'end';
|
11
|
-
children?:
|
10
|
+
children?: Renderable;
|
12
11
|
};
|
13
12
|
declare type PropKeys = keyof TableCellOwnProps;
|
14
13
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Cell/props.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Cell/props.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,aAAK,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAKvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -21,7 +21,7 @@ declare class ColHeader extends Component<TableColHeaderProps> {
|
|
21
21
|
id: string;
|
22
22
|
}) => void) | undefined;
|
23
23
|
scope?: "row" | "col" | "rowgroup" | "colgroup" | "auto" | undefined;
|
24
|
-
children?: React.ReactNode
|
24
|
+
children?: React.ReactNode;
|
25
25
|
})[];
|
26
26
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
27
27
|
id: string;
|
@@ -33,7 +33,7 @@ declare class ColHeader extends Component<TableColHeaderProps> {
|
|
33
33
|
id: string;
|
34
34
|
}) => void) | undefined;
|
35
35
|
scope?: "row" | "col" | "rowgroup" | "colgroup" | "auto" | undefined;
|
36
|
-
children?: React.ReactNode
|
36
|
+
children?: React.ReactNode;
|
37
37
|
}>;
|
38
38
|
static defaultProps: {
|
39
39
|
textAlign: string;
|
@@ -44,7 +44,7 @@ declare class ColHeader extends Component<TableColHeaderProps> {
|
|
44
44
|
componentDidMount(): void;
|
45
45
|
componentDidUpdate(): void;
|
46
46
|
handleClick: (event: React.SyntheticEvent) => void;
|
47
|
-
renderSortArrow(): jsx.JSX.Element |
|
47
|
+
renderSortArrow(): jsx.JSX.Element | undefined;
|
48
48
|
render(): jsx.JSX.Element;
|
49
49
|
}
|
50
50
|
export default ColHeader;
|
@@ -35,7 +35,7 @@ declare type TableColHeaderOwnProps = {
|
|
35
35
|
* The column header scope attribute. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
|
36
36
|
*/
|
37
37
|
scope?: 'row' | 'col' | 'rowgroup' | 'colgroup' | 'auto';
|
38
|
-
children?: React.ReactNode
|
38
|
+
children?: React.ReactNode;
|
39
39
|
};
|
40
40
|
declare type PropKeys = keyof TableColHeaderOwnProps;
|
41
41
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/ColHeader/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAG/C,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAA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Y,CAAA;IACnD;;OAEG;IACH,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,KAAK,CAAC,cAAc,EAC3B,KAAK,EAAE;QAAE,EAAE,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAA;KAAE,KACxC,IAAI,CAAA;IACT;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CACjB,sBAAsB,EACtB,gBAAgB,CAAC,sBAAsB,CAAC,CACzC,CAAA;AAEH,aAAK,mBAAmB,GAAG,cAAc,CACvC,WAAW,GAAG,QAAQ,GAAG,eAAe,CACzC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CASvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -13,12 +13,12 @@ declare class Head extends Component<TableHeadProps> {
|
|
13
13
|
static readonly componentId = "Table.Head";
|
14
14
|
static allowedProps: readonly (keyof {
|
15
15
|
isStacked?: boolean | undefined;
|
16
|
-
renderSortLabel?: import("
|
16
|
+
renderSortLabel?: import("@instructure/shared-types").Renderable<never>;
|
17
17
|
children?: import("react").ReactNode;
|
18
18
|
})[];
|
19
19
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
20
20
|
isStacked?: boolean | undefined;
|
21
|
-
renderSortLabel?: import("
|
21
|
+
renderSortLabel?: import("@instructure/shared-types").Renderable<never>;
|
22
22
|
children?: import("react").ReactNode;
|
23
23
|
}>;
|
24
24
|
static defaultProps: {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { OtherHTMLAttributes, PropValidators, TableHeadTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, Renderable, TableHeadTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableHeadOwnProps = {
|
5
5
|
isStacked?: boolean;
|
6
|
-
renderSortLabel?:
|
6
|
+
renderSortLabel?: Renderable;
|
7
7
|
/**
|
8
8
|
* `Table.Row`
|
9
9
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AACD,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,aAAK,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAIvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAInB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -14,13 +14,13 @@ declare class Row extends Component<TableRowProps> {
|
|
14
14
|
static allowedProps: readonly (keyof {
|
15
15
|
hover?: boolean | undefined;
|
16
16
|
isStacked?: boolean | undefined;
|
17
|
-
headers?:
|
17
|
+
headers?: import("@instructure/shared-types").Renderable<never>[] | undefined;
|
18
18
|
children?: import("react").ReactNode;
|
19
19
|
})[];
|
20
20
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
21
21
|
hover?: boolean | undefined;
|
22
22
|
isStacked?: boolean | undefined;
|
23
|
-
headers?:
|
23
|
+
headers?: import("@instructure/shared-types").Renderable<never>[] | undefined;
|
24
24
|
children?: import("react").ReactNode;
|
25
25
|
}>;
|
26
26
|
static defaultProps: {
|
@@ -14,12 +14,12 @@ declare class RowHeader extends Component<TableRowHeaderProps> {
|
|
14
14
|
static allowedProps: readonly (keyof {
|
15
15
|
isStacked?: boolean | undefined;
|
16
16
|
textAlign?: "start" | "center" | "end" | undefined;
|
17
|
-
children?: import("
|
17
|
+
children?: import("@instructure/shared-types").Renderable<never>;
|
18
18
|
})[];
|
19
19
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
20
20
|
isStacked?: boolean | undefined;
|
21
21
|
textAlign?: "start" | "center" | "end" | undefined;
|
22
|
-
children?: import("
|
22
|
+
children?: import("@instructure/shared-types").Renderable<never>;
|
23
23
|
}>;
|
24
24
|
static defaultProps: {
|
25
25
|
textAlign: string;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import type { OtherHTMLAttributes, PropValidators, TableRowHeaderTheme } from '@instructure/shared-types';
|
1
|
+
import type { OtherHTMLAttributes, PropValidators, Renderable, TableRowHeaderTheme } from '@instructure/shared-types';
|
3
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
3
|
declare type TableRowHeaderOwnProps = {
|
5
4
|
isStacked?: boolean;
|
@@ -7,7 +6,7 @@ declare type TableRowHeaderOwnProps = {
|
|
7
6
|
* Control the text alignment in row header
|
8
7
|
*/
|
9
8
|
textAlign?: 'start' | 'center' | 'end';
|
10
|
-
children?:
|
9
|
+
children?: Renderable;
|
11
10
|
};
|
12
11
|
declare type PropKeys = keyof TableRowHeaderOwnProps;
|
13
12
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/RowHeader/props.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/RowHeader/props.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,aAAK,mBAAmB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAEtD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAIvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAwD,CAAA;AAE5E,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Table/index.d.ts
CHANGED
@@ -47,7 +47,7 @@ declare class Table extends Component<TableProps> {
|
|
47
47
|
handleRef: (el: Element | null) => void;
|
48
48
|
componentDidMount(): void;
|
49
49
|
componentDidUpdate(): void;
|
50
|
-
getHeaders(): (import("react").
|
50
|
+
getHeaders(): (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal)[] | undefined;
|
51
51
|
render(): jsx.JSX.Element;
|
52
52
|
}
|
53
53
|
export default Table;
|