UNPKG

@equinor/eds-core-react

Version:

The React implementation of the Equinor Design System

28 lines (24 loc) 946 B
import { forwardRef } from 'react'; import styled, { css } from 'styled-components'; import { jsx } from 'react/jsx-runtime'; const StyledDialogActions = styled.div.withConfig({ displayName: "DialogActions__StyledDialogActions", componentId: "sc-16ydtxd-0" })(({ theme, children }) => { return css(["align-self:end;justify-self:start;padding:0 ", " 0 ", ";&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}", ""], theme.entities.children.spacings.right, theme.entities.children.spacings.left, theme.entities.children.spacings.top, theme.entities.children.spacings.bottom, !children && css(["min-height:initial;height:'8px';"])); }); const DialogActions = /*#__PURE__*/forwardRef(function DialogActions({ children, ...props }, ref) { return /*#__PURE__*/jsx(StyledDialogActions, { ref: ref, ...props, children: children }); }); // Actions.displayName = 'EdsDialogActions' export { DialogActions };