@dropi/react-native-design-system 0.3.2 → 0.3.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.
|
@@ -85,9 +85,9 @@ const Select = ({
|
|
|
85
85
|
disabled: !hasChanges
|
|
86
86
|
}), onRestablish && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
87
87
|
style: styles.footerSecondaryButton,
|
|
88
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_atoms.
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_atoms.TextButton, {
|
|
89
89
|
label: "Restablecer",
|
|
90
|
-
variant: "
|
|
90
|
+
variant: "primary",
|
|
91
91
|
size: "large",
|
|
92
92
|
onPress: handleRestablish
|
|
93
93
|
})
|
|
@@ -108,11 +108,13 @@ const Select = ({
|
|
|
108
108
|
onPress: handleOpen,
|
|
109
109
|
activeOpacity: 0.7,
|
|
110
110
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_atoms.Body, {
|
|
111
|
-
type: "
|
|
111
|
+
type: "m-regular",
|
|
112
112
|
style: {
|
|
113
|
-
color: currentValue ? _constants.colors['Gray-600'].light : _constants.colors['Gray-
|
|
113
|
+
color: currentValue ? _constants.colors['Gray-600'].light : _constants.colors['Gray-400'].light,
|
|
114
114
|
flex: 1
|
|
115
115
|
},
|
|
116
|
+
numberOfLines: 1,
|
|
117
|
+
ellipsizeMode: "tail",
|
|
116
118
|
children: currentValue?.label ?? placeholder
|
|
117
119
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative2.default, {
|
|
118
120
|
name: "dropdown-down",
|
|
@@ -147,7 +149,7 @@ const Select = ({
|
|
|
147
149
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BottomSheet.BottomSheetComponent, {
|
|
148
150
|
ref: bottomSheetRef,
|
|
149
151
|
title: title ?? label ?? 'Seleccionar',
|
|
150
|
-
snapPoints: ['
|
|
152
|
+
snapPoints: ['70%', '90%'],
|
|
151
153
|
onDismiss: handleDismiss,
|
|
152
154
|
footer: footer,
|
|
153
155
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
|