@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.
- package/_dist/components/inputs/Select/Select.d.ts +10 -1
- package/_dist/css/component-css/pds-index.css +1 -1
- package/_dist/css/component-css/pds-select.css +1 -1
- package/_dist/css/component-css/pds-switch.css +1 -1
- package/_dist/css/pds-components.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +2492 -2418
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +2 -1
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +2 -1
- package/_dist/libs/types/custom-types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@ import './dashboard-inner.css';
|
|
|
5
5
|
*/
|
|
6
6
|
interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
|
-
* Child elements
|
|
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.
|
|
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