import Count from 'sentry/components/count'; import DateTime from 'sentry/components/dateTime'; import Duration from 'sentry/components/duration'; import FileSize from 'sentry/components/fileSize'; import Version from 'sentry/components/version'; export default { title: 'Utilities/Text/Formatters', }; export const _DateTime = () => (
); _DateTime.storyName = 'DateTime'; _DateTime.parameters = { docs: { description: { story: 'Formats number (in ms or seconds) into a datetime string', }, }, }; export const _FileSize = () => (
); _FileSize.storyName = 'FileSize'; _FileSize.parameters = { docs: { description: { story: 'Formats number of bytes to filesize string', }, }, }; export const _Duration = ({exact, abbreviation}) => { return (
); }; _Duration.args = { exact: false, abbreviation: false, }; _Duration.parameters = { docs: { description: { story: 'Formats number of seconds into a duration string', }, }, }; export const _Count = () => (
5000000 =
500000000 =
50000 =
); _Count.parameters = { docs: { description: { story: 'Formats numbers into a shorthand string', }, }, }; export const _Version = ({ version, anchor, preservePageFilters, tooltipRawVersion, withPackage, projectId, truncate, className, }) => { return (
{version} =
); }; _Version.args = { version: 'foo.bar.Baz@1.0.0+20200101', anchor: true, preservePageFilters: false, tooltipRawVersion: true, withPackage: false, projectId: '', truncate: false, className: 'asdsad', }; _Version.parameters = { docs: { description: { story: 'Formats release version', }, }, };