@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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "2.0.0-alpha.71",
4
+ "version": "2.0.0-alpha.72",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",