@pantheon-systems/pds-toolkit-react 2.0.0-beta.15 → 2.0.0-beta.17

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.
@@ -18,10 +18,12 @@ export * from './components/Callout/Callout';
18
18
  export * from './components/cards/ActionCard/ActionCard';
19
19
  export * from './components/cards/Card/Card';
20
20
  export * from './components/cards/CardSelect/CardSelect';
21
+ export * from './components/charts/AreaChart/AreaChart';
21
22
  export * from './components/charts/BarChart/BarChart';
22
23
  export * from './components/charts/LineChart/LineChart';
23
24
  export * from './components/charts/PieChart/PieChart';
24
25
  export * from './components/charts/ProportionBar/ProportionBar';
26
+ export * from './components/charts/ScatterPlot/ScatterPlot';
25
27
  export * from './components/charts/shared/types';
26
28
  export * from './components/CodeBlock/CodeBlock';
27
29
  export * from './components/ComparisonList/ComparisonList';
@@ -8,6 +8,9 @@ export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
8
8
  * - lg: 1280-1439px (desktop)
9
9
  * - xl: 1440px+ (large desktop)
10
10
  *
11
+ * Server-rendered output and the first hydration render use `lg`; the real
12
+ * breakpoint applies right after hydration.
13
+ *
11
14
  * @returns {Breakpoint} Current breakpoint name
12
15
  *
13
16
  * @example
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Subscribes to changes of a media query and returns the cleanup function.
3
+ * Shared by `useMediaQuery` and `useBreakpoint`; browser-only, so call it from
4
+ * a `useSyncExternalStore` subscribe function, never during render.
5
+ */
6
+ export declare const subscribeToMediaQuery: (query: string, onChange: () => void) => (() => void);
@@ -1,17 +1 @@
1
- /**
2
- * Hook for matching CSS media queries in JavaScript.
3
- *
4
- * @param {string} query - CSS media query string (e.g., "(min-width: 768px)")
5
- * @returns {boolean} Whether the media query currently matches
6
- *
7
- * @example
8
- * // Using with breakpoint constants
9
- * import { BP_M } from '@pantheon-systems/pds-design-tokens/build/js/variables.global.js';
10
- * const isTabletOrLarger = useMediaQuery(`(min-width: ${BP_M}px)`);
11
- *
12
- * @example
13
- * // Using with custom query
14
- * const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');
15
- * const isDarkMode = useMediaQuery('(prefers-color-scheme: dark)');
16
- */
17
1
  export declare const useMediaQuery: (query: string) => boolean;
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.15",
4
+ "version": "2.0.0-beta.17",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -80,7 +80,8 @@
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
+ "test:render": "playwright test --project=render",
84
+ "test:interaction": "playwright test --project=interaction",
84
85
  "test:a11y:results": "npx http-server ./__tests__/a11y/results/",
85
86
  "eslint": "eslint",
86
87
  "eslint:all": "eslint src --cache",