Files
wallet/styled-system/patterns/link-overlay.mjs
2023-08-16 08:23:27 +00:00

24 lines
589 B
JavaScript

import { mapObject } from '../helpers.mjs';
import { css } from '../css/index.mjs';
const linkOverlayConfig = {
transform(props) {
return {
position: "static",
_before: {
content: '""',
display: "block",
position: "absolute",
cursor: "inherit",
inset: "0",
zIndex: "0",
...props["_before"]
},
...props
};
}}
export const getLinkOverlayStyle = (styles = {}) => linkOverlayConfig.transform(styles, { map: mapObject })
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
linkOverlay.raw = (styles) => styles