@atlaskit/menu
Version:
A list of options to help users navigate, or perform actions.
50 lines (47 loc) • 1.68 kB
JavaScript
/* skeleton-heading-item.tsx generated by @compiled/babel-plugin v0.36.1 */
import "./skeleton-heading-item.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
const N20A = 'rgba(9, 30, 66, 0.04)';
const N30A = 'rgba(9, 30, 66, 0.08)';
const styles = {
skeleton: "_1rjcze3t _18zrpxbi _14mj53f4 _1ywu1ule _z0ai1r5k _1qdgu2gc _1hfklbf8 _aetrb3bt",
customWidth: "_z0airzut"
};
/**
* These styles are mirrored in:
* packages/design-system/theme/src/constants.tsx
* packages/design-system/menu/src/menu-item/skeleton-item.tsx
*
* Please update both.
*/
const shimmerKeyframes = null;
/**
* These styles are defined using `css` rather than `cssMap` as there is a
* bug when using `cssMap` that causes a build failure due to the use of keyframes.
*/
const shimmerStyles = null;
/**
* __Skeleton heading item__
*
* A skeleton heading item is used in place of a heading item when its contents it not ready.
*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/skeleton-heading-item)
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
*/
const SkeletonHeadingItem = ({
isShimmering = false,
testId,
width,
xcss
}) => {
return /*#__PURE__*/React.createElement("div", {
className: ax([styles.skeleton, width && styles.customWidth, isShimmering && "", isShimmering && "_unfq1yy8 _9nev1yy8 _kwc012o8 _joxl12o8 _18f312c5 _evp612c5 _19oh1qxh _10881qxh _18lgp3kn _zo24p3kn _1hfklbf8 _1ruslbf8", xcss]),
style: {
'--width': width
},
"data-ds--menu--skeleton-heading-item": true,
"data-testid": testId
});
};
export default SkeletonHeadingItem;