@up42/up-components 0.10.13 → 0.10.14
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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/utils/helpers/formatFileSize.d.ts +6 -0
- package/dist/cjs/types/utils/helpers/formatFileSize.test.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/utils/helpers/formatFileSize.d.ts +6 -0
- package/dist/esm/types/utils/helpers/formatFileSize.test.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
|
@@ -49,6 +49,7 @@ export { capitalize } from './utils/helpers/capitalize';
|
|
|
49
49
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
50
50
|
export { formatNumber } from './utils/helpers/formatNumber';
|
|
51
51
|
export { formatDate } from './utils/helpers/formatDate';
|
|
52
|
+
export { formatFileSize } from './utils/helpers/formatFileSize';
|
|
52
53
|
export { useQueryParams } from './utils/hooks/useQueryParams';
|
|
53
54
|
export { useRemotePagination, type PaginatedResponse } from './utils/hooks/useRemotePagination';
|
|
54
55
|
export { useAlert, type CreateAlertProps } from './global/providers/AlertProvider/AlertProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1913,6 +1913,13 @@ declare const copyToClipboard: (text: string, successCallBack: () => void) => vo
|
|
|
1913
1913
|
*/
|
|
1914
1914
|
declare const formatNumber: (number: string | number, options?: Intl.NumberFormatOptions | undefined) => string;
|
|
1915
1915
|
|
|
1916
|
+
/**
|
|
1917
|
+
* Takes bytes as a value and returns formatted file size as a string.
|
|
1918
|
+
*
|
|
1919
|
+
* Documentation: https://up-components.up42.dev/?path=/story/utils--page#formatfilesize
|
|
1920
|
+
*/
|
|
1921
|
+
declare const formatFileSize: (value: number) => string;
|
|
1922
|
+
|
|
1916
1923
|
/**
|
|
1917
1924
|
* Returns query parameter values from a string or an array of strings.
|
|
1918
1925
|
*
|
|
@@ -1975,4 +1982,4 @@ declare type ContextState = {
|
|
|
1975
1982
|
*/
|
|
1976
1983
|
declare const useAlert: () => ContextState;
|
|
1977
1984
|
|
|
1978
|
-
export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DateTime, DateTimeProps, 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, formatDate, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
|
|
1985
|
+
export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DateTime, DateTimeProps, 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, formatDate, formatFileSize, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
|