@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;
package/dist/index.d.ts CHANGED
@@ -338,11 +338,15 @@ declare type TabGroupProps = {
338
338
  * A unique value should be provided when multiple tabGroup components are used on the same page.
339
339
  */
340
340
  nameSpace?: string;
341
+ /**
342
+ * Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
343
+ */
344
+ defaultValue?: string | number;
341
345
  };
342
346
  /**
343
347
  * Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
344
348
  */
345
- declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps }: TabGroupProps) => JSX.Element;
349
+ declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
346
350
 
347
351
  declare type EmptyStateProps<C extends React__default.ElementType = 'div'> = BaseProps<C, {
348
352
  /**
@@ -1816,6 +1820,13 @@ declare const capitalize: (string: string) => string;
1816
1820
  */
1817
1821
  declare const copyToClipboard: (text: string, successCallBack: () => void) => void;
1818
1822
 
1823
+ /**
1824
+ * Returns a string with en-US formatted number.
1825
+ *
1826
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#formatnumber
1827
+ */
1828
+ declare const formatNumber: (number: string | number, options?: Intl.NumberFormatOptions | undefined) => string;
1829
+
1819
1830
  /**
1820
1831
  * Returns query parameter values from a string or an array of strings.
1821
1832
  *
@@ -1874,4 +1885,4 @@ declare type ContextState = {
1874
1885
  */
1875
1886
  declare const useAlert: () => ContextState;
1876
1887
 
1877
- export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CreateAlertProps, DataGrid, DataGridProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, theme, useAlert, useQueryParams, useRemotePagination };
1888
+ export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CreateAlertProps, DataGrid, DataGridProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",