@instructure/ui-table 11.7.7 → 11.7.8-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 +7 -0
- package/es/Table/v2/Row/index.js +50 -47
- package/es/Table/v2/Row/styles.js +7 -7
- package/lib/Table/v2/Row/index.js +49 -46
- package/lib/Table/v2/Row/styles.js +7 -7
- package/package.json +14 -14
- package/src/Table/v2/Row/index.tsx +44 -52
- package/src/Table/v2/Row/props.ts +2 -2
- package/src/Table/v2/Row/styles.ts +10 -10
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Table/v2/Row/index.d.ts +12 -19
- package/types/Table/v2/Row/index.d.ts.map +1 -1
- package/types/Table/v2/Row/props.d.ts +2 -2
- package/types/Table/v2/Row/props.d.ts.map +1 -1
- package/types/Table/v2/Row/styles.d.ts +4 -5
- package/types/Table/v2/Row/styles.d.ts.map +1 -1
- package/types/Table/v2/index.d.ts +12 -2
- package/types/Table/v2/index.d.ts.map +1 -1
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import { Component, ContextType } from 'react';
|
|
2
|
-
import type { TableRowProps } from './props';
|
|
3
|
-
import TableContext from '../TableContext.js';
|
|
4
1
|
/**
|
|
5
2
|
---
|
|
6
3
|
parent: Table
|
|
7
4
|
id: Table.Row
|
|
8
5
|
---
|
|
9
6
|
**/
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
componentDidUpdate(): void;
|
|
24
|
-
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
-
}
|
|
7
|
+
declare const Row: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
9
|
+
setHoverStateTo?: boolean;
|
|
10
|
+
} & import("@instructure/emotion").NewThemeOverrideProp<import("@instructure/ui-themes/types/themes/newThemeTokens/componentTypes/tableRow.js").TableRow> & Omit<import("react").AllHTMLAttributes<{
|
|
11
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
12
|
+
setHoverStateTo?: boolean;
|
|
13
|
+
} & Element>, "dir" | keyof {
|
|
14
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
15
|
+
setHoverStateTo?: boolean;
|
|
16
|
+
}> & {
|
|
17
|
+
dir?: 'ltr' | 'rtl';
|
|
18
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
26
19
|
export default Row;
|
|
27
20
|
export { Row };
|
|
28
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/index.tsx"],"names":[],"mappings":"AA2CA;;;;;GAKG;AACH,QAAA,MAAM,GAAG;;;;;;;;;;;+CA2CP,CAAA;eAIa,GAAG;AAClB,OAAO,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
|
-
import type { ComponentStyle,
|
|
3
|
+
import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion';
|
|
4
4
|
import type { NewComponentTypes } from '@instructure/ui-themes';
|
|
5
5
|
type TableRowOwnProps = {
|
|
6
6
|
/**
|
|
@@ -22,7 +22,7 @@ type TableRowOwnProps = {
|
|
|
22
22
|
};
|
|
23
23
|
type PropKeys = keyof TableRowOwnProps;
|
|
24
24
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
25
|
-
type TableRowProps = TableRowOwnProps &
|
|
25
|
+
type TableRowProps = TableRowOwnProps & NewThemeOverrideProp<ReturnType<NewComponentTypes['TableRow']>> & OtherHTMLAttributes<TableRowOwnProps>;
|
|
26
26
|
type TableRowStyle = ComponentStyle<'row'>;
|
|
27
27
|
declare const allowedProps: AllowedPropKeys;
|
|
28
28
|
export type { TableRowProps, TableRowStyle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,KAAK,gBAAgB,GAAG;IACtB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EACL,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,GACvB,IAAI,GACJ,SAAS,GACT,OAAO,GACP,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,EAAE,CAAA;IAE5D;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,aAAa,GAAG,gBAAgB,GACnC,oBAAoB,CAAC,UAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,GAC/D,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEvC,KAAK,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAE1C,QAAA,MAAM,YAAY,EAAE,eAAiD,CAAA;AAErE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NewComponentTypes
|
|
1
|
+
import type { NewComponentTypes } from '@instructure/ui-themes';
|
|
2
2
|
import type { TableRowProps, TableRowStyle } from './props';
|
|
3
3
|
/**
|
|
4
4
|
* ---
|
|
@@ -6,14 +6,13 @@ import type { TableRowProps, TableRowStyle } from './props';
|
|
|
6
6
|
* ---
|
|
7
7
|
* Generates the style object from the theme and provided additional information
|
|
8
8
|
* @param {Object} componentTheme The theme variable object.
|
|
9
|
-
* @param {Object}
|
|
10
|
-
* @param {Object} _sharedTokens Shared token object (not used in this component)
|
|
11
|
-
* @param {Object} extraArgs the state of the component, the style is applied to
|
|
9
|
+
* @param {Object} params the props and Table context values the style depends on
|
|
12
10
|
* @return {Object} The final style object, which will be used in the component
|
|
13
11
|
*/
|
|
14
|
-
declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes['TableRow']>,
|
|
12
|
+
declare const generateStyle: (componentTheme: ReturnType<NewComponentTypes['TableRow']>, params: {
|
|
15
13
|
isStacked: boolean;
|
|
16
14
|
hover: boolean;
|
|
15
|
+
setHoverStateTo: TableRowProps['setHoverStateTo'];
|
|
17
16
|
}) => TableRowStyle;
|
|
18
17
|
export default generateStyle;
|
|
19
18
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/Table/v2/Row/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3D;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,mBACD,UAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,UACjD;IACN,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;CAClD,KACA,aAgCF,CAAA;eAEc,aAAa"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { Head } from './Head/index.js';
|
|
3
3
|
import { Body } from './Body/index.js';
|
|
4
|
-
import { Row } from './Row/index.js';
|
|
5
4
|
import { ColHeader } from './ColHeader/index.js';
|
|
6
5
|
import { RowHeader } from './RowHeader/index.js';
|
|
7
6
|
import { Cell } from './Cell/index.js';
|
|
@@ -30,7 +29,18 @@ declare class Table extends Component<TableProps> {
|
|
|
30
29
|
};
|
|
31
30
|
static Head: typeof Head;
|
|
32
31
|
static Body: typeof Body;
|
|
33
|
-
static Row:
|
|
32
|
+
static Row: import("react").ForwardRefExoticComponent<{
|
|
33
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
34
|
+
setHoverStateTo?: boolean;
|
|
35
|
+
} & import("@instructure/emotion").NewThemeOverrideProp<import("@instructure/ui-themes/types/themes/newThemeTokens/componentTypes/tableRow.js").TableRow> & Omit<import("react").AllHTMLAttributes<{
|
|
36
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
37
|
+
setHoverStateTo?: boolean;
|
|
38
|
+
} & Element>, "dir" | keyof {
|
|
39
|
+
children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
|
|
40
|
+
setHoverStateTo?: boolean;
|
|
41
|
+
}> & {
|
|
42
|
+
dir?: 'ltr' | 'rtl';
|
|
43
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
34
44
|
static ColHeader: typeof ColHeader;
|
|
35
45
|
static RowHeader: typeof RowHeader;
|
|
36
46
|
static Cell: typeof Cell;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAA0C,MAAM,OAAO,CAAA;AAUzE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Table/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAA0C,MAAM,OAAO,CAAA;AAUzE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAMzC;;;;GAIG;AACH,cACM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAElC,MAAM,CAAC,YAAY;QACjB,QAAQ;QACR,KAAK;QACL,MAAM;MACP;IAED,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,GAAG;;;;;;;;;;;oDAAM;IAChB,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,IAAI,cAAO;IAElB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,cAAc,EAAE,cAAc,GAAG,IAAI,CAAO;IAE5C,oBAAoB,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;IAEpD,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,iBAAiB,SAEhB;IAED,kBAAkB,CAAC,SAAS,EAAE,UAAU,QA0BvC;IAED,oBAAoB,SAGnB;IAED,UAAU,QAcT;IAED,mBAAmB,CAAC,KAAK,EAAE,UAAU;;;aAwBpC;IAED,cAAc,CAAC,KAAK,EAAE,UAAU,UAG/B;IAED,MAAM,qDA2DL;CACF;eAEc,KAAK;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
|