Skip to content

Commit f9b446b

Browse files
committed
fix exports
1 parent 66bf36b commit f9b446b

File tree

7 files changed

+17
-7
lines changed

7 files changed

+17
-7
lines changed

packages/wizard/src/Wizard/Wizard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Direction } from '@leafygreen-ui/descendants';
44
import { findChild, findChildren } from '@leafygreen-ui/lib';
55

66
import { useWizardControlledValue } from '../utils/useWizardControlledValue/useWizardControlledValue';
7-
import { WizardContext } from '../WizardContext/WizardContext';
7+
import { WizardContext } from '../WizardContext';
88
import { WizardFooter } from '../WizardFooter';
99
import { WizardStep } from '../WizardStep';
1010

packages/wizard/src/WizardContext/WizardContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createContext, useContext } from 'react';
22

33
import { Direction } from '@leafygreen-ui/descendants';
44

5-
interface WizardContextData {
5+
export interface WizardContextData {
66
isWizardContext: boolean;
77
activeStep: number;
88
updateStep: (direction: Direction) => void;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export {
2+
WizardContext,
3+
type WizardContextData,
4+
useWizardContext,
5+
} from './WizardContext';

packages/wizard/src/WizardFooter/WizardFooter.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { render } from '@testing-library/react';
33

44
import { WizardFooter } from '.';
5-
import { Wizard } from '../Wizard/Wizard';
5+
import { Wizard } from '../Wizard';
66

77
describe('packages/wizard-footer', () => {
88
test('does not render outside WizardContext', () => {

packages/wizard/src/WizardFooter/WizardFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { MouseEventHandler } from 'react';
33
import { Direction } from '@leafygreen-ui/descendants';
44
import FormFooter from '@leafygreen-ui/form-footer';
55

6-
import { useWizardContext } from '../WizardContext/WizardContext';
6+
import { useWizardContext } from '../WizardContext';
77

88
import { WizardFooterProps } from './WizardFooter.types';
99
import { WizardSubComponentProperties } from '../constants';

packages/wizard/src/WizardStep/WizardStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { stepStyles } from './WizardStep.styles';
66
import { WizardStepProps } from './WizardStep.types';
77
import { WizardSubComponentProperties } from '../constants';
88
import { TextNode } from './TextNode';
9-
import { useWizardContext } from '../WizardContext/WizardContext';
9+
import { useWizardContext } from '../WizardContext';
1010
import { consoleOnce } from '@leafygreen-ui/lib';
1111

1212
export function WizardStep({

packages/wizard/src/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
export { Wizard, type WizardProps } from './Wizard';
2-
export { WizardFooter, type WizardFooterProps } from './WizardFooter';
3-
export { WizardStep, type WizardStepProps } from './WizardStep';
2+
export {
3+
WizardContext,
4+
WizardContextData,
5+
useWizardContext,
6+
} from './WizardContext';
7+
export { type WizardFooterProps } from './WizardFooter';
8+
export { type WizardStepProps } from './WizardStep';

0 commit comments

Comments
 (0)