diff --git a/packages/react-core/src/components/Progress/examples/Progress.md b/packages/react-core/src/components/Progress/examples/Progress.md index d8823835d22..34ecd6c5bdd 100644 --- a/packages/react-core/src/components/Progress/examples/Progress.md +++ b/packages/react-core/src/components/Progress/examples/Progress.md @@ -7,169 +7,70 @@ propComponents: ['Progress'] ## Examples ### Basic -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressBasic.tsx" ``` ### Small -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressSmall.tsx" ``` ### Large -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressLarge.tsx" ``` ### Outside -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressOutside.tsx" ``` ### Inside -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressInside.tsx" ``` ### Success -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressSuccess.tsx" ``` ### Failure -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressFailure.tsx" ``` ### Warning -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressWarning.tsx" ``` ### Inside success -```ts -import React from 'react'; -import { Progress, ProgressSize, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressInsideSuccess.tsx" ``` ### Outside failure -```ts -import React from 'react'; -import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressOutsideFailure.tsx" ``` ### Single line -```ts -import React from 'react'; -import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressSingleLine.tsx" ``` ### Without measure -```ts -import React from 'react'; -import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; - - +```ts file="./ProgressWithoutMeasure.tsx" ``` ### Failure without measure -```ts -import React from 'react'; -import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; - - +```ts file="./ProgressFailureWithoutMeasure.tsx" ``` ### Finite step -```ts -import React from 'react'; -import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; - - +```ts file="./ProgressFiniteStep.tsx" ``` -### Progress (step instruction) -```ts -import React from 'react'; -import { Progress} from '@patternfly/react-core'; - - +### Progress with step instructions +```ts file="./ProgressStepInstruction.tsx" ``` ### Truncate title -```ts -import React from 'react'; -import { Progress } from '@patternfly/react-core'; - - +```ts file="./ProgressTruncateTitle.tsx" ``` ### Title outside of progress bar -```ts -import React from 'react'; -import { - DescriptionList, - DescriptionListGroup, - DescriptionListTerm, - DescriptionListDescription, - Progress, - ProgressMeasureLocation, -} from '@patternfly/react-core'; - - - - - Title outside of progress bar - - - - - - +```ts file="./ProgressTitleOutsideOfProgressBar.tsx" ``` diff --git a/packages/react-core/src/components/Progress/examples/ProgressBasic.tsx b/packages/react-core/src/components/Progress/examples/ProgressBasic.tsx new file mode 100644 index 00000000000..8354e262026 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressBasic.tsx @@ -0,0 +1,4 @@ +import React from 'react'; +import { Progress } from '@patternfly/react-core'; + +export const ProgressBasic: React.FunctionComponent = () => ; diff --git a/packages/react-core/src/components/Progress/examples/ProgressFailure.tsx b/packages/react-core/src/components/Progress/examples/ProgressFailure.tsx new file mode 100644 index 00000000000..d41f6768909 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressFailure.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressFailure: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressFailureWithoutMeasure.tsx b/packages/react-core/src/components/Progress/examples/ProgressFailureWithoutMeasure.tsx new file mode 100644 index 00000000000..164a997e98d --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressFailureWithoutMeasure.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressFailureWithoutMeasure: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressFiniteStep.tsx b/packages/react-core/src/components/Progress/examples/ProgressFiniteStep.tsx new file mode 100644 index 00000000000..a00e6b2c1df --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressFiniteStep.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; + +export const ProgressFiniteStep: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressInside.tsx b/packages/react-core/src/components/Progress/examples/ProgressInside.tsx new file mode 100644 index 00000000000..63702846161 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressInside.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; + +export const ProgressInside: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressInsideSuccess.tsx b/packages/react-core/src/components/Progress/examples/ProgressInsideSuccess.tsx new file mode 100644 index 00000000000..9b731eac103 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressInsideSuccess.tsx @@ -0,0 +1,11 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressInsideSuccess: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressLarge.tsx b/packages/react-core/src/components/Progress/examples/ProgressLarge.tsx new file mode 100644 index 00000000000..6ef927cf25a --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressLarge.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressSize } from '@patternfly/react-core'; + +export const ProgressLarge: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressOutside.tsx b/packages/react-core/src/components/Progress/examples/ProgressOutside.tsx new file mode 100644 index 00000000000..c2069fe2bed --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressOutside.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; + +export const ProgressOutside: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressOutsideFailure.tsx b/packages/react-core/src/components/Progress/examples/ProgressOutsideFailure.tsx new file mode 100644 index 00000000000..b6e879d3e2e --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressOutsideFailure.tsx @@ -0,0 +1,11 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressOutsideFailure: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressSingleLine.tsx b/packages/react-core/src/components/Progress/examples/ProgressSingleLine.tsx new file mode 100644 index 00000000000..b529a39c012 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressSingleLine.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; + +export const ProgressSingleLine: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressSmall.tsx b/packages/react-core/src/components/Progress/examples/ProgressSmall.tsx new file mode 100644 index 00000000000..c732475d330 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressSmall.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressSize } from '@patternfly/react-core'; + +export const ProgressSmall: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressStepInstruction.tsx b/packages/react-core/src/components/Progress/examples/ProgressStepInstruction.tsx new file mode 100644 index 00000000000..3376f7bdf68 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressStepInstruction.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress } from '@patternfly/react-core'; + +export const ProgressStepInstruction: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressSuccess.tsx b/packages/react-core/src/components/Progress/examples/ProgressSuccess.tsx new file mode 100644 index 00000000000..ef9ffc4bc26 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressSuccess.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressSuccess: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx b/packages/react-core/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx new file mode 100644 index 00000000000..f570629a753 --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import { + DescriptionList, + DescriptionListGroup, + DescriptionListTerm, + DescriptionListDescription, + Progress, + ProgressMeasureLocation +} from '@patternfly/react-core'; + +export const ProgressTitleOutsideOfProgressBar: React.FunctionComponent = () => ( + + + Title outside of progress bar + + + + + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressTruncateTitle.tsx b/packages/react-core/src/components/Progress/examples/ProgressTruncateTitle.tsx new file mode 100644 index 00000000000..a2f455256ba --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressTruncateTitle.tsx @@ -0,0 +1,10 @@ +import React from 'react'; +import { Progress } from '@patternfly/react-core'; + +export const ProgressTruncateTitle: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressWarning.tsx b/packages/react-core/src/components/Progress/examples/ProgressWarning.tsx new file mode 100644 index 00000000000..4eefe9880ef --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressWarning.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressVariant } from '@patternfly/react-core'; + +export const ProgressWarning: React.FunctionComponent = () => ( + +); diff --git a/packages/react-core/src/components/Progress/examples/ProgressWithoutMeasure.tsx b/packages/react-core/src/components/Progress/examples/ProgressWithoutMeasure.tsx new file mode 100644 index 00000000000..4cf8f4af7bb --- /dev/null +++ b/packages/react-core/src/components/Progress/examples/ProgressWithoutMeasure.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { Progress, ProgressMeasureLocation } from '@patternfly/react-core'; + +export const ProgressWithoutMeasure: React.FunctionComponent = () => ( + +);