@butternutbox/pawprint-native 1.3.0 → 1.3.1

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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- CJS dist/index.cjs 564.54 KB
11
- CJS dist/index.cjs.map 1.10 MB
12
- CJS ⚡️ Build success in 6535ms
13
- ESM dist/index.js 533.47 KB
10
+ ESM dist/index.js 533.82 KB
14
11
  ESM dist/index.js.map 1.10 MB
15
- ESM ⚡️ Build success in 6536ms
16
- DTS ⚡️ Build success in 17552ms
12
+ ESM ⚡️ Build success in 8991ms
13
+ CJS dist/index.cjs 564.92 KB
14
+ CJS dist/index.cjs.map 1.10 MB
15
+ CJS ⚡️ Build success in 8993ms
16
+ DTS ⚡️ Build success in 22924ms
17
17
  DTS dist/index.d.cts 111.87 KB
18
18
  DTS dist/index.d.ts 111.87 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fb1b99b: `SelectField`: stop a searchable field going dead before the user can type.
8
+
9
+ The Portal-cascade blur that follows the dropdown mounting can reach JS after both existing recoveries (the `keyboardDidShow` re-focus and the 100ms hardware-keyboard timer) have already run. React Native still counts the input as focused at that point, so the `keyboardDidShow` re-focus is a no-op, and once the blur lands nothing focuses it again: the soft keyboard hides and hardware key presses go nowhere. The search input now re-focuses itself when it blurs while the dropdown is still open.
10
+
3
11
  ## 1.3.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -9159,6 +9159,16 @@ var SelectFieldRoot = React66__default.default.forwardRef(
9159
9159
  keyboardSub.remove();
9160
9160
  };
9161
9161
  }, [isOpen, searchable, isSearching, searchQuery]);
9162
+ const isOpenRef = React66__default.default.useRef(isOpen);
9163
+ React66__default.default.useEffect(() => {
9164
+ isOpenRef.current = isOpen;
9165
+ });
9166
+ const handleSearchBlur = () => {
9167
+ setTimeout(() => {
9168
+ var _a2;
9169
+ if (isOpenRef.current) (_a2 = searchInputRef.current) == null ? void 0 : _a2.focus();
9170
+ }, 50);
9171
+ };
9162
9172
  const isCompound = React66__default.default.Children.toArray(children).some(
9163
9173
  (child) => React66__default.default.isValidElement(child) && child.type === SelectFieldContent
9164
9174
  );
@@ -9249,6 +9259,7 @@ var SelectFieldRoot = React66__default.default.forwardRef(
9249
9259
  ref: searchInputRef,
9250
9260
  value: searchQuery,
9251
9261
  onChangeText: setSearchQuery,
9262
+ onBlur: handleSearchBlur,
9252
9263
  placeholder: searchPlaceholder != null ? searchPlaceholder : "Search...",
9253
9264
  returnKeyType: "search",
9254
9265
  clearButtonMode: "never",