|
10 | 10 | * governing permissions and limitations under the License.
|
11 | 11 | */
|
12 | 12 |
|
| 13 | +import {AriaStepListProps, useStepList} from '@react-aria/steplist'; |
13 | 14 | import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';
|
14 |
| -import {DOMRef} from '@react-types/shared'; |
| 15 | +import {DOMRef, Orientation, StyleProps} from '@react-types/shared'; |
15 | 16 | import React, {ReactElement} from 'react';
|
16 |
| -import {SpectrumStepListProps} from '@react-types/steplist'; |
17 | 17 | import {StepListContext} from './StepListContext';
|
18 | 18 | import {StepListItem} from './StepListItem';
|
19 | 19 | import styles from '@adobe/spectrum-css-temp/components/steplist/vars.css';
|
20 | 20 | import {useProviderProps} from '@react-spectrum/provider';
|
21 |
| -import {useStepList} from '@react-aria/steplist'; |
22 | 21 | import {useStepListState} from '@react-stately/steplist';
|
23 | 22 |
|
| 23 | +export interface SpectrumStepListProps<T> extends AriaStepListProps<T>, StyleProps { |
| 24 | + /** |
| 25 | + * Whether the step list should be displayed with a emphasized style. |
| 26 | + * @default false |
| 27 | + */ |
| 28 | + isEmphasized?: boolean, |
| 29 | + /** |
| 30 | + * The orientation of the step list. |
| 31 | + * @default 'horizontal' |
| 32 | + */ |
| 33 | + orientation?: Orientation, |
| 34 | + /** |
| 35 | + * The size of the step list. |
| 36 | + * @default 'M' |
| 37 | + */ |
| 38 | + size?: 'S' | 'M' | 'L' | 'XL' |
| 39 | +} |
| 40 | + |
24 | 41 | function StepList<T extends object>(props: SpectrumStepListProps<T>, ref: DOMRef<HTMLOListElement>) {
|
25 | 42 | const {size = 'M', orientation = 'horizontal'} = props;
|
26 | 43 | props = useProviderProps(props);
|
|
0 commit comments