@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
65 lines (64 loc) • 1.8 kB
TypeScript
import { ComponentStyle } from "../../core/system/index.types.js";
import { CSSModifierObject } from "../../core/css/index.types.js";
import "../../index.js";
//#region src/components/skeleton/skeleton.style.d.ts
declare const skeletonStyle: ComponentStyle<{
/**
* If `false`, it'll render its children with a nice fade transition.
*
* @default true
*/
loading: {
false: {
animationDuration: "{fade-duration, 0.1s}";
animationIterationCount: "1";
animationName: "fade-in";
animationTimingFunction: "ease-out";
bg: "unset";
};
true: {
"&::before, &::after, *": {
visibility: "hidden";
};
"--height": "sizes.6";
"--width": "sizes.full";
bgClip: "padding-box";
boxShadow: "none";
color: "transparent";
cursor: "default";
flexShrink: "0";
h: "{height}";
maxW: "full";
pointerEvents: "none";
rounded: "l1";
userSelect: "none";
w: "{width}";
};
};
}, CSSModifierObject, {
none: {
animation: "none";
};
pulse: {
animationDuration: "{duration, 1.2s}";
animationIterationCount: "infinite";
animationName: "pulse";
bg: "bg.muted";
};
shine: {
"--animation-from": "200%";
"--animation-to": "-200%";
"--end-color": "colors.bg.muted";
"--start-color": "colors.bg.subtle";
animationDuration: "{duration, 5s}";
animationIterationCount: "infinite";
animationName: "bg-position";
animationTimingFunction: "ease-in-out";
bgImage: "linear-gradient(270deg, {start-color}, {end-color}, {end-color}, {start-color})";
bgSize: "400% 100%";
};
}>;
type SkeletonStyle = typeof skeletonStyle;
//#endregion
export { SkeletonStyle, skeletonStyle };
//# sourceMappingURL=skeleton.style.d.ts.map