@pingux/astro 2.163.1-alpha.1 → 2.163.1-alpha.3

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.
Files changed (58) hide show
  1. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +7 -3
  2. package/lib/cjs/components/ListBox/ListBox.js +15 -0
  3. package/lib/cjs/components/ListBox/ListBox.test.js +14 -1
  4. package/lib/cjs/components/MenuItem/MenuItem.js +22 -13
  5. package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -1
  6. package/lib/cjs/components/MenuItem/MenuItem.styles.js +1 -1
  7. package/lib/cjs/components/MenuItem/MenuItem.test.js +217 -194
  8. package/lib/cjs/components/MenuSection/MenuSection.js +2 -1
  9. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +57 -33
  10. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +117 -140
  11. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +29 -2
  12. package/lib/cjs/components/TimeZonePicker/helper.d.ts +6 -0
  13. package/lib/cjs/components/TimeZonePicker/helper.js +59 -0
  14. package/lib/cjs/components/TimeZonePicker/helper.test.js +79 -0
  15. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +3 -0
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +3 -0
  18. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +1 -0
  19. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
  20. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.d.ts +15 -2
  21. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +20 -7
  22. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +15 -2
  23. package/lib/cjs/styles/themeOverrides/onyxSideNav.d.ts +1 -0
  24. package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +1 -0
  25. package/lib/cjs/styles/themes/astro/customProperties/icons.js +1 -1
  26. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
  27. package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +1 -0
  28. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +1 -1
  29. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
  30. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +34 -2
  31. package/lib/cjs/styles/themes/next-gen/variants/menu.d.ts +32 -2
  32. package/lib/cjs/styles/themes/next-gen/variants/menu.js +39 -9
  33. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +1 -0
  34. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +1 -0
  35. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +33 -2
  36. package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -0
  37. package/lib/cjs/types/listBox.d.ts +1 -1
  38. package/lib/components/ComboBoxField/ComboBoxField.js +7 -3
  39. package/lib/components/ListBox/ListBox.js +15 -0
  40. package/lib/components/ListBox/ListBox.test.js +14 -1
  41. package/lib/components/MenuItem/MenuItem.js +25 -16
  42. package/lib/components/MenuItem/MenuItem.styles.js +1 -1
  43. package/lib/components/MenuItem/MenuItem.test.js +224 -201
  44. package/lib/components/MenuSection/MenuSection.js +2 -1
  45. package/lib/components/PopoverMenu/PopoverMenu.stories.js +57 -33
  46. package/lib/components/TimeZonePicker/TimeZonePicker.js +122 -146
  47. package/lib/components/TimeZonePicker/TimeZonePicker.test.js +29 -2
  48. package/lib/components/TimeZonePicker/helper.js +51 -0
  49. package/lib/components/TimeZonePicker/helper.test.js +76 -0
  50. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +3 -0
  51. package/lib/styles/themeOverrides/nextGenDarkMode/variants/menu.js +20 -7
  52. package/lib/styles/themes/astro/customProperties/icons.js +1 -1
  53. package/lib/styles/themes/next-gen/customProperties/icons.js +1 -1
  54. package/lib/styles/themes/next-gen/variants/menu.js +38 -8
  55. package/lib/styles/themes/next-gen/variants/popoverMenu.js +1 -0
  56. package/lib/styles/themes/next-gen/variants/variants.js +2 -1
  57. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  58. package/package.json +1 -1
@@ -14,11 +14,12 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
17
+ var _constants = _interopRequireDefault(require("constants"));
17
18
  var _index = require("../../index");
18
19
  var _testWrapper = require("../../utils/testUtils/testWrapper");
19
20
  var _universalComponentTest = require("../../utils/testUtils/universalComponentTest");
20
21
  var _react2 = require("@emotion/react");
21
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context4; _forEachInstanceProperty(_context4 = ["next", "throw", "return"]).call(_context4, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context5; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context5 = this.tryEntries).call(_context5, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
22
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context5; _forEachInstanceProperty(_context5 = ["next", "throw", "return"]).call(_context5, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context6; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context6 = this.tryEntries).call(_context6, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
22
23
  var testTimeZoneJuba = 'Africa/Juba';
23
24
  var testTimeZoneApia = 'Pacific/Apia';
24
25
  var defaultProps = {
@@ -128,4 +129,30 @@ test('shows custom empty search state text when no items are found', /*#__PURE__
128
129
  renderComponent: function renderComponent(props) {
129
130
  return (0, _react2.jsx)(_index.TimeZonePicker, (0, _extends2["default"])({}, defaultProps, props));
130
131
  }
131
- });
132
+ });
133
+ test('selecting a timezone updates the input value', /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
134
+ var input, option;
135
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
136
+ while (1) switch (_context4.prev = _context4.next) {
137
+ case 0:
138
+ getComponent();
139
+ input = _testWrapper.screen.queryByRole('combobox');
140
+ _context4.next = 4;
141
+ return _userEvent["default"].type(input, 'America/New York');
142
+ case 4:
143
+ expect(input).toHaveValue('America/New York');
144
+ expect(_testWrapper.screen.queryByRole('listbox')).toBeInTheDocument();
145
+ option = _testWrapper.screen.getByRole('option', {
146
+ key: 'America/New York GMT-05:00'
147
+ });
148
+ expect(option).toBeInTheDocument();
149
+ _context4.next = 10;
150
+ return _userEvent["default"].click(option);
151
+ case 10:
152
+ expect(input).toHaveValue('America/New York GMT-05:00');
153
+ case 11:
154
+ case "end":
155
+ return _context4.stop();
156
+ }
157
+ }, _callee4);
158
+ })));
@@ -0,0 +1,6 @@
1
+ export declare const getOffSetString: (timeZone: any) => string;
2
+ export declare const getNumericOffset: (offsetString: any) => number;
3
+ export declare const getGmtAndOffset: (timeZone: any) => {
4
+ gmt: string;
5
+ numericOffset: number;
6
+ };
@@ -0,0 +1,59 @@
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
+ exports.getOffSetString = exports.getNumericOffset = exports.getGmtAndOffset = void 0;
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
10
+ var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
11
+ var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/parse-int"));
12
+ var getOffSetString = exports.getOffSetString = function getOffSetString(timeZone) {
13
+ var _parts$find;
14
+ // Use Intl.DateTimeFormat to get the GMT offset string
15
+ var parts = new Intl.DateTimeFormat('en-US', {
16
+ timeZone: timeZone,
17
+ timeZoneName: 'longOffset'
18
+ }).formatToParts(new Date());
19
+
20
+ // Extract the GMT offset part
21
+ var offsetString = ((_parts$find = (0, _find["default"])(parts).call(parts, function (p) {
22
+ return p.type === 'timeZoneName';
23
+ })) === null || _parts$find === void 0 ? void 0 : _parts$find.value) || 'GMT+00:00';
24
+ if (offsetString !== 'GMT') {
25
+ return offsetString;
26
+ }
27
+ return 'GMT+00:00';
28
+ };
29
+ var getNumericOffset = exports.getNumericOffset = function getNumericOffset(offsetString) {
30
+ // Convert GMT offset string to numeric offset in hours
31
+ var match = offsetString.match(/([+-])(\d+):(\d+)/);
32
+ if (match) {
33
+ var _match = (0, _slicedToArray2["default"])(match, 4),
34
+ _ = _match[0],
35
+ sign = _match[1],
36
+ hours = _match[2],
37
+ minutes = _match[3];
38
+ // Calculate the numeric offset in hours
39
+ return ((0, _parseInt2["default"])(hours, 10) + (0, _parseInt2["default"])(minutes, 10) / 60) * (sign === '+' ? 1 : -1);
40
+ }
41
+ return 0;
42
+ };
43
+ var getGmtAndOffset = exports.getGmtAndOffset = function getGmtAndOffset(timeZone) {
44
+ try {
45
+ var offsetString = getOffSetString(timeZone);
46
+ var numericOffset = getNumericOffset(offsetString);
47
+
48
+ // Return both the GMT string and numeric offset
49
+ return {
50
+ gmt: offsetString,
51
+ numericOffset: numericOffset
52
+ };
53
+ } catch (e) {
54
+ return {
55
+ gmt: 'GMT+00:00',
56
+ numericOffset: 0
57
+ };
58
+ }
59
+ };
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
5
+ var _helper = require("./helper");
6
+ describe('TimeZonePicker helpers', function () {
7
+ describe('getOffSetString', function () {
8
+ test('returns GMT offset string for America/New_York', function () {
9
+ var result = (0, _helper.getOffSetString)('America/New_York');
10
+ expect(result).toMatch(/GMT[+-]\d{2}:\d{2}/);
11
+ });
12
+ test('returns GMT offset string for Europe/London', function () {
13
+ var result = (0, _helper.getOffSetString)('Europe/London');
14
+ expect(result).toMatch(/GMT[+-]\d{2}:\d{2}/);
15
+ });
16
+ test('returns GMT offset string for Asia/Tokyo', function () {
17
+ var result = (0, _helper.getOffSetString)('Asia/Tokyo');
18
+ expect(result).toMatch(/GMT[+-]\d{2}:\d{2}/);
19
+ });
20
+ test('returns GMT+00:00 for UTC', function () {
21
+ var result = (0, _helper.getOffSetString)('UTC');
22
+ expect(result).toBe('GMT+00:00');
23
+ });
24
+ });
25
+ describe('getNumericOffset', function () {
26
+ test('parses positive offset correctly', function () {
27
+ var result = (0, _helper.getNumericOffset)('GMT+05:30');
28
+ expect(result).toBe(5.5);
29
+ });
30
+ test('parses negative offset correctly', function () {
31
+ var result = (0, _helper.getNumericOffset)('GMT-08:00');
32
+ expect(result).toBe(-8);
33
+ });
34
+ test('parses zero offset correctly', function () {
35
+ var result = (0, _helper.getNumericOffset)('GMT+00:00');
36
+ expect(result).toBe(0);
37
+ });
38
+ test('handles offset with minutes correctly', function () {
39
+ var result = (0, _helper.getNumericOffset)('GMT+03:30');
40
+ expect(result).toBe(3.5);
41
+ });
42
+ test('returns 0 for invalid offset string', function () {
43
+ var result = (0, _helper.getNumericOffset)('invalid');
44
+ expect(result).toBe(0);
45
+ });
46
+ test('returns 0 for GMT without offset', function () {
47
+ var result = (0, _helper.getNumericOffset)('GMT');
48
+ expect(result).toBe(0);
49
+ });
50
+ });
51
+ describe('getGmtAndOffset', function () {
52
+ test('returns GMT string and numeric offset for valid timezone', function () {
53
+ var result = (0, _helper.getGmtAndOffset)('America/New_York');
54
+ expect(result).toHaveProperty('gmt');
55
+ expect(result).toHaveProperty('numericOffset');
56
+ expect(result.gmt).toMatch(/GMT[+-]\d{2}:\d{2}/);
57
+ expect((0, _typeof2["default"])(result.numericOffset)).toBe('number');
58
+ });
59
+ test('returns GMT+00:00 and 0 for invalid timezone', function () {
60
+ var result = (0, _helper.getGmtAndOffset)('Invalid/Timezone');
61
+ expect(result).toEqual({
62
+ gmt: 'GMT+00:00',
63
+ numericOffset: 0
64
+ });
65
+ });
66
+ test('returns correct values for UTC', function () {
67
+ var result = (0, _helper.getGmtAndOffset)('UTC');
68
+ expect(result).toEqual({
69
+ gmt: 'GMT+00:00',
70
+ numericOffset: 0
71
+ });
72
+ });
73
+ test('returns correct values for Asia/Kolkata', function () {
74
+ var result = (0, _helper.getGmtAndOffset)('Asia/Kolkata');
75
+ expect(result.gmt).toMatch(/GMT\+05:30/);
76
+ expect(result.numericOffset).toBe(5.5);
77
+ });
78
+ });
79
+ });
@@ -20,6 +20,7 @@ declare const useGetTheme: () => {
20
20
  daVinci: (props: any) => import("react/jsx-runtime").JSX.Element;
21
21
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
22
22
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
23
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
23
24
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
24
25
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
25
26
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -100,6 +101,7 @@ declare const useGetTheme: () => {
100
101
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
101
102
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
102
103
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
104
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
103
105
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
104
106
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
105
107
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -95,6 +95,9 @@ export declare const colors: {
95
95
  backgroundColor: string;
96
96
  headerColor: string;
97
97
  };
98
+ critical: {
99
+ dark: string;
100
+ };
98
101
  common: {
99
102
  dark: string;
100
103
  };
@@ -161,5 +161,8 @@ var colors = exports.colors = _objectSpread(_objectSpread({
161
161
  font: font,
162
162
  badge: badge,
163
163
  codeEditor: codeEditor,
164
+ critical: {
165
+ dark: _colorTokens.nextGenColors['red-100']
166
+ },
164
167
  common: common
165
168
  });
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
10
10
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
11
11
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
12
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
12
13
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
13
14
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
14
15
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -12,6 +12,7 @@ export declare const nextGenDarkThemeValues: {
12
12
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
13
13
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
14
14
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
15
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
15
16
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
16
17
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
17
18
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -5,16 +5,29 @@ export declare const menuItem: {
5
5
  outline: string;
6
6
  color: string;
7
7
  cursor: string;
8
- '&.is-focused, &.is-selected, &.is-pressed': {
8
+ '&.is-hovered': {
9
9
  bg: string;
10
10
  color: string;
11
11
  '> *': {
12
12
  color: string;
13
13
  };
14
14
  };
15
- '&.is-pressed': {
15
+ '&.is-focused': {
16
+ bg: string;
17
+ color: string;
18
+ outline: string;
19
+ outlineOffset: string;
20
+ outlineColor: string;
21
+ '> *': {
22
+ color: string;
23
+ };
24
+ };
25
+ '&.is-selected, &.is-pressed': {
16
26
  color: string;
17
27
  bg: string;
28
+ '> *': {
29
+ color: string;
30
+ };
18
31
  };
19
32
  };
20
33
  separator: {
@@ -8,20 +8,33 @@ exports.menuItem = exports.menu = void 0;
8
8
  var menuItem = exports.menuItem = {
9
9
  item: {
10
10
  bg: 'transparent',
11
- padding: '10px 10px',
11
+ padding: '12px 12px',
12
12
  outline: 'none',
13
13
  color: 'gray-400',
14
14
  cursor: 'pointer',
15
- '&.is-focused, &.is-selected, &.is-pressed': {
16
- bg: 'gray-800',
17
- color: 'text.primary',
15
+ '&.is-hovered': {
16
+ bg: '#2C323A',
17
+ color: 'gray-200',
18
+ '> *': {
19
+ color: 'gray-200'
20
+ }
21
+ },
22
+ '&.is-focused': {
23
+ bg: '#2C323A',
24
+ color: 'gray-200',
25
+ outline: '1px solid',
26
+ outlineOffset: '1px',
27
+ outlineColor: 'primary',
18
28
  '> *': {
19
- color: 'text.primary'
29
+ color: 'gray-200'
20
30
  }
21
31
  },
22
- '&.is-pressed': {
32
+ '&.is-selected, &.is-pressed': {
23
33
  color: 'text.secondary',
24
- bg: 'gray-800'
34
+ bg: 'gray-800',
35
+ '> *': {
36
+ color: 'gray-200'
37
+ }
25
38
  }
26
39
  },
27
40
  separator: {
@@ -190,16 +190,29 @@ declare const _default: {
190
190
  outline: string;
191
191
  color: string;
192
192
  cursor: string;
193
- '&.is-focused, &.is-selected, &.is-pressed': {
193
+ '&.is-hovered': {
194
194
  bg: string;
195
195
  color: string;
196
196
  '> *': {
197
197
  color: string;
198
198
  };
199
199
  };
200
- '&.is-pressed': {
200
+ '&.is-focused': {
201
+ bg: string;
202
+ color: string;
203
+ outline: string;
204
+ outlineOffset: string;
205
+ outlineColor: string;
206
+ '> *': {
207
+ color: string;
208
+ };
209
+ };
210
+ '&.is-selected, &.is-pressed': {
201
211
  color: string;
202
212
  bg: string;
213
+ '> *': {
214
+ color: string;
215
+ };
203
216
  };
204
217
  };
205
218
  separator: {
@@ -230,6 +230,7 @@ declare const _default: {
230
230
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
231
231
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
232
232
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
233
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
233
234
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
234
235
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
235
236
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  daVinci: (props: any) => import("react/jsx-runtime").JSX.Element;
10
10
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
11
11
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
12
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
12
13
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
13
14
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
14
15
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -52,4 +52,4 @@ var _statuses = _interopRequireWildcard(require("../../../../utils/devUtils/cons
52
52
  var _navBarIcons = require("./navBarIcons");
53
53
  var _statuses$DEFAULT$sta;
54
54
  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); }
55
- var _default = exports["default"] = (_statuses$DEFAULT$sta = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, _statuses["default"].DEFAULT, _InformationIcon["default"]), _statuses["default"].ERROR, _AlertCircleIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleIcon["default"]), _statuses["default"].WARNING, _AlertIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "aic", _navBarIcons.Aic), "applicationsIcon", _ApplicationOutlineIcon["default"]), "Ascending", _MenuUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateIcon["default"]), "daVinci", _navBarIcons.DaVinci), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _MenuDownIcon["default"]), "ErrorCircle", _AlertCircleIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "integrationsIcon", _ConnectionIcon["default"]), "listViewMenu", _MoreVertIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleIcon["default"]), "mdiEarth", _EarthIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), "mdiShoCard", _navBarIcons.Credentials), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _MenuDownIcon["default"]), "MenuUp", _MenuUpIcon["default"]), "monitoringIcon", _PulseIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _WebIcon["default"]), "p1verify", _navBarIcons.Verify), "pam", _navBarIcons.PamIcon), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "PingAuthorize", _KeyChainVariantIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmallWhite), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleIcon["default"]), "userExperienceIcon", _MonitorScreenshotIcon["default"]), "WarningIcon", _AlertOutlineIcon["default"]));
55
+ var _default = exports["default"] = (_statuses$DEFAULT$sta = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, _statuses["default"].DEFAULT, _InformationIcon["default"]), _statuses["default"].ERROR, _AlertCircleIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleIcon["default"]), _statuses["default"].WARNING, _AlertIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "aic", _navBarIcons.Aic), "applicationsIcon", _ApplicationOutlineIcon["default"]), "Ascending", _MenuUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateIcon["default"]), "daVinci", _navBarIcons.DaVinci), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _MenuDownIcon["default"]), "popoverMenuIcon", _MoreVertIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "ErrorCircle", _AlertCircleIcon["default"]), "integrationsIcon", _ConnectionIcon["default"]), "listViewMenu", _MoreVertIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleIcon["default"]), "mdiEarth", _EarthIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "mdiShoCard", _navBarIcons.Credentials), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _MenuDownIcon["default"]), "MenuUp", _MenuUpIcon["default"]), "monitoringIcon", _PulseIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _WebIcon["default"]), "p1verify", _navBarIcons.Verify), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "pam", _navBarIcons.PamIcon), "PingAuthorize", _KeyChainVariantIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmallWhite), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleIcon["default"]), "userExperienceIcon", _MonitorScreenshotIcon["default"]), "WarningIcon", _AlertOutlineIcon["default"]));
@@ -14,6 +14,7 @@ export declare const astroThemeValues: {
14
14
  daVinci: (props: any) => import("react/jsx-runtime").JSX.Element;
15
15
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
16
16
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
17
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
17
18
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
18
19
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
19
20
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -9,6 +9,7 @@ declare const icons: {
9
9
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
10
10
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
11
11
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
12
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
12
13
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
13
14
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
14
15
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -51,5 +51,5 @@ var _statuses = _interopRequireWildcard(require("../../../../utils/devUtils/cons
51
51
  var _navBarIcons = require("../../astro/customProperties/navBarIcons");
52
52
  var _icons;
53
53
  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); }
54
- var icons = (_icons = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, _statuses["default"].DEFAULT, _InformationOutlineIcon["default"]), _statuses["default"].ERROR, _AlertCircleOutlineIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleOutlineIcon["default"]), _statuses["default"].WARNING, _AlertOutlineIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "aic", _navBarIcons.Aic), "applicationsIcon", _AppsIcon["default"]), "Ascending", _ArrowUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateOutlineIcon["default"]), "daVinci", _FileTreeOutlineIcon["default"]), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _ArrowDownIcon["default"]), "ErrorCircle", _AlertCircleOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "integrationsIcon", _WidgetsOutlineIcon["default"]), "listViewMenu", _DotsHorizontalIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleOutlineIcon["default"]), "mdiEarth", _SettingsOutlineIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleOutlineIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), "mdiShoCard", _CardAccountDetailsOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _ChevronDownIcon["default"]), "MenuUp", _ChevronUpIcon["default"]), "monitoringIcon", _ShowChartIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _ViewDashboardOutlineIcon["default"]), "p1verify", _AccountCheckOutlineIcon["default"]), "pam", _navBarIcons.PamIcon), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "PingAuthorize", _KeyOutlineIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleOutlineIcon["default"]), "userExperienceIcon", _PaletteOutlineIcon["default"]), "WarningIcon", _AlertOutlineIcon["default"]));
54
+ var icons = (_icons = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, _statuses["default"].DEFAULT, _InformationOutlineIcon["default"]), _statuses["default"].ERROR, _AlertCircleOutlineIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleOutlineIcon["default"]), _statuses["default"].WARNING, _AlertOutlineIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "aic", _navBarIcons.Aic), "applicationsIcon", _AppsIcon["default"]), "Ascending", _ArrowUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateOutlineIcon["default"]), "daVinci", _FileTreeOutlineIcon["default"]), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _ArrowDownIcon["default"]), "popoverMenuIcon", _DotsHorizontalIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "ErrorCircle", _AlertCircleOutlineIcon["default"]), "integrationsIcon", _WidgetsOutlineIcon["default"]), "listViewMenu", _DotsHorizontalIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleOutlineIcon["default"]), "mdiEarth", _SettingsOutlineIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleOutlineIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "mdiShoCard", _CardAccountDetailsOutlineIcon["default"]), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _ChevronDownIcon["default"]), "MenuUp", _ChevronUpIcon["default"]), "monitoringIcon", _ShowChartIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _ViewDashboardOutlineIcon["default"]), "p1verify", _AccountCheckOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "pam", _navBarIcons.PamIcon), "PingAuthorize", _KeyOutlineIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleOutlineIcon["default"]), "userExperienceIcon", _PaletteOutlineIcon["default"]), "WarningIcon", _AlertOutlineIcon["default"]));
55
55
  var _default = exports["default"] = icons;
@@ -23,6 +23,7 @@ export declare const nextGenThemeValues: {
23
23
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
24
24
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
25
25
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
26
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
26
27
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
27
28
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
28
29
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -2162,6 +2162,7 @@ declare const _default: {
2162
2162
  daVinci: import("@pingux/mdi-react").MdiReactIconComponentType;
2163
2163
  DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
2164
2164
  Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
2165
+ popoverMenuIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
2165
2166
  ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
2166
2167
  integrationsIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
2167
2168
  listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
@@ -4631,23 +4632,53 @@ declare const _default: {
4631
4632
  padding: string;
4632
4633
  outline: string;
4633
4634
  color: string;
4635
+ fontSize: string;
4636
+ lineHeight: string;
4634
4637
  cursor: string;
4635
- '&.is-focused, &.is-selected, &.is-pressed': {
4638
+ borderRadius: string;
4639
+ '&.is-hovered': {
4636
4640
  bg: string;
4637
4641
  color: string;
4638
4642
  '> *': {
4639
4643
  color: string;
4640
4644
  };
4641
4645
  };
4642
- '&.is-pressed': {
4646
+ '&.is-focused': {
4647
+ bg: string;
4643
4648
  color: string;
4649
+ outline: string;
4650
+ outlineOffset: string;
4651
+ outlineColor: string;
4652
+ '> *': {
4653
+ color: string;
4654
+ };
4655
+ };
4656
+ '&.is-pressed, &.is-selected': {
4644
4657
  bg: string;
4658
+ color: string;
4659
+ '> *': {
4660
+ color: string;
4661
+ };
4645
4662
  };
4646
4663
  };
4647
4664
  separator: {
4648
4665
  my: string;
4649
4666
  };
4650
4667
  };
4668
+ menuSection: {
4669
+ sectionTitle: {
4670
+ fontWeight: string;
4671
+ fontSize: string;
4672
+ lineHeight: string;
4673
+ textTransform: string;
4674
+ letterSpacing: string;
4675
+ height: string;
4676
+ py: string;
4677
+ px: string;
4678
+ color: string;
4679
+ ml: number;
4680
+ };
4681
+ };
4651
4682
  menuTab: {
4652
4683
  ml: string;
4653
4684
  };
@@ -4964,6 +4995,7 @@ declare const _default: {
4964
4995
  };
4965
4996
  popoverMenu: {
4966
4997
  container: {
4998
+ minWidth: string;
4967
4999
  transition: string;
4968
5000
  '&.animate': {
4969
5001
  opacity: number;
@@ -3,23 +3,53 @@ export declare const menu: {
3
3
  border: string;
4
4
  borderColor: string;
5
5
  };
6
+ export declare const menuSection: {
7
+ sectionTitle: {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ textTransform: string;
12
+ letterSpacing: string;
13
+ height: string;
14
+ py: string;
15
+ px: string;
16
+ color: string;
17
+ ml: number;
18
+ };
19
+ };
6
20
  export declare const menuItem: {
7
21
  item: {
8
22
  bg: string;
9
23
  padding: string;
10
24
  outline: string;
11
25
  color: string;
26
+ fontSize: string;
27
+ lineHeight: string;
12
28
  cursor: string;
13
- '&.is-focused, &.is-selected, &.is-pressed': {
29
+ borderRadius: string;
30
+ '&.is-hovered': {
14
31
  bg: string;
15
32
  color: string;
16
33
  '> *': {
17
34
  color: string;
18
35
  };
19
36
  };
20
- '&.is-pressed': {
37
+ '&.is-focused': {
38
+ bg: string;
21
39
  color: string;
40
+ outline: string;
41
+ outlineOffset: string;
42
+ outlineColor: string;
43
+ '> *': {
44
+ color: string;
45
+ };
46
+ };
47
+ '&.is-pressed, &.is-selected': {
22
48
  bg: string;
49
+ color: string;
50
+ '> *': {
51
+ color: string;
52
+ };
23
53
  };
24
54
  };
25
55
  separator: {