@pantheon-systems/pds-toolkit-react 2.0.0-beta.0 → 2.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/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
- package/dist/css/component-css/pds-cta-link.css +1 -1
- package/dist/css/component-css/pds-index.css +5 -5
- package/dist/css/component-css/pds-table.css +2 -2
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -1
- package/dist/css/pds-components.css +5 -5
- package/dist/index.css +1 -1
- package/dist/index.js +1840 -1791
- package/dist/index.js.map +1 -1
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -2
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
3
3
|
import './sidebar-layout.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for SidebarLayout
|
|
@@ -63,9 +63,16 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
63
63
|
* Minimum width of the sidebar in rems. Ensures the sidebar remains usable on medium-sized screens.
|
|
64
64
|
*/
|
|
65
65
|
sidebarWidthMin?: number;
|
|
66
|
+
/**
|
|
67
|
+
* When a `second-sidebar` is present, merges it with the primary sidebar
|
|
68
|
+
* into one stacked column once this element's own width drops below the
|
|
69
|
+
* threshold, instead of dropping straight to the full `[data-pds-mobile]`
|
|
70
|
+
* stack. No effect without a `second-sidebar` slot.
|
|
71
|
+
*/
|
|
72
|
+
stackSidebarsBelow?: ContainerStackBreakpoint;
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* SidebarLayout UI component
|
|
69
76
|
*/
|
|
70
|
-
export declare const SidebarLayout: ({ children, className, gridGap, mobileGridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare const SidebarLayout: ({ children, className, gridGap, mobileGridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, stackSidebarsBelow, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
78
|
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": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"pretest:a11y:generate": "npm run build:css",
|
|
81
81
|
"test:a11y:generate": "DISABLE_A11Y_ADDON=true npm run build && node __tests__/a11y/a11y.generate-tests.js",
|
|
82
82
|
"test:a11y": "USE_STATIC_STORYBOOK=true DISABLE_A11Y_ADDON=true playwright test --project 'a11y'",
|
|
83
|
+
"test:render": "playwright test --project 'render'",
|
|
83
84
|
"test:a11y:results": "npx http-server ./__tests__/a11y/results/",
|
|
84
85
|
"eslint": "eslint",
|
|
85
86
|
"eslint:all": "eslint src --cache",
|