@pingux/astro 2.143.0-alpha.2 → 2.144.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownContainer.js +2 -2
  2. package/lib/cjs/components/Checkbox/CheckboxBase.js +3 -1
  3. package/lib/cjs/components/ComboBox/ComboBoxInput.js +2 -2
  4. package/lib/cjs/components/DataTable/DataTable.js +4 -4
  5. package/lib/cjs/components/DataTable/DataTable.stories.js +3 -3
  6. package/lib/cjs/components/GridList/GridList.stories.d.ts +4 -4
  7. package/lib/cjs/components/GridList/gridListAttributes.d.ts +4 -4
  8. package/lib/cjs/components/GridList/gridListAttributes.js +4 -4
  9. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +1 -1
  10. package/lib/cjs/components/Image/Image.js +5 -5
  11. package/lib/cjs/components/ListBox/ListBox.js +3 -3
  12. package/lib/cjs/components/ListBox/Option.js +9 -9
  13. package/lib/cjs/components/MenuItem/MenuItem.js +4 -4
  14. package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +2 -2
  15. package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +2 -2
  16. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +5 -5
  17. package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.js +5 -5
  18. package/lib/cjs/components/PopoverMenu/PopoverMenu.js +1 -1
  19. package/lib/cjs/components/ProgressBar/ProgressBar.js +3 -3
  20. package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +1 -1
  21. package/lib/cjs/components/ProgressBar/ProgressBar.test.js +2 -2
  22. package/lib/cjs/components/RadioField/RadioField.js +3 -3
  23. package/lib/cjs/components/RockerButton/RockerButton.js +2 -2
  24. package/lib/cjs/components/SearchField/SearchAutoComplete.js +1 -1
  25. package/lib/cjs/components/SelectField/SelectField.stories.js +6 -6
  26. package/lib/cjs/components/Tab/Tab.js +2 -2
  27. package/lib/cjs/context/MenuContext/index.d.ts +1 -1
  28. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.d.ts +1 -1
  29. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +6 -6
  30. package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +6 -6
  31. package/lib/cjs/hooks/useField/useField.d.ts +2 -2
  32. package/lib/cjs/hooks/useGridList/useGridList.js +9 -9
  33. package/lib/cjs/hooks/useInputLoader/useInputLoader.d.ts +2 -2
  34. package/lib/cjs/hooks/useInputLoader/useInputLoader.js +8 -8
  35. package/lib/cjs/hooks/useModalState/useModalState.js +2 -2
  36. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
  37. package/lib/cjs/hooks/useSelectField/useSelectField.js +4 -4
  38. package/lib/cjs/hooks/useSliderField/useSliderField.d.ts +1 -1
  39. package/lib/cjs/hooks/useSliderField/useSliderField.js +3 -3
  40. package/lib/cjs/types/dataTable.d.ts +1 -1
  41. package/lib/cjs/types/gridList.d.ts +4 -4
  42. package/lib/cjs/types/listBox.d.ts +2 -2
  43. package/lib/cjs/types/popoverMenu.d.ts +1 -1
  44. package/lib/cjs/types/progressBar.d.ts +1 -1
  45. package/lib/cjs/types/sliderField.d.ts +1 -1
  46. package/lib/cjs/types/timefield.d.ts +1 -1
  47. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -1
  48. package/lib/cjs/utils/designUtils/figmaLinks.js +1 -1
  49. package/lib/components/AIComponents/Response/ResponseMarkdown/MarkdownContainer.js +2 -2
  50. package/lib/components/Checkbox/CheckboxBase.js +3 -1
  51. package/lib/components/ComboBox/ComboBoxInput.js +2 -2
  52. package/lib/components/DataTable/DataTable.js +4 -4
  53. package/lib/components/DataTable/DataTable.stories.js +3 -3
  54. package/lib/components/GridList/gridListAttributes.js +4 -4
  55. package/lib/components/IconButtonToggle/IconButtonToggle.js +1 -1
  56. package/lib/components/Image/Image.js +5 -5
  57. package/lib/components/ListBox/ListBox.js +3 -3
  58. package/lib/components/ListBox/Option.js +9 -9
  59. package/lib/components/MenuItem/MenuItem.js +4 -4
  60. package/lib/components/MultivaluesField/CondensedMultivaluesField.js +2 -2
  61. package/lib/components/MultivaluesField/DefaultMultivaluesField.js +2 -2
  62. package/lib/components/NavBarSection/NavBarItemHeader.js +5 -5
  63. package/lib/components/NavSideBar/NavSideBarSectionHeader.js +5 -5
  64. package/lib/components/PopoverMenu/PopoverMenu.js +1 -1
  65. package/lib/components/ProgressBar/ProgressBar.js +3 -3
  66. package/lib/components/ProgressBar/ProgressBar.stories.js +1 -1
  67. package/lib/components/ProgressBar/ProgressBar.test.js +2 -2
  68. package/lib/components/RadioField/RadioField.js +3 -3
  69. package/lib/components/RockerButton/RockerButton.js +2 -2
  70. package/lib/components/SearchField/SearchAutoComplete.js +1 -1
  71. package/lib/components/SelectField/SelectField.stories.js +6 -6
  72. package/lib/components/Tab/Tab.js +2 -2
  73. package/lib/hooks/useComponentToggle/useComponentToggle.js +6 -6
  74. package/lib/hooks/useComponentToggle/useComponentToggle.test.js +6 -6
  75. package/lib/hooks/useGridList/useGridList.js +9 -9
  76. package/lib/hooks/useInputLoader/useInputLoader.js +8 -8
  77. package/lib/hooks/useModalState/useModalState.js +2 -2
  78. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
  79. package/lib/hooks/useSelectField/useSelectField.js +4 -4
  80. package/lib/hooks/useSliderField/useSliderField.js +3 -3
  81. package/lib/utils/designUtils/figmaLinks.js +1 -1
  82. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  export interface MenuContextValue {
3
3
  onClose?: () => void;
4
- closeOnSelect?: boolean;
4
+ shouldCloseOnSelect?: boolean;
5
5
  ref?: MutableRefObject<HTMLDivElement | HTMLElement | null>;
6
6
  }
7
7
  export declare const MenuContext: import("react").Context<MenuContextValue>;
@@ -21,7 +21,7 @@ interface UseComponentToggle {
21
21
  export interface ComponentToggleProps {
22
22
  ComponentToRenderIfTrue: React.ReactNode;
23
23
  ComponentToRenderIfFalse: React.ReactNode;
24
- condition: boolean;
24
+ isToggled: boolean;
25
25
  onConditionChange?: (newCondition: boolean, ...args: unknown[]) => void;
26
26
  }
27
27
  export interface ComponentToggleResult {
@@ -12,21 +12,21 @@ var _index = require("../index");
12
12
  var useComponentToggle = function useComponentToggle(props) {
13
13
  var ComponentToRenderIfTrue = props.ComponentToRenderIfTrue,
14
14
  ComponentToRenderIfFalse = props.ComponentToRenderIfFalse,
15
- condition = props.condition,
15
+ isToggled = props.isToggled,
16
16
  onConditionChange = props.onConditionChange;
17
- var _useProgressiveState = (0, _index.useProgressiveState)(condition, false),
17
+ var _useProgressiveState = (0, _index.useProgressiveState)(isToggled, false),
18
18
  _useProgressiveState2 = (0, _slicedToArray2["default"])(_useProgressiveState, 2),
19
- isToggled = _useProgressiveState2[0],
19
+ isToggledState = _useProgressiveState2[0],
20
20
  setIsToggled = _useProgressiveState2[1];
21
- var RenderedComponent = isToggled ? ComponentToRenderIfTrue : ComponentToRenderIfFalse;
21
+ var RenderedComponent = isToggledState ? ComponentToRenderIfTrue : ComponentToRenderIfFalse;
22
22
  var handleConditionChange = function handleConditionChange() {
23
- setIsToggled(!isToggled);
23
+ setIsToggled(!isToggledState);
24
24
  if (onConditionChange) {
25
25
  var _context;
26
26
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27
27
  args[_key] = arguments[_key];
28
28
  }
29
- onConditionChange.apply(void 0, (0, _concat["default"])(_context = [!isToggled]).call(_context, args));
29
+ onConditionChange.apply(void 0, (0, _concat["default"])(_context = [!isToggledState]).call(_context, args));
30
30
  }
31
31
  };
32
32
  return {
@@ -24,9 +24,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
  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 _context3; _forEachInstanceProperty(_context3 = ["next", "throw", "return"]).call(_context3, 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 _context4; 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(_context4 = this.tryEntries).call(_context4, 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; }
26
26
  var callback = jest.fn();
27
- var condition = false;
27
+ var isToggled = false;
28
28
  var defaultProps = {
29
- condition: condition,
29
+ isToggled: isToggled,
30
30
  onConditionChange: callback,
31
31
  ComponentToRenderIfTrue: (0, _react3.jsx)("span", null, "true-string"),
32
32
  ComponentToRenderIfFalse: (0, _react3.jsx)("span", null, "false-string")
@@ -34,11 +34,11 @@ var defaultProps = {
34
34
  var TestComponent = function TestComponent() {
35
35
  var _useState = (0, _react.useState)(false),
36
36
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
37
- thisCondition = _useState2[0],
38
- setCondition = _useState2[1];
37
+ isToggledState = _useState2[0],
38
+ setIsToggledState = _useState2[1];
39
39
  var conditionalRenderProps = {
40
- condition: thisCondition,
41
- onConditionChange: setCondition,
40
+ isToggled: isToggledState,
41
+ onConditionChange: setIsToggledState,
42
42
  ComponentToRenderIfTrue: (0, _react3.jsx)("span", null, "true-string"),
43
43
  ComponentToRenderIfFalse: (0, _react3.jsx)("span", null, "false-string"),
44
44
  onConditionChangeProp: callback
@@ -20,7 +20,7 @@ export interface ContainerProps extends WrapperProps {
20
20
  export interface FieldControlInputProps extends AriaLabelingProps, DOMProps {
21
21
  autoComplete?: string;
22
22
  autoCorrect?: string;
23
- autoFocus?: boolean;
23
+ hasAutoFocus?: boolean;
24
24
  className?: string;
25
25
  defaultSelected?: boolean;
26
26
  defaultValue?: string | number;
@@ -79,7 +79,7 @@ export interface UseFieldProps<T> {
79
79
  /**
80
80
  * Indeterminism is presentational only. The indeterminate visual representation remains until
81
81
  * this prop is set to false regardless of user interaction.
82
- */
82
+ */
83
83
  isIndeterminate?: boolean;
84
84
  /** Whether the input can be selected, but not changed by the user. */
85
85
  isReadOnly?: boolean;
@@ -23,15 +23,15 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
23
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
24
24
  var useGridList = function useGridList(props) {
25
25
  var acceptedDragTypes = props.acceptedDragTypes,
26
- allowDuplicateSelectionEvents = props.allowDuplicateSelectionEvents,
27
- autoFocus = props.autoFocus,
26
+ shouldAllowDuplicateSelectionEvents = props.shouldAllowDuplicateSelectionEvents,
27
+ hasAutoFocus = props.hasAutoFocus,
28
28
  children = props.children,
29
29
  collection = props.collection,
30
30
  defaultSelectedKeys = props.defaultSelectedKeys,
31
31
  disabledBehavior = props.disabledBehavior,
32
32
  disabledKeys = props.disabledKeys,
33
- disallowEmptySelection = props.disallowEmptySelection,
34
- disallowTypeAhead = props.disallowTypeAhead,
33
+ shouldDisallowEmptySelection = props.shouldDisallowEmptySelection,
34
+ shouldDisallowTypeAhead = props.shouldDisallowTypeAhead,
35
35
  escapeKeyBehavior = props.escapeKeyBehavior,
36
36
  filter = (0, _filter["default"])(props),
37
37
  getDropOperation = props.getDropOperation,
@@ -100,13 +100,13 @@ var useGridList = function useGridList(props) {
100
100
  initialSelectedKeys: initialSelectedKeys
101
101
  };
102
102
  var listStateOptions = {
103
- allowDuplicateSelectionEvents: allowDuplicateSelectionEvents,
103
+ shouldAllowDuplicateSelectionEvents: shouldAllowDuplicateSelectionEvents,
104
104
  children: children,
105
105
  collection: collection,
106
106
  defaultSelectedKeys: defaultSelectedKeys,
107
107
  disabledBehavior: disabledBehavior,
108
108
  disabledKeys: disabledKeys,
109
- disallowEmptySelection: disallowEmptySelection,
109
+ disallowEmptySelection: shouldDisallowEmptySelection,
110
110
  filter: filter,
111
111
  onSelectionChange: onSelectionChange,
112
112
  selectedKeys: selectedKeys,
@@ -118,12 +118,12 @@ var useGridList = function useGridList(props) {
118
118
  items: list.items
119
119
  }));
120
120
  var gridOptions = {
121
- autoFocus: autoFocus,
121
+ autoFocus: hasAutoFocus,
122
122
  defaultSelectedKeys: defaultSelectedKeys,
123
123
  disabledBehavior: disabledBehavior,
124
124
  disabledKeys: disabledKeys,
125
- disallowEmptySelection: disallowEmptySelection,
126
- disallowTypeAhead: disallowTypeAhead,
125
+ disallowEmptySelection: shouldDisallowEmptySelection,
126
+ disallowTypeAhead: shouldDisallowTypeAhead,
127
127
  escapeKeyBehavior: escapeKeyBehavior,
128
128
  items: list.items,
129
129
  keyboardDelegate: keyboardDelegate,
@@ -3,7 +3,7 @@ interface UseInputLoaderProps {
3
3
  inputValue: string;
4
4
  }
5
5
  interface UseInputLoaderReturn {
6
- showLoading: boolean;
6
+ isLoading: boolean;
7
7
  }
8
- declare const useInputLoader: ({ loadingState, inputValue }: UseInputLoaderProps) => UseInputLoaderReturn;
8
+ declare const useInputLoader: ({ loadingState, inputValue, }: UseInputLoaderProps) => UseInputLoaderReturn;
9
9
  export default useInputLoader;
@@ -16,16 +16,16 @@ var useInputLoader = function useInputLoader(_ref) {
16
16
  // START - minimum delay time for loading indicator = 500ms
17
17
  var _useState = (0, _react.useState)(false),
18
18
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
19
- showLoading = _useState2[0],
20
- setShowLoading = _useState2[1];
19
+ isLoadingState = _useState2[0],
20
+ setIsLoading = _useState2[1];
21
21
  var isLoading = loadingState === _loadingStates["default"].LOADING || loadingState === _loadingStates["default"].FILTERING;
22
22
  var lastInputValue = (0, _react.useRef)(inputValue);
23
23
  var timeout = (0, _react.useRef)(null);
24
24
  (0, _react.useEffect)(function () {
25
- if (isLoading && !showLoading) {
25
+ if (isLoading && !isLoadingState) {
26
26
  if (timeout.current === null) {
27
27
  timeout.current = (0, _setTimeout2["default"])(function () {
28
- setShowLoading(true);
28
+ setIsLoading(true);
29
29
  }, 500);
30
30
  }
31
31
 
@@ -33,21 +33,21 @@ var useInputLoader = function useInputLoader(_ref) {
33
33
  if (inputValue !== lastInputValue.current) {
34
34
  clearTimeout(timeout.current);
35
35
  timeout.current = (0, _setTimeout2["default"])(function () {
36
- setShowLoading(true);
36
+ setIsLoading(true);
37
37
  }, 500);
38
38
  }
39
39
  } else if (!isLoading) {
40
40
  // If loading is no longer happening, clear any timers and hide the loader
41
- setShowLoading(false);
41
+ setIsLoading(false);
42
42
  if (timeout.current) {
43
43
  clearTimeout(timeout.current);
44
44
  timeout.current = null;
45
45
  }
46
46
  }
47
47
  lastInputValue.current = inputValue;
48
- }, [isLoading, showLoading, inputValue]);
48
+ }, [isLoading, isLoadingState, inputValue]);
49
49
  return {
50
- showLoading: showLoading
50
+ isLoading: isLoadingState
51
51
  };
52
52
  // END - minimum delay time for loading indicator = 500ms
53
53
  };
@@ -29,8 +29,8 @@ var useModalState = function useModalState() {
29
29
  isOpen: isOpen,
30
30
  onOpenChange: onOpenChange
31
31
  });
32
- var modalOpen = state.isOpen;
33
- var isTransitioning = (0, _useMountTransition["default"])(modalOpen, transitionDuration || 300);
32
+ var isModalOpen = state.isOpen;
33
+ var isTransitioning = (0, _useMountTransition["default"])(isModalOpen, transitionDuration || 300);
34
34
  var returnState = _objectSpread(_objectSpread({}, state), {}, {
35
35
  isTransitioning: isTransitioning
36
36
  });
@@ -30,8 +30,8 @@ var useOverlayPanelState = function useOverlayPanelState() {
30
30
  isOpen: isOpen,
31
31
  onOpenChange: onOpenChange
32
32
  });
33
- var panelOpen = state.isOpen;
34
- var isTransitioning = (0, _useMountTransition["default"])(panelOpen, transitionDuration);
33
+ var isPanelOpen = state.isOpen;
34
+ var isTransitioning = (0, _useMountTransition["default"])(isPanelOpen, transitionDuration);
35
35
  var onClose = function onClose(stateProp, triggerRef, onCloseProp) {
36
36
  if (stateProp) {
37
37
  stateProp.close();
@@ -42,8 +42,8 @@ var useSelectField = function useSelectField(props, ref) {
42
42
  defaultText = props.defaultText,
43
43
  direction = props.direction,
44
44
  disabledKeys = props.disabledKeys,
45
- disallowEmptySelection = props.hasNoEmptySelection,
46
- defaultOpen = props.isDefaultOpen,
45
+ hasNoEmptySelection = props.hasNoEmptySelection,
46
+ isDefaultOpen = props.isDefaultOpen,
47
47
  isDisabled = props.isDisabled,
48
48
  isLoading = props.isLoading,
49
49
  isNotFlippable = props.isNotFlippable,
@@ -84,9 +84,9 @@ var useSelectField = function useSelectField(props, ref) {
84
84
  onLoadMore: onLoadMore,
85
85
  onOpenChange: onOpenChange,
86
86
  onSelectionChange: onSelectionChange,
87
- defaultOpen: defaultOpen,
87
+ defaultOpen: isDefaultOpen,
88
88
  // must match React Aria API
89
- disallowEmptySelection: disallowEmptySelection,
89
+ disallowEmptySelection: hasNoEmptySelection,
90
90
  // must match React Aria API
91
91
  shouldFlip: shouldFlip
92
92
  }, controlProps), {}, {
@@ -1454,7 +1454,7 @@ declare const useSliderField: (props: UseSliderFieldProps) => {
1454
1454
  isVertical: boolean;
1455
1455
  state: import("react-stately").SliderState;
1456
1456
  trackRef: import("react").RefObject<Element>;
1457
- autoFocus: boolean | undefined;
1457
+ hasAutoFocus: boolean | undefined;
1458
1458
  isDisabled: boolean | undefined;
1459
1459
  name: string | undefined;
1460
1460
  onBlur: (() => void) | undefined;
@@ -22,7 +22,7 @@ var _reactAria = require("react-aria");
22
22
  var _reactStately = require("react-stately");
23
23
  var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
24
24
  var _useStatusClasses7 = _interopRequireDefault(require("../useStatusClasses"));
25
- var _excluded = ["activeTrackProps", "autoFocus", "className", "defaultValue", "displayValue", "formatOptions", "helperTextProps", "helpHintProps", "hintText", "isDisabled", "isDisplayValueHidden", "isMultiThumb", "label", "labelProps", "maxValue", "minValue", "name", "onBlur", "onChange", "onChangeEnd", "onFocus", "onFocusChange", "onKeyDown", "onKeyUp", "orientation", "outputProps", "size", "status", "step", "sx", "thumbProps", "trackProps", "trackRef", "value", "wrapperProps"];
25
+ var _excluded = ["activeTrackProps", "hasAutoFocus", "className", "defaultValue", "displayValue", "formatOptions", "helperTextProps", "helpHintProps", "hintText", "isDisabled", "isDisplayValueHidden", "isMultiThumb", "label", "labelProps", "maxValue", "minValue", "name", "onBlur", "onChange", "onChangeEnd", "onFocus", "onFocusChange", "onKeyDown", "onKeyUp", "orientation", "outputProps", "size", "status", "step", "sx", "thumbProps", "trackProps", "trackRef", "value", "wrapperProps"];
26
26
  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; }
27
27
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
28
28
  var getDefaultValue = function getDefaultValue(_ref) {
@@ -74,7 +74,7 @@ var getLengthValuesMultiThumb = function getLengthValuesMultiThumb(minValue, max
74
74
  exports.getLengthValuesMultiThumb = getLengthValuesMultiThumb;
75
75
  var useSliderField = function useSliderField(props) {
76
76
  var activeTrackProps = props.activeTrackProps,
77
- autoFocus = props.autoFocus,
77
+ hasAutoFocus = props.hasAutoFocus,
78
78
  className = props.className,
79
79
  defaultValueProp = props.defaultValue,
80
80
  displayValueProp = props.displayValue,
@@ -157,7 +157,7 @@ var useSliderField = function useSliderField(props) {
157
157
  }
158
158
  }, [maxValue, state]);
159
159
  var thumbOptions = _objectSpread(_objectSpread({}, thumbProps), {}, {
160
- autoFocus: autoFocus,
160
+ hasAutoFocus: hasAutoFocus,
161
161
  isDisabled: isDisabled,
162
162
  name: name,
163
163
  onBlur: onBlur,
@@ -32,7 +32,7 @@ export interface DataTableVirtualizerProps<T extends object, V> {
32
32
  onLoadMore?: () => void;
33
33
  shouldUseVirtualFocus?: boolean;
34
34
  scrollToItem?: (key: Key) => void;
35
- autoFocus?: boolean;
35
+ hasAutoFocus?: boolean;
36
36
  children?: ReactNode | ((type: string, content: T | ReactNode) => V);
37
37
  renderView: (type: string, content: T) => V | undefined;
38
38
  domRef: RefObject<HTMLDivElement>;
@@ -28,15 +28,15 @@ export interface UseGridListItemProps extends SharedGridListItemProps {
28
28
  ref: RefObject<HTMLElement>;
29
29
  }
30
30
  export interface UseGridListProps extends ReorderableProps {
31
- allowDuplicateSelectionEvents?: boolean;
32
- autoFocus?: boolean | FocusStrategy;
31
+ shouldAllowDuplicateSelectionEvents?: boolean;
32
+ hasAutoFocus?: boolean | FocusStrategy;
33
33
  children?: React.ReactNode;
34
34
  collection: Collection<Node<object>>;
35
35
  defaultSelectedKeys?: Iterable<Key> | 'all';
36
36
  disabledBehavior?: DisabledBehavior;
37
37
  disabledKeys?: Iterable<Key>;
38
- disallowEmptySelection?: boolean;
39
- disallowTypeAhead?: boolean;
38
+ shouldDisallowEmptySelection?: boolean;
39
+ shouldDisallowTypeAhead?: boolean;
40
40
  escapeKeyBehavior?: 'clearSelection' | 'none';
41
41
  filter?: (item: object, filterText: string) => boolean;
42
42
  getKey?: (item: object) => Key;
@@ -33,13 +33,13 @@ export interface ListBoxProps extends AriaListBoxOptions<object> {
33
33
  variant?: string;
34
34
  children?: CollectionChildren<object>;
35
35
  isCondensed?: boolean;
36
- showSelectedOption?: boolean;
36
+ shouldShowSelectedOption?: boolean;
37
37
  }
38
38
  export interface OptionType {
39
39
  item: ListBoxItemType;
40
40
  hasVirtualFocus?: boolean;
41
41
  isCondensed?: boolean;
42
- showSelectedOption?: boolean;
42
+ shouldShowSelectedOption?: boolean;
43
43
  }
44
44
  export interface OptionWithCheckboxType extends StyleProps {
45
45
  isSelected?: boolean;
@@ -12,7 +12,7 @@ export interface PopoverMenuProps {
12
12
  isDefaultOpen?: boolean;
13
13
  /** Whether the popover is prevented from closing when a selection is made. */
14
14
  isNotClosedOnSelect?: boolean;
15
- closeOnSelect?: boolean;
15
+ shouldCloseOnSelect?: boolean;
16
16
  /**
17
17
  * Whether the popover is prevented from flipping directions when insufficient space is
18
18
  * available for the given `direction` placement.
@@ -8,5 +8,5 @@ export interface ProgressBarProps extends TestingAttributes {
8
8
  value: number;
9
9
  minValue?: number;
10
10
  maxValue?: number;
11
- showValueLabel?: boolean;
11
+ shouldShowValueLabel?: boolean;
12
12
  }
@@ -45,7 +45,7 @@ export interface SliderActiveTrackProps {
45
45
  }
46
46
  export interface SliderFieldProps {
47
47
  activeTrackProps?: BoxProps;
48
- autoFocus?: boolean;
48
+ hasAutoFocus?: boolean;
49
49
  className?: string;
50
50
  defaultValue?: NumberOrNumberPair;
51
51
  displayValue?: string;
@@ -30,7 +30,7 @@ export interface TimeFieldProps extends StyleProps, DOMAttributes {
30
30
  /** Whether the input value is invalid. */
31
31
  isInvalid?: boolean;
32
32
  /** Whether the element should receive focus on render. */
33
- autoFocus?: boolean;
33
+ hasAutoFocus?: boolean;
34
34
  /** The current value (controlled). */
35
35
  value?: TimeValue | string | null;
36
36
  /** The default value (uncontrolled). */
@@ -48,7 +48,7 @@ export declare const FIGMA_LINKS: {
48
48
  unavailableDates: string;
49
49
  minimumDate: string;
50
50
  maximumDate: string;
51
- autofocus: string;
51
+ hasAutofocus: string;
52
52
  };
53
53
  callout: {
54
54
  default: string;
@@ -55,7 +55,7 @@ var FIGMA_LINKS = {
55
55
  unavailableDates: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=46454-15681&mode=design&t=PX1Q47IuuVvOafDQ-4',
56
56
  minimumDate: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=46454-16197&mode=design&t=PX1Q47IuuVvOafDQ-4',
57
57
  maximumDate: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=46454-16454&mode=design&t=PX1Q47IuuVvOafDQ-4',
58
- autofocus: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=46454-16768&mode=design&t=PX1Q47IuuVvOafDQ-4'
58
+ hasAutofocus: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=46454-16768&mode=design&t=PX1Q47IuuVvOafDQ-4'
59
59
  },
60
60
  callout: {
61
61
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=45647%3A506&mode=dev',
@@ -25,8 +25,8 @@ var MarkdownContainer = function MarkdownContainer(props) {
25
25
  stateIndex = _useContext.stateIndex,
26
26
  delay = _useContext.delay;
27
27
  var containerChildren = Children.toArray(children);
28
- var containsBlocks = checkContainsBlocks(containerChildren);
29
- if (containsBlocks) {
28
+ var hasBlocks = checkContainsBlocks(containerChildren);
29
+ if (hasBlocks) {
30
30
  return ___EmotionJSX(Box, others, _mapInstanceProperty(Children).call(Children, containerChildren, function (child, i) {
31
31
  return /*#__PURE__*/React.cloneElement(child, {
32
32
  animationIndex: i,
@@ -45,8 +45,10 @@ var IndeterminateCheckboxIcon = function IndeterminateCheckboxIcon(props) {
45
45
  }));
46
46
  };
47
47
  IndeterminateCheckboxIcon.propTypes = {
48
+ // TODO: [Astro 3.0.0] Remove this boolean in favor of the proper naming convention - isDisabled
48
49
  // eslint-disable-next-line react/boolean-prop-naming
49
- disabled: PropTypes.bool
50
+ disabled: PropTypes.bool,
51
+ isDisabled: PropTypes.bool
50
52
  };
51
53
 
52
54
  /**
@@ -65,14 +65,14 @@ var ComboBoxInput = /*#__PURE__*/forwardRef(function (props, ref) {
65
65
  loadingState: loadingState,
66
66
  inputValue: inputProps.value
67
67
  }),
68
- showLoading = _useInputLoader.showLoading;
68
+ isLoading = _useInputLoader.isLoading;
69
69
  usePropWarning(props, 'disabled', 'isDisabled');
70
70
  var button = !isReadOnly && ___EmotionJSX(Box, {
71
71
  isRow: true,
72
72
  variant: "forms.comboBox.inputInContainerSlot"
73
73
  },
74
74
  // Render loader after delay if filtering or loading
75
- showLoading && (isOpen || menuTrigger === 'manual' || loadingState === loadingStates.LOADING) && ___EmotionJSX(Loader, {
75
+ isLoading && (isOpen || menuTrigger === 'manual' || loadingState === loadingStates.LOADING) && ___EmotionJSX(Loader, {
76
76
  variant: "loader.withinInput"
77
77
  }), ___EmotionJSX(PressResponder, {
78
78
  preventFocusOnPress: true,
@@ -129,8 +129,8 @@ var DataTable = /*#__PURE__*/forwardRef(function (props, ref) {
129
129
  gridProps = _useTable.gridProps;
130
130
  var _useState3 = useState(false),
131
131
  _useState4 = _slicedToArray(_useState3, 2),
132
- headerMenuOpen = _useState4[0],
133
- setHeaderMenuOpen = _useState4[1];
132
+ isHeaderMenuOpen = _useState4[0],
133
+ setIsHeaderMenuOpen = _useState4[1];
134
134
 
135
135
  // This overrides collection view's renderWrapper to support DOM hierarchy.
136
136
  var renderWrapper = function renderWrapper(parent, reusableView, children, renderChildren) {
@@ -246,8 +246,8 @@ var DataTable = /*#__PURE__*/forwardRef(function (props, ref) {
246
246
  setIsInResizeMode: setIsInResizeMode,
247
247
  isEmpty: isEmpty,
248
248
  onFocusedResizer: onFocusedResizer,
249
- headerMenuOpen: headerMenuOpen,
250
- setHeaderMenuOpen: setHeaderMenuOpen
249
+ headerMenuOpen: isHeaderMenuOpen,
250
+ setHeaderMenuOpen: setIsHeaderMenuOpen
251
251
  }
252
252
  }, ___EmotionJSX(DataTableVirtualizer, _extends({}, mergedProps, {
253
253
  layout: layout,
@@ -476,7 +476,7 @@ Dynamic.parameters = {
476
476
  export var Sortable = function Sortable(args) {
477
477
  var _useState = useState(true),
478
478
  _useState2 = _slicedToArray(_useState, 2),
479
- firstSortFlag = _useState2[0],
479
+ hasFirstSortFlag = _useState2[0],
480
480
  setFirstSortFlag = _useState2[1];
481
481
  var columns = [{
482
482
  name: 'Country',
@@ -578,14 +578,14 @@ export var Sortable = function Sortable(args) {
578
578
  }
579
579
  });
580
580
  useEffect(function () {
581
- if (firstSortFlag && !list.isLoading && list.items.length > 0) {
581
+ if (hasFirstSortFlag && !list.isLoading && list.items.length > 0) {
582
582
  _sortInstanceProperty(list).call(list, {
583
583
  column: 'country',
584
584
  direction: 'ascending'
585
585
  });
586
586
  setFirstSortFlag(false);
587
587
  }
588
- }, [firstSortFlag, list, list.isLoading, list.items]);
588
+ }, [hasFirstSortFlag, list, list.isLoading, list.items]);
589
589
  return ___EmotionJSX(DataTable, _extends({}, args, {
590
590
  "aria-label": "Sortable table",
591
591
  sortDescriptor: list.sortDescriptor,
@@ -29,13 +29,13 @@ export var gridListArgTypes = {
29
29
  disable: true
30
30
  }
31
31
  },
32
- allowDuplicateSelectionEvents: {
32
+ shouldAllowDuplicateSelectionEvents: {
33
33
  description: 'Whether duplicate selection events are allowed.',
34
34
  control: {
35
35
  type: 'boolean'
36
36
  }
37
37
  },
38
- autoFocus: {
38
+ hasAutoFocus: {
39
39
  description: 'Whether the grid should automatically focus on mount.',
40
40
  control: {
41
41
  type: 'boolean'
@@ -60,13 +60,13 @@ export var gridListArgTypes = {
60
60
  options: ['all', 'selection']
61
61
  }
62
62
  },
63
- disallowEmptySelection: {
63
+ shouldDisallowEmptySelection: {
64
64
  description: 'Whether empty selection is disallowed.',
65
65
  control: {
66
66
  type: 'boolean'
67
67
  }
68
68
  },
69
- disallowTypeAhead: {
69
+ shouldDisallowTypeAhead: {
70
70
  description: 'Whether type-ahead functionality is disabled.',
71
71
  control: {
72
72
  type: 'boolean'
@@ -15,7 +15,7 @@ var IconButtonToggle = /*#__PURE__*/forwardRef(function (props, ref) {
15
15
  var conditionalRenderProps = {
16
16
  ComponentToRenderIfTrue: toggledIcon,
17
17
  ComponentToRenderIfFalse: defaultIcon,
18
- condition: isToggled,
18
+ isToggled: isToggled,
19
19
  onConditionChange: onToggle
20
20
  };
21
21
  var _useComponentToggle = useComponentToggle(conditionalRenderProps),
@@ -30,8 +30,8 @@ var Image = /*#__PURE__*/forwardRef(function (props, ref) {
30
30
  setIsLoading = _useState2[1];
31
31
  var _useState3 = useState(false),
32
32
  _useState4 = _slicedToArray(_useState3, 2),
33
- loadedSuccessfully = _useState4[0],
34
- setLoadedSuccessfully = _useState4[1];
33
+ isLoadedSuccessfully = _useState4[0],
34
+ setIsLoadedSuccessfully = _useState4[1];
35
35
  var _useState5 = useState(false),
36
36
  _useState6 = _slicedToArray(_useState5, 2),
37
37
  shouldShowFallback = _useState6[0],
@@ -43,7 +43,7 @@ var Image = /*#__PURE__*/forwardRef(function (props, ref) {
43
43
  setIsLoading(newState);
44
44
  isLoadingRef.current = newState;
45
45
  };
46
- var shouldUseFallbackProps = !loadedSuccessfully && !(isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) || shouldShowFallback;
46
+ var shouldUseFallbackProps = !isLoadedSuccessfully && !(isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) || shouldShowFallback;
47
47
  var setImgAttribute = function setImgAttribute(attribute, fallbackAttribute) {
48
48
  return shouldUseFallbackProps ? fallbackAttribute : attribute;
49
49
  };
@@ -76,7 +76,7 @@ var Image = /*#__PURE__*/forwardRef(function (props, ref) {
76
76
  var onImageLoad = function onImageLoad() {
77
77
  if (isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) {
78
78
  setIsLoadingWithRef(false);
79
- setLoadedSuccessfully(true);
79
+ setIsLoadedSuccessfully(true);
80
80
  }
81
81
  };
82
82
  var onImageError = function onImageError() {
@@ -121,7 +121,7 @@ var Image = /*#__PURE__*/forwardRef(function (props, ref) {
121
121
  sx: sx,
122
122
  "aria-live": "polite"
123
123
  }, others, hoverProps));
124
- if (isLoading || !loadedSuccessfully && !fallbackImage) {
124
+ if (isLoading || !isLoadedSuccessfully && !fallbackImage) {
125
125
  return ___EmotionJSX(Skeleton, null);
126
126
  }
127
127
  return themeUiImage;