UNPKG

@hitachivantara/uikit-react-core

Version:

Core React components for the NEXT Design System.

39 lines (38 loc) 958 B
import { createClasses } from "@hitachivantara/uikit-react-utils"; import { theme } from "@hitachivantara/uikit-styles"; const { staticClasses, useClasses } = createClasses("HvSelectionList", { root: { display: "inline-block", padding: 0, margin: 0 }, error: { width: "100%", float: "left", clear: "both" }, listbox: { display: "flex", float: "left", clear: "both", width: "100%", paddingBottom: theme.space.xs }, label: {}, description: { float: "left" }, horizontal: { flexDirection: "row", flexWrap: "wrap", marginLeft: -theme.space.sm, "&>*": { marginLeft: theme.space.sm } }, vertical: { flexDirection: "column", // Prevent the focus ring to be hidden by sibling hover background "&>*": { zIndex: 0 }, "&>*:focus-within": { zIndex: 1 } }, invalid: { borderBottom: `1px solid ${theme.form.errorColor}` } }); export { staticClasses, useClasses };