shelving 1.269.0 → 1.270.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shelving",
3
- "version": "1.269.0",
3
+ "version": "1.270.0",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
package/ui/block/Row.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement } from "react";
2
+ import { type BlockVariants } from "../style/Block.js";
2
3
  import { type FlexVariants } from "../style/Flex.js";
3
4
  import type { OptionalChildProps } from "../util/index.js";
4
5
  import type { BlockElement } from "./Block.js";
@@ -7,7 +8,7 @@ import type { BlockElement } from "./Block.js";
7
8
  *
8
9
  * @see https://shelving.cc/ui/RowProps
9
10
  */
10
- export interface RowProps extends FlexVariants, OptionalChildProps {
11
+ export interface RowProps extends BlockVariants, FlexVariants, OptionalChildProps {
11
12
  /**
12
13
  * Element this `<Row>` renders as, e.g. "header" to output a "<header>"
13
14
  * @default "div"
package/ui/block/Row.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from "react";
2
- import { getBlockClass } from "../style/Block.js";
2
+ import { type BlockVariants, getBlockClass } from "../style/Block.js";
3
3
  import { type FlexVariants, getFlexClass } from "../style/Flex.js";
4
4
  import { getClass } from "../util/css.js";
5
5
  import type { OptionalChildProps } from "../util/index.js";
@@ -10,7 +10,7 @@ import type { BlockElement } from "./Block.js";
10
10
  *
11
11
  * @see https://shelving.cc/ui/RowProps
12
12
  */
13
- export interface RowProps extends FlexVariants, OptionalChildProps {
13
+ export interface RowProps extends BlockVariants, FlexVariants, OptionalChildProps {
14
14
  /**
15
15
  * Element this `<Row>` renders as, e.g. "header" to output a "<header>"
16
16
  * @default "div"