@up42/up-components 0.10.2 → 0.10.4

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.
@@ -17,9 +17,13 @@ export declare type TabGroupProps = {
17
17
  * Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
18
18
  */
19
19
  defaultValue?: string | number;
20
+ /**
21
+ * An optional event to be called when additional action is needed when changing tab
22
+ */
23
+ onChange?: () => void;
20
24
  };
21
25
  /**
22
26
  * Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
23
27
  */
24
- export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
28
+ export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => JSX.Element;
25
29
  export {};
package/dist/index.d.ts CHANGED
@@ -342,11 +342,15 @@ declare type TabGroupProps = {
342
342
  * Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
343
343
  */
344
344
  defaultValue?: string | number;
345
+ /**
346
+ * An optional event to be called when additional action is needed when changing tab
347
+ */
348
+ onChange?: () => void;
345
349
  };
346
350
  /**
347
351
  * Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
348
352
  */
349
- declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
353
+ declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => JSX.Element;
350
354
 
351
355
  declare type EmptyStateProps<C extends React__default.ElementType = 'div'> = BaseProps<C, {
352
356
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",