shelving 1.253.3 → 1.253.5

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.253.3",
3
+ "version": "1.253.5",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,7 @@
72
72
 
73
73
  .mainInner {
74
74
  width: 100%;
75
- max-width: var(--width-wide);
75
+ max-width: var(--width-narrow);
76
76
  margin: auto;
77
77
  }
78
78
  }
@@ -103,5 +103,5 @@ export function ErrorNotice({ reason }) {
103
103
  */
104
104
  export function ErrorPage({ reason }) {
105
105
  const message = getMessage(reason) ?? "Unknown error";
106
- return (_jsx(Page, { title: "Error", children: _jsx(CenteredLayout, { children: _jsx(Card, { status: "error", children: _jsxs(Subheading, { children: [_jsxs(Row, { left: true, children: [_jsx(StatusIcon, { status: "error", size: "xlarge" }), " ", message] }), _jsx(RetryButton, {})] }) }) }) }));
106
+ return (_jsx(Page, { title: "Error", children: _jsx(CenteredLayout, { children: _jsxs(Card, { status: "error", children: [_jsx(Subheading, { children: _jsxs(Row, { left: true, children: [_jsx(StatusIcon, { status: "error", size: "xlarge" }), " ", message] }) }), _jsx(RetryButton, {})] }) }) }));
107
107
  }
@@ -187,8 +187,8 @@ export function ErrorPage({ reason }: ErrorPageProps): ReactElement {
187
187
  <Row left>
188
188
  <StatusIcon status="error" size="xlarge" /> {message}
189
189
  </Row>
190
- <RetryButton />
191
190
  </Subheading>
191
+ <RetryButton />
192
192
  </Card>
193
193
  </CenteredLayout>
194
194
  </Page>
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @see https://dhoulb.github.io/shelving/ui/style/Space/SpaceValue
5
5
  */
6
- export type SpaceValue = "none" | "xxsmall" | "xsmall" | "small" | "normal" | "large" | "xlarge" | "xxlarge" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "7x" | "8x" | "9x" | "10x";
6
+ export type SpaceValue = "section" | "paragraph" | "none" | "xxsmall" | "xsmall" | "small" | "normal" | "large" | "xlarge" | "xxlarge" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "7x" | "8x" | "9x" | "10x";
7
7
  /**
8
8
  * Variants to control block spacing on components, e.g. `space="large"`.
9
9
  *
@@ -75,4 +75,11 @@
75
75
  .space-10x {
76
76
  margin-block: calc(var(--space-normal) * 10);
77
77
  }
78
+
79
+ .space-section {
80
+ margin-block: var(--space-section);
81
+ }
82
+ .space-paragraph {
83
+ margin-block: var(--space-paragraph);
84
+ }
78
85
  }
@@ -7,6 +7,8 @@ import SPACE_CSS from "./Space.module.css";
7
7
  * @see https://dhoulb.github.io/shelving/ui/style/Space/SpaceValue
8
8
  */
9
9
  export type SpaceValue =
10
+ | "section"
11
+ | "paragraph"
10
12
  | "none"
11
13
  | "xxsmall"
12
14
  | "xsmall"