UNPKG

@atlaskit/primitives

Version:

Primitives are token-backed low-level building blocks.

48 lines (46 loc) 1.72 kB
/* bleed.tsx generated by @compiled/babel-plugin v0.36.1 */ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("./bleed.compiled.css"); var _runtime = require("@compiled/react/runtime"); var _react = _interopRequireDefault(require("react")); // NOTE: This maintains a full map of 10 styles as Bleed is a bit of a semantic outlier var styles = { root: "_vchhusvi", 'inline.space.025': "_195g4pxn", 'inline.space.050': "_195ggp71", 'inline.space.100': "_195gtdkl", 'inline.space.150': "_195gkqjj", 'inline.space.200': "_195g1e8l", 'block.space.025': "_1mou4pxn", 'block.space.050': "_1mougp71", 'block.space.100': "_1moutdkl", 'block.space.150': "_1moukqjj", 'block.space.200': "_1mou1e8l" }; /** * __Bleed__ * * `Bleed` is a primitive layout component that controls negative whitespace. * * - [Examples](https://atlassian.design/components/primitives/bleed/examples) * - [Code](https://atlassian.design/components/primitives/bleed/code) */ var Bleed = /*#__PURE__*/_react.default.memo(function (_ref) { var children = _ref.children, testId = _ref.testId, inline = _ref.inline, block = _ref.block, all = _ref.all, xcss = _ref.xcss; return /*#__PURE__*/_react.default.createElement("div", { className: (0, _runtime.ax)([styles.root, all && styles["inline.".concat(all)], inline && styles["inline.".concat(inline)], all && styles["block.".concat(all)], block && styles["block.".concat(block)], xcss]), "data-testid": testId }, children); }); Bleed.displayName = 'Bleed'; var _default = exports.default = Bleed;