@pantheon-systems/pds-toolkit-react 1.0.0-dev.232 → 1.0.0-dev.234

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.
@@ -0,0 +1,20 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './docs-layout.css';
3
+ /**
4
+ * Prop types for DocsLayout
5
+ */
6
+ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Children to render in the layout.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
15
+ }
16
+ /**
17
+ * DocsLayout UI component
18
+ */
19
+ export declare const DocsLayout: ({ children, className, ...props }: DocsLayoutProps) => React.JSX.Element;
20
+ export {};
@@ -6,7 +6,7 @@ type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseli
6
6
  type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
7
7
  type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
8
8
  type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
9
- type FlexGapOptions = GridGapOptions | 'none';
9
+ type FlexGapOptions = GridGapOptions | 'minimal' | 'none';
10
10
  interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
11
11
  /**
12
12
  * Aligns content when there is extra space in the cross-axis.
@@ -5,7 +5,7 @@ import { GridGapOptions } from '@layouts/layout-types';
5
5
  */
6
6
  interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
7
  /**
8
- * Children to render in the layout.
8
+ * Children to render in the layout. All children must be assigned to a named slot — either 'sidebar' or 'content'.
9
9
  */
10
10
  children: ReactNode;
11
11
  /**
@@ -1,2 +1,2 @@
1
- export type GridGapOptions = 'narrow' | 'standard' | 'wide';
1
+ export type GridGapOptions = 'wide' | 'standard' | 'narrow';
2
2
  export type VerticalAlignOptions = 'start' | 'center' | 'end';
@@ -1,6 +1,16 @@
1
1
  import React from 'react';
2
2
  export declare const dialogMsgBase = "Activated menu item => ";
3
3
  import { UserMenuItem } from '@components/navigation/UserMenu/UserMenu';
4
+ export declare const buttonNavSampleMenuItems: ({
5
+ linkContent: React.JSX.Element;
6
+ isActive: boolean;
7
+ } | {
8
+ linkContent: React.JSX.Element;
9
+ isActive?: undefined;
10
+ })[];
11
+ export declare const buttonNavSampleMenuItemsRR: {
12
+ linkContent: React.JSX.Element;
13
+ }[];
4
14
  export declare const blogMenuItems: {
5
15
  linkContent: React.JSX.Element;
6
16
  }[];
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.232",
4
+ "version": "1.0.0-dev.234",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",
@@ -137,6 +137,7 @@
137
137
  "@floating-ui/react-dom": "~1.3.0",
138
138
  "@pantheon-systems/pds-design-tokens": "^1.0.0-dev.156",
139
139
  "@reactuses/core": "^5.0.15",
140
+ "downshift": "^9.0.8",
140
141
  "focus-trap-react": "^10.2.1",
141
142
  "hash-sum": "^2.0.0",
142
143
  "prism-react-renderer": "^2.4.1",