@selfcommunity/react-ui 1.2.0-alpha.4 → 1.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const material_1 = require("@mui/material");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
|
-
const react_1 = require("react");
|
|
7
6
|
const classes = {
|
|
7
|
+
optionsContainer: `${constants_1.PREFIX}-options-container`,
|
|
8
8
|
optionsWrapper: `${constants_1.PREFIX}-options-wrapper`,
|
|
9
9
|
optionsDivider: `${constants_1.PREFIX}-options-divider`,
|
|
10
10
|
optionsButtonWrapper: `${constants_1.PREFIX}-options-button-wrapper`
|
|
11
11
|
};
|
|
12
12
|
function OptionsSkeleton() {
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.optionsContainer }, { children: [(0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ className: classes.optionsWrapper }, { children: Array.from(Array(3)).map((_, i) => ((0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({ component: "fieldset", variant: "standard" }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, Object.assign({ component: "legend" }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "text", width: "52px", height: "21px" }) })), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Switch, {}), label: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "text", width: "215px", height: "38px" }) })] }), i))) })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.optionsDivider }), (0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ className: classes.optionsButtonWrapper }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "rounded", width: "133px", height: "33px" }) }))] })));
|
|
14
14
|
}
|
|
15
15
|
exports.default = OptionsSkeleton;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Divider, FormControl, FormControlLabel, FormLabel, Skeleton, Stack, Switch } from '@mui/material';
|
|
2
|
+
import { Box, Divider, FormControl, FormControlLabel, FormLabel, Skeleton, Stack, Switch } from '@mui/material';
|
|
3
3
|
import { PREFIX } from '../constants';
|
|
4
|
-
import { Fragment } from 'react';
|
|
5
4
|
const classes = {
|
|
5
|
+
optionsContainer: `${PREFIX}-options-container`,
|
|
6
6
|
optionsWrapper: `${PREFIX}-options-wrapper`,
|
|
7
7
|
optionsDivider: `${PREFIX}-options-divider`,
|
|
8
8
|
optionsButtonWrapper: `${PREFIX}-options-button-wrapper`
|
|
9
9
|
};
|
|
10
10
|
export default function OptionsSkeleton() {
|
|
11
|
-
return (_jsxs(
|
|
11
|
+
return (_jsxs(Box, Object.assign({ className: classes.optionsContainer }, { children: [_jsx(Stack, Object.assign({ className: classes.optionsWrapper }, { children: Array.from(Array(3)).map((_, i) => (_jsxs(FormControl, Object.assign({ component: "fieldset", variant: "standard" }, { children: [_jsx(FormLabel, Object.assign({ component: "legend" }, { children: _jsx(Skeleton, { animation: "wave", variant: "text", width: "52px", height: "21px" }) })), _jsx(FormControlLabel, { control: _jsx(Switch, {}), label: _jsx(Skeleton, { animation: "wave", variant: "text", width: "215px", height: "38px" }) })] }), i))) })), _jsx(Divider, { className: classes.optionsDivider }), _jsx(Stack, Object.assign({ className: classes.optionsButtonWrapper }, { children: _jsx(Skeleton, { animation: "wave", variant: "rounded", width: "133px", height: "33px" }) }))] })));
|
|
12
12
|
}
|