@pantheon-systems/pds-toolkit-react 1.0.0-dev.134 → 1.0.0-dev.136
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/Icon/Icon.d.ts +1 -1
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +1 -3
- package/_dist/components/inputs/Combobox/Combobox.d.ts +4 -64
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +1 -3
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +67 -0
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +10 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +1 -3
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +1 -3
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +1 -3
- package/_dist/components/notifications/Banner/Banner.d.ts +1 -1
- package/_dist/css/component-css/pds-combobox.css +1 -1
- package/_dist/css/component-css/pds-dashboard-search.css +1 -0
- package/_dist/css/component-css/pds-index.css +5 -5
- package/_dist/css/component-css/pds-input-wrapper.css +1 -1
- package/_dist/css/component-css/pds-menu-button.css +1 -1
- package/_dist/css/component-css/pds-navbar.css +1 -1
- package/_dist/css/component-css/pds-status-badge.css +1 -1
- package/_dist/css/pds-components.css +5 -5
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +4 -1
- package/_dist/index.js +3517 -3303
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/DashboardLayout/DashboardLayout.d.ts +37 -0
- package/_dist/layouts/DashboardLayout/DemoContent.d.ts +2 -0
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
- package/package.json +1 -2
- package/_dist/layouts/GlobalLayout/GlobalLayout.d.ts +0 -23
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DashboardContext: React.Context<any>;
|
|
3
|
+
import './dashboard-layout.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for DashboardLayout
|
|
6
|
+
*/
|
|
7
|
+
interface DashboardLayoutProps {
|
|
8
|
+
/**
|
|
9
|
+
* Child components
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to include a sidebar toggle button
|
|
14
|
+
*/
|
|
15
|
+
hasSidebarToggle?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the sidebar is initially expanded
|
|
18
|
+
*/
|
|
19
|
+
initialSidebarExpanded?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Sidebar toggle label
|
|
22
|
+
*/
|
|
23
|
+
sidebarToggleLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Skip link text
|
|
26
|
+
*/
|
|
27
|
+
skiplinkText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Additional class names
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* DashboardLayout UI component
|
|
35
|
+
*/
|
|
36
|
+
export declare const DashboardLayout: ({ children, hasSidebarToggle, initialSidebarExpanded, sidebarToggleLabel, skiplinkText, className, ...props }: DashboardLayoutProps) => React.JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Prop types for GlobalWrapper
|
|
4
|
+
*/
|
|
5
|
+
interface GlobalWrapperProps {
|
|
6
|
+
/**
|
|
7
|
+
* Child components
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Mobile menu will be enabled when viewport is at or below this number in pixels.
|
|
12
|
+
*/
|
|
13
|
+
mobileMenuMaxWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* GlobalWrapper wrapper component.
|
|
17
|
+
*/
|
|
18
|
+
export declare const GlobalWrapper: ({ children, mobileMenuMaxWidth, }: GlobalWrapperProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
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.
|
|
4
|
+
"version": "1.0.0-dev.136",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -139,7 +139,6 @@
|
|
|
139
139
|
"@reactuses/core": "^5.0.15",
|
|
140
140
|
"focus-trap-react": "^10.2.1",
|
|
141
141
|
"hash-sum": "^2.0.0",
|
|
142
|
-
"react-merge-refs": "^2.1.1",
|
|
143
142
|
"react-router-dom": "^6.13.0",
|
|
144
143
|
"react-toastify": "^9.0.3"
|
|
145
144
|
},
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export function GlobalLayout({ children, hasSidebarToggle, initialSidebarExpanded, mobileMenuMaxWidth, sidebarToggleLabel, skiplinkText, className, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
children: any;
|
|
4
|
-
hasSidebarToggle?: boolean;
|
|
5
|
-
initialSidebarExpanded?: boolean;
|
|
6
|
-
mobileMenuMaxWidth?: number;
|
|
7
|
-
sidebarToggleLabel?: string;
|
|
8
|
-
skiplinkText?: string;
|
|
9
|
-
className: any;
|
|
10
|
-
}): React.JSX.Element;
|
|
11
|
-
export namespace GlobalLayout {
|
|
12
|
-
namespace propTypes {
|
|
13
|
-
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
-
let hasSidebarToggle: PropTypes.Requireable<boolean>;
|
|
15
|
-
let initialSidebarExpanded: PropTypes.Requireable<boolean>;
|
|
16
|
-
let mobileMenuMaxWidth: PropTypes.Requireable<number>;
|
|
17
|
-
let sidebarToggleLabel: PropTypes.Requireable<string>;
|
|
18
|
-
let skiplinkText: PropTypes.Requireable<string>;
|
|
19
|
-
let className: PropTypes.Requireable<string>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import PropTypes from 'prop-types';
|