UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

41 lines (40 loc) 2.39 kB
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import React from 'react'; import { cxBackgroundGray } from './LoadingSkeletonsSvgUtil'; import LoadingSkeleton from './LoadingSkeleton'; export var HeaderSkeleton = function HeaderSkeleton(props) { var _props$width = props.width, width = _props$width === void 0 ? 580 : _props$width, _props$height = props.height, height = _props$height === void 0 ? 70 : _props$height, className = props.className; return /*#__PURE__*/React.createElement("div", { "data-test-id": "loadingSkeleton-HeaderSkeleton" }, /*#__PURE__*/React.createElement("svg", { "data-test-id": "loadingSkeleton-HeaderSkeleton-svg", width: width, height: height, xmlns: "http://www.w3.org/2000/svg" }, /*#__PURE__*/React.createElement("path", { className: cxBackgroundGray('&', className), d: "M266 58v10H0V58h266zm293-36v24H0V22h559zM166 0v10H0V0h166zm221 0v10H181V0h206z", fillRule: "evenodd" }))); }; export var HeaderLoadingSkeleton = function HeaderLoadingSkeleton(props) { return /*#__PURE__*/React.createElement(LoadingSkeleton, _extends({ "data-test-id": "loadingSkeleton-HeaderLoadingSkeleton", Skeleton: HeaderSkeleton }, props)); }; HeaderLoadingSkeleton.displayName = 'HeaderLoadingSkeleton'; HeaderLoadingSkeleton.peek = { description: "\n\t\tA loading indicator wrapper with optional overlay.\n\t", notes: { overview: "\n\t\t\tA visual indication that a section or component of the interface is loading. Designed to indicate loading data\n\t\t", intendedUse: "\n\t\t\t- Use in places where data takes time to load. HeaderLoadingSkeleton lets users know that the information they expect to see will appear shortly.\t\t\n\t\t", technicalRecommendations: "\n\t\t\tIf a page is displaying a lot of data coming from multiple sources, try as best as possible to load the \n\t\t\tindividual parts of the UI, so as not to disrupt the user and block them from interacting with the entire page until all data is loaded.\n\t\t" }, categories: ['Loading Indicator'] }; export default HeaderLoadingSkeleton;