From 6399dcbece60dcd0fda558769964c175ee7c3c3a Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Wed, 2 Jul 2025 09:33:40 -0400 Subject: [PATCH 1/4] Add more progress bar examples --- .../ProgressBar.examples.stories.tsx | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx diff --git a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx new file mode 100644 index 00000000000..11c8936b155 --- /dev/null +++ b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx @@ -0,0 +1,57 @@ +import type {Meta} from '@storybook/react-vite' +import {ProgressBar, Stack} from '..' +import React, {useEffect} from 'react' +import {announce} from '@primer/live-region-element' +import {DotFillIcon} from '@primer/octicons-react' + +export default { + title: 'Components/ProgressBar/Examples', + component: ProgressBar, +} as Meta + +export const WithVisibleTextValue = () => { + return ( + <> + +

50% completed

+ + ) +} + +export const MultipleSegments = () => { + return ( + <> + + + + + + + + + Done + + + + In progress + + + + Closed + + + + ) +} From 327663997a0720be8701ec27f7cdfaa62fd62dd4 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Wed, 2 Jul 2025 09:36:01 -0400 Subject: [PATCH 2/4] Remove unused imports --- packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx index 11c8936b155..7c157c6d27d 100644 --- a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx +++ b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx @@ -1,7 +1,5 @@ import type {Meta} from '@storybook/react-vite' import {ProgressBar, Stack} from '..' -import React, {useEffect} from 'react' -import {announce} from '@primer/live-region-element' import {DotFillIcon} from '@primer/octicons-react' export default { From a92a8848ea5584e33d7e9ab658a4e5c11720bcf2 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Wed, 2 Jul 2025 16:19:22 -0400 Subject: [PATCH 3/4] Rely on `progress` prop instead --- packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx index 7c157c6d27d..83ea763e1fc 100644 --- a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx +++ b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx @@ -19,7 +19,7 @@ export const WithVisibleTextValue = () => { export const MultipleSegments = () => { return ( <> - + Date: Wed, 30 Jul 2025 15:01:27 -0400 Subject: [PATCH 4/4] Fix story --- packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx index 83ea763e1fc..48046b903a0 100644 --- a/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx +++ b/packages/react/src/ProgressBar/ProgressBar.examples.stories.tsx @@ -19,7 +19,7 @@ export const WithVisibleTextValue = () => { export const MultipleSegments = () => { return ( <> - +