@up42/up-components 0.9.0 → 0.9.2

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.
@@ -13,9 +13,13 @@ export declare type TabGroupProps = {
13
13
  * A unique value should be provided when multiple tabGroup components are used on the same page.
14
14
  */
15
15
  nameSpace?: string;
16
+ /**
17
+ * Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
18
+ */
19
+ defaultValue?: string | number;
16
20
  };
17
21
  /**
18
22
  * Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
19
23
  */
20
- export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps }: TabGroupProps) => JSX.Element;
24
+ export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
21
25
  export {};
@@ -45,6 +45,7 @@ export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, Table
45
45
  export { DataGrid, type DataGridProps, type GridColDef, type GridRowId, type GridSelectionModel, } from './components/DataGrid/DataGrid';
46
46
  export { capitalize } from './utils/helpers/capitalize';
47
47
  export { copyToClipboard } from './utils/helpers/copyToClipboard';
48
+ export { formatNumber } from './utils/helpers/formatNumber';
48
49
  export { useQueryParams } from './utils/hooks/useQueryParams';
49
50
  export { useRemotePagination, type PaginatedResponse } from './utils/hooks/useRemotePagination';
50
51
  export { useAlert, type CreateAlertProps } from './global/providers/AlertProvider/AlertProvider';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns a string with en-US formatted number.
3
+ *
4
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#formatnumber
5
+ */
6
+ export declare const formatNumber: (number: string | number, options?: Intl.NumberFormatOptions | undefined) => string;