UNPKG

@actinc/dls

Version:

Design Language System (DLS) for ACT & Encoura front-end projects.

41 lines 1.46 kB
/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { Typography } from '@mui/material'; import Grid, { gridClasses } from '@mui/material/Grid'; import { styled } from '@mui/material/styles'; import DLS_COMPONENT_NAMES from "../../constants/DLS_COMPONENT_NAMES"; import DLS_COMPONENT_SLOT_NAMES from "../../constants/DLS_COMPONENT_SLOT_NAMES"; export var StyledTypography = styled(Typography, { name: DLS_COMPONENT_NAMES.PIE_CHART, slot: DLS_COMPONENT_SLOT_NAMES[DLS_COMPONENT_NAMES.PIE_CHART].TITLE_TEXT, })(function (_a) { var hasHighlight = _a.hasHighlight, theme = _a.theme, variantSize = _a.variantSize; return ({ marginTop: variantSize ? theme.spacing(1.5) : 0, paddingRight: hasHighlight ? theme.spacing(30) : 0, paddingTop: hasHighlight ? theme.spacing(3) : 0, }); }); export var StyledGridTitle = styled(Grid)(function (_a) { var _b; var theme = _a.theme; return (_b = {}, _b["&.".concat(gridClasses.root)] = { paddingTop: theme.spacing(3), }, _b); }); export var StyledGridBody = styled(Grid)(function (_a) { var _b; var theme = _a.theme; return (_b = {}, _b["&.".concat(gridClasses.root)] = { paddingTop: theme.spacing(2), }, _b); }); //# sourceMappingURL=styles.js.map