@pingux/astro 2.88.0-alpha.3 → 2.89.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/CodeView/CodeView.js +29 -4
- package/lib/cjs/components/CodeView/CodeView.test.js +10 -0
- package/lib/cjs/components/CopyText/CopyText.js +2 -2
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.d.ts +9 -0
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.js +75 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.d.ts +9 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.js +49 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.mdx +31 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.d.ts +12 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +210 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.d.ts +1 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.js +361 -0
- package/lib/cjs/components/NavigationHeader/index.d.ts +1 -0
- package/lib/cjs/components/NavigationHeader/index.js +14 -0
- package/lib/cjs/hooks/useField/useField.d.ts +78 -78
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +55 -36
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +15 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +22 -6
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +4 -2
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +261 -7
- package/lib/cjs/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +6 -4
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.d.ts +140 -0
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +131 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +107 -6
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +15 -9
- package/lib/cjs/types/codeView.d.ts +3 -2
- package/lib/cjs/types/copyText.d.ts +1 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +65 -54
- package/lib/cjs/utils/devUtils/constants/images.d.ts +2 -0
- package/lib/cjs/utils/devUtils/constants/images.js +6 -2
- package/lib/components/CodeView/CodeView.js +30 -5
- package/lib/components/CodeView/CodeView.test.js +10 -0
- package/lib/components/CopyText/CopyText.js +2 -2
- package/lib/components/NavigationHeader/HeaderAccountMenu.js +66 -0
- package/lib/components/NavigationHeader/NavigationHeader.js +37 -0
- package/lib/components/NavigationHeader/NavigationHeader.mdx +31 -0
- package/lib/components/NavigationHeader/NavigationHeader.stories.js +195 -0
- package/lib/components/NavigationHeader/NavigationHeader.test.js +358 -0
- package/lib/components/NavigationHeader/index.js +1 -0
- package/lib/index.js +2 -0
- package/lib/styles/themes/next-gen/codeView/codeView.js +20 -5
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/styles/themes/next-gen/variants/button.js +6 -4
- package/lib/styles/themes/next-gen/variants/navigationHeader.js +123 -0
- package/lib/styles/themes/next-gen/variants/variants.js +14 -8
- package/lib/types/index.js +1 -0
- package/lib/utils/devUtils/constants/images.js +3 -1
- package/package.json +1 -1
@@ -0,0 +1,358 @@
|
|
1
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
2
|
+
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
3
|
+
import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
|
4
|
+
import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
|
7
|
+
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
8
|
+
import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
|
9
|
+
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
10
|
+
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
11
|
+
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
12
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
13
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = _Object$defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context2; _forEachInstanceProperty(_context2 = ["next", "throw", "return"]).call(_context2, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context3; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context3 = this.tryEntries).call(_context3, resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
14
|
+
import React from 'react';
|
15
|
+
import HelpCircleOutlineIcon from '@pingux/mdi-react/HelpCircleOutlineIcon';
|
16
|
+
import MoonWaningCrescentIcon from '@pingux/mdi-react/MoonWaningCrescentIcon';
|
17
|
+
import WhiteBalanceSunnyIcon from '@pingux/mdi-react/WhiteBalanceSunnyIcon';
|
18
|
+
import userEvent from '@testing-library/user-event';
|
19
|
+
import { Box, Icon, IconButton, IconButtonToggle, Image, Item, Link, Menu, OverlayProvider, PopoverMenu, Separator, Text } from '../../index';
|
20
|
+
import { pingLogoHorizontal } from '../../utils/devUtils/constants/images';
|
21
|
+
import { render, screen } from '../../utils/testUtils/testWrapper';
|
22
|
+
import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
|
23
|
+
import NavigationHeader from '.';
|
24
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
25
|
+
var breakpointDisplaysXS = ['none', 'none', 'block', 'block', 'block', 'block'];
|
26
|
+
var breakpointDisplaySmall = ['none', 'none', 'none', 'none', 'block', 'block'];
|
27
|
+
var pingLogoAlt = 'Ping Identity Logo';
|
28
|
+
var fallbackAlt = 'Fallback Image';
|
29
|
+
var getComponent = function getComponent() {
|
30
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
31
|
+
return render(___EmotionJSX(NavigationHeader, _extends({}, props, {
|
32
|
+
isSticky: true,
|
33
|
+
"aria-labelledby": "next-gen-header"
|
34
|
+
}), ___EmotionJSX(Link, {
|
35
|
+
href: "#",
|
36
|
+
variant: "navigationHeader.logoBand",
|
37
|
+
"data-testid": "logo-band"
|
38
|
+
}, ___EmotionJSX(Box, {
|
39
|
+
isRow: true,
|
40
|
+
alignItems: "center",
|
41
|
+
justifyContent: "center",
|
42
|
+
py: "sm",
|
43
|
+
flex: "0 0 auto"
|
44
|
+
}, ___EmotionJSX(Image, {
|
45
|
+
src: pingLogoHorizontal,
|
46
|
+
alt: pingLogoAlt,
|
47
|
+
mr: "md",
|
48
|
+
sx: {
|
49
|
+
height: '24px'
|
50
|
+
},
|
51
|
+
"data-testid": "ping-logo",
|
52
|
+
fallbackAlt: fallbackAlt
|
53
|
+
}), ___EmotionJSX(Separator, {
|
54
|
+
orientation: "vertical",
|
55
|
+
style: {
|
56
|
+
height: '28px',
|
57
|
+
margin: '0'
|
58
|
+
}
|
59
|
+
}), ___EmotionJSX(Text, {
|
60
|
+
as: "h2",
|
61
|
+
variant: "navigationHeader.headerPlaceholder",
|
62
|
+
id: "next-gen-header"
|
63
|
+
}, "Marketplace"))), ___EmotionJSX(Box, {
|
64
|
+
as: "ul",
|
65
|
+
isRow: true,
|
66
|
+
alignItems: "center",
|
67
|
+
p: "0",
|
68
|
+
ml: "auto",
|
69
|
+
flex: "0 0 auto"
|
70
|
+
}, ___EmotionJSX(Box, {
|
71
|
+
as: "li",
|
72
|
+
display: breakpointDisplaySmall,
|
73
|
+
"data-testid": "Browse"
|
74
|
+
}, ___EmotionJSX(Link, {
|
75
|
+
"aria-label": "Browse",
|
76
|
+
href: "#",
|
77
|
+
variant: "navigationHeader.link"
|
78
|
+
}, "Browse")), ___EmotionJSX(Box, {
|
79
|
+
as: "li",
|
80
|
+
display: breakpointDisplaySmall,
|
81
|
+
"data-testid": "My-Content"
|
82
|
+
}, ___EmotionJSX(Link, {
|
83
|
+
"aria-label": "My Content",
|
84
|
+
href: "#",
|
85
|
+
variant: "navigationHeader.link"
|
86
|
+
}, "My Content")), ___EmotionJSX(Box, {
|
87
|
+
as: "li",
|
88
|
+
display: breakpointDisplaySmall,
|
89
|
+
"data-testid": "Reports"
|
90
|
+
}, ___EmotionJSX(Link, {
|
91
|
+
"aria-label": "Reports",
|
92
|
+
href: "#",
|
93
|
+
variant: "navigationHeader.link"
|
94
|
+
}, "Reports")), ___EmotionJSX(Box, {
|
95
|
+
as: "li",
|
96
|
+
display: breakpointDisplaysXS
|
97
|
+
}, ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
98
|
+
isContainFocus: true
|
99
|
+
}, ___EmotionJSX(IconButton, {
|
100
|
+
"aria-label": "Help & Support",
|
101
|
+
variant: "base",
|
102
|
+
"data-testid": "help-support-button"
|
103
|
+
}, ___EmotionJSX(Icon, {
|
104
|
+
size: "24px",
|
105
|
+
color: "gray-800",
|
106
|
+
icon: HelpCircleOutlineIcon,
|
107
|
+
title: {
|
108
|
+
name: 'help circle outline icon'
|
109
|
+
}
|
110
|
+
})), ___EmotionJSX(Menu, {
|
111
|
+
variant: "navigationHeader.dropdownMenu"
|
112
|
+
}, ___EmotionJSX(Item, {
|
113
|
+
key: "Help & Support",
|
114
|
+
textValue: "Help & Support"
|
115
|
+
}, ___EmotionJSX(Link, {
|
116
|
+
href: "Help & Support",
|
117
|
+
"aria-label": "Help & Support",
|
118
|
+
variant: "navigationHeader.dropdownMenuItem"
|
119
|
+
}, "Help & Support")), ___EmotionJSX(Item, {
|
120
|
+
key: "Doc",
|
121
|
+
textValue: "Doc"
|
122
|
+
}, ___EmotionJSX(Link, {
|
123
|
+
href: "Doc",
|
124
|
+
"aria-label": "Doc",
|
125
|
+
variant: "navigationHeader.dropdownMenuItem"
|
126
|
+
}, "Doc")), ___EmotionJSX(Item, {
|
127
|
+
key: "Developer",
|
128
|
+
textValue: "Developer"
|
129
|
+
}, ___EmotionJSX(Link, {
|
130
|
+
href: "Developer",
|
131
|
+
"aria-label": "Developer",
|
132
|
+
variant: "navigationHeader.dropdownMenuItem"
|
133
|
+
}, "Developer")), ___EmotionJSX(Item, {
|
134
|
+
key: "Labs",
|
135
|
+
textValue: "Labs"
|
136
|
+
}, ___EmotionJSX(Link, {
|
137
|
+
href: "Labs",
|
138
|
+
"aria-label": "Labs",
|
139
|
+
variant: "navigationHeader.dropdownMenuItem"
|
140
|
+
}, "Labs")))))), ___EmotionJSX(Box, {
|
141
|
+
as: "li",
|
142
|
+
display: breakpointDisplaysXS
|
143
|
+
}, ___EmotionJSX(IconButtonToggle, {
|
144
|
+
toggledIcon: WhiteBalanceSunnyIcon,
|
145
|
+
defaultIcon: MoonWaningCrescentIcon,
|
146
|
+
iconProps: {
|
147
|
+
size: '24px'
|
148
|
+
},
|
149
|
+
buttonProps: {
|
150
|
+
'aria-label': 'theme icon',
|
151
|
+
'data-testid': 'theme-toggle-icon-button'
|
152
|
+
}
|
153
|
+
})))));
|
154
|
+
};
|
155
|
+
|
156
|
+
// Needs to be added to each components test file
|
157
|
+
universalComponentTests({
|
158
|
+
renderComponent: function renderComponent(props) {
|
159
|
+
return ___EmotionJSX(NavigationHeader, _extends({}, props, {
|
160
|
+
isSticky: true,
|
161
|
+
"aria-labelledby": "next-gen-header"
|
162
|
+
}), ___EmotionJSX(Link, {
|
163
|
+
href: "#",
|
164
|
+
variant: "navigationHeader.logoBand",
|
165
|
+
"data-testid": "logo-band"
|
166
|
+
}, ___EmotionJSX(Box, {
|
167
|
+
isRow: true,
|
168
|
+
alignItems: "center",
|
169
|
+
justifyContent: "center",
|
170
|
+
py: "sm",
|
171
|
+
flex: "0 0 auto"
|
172
|
+
}, ___EmotionJSX(Image, {
|
173
|
+
src: pingLogoHorizontal,
|
174
|
+
alt: pingLogoAlt,
|
175
|
+
mr: "md",
|
176
|
+
sx: {
|
177
|
+
height: '24px'
|
178
|
+
},
|
179
|
+
"data-testid": "ping-logo",
|
180
|
+
fallbackAlt: fallbackAlt
|
181
|
+
}), ___EmotionJSX(Separator, {
|
182
|
+
orientation: "vertical",
|
183
|
+
style: {
|
184
|
+
height: '28px',
|
185
|
+
margin: '0'
|
186
|
+
}
|
187
|
+
}), ___EmotionJSX(Text, {
|
188
|
+
as: "h2",
|
189
|
+
variant: "navigationHeader.headerPlaceholder",
|
190
|
+
id: "next-gen-header"
|
191
|
+
}, "Marketplace"))), ___EmotionJSX(Box, {
|
192
|
+
as: "ul",
|
193
|
+
isRow: true,
|
194
|
+
alignItems: "center",
|
195
|
+
p: "0",
|
196
|
+
ml: "auto",
|
197
|
+
flex: "0 0 auto"
|
198
|
+
}, ___EmotionJSX(Box, {
|
199
|
+
as: "li",
|
200
|
+
display: breakpointDisplaySmall,
|
201
|
+
"data-testid": "Browse"
|
202
|
+
}, ___EmotionJSX(Link, {
|
203
|
+
"aria-label": "Browse",
|
204
|
+
href: "#",
|
205
|
+
variant: "navigationHeader.link"
|
206
|
+
}, "Browse")), ___EmotionJSX(Box, {
|
207
|
+
as: "li",
|
208
|
+
display: breakpointDisplaySmall,
|
209
|
+
"data-testid": "My-Content"
|
210
|
+
}, ___EmotionJSX(Link, {
|
211
|
+
"aria-label": "My Content",
|
212
|
+
href: "#",
|
213
|
+
variant: "navigationHeader.link"
|
214
|
+
}, "My Content")), ___EmotionJSX(Box, {
|
215
|
+
as: "li",
|
216
|
+
display: breakpointDisplaySmall,
|
217
|
+
"data-testid": "Reports"
|
218
|
+
}, ___EmotionJSX(Link, {
|
219
|
+
"aria-label": "Reports",
|
220
|
+
href: "#",
|
221
|
+
variant: "navigationHeader.link"
|
222
|
+
}, "Reports")), ___EmotionJSX(Box, {
|
223
|
+
as: "li",
|
224
|
+
display: breakpointDisplaysXS
|
225
|
+
}, ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, {
|
226
|
+
isContainFocus: true
|
227
|
+
}, ___EmotionJSX(IconButton, {
|
228
|
+
"aria-label": "Help & Support",
|
229
|
+
variant: "base",
|
230
|
+
"data-testid": "help-support-button"
|
231
|
+
}, ___EmotionJSX(Icon, {
|
232
|
+
size: "24px",
|
233
|
+
color: "gray-800",
|
234
|
+
icon: HelpCircleOutlineIcon,
|
235
|
+
title: {
|
236
|
+
name: 'help circle outline icon'
|
237
|
+
}
|
238
|
+
})), ___EmotionJSX(Menu, {
|
239
|
+
variant: "navigationHeader.dropdownMenu"
|
240
|
+
}, ___EmotionJSX(Item, {
|
241
|
+
key: "Help & Support",
|
242
|
+
textValue: "Help & Support"
|
243
|
+
}, ___EmotionJSX(Link, {
|
244
|
+
href: "Help & Support",
|
245
|
+
"aria-label": "Help & Support",
|
246
|
+
variant: "navigationHeader.dropdownMenuItem"
|
247
|
+
}, "Help & Support")), ___EmotionJSX(Item, {
|
248
|
+
key: "Doc",
|
249
|
+
textValue: "Doc"
|
250
|
+
}, ___EmotionJSX(Link, {
|
251
|
+
href: "Doc",
|
252
|
+
"aria-label": "Doc",
|
253
|
+
variant: "navigationHeader.dropdownMenuItem"
|
254
|
+
}, "Doc")), ___EmotionJSX(Item, {
|
255
|
+
key: "Developer",
|
256
|
+
textValue: "Developer"
|
257
|
+
}, ___EmotionJSX(Link, {
|
258
|
+
href: "Developer",
|
259
|
+
"aria-label": "Developer",
|
260
|
+
variant: "navigationHeader.dropdownMenuItem"
|
261
|
+
}, "Developer")), ___EmotionJSX(Item, {
|
262
|
+
key: "Labs",
|
263
|
+
textValue: "Labs"
|
264
|
+
}, ___EmotionJSX(Link, {
|
265
|
+
href: "Labs",
|
266
|
+
"aria-label": "Labs",
|
267
|
+
variant: "navigationHeader.dropdownMenuItem"
|
268
|
+
}, "Labs")))))), ___EmotionJSX(Box, {
|
269
|
+
as: "li",
|
270
|
+
display: breakpointDisplaysXS,
|
271
|
+
"data-testid": "theme-toggle-icon-button"
|
272
|
+
}, ___EmotionJSX(IconButtonToggle, {
|
273
|
+
toggledIcon: WhiteBalanceSunnyIcon,
|
274
|
+
defaultIcon: MoonWaningCrescentIcon,
|
275
|
+
iconProps: {
|
276
|
+
size: '24px'
|
277
|
+
},
|
278
|
+
buttonProps: {
|
279
|
+
'aria-label': 'theme icon'
|
280
|
+
}
|
281
|
+
}))));
|
282
|
+
}
|
283
|
+
});
|
284
|
+
test('renders NavigationHeader component', function () {
|
285
|
+
getComponent({
|
286
|
+
isSticky: false,
|
287
|
+
'data-testid': 'navigation-header'
|
288
|
+
});
|
289
|
+
var navigationHeaderElement = screen.getByTestId('navigation-header');
|
290
|
+
expect(navigationHeaderElement).toBeInTheDocument();
|
291
|
+
});
|
292
|
+
test('renders NavigationHeader component with sticky position', function () {
|
293
|
+
getComponent({
|
294
|
+
isSticky: true,
|
295
|
+
'data-testid': 'navigation-header'
|
296
|
+
});
|
297
|
+
var navigationHeaderElement = screen.getByTestId('navigation-header');
|
298
|
+
expect(navigationHeaderElement).toBeInTheDocument();
|
299
|
+
expect(navigationHeaderElement).toHaveStyle('position: sticky');
|
300
|
+
});
|
301
|
+
test('renders NavigationHeader component with placeholder', function () {
|
302
|
+
getComponent();
|
303
|
+
expect(screen.getByRole('heading', {
|
304
|
+
name: 'Marketplace'
|
305
|
+
})).toBeInTheDocument();
|
306
|
+
});
|
307
|
+
test('renders NavigationHeader component with link', function () {
|
308
|
+
getComponent();
|
309
|
+
expect(screen.getByLabelText('Browse')).toBeInTheDocument();
|
310
|
+
expect(screen.getByLabelText('My Content')).toBeInTheDocument();
|
311
|
+
expect(screen.getByLabelText('Reports')).toBeInTheDocument();
|
312
|
+
});
|
313
|
+
test('renders NavigationHeader component with theme toggle icon button', function () {
|
314
|
+
getComponent();
|
315
|
+
var themeIcon = screen.getByTestId('theme-toggle-icon-button');
|
316
|
+
expect(themeIcon).toBeInTheDocument();
|
317
|
+
expect(screen.getByText('MoonWaningCrescentIcon')).toBeInTheDocument();
|
318
|
+
userEvent.click(themeIcon);
|
319
|
+
expect(screen.getByText('WhiteBalanceSunnyIcon')).toBeInTheDocument();
|
320
|
+
});
|
321
|
+
test('should have is-focused class when focus', function () {
|
322
|
+
getComponent({
|
323
|
+
isSticky: true
|
324
|
+
});
|
325
|
+
var logoBand = screen.getByTestId('logo-band');
|
326
|
+
expect(logoBand).not.toHaveFocus();
|
327
|
+
userEvent.tab();
|
328
|
+
expect(logoBand).toHaveFocus();
|
329
|
+
expect(logoBand).toHaveClass('is-focused');
|
330
|
+
userEvent.tab();
|
331
|
+
expect(logoBand).not.toHaveClass('is-focused');
|
332
|
+
expect(logoBand).not.toHaveFocus();
|
333
|
+
});
|
334
|
+
test('should open dropdown menu when clicked', function () {
|
335
|
+
getComponent();
|
336
|
+
var helpSupport = screen.getByTestId('help-support-button');
|
337
|
+
userEvent.click(helpSupport);
|
338
|
+
var menuItem = screen.getByText('Help & Support');
|
339
|
+
expect(menuItem).toBeInTheDocument();
|
340
|
+
});
|
341
|
+
test('should open dropdown menu when clicked', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
342
|
+
var helpSupport, menuItem, doc;
|
343
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
344
|
+
while (1) switch (_context.prev = _context.next) {
|
345
|
+
case 0:
|
346
|
+
getComponent();
|
347
|
+
helpSupport = screen.getByTestId('help-support-button');
|
348
|
+
userEvent.click(helpSupport);
|
349
|
+
menuItem = screen.getByText('Help & Support');
|
350
|
+
expect(menuItem).toBeInTheDocument();
|
351
|
+
doc = screen.getByText('Doc');
|
352
|
+
expect(doc).toBeInTheDocument();
|
353
|
+
case 7:
|
354
|
+
case "end":
|
355
|
+
return _context.stop();
|
356
|
+
}
|
357
|
+
}, _callee);
|
358
|
+
})));
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './NavigationHeader';
|
package/lib/index.js
CHANGED
@@ -113,6 +113,8 @@ export { default as NavBar } from './components/NavBar';
|
|
113
113
|
export * from './components/NavBar';
|
114
114
|
export { default as NavBarSection } from './components/NavBarSection';
|
115
115
|
export * from './components/NavBarSection';
|
116
|
+
export { default as NavigationHeader } from './components/NavigationHeader';
|
117
|
+
export * from './components/NavigationHeader';
|
116
118
|
export { default as NavSideBar } from './components/NavSideBar';
|
117
119
|
export * from './components/NavSideBar';
|
118
120
|
export { default as NumberField } from './components/NumberField';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var nextGenCodeViewTheme = {
|
2
2
|
plain: {
|
3
3
|
color: '#f8f8f2',
|
4
|
-
backgroundColor: '#
|
4
|
+
backgroundColor: '#23282e'
|
5
5
|
},
|
6
6
|
styles: [{
|
7
7
|
types: ['comment', 'prolog', 'doctype', 'cdata'],
|
@@ -57,9 +57,10 @@ var nextGenCodeViewTheme = {
|
|
57
57
|
}]
|
58
58
|
};
|
59
59
|
var nextGenCodeViewWrapper = {
|
60
|
-
|
60
|
+
backgroundColor: 'gray-900',
|
61
61
|
border: '1px solid',
|
62
|
-
borderColor: '
|
62
|
+
borderColor: 'gray-900',
|
63
|
+
borderRadius: '4px',
|
63
64
|
width: 400,
|
64
65
|
height: 200,
|
65
66
|
my: 'xs',
|
@@ -71,7 +72,7 @@ var nextGenCodeViewWrapper = {
|
|
71
72
|
},
|
72
73
|
pre: {
|
73
74
|
backgroundColor: 'transparent',
|
74
|
-
padding: '
|
75
|
+
padding: 'md',
|
75
76
|
height: '100%',
|
76
77
|
width: '100%',
|
77
78
|
overflowX: 'hidden',
|
@@ -109,6 +110,14 @@ var nextGenCodeViewWrapper = {
|
|
109
110
|
}
|
110
111
|
}
|
111
112
|
};
|
113
|
+
var nextGenCodeViewHeader = {
|
114
|
+
color: 'gray-300',
|
115
|
+
px: 'md',
|
116
|
+
width: '100%',
|
117
|
+
border: '1px solid',
|
118
|
+
borderColor: 'gray-800',
|
119
|
+
lineHeight: 'body'
|
120
|
+
};
|
112
121
|
var lineNo = {
|
113
122
|
display: 'table-cell',
|
114
123
|
userSelect: 'none',
|
@@ -119,8 +128,14 @@ var lineNo = {
|
|
119
128
|
color: 'white',
|
120
129
|
lineHeight: '20px'
|
121
130
|
};
|
131
|
+
export var copyButton = {
|
132
|
+
path: {
|
133
|
+
fill: 'gray-300'
|
134
|
+
}
|
135
|
+
};
|
122
136
|
export default {
|
123
137
|
theme: nextGenCodeViewTheme,
|
124
138
|
wrapper: nextGenCodeViewWrapper,
|
125
|
-
lineNo: lineNo
|
139
|
+
lineNo: lineNo,
|
140
|
+
header: nextGenCodeViewHeader
|
126
141
|
};
|
@@ -1,2 +1,3 @@
|
|
1
|
-
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card'];
|
1
|
+
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'CodeView'];
|
2
|
+
export var nextGenComponents = ['NavigationHeader'];
|
2
3
|
export default nextGenConvertedComponents;
|
@@ -17,6 +17,7 @@ import buttons from './variants/button';
|
|
17
17
|
import cards from './variants/cards';
|
18
18
|
import images from './variants/images';
|
19
19
|
import links from './variants/links';
|
20
|
+
import navigationHeader from './variants/navigationHeader';
|
20
21
|
import { text as newText } from './variants/text';
|
21
22
|
import variants, { badges } from './variants/variants';
|
22
23
|
import forms from './forms';
|
@@ -48,6 +49,7 @@ var nextGenTheme = {
|
|
48
49
|
},
|
49
50
|
sizes: sizes,
|
50
51
|
badges: badges,
|
52
|
+
navigationHeader: navigationHeader,
|
51
53
|
space: spacing,
|
52
54
|
links: links,
|
53
55
|
cards: cards,
|
@@ -10,6 +10,7 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
12
|
import chroma from 'chroma-js';
|
13
|
+
import { copyButton } from '../codeView/codeView';
|
13
14
|
import colors from '../colors/colors';
|
14
15
|
var primaryBlue = colors.primary,
|
15
16
|
criticalRed = colors.critical;
|
@@ -236,22 +237,23 @@ var iconButtons = {
|
|
236
237
|
headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
237
238
|
borderRadius: '4px',
|
238
239
|
path: {
|
239
|
-
fill: '
|
240
|
+
fill: 'text.primary'
|
240
241
|
},
|
241
242
|
px: 'md',
|
242
243
|
py: 'sm',
|
243
244
|
width: '56px',
|
244
245
|
'&.is-hovered': {
|
245
246
|
path: {
|
246
|
-
fill: '
|
247
|
+
fill: 'text.secondary'
|
247
248
|
}
|
248
249
|
},
|
249
250
|
'&.is-pressed': {
|
250
251
|
path: {
|
251
|
-
fill: '
|
252
|
+
fill: 'text.secondary'
|
252
253
|
}
|
253
254
|
}
|
254
|
-
})
|
255
|
+
}),
|
256
|
+
copyButton: copyButton
|
255
257
|
};
|
256
258
|
var buttons = {
|
257
259
|
neutral: neutral,
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
+
var defaultFocus = {
|
13
|
+
outline: '2px solid',
|
14
|
+
outlineColor: 'active'
|
15
|
+
};
|
16
|
+
var link = {
|
17
|
+
fontSize: 'md',
|
18
|
+
fontFamily: 'standard',
|
19
|
+
py: 'sm',
|
20
|
+
px: 'md',
|
21
|
+
fontWeight: '1',
|
22
|
+
color: 'text.primary',
|
23
|
+
textDecoration: 'none',
|
24
|
+
borderRadius: '3px',
|
25
|
+
'&.is-hovered': {
|
26
|
+
textDecoration: 'none',
|
27
|
+
color: 'text.secondary'
|
28
|
+
},
|
29
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
30
|
+
textDecoration: 'none'
|
31
|
+
}),
|
32
|
+
'&.is-pressed': {
|
33
|
+
textDecoration: 'none'
|
34
|
+
},
|
35
|
+
'&.is-visited': {
|
36
|
+
textDecoration: 'none'
|
37
|
+
}
|
38
|
+
};
|
39
|
+
var logoBand = _objectSpread(_objectSpread({}, link), {}, {
|
40
|
+
p: 0
|
41
|
+
});
|
42
|
+
var headerPlaceholder = {
|
43
|
+
fontSize: 'lg',
|
44
|
+
ml: 'md',
|
45
|
+
color: 'text.primary',
|
46
|
+
lineHeight: 'body',
|
47
|
+
fontWeight: '1',
|
48
|
+
'&.is-hovered': {
|
49
|
+
color: 'text.secondary'
|
50
|
+
}
|
51
|
+
};
|
52
|
+
var navigationHeader = {
|
53
|
+
headerPlaceholder: headerPlaceholder,
|
54
|
+
link: link,
|
55
|
+
logoBand: logoBand,
|
56
|
+
container: {
|
57
|
+
fontFamily: 'standard',
|
58
|
+
borderBottom: '1px solid',
|
59
|
+
borderColor: 'gray-300',
|
60
|
+
bg: '#fff',
|
61
|
+
height: '4.5rem',
|
62
|
+
justifyContent: 'center'
|
63
|
+
},
|
64
|
+
wrapper: {
|
65
|
+
px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
|
66
|
+
maxWidth: '1540px',
|
67
|
+
mx: 'auto',
|
68
|
+
width: '100%'
|
69
|
+
},
|
70
|
+
dropdownMenu: {
|
71
|
+
maxWidth: 'unset',
|
72
|
+
p: 'sm',
|
73
|
+
'& > li': {
|
74
|
+
p: '0'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
dropdownMenuItem: _objectSpread(_objectSpread({}, link), {}, {
|
78
|
+
padding: '.675rem 1rem',
|
79
|
+
pr: '2.25rem',
|
80
|
+
'&.is-hovered': {
|
81
|
+
textDecoration: 'none'
|
82
|
+
},
|
83
|
+
'&.is-pressed': {
|
84
|
+
textDecoration: 'none'
|
85
|
+
},
|
86
|
+
'&.is-focused': {
|
87
|
+
textDecoration: 'none'
|
88
|
+
},
|
89
|
+
'&.is-visited': {
|
90
|
+
textDecoration: 'none'
|
91
|
+
}
|
92
|
+
}),
|
93
|
+
accountButton: {
|
94
|
+
display: 'flex',
|
95
|
+
width: 'auto',
|
96
|
+
height: 'auto',
|
97
|
+
cursor: 'pointer',
|
98
|
+
p: '0',
|
99
|
+
px: 'sm',
|
100
|
+
py: '1px',
|
101
|
+
border: 'none',
|
102
|
+
borderRadius: '3px',
|
103
|
+
bg: 'transparent',
|
104
|
+
'&.is-hovered': {
|
105
|
+
bg: 'transparent',
|
106
|
+
border: 'none',
|
107
|
+
boxShadow: 'none'
|
108
|
+
},
|
109
|
+
'&.is-pressed': {
|
110
|
+
bg: 'transparent',
|
111
|
+
border: 'none',
|
112
|
+
boxShadow: 'none'
|
113
|
+
},
|
114
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
115
|
+
bg: 'transparent'
|
116
|
+
}),
|
117
|
+
'&.is-visited': {
|
118
|
+
bg: 'transparent'
|
119
|
+
},
|
120
|
+
minWidth: '50px'
|
121
|
+
}
|
122
|
+
};
|
123
|
+
export default navigationHeader;
|