@widergy/mobile-ui 1.31.0 → 1.31.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.31.1](https://github.com/widergy/mobile-ui/compare/v1.31.0...v1.31.1) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * utmenu fixes ([#374](https://github.com/widergy/mobile-ui/issues/374)) ([44258cb](https://github.com/widergy/mobile-ui/commit/44258cb1bb0ac7c837741f43ec4cbbc280e2d2a8))
7
+
1
8
  # [1.31.0](https://github.com/widergy/mobile-ui/compare/v1.30.2...v1.31.0) (2024-11-04)
2
9
 
3
10
 
@@ -154,50 +154,50 @@ const UTMenu = ({
154
154
  <View style={styles.overlay} />
155
155
  </TouchableOpacity>
156
156
  <Surface
157
- onLayout={handleMenuLayout}
158
- ref={menuRef}
159
157
  style={[styles.menu, position, fullWidth && { width: anchorMeasure?.width }, propStyles?.menu]}
160
158
  >
161
- <KeyboardAvoidingView behavior="height">
162
- {withAutocomplete && (
163
- <View style={[styles.searchContainer, propStyles?.searchContainer]}>
164
- <UTTextInput
165
- inputRef={searchTextInputRef}
166
- onChange={handleQueryChange}
167
- onSubmitEditing={
168
- query && filteredOptions[0]
169
- ? () => handleOptionPress(() => onPress(filteredOptions[0]))
170
- : closeMenu
171
- }
172
- placeholder={autoCompletePlaceholder}
173
- value={query}
174
- />
175
- </View>
176
- )}
177
- <ListView
178
- filteredOptions={filteredOptions}
179
- handleOptionPress={handleOptionPress}
180
- isMultiple={isMultiple}
181
- ItemSeparatorComponent={ItemSeparatorComponent}
182
- ListEmptyComponent={ListEmptyComponent}
183
- maxHeight={maxHeight}
184
- MenuOptionComponent={MenuOptionComponent}
185
- onPress={onPress}
186
- propStyles={propStyles}
187
- query={query}
188
- selectedOption={selectedOption}
189
- usableWindowHeight={usableWindowHeight}
190
- windowHeight={windowHeight}
191
- />
192
- {withGoogleAttribution && (
193
- <View style={styles.attribution}>
194
- <UTLabel colorTheme="gray" variant="small">
195
- {ATTRIBUTION}
196
- </UTLabel>
197
- <Image source={GoogleLogo} />
198
- </View>
199
- )}
200
- </KeyboardAvoidingView>
159
+ <View onLayout={handleMenuLayout} ref={menuRef}>
160
+ <KeyboardAvoidingView behavior="height">
161
+ {withAutocomplete && (
162
+ <View style={[styles.searchContainer, propStyles?.searchContainer]}>
163
+ <UTTextInput
164
+ inputRef={searchTextInputRef}
165
+ onChange={handleQueryChange}
166
+ onSubmitEditing={
167
+ query && filteredOptions[0]
168
+ ? () => handleOptionPress(() => onPress(filteredOptions[0]))
169
+ : closeMenu
170
+ }
171
+ placeholder={autoCompletePlaceholder}
172
+ value={query}
173
+ />
174
+ </View>
175
+ )}
176
+ <ListView
177
+ filteredOptions={filteredOptions}
178
+ handleOptionPress={handleOptionPress}
179
+ isMultiple={isMultiple}
180
+ ItemSeparatorComponent={ItemSeparatorComponent}
181
+ ListEmptyComponent={ListEmptyComponent}
182
+ maxHeight={maxHeight}
183
+ MenuOptionComponent={MenuOptionComponent}
184
+ onPress={onPress}
185
+ propStyles={propStyles}
186
+ query={query}
187
+ selectedOption={selectedOption}
188
+ usableWindowHeight={usableWindowHeight}
189
+ windowHeight={windowHeight}
190
+ />
191
+ {withGoogleAttribution && (
192
+ <View style={styles.attribution}>
193
+ <UTLabel colorTheme="gray" variant="small">
194
+ {ATTRIBUTION}
195
+ </UTLabel>
196
+ <Image source={GoogleLogo} />
197
+ </View>
198
+ )}
199
+ </KeyboardAvoidingView>
200
+ </View>
201
201
  </Surface>
202
202
  </Modal>
203
203
  </Fragment>
@@ -11,7 +11,6 @@ export default StyleSheet.create({
11
11
  backgroundColor: 'white',
12
12
  borderRadius: 8,
13
13
  left: 0,
14
- paddingVertical: 4,
15
14
  position: 'absolute',
16
15
  zIndex: 1000
17
16
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.31.0",
5
+ "version": "1.31.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [