import React from 'react'; import { lucidClassNames } from '../../util/style-helpers'; import LoadingSkeleton, { ILoadingSkeletonProps, IStandardSkeleton, } from './LoadingSkeleton'; export interface ITableRow { id?: string; transform?: string; width?: number | string; } const backgroundGray = lucidClassNames.bind('&-LoadingSkeleton-backgroundGray'); const backgroundNeutral = lucidClassNames.bind( '&-LoadingSkeleton-backgroundNeutral' ); export const TableRowGroup = (props: ITableRow): React.ReactElement => { const { id, transform, width = '100%' } = props; return ( ); }; export const TableSkeleton = (props: IStandardSkeleton): React.ReactElement => { const { width = 800, height = 320, className } = props; return (
); }; export const TableLoadingSkeleton = ( props: ILoadingSkeletonProps ): React.ReactElement => { return ( ); }; TableLoadingSkeleton.displayName = 'TableLoadingSkeleton'; TableLoadingSkeleton.peek = { description: `A loading indicator wrapper with optional overlay.`, notes: { overview: ` A visual indication that a section or component of the interface is loading. Designed to indicate loading table of data `, intendedUse: ` - Use in places where data takes time to load. TableLoadingSkeleton lets users know that the information they expect to see will appear shortly. `, technicalRecommendations: ` If a page is displaying a lot of data coming from multiple sources, try as best as possible to load the individual 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. `, }, categories: ['Loading Indicator'], }; export default TableLoadingSkeleton;