Do this first
, }, { diff --git a/src-docs/src/views/steps/steps_example.js b/src-docs/src/views/steps/steps_example.js index 406b5e34263..30ed5841414 100644 --- a/src-docs/src/views/steps/steps_example.js +++ b/src-docs/src/views/steps/steps_example.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { renderToHtml } from '../../services'; @@ -18,8 +18,7 @@ import Steps from './steps'; const stepsSource = require('!!raw-loader!./steps'); const stepsHtml = renderToHtml(Steps); const stepsSnippet = [ - `- For use when forms/setup instructions can and should be split into - multiple pages. -
++ For use when forms/setup instructions can and should be split into + multiple pages. +
+
+ For each step object, be sure to signify previous/completed steps
+ with
- Do this -
-+ First step +
++ Do this +
++ Do this +
++ First step +
++ Do this +
++ First step +
++ Do this +
++ First step +
++ Do this +
++ First step +
++ Do this +
++ First step +
++ Do this +
++ First step +
++ Do this +
+- Do this first -
-- Then this -
-- And finally, do this -
-- first title -
-- Do this first -
-- second title -
-- Then this -
-- third title -
-- And finally, do this -
-- first title -
-- Do this first -
-- second title -
-- Then this -
-- third title -
-- And finally, do this -
-+ Do this first +
++ Then this +
++ And finally, do this +
++ first title +
++ Do this first +
++ second title +
++ Then this +
++ third title +
++ And finally, do this +
++ first title +
++ Do this first +
++ second title +
++ Then this +
++ third title +
++ And finally, do this +
+Do this
-Do this
+Do this
+Do this
+Do this
+Do this first
, diff --git a/src/components/steps/steps.js b/src/components/steps/steps.tsx similarity index 52% rename from src/components/steps/steps.js rename to src/components/steps/steps.tsx index f00231c2462..b2d8688fb34 100644 --- a/src/components/steps/steps.js +++ b/src/components/steps/steps.tsx @@ -1,9 +1,31 @@ -import React from 'react'; -import PropTypes from 'prop-types'; +import React, { FunctionComponent, HTMLAttributes } from 'react'; +import { CommonProps, Omit } from '../common'; import classNames from 'classnames'; -import { EuiStep } from './step'; -function renderSteps(steps, firstStepNumber, headingElement) { +import { StandaloneEuiStepProps, EuiStep } from './step'; + +export type EuiContainedStepProps = Omit