@theroutingcompany/components 0.0.22 → 0.0.23

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": "@theroutingcompany/components",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -23,4 +23,5 @@ export declare const pageMinMaxWidth: import("styled-components").FlattenSimpleI
23
23
  * | Max width | `--page-max-width` | 1600px |
24
24
  */
25
25
  export declare const Page: import("styled-components").StyledComponent<"div", any, {}, never>;
26
+ /** This is just a <Box/> with a name for consistent padding on page layouts */
26
27
  export declare const PageContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,12 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
+ /** Wrapper for page content with padding
3
+ *
4
+ * | Description | CSS Variable | Default |
5
+ * |-----------------|---------------------|----------|
6
+ * | Padding top | `--padding-top` | 1.5rem |
7
+ * | Padding bottom | `--padding-bottom` | 1.5rem |
8
+
9
+ */
2
10
  export declare const PageHeader: import("styled-components").StyledComponent<"header", any, {}, never>;
3
11
  export declare const StickyPageHeader: ({ children, className, }: ComponentPropsWithoutRef<'div'>) => JSX.Element;
4
12
  export declare const PageHeaderContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -15,6 +15,7 @@ type PaginationProps = {
15
15
  onNext(): void;
16
16
  ariaLabel?: string | undefined;
17
17
  className?: string | undefined;
18
+ displayAtMost?: number | undefined;
18
19
  };
19
- export declare function Pagination({ nrOfPages, currentPage, onPrevious, onClick, onNext, className, ariaLabel, }: PaginationProps): JSX.Element;
20
+ export declare function Pagination({ nrOfPages, currentPage, onPrevious, onClick, onNext, className, ariaLabel, displayAtMost, }: PaginationProps): JSX.Element;
20
21
  export {};