@instructure/ui-table 10.24.0 → 10.24.1-snapshot-1

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.
@@ -12,11 +12,11 @@ declare class Row extends Component<TableRowProps> {
12
12
  static contextType: import("react").Context<import("../TableContext").TableContextType>;
13
13
  context: ContextType<typeof TableContext>;
14
14
  static allowedProps: readonly (keyof {
15
- children?: React.ReactElement | React.ReactElement[];
15
+ children?: React.ReactElement | null | undefined | boolean | (React.ReactElement | null | undefined | boolean)[];
16
16
  setHoverStateTo?: boolean;
17
17
  })[];
18
18
  static propTypes: import("@instructure/shared-types").PropValidators<keyof {
19
- children?: React.ReactElement | React.ReactElement[];
19
+ children?: React.ReactElement | null | undefined | boolean | (React.ReactElement | null | undefined | boolean)[];
20
20
  setHoverStateTo?: boolean;
21
21
  }>;
22
22
  static defaultProps: {
@@ -6,9 +6,12 @@ type TableRowOwnProps = {
6
6
  * A row's children should be table cells. Its children should have the
7
7
  * `header` prop to render the column header in `stacked` layout
8
8
  *
9
- * By default `Table.ColHeader` or `Table.RowHeader` or `Table.Cell`
9
+ * By default, `Table.ColHeader` or `Table.RowHeader` or `Table.Cell`.
10
+ *
11
+ * Falsy values are also allowed to be able to use syntax like
12
+ * `{condition && <Table.Cell>bla<Table.Cell>}`
10
13
  */
11
- children?: React.ReactElement | React.ReactElement[];
14
+ children?: React.ReactElement | null | undefined | boolean | (React.ReactElement | null | undefined | boolean)[];
12
15
  /**
13
16
  * Controls the hover state of the row.
14
17
  * When set to true, the row will appear highlighted even when not hovered.
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Row/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE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