UNPKG

@selfcommunity/react-templates

Version:

React Templates Components to integrate a Community created with SelfCommunity.

36 lines (31 loc) 2.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const material_1 = require("@mui/material"); const react_ui_1 = require("@selfcommunity/react-ui"); const constants_1 = require("./constants"); const classes = { root: `${constants_1.PREFIX}-prize-item-skeleton-root`, content: `${constants_1.PREFIX}-content`, actions: `${constants_1.PREFIX}-actions` }; const Root = (0, material_1.styled)(react_ui_1.Widget, { name: constants_1.PREFIX, slot: 'PrizeItemSkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS PrizeItemSkeleton Skeleton component. Learn about the available props and the CSS API. #### Component Name The name `SCLoyaltyProgramDetailTemplate-prize-item-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCLoyaltyProgramDetailTemplate-prize-item-skeleton-root|Styles applied to the root element.| |content|.SCLoyaltyProgramDetailTemplate-content|Styles applied to the card content section.| |actions|.SCLoyaltyProgramDetailTemplate-actions|Styles applied to the actions section.| * */ function PrizeItemSkeleton() { return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "rectangular", width: "100%", height: 137 }) }), (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "80%", variant: "text" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "70%", variant: "text", style: { marginTop: 8 } })] })) }), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: true, variant: 'outlined', size: 'small' }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: 50, variant: "text" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: true, variant: 'text', size: 'small' }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: 70, variant: "text" }) }))] }))] }))); } exports.default = PrizeItemSkeleton;