UNPKG

@atlaskit/button

Version:

A button triggers an event or action. They let users know what will happen next.

9 lines 796 B
import { __assign, __rest } from "tslib"; import { jsx } from '@emotion/core'; import { gridSize } from '@atlaskit/theme/constants'; import { getLoadingStyle } from './utils'; export default (function (_a) { var children = _a.children, followsIcon = _a.followsIcon, spacing = _a.spacing, isLoading = _a.isLoading, rest = __rest(_a, ["children", "followsIcon", "spacing", "isLoading"]); return (jsx("span", __assign({ css: __assign({ alignItems: followsIcon ? 'baseline' : 'center', alignSelf: followsIcon ? 'baseline' : 'center', flex: '1 1 auto', margin: spacing === 'none' ? 0 : "0 " + gridSize() / 2 + "px", maxWidth: '100%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, getLoadingStyle(isLoading)) }, rest), children)); }); //# sourceMappingURL=Content.js.map