@ray-js/components 0.5.3 → 0.5.5
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/lib/Button/Button.native.js +229 -0
- package/lib/Button/Button.wechat.js +2 -2
- package/lib/Checkbox/Checkbox.native.js +118 -0
- package/lib/Checkbox/Checkbox.wechat.js +2 -2
- package/lib/CheckboxGroup/CheckboxGroup.native.js +99 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.js +2 -2
- package/lib/ClickableSimplified/index.native.js +166 -0
- package/lib/CoverView/CoverView.js +7 -1
- package/lib/DatePicker/DatePicker.native.js +449 -0
- package/lib/DatePicker/DatePicker.wechat.js +2 -2
- package/lib/Form/Form.native.js +8 -0
- package/lib/Form/Form.wechat.js +2 -2
- package/lib/Icon/Icon.native.js +48 -0
- package/lib/Image/Image.native.js +219 -0
- package/lib/Image/Image.wechat.js +2 -2
- package/lib/Input/Input.native.js +212 -0
- package/lib/Input/Input.wechat.js +2 -2
- package/lib/IpcPlayer/IpcPlayer.js +7 -1
- package/lib/Label/Label.native.js +29 -0
- package/lib/Label/Label.wechat.js +2 -2
- package/lib/LinearGradient/LinearGradient.native.js +60 -0
- package/lib/Modal/Modal.native.js +98 -0
- package/lib/Motion/Fade/index.native.js +3 -0
- package/lib/Motion/PullUp/index.native.js +3 -0
- package/lib/Motion/PushDown/index.native.js +3 -0
- package/lib/Motion/ScaleFadeIn/index.native.js +3 -0
- package/lib/Motion/ScalePullDown/index.native.js +3 -0
- package/lib/PageContainer/PageContainer.js +90 -1
- package/lib/PageContainer/PageContainer.wechat.js +2 -2
- package/lib/Picker/Picker.native.js +181 -0
- package/lib/Picker/Picker.wechat.js +2 -2
- package/lib/PickerView/PickerView.native.js +175 -0
- package/lib/PickerView/PickerView.wechat.js +4 -5
- package/lib/PickerViewColumn/PickerViewColumn.native.js +175 -0
- package/lib/RadialGradient/RadialGradient.native.js +52 -0
- package/lib/Radio/Radio.native.js +132 -0
- package/lib/Radio/Radio.wechat.js +2 -2
- package/lib/RadioGroup/RadioGroup.native.js +99 -0
- package/lib/RadioGroup/RadioGroup.wechat.js +2 -2
- package/lib/ScrollView/ScrollView.native.js +283 -0
- package/lib/ScrollView/ScrollView.wechat.js +2 -2
- package/lib/Slider/Slider.native.js +114 -0
- package/lib/Slider/Slider.wechat.js +2 -2
- package/lib/Swiper/Swiper.native.js +68 -0
- package/lib/Swiper/Swiper.wechat.js +3 -4
- package/lib/SwiperItem/SwiperItem.js +14 -1
- package/lib/Switch/Switch.native.js +128 -0
- package/lib/Switch/Switch.wechat.js +2 -2
- package/lib/Text/Text.native.js +37 -0
- package/lib/Text/Text.wechat.js +2 -2
- package/lib/Textarea/Textarea.native.js +26 -0
- package/lib/Textarea/Textarea.wechat.js +2 -2
- package/lib/TimePicker/TimePicker.native.js +319 -0
- package/lib/TimePicker/TimePicker.wechat.js +2 -2
- package/lib/View/View.native.js +35 -0
- package/lib/View/View.wechat.js +3 -3
- package/package.json +7 -7
- package/lib/Button/Button.android.js +0 -1
- package/lib/Button/Button.ios.js +0 -1
- package/lib/Button/Button.web.js +0 -15
- package/lib/Button/index.android.js +0 -1
- package/lib/Button/index.ios.js +0 -1
- package/lib/Button/index.tuya.js +0 -3
- package/lib/Button/index.web.js +0 -3
- package/lib/Button/index.wechat.js +0 -3
- package/lib/Button/props.android.js +0 -1
- package/lib/Button/props.ios.js +0 -1
- package/lib/Button/props.tuya.js +0 -10
- package/lib/Button/props.web.js +0 -10
- package/lib/Button/props.wechat.js +0 -10
- package/lib/Checkbox/Checkbox.android.js +0 -1
- package/lib/Checkbox/Checkbox.ios.js +0 -1
- package/lib/Checkbox/Checkbox.web.js +0 -10
- package/lib/Checkbox/index.android.js +0 -1
- package/lib/Checkbox/index.ios.js +0 -1
- package/lib/Checkbox/index.tuya.js +0 -3
- package/lib/Checkbox/index.web.js +0 -3
- package/lib/Checkbox/index.wechat.js +0 -3
- package/lib/Checkbox/props.android.js +0 -1
- package/lib/Checkbox/props.ios.js +0 -1
- package/lib/Checkbox/props.tuya.js +0 -1
- package/lib/Checkbox/props.web.js +0 -1
- package/lib/Checkbox/props.wechat.js +0 -1
- package/lib/CheckboxGroup/CheckboxGroup.android.js +0 -1
- package/lib/CheckboxGroup/CheckboxGroup.ios.js +0 -1
- package/lib/CheckboxGroup/CheckboxGroup.web.js +0 -52
- package/lib/CheckboxGroup/index.android.js +0 -1
- package/lib/CheckboxGroup/index.ios.js +0 -1
- package/lib/CheckboxGroup/index.tuya.js +0 -3
- package/lib/CheckboxGroup/index.web.js +0 -3
- package/lib/CheckboxGroup/index.wechat.js +0 -3
- package/lib/CheckboxGroup/props.android.js +0 -1
- package/lib/CheckboxGroup/props.ios.js +0 -1
- package/lib/CheckboxGroup/props.tuya.js +0 -1
- package/lib/CheckboxGroup/props.web.js +0 -1
- package/lib/CheckboxGroup/props.wechat.js +0 -1
- package/lib/ClickableSimplified/index.android.js +0 -1
- package/lib/ClickableSimplified/index.ios.js +0 -1
- package/lib/CoverView/CoverView.android.js +0 -1
- package/lib/CoverView/CoverView.ios.js +0 -1
- package/lib/CoverView/CoverView.web.js +0 -7
- package/lib/CoverView/index.android.js +0 -1
- package/lib/CoverView/index.ios.js +0 -1
- package/lib/CoverView/index.tuya.js +0 -2
- package/lib/CoverView/index.web.js +0 -2
- package/lib/CoverView/index.wechat.js +0 -2
- package/lib/CoverView/props.android.js +0 -1
- package/lib/CoverView/props.ios.js +0 -1
- package/lib/CoverView/props.tuya.js +0 -1
- package/lib/CoverView/props.web.js +0 -1
- package/lib/CoverView/props.wechat.js +0 -1
- package/lib/DatePicker/DatePicker.android.js +0 -1
- package/lib/DatePicker/DatePicker.ios.js +0 -1
- package/lib/DatePicker/DatePicker.web.js +0 -61
- package/lib/DatePicker/index.android.js +0 -1
- package/lib/DatePicker/index.ios.js +0 -1
- package/lib/DatePicker/index.tuya.js +0 -3
- package/lib/DatePicker/index.web.js +0 -3
- package/lib/DatePicker/index.wechat.js +0 -3
- package/lib/DatePicker/props.android.js +0 -1
- package/lib/DatePicker/props.ios.js +0 -1
- package/lib/DatePicker/props.tuya.js +0 -7
- package/lib/DatePicker/props.web.js +0 -7
- package/lib/DatePicker/props.wechat.js +0 -7
- package/lib/Form/Form.android.js +0 -1
- package/lib/Form/Form.ios.js +0 -1
- package/lib/Form/Form.web.js +0 -37
- package/lib/Form/index.android.js +0 -1
- package/lib/Form/index.ios.js +0 -1
- package/lib/Form/index.tuya.js +0 -3
- package/lib/Form/index.web.js +0 -3
- package/lib/Form/index.wechat.js +0 -3
- package/lib/Form/props.android.js +0 -1
- package/lib/Form/props.ios.js +0 -1
- package/lib/Form/props.tuya.js +0 -1
- package/lib/Form/props.web.js +0 -1
- package/lib/Form/props.wechat.js +0 -1
- package/lib/Icon/Icon.android.js +0 -1
- package/lib/Icon/Icon.ios.js +0 -1
- package/lib/Icon/Icon.web.js +0 -23
- package/lib/Icon/iconfont/iconfont.android.js +0 -1
- package/lib/Icon/iconfont/iconfont.ios.js +0 -1
- package/lib/Icon/iconfont/iconfont.tuya.js +0 -47
- package/lib/Icon/iconfont/iconfont.web.js +0 -47
- package/lib/Icon/iconfont/iconfont.wechat.js +0 -47
- package/lib/Icon/index.android.js +0 -1
- package/lib/Icon/index.ios.js +0 -1
- package/lib/Icon/index.tuya.js +0 -3
- package/lib/Icon/index.web.js +0 -3
- package/lib/Icon/index.wechat.js +0 -3
- package/lib/Icon/props.android.js +0 -1
- package/lib/Icon/props.ios.js +0 -1
- package/lib/Icon/props.tuya.js +0 -5
- package/lib/Icon/props.web.js +0 -5
- package/lib/Icon/props.wechat.js +0 -5
- package/lib/Image/Image.android.js +0 -1
- package/lib/Image/Image.ios.js +0 -1
- package/lib/Image/Image.web.js +0 -39
- package/lib/Image/index.android.js +0 -1
- package/lib/Image/index.ios.js +0 -1
- package/lib/Image/index.tuya.js +0 -3
- package/lib/Image/index.web.js +0 -3
- package/lib/Image/index.wechat.js +0 -3
- package/lib/Image/props.android.js +0 -1
- package/lib/Image/props.ios.js +0 -1
- package/lib/Image/props.tuya.js +0 -4
- package/lib/Image/props.web.js +0 -4
- package/lib/Image/props.wechat.js +0 -4
- package/lib/Input/Input.android.js +0 -1
- package/lib/Input/Input.ios.js +0 -1
- package/lib/Input/Input.web.js +0 -76
- package/lib/Input/index.android.js +0 -1
- package/lib/Input/index.ios.js +0 -1
- package/lib/Input/index.tuya.js +0 -3
- package/lib/Input/index.web.js +0 -3
- package/lib/Input/index.wechat.js +0 -3
- package/lib/Input/props.android.js +0 -1
- package/lib/Input/props.ios.js +0 -1
- package/lib/Input/props.tuya.js +0 -7
- package/lib/Input/props.web.js +0 -7
- package/lib/Input/props.wechat.js +0 -7
- package/lib/IpcPlayer/IpcPlayer.android.js +0 -1
- package/lib/IpcPlayer/IpcPlayer.ios.js +0 -1
- package/lib/IpcPlayer/IpcPlayer.web.js +0 -7
- package/lib/IpcPlayer/index.android.js +0 -1
- package/lib/IpcPlayer/index.ios.js +0 -1
- package/lib/IpcPlayer/index.tuya.js +0 -3
- package/lib/IpcPlayer/index.web.js +0 -3
- package/lib/IpcPlayer/index.wechat.js +0 -3
- package/lib/IpcPlayer/props.android.js +0 -1
- package/lib/IpcPlayer/props.ios.js +0 -1
- package/lib/IpcPlayer/props.tuya.js +0 -20
- package/lib/IpcPlayer/props.web.js +0 -20
- package/lib/IpcPlayer/props.wechat.js +0 -20
- package/lib/Label/Label.android.js +0 -1
- package/lib/Label/Label.ios.js +0 -1
- package/lib/Label/Label.web.js +0 -17
- package/lib/Label/index.android.js +0 -1
- package/lib/Label/index.ios.js +0 -1
- package/lib/Label/index.tuya.js +0 -3
- package/lib/Label/index.web.js +0 -3
- package/lib/Label/index.wechat.js +0 -3
- package/lib/Label/props.android.js +0 -1
- package/lib/Label/props.ios.js +0 -1
- package/lib/Label/props.tuya.js +0 -1
- package/lib/Label/props.web.js +0 -1
- package/lib/Label/props.wechat.js +0 -1
- package/lib/LinearGradient/LinearGradient.android.js +0 -1
- package/lib/LinearGradient/LinearGradient.ios.js +0 -1
- package/lib/LinearGradient/LinearGradient.web.js +0 -8
- package/lib/LinearGradient/index.android.js +0 -1
- package/lib/LinearGradient/index.ios.js +0 -1
- package/lib/LinearGradient/index.tuya.js +0 -3
- package/lib/LinearGradient/index.web.js +0 -3
- package/lib/LinearGradient/index.wechat.js +0 -3
- package/lib/LinearGradient/props.android.js +0 -1
- package/lib/LinearGradient/props.ios.js +0 -1
- package/lib/LinearGradient/props.tuya.js +0 -11
- package/lib/LinearGradient/props.web.js +0 -11
- package/lib/LinearGradient/props.wechat.js +0 -11
- package/lib/Modal/Modal.android.js +0 -1
- package/lib/Modal/Modal.ios.js +0 -1
- package/lib/Modal/Modal.web.js +0 -10
- package/lib/Modal/index.android.js +0 -1
- package/lib/Modal/index.ios.js +0 -1
- package/lib/Modal/index.tuya.js +0 -3
- package/lib/Modal/index.web.js +0 -3
- package/lib/Modal/index.wechat.js +0 -3
- package/lib/Modal/props.android.js +0 -1
- package/lib/Modal/props.ios.js +0 -1
- package/lib/Modal/props.tuya.js +0 -1
- package/lib/Modal/props.web.js +0 -1
- package/lib/Modal/props.wechat.js +0 -1
- package/lib/Motion/Fade/index.android.js +0 -1
- package/lib/Motion/Fade/index.ios.js +0 -1
- package/lib/Motion/Fade/index.web.js +0 -28
- package/lib/Motion/PullUp/index.android.js +0 -1
- package/lib/Motion/PullUp/index.ios.js +0 -1
- package/lib/Motion/PullUp/index.web.js +0 -28
- package/lib/Motion/PushDown/index.android.js +0 -1
- package/lib/Motion/PushDown/index.ios.js +0 -1
- package/lib/Motion/PushDown/index.web.js +0 -28
- package/lib/Motion/ScaleFadeIn/index.android.js +0 -1
- package/lib/Motion/ScaleFadeIn/index.ios.js +0 -1
- package/lib/Motion/ScaleFadeIn/index.web.js +0 -28
- package/lib/Motion/ScalePullDown/index.android.js +0 -1
- package/lib/Motion/ScalePullDown/index.ios.js +0 -1
- package/lib/Motion/ScalePullDown/index.web.js +0 -28
- package/lib/Motion/index.android.js +0 -1
- package/lib/Motion/index.ios.js +0 -1
- package/lib/Motion/index.tuya.js +0 -14
- package/lib/Motion/index.web.js +0 -14
- package/lib/Motion/index.wechat.js +0 -14
- package/lib/Motion/props.android.js +0 -1
- package/lib/Motion/props.ios.js +0 -1
- package/lib/Motion/props.tuya.js +0 -62
- package/lib/Motion/props.web.js +0 -62
- package/lib/Motion/props.wechat.js +0 -62
- package/lib/MovableArea/MovableArea.android.js +0 -1
- package/lib/MovableArea/MovableArea.ios.js +0 -1
- package/lib/MovableArea/MovableArea.tuya.js +0 -11
- package/lib/MovableArea/MovableArea.wechat.js +0 -11
- package/lib/MovableArea/index.android.js +0 -1
- package/lib/MovableArea/index.ios.js +0 -1
- package/lib/MovableArea/index.tuya.js +0 -3
- package/lib/MovableArea/index.web.js +0 -3
- package/lib/MovableArea/index.wechat.js +0 -3
- package/lib/MovableArea/props.android.js +0 -1
- package/lib/MovableArea/props.ios.js +0 -1
- package/lib/MovableArea/props.tuya.js +0 -3
- package/lib/MovableArea/props.web.js +0 -3
- package/lib/MovableArea/props.wechat.js +0 -3
- package/lib/MovableView/MovableView.android.js +0 -1
- package/lib/MovableView/MovableView.ios.js +0 -1
- package/lib/MovableView/MovableView.tuya.js +0 -11
- package/lib/MovableView/MovableView.wechat.js +0 -11
- package/lib/MovableView/index.android.js +0 -1
- package/lib/MovableView/index.ios.js +0 -1
- package/lib/MovableView/index.tuya.js +0 -3
- package/lib/MovableView/index.web.js +0 -3
- package/lib/MovableView/index.wechat.js +0 -3
- package/lib/MovableView/props.android.js +0 -1
- package/lib/MovableView/props.ios.js +0 -1
- package/lib/MovableView/props.tuya.js +0 -15
- package/lib/MovableView/props.web.js +0 -15
- package/lib/MovableView/props.wechat.js +0 -15
- package/lib/PageContainer/PageContainer.android.js +0 -1
- package/lib/PageContainer/PageContainer.ios.js +0 -1
- package/lib/PageContainer/PageContainer.web.js +0 -90
- package/lib/PageContainer/index.android.js +0 -1
- package/lib/PageContainer/index.ios.js +0 -1
- package/lib/PageContainer/index.tuya.js +0 -3
- package/lib/PageContainer/index.web.js +0 -3
- package/lib/PageContainer/index.wechat.js +0 -3
- package/lib/PageContainer/props.android.js +0 -1
- package/lib/PageContainer/props.ios.js +0 -1
- package/lib/PageContainer/props.tuya.js +0 -9
- package/lib/PageContainer/props.web.js +0 -9
- package/lib/PageContainer/props.wechat.js +0 -9
- package/lib/Picker/Picker.android.js +0 -1
- package/lib/Picker/Picker.ios.js +0 -1
- package/lib/Picker/Picker.web.js +0 -74
- package/lib/Picker/index.android.js +0 -1
- package/lib/Picker/index.ios.js +0 -1
- package/lib/Picker/index.tuya.js +0 -3
- package/lib/Picker/index.web.js +0 -3
- package/lib/Picker/index.wechat.js +0 -3
- package/lib/Picker/props.android.js +0 -1
- package/lib/Picker/props.ios.js +0 -1
- package/lib/Picker/props.tuya.js +0 -4
- package/lib/Picker/props.web.js +0 -4
- package/lib/Picker/props.wechat.js +0 -4
- package/lib/PickerView/PickerView.android.js +0 -1
- package/lib/PickerView/PickerView.ios.js +0 -1
- package/lib/PickerView/PickerView.web.js +0 -76
- package/lib/PickerView/index.android.js +0 -1
- package/lib/PickerView/index.ios.js +0 -1
- package/lib/PickerView/index.tuya.js +0 -3
- package/lib/PickerView/index.web.js +0 -3
- package/lib/PickerView/index.wechat.js +0 -3
- package/lib/PickerView/props.android.js +0 -1
- package/lib/PickerView/props.ios.js +0 -1
- package/lib/PickerView/props.tuya.js +0 -1
- package/lib/PickerView/props.web.js +0 -1
- package/lib/PickerView/props.wechat.js +0 -1
- package/lib/PickerViewColumn/PickerViewColumn.android.js +0 -1
- package/lib/PickerViewColumn/PickerViewColumn.ios.js +0 -1
- package/lib/PickerViewColumn/PickerViewColumn.web.js +0 -14
- package/lib/PickerViewColumn/index.android.js +0 -1
- package/lib/PickerViewColumn/index.ios.js +0 -1
- package/lib/PickerViewColumn/index.tuya.js +0 -3
- package/lib/PickerViewColumn/index.web.js +0 -3
- package/lib/PickerViewColumn/index.wechat.js +0 -3
- package/lib/PickerViewColumn/props.android.js +0 -1
- package/lib/PickerViewColumn/props.ios.js +0 -1
- package/lib/PickerViewColumn/props.tuya.js +0 -1
- package/lib/PickerViewColumn/props.web.js +0 -1
- package/lib/PickerViewColumn/props.wechat.js +0 -1
- package/lib/RadialGradient/RadialGradient.android.js +0 -1
- package/lib/RadialGradient/RadialGradient.ios.js +0 -1
- package/lib/RadialGradient/RadialGradient.web.js +0 -8
- package/lib/RadialGradient/index.android.js +0 -1
- package/lib/RadialGradient/index.ios.js +0 -1
- package/lib/RadialGradient/index.tuya.js +0 -3
- package/lib/RadialGradient/index.web.js +0 -3
- package/lib/RadialGradient/index.wechat.js +0 -3
- package/lib/RadialGradient/props.android.js +0 -1
- package/lib/RadialGradient/props.ios.js +0 -1
- package/lib/RadialGradient/props.tuya.js +0 -16
- package/lib/RadialGradient/props.web.js +0 -16
- package/lib/RadialGradient/props.wechat.js +0 -16
- package/lib/Radio/Radio.android.js +0 -1
- package/lib/Radio/Radio.ios.js +0 -1
- package/lib/Radio/Radio.web.js +0 -10
- package/lib/Radio/index.android.js +0 -1
- package/lib/Radio/index.ios.js +0 -1
- package/lib/Radio/index.tuya.js +0 -3
- package/lib/Radio/index.web.js +0 -3
- package/lib/Radio/index.wechat.js +0 -3
- package/lib/Radio/props.android.js +0 -1
- package/lib/Radio/props.ios.js +0 -1
- package/lib/Radio/props.tuya.js +0 -1
- package/lib/Radio/props.web.js +0 -1
- package/lib/Radio/props.wechat.js +0 -1
- package/lib/RadioGroup/RadioGroup.android.js +0 -1
- package/lib/RadioGroup/RadioGroup.ios.js +0 -1
- package/lib/RadioGroup/RadioGroup.web.js +0 -57
- package/lib/RadioGroup/index.android.js +0 -1
- package/lib/RadioGroup/index.ios.js +0 -1
- package/lib/RadioGroup/index.tuya.js +0 -3
- package/lib/RadioGroup/index.web.js +0 -3
- package/lib/RadioGroup/index.wechat.js +0 -3
- package/lib/RadioGroup/props.android.js +0 -1
- package/lib/RadioGroup/props.ios.js +0 -1
- package/lib/RadioGroup/props.tuya.js +0 -1
- package/lib/RadioGroup/props.web.js +0 -1
- package/lib/RadioGroup/props.wechat.js +0 -1
- package/lib/RichText/RichText.android.js +0 -1
- package/lib/RichText/RichText.ios.js +0 -1
- package/lib/RichText/RichText.tuya.js +0 -9
- package/lib/RichText/RichText.wechat.js +0 -9
- package/lib/RichText/index.android.js +0 -1
- package/lib/RichText/index.ios.js +0 -1
- package/lib/RichText/index.tuya.js +0 -3
- package/lib/RichText/index.web.js +0 -3
- package/lib/RichText/index.wechat.js +0 -3
- package/lib/RichText/props.android.js +0 -0
- package/lib/RichText/props.ios.js +0 -0
- package/lib/RichText/props.tuya.js +0 -1
- package/lib/RichText/props.web.js +0 -1
- package/lib/RichText/props.wechat.js +0 -1
- package/lib/ScrollView/ScrollView.android.js +0 -1
- package/lib/ScrollView/ScrollView.ios.js +0 -1
- package/lib/ScrollView/ScrollView.web.js +0 -54
- package/lib/ScrollView/index.android.js +0 -1
- package/lib/ScrollView/index.ios.js +0 -1
- package/lib/ScrollView/index.tuya.js +0 -3
- package/lib/ScrollView/index.web.js +0 -3
- package/lib/ScrollView/index.wechat.js +0 -3
- package/lib/ScrollView/props.android.js +0 -1
- package/lib/ScrollView/props.ios.js +0 -1
- package/lib/ScrollView/props.tuya.js +0 -5
- package/lib/ScrollView/props.web.js +0 -5
- package/lib/ScrollView/props.wechat.js +0 -5
- package/lib/Slider/Slider.android.js +0 -1
- package/lib/Slider/Slider.ios.js +0 -1
- package/lib/Slider/Slider.web.js +0 -39
- package/lib/Slider/index.android.js +0 -1
- package/lib/Slider/index.ios.js +0 -1
- package/lib/Slider/index.tuya.js +0 -3
- package/lib/Slider/index.web.js +0 -3
- package/lib/Slider/index.wechat.js +0 -3
- package/lib/Slider/props.android.js +0 -1
- package/lib/Slider/props.ios.js +0 -1
- package/lib/Slider/props.tuya.js +0 -11
- package/lib/Slider/props.web.js +0 -11
- package/lib/Slider/props.wechat.js +0 -11
- package/lib/Swiper/Swiper.android.js +0 -1
- package/lib/Swiper/Swiper.ios.js +0 -1
- package/lib/Swiper/Swiper.web.js +0 -74
- package/lib/Swiper/index.android.js +0 -1
- package/lib/Swiper/index.ios.js +0 -1
- package/lib/Swiper/index.tuya.js +0 -3
- package/lib/Swiper/index.web.js +0 -3
- package/lib/Swiper/index.wechat.js +0 -3
- package/lib/Swiper/props.android.js +0 -1
- package/lib/Swiper/props.ios.js +0 -1
- package/lib/Swiper/props.tuya.js +0 -16
- package/lib/Swiper/props.web.js +0 -16
- package/lib/Swiper/props.wechat.js +0 -16
- package/lib/SwiperItem/SwiperItem.android.js +0 -1
- package/lib/SwiperItem/SwiperItem.ios.js +0 -1
- package/lib/SwiperItem/SwiperItem.web.js +0 -14
- package/lib/SwiperItem/index.android.js +0 -1
- package/lib/SwiperItem/index.ios.js +0 -1
- package/lib/SwiperItem/index.tuya.js +0 -3
- package/lib/SwiperItem/index.web.js +0 -3
- package/lib/SwiperItem/index.wechat.js +0 -3
- package/lib/SwiperItem/props.android.js +0 -1
- package/lib/SwiperItem/props.ios.js +0 -1
- package/lib/SwiperItem/props.tuya.js +0 -1
- package/lib/SwiperItem/props.web.js +0 -1
- package/lib/SwiperItem/props.wechat.js +0 -1
- package/lib/Switch/Switch.android.js +0 -1
- package/lib/Switch/Switch.ios.js +0 -1
- package/lib/Switch/Switch.web.js +0 -27
- package/lib/Switch/index.android.js +0 -1
- package/lib/Switch/index.ios.js +0 -1
- package/lib/Switch/index.tuya.js +0 -3
- package/lib/Switch/index.web.js +0 -3
- package/lib/Switch/index.wechat.js +0 -3
- package/lib/Switch/props.android.js +0 -1
- package/lib/Switch/props.ios.js +0 -1
- package/lib/Switch/props.tuya.js +0 -5
- package/lib/Switch/props.web.js +0 -5
- package/lib/Switch/props.wechat.js +0 -5
- package/lib/Text/Text.android.js +0 -1
- package/lib/Text/Text.ios.js +0 -1
- package/lib/Text/Text.web.js +0 -13
- package/lib/Text/index.android.js +0 -1
- package/lib/Text/index.ios.js +0 -1
- package/lib/Text/index.tuya.js +0 -3
- package/lib/Text/index.web.js +0 -3
- package/lib/Text/index.wechat.js +0 -3
- package/lib/Text/props.android.js +0 -1
- package/lib/Text/props.ios.js +0 -1
- package/lib/Text/props.tuya.js +0 -1
- package/lib/Text/props.web.js +0 -1
- package/lib/Text/props.wechat.js +0 -1
- package/lib/Textarea/Textarea.android.js +0 -1
- package/lib/Textarea/Textarea.ios.js +0 -1
- package/lib/Textarea/Textarea.web.js +0 -66
- package/lib/Textarea/index.android.js +0 -1
- package/lib/Textarea/index.ios.js +0 -1
- package/lib/Textarea/index.tuya.js +0 -3
- package/lib/Textarea/index.web.js +0 -3
- package/lib/Textarea/index.wechat.js +0 -3
- package/lib/Textarea/props.android.js +0 -1
- package/lib/Textarea/props.ios.js +0 -1
- package/lib/Textarea/props.tuya.js +0 -1
- package/lib/Textarea/props.web.js +0 -1
- package/lib/Textarea/props.wechat.js +0 -1
- package/lib/TimePicker/TimePicker.android.js +0 -1
- package/lib/TimePicker/TimePicker.ios.js +0 -1
- package/lib/TimePicker/TimePicker.web.js +0 -41
- package/lib/TimePicker/index.android.js +0 -1
- package/lib/TimePicker/index.ios.js +0 -1
- package/lib/TimePicker/index.tuya.js +0 -3
- package/lib/TimePicker/index.web.js +0 -3
- package/lib/TimePicker/index.wechat.js +0 -3
- package/lib/TimePicker/props.android.js +0 -1
- package/lib/TimePicker/props.ios.js +0 -1
- package/lib/TimePicker/props.tuya.js +0 -6
- package/lib/TimePicker/props.web.js +0 -6
- package/lib/TimePicker/props.wechat.js +0 -6
- package/lib/View/View.android.js +0 -1
- package/lib/View/View.ios.js +0 -1
- package/lib/View/View.web.js +0 -71
- package/lib/View/index.android.js +0 -1
- package/lib/View/index.ios.js +0 -1
- package/lib/View/index.tuya.js +0 -3
- package/lib/View/index.web.js +0 -3
- package/lib/View/index.wechat.js +0 -3
- package/lib/View/props.android.js +0 -1
- package/lib/View/props.ios.js +0 -1
- package/lib/View/props.tuya.js +0 -4
- package/lib/View/props.web.js +0 -4
- package/lib/View/props.wechat.js +0 -4
- package/lib/assets/icons.android.js +0 -1
- package/lib/assets/icons.ios.js +0 -1
- package/lib/assets/icons.tuya.js +0 -7
- package/lib/assets/icons.web.js +0 -7
- package/lib/assets/icons.wechat.js +0 -7
- package/lib/core/index.android.js +0 -1
- package/lib/core/index.ios.js +0 -1
- package/lib/core/index.tuya.js +0 -25
- package/lib/core/index.web.js +0 -25
- package/lib/core/index.wechat.js +0 -25
- package/lib/index.android.js +0 -1
- package/lib/index.ios.js +0 -1
- package/lib/index.tuya.js +0 -33
- package/lib/index.web.js +0 -33
- package/lib/index.wechat.js +0 -33
- package/lib/types/event.android.js +0 -0
- package/lib/types/event.ios.js +0 -0
- package/lib/types/event.tuya.js +0 -1
- package/lib/types/event.web.js +0 -1
- package/lib/types/event.wechat.js +0 -1
- package/lib/types/index.android.js +0 -1
- package/lib/types/index.ios.js +0 -1
- package/lib/types/index.tuya.js +0 -9
- package/lib/types/index.web.js +0 -9
- package/lib/types/index.wechat.js +0 -9
- package/lib/utils/handleProps.android.js +0 -1
- package/lib/utils/handleProps.ios.js +0 -1
- package/lib/utils/handleProps.tuya.js +0 -78
- package/lib/utils/handleProps.web.js +0 -78
- package/lib/utils/handleProps.wechat.js +0 -78
- package/lib/utils/index.android.js +0 -1
- package/lib/utils/index.ios.js +0 -1
- package/lib/utils/index.tuya.js +0 -90
- package/lib/utils/index.web.js +0 -90
- package/lib/utils/index.wechat.js +0 -90
- package/lib/utils/interface.android.js +0 -1
- package/lib/utils/interface.ios.js +0 -1
- package/lib/utils/interface.tuya.js +0 -1
- package/lib/utils/interface.web.js +0 -1
- package/lib/utils/interface.wechat.js +0 -1
@@ -0,0 +1,219 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
4
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
9
|
+
var _excluded = ["src", "mode", "style"];
|
10
|
+
import "core-js/modules/es.array.concat.js";
|
11
|
+
import React from 'react';
|
12
|
+
import { Image, StyleSheet } from 'react-native';
|
13
|
+
import { defaultImageProps } from './props';
|
14
|
+
var resizeModeMap = {
|
15
|
+
scaleToFill: 'stretch',
|
16
|
+
aspectFit: 'contain',
|
17
|
+
aspectFill: 'cover',
|
18
|
+
center: 'center'
|
19
|
+
};
|
20
|
+
export var _Image = /*#__PURE__*/function (_React$Component) {
|
21
|
+
_inherits(_Image, _React$Component);
|
22
|
+
|
23
|
+
var _super = _createSuper(_Image);
|
24
|
+
|
25
|
+
function _Image() {
|
26
|
+
var _this;
|
27
|
+
|
28
|
+
_classCallCheck(this, _Image);
|
29
|
+
|
30
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
31
|
+
args[_key] = arguments[_key];
|
32
|
+
}
|
33
|
+
|
34
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
35
|
+
|
36
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
37
|
+
ratio: 0,
|
38
|
+
layoutWidth: 0
|
39
|
+
});
|
40
|
+
|
41
|
+
_defineProperty(_assertThisInitialized(_this), "hasLayout", false);
|
42
|
+
|
43
|
+
_defineProperty(_assertThisInitialized(_this), "_onLoad", function () {
|
44
|
+
var _this$props = _this.props,
|
45
|
+
onLoad = _this$props.onLoad,
|
46
|
+
src = _this$props.src;
|
47
|
+
|
48
|
+
if (typeof onLoad === 'function') {
|
49
|
+
if (typeof src === 'string') {
|
50
|
+
Image.getSize(src, function (width, height) {
|
51
|
+
onLoad({
|
52
|
+
width: width,
|
53
|
+
height: height,
|
54
|
+
origin: null
|
55
|
+
});
|
56
|
+
}, function () {
|
57
|
+
onLoad({
|
58
|
+
width: 0,
|
59
|
+
height: 0,
|
60
|
+
origin: null
|
61
|
+
});
|
62
|
+
});
|
63
|
+
} else {
|
64
|
+
var iras = Image.resolveAssetSource(typeof src === 'string' ? {
|
65
|
+
uri: src
|
66
|
+
} : src);
|
67
|
+
|
68
|
+
var _ref = iras || {
|
69
|
+
width: 0,
|
70
|
+
height: 0
|
71
|
+
},
|
72
|
+
width = _ref.width,
|
73
|
+
height = _ref.height;
|
74
|
+
|
75
|
+
onLoad({
|
76
|
+
width: width,
|
77
|
+
height: height,
|
78
|
+
origin: null
|
79
|
+
});
|
80
|
+
}
|
81
|
+
}
|
82
|
+
});
|
83
|
+
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "_onError", function () {
|
85
|
+
var onError = _this.props.onError;
|
86
|
+
!!onError && onError({
|
87
|
+
errMsg: 'Image is on error',
|
88
|
+
origin: null
|
89
|
+
});
|
90
|
+
});
|
91
|
+
|
92
|
+
_defineProperty(_assertThisInitialized(_this), "onLayout", function (event) {
|
93
|
+
var _this$props2 = _this.props,
|
94
|
+
mode = _this$props2.mode,
|
95
|
+
style = _this$props2.style;
|
96
|
+
var layoutWidth = event.nativeEvent.layout.width;
|
97
|
+
var flattenStyle = StyleSheet.flatten(style) || {};
|
98
|
+
|
99
|
+
if (mode === 'widthFix' && typeof flattenStyle.width === 'string') {
|
100
|
+
if (_this.hasLayout) return;
|
101
|
+
|
102
|
+
_this.setState({
|
103
|
+
layoutWidth: layoutWidth
|
104
|
+
});
|
105
|
+
}
|
106
|
+
|
107
|
+
if (_this.state.ratio) {
|
108
|
+
_this.hasLayout = true;
|
109
|
+
}
|
110
|
+
});
|
111
|
+
|
112
|
+
_defineProperty(_assertThisInitialized(_this), "loadImg", function (props) {
|
113
|
+
var mode = props.mode,
|
114
|
+
src = props.src;
|
115
|
+
if (mode !== 'widthFix') return;
|
116
|
+
|
117
|
+
if (typeof src === 'string') {
|
118
|
+
Image.getSize(props.src, function (width, height) {
|
119
|
+
if (_this.hasLayout) return;
|
120
|
+
|
121
|
+
_this.setState({
|
122
|
+
ratio: height / width
|
123
|
+
});
|
124
|
+
});
|
125
|
+
} else {
|
126
|
+
var source = typeof props.src === 'string' ? {
|
127
|
+
uri: props.src
|
128
|
+
} : props.src;
|
129
|
+
|
130
|
+
var _ref2 = Image.resolveAssetSource(source) || {},
|
131
|
+
width = _ref2.width,
|
132
|
+
height = _ref2.height;
|
133
|
+
|
134
|
+
if (_this.hasLayout && !!_this.state.ratio) return;
|
135
|
+
|
136
|
+
_this.setState({
|
137
|
+
ratio: height / width
|
138
|
+
});
|
139
|
+
}
|
140
|
+
});
|
141
|
+
|
142
|
+
return _this;
|
143
|
+
}
|
144
|
+
|
145
|
+
_createClass(_Image, [{
|
146
|
+
key: "componentDidMount",
|
147
|
+
value: function componentDidMount() {
|
148
|
+
this.loadImg(this.props);
|
149
|
+
}
|
150
|
+
}, {
|
151
|
+
key: "shouldComponentUpdate",
|
152
|
+
value: function shouldComponentUpdate(nextProps) {
|
153
|
+
if (nextProps.src !== this.props.src) {
|
154
|
+
this.hasLayout = false;
|
155
|
+
}
|
156
|
+
|
157
|
+
return true;
|
158
|
+
}
|
159
|
+
}, {
|
160
|
+
key: "componentDidUpdate",
|
161
|
+
value: function componentDidUpdate(prevProps) {
|
162
|
+
if (prevProps.src !== this.props.src) {
|
163
|
+
this.loadImg(this.props);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}, {
|
167
|
+
key: "render",
|
168
|
+
value: function render() {
|
169
|
+
var _this2 = this;
|
170
|
+
|
171
|
+
var _this$props3 = this.props,
|
172
|
+
_this$props3$src = _this$props3.src,
|
173
|
+
src = _this$props3$src === void 0 ? '' : _this$props3$src,
|
174
|
+
_this$props3$mode = _this$props3.mode,
|
175
|
+
mode = _this$props3$mode === void 0 ? 'scaleToFill' : _this$props3$mode,
|
176
|
+
style = _this$props3.style,
|
177
|
+
rest = _objectWithoutProperties(_this$props3, _excluded);
|
178
|
+
|
179
|
+
var source = typeof src === 'string' ? {
|
180
|
+
uri: src
|
181
|
+
} : src;
|
182
|
+
var resizeMode = resizeModeMap[mode];
|
183
|
+
var flattenStyle = StyleSheet.flatten(style) || {};
|
184
|
+
var defaultHeight = flattenStyle.height || 225;
|
185
|
+
|
186
|
+
var imageHeight = function () {
|
187
|
+
if (mode === 'widthFix') {
|
188
|
+
if (typeof flattenStyle.width === 'string') {
|
189
|
+
return _this2.state.layoutWidth * _this2.state.ratio;
|
190
|
+
} else if (typeof flattenStyle.width === 'number') {
|
191
|
+
return flattenStyle.width * _this2.state.ratio;
|
192
|
+
} else {
|
193
|
+
return 300 * _this2.state.ratio;
|
194
|
+
}
|
195
|
+
} else {
|
196
|
+
return defaultHeight;
|
197
|
+
}
|
198
|
+
}();
|
199
|
+
|
200
|
+
return /*#__PURE__*/React.createElement(Image, _extends({}, rest, {
|
201
|
+
source: source,
|
202
|
+
resizeMode: resizeMode,
|
203
|
+
onLoad: this._onLoad,
|
204
|
+
onError: this._onError,
|
205
|
+
style: [{
|
206
|
+
width: 300
|
207
|
+
}, style, {
|
208
|
+
height: imageHeight
|
209
|
+
}]
|
210
|
+
}));
|
211
|
+
}
|
212
|
+
}]);
|
213
|
+
|
214
|
+
return _Image;
|
215
|
+
}(React.Component);
|
216
|
+
|
217
|
+
_defineProperty(_Image, "defaultProps", defaultImageProps);
|
218
|
+
|
219
|
+
export default _Image;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Image as _Image } from "@ray-core/wechat/esm/hostComponents/Image/index";
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
@@ -6,6 +5,7 @@ var _excluded = ["style", "className", "onClick", "onLongClick", "onTouchCancel"
|
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import * as React from 'react';
|
8
7
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
8
|
+
import { Image as RemaxImage } from '@ray-core/wechat';
|
9
9
|
|
10
10
|
var Image = function (props) {
|
11
11
|
var style = props.style,
|
@@ -34,7 +34,7 @@ var Image = function (props) {
|
|
34
34
|
touching = _useTouch2[0],
|
35
35
|
handlers = _useTouch2[1];
|
36
36
|
|
37
|
-
return /*#__PURE__*/React.createElement(
|
37
|
+
return /*#__PURE__*/React.createElement(RemaxImage, _extends({
|
38
38
|
style: inlineStyle(style),
|
39
39
|
className: clsx('ray-image', className),
|
40
40
|
mode: mode,
|
@@ -0,0 +1,212 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
4
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
5
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
6
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
8
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
9
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
10
|
+
var _excluded = ["style", "value", "type", "password", "placeholder", "disabled", "maxLength", "focus", "confirmType", "selectionStart", "selectionEnd", "cursor", "_multiline", "_autoHeight"];
|
11
|
+
import "core-js/modules/es.array.concat.js";
|
12
|
+
import React from 'react';
|
13
|
+
import { Platform, TextInput } from 'react-native';
|
14
|
+
import { defaultInputProps } from './props';
|
15
|
+
var keyboardTypeMap = {
|
16
|
+
text: 'default',
|
17
|
+
number: 'numeric',
|
18
|
+
idcard: 'default',
|
19
|
+
digit: Platform.select({
|
20
|
+
ios: 'decimal-pad',
|
21
|
+
android: 'numeric'
|
22
|
+
}) || ''
|
23
|
+
};
|
24
|
+
|
25
|
+
var Checkbox = /*#__PURE__*/function (_React$Component) {
|
26
|
+
_inherits(Checkbox, _React$Component);
|
27
|
+
|
28
|
+
var _super = _createSuper(Checkbox);
|
29
|
+
|
30
|
+
function Checkbox() {
|
31
|
+
var _this;
|
32
|
+
|
33
|
+
_classCallCheck(this, Checkbox);
|
34
|
+
|
35
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
36
|
+
args[_key] = arguments[_key];
|
37
|
+
}
|
38
|
+
|
39
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
40
|
+
|
41
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
42
|
+
returnValue: undefined,
|
43
|
+
height: 0,
|
44
|
+
value: undefined
|
45
|
+
});
|
46
|
+
|
47
|
+
_defineProperty(_assertThisInitialized(_this), "_handleChangeText", function (text) {
|
48
|
+
var onInput = _this.props.onInput;
|
49
|
+
_this.tmpValue = text || '';
|
50
|
+
|
51
|
+
_this.setState({
|
52
|
+
returnValue: text
|
53
|
+
});
|
54
|
+
|
55
|
+
typeof onInput === 'function' && onInput({
|
56
|
+
type: 'input',
|
57
|
+
value: text,
|
58
|
+
origin: null
|
59
|
+
});
|
60
|
+
});
|
61
|
+
|
62
|
+
_defineProperty(_assertThisInitialized(_this), "_handleSubmitEditing", function (event) {
|
63
|
+
var _this$props = _this.props,
|
64
|
+
onConfirm = _this$props.onConfirm,
|
65
|
+
_multiline = _this$props._multiline;
|
66
|
+
if (_multiline) return;
|
67
|
+
typeof onConfirm === 'function' && onConfirm({
|
68
|
+
type: 'confirm',
|
69
|
+
value: _this.tmpValue,
|
70
|
+
origin: event
|
71
|
+
});
|
72
|
+
});
|
73
|
+
|
74
|
+
_defineProperty(_assertThisInitialized(_this), "_handleBlur", function (event) {
|
75
|
+
var onBlur = _this.props.onBlur;
|
76
|
+
typeof onBlur === 'function' && onBlur({
|
77
|
+
type: 'blur',
|
78
|
+
value: _this.tmpValue,
|
79
|
+
origin: event
|
80
|
+
});
|
81
|
+
});
|
82
|
+
|
83
|
+
_defineProperty(_assertThisInitialized(_this), "_handleFocus", function (event) {
|
84
|
+
var onFocus = _this.props.onFocus;
|
85
|
+
var returnValue = _this.state.returnValue;
|
86
|
+
_this.tmpValue = returnValue || '';
|
87
|
+
typeof onFocus === 'function' && onFocus({
|
88
|
+
type: 'focus',
|
89
|
+
value: _this.tmpValue,
|
90
|
+
origin: event
|
91
|
+
});
|
92
|
+
});
|
93
|
+
|
94
|
+
_defineProperty(_assertThisInitialized(_this), "onContentSizeChange", function (event) {
|
95
|
+
var _event$nativeEvent$co = event.nativeEvent.contentSize,
|
96
|
+
width = _event$nativeEvent$co.width,
|
97
|
+
height = _event$nativeEvent$co.height;
|
98
|
+
|
99
|
+
if (width && height) {
|
100
|
+
var _this$props2 = _this.props,
|
101
|
+
_multiline = _this$props2._multiline,
|
102
|
+
_autoHeight = _this$props2._autoHeight,
|
103
|
+
_onLineChange = _this$props2._onLineChange;
|
104
|
+
if (!_multiline || !_autoHeight || height === _this.state.height) return;
|
105
|
+
_this.lineCount += height > _this.state.height ? 1 : -1;
|
106
|
+
console.log('lineCount', _this.lineCount, height);
|
107
|
+
|
108
|
+
_onLineChange({
|
109
|
+
height: height,
|
110
|
+
lineCount: _this.lineCount,
|
111
|
+
type: 'linechange'
|
112
|
+
});
|
113
|
+
|
114
|
+
_this.setState({
|
115
|
+
height: height
|
116
|
+
});
|
117
|
+
}
|
118
|
+
});
|
119
|
+
|
120
|
+
_defineProperty(_assertThisInitialized(_this), "_handleKeyPress", function (event) {
|
121
|
+
var onConfirm = _this.props.onConfirm;
|
122
|
+
var keyValue = event.nativeEvent.key;
|
123
|
+
if (keyValue !== 'Enter') return;
|
124
|
+
typeof onConfirm === 'function' && onConfirm({
|
125
|
+
type: 'confirm',
|
126
|
+
value: _this.tmpValue,
|
127
|
+
origin: event
|
128
|
+
});
|
129
|
+
});
|
130
|
+
|
131
|
+
return _this;
|
132
|
+
}
|
133
|
+
|
134
|
+
_createClass(Checkbox, [{
|
135
|
+
key: "render",
|
136
|
+
value: function render() {
|
137
|
+
var _this$props3 = this.props,
|
138
|
+
style = _this$props3.style,
|
139
|
+
value = _this$props3.value,
|
140
|
+
type = _this$props3.type,
|
141
|
+
password = _this$props3.password,
|
142
|
+
placeholder = _this$props3.placeholder,
|
143
|
+
disabled = _this$props3.disabled,
|
144
|
+
maxLength = _this$props3.maxLength,
|
145
|
+
focus = _this$props3.focus,
|
146
|
+
confirmType = _this$props3.confirmType,
|
147
|
+
selectionStart = _this$props3.selectionStart,
|
148
|
+
selectionEnd = _this$props3.selectionEnd,
|
149
|
+
cursor = _this$props3.cursor,
|
150
|
+
_multiline = _this$props3._multiline,
|
151
|
+
_autoHeight = _this$props3._autoHeight,
|
152
|
+
rest = _objectWithoutProperties(_this$props3, _excluded);
|
153
|
+
|
154
|
+
var selection = function () {
|
155
|
+
if (selectionStart >= 0 && selectionEnd >= 0) {
|
156
|
+
return {
|
157
|
+
start: selectionStart,
|
158
|
+
end: selectionEnd
|
159
|
+
};
|
160
|
+
} else if (typeof cursor === 'number') {
|
161
|
+
return {
|
162
|
+
start: cursor,
|
163
|
+
end: cursor
|
164
|
+
};
|
165
|
+
}
|
166
|
+
}();
|
167
|
+
|
168
|
+
var textAlignVertical = _multiline ? 'top' : 'auto';
|
169
|
+
return /*#__PURE__*/React.createElement(TextInput, _extends({}, rest, {
|
170
|
+
style: [{
|
171
|
+
padding: 4,
|
172
|
+
backgroundColor: '#FFF'
|
173
|
+
}, style, _multiline && _autoHeight && {
|
174
|
+
height: Math.max(35, this.state.height)
|
175
|
+
}],
|
176
|
+
defaultValue: value,
|
177
|
+
secureTextEntry: !!password,
|
178
|
+
placeholder: placeholder,
|
179
|
+
editable: !disabled,
|
180
|
+
maxLength: maxLength === -1 ? undefined : maxLength,
|
181
|
+
returnKeyType: confirmType,
|
182
|
+
keyboardType: keyboardTypeMap[type],
|
183
|
+
autoFocus: !!focus,
|
184
|
+
selection: selection,
|
185
|
+
value: this.state.returnValue,
|
186
|
+
onChangeText: this._handleChangeText,
|
187
|
+
onBlur: this._handleBlur,
|
188
|
+
onKeyPress: this._handleKeyPress,
|
189
|
+
onFocus: this._handleFocus,
|
190
|
+
multiline: !!_multiline,
|
191
|
+
onEndEditing: this._handleSubmitEditing,
|
192
|
+
onSubmitEditing: this._handleSubmitEditing,
|
193
|
+
textAlignVertical: textAlignVertical,
|
194
|
+
onContentSizeChange: this.onContentSizeChange,
|
195
|
+
underlineColorAndroid: "rgba(0,0,0,0)"
|
196
|
+
}));
|
197
|
+
}
|
198
|
+
}], [{
|
199
|
+
key: "getDerivedStateFromProps",
|
200
|
+
value: function getDerivedStateFromProps(props, state) {
|
201
|
+
return props.value !== state.value ? _objectSpread(_objectSpread({}, state), {}, {
|
202
|
+
returnValue: props.value
|
203
|
+
}) : null;
|
204
|
+
}
|
205
|
+
}]);
|
206
|
+
|
207
|
+
return Checkbox;
|
208
|
+
}(React.Component);
|
209
|
+
|
210
|
+
_defineProperty(Checkbox, "defaultProps", defaultInputProps);
|
211
|
+
|
212
|
+
export { Checkbox as default };
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Input as _Input } from "@ray-core/wechat/esm/hostComponents/Input/index";
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
@@ -6,6 +5,7 @@ var _excluded = ["name", "id", "className", "style", "disabled", "type", "value"
|
|
6
5
|
import "core-js/modules/es.function.name.js";
|
7
6
|
import * as React from 'react';
|
8
7
|
import clsx from 'clsx';
|
8
|
+
import { Input as RemaxInput } from '@ray-core/wechat';
|
9
9
|
import { inlineStyle } from '@ray-js/framework-shared';
|
10
10
|
import { defaultInputProps } from './props';
|
11
11
|
import { nextFrame } from '../core';
|
@@ -50,7 +50,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50
50
|
selectionStart: (internalValue === null || internalValue === void 0 ? void 0 : internalValue.length) || -1,
|
51
51
|
selectionEnd: (internalValue === null || internalValue === void 0 ? void 0 : internalValue.length) || -1
|
52
52
|
} : undefined;
|
53
|
-
return /*#__PURE__*/React.createElement(
|
53
|
+
return /*#__PURE__*/React.createElement(RemaxInput, _extends({
|
54
54
|
name: name //@ts-ignore
|
55
55
|
,
|
56
56
|
ref: ref,
|
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
|
+
|
3
|
+
var IpcPlayer = function () {
|
4
|
+
return /*#__PURE__*/React.createElement("div", null, "web\u7AEF\u6682\u672A\u5B9E\u73B0");
|
5
|
+
};
|
6
|
+
|
7
|
+
export default IpcPlayer;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
5
|
+
import React from 'react';
|
6
|
+
import { View } from 'react-native';
|
7
|
+
|
8
|
+
var Checkbox = /*#__PURE__*/function (_React$Component) {
|
9
|
+
_inherits(Checkbox, _React$Component);
|
10
|
+
|
11
|
+
var _super = _createSuper(Checkbox);
|
12
|
+
|
13
|
+
function Checkbox() {
|
14
|
+
_classCallCheck(this, Checkbox);
|
15
|
+
|
16
|
+
return _super.apply(this, arguments);
|
17
|
+
}
|
18
|
+
|
19
|
+
_createClass(Checkbox, [{
|
20
|
+
key: "render",
|
21
|
+
value: function render() {
|
22
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement("span", null, "\u672A\u5B9E\u73B0"));
|
23
|
+
}
|
24
|
+
}]);
|
25
|
+
|
26
|
+
return Checkbox;
|
27
|
+
}(React.Component);
|
28
|
+
|
29
|
+
export { Checkbox as default };
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Label as _Label } from "@ray-core/wechat/esm/hostComponents/Label/index";
|
2
1
|
import * as React from 'react';
|
3
2
|
import clsx from 'clsx';
|
4
3
|
import { inlineStyle } from '@ray-js/framework-shared';
|
4
|
+
import { Label as RemaxLabel } from '@ray-core/wechat';
|
5
5
|
import styles from './index.module.less';
|
6
6
|
|
7
7
|
var Label = function (props) {
|
@@ -10,7 +10,7 @@ var Label = function (props) {
|
|
10
10
|
className = props.className,
|
11
11
|
htmlFor = props.htmlFor,
|
12
12
|
children = props.children;
|
13
|
-
return /*#__PURE__*/React.createElement(
|
13
|
+
return /*#__PURE__*/React.createElement(RemaxLabel, {
|
14
14
|
for: htmlFor,
|
15
15
|
id: id,
|
16
16
|
style: inlineStyle(style),
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import "core-js/modules/es.object.to-string.js";
|
2
|
+
import "core-js/modules/es.regexp.to-string.js";
|
3
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
4
|
+
import "core-js/modules/es.object.keys.js";
|
5
|
+
import "core-js/modules/es.array.map.js";
|
6
|
+
import color from 'color';
|
7
|
+
import React from 'react';
|
8
|
+
import { View } from 'react-native';
|
9
|
+
import Svg, { LinearGradient as Gradient, Defs, Stop, Rect } from 'react-native-svg';
|
10
|
+
import { NumberUtils } from '@ray-js/ray-panel-utils';
|
11
|
+
import { defaultLinearGradient } from './props';
|
12
|
+
var numToHexString = NumberUtils.numToHexString;
|
13
|
+
|
14
|
+
var LinearGradient = function (props) {
|
15
|
+
var style = props.style,
|
16
|
+
stops = props.stops,
|
17
|
+
x1 = props.x1,
|
18
|
+
x2 = props.x2,
|
19
|
+
y1 = props.y1,
|
20
|
+
y2 = props.y2,
|
21
|
+
height = props.height,
|
22
|
+
width = props.width,
|
23
|
+
children = props.children;
|
24
|
+
var gradientId = Math.random().toString(36).substring(7);
|
25
|
+
var stopView = [];
|
26
|
+
Object.keys(stops).forEach(function (k) {
|
27
|
+
var stopColor = color(stops[k]);
|
28
|
+
stopView.push( /*#__PURE__*/React.createElement(Stop, {
|
29
|
+
key: k,
|
30
|
+
offset: k,
|
31
|
+
stopColor: "#".concat(numToHexString(stopColor.rgbNumber(), 6)),
|
32
|
+
stopOpacity: stopColor.alpha()
|
33
|
+
}));
|
34
|
+
});
|
35
|
+
return /*#__PURE__*/React.createElement(View, {
|
36
|
+
style: [style, {
|
37
|
+
width: width,
|
38
|
+
height: height,
|
39
|
+
overflow: 'hidden'
|
40
|
+
}]
|
41
|
+
}, /*#__PURE__*/React.createElement(Svg, {
|
42
|
+
height: height,
|
43
|
+
width: width
|
44
|
+
}, /*#__PURE__*/React.createElement(Defs, null, /*#__PURE__*/React.createElement(Gradient, {
|
45
|
+
id: gradientId,
|
46
|
+
x1: x1,
|
47
|
+
x2: x2,
|
48
|
+
y1: y1,
|
49
|
+
y2: y2
|
50
|
+
}, stopView.map(function (d) {
|
51
|
+
return d;
|
52
|
+
}))), /*#__PURE__*/React.createElement(Rect, {
|
53
|
+
width: width,
|
54
|
+
height: height,
|
55
|
+
fill: "url(#".concat(gradientId, ")")
|
56
|
+
}), /*#__PURE__*/React.isValidElement(children) && children));
|
57
|
+
};
|
58
|
+
|
59
|
+
LinearGradient.default = defaultLinearGradient;
|
60
|
+
export default LinearGradient;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
7
|
+
import React from 'react';
|
8
|
+
import { Modal, StyleSheet, View, TouchableHighlight } from 'react-native';
|
9
|
+
var ALIGN = {
|
10
|
+
top: 'flex-start',
|
11
|
+
center: 'center',
|
12
|
+
bottom: 'flex-end'
|
13
|
+
};
|
14
|
+
|
15
|
+
var TYModal = /*#__PURE__*/function (_React$Component) {
|
16
|
+
_inherits(TYModal, _React$Component);
|
17
|
+
|
18
|
+
var _super = _createSuper(TYModal);
|
19
|
+
|
20
|
+
function TYModal(props) {
|
21
|
+
var _this;
|
22
|
+
|
23
|
+
_classCallCheck(this, TYModal);
|
24
|
+
|
25
|
+
_this = _super.call(this, props);
|
26
|
+
|
27
|
+
_defineProperty(_assertThisInitialized(_this), "_handleMaskPress", function () {
|
28
|
+
var onClickOverlay = _this.props.onClickOverlay;
|
29
|
+
typeof onClickOverlay === 'function' && onClickOverlay({
|
30
|
+
type: 'clickoverlay'
|
31
|
+
});
|
32
|
+
});
|
33
|
+
|
34
|
+
_this.state = {
|
35
|
+
visible: props.show
|
36
|
+
};
|
37
|
+
return _this;
|
38
|
+
}
|
39
|
+
|
40
|
+
_createClass(TYModal, [{
|
41
|
+
key: "componentDidUpdate",
|
42
|
+
value: function componentDidUpdate(prevProps) {
|
43
|
+
var show = this.props.show;
|
44
|
+
|
45
|
+
if (show !== prevProps.show) {
|
46
|
+
this.setState({
|
47
|
+
visible: !!show
|
48
|
+
});
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}, {
|
52
|
+
key: "render",
|
53
|
+
value: function render() {
|
54
|
+
var _this$props = this.props,
|
55
|
+
children = _this$props.children,
|
56
|
+
position = _this$props.position,
|
57
|
+
overlayStyle = _this$props.overlayStyle,
|
58
|
+
customStyle = _this$props.customStyle,
|
59
|
+
overlay = _this$props.overlay;
|
60
|
+
var visible = this.state.visible;
|
61
|
+
var maskColor = overlay ? 'rgba(0, 0, 0, 0.7)' : 'transparent';
|
62
|
+
var maskContainer = [StyleSheet.absoluteFill, position && {
|
63
|
+
justifyContent: ALIGN[position]
|
64
|
+
}, {
|
65
|
+
flex: 1,
|
66
|
+
backgroundColor: maskColor
|
67
|
+
}, overlayStyle];
|
68
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
69
|
+
animationType: "fade",
|
70
|
+
onRequestClose: this._handleMaskPress,
|
71
|
+
visible: visible,
|
72
|
+
transparent: true
|
73
|
+
}, /*#__PURE__*/React.createElement(TouchableHighlight, {
|
74
|
+
style: maskContainer,
|
75
|
+
underlayColor: maskColor,
|
76
|
+
onPress: this._handleMaskPress,
|
77
|
+
activeOpacity: 1
|
78
|
+
}, /*#__PURE__*/React.createElement(View, {
|
79
|
+
onStartShouldSetResponder: function onStartShouldSetResponder() {
|
80
|
+
return true;
|
81
|
+
},
|
82
|
+
style: customStyle
|
83
|
+
}, children)));
|
84
|
+
}
|
85
|
+
}]);
|
86
|
+
|
87
|
+
return TYModal;
|
88
|
+
}(React.Component);
|
89
|
+
|
90
|
+
_defineProperty(TYModal, "defaultProps", {
|
91
|
+
position: 'center',
|
92
|
+
onClickOverlay: null,
|
93
|
+
overlayStyle: null,
|
94
|
+
overlay: true,
|
95
|
+
customStyle: null
|
96
|
+
});
|
97
|
+
|
98
|
+
export default TYModal;
|