@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.
@@ -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,6 @@
1
+ /**
2
+ * Takes bytes as a value and returns formatted file size as a string.
3
+ *
4
+ * Documentation: https://up-components.up42.dev/?path=/story/utils--page#formatfilesize
5
+ */
6
+ export declare const formatFileSize: (value: number) => string;