@ntbjs/react-components 1.1.0-beta.7 → 1.1.0-beta.70

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 (61) hide show
  1. package/{ActionButton-90485300.js → ActionButton-c3f5ed94.js} +1 -1
  2. package/Alert-3e4f8be1.js +62 -0
  3. package/{AssetGallery-d5394d69.js → AssetGallery-7022d0a2.js} +27 -52
  4. package/{AssetPreviewTopBar-777c726a.js → AssetPreviewTopBar-449e6019.js} +5 -3
  5. package/{Badge-34ad2850.js → Badge-9bcebe96.js} +1 -1
  6. package/{Button-01371eb4.js → Button-f893df21.js} +3 -3
  7. package/{Checkbox-50f1f3c7.js → Checkbox-012bbd3f.js} +3 -3
  8. package/{AutocompleteSelect-e2063407.js → CompactAutocompleteSelect-05c45f9a.js} +101 -45
  9. package/{CompactStarRating-f9997240.js → CompactStarRating-53593d92.js} +93 -34
  10. package/{CompactTextInput-8c9b061b.js → CompactTextInput-b4215024.js} +94 -31
  11. package/{ContextMenu-a68d4f28.js → ContextMenu-d088833b.js} +2 -2
  12. package/{InputGroup-66dd343c.js → InputGroup-09ce9572.js} +1 -1
  13. package/Instructions-9e74b7a6.js +226 -0
  14. package/{MultiSelect-8b427b56.js → MultiSelect-5b008b32.js} +62 -46
  15. package/{Popover-616682bf.js → Popover-cf1e9677.js} +8 -13
  16. package/{Radio-0b46b2a8.js → Radio-0594409d.js} +1 -1
  17. package/{SectionSeparator-12aff748.js → SectionSeparator-225719cd.js} +1 -1
  18. package/{Switch-aa384260.js → Switch-cd165c8c.js} +1 -1
  19. package/{Tab-fc380f0b.js → Tab-bd0f3345.js} +11 -6
  20. package/{Tabs-d6f0aaf5.js → Tabs-cfc35dc0.js} +49 -11
  21. package/TextArea-0cbd6626.js +322 -0
  22. package/{TextInput-e4c6d536.js → TextInput-c656bf03.js} +3 -40
  23. package/{Tooltip-860530ff.js → Tooltip-f4f9ab8f.js} +16 -11
  24. package/check-circle-filled-1640873e.js +42 -0
  25. package/data/Alert/index.js +10 -0
  26. package/data/Badge/index.js +2 -2
  27. package/data/Popover/index.js +3 -2
  28. package/data/Tab/index.js +2 -2
  29. package/data/Tabs/index.js +3 -3
  30. package/data/Tooltip/index.js +12 -0
  31. package/data/index.js +11 -8
  32. package/{defaultTheme-870f7df1.js → defaultTheme-50f2b88f.js} +17 -0
  33. package/inputs/ActionButton/index.js +2 -2
  34. package/inputs/Button/index.js +5 -4
  35. package/inputs/Checkbox/index.js +2 -2
  36. package/inputs/CompactAutocompleteSelect/index.js +19 -0
  37. package/inputs/CompactStarRating/index.js +3 -2
  38. package/inputs/CompactTextInput/index.js +10 -7
  39. package/inputs/MultiSelect/index.js +4 -3
  40. package/inputs/Radio/index.js +2 -2
  41. package/inputs/Switch/index.js +2 -2
  42. package/inputs/TextArea/index.js +4 -2
  43. package/inputs/TextInput/index.js +3 -2
  44. package/inputs/index.js +28 -24
  45. package/layout/InputGroup/index.js +2 -2
  46. package/layout/SectionSeparator/index.js +2 -2
  47. package/layout/index.js +3 -3
  48. package/package.json +3 -3
  49. package/{react-select-creatable.esm-9283eec1.js → react-select-creatable.esm-2f23d6c6.js} +133 -43
  50. package/shift-away-subtle-cfdf1dbe.js +9 -0
  51. package/useMergedRefs-b6d2f8fc.js +42 -0
  52. package/warning-circle-24522402.js +41 -0
  53. package/widgets/AssetGallery/index.js +30 -25
  54. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -2
  55. package/widgets/ContextMenu/ContextMenuItem/index.js +2 -4
  56. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -1
  57. package/widgets/ContextMenu/index.js +2 -2
  58. package/widgets/Instructions/index.js +24 -0
  59. package/widgets/index.js +33 -26
  60. package/TextArea-8a0bd754.js +0 -213
  61. package/inputs/AutocompleteSelect/index.js +0 -18
@@ -3215,7 +3215,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
3215
3215
  if (isBody) {
3216
3216
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
3217
3217
  }
3218
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
3218
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
3219
3219
  }
3220
3220
 
3221
3221
  function getCssDimensions(element) {
@@ -4500,7 +4500,9 @@ var Control = function Control(props) {
4500
4500
  'control--is-disabled': isDisabled,
4501
4501
  'control--is-focused': isFocused,
4502
4502
  'control--menu-is-open': menuIsOpen
4503
- }), innerProps), children);
4503
+ }), innerProps, {
4504
+ "aria-disabled": isDisabled || undefined
4505
+ }), children);
4504
4506
  };
4505
4507
  var Control$1 = Control;
4506
4508
 
@@ -4936,14 +4938,14 @@ var defaultAriaLiveMessages = {
4936
4938
  guidance: function guidance(props) {
4937
4939
  var isSearchable = props.isSearchable,
4938
4940
  isMulti = props.isMulti,
4939
- isDisabled = props.isDisabled,
4940
4941
  tabSelectsValue = props.tabSelectsValue,
4941
- context = props.context;
4942
+ context = props.context,
4943
+ isInitialFocus = props.isInitialFocus;
4942
4944
  switch (context) {
4943
4945
  case 'menu':
4944
- return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu").concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
4946
+ return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
4945
4947
  case 'input':
4946
- return "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
4948
+ return isInitialFocus ? "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '') : '';
4947
4949
  case 'value':
4948
4950
  return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
4949
4951
  default:
@@ -4979,17 +4981,18 @@ var defaultAriaLiveMessages = {
4979
4981
  label = _props$label2 === void 0 ? '' : _props$label2,
4980
4982
  selectValue = props.selectValue,
4981
4983
  isDisabled = props.isDisabled,
4982
- isSelected = props.isSelected;
4984
+ isSelected = props.isSelected,
4985
+ isAppleDevice = props.isAppleDevice;
4983
4986
  var getArrayIndex = function getArrayIndex(arr, item) {
4984
4987
  return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : '';
4985
4988
  };
4986
4989
  if (context === 'value' && selectValue) {
4987
4990
  return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), ".");
4988
4991
  }
4989
- if (context === 'menu') {
4992
+ if (context === 'menu' && isAppleDevice) {
4990
4993
  var disabled = isDisabled ? ' disabled' : '';
4991
- var status = "".concat(isSelected ? 'selected' : 'focused').concat(disabled);
4992
- return "option ".concat(label, " ").concat(status, ", ").concat(getArrayIndex(options, focused), ".");
4994
+ var status = "".concat(isSelected ? ' selected' : '').concat(disabled);
4995
+ return "".concat(label).concat(status, ", ").concat(getArrayIndex(options, focused), ".");
4993
4996
  }
4994
4997
  return '';
4995
4998
  },
@@ -5008,7 +5011,8 @@ var LiveRegion = function LiveRegion(props) {
5008
5011
  isFocused = props.isFocused,
5009
5012
  selectValue = props.selectValue,
5010
5013
  selectProps = props.selectProps,
5011
- id = props.id;
5014
+ id = props.id,
5015
+ isAppleDevice = props.isAppleDevice;
5012
5016
  var ariaLiveMessages = selectProps.ariaLiveMessages,
5013
5017
  getOptionLabel = selectProps.getOptionLabel,
5014
5018
  inputValue = selectProps.inputValue,
@@ -5018,7 +5022,8 @@ var LiveRegion = function LiveRegion(props) {
5018
5022
  menuIsOpen = selectProps.menuIsOpen,
5019
5023
  options = selectProps.options,
5020
5024
  screenReaderStatus = selectProps.screenReaderStatus,
5021
- tabSelectsValue = selectProps.tabSelectsValue;
5025
+ tabSelectsValue = selectProps.tabSelectsValue,
5026
+ isLoading = selectProps.isLoading;
5022
5027
  var ariaLabel = selectProps['aria-label'];
5023
5028
  var ariaLive = selectProps['aria-live'];
5024
5029
 
@@ -5071,15 +5076,16 @@ var LiveRegion = function LiveRegion(props) {
5071
5076
  isSelected: isSelected,
5072
5077
  options: focusableOptions,
5073
5078
  context: focused === focusedOption ? 'menu' : 'value',
5074
- selectValue: selectValue
5079
+ selectValue: selectValue,
5080
+ isAppleDevice: isAppleDevice
5075
5081
  };
5076
5082
  focusMsg = messages.onFocus(onFocusProps);
5077
5083
  }
5078
5084
  return focusMsg;
5079
- }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue]);
5085
+ }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue, isAppleDevice]);
5080
5086
  var ariaResults = React.useMemo(function () {
5081
5087
  var resultsMsg = '';
5082
- if (menuIsOpen && options.length && messages.onFilter) {
5088
+ if (menuIsOpen && options.length && !isLoading && messages.onFilter) {
5083
5089
  var resultsMessage = screenReaderStatus({
5084
5090
  count: focusableOptions.length
5085
5091
  });
@@ -5089,7 +5095,8 @@ var LiveRegion = function LiveRegion(props) {
5089
5095
  });
5090
5096
  }
5091
5097
  return resultsMsg;
5092
- }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]);
5098
+ }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus, isLoading]);
5099
+ var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
5093
5100
  var ariaGuidance = React.useMemo(function () {
5094
5101
  var guidanceMsg = '';
5095
5102
  if (messages.guidance) {
@@ -5100,24 +5107,28 @@ var LiveRegion = function LiveRegion(props) {
5100
5107
  isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue),
5101
5108
  isMulti: isMulti,
5102
5109
  isSearchable: isSearchable,
5103
- tabSelectsValue: tabSelectsValue
5110
+ tabSelectsValue: tabSelectsValue,
5111
+ isInitialFocus: isInitialFocus
5104
5112
  });
5105
5113
  }
5106
5114
  return guidanceMsg;
5107
- }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]);
5108
- var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance);
5115
+ }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
5109
5116
  var ScreenReaderText = jsx(React.Fragment, null, jsx("span", {
5110
5117
  id: "aria-selection"
5111
5118
  }, ariaSelected), jsx("span", {
5112
- id: "aria-context"
5113
- }, ariaContext));
5114
- var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
5119
+ id: "aria-focused"
5120
+ }, ariaFocused), jsx("span", {
5121
+ id: "aria-results"
5122
+ }, ariaResults), jsx("span", {
5123
+ id: "aria-guidance"
5124
+ }, ariaGuidance));
5115
5125
  return jsx(React.Fragment, null, jsx(A11yText$1, {
5116
5126
  id: id
5117
5127
  }, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
5118
5128
  "aria-live": ariaLive,
5119
5129
  "aria-atomic": "false",
5120
- "aria-relevant": "additions text"
5130
+ "aria-relevant": "additions text",
5131
+ role: "log"
5121
5132
  }, isFocused && !isInitialFocus && ScreenReaderText));
5122
5133
  };
5123
5134
  var LiveRegion$1 = LiveRegion;
@@ -5462,7 +5473,7 @@ function DummyInput(_ref) {
5462
5473
  }
5463
5474
 
5464
5475
  var cancelScroll = function cancelScroll(event) {
5465
- event.preventDefault();
5476
+ if (event.cancelable) event.preventDefault();
5466
5477
  event.stopPropagation();
5467
5478
  };
5468
5479
  function useScrollCapture(_ref) {
@@ -5687,8 +5698,9 @@ function useScrollLock(_ref) {
5687
5698
  }
5688
5699
 
5689
5700
  function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
5690
- var blurSelectInput = function blurSelectInput() {
5691
- return document.activeElement && document.activeElement.blur();
5701
+ var blurSelectInput = function blurSelectInput(event) {
5702
+ var element = event.target;
5703
+ return element.ownerDocument.activeElement && element.ownerDocument.activeElement.blur();
5692
5704
  };
5693
5705
  var _ref2$1 = process.env.NODE_ENV === "production" ? {
5694
5706
  name: "1kfdb0e",
@@ -5696,7 +5708,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
5696
5708
  } : {
5697
5709
  name: "bp8cua-ScrollManager",
5698
5710
  styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
5699
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcm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YmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
5700
5712
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
5701
5713
  };
5702
5714
  function ScrollManager(_ref) {
@@ -5756,6 +5768,30 @@ var RequiredInput = function RequiredInput(_ref) {
5756
5768
  };
5757
5769
  var RequiredInput$1 = RequiredInput;
5758
5770
 
5771
+ /// <reference types="user-agent-data-types" />
5772
+
5773
+ function testPlatform(re) {
5774
+ var _window$navigator$use;
5775
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window$navigator$use = window.navigator['userAgentData']) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.platform) || window.navigator.platform) : false;
5776
+ }
5777
+ function isIPhone() {
5778
+ return testPlatform(/^iPhone/i);
5779
+ }
5780
+ function isMac() {
5781
+ return testPlatform(/^Mac/i);
5782
+ }
5783
+ function isIPad() {
5784
+ return testPlatform(/^iPad/i) ||
5785
+ // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
5786
+ isMac() && navigator.maxTouchPoints > 1;
5787
+ }
5788
+ function isIOS() {
5789
+ return isIPhone() || isIPad();
5790
+ }
5791
+ function isAppleDevice() {
5792
+ return isMac() || isIOS();
5793
+ }
5794
+
5759
5795
  var formatGroupLabel = function formatGroupLabel(group) {
5760
5796
  return group.label;
5761
5797
  };
@@ -5925,6 +5961,24 @@ function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {
5925
5961
  return optionsAccumulator;
5926
5962
  }, []);
5927
5963
  }
5964
+ function buildFocusableOptionsWithIds(categorizedOptions, optionId) {
5965
+ return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {
5966
+ if (categorizedOption.type === 'group') {
5967
+ optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {
5968
+ return {
5969
+ data: option.data,
5970
+ id: "".concat(optionId, "-").concat(categorizedOption.index, "-").concat(option.index)
5971
+ };
5972
+ })));
5973
+ } else {
5974
+ optionsAccumulator.push({
5975
+ data: categorizedOption.data,
5976
+ id: "".concat(optionId, "-").concat(categorizedOption.index)
5977
+ });
5978
+ }
5979
+ return optionsAccumulator;
5980
+ }, []);
5981
+ }
5928
5982
  function buildFocusableOptions(props, selectValue) {
5929
5983
  return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue));
5930
5984
  }
@@ -5962,6 +6016,13 @@ function getNextFocusedOption(state, options) {
5962
6016
  var lastFocusedOption = state.focusedOption;
5963
6017
  return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
5964
6018
  }
6019
+ var getFocusedOptionId = function getFocusedOptionId(focusableOptionsWithIds, focusedOption) {
6020
+ var _focusableOptionsWith;
6021
+ var focusedOptionId = (_focusableOptionsWith = focusableOptionsWithIds.find(function (option) {
6022
+ return option.data === focusedOption;
6023
+ })) === null || _focusableOptionsWith === void 0 ? void 0 : _focusableOptionsWith.id;
6024
+ return focusedOptionId || null;
6025
+ };
5965
6026
  var getOptionLabel = function getOptionLabel(props, data) {
5966
6027
  return props.getOptionLabel(data);
5967
6028
  };
@@ -6012,6 +6073,8 @@ var Select = /*#__PURE__*/function (_Component) {
6012
6073
  _this.state = {
6013
6074
  ariaSelection: null,
6014
6075
  focusedOption: null,
6076
+ focusedOptionId: null,
6077
+ focusableOptionsWithIds: [],
6015
6078
  focusedValue: null,
6016
6079
  inputIsHidden: false,
6017
6080
  isFocused: false,
@@ -6019,17 +6082,18 @@ var Select = /*#__PURE__*/function (_Component) {
6019
6082
  clearFocusValueOnUpdate: false,
6020
6083
  prevWasFocused: false,
6021
6084
  inputIsHiddenAfterUpdate: undefined,
6022
- prevProps: undefined
6085
+ prevProps: undefined,
6086
+ instancePrefix: ''
6023
6087
  };
6024
6088
  _this.blockOptionHover = false;
6025
6089
  _this.isComposing = false;
6026
6090
  _this.commonProps = void 0;
6027
6091
  _this.initialTouchX = 0;
6028
6092
  _this.initialTouchY = 0;
6029
- _this.instancePrefix = '';
6030
6093
  _this.openAfterFocus = false;
6031
6094
  _this.scrollToFocusedOptionOnUpdate = false;
6032
6095
  _this.userIsDragging = void 0;
6096
+ _this.isAppleDevice = isAppleDevice();
6033
6097
  _this.controlRef = null;
6034
6098
  _this.getControlRef = function (ref) {
6035
6099
  _this.controlRef = ref;
@@ -6144,6 +6208,12 @@ var Select = /*#__PURE__*/function (_Component) {
6144
6208
  removedValue: lastSelectedValue
6145
6209
  });
6146
6210
  };
6211
+ _this.getFocusedOptionId = function (focusedOption) {
6212
+ return getFocusedOptionId(_this.state.focusableOptionsWithIds, focusedOption);
6213
+ };
6214
+ _this.getFocusableOptionsWithIds = function () {
6215
+ return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props, _this.state.selectValue), _this.getElementId('option'));
6216
+ };
6147
6217
  _this.getValue = function () {
6148
6218
  return _this.state.selectValue;
6149
6219
  };
@@ -6171,7 +6241,7 @@ var Select = /*#__PURE__*/function (_Component) {
6171
6241
  return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props);
6172
6242
  };
6173
6243
  _this.getElementId = function (element) {
6174
- return "".concat(_this.instancePrefix, "-").concat(element);
6244
+ return "".concat(_this.state.instancePrefix, "-").concat(element);
6175
6245
  };
6176
6246
  _this.getComponents = function () {
6177
6247
  return defaultComponents(_this.props);
@@ -6380,8 +6450,11 @@ var Select = /*#__PURE__*/function (_Component) {
6380
6450
  if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
6381
6451
  return;
6382
6452
  }
6453
+ var options = _this.getFocusableOptions();
6454
+ var focusedOptionIndex = options.indexOf(focusedOption);
6383
6455
  _this.setState({
6384
- focusedOption: focusedOption
6456
+ focusedOption: focusedOption,
6457
+ focusedOptionId: focusedOptionIndex > -1 ? _this.getFocusedOptionId(focusedOption) : null
6385
6458
  });
6386
6459
  };
6387
6460
  _this.shouldHideSelectedOptions = function () {
@@ -6525,14 +6598,16 @@ var Select = /*#__PURE__*/function (_Component) {
6525
6598
  }
6526
6599
  event.preventDefault();
6527
6600
  };
6528
- _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
6601
+ _this.state.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
6529
6602
  _this.state.selectValue = cleanValue(_props.value);
6530
-
6531
6603
  // Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen)
6532
6604
  if (_props.menuIsOpen && _this.state.selectValue.length) {
6605
+ var focusableOptionsWithIds = _this.getFocusableOptionsWithIds();
6533
6606
  var focusableOptions = _this.buildFocusableOptions();
6534
6607
  var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]);
6608
+ _this.state.focusableOptionsWithIds = focusableOptionsWithIds;
6535
6609
  _this.state.focusedOption = focusableOptions[optionIndex];
6610
+ _this.state.focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusableOptions[optionIndex]);
6536
6611
  }
6537
6612
  return _this;
6538
6613
  }
@@ -6657,7 +6732,8 @@ var Select = /*#__PURE__*/function (_Component) {
6657
6732
  this.setState({
6658
6733
  inputIsHiddenAfterUpdate: false,
6659
6734
  focusedValue: null,
6660
- focusedOption: focusableOptions[openAtIndex]
6735
+ focusedOption: focusableOptions[openAtIndex],
6736
+ focusedOptionId: this.getFocusedOptionId(focusableOptions[openAtIndex])
6661
6737
  }, function () {
6662
6738
  return _this2.onMenuOpen();
6663
6739
  });
@@ -6733,7 +6809,8 @@ var Select = /*#__PURE__*/function (_Component) {
6733
6809
  this.scrollToFocusedOptionOnUpdate = true;
6734
6810
  this.setState({
6735
6811
  focusedOption: options[nextFocus],
6736
- focusedValue: null
6812
+ focusedValue: null,
6813
+ focusedOptionId: this.getFocusedOptionId(options[nextFocus])
6737
6814
  });
6738
6815
  }
6739
6816
  }, {
@@ -6929,10 +7006,10 @@ var Select = /*#__PURE__*/function (_Component) {
6929
7006
  'aria-label': this.props['aria-label'],
6930
7007
  'aria-labelledby': this.props['aria-labelledby'],
6931
7008
  'aria-required': required,
6932
- role: 'combobox'
7009
+ role: 'combobox',
7010
+ 'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
6933
7011
  }, menuIsOpen && {
6934
- 'aria-controls': this.getElementId('listbox'),
6935
- 'aria-owns': this.getElementId('listbox')
7012
+ 'aria-controls': this.getElementId('listbox')
6936
7013
  }), !isSearchable && {
6937
7014
  'aria-readonly': true
6938
7015
  }), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && {
@@ -7177,8 +7254,11 @@ var Select = /*#__PURE__*/function (_Component) {
7177
7254
  onClick: onSelect,
7178
7255
  onMouseMove: onHover,
7179
7256
  onMouseOver: onHover,
7180
- tabIndex: -1
7257
+ tabIndex: -1,
7258
+ role: 'option',
7259
+ 'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
7181
7260
  };
7261
+
7182
7262
  return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
7183
7263
  innerProps: innerProps,
7184
7264
  data: data,
@@ -7247,8 +7327,7 @@ var Select = /*#__PURE__*/function (_Component) {
7247
7327
  innerRef: ref,
7248
7328
  innerProps: {
7249
7329
  onMouseDown: _this4.onMenuMouseDown,
7250
- onMouseMove: _this4.onMenuMouseMove,
7251
- id: _this4.getElementId('listbox')
7330
+ onMouseMove: _this4.onMenuMouseMove
7252
7331
  },
7253
7332
  isLoading: isLoading,
7254
7333
  placement: placement
@@ -7263,6 +7342,11 @@ var Select = /*#__PURE__*/function (_Component) {
7263
7342
  _this4.getMenuListRef(instance);
7264
7343
  scrollTargetRef(instance);
7265
7344
  },
7345
+ innerProps: {
7346
+ role: 'listbox',
7347
+ 'aria-multiselectable': commonProps.isMulti,
7348
+ id: _this4.getElementId('listbox')
7349
+ },
7266
7350
  isLoading: isLoading,
7267
7351
  maxHeight: maxHeight,
7268
7352
  focusedOption: focusedOption
@@ -7350,7 +7434,8 @@ var Select = /*#__PURE__*/function (_Component) {
7350
7434
  focusedValue: focusedValue,
7351
7435
  isFocused: isFocused,
7352
7436
  selectValue: selectValue,
7353
- focusableOptions: focusableOptions
7437
+ focusableOptions: focusableOptions,
7438
+ isAppleDevice: this.isAppleDevice
7354
7439
  }));
7355
7440
  }
7356
7441
  }, {
@@ -7399,7 +7484,8 @@ var Select = /*#__PURE__*/function (_Component) {
7399
7484
  inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate,
7400
7485
  ariaSelection = state.ariaSelection,
7401
7486
  isFocused = state.isFocused,
7402
- prevWasFocused = state.prevWasFocused;
7487
+ prevWasFocused = state.prevWasFocused,
7488
+ instancePrefix = state.instancePrefix;
7403
7489
  var options = props.options,
7404
7490
  value = props.value,
7405
7491
  menuIsOpen = props.menuIsOpen,
@@ -7409,11 +7495,15 @@ var Select = /*#__PURE__*/function (_Component) {
7409
7495
  var newMenuOptionsState = {};
7410
7496
  if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) {
7411
7497
  var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : [];
7498
+ var focusableOptionsWithIds = menuIsOpen ? buildFocusableOptionsWithIds(buildCategorizedOptions(props, selectValue), "".concat(instancePrefix, "-option")) : [];
7412
7499
  var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null;
7413
7500
  var focusedOption = getNextFocusedOption(state, focusableOptions);
7501
+ var focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusedOption);
7414
7502
  newMenuOptionsState = {
7415
7503
  selectValue: selectValue,
7416
7504
  focusedOption: focusedOption,
7505
+ focusedOptionId: focusedOptionId,
7506
+ focusableOptionsWithIds: focusableOptionsWithIds,
7417
7507
  focusedValue: focusedValue,
7418
7508
  clearFocusValueOnUpdate: false
7419
7509
  };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var defaultTheme = require('./defaultTheme-50f2b88f.js');
4
+
5
+ var css_248z$1 = ".tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}";
6
+ defaultTheme.styleInject(css_248z$1);
7
+
8
+ var css_248z = ".tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translateX(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translateX(-5px)}";
9
+ defaultTheme.styleInject(css_248z);
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ var toFnRef = function toFnRef(ref) {
6
+ return !ref || typeof ref === 'function' ? ref : function (value) {
7
+ ref.current = value;
8
+ };
9
+ };
10
+
11
+ function mergeRefs(refA, refB) {
12
+ var a = toFnRef(refA);
13
+ var b = toFnRef(refB);
14
+ return function (value) {
15
+ if (a) a(value);
16
+ if (b) b(value);
17
+ };
18
+ }
19
+ /**
20
+ * Create and returns a single callback ref composed from two other Refs.
21
+ *
22
+ * ```tsx
23
+ * const Button = React.forwardRef((props, ref) => {
24
+ * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
25
+ * const mergedRef = useMergedRefs(ref, attachRef);
26
+ *
27
+ * return <button ref={mergedRef} {...props}/>
28
+ * })
29
+ * ```
30
+ *
31
+ * @param refA A Callback or mutable Ref
32
+ * @param refB A Callback or mutable Ref
33
+ * @category refs
34
+ */
35
+
36
+ function useMergedRefs(refA, refB) {
37
+ return React.useMemo(function () {
38
+ return mergeRefs(refA, refB);
39
+ }, [refA, refB]);
40
+ }
41
+
42
+ exports.useMergedRefs = useMergedRefs;
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ function _interopNamespace(e) {
6
+ if (e && e.__esModule) return e;
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () {
15
+ return e[k];
16
+ }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n['default'] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
26
+
27
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28
+
29
+ var _ref = /*#__PURE__*/React__namespace.createElement("path", {
30
+ fill: "currentColor",
31
+ d: "M10.8 15.6h2.4V18h-2.4zm0-9.6h2.4v7.2h-2.4zm1.188-6A12 12 0 1024 12 11.994 11.994 0 0011.988 0zM12 21.6a9.6 9.6 0 119.6-9.6 9.597 9.597 0 01-9.6 9.6z"
32
+ });
33
+
34
+ function SvgWarningCircle(props) {
35
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ viewBox: "0 0 24 24"
38
+ }, props), _ref);
39
+ }
40
+
41
+ exports.SvgWarningCircle = SvgWarningCircle;
@@ -1,39 +1,44 @@
1
1
  'use strict';
2
2
 
3
- var AssetGallery = require('../../AssetGallery-d5394d69.js');
4
- require('../../defaultTheme-870f7df1.js');
3
+ var AssetGallery = require('../../AssetGallery-7022d0a2.js');
4
+ require('../../defaultTheme-50f2b88f.js');
5
5
  require('styled-components');
6
6
  require('react');
7
7
  require('lodash');
8
- require('../../TextInput-e4c6d536.js');
9
- require('nanoid');
10
- require('../../edit-note-c47d292e.js');
8
+ require('../../useMergedRefs-b6d2f8fc.js');
11
9
  require('resize-observer-polyfill');
12
10
  require('react-lazy-load-image-component');
13
- require('../../ActionButton-90485300.js');
14
- require('../../AutocompleteSelect-e2063407.js');
11
+ require('../../ActionButton-c3f5ed94.js');
12
+ require('../../Button-f893df21.js');
13
+ require('../../Popover-cf1e9677.js');
14
+ require('polished');
15
+ require('@tippyjs/react');
16
+ require('../../shift-away-subtle-cfdf1dbe.js');
17
+ require('../../ContextMenu-d088833b.js');
18
+ require('../../expand-more-94585605.js');
19
+ require('../../Checkbox-012bbd3f.js');
20
+ require('nanoid');
21
+ require('../../CompactAutocompleteSelect-05c45f9a.js');
15
22
  require('react-select');
16
- require('../../react-select-creatable.esm-9283eec1.js');
23
+ require('../../react-select-creatable.esm-2f23d6c6.js');
17
24
  require('react-dom');
18
25
  require('react-select-async-paginate');
19
26
  require('../../close-ebf2f3cf.js');
20
- require('../../expand-more-94585605.js');
21
- require('../../Button-01371eb4.js');
22
- require('../../Popover-616682bf.js');
23
- require('polished');
24
- require('@tippyjs/react');
25
- require('../../ContextMenu-a68d4f28.js');
26
- require('../../Checkbox-50f1f3c7.js');
27
- require('../../CompactStarRating-f9997240.js');
28
- require('../../CompactTextInput-8c9b061b.js');
29
- require('../../Tooltip-860530ff.js');
30
- require('../../Tab-fc380f0b.js');
31
- require('../../Tabs-d6f0aaf5.js');
32
- require('../../Badge-34ad2850.js');
33
- require('../../MultiSelect-8b427b56.js');
34
- require('../../Radio-0b46b2a8.js');
35
- require('../../TextArea-8a0bd754.js');
36
- require('../../Switch-aa384260.js');
27
+ require('../../check-circle-filled-1640873e.js');
28
+ require('../../CompactStarRating-53593d92.js');
29
+ require('../../CompactTextInput-b4215024.js');
30
+ require('../../edit-note-c47d292e.js');
31
+ require('../../Alert-3e4f8be1.js');
32
+ require('../../Badge-9bcebe96.js');
33
+ require('../../Tab-bd0f3345.js');
34
+ require('../../Tabs-cfc35dc0.js');
35
+ require('../../Tooltip-f4f9ab8f.js');
36
+ require('../../MultiSelect-5b008b32.js');
37
+ require('../../Radio-0594409d.js');
38
+ require('../../TextArea-0cbd6626.js');
39
+ require('../../TextInput-c656bf03.js');
40
+ require('../../Switch-cd165c8c.js');
41
+ require('../../warning-circle-24522402.js');
37
42
 
38
43
 
39
44
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var AssetPreviewTopBar = require('../../../AssetPreviewTopBar-777c726a.js');
4
- require('../../../defaultTheme-870f7df1.js');
3
+ var AssetPreviewTopBar = require('../../../AssetPreviewTopBar-449e6019.js');
4
+ require('../../../defaultTheme-50f2b88f.js');
5
5
  require('styled-components');
6
6
  require('react');
7
7
  require('../../../close-ebf2f3cf.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var defaultTheme = require('../../../defaultTheme-870f7df1.js');
3
+ var defaultTheme = require('../../../defaultTheme-50f2b88f.js');
4
4
  var React = require('react');
5
5
  var styled = require('styled-components');
6
6
 
@@ -31,12 +31,10 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
31
31
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
32
32
 
33
33
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
34
- var ContextMenuItem$1 = styled__default['default'].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n align-items: center;\n cursor: pointer;\n display: flex;\n font-family: ", ";\n font-size: 0.875rem;\n font-weight: normal;\n height: 31px;\n min-width: 160px;\n padding: ", ";\n width: ", ";\n\n color: ", "\n\n ", "\n\n ", "\n\n :not(:last-of-type) {\n border-bottom: 1px solid;\n\n ", "\n }\n\n :last-of-type {\n height: 32px;\n }\n\n &:hover {\n cursor: pointer;\n\n ", "\n }\n\n ", "\n\n ", " \n"])), function (props) {
34
+ var ContextMenuItem$1 = styled__default['default'].span.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n align-items: center;\n cursor: pointer;\n display: flex;\n font-family: ", ";\n font-size: 0.875rem;\n font-weight: normal;\n height: 31px;\n min-width: 160px;\n padding: ", ";\n\n color: ", "\n\n ", "\n\n ", "\n\n :not(:last-of-type) {\n border-bottom: 1px solid;\n\n ", "\n }\n\n :last-of-type {\n height: 32px;\n }\n\n &:hover {\n cursor: pointer;\n\n ", "\n }\n\n ", "\n\n ", " \n"])), function (props) {
35
35
  return props.theme.primaryFontFamily;
36
36
  }, function (props) {
37
37
  return props.opensSublevel ? '0 8px' : '0 28px 0 8px';
38
- }, function (props) {
39
- return props.opensSublevel ? 'calc(100% - 16px)' : 'calc(100% - 36px)';
40
38
  }, function (props) {
41
39
  return props.theme.themeProp('color', props.theme.getColor('gray-700'), props.theme.getColor('gray-700'));
42
40
  }, function (props) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var defaultTheme = require('../../../defaultTheme-870f7df1.js');
3
+ var defaultTheme = require('../../../defaultTheme-50f2b88f.js');
4
4
  var React = require('react');
5
5
  var styled = require('styled-components');
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var ContextMenu = require('../../ContextMenu-a68d4f28.js');
4
- require('../../defaultTheme-870f7df1.js');
3
+ var ContextMenu = require('../../ContextMenu-d088833b.js');
4
+ require('../../defaultTheme-50f2b88f.js');
5
5
  require('styled-components');
6
6
  require('react');
7
7