UNPKG

@atlaskit/spotlight

Version:

A spotlight introduces users to points of interest, from focused messages to multi-step tours.

36 lines (35 loc) 1.72 kB
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */ "use strict"; var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.SpotlightHeader = void 0; require("./index.compiled.css"); var _react = _interopRequireWildcard(require("react")); var React = _react; var _runtime = require("@compiled/react/runtime"); var _compiled = require("@atlaskit/primitives/compiled"); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } var styles = { root: "_bozgpxbi _y4tiutpp" }; /** * __SpotlightHeader__ * * `SpotlightHeader` should be placed at the top of a `Spotlight`, and is * intended to show the `SpotlightHeadline` component, as well as `SpotLightControls`. * */ var SpotlightHeader = exports.SpotlightHeader = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) { var children = _ref.children, testId = _ref.testId; return /*#__PURE__*/React.createElement(_compiled.Flex, { ref: ref, testId: testId, xcss: styles.root, alignItems: "center", justifyContent: "space-between", gap: "space.100" }, children); });