@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,361 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
4
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
5
|
+
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
|
6
|
+
var _Object$create = require("@babel/runtime-corejs3/core-js-stable/object/create");
|
7
|
+
var _Object$getPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/get-prototype-of");
|
8
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
9
|
+
var _Object$setPrototypeOf = require("@babel/runtime-corejs3/core-js-stable/object/set-prototype-of");
|
10
|
+
var _Promise = require("@babel/runtime-corejs3/core-js-stable/promise");
|
11
|
+
var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");
|
12
|
+
var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
|
13
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
14
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
15
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
16
|
+
var _react = _interopRequireDefault(require("react"));
|
17
|
+
var _HelpCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/HelpCircleOutlineIcon"));
|
18
|
+
var _MoonWaningCrescentIcon = _interopRequireDefault(require("@pingux/mdi-react/MoonWaningCrescentIcon"));
|
19
|
+
var _WhiteBalanceSunnyIcon = _interopRequireDefault(require("@pingux/mdi-react/WhiteBalanceSunnyIcon"));
|
20
|
+
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
21
|
+
var _index = require("../../index");
|
22
|
+
var _images = require("../../utils/devUtils/constants/images");
|
23
|
+
var _testWrapper = require("../../utils/testUtils/testWrapper");
|
24
|
+
var _universalComponentTest = require("../../utils/testUtils/universalComponentTest");
|
25
|
+
var _ = _interopRequireDefault(require("."));
|
26
|
+
var _react2 = require("@emotion/react");
|
27
|
+
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; }
|
28
|
+
var breakpointDisplaysXS = ['none', 'none', 'block', 'block', 'block', 'block'];
|
29
|
+
var breakpointDisplaySmall = ['none', 'none', 'none', 'none', 'block', 'block'];
|
30
|
+
var pingLogoAlt = 'Ping Identity Logo';
|
31
|
+
var fallbackAlt = 'Fallback Image';
|
32
|
+
var getComponent = function getComponent() {
|
33
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
34
|
+
return (0, _testWrapper.render)((0, _react2.jsx)(_["default"], (0, _extends2["default"])({}, props, {
|
35
|
+
isSticky: true,
|
36
|
+
"aria-labelledby": "next-gen-header"
|
37
|
+
}), (0, _react2.jsx)(_index.Link, {
|
38
|
+
href: "#",
|
39
|
+
variant: "navigationHeader.logoBand",
|
40
|
+
"data-testid": "logo-band"
|
41
|
+
}, (0, _react2.jsx)(_index.Box, {
|
42
|
+
isRow: true,
|
43
|
+
alignItems: "center",
|
44
|
+
justifyContent: "center",
|
45
|
+
py: "sm",
|
46
|
+
flex: "0 0 auto"
|
47
|
+
}, (0, _react2.jsx)(_index.Image, {
|
48
|
+
src: _images.pingLogoHorizontal,
|
49
|
+
alt: pingLogoAlt,
|
50
|
+
mr: "md",
|
51
|
+
sx: {
|
52
|
+
height: '24px'
|
53
|
+
},
|
54
|
+
"data-testid": "ping-logo",
|
55
|
+
fallbackAlt: fallbackAlt
|
56
|
+
}), (0, _react2.jsx)(_index.Separator, {
|
57
|
+
orientation: "vertical",
|
58
|
+
style: {
|
59
|
+
height: '28px',
|
60
|
+
margin: '0'
|
61
|
+
}
|
62
|
+
}), (0, _react2.jsx)(_index.Text, {
|
63
|
+
as: "h2",
|
64
|
+
variant: "navigationHeader.headerPlaceholder",
|
65
|
+
id: "next-gen-header"
|
66
|
+
}, "Marketplace"))), (0, _react2.jsx)(_index.Box, {
|
67
|
+
as: "ul",
|
68
|
+
isRow: true,
|
69
|
+
alignItems: "center",
|
70
|
+
p: "0",
|
71
|
+
ml: "auto",
|
72
|
+
flex: "0 0 auto"
|
73
|
+
}, (0, _react2.jsx)(_index.Box, {
|
74
|
+
as: "li",
|
75
|
+
display: breakpointDisplaySmall,
|
76
|
+
"data-testid": "Browse"
|
77
|
+
}, (0, _react2.jsx)(_index.Link, {
|
78
|
+
"aria-label": "Browse",
|
79
|
+
href: "#",
|
80
|
+
variant: "navigationHeader.link"
|
81
|
+
}, "Browse")), (0, _react2.jsx)(_index.Box, {
|
82
|
+
as: "li",
|
83
|
+
display: breakpointDisplaySmall,
|
84
|
+
"data-testid": "My-Content"
|
85
|
+
}, (0, _react2.jsx)(_index.Link, {
|
86
|
+
"aria-label": "My Content",
|
87
|
+
href: "#",
|
88
|
+
variant: "navigationHeader.link"
|
89
|
+
}, "My Content")), (0, _react2.jsx)(_index.Box, {
|
90
|
+
as: "li",
|
91
|
+
display: breakpointDisplaySmall,
|
92
|
+
"data-testid": "Reports"
|
93
|
+
}, (0, _react2.jsx)(_index.Link, {
|
94
|
+
"aria-label": "Reports",
|
95
|
+
href: "#",
|
96
|
+
variant: "navigationHeader.link"
|
97
|
+
}, "Reports")), (0, _react2.jsx)(_index.Box, {
|
98
|
+
as: "li",
|
99
|
+
display: breakpointDisplaysXS
|
100
|
+
}, (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.PopoverMenu, {
|
101
|
+
isContainFocus: true
|
102
|
+
}, (0, _react2.jsx)(_index.IconButton, {
|
103
|
+
"aria-label": "Help & Support",
|
104
|
+
variant: "base",
|
105
|
+
"data-testid": "help-support-button"
|
106
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
107
|
+
size: "24px",
|
108
|
+
color: "gray-800",
|
109
|
+
icon: _HelpCircleOutlineIcon["default"],
|
110
|
+
title: {
|
111
|
+
name: 'help circle outline icon'
|
112
|
+
}
|
113
|
+
})), (0, _react2.jsx)(_index.Menu, {
|
114
|
+
variant: "navigationHeader.dropdownMenu"
|
115
|
+
}, (0, _react2.jsx)(_index.Item, {
|
116
|
+
key: "Help & Support",
|
117
|
+
textValue: "Help & Support"
|
118
|
+
}, (0, _react2.jsx)(_index.Link, {
|
119
|
+
href: "Help & Support",
|
120
|
+
"aria-label": "Help & Support",
|
121
|
+
variant: "navigationHeader.dropdownMenuItem"
|
122
|
+
}, "Help & Support")), (0, _react2.jsx)(_index.Item, {
|
123
|
+
key: "Doc",
|
124
|
+
textValue: "Doc"
|
125
|
+
}, (0, _react2.jsx)(_index.Link, {
|
126
|
+
href: "Doc",
|
127
|
+
"aria-label": "Doc",
|
128
|
+
variant: "navigationHeader.dropdownMenuItem"
|
129
|
+
}, "Doc")), (0, _react2.jsx)(_index.Item, {
|
130
|
+
key: "Developer",
|
131
|
+
textValue: "Developer"
|
132
|
+
}, (0, _react2.jsx)(_index.Link, {
|
133
|
+
href: "Developer",
|
134
|
+
"aria-label": "Developer",
|
135
|
+
variant: "navigationHeader.dropdownMenuItem"
|
136
|
+
}, "Developer")), (0, _react2.jsx)(_index.Item, {
|
137
|
+
key: "Labs",
|
138
|
+
textValue: "Labs"
|
139
|
+
}, (0, _react2.jsx)(_index.Link, {
|
140
|
+
href: "Labs",
|
141
|
+
"aria-label": "Labs",
|
142
|
+
variant: "navigationHeader.dropdownMenuItem"
|
143
|
+
}, "Labs")))))), (0, _react2.jsx)(_index.Box, {
|
144
|
+
as: "li",
|
145
|
+
display: breakpointDisplaysXS
|
146
|
+
}, (0, _react2.jsx)(_index.IconButtonToggle, {
|
147
|
+
toggledIcon: _WhiteBalanceSunnyIcon["default"],
|
148
|
+
defaultIcon: _MoonWaningCrescentIcon["default"],
|
149
|
+
iconProps: {
|
150
|
+
size: '24px'
|
151
|
+
},
|
152
|
+
buttonProps: {
|
153
|
+
'aria-label': 'theme icon',
|
154
|
+
'data-testid': 'theme-toggle-icon-button'
|
155
|
+
}
|
156
|
+
})))));
|
157
|
+
};
|
158
|
+
|
159
|
+
// Needs to be added to each components test file
|
160
|
+
(0, _universalComponentTest.universalComponentTests)({
|
161
|
+
renderComponent: function renderComponent(props) {
|
162
|
+
return (0, _react2.jsx)(_["default"], (0, _extends2["default"])({}, props, {
|
163
|
+
isSticky: true,
|
164
|
+
"aria-labelledby": "next-gen-header"
|
165
|
+
}), (0, _react2.jsx)(_index.Link, {
|
166
|
+
href: "#",
|
167
|
+
variant: "navigationHeader.logoBand",
|
168
|
+
"data-testid": "logo-band"
|
169
|
+
}, (0, _react2.jsx)(_index.Box, {
|
170
|
+
isRow: true,
|
171
|
+
alignItems: "center",
|
172
|
+
justifyContent: "center",
|
173
|
+
py: "sm",
|
174
|
+
flex: "0 0 auto"
|
175
|
+
}, (0, _react2.jsx)(_index.Image, {
|
176
|
+
src: _images.pingLogoHorizontal,
|
177
|
+
alt: pingLogoAlt,
|
178
|
+
mr: "md",
|
179
|
+
sx: {
|
180
|
+
height: '24px'
|
181
|
+
},
|
182
|
+
"data-testid": "ping-logo",
|
183
|
+
fallbackAlt: fallbackAlt
|
184
|
+
}), (0, _react2.jsx)(_index.Separator, {
|
185
|
+
orientation: "vertical",
|
186
|
+
style: {
|
187
|
+
height: '28px',
|
188
|
+
margin: '0'
|
189
|
+
}
|
190
|
+
}), (0, _react2.jsx)(_index.Text, {
|
191
|
+
as: "h2",
|
192
|
+
variant: "navigationHeader.headerPlaceholder",
|
193
|
+
id: "next-gen-header"
|
194
|
+
}, "Marketplace"))), (0, _react2.jsx)(_index.Box, {
|
195
|
+
as: "ul",
|
196
|
+
isRow: true,
|
197
|
+
alignItems: "center",
|
198
|
+
p: "0",
|
199
|
+
ml: "auto",
|
200
|
+
flex: "0 0 auto"
|
201
|
+
}, (0, _react2.jsx)(_index.Box, {
|
202
|
+
as: "li",
|
203
|
+
display: breakpointDisplaySmall,
|
204
|
+
"data-testid": "Browse"
|
205
|
+
}, (0, _react2.jsx)(_index.Link, {
|
206
|
+
"aria-label": "Browse",
|
207
|
+
href: "#",
|
208
|
+
variant: "navigationHeader.link"
|
209
|
+
}, "Browse")), (0, _react2.jsx)(_index.Box, {
|
210
|
+
as: "li",
|
211
|
+
display: breakpointDisplaySmall,
|
212
|
+
"data-testid": "My-Content"
|
213
|
+
}, (0, _react2.jsx)(_index.Link, {
|
214
|
+
"aria-label": "My Content",
|
215
|
+
href: "#",
|
216
|
+
variant: "navigationHeader.link"
|
217
|
+
}, "My Content")), (0, _react2.jsx)(_index.Box, {
|
218
|
+
as: "li",
|
219
|
+
display: breakpointDisplaySmall,
|
220
|
+
"data-testid": "Reports"
|
221
|
+
}, (0, _react2.jsx)(_index.Link, {
|
222
|
+
"aria-label": "Reports",
|
223
|
+
href: "#",
|
224
|
+
variant: "navigationHeader.link"
|
225
|
+
}, "Reports")), (0, _react2.jsx)(_index.Box, {
|
226
|
+
as: "li",
|
227
|
+
display: breakpointDisplaysXS
|
228
|
+
}, (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.PopoverMenu, {
|
229
|
+
isContainFocus: true
|
230
|
+
}, (0, _react2.jsx)(_index.IconButton, {
|
231
|
+
"aria-label": "Help & Support",
|
232
|
+
variant: "base",
|
233
|
+
"data-testid": "help-support-button"
|
234
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
235
|
+
size: "24px",
|
236
|
+
color: "gray-800",
|
237
|
+
icon: _HelpCircleOutlineIcon["default"],
|
238
|
+
title: {
|
239
|
+
name: 'help circle outline icon'
|
240
|
+
}
|
241
|
+
})), (0, _react2.jsx)(_index.Menu, {
|
242
|
+
variant: "navigationHeader.dropdownMenu"
|
243
|
+
}, (0, _react2.jsx)(_index.Item, {
|
244
|
+
key: "Help & Support",
|
245
|
+
textValue: "Help & Support"
|
246
|
+
}, (0, _react2.jsx)(_index.Link, {
|
247
|
+
href: "Help & Support",
|
248
|
+
"aria-label": "Help & Support",
|
249
|
+
variant: "navigationHeader.dropdownMenuItem"
|
250
|
+
}, "Help & Support")), (0, _react2.jsx)(_index.Item, {
|
251
|
+
key: "Doc",
|
252
|
+
textValue: "Doc"
|
253
|
+
}, (0, _react2.jsx)(_index.Link, {
|
254
|
+
href: "Doc",
|
255
|
+
"aria-label": "Doc",
|
256
|
+
variant: "navigationHeader.dropdownMenuItem"
|
257
|
+
}, "Doc")), (0, _react2.jsx)(_index.Item, {
|
258
|
+
key: "Developer",
|
259
|
+
textValue: "Developer"
|
260
|
+
}, (0, _react2.jsx)(_index.Link, {
|
261
|
+
href: "Developer",
|
262
|
+
"aria-label": "Developer",
|
263
|
+
variant: "navigationHeader.dropdownMenuItem"
|
264
|
+
}, "Developer")), (0, _react2.jsx)(_index.Item, {
|
265
|
+
key: "Labs",
|
266
|
+
textValue: "Labs"
|
267
|
+
}, (0, _react2.jsx)(_index.Link, {
|
268
|
+
href: "Labs",
|
269
|
+
"aria-label": "Labs",
|
270
|
+
variant: "navigationHeader.dropdownMenuItem"
|
271
|
+
}, "Labs")))))), (0, _react2.jsx)(_index.Box, {
|
272
|
+
as: "li",
|
273
|
+
display: breakpointDisplaysXS,
|
274
|
+
"data-testid": "theme-toggle-icon-button"
|
275
|
+
}, (0, _react2.jsx)(_index.IconButtonToggle, {
|
276
|
+
toggledIcon: _WhiteBalanceSunnyIcon["default"],
|
277
|
+
defaultIcon: _MoonWaningCrescentIcon["default"],
|
278
|
+
iconProps: {
|
279
|
+
size: '24px'
|
280
|
+
},
|
281
|
+
buttonProps: {
|
282
|
+
'aria-label': 'theme icon'
|
283
|
+
}
|
284
|
+
}))));
|
285
|
+
}
|
286
|
+
});
|
287
|
+
test('renders NavigationHeader component', function () {
|
288
|
+
getComponent({
|
289
|
+
isSticky: false,
|
290
|
+
'data-testid': 'navigation-header'
|
291
|
+
});
|
292
|
+
var navigationHeaderElement = _testWrapper.screen.getByTestId('navigation-header');
|
293
|
+
expect(navigationHeaderElement).toBeInTheDocument();
|
294
|
+
});
|
295
|
+
test('renders NavigationHeader component with sticky position', function () {
|
296
|
+
getComponent({
|
297
|
+
isSticky: true,
|
298
|
+
'data-testid': 'navigation-header'
|
299
|
+
});
|
300
|
+
var navigationHeaderElement = _testWrapper.screen.getByTestId('navigation-header');
|
301
|
+
expect(navigationHeaderElement).toBeInTheDocument();
|
302
|
+
expect(navigationHeaderElement).toHaveStyle('position: sticky');
|
303
|
+
});
|
304
|
+
test('renders NavigationHeader component with placeholder', function () {
|
305
|
+
getComponent();
|
306
|
+
expect(_testWrapper.screen.getByRole('heading', {
|
307
|
+
name: 'Marketplace'
|
308
|
+
})).toBeInTheDocument();
|
309
|
+
});
|
310
|
+
test('renders NavigationHeader component with link', function () {
|
311
|
+
getComponent();
|
312
|
+
expect(_testWrapper.screen.getByLabelText('Browse')).toBeInTheDocument();
|
313
|
+
expect(_testWrapper.screen.getByLabelText('My Content')).toBeInTheDocument();
|
314
|
+
expect(_testWrapper.screen.getByLabelText('Reports')).toBeInTheDocument();
|
315
|
+
});
|
316
|
+
test('renders NavigationHeader component with theme toggle icon button', function () {
|
317
|
+
getComponent();
|
318
|
+
var themeIcon = _testWrapper.screen.getByTestId('theme-toggle-icon-button');
|
319
|
+
expect(themeIcon).toBeInTheDocument();
|
320
|
+
expect(_testWrapper.screen.getByText('MoonWaningCrescentIcon')).toBeInTheDocument();
|
321
|
+
_userEvent["default"].click(themeIcon);
|
322
|
+
expect(_testWrapper.screen.getByText('WhiteBalanceSunnyIcon')).toBeInTheDocument();
|
323
|
+
});
|
324
|
+
test('should have is-focused class when focus', function () {
|
325
|
+
getComponent({
|
326
|
+
isSticky: true
|
327
|
+
});
|
328
|
+
var logoBand = _testWrapper.screen.getByTestId('logo-band');
|
329
|
+
expect(logoBand).not.toHaveFocus();
|
330
|
+
_userEvent["default"].tab();
|
331
|
+
expect(logoBand).toHaveFocus();
|
332
|
+
expect(logoBand).toHaveClass('is-focused');
|
333
|
+
_userEvent["default"].tab();
|
334
|
+
expect(logoBand).not.toHaveClass('is-focused');
|
335
|
+
expect(logoBand).not.toHaveFocus();
|
336
|
+
});
|
337
|
+
test('should open dropdown menu when clicked', function () {
|
338
|
+
getComponent();
|
339
|
+
var helpSupport = _testWrapper.screen.getByTestId('help-support-button');
|
340
|
+
_userEvent["default"].click(helpSupport);
|
341
|
+
var menuItem = _testWrapper.screen.getByText('Help & Support');
|
342
|
+
expect(menuItem).toBeInTheDocument();
|
343
|
+
});
|
344
|
+
test('should open dropdown menu when clicked', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
345
|
+
var helpSupport, menuItem, doc;
|
346
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
347
|
+
while (1) switch (_context.prev = _context.next) {
|
348
|
+
case 0:
|
349
|
+
getComponent();
|
350
|
+
helpSupport = _testWrapper.screen.getByTestId('help-support-button');
|
351
|
+
_userEvent["default"].click(helpSupport);
|
352
|
+
menuItem = _testWrapper.screen.getByText('Help & Support');
|
353
|
+
expect(menuItem).toBeInTheDocument();
|
354
|
+
doc = _testWrapper.screen.getByText('Doc');
|
355
|
+
expect(doc).toBeInTheDocument();
|
356
|
+
case 7:
|
357
|
+
case "end":
|
358
|
+
return _context.stop();
|
359
|
+
}
|
360
|
+
}, _callee);
|
361
|
+
})));
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './NavigationHeader';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
_Object$defineProperty(exports, "default", {
|
9
|
+
enumerable: true,
|
10
|
+
get: function get() {
|
11
|
+
return _NavigationHeader["default"];
|
12
|
+
}
|
13
|
+
});
|
14
|
+
var _NavigationHeader = _interopRequireDefault(require("./NavigationHeader"));
|
@@ -1158,6 +1158,45 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1158
1158
|
id?: string | undefined;
|
1159
1159
|
tabIndex?: number | undefined;
|
1160
1160
|
hidden?: boolean | undefined;
|
1161
|
+
key?: React.Key | null | undefined;
|
1162
|
+
defaultChecked?: boolean | undefined;
|
1163
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
1164
|
+
suppressContentEditableWarning?: boolean | undefined;
|
1165
|
+
suppressHydrationWarning?: boolean | undefined;
|
1166
|
+
accessKey?: string | undefined;
|
1167
|
+
autoFocus?: boolean | undefined;
|
1168
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
1169
|
+
contextMenu?: string | undefined;
|
1170
|
+
dir?: string | undefined;
|
1171
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
1172
|
+
lang?: string | undefined;
|
1173
|
+
nonce?: string | undefined;
|
1174
|
+
placeholder?: string | undefined;
|
1175
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
1176
|
+
radioGroup?: string | undefined;
|
1177
|
+
about?: string | undefined;
|
1178
|
+
datatype?: string | undefined;
|
1179
|
+
inlist?: any;
|
1180
|
+
prefix?: string | undefined;
|
1181
|
+
property?: string | undefined;
|
1182
|
+
rel?: string | undefined;
|
1183
|
+
resource?: string | undefined;
|
1184
|
+
rev?: string | undefined;
|
1185
|
+
typeof?: string | undefined;
|
1186
|
+
vocab?: string | undefined;
|
1187
|
+
autoCapitalize?: string | undefined;
|
1188
|
+
autoCorrect?: string | undefined;
|
1189
|
+
autoSave?: string | undefined;
|
1190
|
+
itemProp?: string | undefined;
|
1191
|
+
itemScope?: boolean | undefined;
|
1192
|
+
itemType?: string | undefined;
|
1193
|
+
itemID?: string | undefined;
|
1194
|
+
itemRef?: string | undefined;
|
1195
|
+
results?: number | undefined;
|
1196
|
+
security?: string | undefined;
|
1197
|
+
unselectable?: "off" | "on" | undefined;
|
1198
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
1199
|
+
is?: string | undefined;
|
1161
1200
|
dangerouslySetInnerHTML?: {
|
1162
1201
|
__html: string | TrustedHTML;
|
1163
1202
|
} | undefined;
|
@@ -1323,45 +1362,6 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1323
1362
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLLabelElement> | undefined;
|
1324
1363
|
onTransitionEnd?: React.TransitionEventHandler<HTMLLabelElement> | undefined;
|
1325
1364
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLLabelElement> | undefined;
|
1326
|
-
key?: React.Key | null | undefined;
|
1327
|
-
defaultChecked?: boolean | undefined;
|
1328
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
1329
|
-
suppressContentEditableWarning?: boolean | undefined;
|
1330
|
-
suppressHydrationWarning?: boolean | undefined;
|
1331
|
-
accessKey?: string | undefined;
|
1332
|
-
autoFocus?: boolean | undefined;
|
1333
|
-
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
1334
|
-
contextMenu?: string | undefined;
|
1335
|
-
dir?: string | undefined;
|
1336
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
1337
|
-
lang?: string | undefined;
|
1338
|
-
nonce?: string | undefined;
|
1339
|
-
placeholder?: string | undefined;
|
1340
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
1341
|
-
radioGroup?: string | undefined;
|
1342
|
-
about?: string | undefined;
|
1343
|
-
datatype?: string | undefined;
|
1344
|
-
inlist?: any;
|
1345
|
-
prefix?: string | undefined;
|
1346
|
-
property?: string | undefined;
|
1347
|
-
rel?: string | undefined;
|
1348
|
-
resource?: string | undefined;
|
1349
|
-
rev?: string | undefined;
|
1350
|
-
typeof?: string | undefined;
|
1351
|
-
vocab?: string | undefined;
|
1352
|
-
autoCapitalize?: string | undefined;
|
1353
|
-
autoCorrect?: string | undefined;
|
1354
|
-
autoSave?: string | undefined;
|
1355
|
-
itemProp?: string | undefined;
|
1356
|
-
itemScope?: boolean | undefined;
|
1357
|
-
itemType?: string | undefined;
|
1358
|
-
itemID?: string | undefined;
|
1359
|
-
itemRef?: string | undefined;
|
1360
|
-
results?: number | undefined;
|
1361
|
-
security?: string | undefined;
|
1362
|
-
unselectable?: "off" | "on" | undefined;
|
1363
|
-
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
1364
|
-
is?: string | undefined;
|
1365
1365
|
htmlFor?: string | undefined;
|
1366
1366
|
ref?: ((instance: HTMLLabelElement | null) => void) | React.RefObject<HTMLLabelElement> | null | undefined;
|
1367
1367
|
as?: React.ElementType<any> | undefined;
|
@@ -1477,6 +1477,45 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1477
1477
|
id?: string | undefined;
|
1478
1478
|
tabIndex?: number | undefined;
|
1479
1479
|
hidden?: boolean | undefined;
|
1480
|
+
key?: React.Key | null | undefined;
|
1481
|
+
defaultChecked?: boolean | undefined;
|
1482
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
1483
|
+
suppressContentEditableWarning?: boolean | undefined;
|
1484
|
+
suppressHydrationWarning?: boolean | undefined;
|
1485
|
+
accessKey?: string | undefined;
|
1486
|
+
autoFocus?: boolean | undefined;
|
1487
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
1488
|
+
contextMenu?: string | undefined;
|
1489
|
+
dir?: string | undefined;
|
1490
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
1491
|
+
lang?: string | undefined;
|
1492
|
+
nonce?: string | undefined;
|
1493
|
+
placeholder?: string | undefined;
|
1494
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
1495
|
+
radioGroup?: string | undefined;
|
1496
|
+
about?: string | undefined;
|
1497
|
+
datatype?: string | undefined;
|
1498
|
+
inlist?: any;
|
1499
|
+
prefix?: string | undefined;
|
1500
|
+
property?: string | undefined;
|
1501
|
+
rel?: string | undefined;
|
1502
|
+
resource?: string | undefined;
|
1503
|
+
rev?: string | undefined;
|
1504
|
+
typeof?: string | undefined;
|
1505
|
+
vocab?: string | undefined;
|
1506
|
+
autoCapitalize?: string | undefined;
|
1507
|
+
autoCorrect?: string | undefined;
|
1508
|
+
autoSave?: string | undefined;
|
1509
|
+
itemProp?: string | undefined;
|
1510
|
+
itemScope?: boolean | undefined;
|
1511
|
+
itemType?: string | undefined;
|
1512
|
+
itemID?: string | undefined;
|
1513
|
+
itemRef?: string | undefined;
|
1514
|
+
results?: number | undefined;
|
1515
|
+
security?: string | undefined;
|
1516
|
+
unselectable?: "off" | "on" | undefined;
|
1517
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
1518
|
+
is?: string | undefined;
|
1480
1519
|
dangerouslySetInnerHTML?: {
|
1481
1520
|
__html: string | TrustedHTML;
|
1482
1521
|
} | undefined;
|
@@ -1642,45 +1681,6 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1642
1681
|
onAnimationIterationCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
1643
1682
|
onTransitionEnd?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
1644
1683
|
onTransitionEndCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
1645
|
-
key?: React.Key | null | undefined;
|
1646
|
-
defaultChecked?: boolean | undefined;
|
1647
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
1648
|
-
suppressContentEditableWarning?: boolean | undefined;
|
1649
|
-
suppressHydrationWarning?: boolean | undefined;
|
1650
|
-
accessKey?: string | undefined;
|
1651
|
-
autoFocus?: boolean | undefined;
|
1652
|
-
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
1653
|
-
contextMenu?: string | undefined;
|
1654
|
-
dir?: string | undefined;
|
1655
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
1656
|
-
lang?: string | undefined;
|
1657
|
-
nonce?: string | undefined;
|
1658
|
-
placeholder?: string | undefined;
|
1659
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
1660
|
-
radioGroup?: string | undefined;
|
1661
|
-
about?: string | undefined;
|
1662
|
-
datatype?: string | undefined;
|
1663
|
-
inlist?: any;
|
1664
|
-
prefix?: string | undefined;
|
1665
|
-
property?: string | undefined;
|
1666
|
-
rel?: string | undefined;
|
1667
|
-
resource?: string | undefined;
|
1668
|
-
rev?: string | undefined;
|
1669
|
-
typeof?: string | undefined;
|
1670
|
-
vocab?: string | undefined;
|
1671
|
-
autoCapitalize?: string | undefined;
|
1672
|
-
autoCorrect?: string | undefined;
|
1673
|
-
autoSave?: string | undefined;
|
1674
|
-
itemProp?: string | undefined;
|
1675
|
-
itemScope?: boolean | undefined;
|
1676
|
-
itemType?: string | undefined;
|
1677
|
-
itemID?: string | undefined;
|
1678
|
-
itemRef?: string | undefined;
|
1679
|
-
results?: number | undefined;
|
1680
|
-
security?: string | undefined;
|
1681
|
-
unselectable?: "off" | "on" | undefined;
|
1682
|
-
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
1683
|
-
is?: string | undefined;
|
1684
1684
|
htmlFor?: string | undefined;
|
1685
1685
|
ref?: ((instance: HTMLLabelElement | null) => void) | React.RefObject<HTMLLabelElement> | null | undefined;
|
1686
1686
|
as?: React.ElementType<any> | undefined;
|
package/lib/cjs/index.d.ts
CHANGED
@@ -109,6 +109,8 @@ export { default as NavBar } from './components/NavBar';
|
|
109
109
|
export * from './components/NavBar';
|
110
110
|
export { default as NavBarSection } from './components/NavBarSection';
|
111
111
|
export * from './components/NavBarSection';
|
112
|
+
export { default as NavigationHeader } from './components/NavigationHeader';
|
113
|
+
export * from './components/NavigationHeader';
|
112
114
|
export { default as NavSideBar } from './components/NavSideBar';
|
113
115
|
export * from './components/NavSideBar';
|
114
116
|
export { default as NumberField } from './components/NumberField';
|