@pingux/astro 2.25.0-alpha.1 → 2.25.0-alpha.2

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.
@@ -13,28 +13,23 @@ import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object
13
13
  import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
14
14
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
15
15
  import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
16
- import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
16
+ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
17
17
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
18
+ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
18
19
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
19
- 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 _context10; _forEachInstanceProperty(_context10 = ["next", "throw", "return"]).call(_context10, 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 _context11; 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(_context11 = this.tryEntries).call(_context11, 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; }
20
+ import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/sort";
20
21
  import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
21
22
  import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
22
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
23
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
24
- import _keysInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/keys";
25
- import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/sort";
26
- import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
27
23
  import _parseInt from "@babel/runtime-corejs3/core-js-stable/parse-int";
24
+ 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 _context8; _forEachInstanceProperty(_context8 = ["next", "throw", "return"]).call(_context8, 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 _context9; 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(_context9 = this.tryEntries).call(_context9, 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
25
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context8 = ownKeys(Object(source), !0)).call(_context8, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context9 = ownKeys(Object(source))).call(_context9, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
30
- import React from 'react';
26
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
27
+ import React, { useEffect, useState } from 'react';
31
28
  import { useAsyncList } from 'react-stately';
32
- import { faker } from '@faker-js/faker';
33
- import ApplicationIcon from '@pingux/mdi-react/ApplicationIcon';
29
+ import { useCollator } from '@react-aria/i18n';
34
30
  import { action } from '@storybook/addon-actions';
35
- import isChromatic from 'chromatic/isChromatic';
36
31
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
37
- import { DataTable, DataTableBadge, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableMultiLine, DataTableRow } from '../../index';
32
+ import { Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow } from '../../index';
38
33
  import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
39
34
  import DataTableReadme from './DataTable.mdx';
40
35
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -117,6 +112,7 @@ export default {
117
112
  }
118
113
  };
119
114
  export var Default = function Default(args) {
115
+ var _list$sortDescriptor;
120
116
  var columns = [{
121
117
  name: 'Country',
122
118
  key: 'country'
@@ -147,138 +143,274 @@ export var Default = function Default(args) {
147
143
  country: 'France',
148
144
  population: '67,000,000',
149
145
  continent: 'Europe'
146
+ }, {
147
+ id: 5,
148
+ country: 'Mexico',
149
+ population: '126,000,000',
150
+ continent: 'South America'
151
+ }, {
152
+ id: 6,
153
+ country: 'Ethiopia',
154
+ population: '120,000,000',
155
+ continent: 'Africa'
156
+ }, {
157
+ id: 7,
158
+ country: 'Austria',
159
+ population: '25,000,000',
160
+ continent: 'Oceania'
150
161
  }];
162
+ var collator = useCollator({
163
+ numeric: true
164
+ });
165
+ var list = useAsyncList({
166
+ load: function load() {
167
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
168
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
169
+ while (1) switch (_context.prev = _context.next) {
170
+ case 0:
171
+ return _context.abrupt("return", {
172
+ items: rows
173
+ });
174
+ case 1:
175
+ case "end":
176
+ return _context.stop();
177
+ }
178
+ }, _callee);
179
+ }))();
180
+ },
181
+ sort: function sort(_ref) {
182
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
183
+ var items, sortDescriptor;
184
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
185
+ while (1) switch (_context2.prev = _context2.next) {
186
+ case 0:
187
+ items = _ref.items, sortDescriptor = _ref.sortDescriptor;
188
+ return _context2.abrupt("return", {
189
+ items: _sortInstanceProperty(items).call(items, function (a, b) {
190
+ var first = a[sortDescriptor.column];
191
+ var second = b[sortDescriptor.column];
192
+ var cmp = collator.compare(first, second);
193
+ if (sortDescriptor.direction === 'descending') {
194
+ cmp *= -1;
195
+ }
196
+ return cmp;
197
+ })
198
+ });
199
+ case 2:
200
+ case "end":
201
+ return _context2.stop();
202
+ }
203
+ }, _callee2);
204
+ }))();
205
+ }
206
+ });
151
207
  return ___EmotionJSX(DataTable, _extends({}, args, {
152
208
  "aria-label": "Static table",
153
- height: "100%"
209
+ sortDescriptor: (_list$sortDescriptor = list.sortDescriptor) === null || _list$sortDescriptor === void 0 ? void 0 : _list$sortDescriptor.direction,
210
+ onSortChange: _sortInstanceProperty(list)
154
211
  }), ___EmotionJSX(DataTableHeader, {
155
212
  columns: columns
156
213
  }, function (column) {
157
214
  return ___EmotionJSX(DataTableColumn, {
215
+ allowsSorting: true,
158
216
  align: "center"
159
217
  }, column.name);
160
218
  }), ___EmotionJSX(DataTableBody, {
161
- items: rows
219
+ items: list.items
162
220
  }, function (item) {
163
221
  return ___EmotionJSX(DataTableRow, null, function (columnKey) {
164
222
  return ___EmotionJSX(DataTableCell, null, item[columnKey]);
165
223
  });
166
224
  }));
167
225
  };
168
- export var CustomContent = function CustomContent(args) {
226
+ export var AsyncLoading = function AsyncLoading(args) {
169
227
  /**
170
228
  * isChromatic checks if the code is running in Chromatic environment
171
229
  * @returns {Boolean}
172
230
  * Source: https://www.chromatic.com/docs/ischromatic
173
231
  * */
174
- var chromatic = isChromatic();
232
+
175
233
  var columns = [{
176
- name: 'Name/ID',
177
- key: 'name_id',
178
- isSortable: true
234
+ name: 'Name',
235
+ key: 'name'
179
236
  }, {
180
- name: 'Status',
181
- key: 'status',
182
- isSortable: false
237
+ name: 'Height',
238
+ key: 'height'
183
239
  }, {
184
- name: 'Category',
185
- key: 'category',
186
- isSortable: false
187
- }, {
188
- name: 'Date Submitted',
189
- key: 'date',
190
- isSortable: true
191
- }, {
192
- name: 'Submitted By',
193
- key: 'submitted_by',
194
- isSortable: true
240
+ name: 'Mass',
241
+ key: 'mass'
195
242
  }, {
196
- name: 'Menu',
197
- key: 'menu',
198
- isSortable: false
243
+ name: 'Birth Year',
244
+ key: 'birth_year'
199
245
  }];
200
- var random = function random(items) {
201
- return items[Math.floor(Math.random() * items.length)];
202
- };
203
246
  var list = useAsyncList({
204
- load: function load(_ref) {
205
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
206
- var _context, _context2, _context3;
207
- var signal, cursor, res, json, fakeData, tableData;
208
- return _regeneratorRuntime().wrap(function _callee$(_context5) {
209
- while (1) switch (_context5.prev = _context5.next) {
247
+ load: function load(_ref2) {
248
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
249
+ var signal, cursor, res, json;
250
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
251
+ while (1) switch (_context3.prev = _context3.next) {
210
252
  case 0:
211
- signal = _ref.signal, cursor = _ref.cursor;
253
+ signal = _ref2.signal, cursor = _ref2.cursor;
212
254
  if (cursor) {
213
255
  // eslint-disable-next-line no-param-reassign
214
256
  cursor = cursor.replace(/^http:\/\//i, 'https://');
215
257
  }
216
- _context5.next = 4;
217
- return fetch(cursor || 'https://pokeapi.co/api/v2/pokemon', {
258
+ _context3.next = 4;
259
+ return fetch(cursor || 'https://swapi.py4e.com/api/people/?search=', {
218
260
  signal: signal
219
261
  });
220
262
  case 4:
221
- res = _context5.sent;
222
- _context5.next = 7;
263
+ res = _context3.sent;
264
+ _context3.next = 7;
223
265
  return res.json();
224
266
  case 7:
225
- json = _context5.sent;
226
- _context5.next = 10;
267
+ json = _context3.sent;
268
+ _context3.next = 10;
227
269
  return new _Promise(function (resolve) {
228
270
  return _setTimeout(resolve, cursor ? 2000 : 3000);
229
271
  });
230
272
  case 10:
231
- fakeData = _mapInstanceProperty(_context = _concatInstanceProperty(_context2 = []).call(_context2, _keysInstanceProperty(_context3 = Array(json.results.length)).call(_context3))).call(_context, function (key) {
232
- var _context4;
233
- return {
234
- id: key,
235
- date: chromatic ? '2022-12-25' : "".concat(faker.date.past().toLocaleDateString('fr-CA')),
236
- category: chromatic ? 'Other' : "".concat(random(['App Catalog', 'Delete Environment', 'Other'])),
237
- status: ___EmotionJSX(DataTableBadge, {
238
- cell: chromatic ? 'Pending' : "".concat(random(['Pending', 'Rejected', 'Approved', 'Failed']))
239
- }),
240
- submitted_by: chromatic ? 'John Doe' : _concatInstanceProperty(_context4 = "".concat(faker.name.firstName(), " ")).call(_context4, faker.name.lastName()),
241
- name_id: ___EmotionJSX(DataTableMultiLine, {
242
- cell: [{
243
- name: chromatic ? 'ACME' : "".concat(faker.company.name()),
244
- icon: ApplicationIcon,
245
- accountId: chromatic ? '123456789' : "".concat(faker.finance.routingNumber())
246
- }]
247
- }),
248
- menu: ___EmotionJSX(DataTableMenu, null)
249
- };
250
- });
251
- tableData = _mapInstanceProperty(fakeData).call(fakeData, function (item, i) {
252
- return _objectSpread(_objectSpread({}, item), json.results[i]);
253
- });
254
- return _context5.abrupt("return", {
255
- items: tableData,
273
+ return _context3.abrupt("return", {
274
+ items: json.results,
256
275
  cursor: json.next
257
276
  });
258
- case 13:
277
+ case 11:
259
278
  case "end":
260
- return _context5.stop();
279
+ return _context3.stop();
261
280
  }
262
- }, _callee);
281
+ }, _callee3);
282
+ }))();
283
+ }
284
+ });
285
+ return ___EmotionJSX(DataTable, _extends({}, args, {
286
+ "aria-label": "Custom content table",
287
+ onAction: action('onAction')
288
+ }), ___EmotionJSX(DataTableHeader, {
289
+ columns: columns
290
+ }, function (column) {
291
+ return ___EmotionJSX(DataTableColumn, {
292
+ align: column.key !== 'menu' ? 'start' : 'center',
293
+ hideHeader: column.key === 'menu'
294
+ }, column.name);
295
+ }), ___EmotionJSX(DataTableBody, {
296
+ items: list.items,
297
+ loadingState: list.loadingState,
298
+ onLoadMore: list.loadMore
299
+ }, function (item) {
300
+ return ___EmotionJSX(DataTableRow, {
301
+ key: item.name
302
+ }, function (columnKey) {
303
+ return ___EmotionJSX(DataTableCell, null, item[columnKey]);
304
+ });
305
+ }));
306
+ };
307
+ export var New = function New(args) {
308
+ var _useState = useState(true),
309
+ _useState2 = _slicedToArray(_useState, 2),
310
+ firstSortFlag = _useState2[0],
311
+ setFirstSortFlag = _useState2[1];
312
+ var date = '2023-05-03';
313
+ var time = '07:16:30 pm UTC';
314
+ var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
315
+ var columns = [{
316
+ name: 'Timestamp',
317
+ key: 'timestamp',
318
+ isSortable: true
319
+ }, {
320
+ name: 'Event Type',
321
+ key: 'eventType',
322
+ isSortable: true
323
+ }, {
324
+ name: 'Description',
325
+ key: 'description',
326
+ isSortable: true
327
+ }, {
328
+ name: 'Console',
329
+ key: 'console',
330
+ isSortable: true
331
+ }, {
332
+ name: 'User Identity',
333
+ key: 'userIdentity',
334
+ isSortable: true
335
+ }, {
336
+ name: 'Menu',
337
+ key: 'menu'
338
+ }];
339
+ var rows = [{
340
+ id: 1,
341
+ timestamp: timestampCell,
342
+ eventType: 'User Access Allowed',
343
+ description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
344
+ console: 'PingOne Admin Console',
345
+ userIdentity: 'Vincent Diep',
346
+ menu: ___EmotionJSX(DataTableMenu, null)
347
+ }, {
348
+ id: 2,
349
+ timestamp: timestampCell,
350
+ eventType: 'User Access Denied',
351
+ description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
352
+ display: "block"
353
+ }, "Passed Role Access"), ___EmotionJSX(Box, {
354
+ display: "block"
355
+ }, "Control"), ___EmotionJSX(Box, {
356
+ display: "block"
357
+ }, "Words Words Words Words Words Words Words Words Words Words Words Words Words Words")),
358
+ console: 'PingOne Admin Console',
359
+ userIdentity: 'Vincent Diep',
360
+ menu: ___EmotionJSX(DataTableMenu, null)
361
+ }, {
362
+ id: 3,
363
+ timestamp: timestampCell,
364
+ eventType: 'User Access Allowed',
365
+ description: 'Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words Words',
366
+ console: 'PingOne Admin Console',
367
+ userIdentity: 'Vincent Diep',
368
+ menu: ___EmotionJSX(DataTableMenu, null)
369
+ }, {
370
+ id: 4,
371
+ timestamp: timestampCell,
372
+ eventType: 'User Access Allowed',
373
+ description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
374
+ console: 'PingOne Admin Console',
375
+ userIdentity: 'Vincent Diep',
376
+ menu: ___EmotionJSX(DataTableMenu, null)
377
+ }, {
378
+ id: 5,
379
+ timestamp: timestampCell,
380
+ eventType: 'User Access Allowed',
381
+ description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
382
+ console: 'PingOne Admin Console',
383
+ userIdentity: 'Vincent Diep',
384
+ menu: ___EmotionJSX(DataTableMenu, null)
385
+ }];
386
+ var list = useAsyncList({
387
+ load: function load() {
388
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
389
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
390
+ while (1) switch (_context4.prev = _context4.next) {
391
+ case 0:
392
+ return _context4.abrupt("return", {
393
+ items: rows
394
+ });
395
+ case 1:
396
+ case "end":
397
+ return _context4.stop();
398
+ }
399
+ }, _callee4);
263
400
  }))();
264
401
  },
265
- sort: function sort(_ref2) {
266
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
402
+ sort: function sort(_ref3) {
403
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
267
404
  var items, sortDescriptor, cmp;
268
- return _regeneratorRuntime().wrap(function _callee2$(_context7) {
269
- while (1) switch (_context7.prev = _context7.next) {
405
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
406
+ while (1) switch (_context5.prev = _context5.next) {
270
407
  case 0:
271
- items = _ref2.items, sortDescriptor = _ref2.sortDescriptor;
272
- return _context7.abrupt("return", {
408
+ items = _ref3.items, sortDescriptor = _ref3.sortDescriptor;
409
+ return _context5.abrupt("return", {
273
410
  items: _sortInstanceProperty(items).call(items, function (a, b) {
274
- var _context6;
275
- var first = sortDescriptor.column !== 'name_id' ? a[sortDescriptor.column] : a[sortDescriptor.column].props.cell[0].name;
276
- var second = sortDescriptor.column !== 'name_id' ? b[sortDescriptor.column] : b[sortDescriptor.column].props.cell[0].name;
277
- if (_includesInstanceProperty(_context6 = sortDescriptor.column).call(_context6, 'date')) {
278
- cmp = new Date(first) < new Date(second) ? -1 : 1;
279
- } else {
280
- cmp = (_parseInt(first, 10) || first) < (_parseInt(second, 10) || second) ? -1 : 1;
281
- }
411
+ var first = a[sortDescriptor.column];
412
+ var second = b[sortDescriptor.column];
413
+ cmp = (_parseInt(first, 10) || first) < (_parseInt(second, 10) || second) ? -1 : 1;
282
414
  if (sortDescriptor.direction === 'descending') {
283
415
  cmp *= -1;
284
416
  }
@@ -287,37 +419,50 @@ export var CustomContent = function CustomContent(args) {
287
419
  });
288
420
  case 2:
289
421
  case "end":
290
- return _context7.stop();
422
+ return _context5.stop();
291
423
  }
292
- }, _callee2);
424
+ }, _callee5);
293
425
  }))();
294
426
  }
295
427
  });
428
+ useEffect(function () {
429
+ if (firstSortFlag && !list.isLoading && list.items.length > 0) {
430
+ _sortInstanceProperty(list).call(list, {
431
+ column: 'timestamp',
432
+ direction: 'ascending'
433
+ });
434
+ setFirstSortFlag(false);
435
+ }
436
+ }, [list.isLoading, list.items]);
296
437
  return ___EmotionJSX(DataTable, _extends({}, args, {
438
+ "aria-label": "Static table",
439
+ height: "100%",
297
440
  sortDescriptor: list.sortDescriptor,
298
- onSortChange: _sortInstanceProperty(list),
299
- "aria-label": "Custom content table",
300
- onAction: action('onAction')
441
+ onSortChange: _sortInstanceProperty(list)
301
442
  }), ___EmotionJSX(DataTableHeader, {
302
443
  columns: columns
303
444
  }, function (column) {
304
445
  return ___EmotionJSX(DataTableColumn, {
305
- width:
306
- // eslint-disable-next-line no-nested-ternary
307
- column.key === 'name_id' ? '26.5%' : column.key === 'menu' ? '5%' : '16%',
308
- align: column.key !== 'menu' ? 'start' : 'center',
309
- allowsSorting: column.isSortable,
310
- hideHeader: column.key === 'menu'
446
+ cellProps: {
447
+ pr: column.key !== 'menu' ? 'lg' : 0,
448
+ pl: column.key === 'timestamp' || column.key === 'menu' ? 0 : 'lg'
449
+ },
450
+ minWidth: column.key !== 'menu' ? 175 : 32,
451
+ width: column.key !== 'menu' ? '19.4%' : 32,
452
+ hideHeader: column.key === 'menu',
453
+ allowsSorting: column.isSortable
311
454
  }, column.name);
312
455
  }), ___EmotionJSX(DataTableBody, {
313
456
  items: list.items,
314
- loadingState: list.loadingState,
315
- onLoadMore: list.loadMore
457
+ loadingState: list.loadingState
316
458
  }, function (item) {
317
- return ___EmotionJSX(DataTableRow, {
318
- key: item.name
319
- }, function (columnKey) {
320
- return ___EmotionJSX(DataTableCell, null, item[columnKey]);
459
+ return ___EmotionJSX(DataTableRow, null, function (columnKey) {
460
+ return ___EmotionJSX(DataTableCell, {
461
+ cellProps: {
462
+ pr: columnKey !== 'menu' ? 'lg' : 0,
463
+ pl: columnKey === 'timestamp' || columnKey === 'menu' ? 0 : 'lg'
464
+ }
465
+ }, item[columnKey]);
321
466
  });
322
467
  }));
323
468
  };
@@ -16,6 +16,12 @@ var tableCell = _objectSpread(_objectSpread({}, text.tableData), {}, {
16
16
  display: 'flex',
17
17
  fontSize: '13px',
18
18
  height: '100%',
19
+ pr: 'lg',
20
+ flex: '1 1 0%',
21
+ overflow: 'hidden',
22
+ fontWeight: 0,
23
+ justifyContent: 'center',
24
+ py: 10,
19
25
  '&.is-key-focused': {
20
26
  outline: '1px',
21
27
  outlineStyle: 'solid',
@@ -34,13 +40,11 @@ var tableCell = _objectSpread(_objectSpread({}, text.tableData), {}, {
34
40
  }
35
41
  });
36
42
  var tableCellContents = {
37
- flex: '1 1 0%',
43
+ maxHeight: 80,
38
44
  overflow: 'hidden',
39
- whiteSpace: 'nowrap',
40
- textOverflow: 'ellipsis',
41
- fontWeight: '400',
42
- justifyContent: 'center',
43
- maxWidth: '100%'
45
+ display: '-webkit-box !important',
46
+ '-webkit-line-clamp': '4',
47
+ '-webkit-box-orient': 'vertical'
44
48
  };
45
49
  var tableRow = {
46
50
  position: 'relative',
@@ -48,14 +52,7 @@ var tableRow = {
48
52
  borderBottom: '1px',
49
53
  outline: '0',
50
54
  borderBottomStyle: 'solid !important',
51
- backgroundColor: 'accent.99',
52
55
  borderBottomColor: 'neutral.80',
53
- borderTop: '1px solid transparent',
54
- borderLeft: '1px solid transparent',
55
- borderRight: '1px solid transparent',
56
- '&:hover': {
57
- backgroundColor: 'white'
58
- },
59
56
  '&.is-row-focus-visible': {
60
57
  border: '1px solid',
61
58
  borderColor: 'focus',
@@ -81,13 +78,13 @@ var tableCenteredWrapper = {
81
78
  width: '100%',
82
79
  height: '100%'
83
80
  };
84
- var tableHeadCell = _objectSpread(_objectSpread({}, text.label), {}, {
81
+ var tableHeadCell = _objectSpread(_objectSpread({}, text.tableHeader), {}, {
85
82
  cursor: 'default',
86
- backgroundColor: 'accent.99',
87
83
  flexDirection: 'row !important',
88
- alignItems: 'flex-end',
89
- fontWeight: 500,
84
+ alignItems: 'center',
85
+ fontWeight: 1,
90
86
  height: '100%',
87
+ pr: 'lg',
91
88
  py: '10px',
92
89
  '&.is-click-focused': {
93
90
  outline: '0'
@@ -96,12 +93,30 @@ var tableHeadCell = _objectSpread(_objectSpread({}, text.label), {}, {
96
93
  outline: '1px',
97
94
  outlineStyle: 'solid',
98
95
  outlineColor: '#D033FF !important',
99
- outlineOffset: '-1px',
100
- backgroundColor: 'accent.99 !important'
96
+ outlineOffset: '-1px'
101
97
  },
102
98
  '&.is-column-sortable': {
103
- color: 'text.active',
104
- cursor: 'pointer'
99
+ cursor: 'pointer',
100
+ borderLeft: '1px solid',
101
+ borderRight: '1px solid',
102
+ borderColor: 'transparent',
103
+ 'svg': {
104
+ fill: 'text.primary'
105
+ },
106
+ '&:hover': {
107
+ color: 'active',
108
+ textDecoration: 'underline',
109
+ borderColor: 'neutral.80',
110
+ 'svg': {
111
+ fill: 'active'
112
+ }
113
+ }
114
+ },
115
+ '&.is-column-sortable.is-first-column': {
116
+ borderLeft: 'none'
117
+ },
118
+ '&.is-column-sortable.is-last-column': {
119
+ borderRight: 'none'
105
120
  },
106
121
  '&.is-align-start': {
107
122
  justifyContent: 'flex-start'
@@ -118,7 +133,6 @@ var tableBody = {
118
133
  overflow: 'auto'
119
134
  };
120
135
  var tableMenu = {
121
- p: '5px',
122
136
  borderRadius: '50px'
123
137
  };
124
138
  export default {