@pingux/astro 2.143.0 → 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
@@ -38,8 +38,8 @@ var MarkdownContainer = function MarkdownContainer(props) {
38
38
  stateIndex = _useContext.stateIndex,
39
39
  delay = _useContext.delay;
40
40
  var containerChildren = _react.Children.toArray(children);
41
- var containsBlocks = checkContainsBlocks(containerChildren);
42
- if (containsBlocks) {
41
+ var hasBlocks = checkContainsBlocks(containerChildren);
42
+ if (hasBlocks) {
43
43
  return (0, _react2.jsx)(_Box["default"], others, (0, _map["default"])(_react.Children).call(_react.Children, containerChildren, function (child, i) {
44
44
  return /*#__PURE__*/_react["default"].cloneElement(child, {
45
45
  animationIndex: i,
@@ -56,8 +56,10 @@ var IndeterminateCheckboxIcon = function IndeterminateCheckboxIcon(props) {
56
56
  }));
57
57
  };
58
58
  IndeterminateCheckboxIcon.propTypes = {
59
+ // TODO: [Astro 3.0.0] Remove this boolean in favor of the proper naming convention - isDisabled
59
60
  // eslint-disable-next-line react/boolean-prop-naming
60
- disabled: _propTypes["default"].bool
61
+ disabled: _propTypes["default"].bool,
62
+ isDisabled: _propTypes["default"].bool
61
63
  };
62
64
 
63
65
  /**
@@ -76,14 +76,14 @@ var ComboBoxInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
76
76
  loadingState: loadingState,
77
77
  inputValue: inputProps.value
78
78
  }),
79
- showLoading = _useInputLoader.showLoading;
79
+ isLoading = _useInputLoader.isLoading;
80
80
  (0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
81
81
  var button = !isReadOnly && (0, _react2.jsx)(_.Box, {
82
82
  isRow: true,
83
83
  variant: "forms.comboBox.inputInContainerSlot"
84
84
  },
85
85
  // Render loader after delay if filtering or loading
86
- showLoading && (isOpen || menuTrigger === 'manual' || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
86
+ isLoading && (isOpen || menuTrigger === 'manual' || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
87
87
  variant: "loader.withinInput"
88
88
  }), (0, _react2.jsx)(_interactions.PressResponder, {
89
89
  preventFocusOnPress: true,
@@ -140,8 +140,8 @@ var DataTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
140
140
  gridProps = _useTable.gridProps;
141
141
  var _useState3 = (0, _react.useState)(false),
142
142
  _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
143
- headerMenuOpen = _useState4[0],
144
- setHeaderMenuOpen = _useState4[1];
143
+ isHeaderMenuOpen = _useState4[0],
144
+ setIsHeaderMenuOpen = _useState4[1];
145
145
 
146
146
  // This overrides collection view's renderWrapper to support DOM hierarchy.
147
147
  var renderWrapper = function renderWrapper(parent, reusableView, children, renderChildren) {
@@ -257,8 +257,8 @@ var DataTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
257
257
  setIsInResizeMode: setIsInResizeMode,
258
258
  isEmpty: isEmpty,
259
259
  onFocusedResizer: onFocusedResizer,
260
- headerMenuOpen: headerMenuOpen,
261
- setHeaderMenuOpen: setHeaderMenuOpen
260
+ headerMenuOpen: isHeaderMenuOpen,
261
+ setHeaderMenuOpen: setIsHeaderMenuOpen
262
262
  }
263
263
  }, (0, _react2.jsx)(_DataTableVirtualizer["default"], (0, _extends2["default"])({}, mergedProps, {
264
264
  layout: layout,
@@ -491,7 +491,7 @@ Dynamic.parameters = {
491
491
  var Sortable = function Sortable(args) {
492
492
  var _useState = (0, _react.useState)(true),
493
493
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
494
- firstSortFlag = _useState2[0],
494
+ hasFirstSortFlag = _useState2[0],
495
495
  setFirstSortFlag = _useState2[1];
496
496
  var columns = [{
497
497
  name: 'Country',
@@ -593,14 +593,14 @@ var Sortable = function Sortable(args) {
593
593
  }
594
594
  });
595
595
  (0, _react.useEffect)(function () {
596
- if (firstSortFlag && !list.isLoading && list.items.length > 0) {
596
+ if (hasFirstSortFlag && !list.isLoading && list.items.length > 0) {
597
597
  (0, _sort["default"])(list).call(list, {
598
598
  column: 'country',
599
599
  direction: 'ascending'
600
600
  });
601
601
  setFirstSortFlag(false);
602
602
  }
603
- }, [firstSortFlag, list, list.isLoading, list.items]);
603
+ }, [hasFirstSortFlag, list, list.isLoading, list.items]);
604
604
  return (0, _react2.jsx)(_index.DataTable, (0, _extends2["default"])({}, args, {
605
605
  "aria-label": "Sortable table",
606
606
  sortDescriptor: list.sortDescriptor,
@@ -44,13 +44,13 @@ declare const _default: {
44
44
  disable: boolean;
45
45
  };
46
46
  };
47
- allowDuplicateSelectionEvents: {
47
+ shouldAllowDuplicateSelectionEvents: {
48
48
  description: string;
49
49
  control: {
50
50
  type: string;
51
51
  };
52
52
  };
53
- autoFocus: {
53
+ hasAutoFocus: {
54
54
  description: string;
55
55
  control: {
56
56
  type: string;
@@ -75,13 +75,13 @@ declare const _default: {
75
75
  options: string[];
76
76
  };
77
77
  };
78
- disallowEmptySelection: {
78
+ shouldDisallowEmptySelection: {
79
79
  description: string;
80
80
  control: {
81
81
  type: string;
82
82
  };
83
83
  };
84
- disallowTypeAhead: {
84
+ shouldDisallowTypeAhead: {
85
85
  description: string;
86
86
  control: {
87
87
  type: string;
@@ -29,13 +29,13 @@ export declare const gridListArgTypes: {
29
29
  disable: boolean;
30
30
  };
31
31
  };
32
- allowDuplicateSelectionEvents: {
32
+ shouldAllowDuplicateSelectionEvents: {
33
33
  description: string;
34
34
  control: {
35
35
  type: string;
36
36
  };
37
37
  };
38
- autoFocus: {
38
+ hasAutoFocus: {
39
39
  description: string;
40
40
  control: {
41
41
  type: string;
@@ -60,13 +60,13 @@ export declare const gridListArgTypes: {
60
60
  options: string[];
61
61
  };
62
62
  };
63
- disallowEmptySelection: {
63
+ shouldDisallowEmptySelection: {
64
64
  description: string;
65
65
  control: {
66
66
  type: string;
67
67
  };
68
68
  };
69
- disallowTypeAhead: {
69
+ shouldDisallowTypeAhead: {
70
70
  description: string;
71
71
  control: {
72
72
  type: string;
@@ -36,13 +36,13 @@ var gridListArgTypes = {
36
36
  disable: true
37
37
  }
38
38
  },
39
- allowDuplicateSelectionEvents: {
39
+ shouldAllowDuplicateSelectionEvents: {
40
40
  description: 'Whether duplicate selection events are allowed.',
41
41
  control: {
42
42
  type: 'boolean'
43
43
  }
44
44
  },
45
- autoFocus: {
45
+ hasAutoFocus: {
46
46
  description: 'Whether the grid should automatically focus on mount.',
47
47
  control: {
48
48
  type: 'boolean'
@@ -67,13 +67,13 @@ var gridListArgTypes = {
67
67
  options: ['all', 'selection']
68
68
  }
69
69
  },
70
- disallowEmptySelection: {
70
+ shouldDisallowEmptySelection: {
71
71
  description: 'Whether empty selection is disallowed.',
72
72
  control: {
73
73
  type: 'boolean'
74
74
  }
75
75
  },
76
- disallowTypeAhead: {
76
+ shouldDisallowTypeAhead: {
77
77
  description: 'Whether type-ahead functionality is disabled.',
78
78
  control: {
79
79
  type: 'boolean'
@@ -28,7 +28,7 @@ var IconButtonToggle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
28
28
  var conditionalRenderProps = {
29
29
  ComponentToRenderIfTrue: toggledIcon,
30
30
  ComponentToRenderIfFalse: defaultIcon,
31
- condition: isToggled,
31
+ isToggled: isToggled,
32
32
  onConditionChange: onToggle
33
33
  };
34
34
  var _useComponentToggle = (0, _hooks.useComponentToggle)(conditionalRenderProps),
@@ -42,8 +42,8 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
42
42
  setIsLoading = _useState2[1];
43
43
  var _useState3 = (0, _react.useState)(false),
44
44
  _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
45
- loadedSuccessfully = _useState4[0],
46
- setLoadedSuccessfully = _useState4[1];
45
+ isLoadedSuccessfully = _useState4[0],
46
+ setIsLoadedSuccessfully = _useState4[1];
47
47
  var _useState5 = (0, _react.useState)(false),
48
48
  _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
49
49
  shouldShowFallback = _useState6[0],
@@ -55,7 +55,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
55
55
  setIsLoading(newState);
56
56
  isLoadingRef.current = newState;
57
57
  };
58
- var shouldUseFallbackProps = !loadedSuccessfully && !(isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) || shouldShowFallback;
58
+ var shouldUseFallbackProps = !isLoadedSuccessfully && !(isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) || shouldShowFallback;
59
59
  var setImgAttribute = function setImgAttribute(attribute, fallbackAttribute) {
60
60
  return shouldUseFallbackProps ? fallbackAttribute : attribute;
61
61
  };
@@ -88,7 +88,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
88
88
  var onImageLoad = function onImageLoad() {
89
89
  if (isLoadingRef !== null && isLoadingRef !== void 0 && isLoadingRef.current) {
90
90
  setIsLoadingWithRef(false);
91
- setLoadedSuccessfully(true);
91
+ setIsLoadedSuccessfully(true);
92
92
  }
93
93
  };
94
94
  var onImageError = function onImageError() {
@@ -133,7 +133,7 @@ var Image = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
133
133
  sx: sx,
134
134
  "aria-live": "polite"
135
135
  }, others, hoverProps));
136
- if (isLoading || !loadedSuccessfully && !fallbackImage) {
136
+ if (isLoading || !isLoadedSuccessfully && !fallbackImage) {
137
137
  return (0, _react2.jsx)(Skeleton, null);
138
138
  }
139
139
  return themeUiImage;
@@ -36,7 +36,7 @@ var _index = require("./index");
36
36
  var _ListBoxContext = require("./ListBoxContext");
37
37
  var _ListBoxSection = _interopRequireDefault(require("./ListBoxSection"));
38
38
  var _react2 = require("@emotion/react");
39
- var _excluded = ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isCondensed", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "loadingState", "onLoadMore", "onLoadPrev", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details", "showSelectedOption"];
39
+ var _excluded = ["defaultSelectedKeys", "disabledKeys", "hasAutoFocus", "hasFocusWrap", "hasNoEmptySelection", "hasVirtualFocus", "id", "isCondensed", "isLoading", "isFocusedOnHover", "isSelectedOnPressUp", "isVirtualized", "items", "keyboardDelegate", "label", "loadingState", "onLoadMore", "onLoadPrev", "onScroll", "onSelectionChange", "renderEmptyState", "selectedKeys", "selectionMode", "state", "aria-label", "aria-labelledby", "aria-describedby", "aria-details", "shouldShowSelectedOption"];
40
40
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
41
  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; }
42
42
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -96,7 +96,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
96
96
  ariaLabelledby = props['aria-labelledby'],
97
97
  ariaDescribedby = props['aria-describedby'],
98
98
  ariaDetails = props['aria-details'],
99
- showSelectedOption = props.showSelectedOption,
99
+ shouldShowSelectedOption = props.shouldShowSelectedOption,
100
100
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
101
101
 
102
102
  // Object matching React Aria API with all options
@@ -198,7 +198,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
198
198
  item: item,
199
199
  hasVirtualFocus: hasVirtualFocus,
200
200
  isCondensed: isCondensed,
201
- showSelectedOption: showSelectedOption
201
+ shouldShowSelectedOption: shouldShowSelectedOption
202
202
  });
203
203
  }
204
204
  if (type === collectionTypes.LOADER) {
@@ -28,7 +28,7 @@ var _Box = _interopRequireDefault(require("../Box"));
28
28
  var _Icon = _interopRequireDefault(require("../Icon"));
29
29
  var _ListBoxContext = require("./ListBoxContext");
30
30
  var _react2 = require("@emotion/react");
31
- var _excluded = ["item", "hasVirtualFocus", "isCondensed", "showSelectedOption"],
31
+ var _excluded = ["item", "hasVirtualFocus", "isCondensed", "shouldShowSelectedOption"],
32
32
  _excluded2 = ["onPressStart", "onPressUp"];
33
33
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
34
34
  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; }
@@ -67,7 +67,7 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
67
67
  var item = props.item,
68
68
  hasVirtualFocus = props.hasVirtualFocus,
69
69
  isCondensed = props.isCondensed,
70
- showSelectedOption = props.showSelectedOption,
70
+ shouldShowSelectedOption = props.shouldShowSelectedOption,
71
71
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
72
72
  var key = item.key,
73
73
  itemProps = item.props,
@@ -95,9 +95,9 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
95
95
  isFocused = _useOption.isFocused,
96
96
  isFocusVisible = _useOption.isFocusVisible,
97
97
  isPressed = _useOption.isPressed;
98
- var focused = isFocused || (state === null || state === void 0 || (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
98
+ var hasFocus = isFocused || (state === null || state === void 0 || (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
99
99
  var setFocusOnHover = function setFocusOnHover() {
100
- if (!focused && !isCondensed) {
100
+ if (!hasFocus && !isCondensed) {
101
101
  state.selectionManager.setFocusedKey(item.key);
102
102
  }
103
103
  };
@@ -105,8 +105,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
105
105
  isOnyx = _useGetTheme.themeState.isOnyx;
106
106
  var _useStatusClasses = (0, _hooks.useStatusClasses)(null, {
107
107
  isDisabled: isDisabled || isSeparator,
108
- isFocused: focused,
109
- isSelected: showSelectedOption ? isSelected : false,
108
+ isFocused: hasFocus,
109
+ isSelected: shouldShowSelectedOption ? isSelected : false,
110
110
  isCondensed: isCondensed,
111
111
  isFocusVisible: isFocusVisible,
112
112
  isPressed: isPressed
@@ -143,12 +143,12 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
143
143
  mr: "xs",
144
144
  className: classNames,
145
145
  variant: "listBox.checkboxIcon"
146
- }) : isSelected && !isOnyx && showSelectedOption && (0, _react2.jsx)(_Icon["default"], {
146
+ }) : isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
147
147
  icon: _CircleSmallIcon["default"],
148
148
  title: {
149
149
  name: 'Circle Small Icon'
150
150
  }
151
- }), rendered, isSelected && isOnyx && showSelectedOption && (0, _react2.jsx)(_Icon["default"], {
151
+ }), rendered, isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
152
152
  icon: _CheckIcon["default"],
153
153
  title: {
154
154
  name: 'Check Icon'
@@ -157,7 +157,7 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
157
157
  }));
158
158
  });
159
159
  Option.defaultProps = {
160
- showSelectedOption: true
160
+ shouldShowSelectedOption: true
161
161
  };
162
162
  var _default = Option;
163
163
  exports["default"] = _default;
@@ -29,14 +29,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
29
29
  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; }
30
30
  var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
31
31
  var item = props.item,
32
- propIsDisabled = props.isDisabled,
32
+ isPropDisabled = props.isDisabled,
33
33
  isFocusVisible = props.isFocusVisible,
34
34
  isNotFocusedOnHover = props.isNotFocusedOnHover,
35
35
  className = props.className,
36
36
  state = props.state;
37
37
  var _useMenuContext = (0, _MenuContext.useMenuContext)(),
38
38
  onClose = _useMenuContext.onClose,
39
- closeOnSelect = _useMenuContext.closeOnSelect;
39
+ shouldCloseOnSelect = _useMenuContext.shouldCloseOnSelect;
40
40
  var _ref = item,
41
41
  key = _ref.key,
42
42
  rendered = _ref.rendered,
@@ -45,7 +45,7 @@ var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
45
45
  propIsPressed = itemProps.isPressed,
46
46
  dataId = itemProps['data-id'],
47
47
  others = (0, _objectWithoutProperties2["default"])(itemProps, _excluded);
48
- var isDisabled = propIsDisabled || state.disabledKeys.has(key);
48
+ var isDisabled = isPropDisabled || state.disabledKeys.has(key);
49
49
  var isSelected = state.selectionManager.isSelected(key);
50
50
  (0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
51
51
  var menuItemRef = (0, _hooks.useLocalOrForwardRef)(ref);
@@ -55,7 +55,7 @@ var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
55
55
  isDisabled: isDisabled,
56
56
  isSelected: isSelected,
57
57
  onClose: onClose,
58
- closeOnSelect: closeOnSelect
58
+ closeOnSelect: shouldCloseOnSelect
59
59
  }, state, menuItemRef),
60
60
  menuItemProps = _useMenuItem.menuItemProps;
61
61
  var _useState = (0, _react.useState)(false),
@@ -122,7 +122,7 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
122
122
  loadingState: loadingState,
123
123
  inputValue: filterString
124
124
  }),
125
- showLoading = _useInputLoader.showLoading;
125
+ isLoading = _useInputLoader.isLoading;
126
126
  (0, _react.useEffect)(function () {
127
127
  setInitialItems((0, _from["default"])(items));
128
128
  }, []);
@@ -391,7 +391,7 @@ var CondensedMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (pr
391
391
  variant: "forms.comboBox.inputInContainerSlot"
392
392
  },
393
393
  // Render loader after delay if filtering or loading
394
- showLoading && (isOpen || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
394
+ isLoading && (isOpen || loadingState === _loadingStates["default"].LOADING) && (0, _react2.jsx)(_.Loader, {
395
395
  variant: "loader.withinInput"
396
396
  }), (0, _react2.jsx)(_.Box, {
397
397
  as: "button",
@@ -159,7 +159,7 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
159
159
  loadingState: loadingState,
160
160
  inputValue: filterString
161
161
  }),
162
- showLoading = _useInputLoader.showLoading;
162
+ isLoading = _useInputLoader.isLoading;
163
163
  var closeBadgeRefs = (0, _react.useRef)([]);
164
164
  var inputWrapperRef = (0, _react.useRef)();
165
165
  var inputRef = (0, _react.useRef)();
@@ -518,7 +518,7 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
518
518
  variant: "forms.comboBox.inputInContainerSlot"
519
519
  },
520
520
  // Render loader after delay if filtering or loading
521
- showLoading && loadingState === _loadingStates["default"].LOADING && (0, _react2.jsx)(_.Loader, {
521
+ isLoading && loadingState === _loadingStates["default"].LOADING && (0, _react2.jsx)(_.Loader, {
522
522
  variant: "loader.withinInput"
523
523
  }));
524
524
  return (0, _react2.jsx)(_MultivaluesContext.MultivaluesContext.Provider, {
@@ -51,22 +51,22 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
51
51
  var array = (item === null || item === void 0 ? void 0 : item.children) && (0, _map["default"])(_context = item.children).call(_context, function (i) {
52
52
  return i.key;
53
53
  });
54
- var childSelected = array && (0, _includes["default"])(array).call(array, navBarState.selectedKey);
54
+ var isChildSelected = array && (0, _includes["default"])(array).call(array, navBarState.selectedKey);
55
55
  (0, _react.useEffect)(function () {
56
- if (childSelected && isExpanded === false) {
56
+ if (isChildSelected && isExpanded === false) {
57
57
  var _context2;
58
58
  setExpandedKeys((0, _concat["default"])(_context2 = []).call(_context2, expandedKeys, [key]));
59
59
  }
60
60
  }, [selectedKey]);
61
61
  var _useStatusClasses = (0, _hooks.useStatusClasses)(className, {
62
- isSelected: childSelected && !isExpanded
62
+ isSelected: isChildSelected && !isExpanded
63
63
  }),
64
64
  classNames = _useStatusClasses.classNames;
65
65
  var getIconColor = function getIconColor() {
66
66
  if (navStyles.navBarItemHeader === 'navBar.popUpItemHeaderContainer') {
67
- return childSelected && !isExpanded ? 'white' : 'text.primary';
67
+ return isChildSelected && !isExpanded ? 'white' : 'text.primary';
68
68
  }
69
- return childSelected && !isExpanded ? 'white' : 'neutral.95';
69
+ return isChildSelected && !isExpanded ? 'white' : 'neutral.95';
70
70
  };
71
71
  return (0, _react2.jsx)(_index.Box, {
72
72
  variant: navStyles.navBarItemHeader,
@@ -43,23 +43,23 @@ var NavSideBarSectionHeader = function NavSideBarSectionHeader(props) {
43
43
  navStyles = navBarState.navStyles,
44
44
  selectedKey = navBarState.selectedKey;
45
45
  var isExpanded = (0, _includes["default"])(expandedKeys).call(expandedKeys, id);
46
- var childSelected = (0, _isArray["default"])(items) && (0, _includes["default"])(_context = (0, _map["default"])(items).call(items, function (i) {
46
+ var isChildSelected = (0, _isArray["default"])(items) && (0, _includes["default"])(_context = (0, _map["default"])(items).call(items, function (i) {
47
47
  return i.key;
48
48
  })).call(_context, selectedKey);
49
49
  (0, _react.useEffect)(function () {
50
- if (childSelected && isExpanded === false) {
50
+ if (isChildSelected && isExpanded === false) {
51
51
  var _context2;
52
52
  setExpandedKeys((0, _concat["default"])(_context2 = []).call(_context2, expandedKeys, [id]));
53
53
  }
54
54
  }, []);
55
55
  var _useStatusClasses = (0, _hooks.useStatusClasses)(className, {
56
- isSelected: childSelected && !isExpanded
56
+ isSelected: isChildSelected && !isExpanded
57
57
  }),
58
58
  classNames = _useStatusClasses.classNames;
59
- var variant = childSelected && !isExpanded ? navStyles.navBarItemIcon : navStyles.navBarItemIconSelected;
59
+ var variant = isChildSelected && !isExpanded ? navStyles.navBarItemIcon : navStyles.navBarItemIconSelected;
60
60
  var handleButtonPress = function handleButtonPress() {
61
61
  onExpandedChange(!isExpanded);
62
- if (childSelected && isExpanded === false) {
62
+ if (isChildSelected && isExpanded === false) {
63
63
  var _context3;
64
64
  setExpandedKeys((0, _concat["default"])(_context3 = []).call(_context3, expandedKeys, [id]));
65
65
  }
@@ -77,7 +77,7 @@ var PopoverMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
77
77
  ref: menuRef,
78
78
  onClose: state.close,
79
79
  // Our API preference is for default false so we invert this since it should be default true
80
- closeOnSelect: !isNotClosedOnSelect,
80
+ shouldCloseOnSelect: !isNotClosedOnSelect,
81
81
  autoFocus: state.focusStrategy || true
82
82
  });
83
83
  var contents = (0, _react2.jsx)(_reactAria.FocusScope, {
@@ -33,8 +33,8 @@ exports.calculateBarWidth = calculateBarWidth;
33
33
  var ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
34
34
  var _props$label = props.label,
35
35
  label = _props$label === void 0 ? '' : _props$label,
36
- _props$showValueLabel = props.showValueLabel,
37
- showValueLabel = _props$showValueLabel === void 0 ? true : _props$showValueLabel,
36
+ _props$shouldShowValu = props.shouldShowValueLabel,
37
+ shouldShowValueLabel = _props$shouldShowValu === void 0 ? true : _props$shouldShowValu,
38
38
  value = props.value,
39
39
  _props$minValue = props.minValue,
40
40
  minValue = _props$minValue === void 0 ? 0 : _props$minValue,
@@ -58,7 +58,7 @@ var ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
58
58
  }, label && (0, _react2.jsx)(_.Text, (0, _extends2["default"])({
59
59
  fontSize: "xs",
60
60
  fontWeight: "3"
61
- }, labelProps), label), showValueLabel && (0, _react2.jsx)(_.Text, {
61
+ }, labelProps), label), shouldShowValueLabel && (0, _react2.jsx)(_.Text, {
62
62
  fontSize: "xs",
63
63
  fontWeight: "3"
64
64
  }, progressBarProps['aria-valuetext'])), (0, _react2.jsx)(_.Box, {
@@ -38,7 +38,7 @@ var _default = {
38
38
  disable: true
39
39
  }
40
40
  },
41
- showValueLabel: {
41
+ shouldShowValueLabel: {
42
42
  table: {
43
43
  disable: true
44
44
  }
@@ -66,10 +66,10 @@ test('renders value as custom valueLabel instead of percentage', function () {
66
66
  expect(value).not.toBeInTheDocument();
67
67
  expect(valueLabel).toBeInTheDocument();
68
68
  });
69
- test('does not render value when showValueLabel is false', function () {
69
+ test('does not render value when shouldShowValueLabel is false', function () {
70
70
  getComponent({
71
71
  value: 25,
72
- showValueLabel: false
72
+ shouldShowValueLabel: false
73
73
  });
74
74
  var valueLabel = _react2.screen.queryByText('25%');
75
75
  expect(valueLabel).not.toBeInTheDocument();
@@ -45,14 +45,14 @@ var RadioField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
45
45
  controlProps = props.controlProps,
46
46
  hasAutoFocus = props.hasAutoFocus,
47
47
  helperText = props.helperText,
48
- radioDisabled = props.isDisabled,
48
+ isRadioDisabled = props.isDisabled,
49
49
  label = props.label,
50
50
  status = props.status;
51
51
  (0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
52
52
  var radioFieldRef = (0, _hooks.useLocalOrForwardRef)(ref);
53
53
  var state = (0, _react.useContext)(RadioContext);
54
- var groupDisabled = state.isDisabled;
55
- var isDisabled = radioDisabled || groupDisabled;
54
+ var isGroupDisabled = state.isDisabled;
55
+ var isDisabled = isRadioDisabled || isGroupDisabled;
56
56
  var _useRadio = (0, _reactAria.useRadio)(_objectSpread(_objectSpread({
57
57
  children: label,
58
58
  autoFocus: hasAutoFocus
@@ -55,12 +55,12 @@ var RockerButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
55
55
  }), state, rockerButtonRef),
56
56
  rockerButtonProps = _useToggleButtonGroup.buttonProps,
57
57
  isSelected = _useToggleButtonGroup.isSelected,
58
- raIsDisabled = _useToggleButtonGroup.isDisabled,
58
+ isRaDisabled = _useToggleButtonGroup.isDisabled,
59
59
  isPressed = _useToggleButtonGroup.isPressed;
60
60
  var _useStatusClasses = (0, _hooks.useStatusClasses)(className, {
61
61
  isHovered: isHovered,
62
62
  isPressed: isPressed,
63
- isDisabled: raIsDisabled,
63
+ isDisabled: isRaDisabled,
64
64
  isSelected: isSelected
65
65
  }),
66
66
  classNames = _useStatusClasses.classNames;
@@ -162,7 +162,7 @@ var SearchAutoComplete = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
162
162
  state: comboBoxState,
163
163
  isFocusedOnHover: shouldFocusOnHover,
164
164
  isSelectedOnPressUp: shouldSelectOnPressUp,
165
- showSelectedOption: false
165
+ shouldShowSelectedOption: false
166
166
  }, otherListBoxProps)))));
167
167
  });
168
168
  exports.SearchAutoComplete = SearchAutoComplete;
@@ -416,8 +416,8 @@ var AsyncLoading = function AsyncLoading() {
416
416
  setDataSize = _useState10[1];
417
417
  var _useState11 = (0, _react.useState)(true),
418
418
  _useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
419
- loading = _useState12[0],
420
- setLoading = _useState12[1];
419
+ isLoading = _useState12[0],
420
+ setIsLoading = _useState12[1];
421
421
  var fetchData = (0, _react.useCallback)( /*#__PURE__*/function () {
422
422
  var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(currentLimit) {
423
423
  var response, json;
@@ -437,14 +437,14 @@ var AsyncLoading = function AsyncLoading() {
437
437
  setData(json.body._embedded.users || []);
438
438
  setDataSize(json.body.count);
439
439
  }
440
- setLoading(false);
440
+ setIsLoading(false);
441
441
  _context3.next = 15;
442
442
  break;
443
443
  case 11:
444
444
  _context3.prev = 11;
445
445
  _context3.t0 = _context3["catch"](0);
446
446
  console.error('Fetch error:', _context3.t0);
447
- setLoading(false);
447
+ setIsLoading(false);
448
448
  case 15:
449
449
  case "end":
450
450
  return _context3.stop();
@@ -457,7 +457,7 @@ var AsyncLoading = function AsyncLoading() {
457
457
  }(), []);
458
458
  var handleLoadMore = function handleLoadMore() {
459
459
  if (limit >= dataSize) return;
460
- setLoading(true);
460
+ setIsLoading(true);
461
461
  setLimit(function (prevLimit) {
462
462
  return prevLimit + _constants.LIMIT;
463
463
  });
@@ -468,7 +468,7 @@ var AsyncLoading = function AsyncLoading() {
468
468
  return (0, _react2.jsx)(_reactAria.OverlayProvider, null, (0, _react2.jsx)(_index.SelectField, {
469
469
  label: "Pick a User",
470
470
  items: data,
471
- isLoading: loading,
471
+ isLoading: isLoading,
472
472
  onLoadMore: handleLoadMore
473
473
  }, function (item) {
474
474
  var user = item;
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
  var CollectionTab = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
32
32
  var className = props.className,
33
33
  item = props.item,
34
- tabsDisabled = props.isDisabled,
34
+ isTabsDisabled = props.isDisabled,
35
35
  isRequired = props.isRequired,
36
36
  orientation = props.orientation,
37
37
  mode = props.mode,
@@ -40,7 +40,7 @@ var CollectionTab = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
40
40
  rendered = item.rendered,
41
41
  itemProps = item.props;
42
42
  var state = (0, _react.useContext)(_Tabs.TabsContext);
43
- var isDisabled = tabsDisabled || (itemProps === null || itemProps === void 0 ? void 0 : itemProps.isDisabled) || state.disabledKeys.has(key);
43
+ var isDisabled = isTabsDisabled || (itemProps === null || itemProps === void 0 ? void 0 : itemProps.isDisabled) || state.disabledKeys.has(key);
44
44
  var isSelected = state.selectedKey === key;
45
45
  var _useFocusRing = (0, _reactAria.useFocusRing)(),
46
46
  isFocusVisible = _useFocusRing.isFocusVisible,