@abgov/react-components 4.17.0-alpha.35 → 4.17.0-alpha.37

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.
@@ -2,8 +2,10 @@ interface WCProps {
2
2
  value: string;
3
3
  label?: string;
4
4
  filter?: string;
5
+ mount?: DropdownItemMountType;
5
6
  name?: string;
6
7
  }
8
+ export type DropdownItemMountType = "append" | "prepend" | "reset";
7
9
  declare global {
8
10
  namespace JSX {
9
11
  interface IntrinsicElements {
@@ -16,8 +18,9 @@ export interface GoADropdownItemProps {
16
18
  label?: string;
17
19
  filter?: string;
18
20
  testId?: string;
21
+ mountType?: DropdownItemMountType;
19
22
  name?: string;
20
23
  }
21
24
  export declare function GoADropdownOption(props: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
22
- export declare function GoADropdownItem({ value, label, filter, name, testId }: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function GoADropdownItem({ value, label, filter, name, testId, mountType }: GoADropdownItemProps): import("react/jsx-runtime").JSX.Element;
23
26
  export {};
@@ -1,5 +1,8 @@
1
+ import React from "react";
1
2
  interface WCProps {
2
3
  initialtab?: number;
4
+ ref: React.RefObject<HTMLElement>;
5
+ onChange?: (tab: number) => void;
3
6
  }
4
7
  declare global {
5
8
  namespace JSX {
@@ -12,6 +15,7 @@ export interface GoATabsProps {
12
15
  initialTab?: number;
13
16
  children?: React.ReactNode;
14
17
  testId?: string;
18
+ onChange?: (tab: number) => void;
15
19
  }
16
- export declare function GoATabs({ initialTab, children, testId }: GoATabsProps): JSX.Element;
20
+ export declare function GoATabs({ initialTab, children, testId, onChange, }: GoATabsProps): JSX.Element;
17
21
  export default GoATabs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.17.0-alpha.35",
3
+ "version": "4.17.0-alpha.37",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"