@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.
@@ -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 class Row extends Component<TableRowProps> {
11
- static displayName: string;
12
- static readonly componentId = "Table.Row";
13
- static contextType: import("react").Context<import("../TableContext.js").TableContextType>;
14
- context: ContextType<typeof TableContext>;
15
- static allowedProps: readonly (keyof {
16
- children?: React.ReactElement<any> | null | undefined | boolean | (React.ReactElement<any> | null | undefined | boolean)[];
17
- setHoverStateTo?: boolean;
18
- })[];
19
- static defaultProps: {
20
- children: null;
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":"AAwBA,OAAO,EACL,SAAS,EAET,WAAW,EAGZ,MAAM,OAAO,CAAA;AASd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,YAAY,MAAM,oBAAoB,CAAA;AAE7C;;;;;GAKG;AACH,cACM,GAAI,SAAQ,SAAS,CAAC,aAAa,CAAC;IACxC,MAAM,CAAC,WAAW,SAAQ;IAC1B,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IACzC,MAAM,CAAC,WAAW,yEAAe;IACzB,OAAO,EAAE,WAAW,CAAC,OAAO,YAAY,CAAC,CAAA;IACjD,MAAM,CAAC,YAAY;;;SAAe;IAElC,MAAM,CAAC,YAAY;QACjB,QAAQ;MACT;IAED,iBAAiB,SAKhB;IAED,kBAAkB,SAKjB;IAED,MAAM,qDA0BL;CACF;eAEc,GAAG;AAClB,OAAO,EAAE,GAAG,EAAE,CAAA"}
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, WithStyleProps } from '@instructure/emotion';
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 & WithStyleProps<ReturnType<NewComponentTypes['TableRow']>, TableRowStyle> & OtherHTMLAttributes<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,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,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,cAAc,CAAC,UAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,EAAE,aAAa,CAAC,GACxE,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
+ {"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, SharedTokens } from '@instructure/ui-themes';
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} props the props of the component, the style is applied to
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']>, props: TableRowProps, _sharedTokens: SharedTokens, extraArgs: {
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,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3D;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa,mBACD,UAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,SAClD,aAAa,iBACL,YAAY,aAChB;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,KAChD,aAgCF,CAAA;eAEc,aAAa"}
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: typeof 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","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