@pantheon-systems/pds-toolkit-react 1.0.0-beta.1 → 1.0.0-beta.2

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.
@@ -5,7 +5,8 @@ import './dashboard-inner.css';
5
5
  */
6
6
  interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
7
7
  /**
8
- * Child elements to be assigned to named slots.
8
+ * Child elements. Main content can be passed without a slot attribute (unslotted).
9
+ * Optional named slots: `header-left`, `header-right`, `content` (for backwards compatibility).
9
10
  */
10
11
  children: ReactNode;
11
12
  /**
@@ -5,7 +5,8 @@ import { GridGapOptions } from '@layouts/layout-types';
5
5
  */
6
6
  interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
7
  /**
8
- * Children to render in the layout. All children must be assigned to a named slot either 'sidebar' or 'content'.
8
+ * Children to render in the layout. Main content can be passed without a slot attribute (unslotted).
9
+ * Optional named slots: `sidebar` for sidebar content, `content` for backwards compatibility.
9
10
  */
10
11
  children: ReactNode;
11
12
  /**
@@ -97,6 +97,11 @@ export type SeparatorItemType = {
97
97
  */
98
98
  isSeparator: boolean;
99
99
  };
100
+ export type MenuItem = HeadingItemType | LinkItemType | MenuItemType | NodeItemType | SeparatorItemType;
101
+ export declare const isSeparatorItemType: (item: MenuItem) => item is SeparatorItemType;
102
+ export declare const isHeadingItemType: (item: MenuItem) => item is HeadingItemType;
103
+ export declare const isLinkItemType: (item: MenuItem) => item is LinkItemType;
104
+ export declare const isNodeItemType: (item: MenuItem) => item is NodeItemType;
100
105
  export type SitePlanLevel = 'sandbox' | 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'performance-2xl' | 'elite' | 'pro' | 'business' | 'flagship-performance';
101
106
  export declare const SitePlanLevelLabel: Record<SitePlanLevel, string>;
102
107
  export type SiteStatus = 'active' | 'frozen' | 'restricted';
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-beta.1",
4
+ "version": "1.0.0-beta.2",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",