UNPKG

@selfcommunity/react-ui

Version:

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

44 lines (37 loc) 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const CardContent_1 = tslib_1.__importDefault(require("@mui/material/CardContent")); const List_1 = tslib_1.__importDefault(require("@mui/material/List")); const styles_1 = require("@mui/material/styles"); const Incubator_1 = require("../Incubator"); const Widget_1 = tslib_1.__importDefault(require("../Widget")); const constants_1 = require("./constants"); const classes = { root: `${constants_1.PREFIX}-skeleton-root`, list: `${constants_1.PREFIX}-list` }; const Root = (0, styles_1.styled)(Widget_1.default, { name: constants_1.PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Incubator List Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {IncubatorListWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCIncubatorListWidget-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCIncubatorListWidget-skeleton-root-root|Styles applied to the root element.| |list|.SCIncubatorListWidget-list|Styles applied to the list element.| * */ function IncubatorListWidgetSkeleton(props) { return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsx)(CardContent_1.default, { children: (0, jsx_runtime_1.jsx)(List_1.default, Object.assign({ className: classes.list }, { children: [...Array(4)].map((category, index) => ((0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, { elevation: 0 }, index))) })) }) }))); } exports.default = IncubatorListWidgetSkeleton;