@atlaskit/menu
Version:
A list of options to help users navigate, or perform actions.
56 lines (52 loc) • 2.63 kB
JavaScript
/* skeleton-heading-item.tsx generated by @compiled/babel-plugin v0.39.1 */
;
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("./skeleton-heading-item.compiled.css");
var React = _interopRequireWildcard(require("react"));
var _runtime = require("@compiled/react/runtime");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var styles = {
skeleton: "_1rjcze3t _18zrpxbi _14mj53f4 _1ywu1ule _z0ai1r5k _1qdgu2gc _1hfkizff _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.
*/
var 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.
*/
var 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)
*/
var SkeletonHeadingItem = function SkeletonHeadingItem(_ref) {
var _ref$isShimmering = _ref.isShimmering,
isShimmering = _ref$isShimmering === void 0 ? false : _ref$isShimmering,
testId = _ref.testId,
width = _ref.width,
xcss = _ref.xcss;
return /*#__PURE__*/React.createElement("div", {
className: (0, _runtime.ax)([styles.skeleton, width && styles.customWidth, isShimmering && "", isShimmering && "_unfq1yy8 _9nev1yy8 _kwc012o8 _joxl12o8 _18f312c5 _evp612c5 _19oh1254 _10881254 _18lgp3kn _zo24p3kn _1hfkizff _1rusizff", xcss]),
style: {
'--width': width
},
"data-ds--menu--skeleton-heading-item": true,
"data-testid": testId
});
};
var _default = exports.default = SkeletonHeadingItem;