@react-aria/interactions 3.0.0-nightly.2555 → 3.0.0-nightly.2565

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.
package/dist/import.mjs CHANGED
@@ -1020,10 +1020,23 @@ function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
1020
1020
  }, []);
1021
1021
  return (0, $bx7SL$useIsSSR)() ? null : modality;
1022
1022
  }
1023
+ const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
1024
+ "checkbox",
1025
+ "radio",
1026
+ "range",
1027
+ "color",
1028
+ "file",
1029
+ "image",
1030
+ "button",
1031
+ "submit",
1032
+ "reset"
1033
+ ]);
1023
1034
  /**
1024
1035
  * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that
1025
1036
  * focus visible style can be properly set.
1026
1037
  */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
1038
+ var _e_target;
1039
+ isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
1027
1040
  return !(isTextInput && modality === "keyboard" && e instanceof KeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
1028
1041
  }
1029
1042
  function $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {
package/dist/main.js CHANGED
@@ -1047,10 +1047,23 @@ function $e77252a287ef94ab$export$98e20ec92f614cfe() {
1047
1047
  }, []);
1048
1048
  return (0, $goTMa$reactariassr.useIsSSR)() ? null : modality;
1049
1049
  }
1050
+ const $e77252a287ef94ab$var$nonTextInputTypes = new Set([
1051
+ "checkbox",
1052
+ "radio",
1053
+ "range",
1054
+ "color",
1055
+ "file",
1056
+ "image",
1057
+ "button",
1058
+ "submit",
1059
+ "reset"
1060
+ ]);
1050
1061
  /**
1051
1062
  * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that
1052
1063
  * focus visible style can be properly set.
1053
1064
  */ function $e77252a287ef94ab$var$isKeyboardFocusEvent(isTextInput, modality, e) {
1065
+ var _e_target;
1066
+ isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLInputElement && !$e77252a287ef94ab$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof HTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
1054
1067
  return !(isTextInput && modality === "keyboard" && e instanceof KeyboardEvent && !$e77252a287ef94ab$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
1055
1068
  }
1056
1069
  function $e77252a287ef94ab$export$ffd9e5021c1fb2d6(props = {}) {