UNPKG

@hitachivantara/uikit-react-lab

Version:

Contributed React components to UI Kit by the community.

43 lines (42 loc) 893 B
import { theme } from "@hitachivantara/uikit-styles"; //#region src/StepNavigation/DefaultNavigation/utils.ts var getColor$1 = (state) => ({ Pending: theme.colors.warning ?? "warning", Failed: theme.colors.negative ?? "negative", Completed: theme.colors.positive ?? "positive", Current: theme.colors.text ?? "text", Disabled: theme.colors.textDisabled ?? "textDisabled", Enabled: theme.colors.text ?? "text" })[state]; var getSemantic = (state) => ({ Pending: "warning", Failed: "negative", Completed: "positive", Current: "text", Disabled: "textDisabled", Enabled: "text" })[state]; var stepSizes = { xs: { container: 32, avatar: 24 }, sm: { container: 40, avatar: 32 }, md: { container: 48, avatar: 40 }, lg: { container: 60, avatar: 52 }, xl: { container: 96, avatar: 88 } }; //#endregion export { getColor$1 as getColor, getSemantic, stepSizes };