@hitachivantara/uikit-react-core
Version:
UI Kit Core React components.
44 lines (43 loc) • 1.18 kB
JavaScript
import { theme } from "@hitachivantara/uikit-styles";
import { createClasses } from "@hitachivantara/uikit-react-utils";
//#region src/Loading/Loading.styles.tsx
var { staticClasses, useClasses } = createClasses("HvLoading", {
root: {
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
gap: theme.space.xs,
"&[data-size=small]": {
"--bar-size": "2px",
"--size": "18px",
"--height": "40%"
}
},
barContainer: {
display: "flex",
alignItems: "center",
justifyContent: "space-around",
width: "var(--size, 30px)",
height: "var(--size, 30px)"
},
loadingBar: {
backgroundColor: "currentcolor",
display: "inline-block",
animation: "loading 1s ease-in-out infinite",
width: "var(--bar-size, 4px)",
height: "100%",
"@keyframes loading": { "50%": {
height: "var(--height, 60%)",
backgroundColor: `var(--customColor, ${theme.colors.text})`
} },
":nth-of-type(2)": { animationDelay: "0.22s" },
":nth-of-type(3)": { animationDelay: "0.44s" }
},
label: { ...theme.typography.caption1 },
overlay: {},
blur: {},
hidden: { display: "none" }
});
//#endregion
export { staticClasses, useClasses };