@instructure/ui-table 8.14.1-snapshot.63 → 8.14.1-snapshot.66
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/es/Table/Head/index.js +6 -6
- package/es/Table/index.js +7 -7
- package/lib/Table/Head/index.js +8 -10
- package/lib/Table/index.js +7 -9
- package/package.json +17 -17
- package/src/Table/Body/index.tsx +11 -13
- package/src/Table/Head/index.tsx +10 -18
- package/src/Table/Row/index.tsx +16 -9
- package/src/Table/index.tsx +34 -28
- package/src/Table/props.ts +31 -4
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Table/Body/index.d.ts.map +1 -1
- package/types/Table/Head/index.d.ts +5 -5
- package/types/Table/Head/index.d.ts.map +1 -1
- package/types/Table/Row/index.d.ts.map +1 -1
- package/types/Table/index.d.ts +6 -6
- package/types/Table/index.d.ts.map +1 -1
- package/types/Table/props.d.ts +19 -1
- package/types/Table/props.d.ts.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Body/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Body/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAQ3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C;;;;;;GAMG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1C,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;MAElB;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAuBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/** @jsx jsx */
|
2
|
-
import
|
2
|
+
import { Component } from 'react';
|
3
3
|
import { jsx } from '@instructure/emotion';
|
4
4
|
import type { TableHeadProps } from './props';
|
5
5
|
/**
|
@@ -13,13 +13,13 @@ 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?:
|
17
|
-
children?:
|
16
|
+
renderSortLabel?: import("react").ReactNode | (() => import("react").ReactNode);
|
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?:
|
22
|
-
children?:
|
21
|
+
renderSortLabel?: import("react").ReactNode | (() => import("react").ReactNode);
|
22
|
+
children?: import("react").ReactNode;
|
23
23
|
}>;
|
24
24
|
static defaultProps: {
|
25
25
|
children: null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAa3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C;;;;;;GAMG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1C,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;MAElB;IAED,IAAI,UAAU,YAgBb;IAED,iBAAiB;IAIjB,kBAAkB;IAUlB,YAAY;IAmFZ,MAAM;CAaP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Row/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/Row/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAS3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C;;;;;;GAMG;AACH,cACM,GAAI,SAAQ,SAAS,CAAC,aAAa,CAAC;IACxC,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,YAAY;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;MAElB;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAwCP;AAED,eAAe,GAAG,CAAA;AAClB,OAAO,EAAE,GAAG,EAAE,CAAA"}
|
package/types/Table/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/** @jsx jsx */
|
2
|
-
import
|
2
|
+
import { Component } from 'react';
|
3
3
|
import { jsx } from '@instructure/emotion';
|
4
4
|
import { Head } from './Head';
|
5
5
|
import { Body } from './Body';
|
@@ -17,20 +17,20 @@ category: components
|
|
17
17
|
declare class Table extends Component<TableProps> {
|
18
18
|
static readonly componentId = "Table";
|
19
19
|
static allowedProps: readonly (keyof {
|
20
|
-
caption?:
|
20
|
+
caption?: import("react").ReactNode;
|
21
21
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
22
22
|
elementRef?: ((element: Element | null) => void) | undefined;
|
23
23
|
hover?: boolean | undefined;
|
24
24
|
layout?: "auto" | "fixed" | "stacked" | undefined;
|
25
|
-
children?:
|
25
|
+
children?: import("react").ReactNode;
|
26
26
|
})[];
|
27
27
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
28
|
-
caption?:
|
28
|
+
caption?: import("react").ReactNode;
|
29
29
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
30
30
|
elementRef?: ((element: Element | null) => void) | undefined;
|
31
31
|
hover?: boolean | undefined;
|
32
32
|
layout?: "auto" | "fixed" | "stacked" | undefined;
|
33
|
-
children?:
|
33
|
+
children?: import("react").ReactNode;
|
34
34
|
}>;
|
35
35
|
static defaultProps: {
|
36
36
|
children: null;
|
@@ -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():
|
50
|
+
getHeaders(): (import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal)[] | undefined;
|
51
51
|
render(): jsx.JSX.Element;
|
52
52
|
}
|
53
53
|
export default Table;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAU3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,KAAK,EACV,UAAU,EAOX,MAAM,SAAS,CAAA;AAIhB;;;;;GAKG;AACH,cACM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;MAIlB;IAED,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,GAAG,aAAM;IAChB,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,IAAI,cAAO;IAElB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,UAAU;IAqBV,MAAM;CA2CP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
package/types/Table/props.d.ts
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
3
3
|
import type { OtherHTMLAttributes, PropValidators, TableTheme } from '@instructure/shared-types';
|
4
|
+
import { Head } from './Head';
|
5
|
+
import type { TableHeadProps } from './Head/props';
|
6
|
+
import { Body } from './Body';
|
7
|
+
import type { TableBodyProps } from './Body/props';
|
8
|
+
import { Row } from './Row';
|
9
|
+
import type { TableRowProps } from './Row/props';
|
10
|
+
import { ColHeader } from './ColHeader';
|
11
|
+
import type { TableColHeaderProps } from './ColHeader/props';
|
12
|
+
import { RowHeader } from './RowHeader';
|
13
|
+
import type { TableRowHeaderProps } from './RowHeader/props';
|
14
|
+
import { Cell } from './Cell';
|
15
|
+
import type { TableCellProps } from './Cell/props';
|
16
|
+
declare type HeadChild = React.ComponentElement<TableHeadProps, Head>;
|
17
|
+
declare type BodyChild = React.ComponentElement<TableBodyProps, Body>;
|
18
|
+
declare type RowChild = React.ComponentElement<TableRowProps, Row>;
|
19
|
+
declare type ColHeaderChild = React.ComponentElement<TableColHeaderProps, ColHeader>;
|
20
|
+
declare type RowHeaderChild = React.ComponentElement<TableRowHeaderProps, RowHeader>;
|
21
|
+
declare type CellChild = React.ComponentElement<TableCellProps, Cell>;
|
4
22
|
declare type TableOwnProps = {
|
5
23
|
/**
|
6
24
|
* Provide a screen reader friendly description. Anything passed to this
|
@@ -38,6 +56,6 @@ declare type TableProps = TableOwnProps & WithStyleProps<TableTheme, TableStyle>
|
|
38
56
|
declare type TableStyle = ComponentStyle<'table'>;
|
39
57
|
declare const propTypes: PropValidators<PropKeys>;
|
40
58
|
declare const allowedProps: AllowedPropKeys;
|
41
|
-
export type { TableProps, TableStyle };
|
59
|
+
export type { TableProps, TableStyle, HeadChild, BodyChild, RowChild, ColHeaderChild, RowHeaderChild, CellChild };
|
42
60
|
export { propTypes, allowedProps };
|
43
61
|
//# sourceMappingURL=props.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Table/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Table/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAA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