@hitachivantara/uikit-react-core
Version:
Core React components for the NEXT Design System.
43 lines (42 loc) • 906 B
JavaScript
import { createClasses } from "@hitachivantara/uikit-react-utils";
import { theme } from "@hitachivantara/uikit-styles";
const { useClasses, staticClasses } = createClasses("HvProgressBar", {
root: {
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
// progress
width: "100%"
},
progress: {
width: "100%"
},
progressBar: {
backgroundColor: theme.colors.text
},
progressBarLabel: {
backgroundColor: "transparent",
display: "flex",
justifyContent: "end"
},
progressContainer: {
width: "100%"
},
progressDone: {
backgroundColor: theme.colors.positive
},
progressBarContainer: {
display: "flex",
width: "100%",
height: 4,
backgroundColor: theme.colors.border
},
progressError: {
backgroundColor: theme.colors.negative
}
});
export {
staticClasses,
useClasses
};