@pantheon-systems/pds-toolkit-react 2.0.0-alpha.71 → 2.0.0-alpha.72
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/StatPanel/StatPanel.d.ts +60 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-index.css +2 -2
- package/dist/css/component-css/pds-stat-panel.css +1 -0
- package/dist/css/layout-css/pds-index.css +1 -1
- package/dist/css/layout-css/pds-stat-panel-group.css +1 -0
- package/dist/css/pds-components.css +2 -2
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +99 -51
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +2 -0
- package/dist/layouts/StatPanelGroup/StatPanelGroup.d.ts +32 -0
- package/package.json +1 -1
package/dist/index.source.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from './components/SortableList/SortableList';
|
|
|
97
97
|
export * from './components/SortableList/SortableListHeader';
|
|
98
98
|
export * from './components/SortableList/SortableRow';
|
|
99
99
|
export * from './components/SortableList/types';
|
|
100
|
+
export * from './components/StatPanel/StatPanel';
|
|
100
101
|
export * from './components/StatusChecker/StatusChecker';
|
|
101
102
|
export * from './components/StatusIndicator/StatusIndicator';
|
|
102
103
|
export * from './components/steppers/StepList/StepList';
|
|
@@ -113,6 +114,7 @@ export * from './libs/components/SiteOptionDisplay/SiteOptionDisplay';
|
|
|
113
114
|
export * from './layouts/AppLayout/AppLayout';
|
|
114
115
|
export * from './layouts/DocsLayout/DocsLayout';
|
|
115
116
|
export * from './layouts/SidebarLayout/SidebarLayout';
|
|
117
|
+
export * from './layouts/StatPanelGroup/StatPanelGroup';
|
|
116
118
|
export * from './layouts/StepperLayout/StepperLayout';
|
|
117
119
|
export * from './layouts/ThreeItemLayout/ThreeItemLayout';
|
|
118
120
|
export * from './layouts/TwoItemLayout/TwoItemLayout';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './stat-panel-group.css';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for StatPanelGroup
|
|
5
|
+
*/
|
|
6
|
+
export interface StatPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* StatPanel elements to arrange.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum number of columns at the widest available width. Reflows down
|
|
17
|
+
* continuously below that as space shrinks — never below one column, and
|
|
18
|
+
* never above this ceiling regardless of how much room is available.
|
|
19
|
+
* Sized against the group's own width, not the viewport, so it reflows
|
|
20
|
+
* correctly even when the group sits in a narrower context, e.g. beside a
|
|
21
|
+
* sidebar.
|
|
22
|
+
*/
|
|
23
|
+
maxColumns?: 2 | 3 | 4;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* StatPanelGroup layout component — arranges StatPanels (or similar summary
|
|
27
|
+
* content) in a responsive row, reflowing continuously as the group's own
|
|
28
|
+
* available width changes. Exposes the set to assistive technology as a list
|
|
29
|
+
* (`role="list"`/`role="listitem"`) without requiring literal `ul`/`li`
|
|
30
|
+
* markup, since the panels aren't visually list-like.
|
|
31
|
+
*/
|
|
32
|
+
export declare const StatPanelGroup: ({ children, className, maxColumns, style, ...props }: StatPanelGroupProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED