@pantheon-systems/pds-toolkit-react 1.0.0-dev.267 → 1.0.0-dev.269

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,4 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth } from '@libs/types/custom-types';
2
3
  import './app-layout.css';
3
4
  /**
4
5
  * Prop types for AppLayout
@@ -8,6 +9,10 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
8
9
  * Children to render in the layout.
9
10
  */
10
11
  children: ReactNode;
12
+ /**
13
+ * PDS container width.
14
+ */
15
+ containerWidth?: ContainerWidth;
11
16
  /**
12
17
  * Is the sidebar able to be collapsed and expanded by the user?
13
18
  * If false or not provided, the sidebar will always be expanded.
@@ -25,6 +30,14 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
25
30
  collapseSidebar: string;
26
31
  expandSidebar: string;
27
32
  };
33
+ /**
34
+ * Element type for the main content area.
35
+ */
36
+ mainContentElement: 'div' | 'main';
37
+ /**
38
+ * Additional props for the main content element.
39
+ */
40
+ mainContentProps?: ComponentPropsWithoutRef<'div'> | ComponentPropsWithoutRef<'main'>;
28
41
  /**
29
42
  * Callback function to handle sidebar toggle.
30
43
  * If not provided, the sidebar will use an internal function to manage collapsed state.
@@ -44,6 +57,10 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
44
57
  * This is also the min-width of the sidebar when it is not collapsable (hasSidebarToggle is false).
45
58
  */
46
59
  sidebarExpandedWidthMin?: number;
60
+ /**
61
+ * Additional props for the sidebar `<div>` element.
62
+ */
63
+ sidebarProps?: ComponentPropsWithoutRef<'div'>;
47
64
  /**
48
65
  * Additional class names
49
66
  */
@@ -52,5 +69,5 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
52
69
  /**
53
70
  * AppLayout UI component
54
71
  */
55
- export declare const AppLayout: ({ children, hasSidebarToggle, isSidebarCollapsed, labels, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, className, ...props }: AppLayoutProps) => React.JSX.Element;
72
+ export declare const AppLayout: ({ children, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, className, ...props }: AppLayoutProps) => React.JSX.Element;
56
73
  export {};
@@ -97,7 +97,7 @@ export type SeparatorItemType = {
97
97
  */
98
98
  isSeparator: boolean;
99
99
  };
100
- export type SitePlanLevel = 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'elite';
100
+ export type SitePlanLevel = 'sandbox' | 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'elite';
101
101
  export declare const SitePlanLevelLabel: Record<SitePlanLevel, string>;
102
102
  export type SiteStatus = 'active' | 'frozen';
103
103
  export type SiteType = 'drupal' | 'wordpress' | 'gatsby' | 'nextjs';
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.267",
4
+ "version": "1.0.0-dev.269",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",