UNPKG

@hitachivantara/uikit-react-core

Version:
66 lines (65 loc) 2.58 kB
import { staticClasses as staticClasses$1 } from "../../BulkActions/BulkActions.styles.js"; import { staticClasses as staticClasses$2 } from "../../Pagination/Pagination.styles.js"; import { staticClasses as staticClasses$3 } from "../TableContainer/TableContainer.styles.js"; import { staticClasses as staticClasses$4 } from "../TableCell/TableCell.styles.js"; import { staticClasses as staticClasses$5 } from "../TableHeader/TableHeader.styles.js"; import { staticClasses as staticClasses$6 } from "../TableRow/TableRow.styles.js"; import { theme } from "@hitachivantara/uikit-styles"; import { createClasses } from "@hitachivantara/uikit-react-utils"; //#region src/Table/TableSection/TableSection.styles.tsx var { staticClasses, useClasses } = createClasses("HvTableSection", { root: {}, header: {}, actions: {}, content: { marginTop: 0, padding: 0, "&:first-of-type": { "& > :first-of-type": { borderTopLeftRadius: "inherit", borderTopRightRadius: "inherit" } }, "& > :last-child": { borderBottomLeftRadius: "inherit", borderBottomRightRadius: "inherit" }, [`& .${staticClasses$3.root}`]: { paddingBottom: 0, borderTopLeftRadius: "inherit", borderTopRightRadius: "inherit" }, [`& .${staticClasses$5.head}`]: { backgroundColor: theme.colors.bgPage, borderBottomColor: theme.colors.bgPageSecondary, [`&.${staticClasses$5.variantCheckbox}`]: { borderRight: "none" }, [`&.${staticClasses$5.variantActions}`]: { borderLeft: "none" } }, [`& .${staticClasses$6.root}`]: { "&:last-child": { [`& .${staticClasses$4.root}`]: { borderBottom: "none" } } }, [`& .${staticClasses$4.root}`]: { borderBottomColor: theme.colors.borderSubtle }, [`& .${staticClasses$4.variantCheckbox}`]: { borderRight: "none" }, [`& .${staticClasses$4.variantActions}`]: { borderLeft: "none" }, [`& .${staticClasses$1.root}`]: { marginBottom: 0, border: "none", borderBottom: `1px solid ${theme.colors.borderSubtle}`, padding: theme.spacing("xs", "sm") }, [`& .${staticClasses$2.root}`]: { margin: 0, backgroundColor: theme.colors.bgPage, padding: theme.space.xs, borderTop: `1px solid ${theme.colors.borderSubtle}`, borderBottomLeftRadius: "inherit", borderBottomRightRadius: "inherit" }, [`& .${staticClasses$2.pageSizeOptions}`]: { left: theme.space.sm }, [`& .${staticClasses$2.pageSizeHeader}`]: { border: "none", "&:hover": { border: "none" } } }, hidden: {}, raisedHeader: { "& $content": { paddingTop: 0 } }, hasHeader: {} }); //#endregion export { staticClasses, useClasses };