UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

42 lines (35 loc) 2.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const styles_1 = require("@mui/material/styles"); const constants_1 = require("./constants"); const Widget_1 = tslib_1.__importDefault(require("../Widget")); const material_1 = require("@mui/material"); const classes = { root: `${constants_1.PREFIX}-skeleton-root`, map: `${constants_1.PREFIX}-skeleton-map` }; const Root = (0, styles_1.styled)(Widget_1.default, { name: constants_1.PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Group Info Widget Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {EventLocationWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCEventLocationWidgetSkeleton-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCEventLocationWidgetSkeleton-skeleton-root|Styles applied to the root element.| |root|.SCEventLocationWidgetSkeleton-skeleton-map|Styles applied to the map element.| * */ function EventLocationWidgetSkeleton() { return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 30, width: "20%", variant: 'text' }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.map }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", animation: "wave", height: '100%', width: '100%' }) })), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "30%", variant: 'text' }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "40%", variant: 'text' })] }) }))); } exports.default = EventLocationWidgetSkeleton;