@scripso-homepad/ui 0.4.3 → 0.4.4
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/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Select.tsx +5 -2
- package/src/theme/select.ts +0 -2
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
Animated,
|
|
14
14
|
Easing,
|
|
15
15
|
Modal,
|
|
16
|
+
Platform,
|
|
16
17
|
Pressable,
|
|
17
18
|
ScrollView,
|
|
18
19
|
StyleSheet,
|
|
@@ -93,6 +94,7 @@ interface SelectBaseProps {
|
|
|
93
94
|
invalid?: boolean;
|
|
94
95
|
hint?: string;
|
|
95
96
|
containerStyle?: StyleProp<ViewStyle>;
|
|
97
|
+
fieldStyle?: StyleProp<ViewStyle>;
|
|
96
98
|
className?: string;
|
|
97
99
|
fieldClassName?: string;
|
|
98
100
|
menuClassName?: string;
|
|
@@ -143,6 +145,7 @@ export function Select({
|
|
|
143
145
|
invalid,
|
|
144
146
|
hint,
|
|
145
147
|
containerStyle,
|
|
148
|
+
fieldStyle,
|
|
146
149
|
className,
|
|
147
150
|
fieldClassName,
|
|
148
151
|
menuClassName,
|
|
@@ -176,7 +179,7 @@ export function Select({
|
|
|
176
179
|
toValue: open ? 1 : 0,
|
|
177
180
|
duration: SELECT_CHEVRON_ROTATION_MS,
|
|
178
181
|
easing: Easing.out(Easing.ease),
|
|
179
|
-
useNativeDriver:
|
|
182
|
+
useNativeDriver: Platform.OS !== "web",
|
|
180
183
|
}).start();
|
|
181
184
|
}, [chevronRotation, open]);
|
|
182
185
|
|
|
@@ -331,7 +334,7 @@ export function Select({
|
|
|
331
334
|
accessibilityState={{ disabled, expanded: open }}
|
|
332
335
|
disabled={disabled}
|
|
333
336
|
onPress={open ? closeMenu : openMenu}
|
|
334
|
-
style={[selectFieldMetrics.container, fieldStyles.container]}
|
|
337
|
+
style={[selectFieldMetrics.container, fieldStyles.container, fieldStyle]}
|
|
335
338
|
>
|
|
336
339
|
{leftIcon ? (
|
|
337
340
|
<View style={styles.iconSlot}>
|
package/src/theme/select.ts
CHANGED
|
@@ -138,8 +138,6 @@ export const selectFieldMetrics = StyleSheet.create({
|
|
|
138
138
|
flexDirection: "row",
|
|
139
139
|
alignItems: "center",
|
|
140
140
|
height: SELECT_HEIGHT,
|
|
141
|
-
minHeight: SELECT_HEIGHT,
|
|
142
|
-
maxHeight: SELECT_HEIGHT,
|
|
143
141
|
borderRadius: radii.lg,
|
|
144
142
|
padding: SELECT_PADDING,
|
|
145
143
|
gap: SELECT_INNER_GAP,
|