haya-select 1.0.58 → 1.0.59
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/package.json +3 -2
- package/src/select/index.jsx +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "haya-select",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"debounce": "^2.1.0",
|
|
14
14
|
"diggerize": "^1.0.4",
|
|
15
15
|
"fetching-object": "^1.0.1",
|
|
16
|
-
"
|
|
16
|
+
"react-native-render-html": "^6.3.4",
|
|
17
|
+
"set-state-compare": "^1.0.52"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"conjointment": ">= 0.1.4",
|
package/src/select/index.jsx
CHANGED
|
@@ -769,12 +769,15 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
|
|
|
769
769
|
toggleValue: toggleOption?.value,
|
|
770
770
|
value: option.value
|
|
771
771
|
}}
|
|
772
|
+
style={{flexDirection: "row"}}
|
|
772
773
|
>
|
|
773
774
|
{toggleOptions && !(option.value in toggled) &&
|
|
774
|
-
<View dataSet={{class: "toggle-icon-placeholder"}} style={{width:
|
|
775
|
+
<View dataSet={{class: "toggle-icon-placeholder"}} style={{width: 20}} />
|
|
775
776
|
}
|
|
776
777
|
{toggleOptions && (option.value in toggled) &&
|
|
777
|
-
<
|
|
778
|
+
<View style={{alignItems: "center", justifyContent: "center", width: 20}}>
|
|
779
|
+
<FontAwesomeIcon dataSet={{class: "toggle-icon"}} name={icon} />
|
|
780
|
+
</View>
|
|
778
781
|
}
|
|
779
782
|
{(() => {
|
|
780
783
|
if (mode == "current" && option.currentContent) {
|
|
@@ -787,7 +790,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
|
|
|
787
790
|
return <div dangerouslySetInnerHTML={{__html: digg(option, "html")}} />
|
|
788
791
|
} else {
|
|
789
792
|
return (
|
|
790
|
-
<Text dataSet={{class: "option-presentation-text"}} style={this.stylingFor("optionPresentationText", {whiteSpace: "nowrap"})}>
|
|
793
|
+
<Text dataSet={{class: "option-presentation-text"}} style={this.stylingFor("optionPresentationText", {flex: 1, whiteSpace: "nowrap"})}>
|
|
791
794
|
{option.text}
|
|
792
795
|
</Text>
|
|
793
796
|
)
|
|
@@ -803,8 +806,6 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
|
|
|
803
806
|
const currentValues = currentOptions?.map((currentOption) => currentOption.value)
|
|
804
807
|
const stateValues = this.s.currentOptions?.map((currentOption) => currentOption.value)
|
|
805
808
|
|
|
806
|
-
console.log("setCurrentFromGivenValues", {stateValues})
|
|
807
|
-
|
|
808
809
|
if (anythingDifferent(currentValues, stateValues)) {
|
|
809
810
|
this.setState({currentOptions})
|
|
810
811
|
}
|