Skip to content

Commit

Permalink
fix Workflow and update entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Oct 10, 2023
1 parent 156dd72 commit 59259f5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 55 deletions.
20 changes: 9 additions & 11 deletions packages/components/src/Workflow/Workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export type WorkflowProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> &
FooterProps &
HeaderProps

const WorkflowComponent = ({
/**
* @deprecated Use { Workflow } from `@kaizen/components/future`
*/
export const Workflow = ({
stepName,
steps,
isComplete,
Expand Down Expand Up @@ -45,13 +48,8 @@ const WorkflowComponent = ({
</Workflow.Wrapper>
)

/**
* @deprecated Use { Workflow } from `@kaizen/components/future`
*/
export const Workflow = Object.assign(WorkflowComponent, {
Header,
Footer,
Main,
ProgressStepper,
Wrapper,
})
Workflow.Header = Header;
Workflow.Footer = Footer;
Workflow.Main = Main;
Workflow.ProgressStepper = ProgressStepper;
Workflow.Wrapper = Wrapper;
14 changes: 6 additions & 8 deletions packages/components/src/__future__/Workflow/Workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type WorkflowProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> &
FooterProps &
Pick<HeaderProps, "workflowName" | "status" | "headerActions">

const WorkflowComponent = ({
export const Workflow = ({
steps,
currentStepId,
isComplete,
Expand Down Expand Up @@ -48,10 +48,8 @@ const WorkflowComponent = ({
)
}

export const Workflow = Object.assign(WorkflowComponent, {
Header,
Footer,
Main,
ProgressStepper,
Wrapper,
})
Workflow.Header = Header;
Workflow.Footer = Footer;
Workflow.Main = Main;
Workflow.ProgressStepper = ProgressStepper;
Workflow.Wrapper = Wrapper;
6 changes: 3 additions & 3 deletions packages/components/src/__future__/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// export * from "./Select"
// export * from "./Tag"
// export * from "./Workflow"
export * from "./Select"
export * from "./Tag"
export * from "./Workflow"
67 changes: 34 additions & 33 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
// TODO: Remove when Date Picker is migrated to KAIO
// export * from "./types/DatePicker"
export * from "./types/DatePicker"

// export * from "./Avatar"
// export * from "./AvatarGroup"
// export * from "./Badge"
// export * from "./Brand"
// export * from "./Card"
// export * from "./Checkbox"
// export * from "./ClearButton"
// export * from "./Divider"
// export * from "./EmptyState"
// export * from "./FieldGroup"
// export * from "./FieldMessage"
// export * from "./Heading"
// export * from "./Icon"
// export * from "./Input"
// export * from "./Label"
// export * from "./LabelledMessage"
// export * from "./Radio"
// export * from "./SearchField"
// export * from "./Slider"
// export * from "./Text"
export * from "./FilterButton/subcomponents/FilterButtonBase"
export * from "./Avatar"
export * from "./AvatarGroup"
export * from "./Badge"
export * from "./Brand"
export * from "./Card"
export * from "./Checkbox"
export * from "./ClearButton"
export * from "./Divider"
export * from "./EmptyState"
export * from "./FieldGroup"
export * from "./FieldMessage"
export * from "./Heading"
export * from "./Icon"
export * from "./Input"
export * from "./Label"
export * from "./LabelledMessage"
export * from "./Radio"
export * from "./SearchField"
export * from "./Slider"
export * from "./Text"

// RESOLVED
export * from "./BrandMoment"
export * from "./Button"
export * from "./ButtonGroup"
export * from "./ErrorPage"
export * from "./Filter"
export * from "./FilterButton"
export * from "./FilterDatePicker"
export * from "./FilterDateRangePicker"
export * from "./FilterSelect"
export * from "./KaizenProvider"
export * from "./Workflow"

// PROBLEMS
// export * from "./BrandMoment"
// export * from "./Button"
// export * from "./ButtonGroup"
// export * from "./Collapsible"
// export * from "./ErrorPage"
// export * from "./Filter"
// export * from "./FilterBar"
// export * from "./FilterButton"
// export * from "./FilterDatePicker"
// export * from "./FilterDateRangePicker"
// export * from "./FilterMultiSelect"
// export * from "./FilterSelect"
// export * from "./KaizenProvider"
// export * from "./Notification"
// export * from "./Workflow"

0 comments on commit 59259f5

Please sign in to comment.