@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/dist/trc-components.es.js +37 -24
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +13 -8
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Page/Page.d.ts +1 -0
- package/types/components/Page/PageHeader.d.ts +8 -0
- package/types/components/Paginator/Paginator.d.ts +2 -1
package/package.json
CHANGED
|
@@ -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 {};
|