@pantheon-systems/pds-toolkit-react 1.0.0-dev.174 → 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.
@@ -1,21 +1,36 @@
1
- export function SidebarLayout({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- gridGap?: string;
5
- sidebarLocation?: string;
6
- sidebarMobileLocation?: string;
7
- sidebarWidth?: string;
8
- className: any;
9
- }): React.JSX.Element;
10
- export namespace SidebarLayout {
11
- namespace propTypes {
12
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- let gridGap: PropTypes.Requireable<string>;
14
- let sidebarLocation: PropTypes.Requireable<string>;
15
- let sidebarMobileLocation: PropTypes.Requireable<string>;
16
- let sidebarWidth: PropTypes.Requireable<string>;
17
- let className: PropTypes.Requireable<string>;
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
- import React from 'react';
21
- import PropTypes from 'prop-types';
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';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "1.0.0-dev.174",
4
+ "version": "1.0.0-dev.176",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",