UNPKG

@atlaskit/icon

Version:

An icon is a symbol representing a command, device, directory, or common action.

35 lines (34 loc) 1.1 kB
/* skeleton.tsx generated by @compiled/babel-plugin v0.36.1 */ import "./skeleton.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import { memo } from 'react'; var skeletonStyles = null; var subtleOpacityStyles = null; var strongOpacityStyles = null; var sizeStyles = { small: "_1bsb7vkz _4t3i7vkz", medium: "_1bsb1tcg _4t3i1tcg", large: "_1bsbzwfg _4t3izwfg", xlarge: "_1bsbckbl _4t3ickbl" }; /** * __Skeleton__ */ var Skeleton = /*#__PURE__*/memo(function Skeleton(_ref) { var testId = _ref.testId, _ref$size = _ref.size, size = _ref$size === void 0 ? 'medium' : _ref$size, _ref$color = _ref.color, color = _ref$color === void 0 ? 'currentColor' : _ref$color, _ref$weight = _ref.weight, weight = _ref$weight === void 0 ? 'normal' : _ref$weight; return /*#__PURE__*/React.createElement("div", { "data-testid": testId, style: { backgroundColor: color }, className: ax(["_2rko1q5u _1e0c1o8l", weight === 'strong' ? "_tzy4clii" : "_tzy4nh7s", sizeStyles[size]]) }); }); export default Skeleton;