@pantheon-systems/pds-toolkit-react 1.0.0-dev.135 → 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.
Files changed (28) hide show
  1. package/_dist/components/Icon/Icon.d.ts +1 -1
  2. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +1 -3
  3. package/_dist/components/inputs/Combobox/Combobox.d.ts +4 -64
  4. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +1 -3
  5. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +67 -0
  6. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +10 -0
  7. package/_dist/components/navigation/Navbar/Navbar.d.ts +1 -3
  8. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +1 -3
  9. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +1 -3
  10. package/_dist/css/component-css/pds-combobox.css +1 -1
  11. package/_dist/css/component-css/pds-dashboard-search.css +1 -0
  12. package/_dist/css/component-css/pds-index.css +5 -5
  13. package/_dist/css/component-css/pds-input-wrapper.css +1 -1
  14. package/_dist/css/component-css/pds-menu-button.css +1 -1
  15. package/_dist/css/component-css/pds-navbar.css +1 -1
  16. package/_dist/css/component-css/pds-status-badge.css +1 -1
  17. package/_dist/css/pds-components.css +5 -5
  18. package/_dist/css/pds-layouts.css +1 -1
  19. package/_dist/index.css +1 -1
  20. package/_dist/index.d.ts +4 -1
  21. package/_dist/index.js +3284 -3059
  22. package/_dist/index.js.map +1 -1
  23. package/_dist/layouts/DashboardLayout/DashboardLayout.d.ts +37 -0
  24. package/_dist/layouts/DashboardLayout/DemoContent.d.ts +2 -0
  25. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
  26. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
  27. package/package.json +1 -1
  28. 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,2 @@
1
+ import React from 'react';
2
+ export declare const DemoContent: () => React.JSX.Element;
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const ResponsiveContext: React.Context<any>;
3
+ export declare const ResponsiveContextProvider: ({ children, mobileMenuMaxWidth, }: {
4
+ children: any;
5
+ mobileMenuMaxWidth?: number;
6
+ }) => React.JSX.Element;
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.135",
4
+ "version": "1.0.0-dev.136",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "repository": {
7
7
  "type": "git",
@@ -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';