@abgov/react-components 7.2.0-dev.22 → 7.2.0-dev.23

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.
@@ -1,8 +1,9 @@
1
- import { DataAttributes } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabScrollPanelDirectionType } from '@abgov/ui-components-common';
2
2
  import { default as React, ReactNode, JSX } from 'react';
3
3
  interface WCProps {
4
4
  height?: string;
5
5
  testid?: string;
6
+ direction?: string;
6
7
  }
7
8
  declare module "react" {
8
9
  namespace JSX {
@@ -27,6 +28,12 @@ export interface GoabScrollPanelProps extends DataAttributes {
27
28
  height?: string;
28
29
  /** Sets a data-testid attribute for automated testing. */
29
30
  testId?: string;
31
+ /**
32
+ * The scroll direction(s). When content overflows, enables scrolling and shadow
33
+ * indicators for the specified direction(s). Accepts "vertical", "horizontal", or "both".
34
+ * Defaults to "vertical".
35
+ */
36
+ direction?: GoabScrollPanelDirectionType;
30
37
  }
31
- export declare function GoabScrollPanel({ header, children, footer, height, testId, ...rest }: GoabScrollPanelProps): JSX.Element;
38
+ export declare function GoabScrollPanel({ header, children, footer, height, testId, direction, ...rest }: GoabScrollPanelProps): JSX.Element;
32
39
  export default GoabScrollPanel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "7.2.0-dev.22",
3
+ "version": "7.2.0-dev.23",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"