UNPKG

@atlaskit/navigation-system

Version:

Page layout and navigation components for Atlassian apps.

32 lines (31 loc) • 1.87 kB
/* skip-links-content.tsx generated by @compiled/babel-plugin v3.0.4 */ "use strict"; var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.SkipLinksContent = SkipLinksContent; require("./skip-links-content.compiled.css"); var React = _interopRequireWildcard(require("react")); var _runtime = require("@compiled/react/runtime"); 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 contentStyles = { root: "_1rjcu2gc _18zrpxbi _1e0c1txw _2lx21bp4 _1pbyjh3g", skipLinkList: "_1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t", label: "_11c8i4vh _1rjcu2gc _syazazsu" }; function SkipLinksContent(_ref) { var label = _ref.label, titleId = _ref.titleId, testId = _ref.testId, children = _ref.children; return /*#__PURE__*/React.createElement("div", { className: (0, _runtime.ax)([contentStyles.root]) }, label !== undefined && /*#__PURE__*/React.createElement("div", { "data-testid": testId ? "".concat(testId, "--skip-links-container--label") : undefined, id: titleId, className: (0, _runtime.ax)([contentStyles.label]) }, label), /*#__PURE__*/React.createElement("ol", { className: (0, _runtime.ax)([contentStyles.skipLinkList]) }, children)); }