@pantheon-systems/pds-toolkit-react 1.0.0-dev.175 → 1.0.0-dev.176
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/index.d.ts +1 -1
- package/_dist/index.js +1368 -1396
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +35 -20
- package/_dist/layouts/layout-types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,21 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { GridGapOptions } from '@layouts/layout-types';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for SidebarLayout
|
|
5
|
+
*/
|
|
6
|
+
interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Children to render in the layout.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Gap between grid items
|
|
13
|
+
*/
|
|
14
|
+
gridGap?: GridGapOptions;
|
|
15
|
+
/**
|
|
16
|
+
* Sidebar location.
|
|
17
|
+
*/
|
|
18
|
+
sidebarLocation?: 'left' | 'right';
|
|
19
|
+
/**
|
|
20
|
+
* Sidebar location on mobile.
|
|
21
|
+
*/
|
|
22
|
+
sidebarMobileLocation?: 'before' | 'after';
|
|
23
|
+
/**
|
|
24
|
+
* Sidebar width.
|
|
25
|
+
*/
|
|
26
|
+
sidebarWidth?: 'narrow' | 'standard' | 'wide';
|
|
27
|
+
/**
|
|
28
|
+
* Additional class names
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
19
31
|
}
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
/**
|
|
33
|
+
* SidebarLayout UI component
|
|
34
|
+
*/
|
|
35
|
+
export declare const SidebarLayout: ({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: SidebarLayoutProps) => React.JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GridGapOptions = 'narrow' | 'standard' | 'wide';
|