@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
@@ -1,10 +1,10 @@
|
|
1
|
-
import { Switch as _Switch } from "@ray-core/wechat/esm/hostComponents/Switch/index";
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
4
3
|
var _excluded = ["className", "style", "id", "onChange", "type", "color"];
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle } from '@ray-js/framework-shared';
|
7
|
+
import { Switch as RemaxSwitch } from '@ray-core/wechat';
|
8
8
|
import './index.module.less';
|
9
9
|
|
10
10
|
var Switch = function (props) {
|
@@ -17,7 +17,7 @@ var Switch = function (props) {
|
|
17
17
|
color = props.color,
|
18
18
|
restProps = _objectWithoutProperties(props, _excluded);
|
19
19
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
20
|
+
return /*#__PURE__*/React.createElement(RemaxSwitch, _extends({
|
21
21
|
id: id,
|
22
22
|
onChange: function handleChange(e) {
|
23
23
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["selectable", "onClick", "style", "children"];
|
4
|
+
import React from 'react';
|
5
|
+
import { Text } from 'react-native';
|
6
|
+
|
7
|
+
var _Text = function (props) {
|
8
|
+
var selectable = props.selectable,
|
9
|
+
onClick = props.onClick,
|
10
|
+
style = props.style,
|
11
|
+
children = props.children,
|
12
|
+
rest = _objectWithoutProperties(props, _excluded);
|
13
|
+
|
14
|
+
var clickProps = {
|
15
|
+
onPress: undefined
|
16
|
+
};
|
17
|
+
if (onClick) clickProps.onPress = function onTextClick(event) {
|
18
|
+
var nativeEvent = event.nativeEvent;
|
19
|
+
var timestamp = nativeEvent.timestamp,
|
20
|
+
pageX = nativeEvent.pageX,
|
21
|
+
pageY = nativeEvent.pageY;
|
22
|
+
typeof onClick === 'function' && onClick({
|
23
|
+
type: 'click',
|
24
|
+
timeStamp: timestamp,
|
25
|
+
pageX: pageX,
|
26
|
+
pageY: pageY,
|
27
|
+
origin: event
|
28
|
+
});
|
29
|
+
};
|
30
|
+
return /*#__PURE__*/React.createElement(Text, _extends({
|
31
|
+
selectable: !!selectable,
|
32
|
+
style: style
|
33
|
+
}, rest, clickProps), children);
|
34
|
+
};
|
35
|
+
|
36
|
+
_Text.displayName = '_Text';
|
37
|
+
export default _Text;
|
package/lib/Text/Text.wechat.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Text as _Text } from "@ray-core/wechat/esm/hostComponents/Text/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";
|
5
4
|
var _excluded = ["onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
|
6
5
|
import * as React from 'react';
|
6
|
+
import { Text as RemaxText } from '@ray-core/wechat';
|
7
7
|
import { useTouch } from '@ray-js/framework-shared';
|
8
8
|
|
9
9
|
var Text = function (props) {
|
@@ -27,7 +27,7 @@ var Text = function (props) {
|
|
27
27
|
touching = _useTouch2[0],
|
28
28
|
handlers = _useTouch2[1];
|
29
29
|
|
30
|
-
return /*#__PURE__*/React.createElement(
|
30
|
+
return /*#__PURE__*/React.createElement(RemaxText, _extends({}, restProps, handlers));
|
31
31
|
};
|
32
32
|
|
33
33
|
export default Text;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import Input from '../Input';
|
4
|
+
import { omit } from '../utils';
|
5
|
+
|
6
|
+
var _Textarea = function (props) {
|
7
|
+
var autoHeight = props.autoHeight,
|
8
|
+
onLineChange = props.onLineChange,
|
9
|
+
focus = props.focus,
|
10
|
+
maxLength = props.maxLength;
|
11
|
+
return /*#__PURE__*/React.createElement(Input, _extends({
|
12
|
+
_multiline: true,
|
13
|
+
_autoHeight: autoHeight,
|
14
|
+
_onLineChange: function _handleLineChange(event) {
|
15
|
+
// console
|
16
|
+
typeof onLineChange === 'function' && onLineChange(event);
|
17
|
+
},
|
18
|
+
focus: !!focus,
|
19
|
+
confirmType: "next"
|
20
|
+
}, omit(props, ['type', 'password', 'confirmType', 'confirmHold', 'autoHeight', 'onLineChange', 'maxLength']), {
|
21
|
+
maxLength: maxLength
|
22
|
+
}));
|
23
|
+
};
|
24
|
+
|
25
|
+
_Textarea.displayName = '_Textarea';
|
26
|
+
export default _Textarea;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Textarea as _Textarea } from "@ray-core/wechat/esm/hostComponents/Textarea/index";
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
4
3
|
var _excluded = ["id", "className", "style", "value", "placeholderStyle", "placeholder", "onInput", "onFocus", "onConfirm", "onBlur", "maxLength", "focus", "disabled", "name", "autoHeight"];
|
@@ -6,6 +5,7 @@ import "core-js/modules/es.function.name.js";
|
|
6
5
|
import * as React from 'react';
|
7
6
|
import clsx from 'clsx';
|
8
7
|
import { inlineStyle } from '@ray-js/framework-shared';
|
8
|
+
import { Textarea as RemaxTextarea } from '@ray-core/wechat';
|
9
9
|
import styles from './index.module.less';
|
10
10
|
var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
11
11
|
var id = props.id,
|
@@ -26,7 +26,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26
26
|
autoHeight = props.autoHeight,
|
27
27
|
restProps = _objectWithoutProperties(props, _excluded);
|
28
28
|
|
29
|
-
return /*#__PURE__*/React.createElement(
|
29
|
+
return /*#__PURE__*/React.createElement(RemaxTextarea, _extends({
|
30
30
|
name: name // @ts-ignore
|
31
31
|
,
|
32
32
|
ref: ref,
|
@@ -0,0 +1,319 @@
|
|
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 "core-js/modules/es.regexp.exec.js";
|
8
|
+
import "core-js/modules/es.string.split.js";
|
9
|
+
import "core-js/modules/es.number.constructor.js";
|
10
|
+
import "core-js/modules/es.array.index-of.js";
|
11
|
+
import "core-js/modules/es.array.concat.js";
|
12
|
+
import React from 'react';
|
13
|
+
import { View, Text, TouchableOpacity, StyleSheet, Platform } from 'react-native';
|
14
|
+
import { IDefaultTimePickerProps } from './props';
|
15
|
+
import Modal from '../Modal';
|
16
|
+
import PickerView from '../PickerView';
|
17
|
+
|
18
|
+
var TimerPicker = /*#__PURE__*/function (_React$Component) {
|
19
|
+
_inherits(TimerPicker, _React$Component);
|
20
|
+
|
21
|
+
var _super = _createSuper(TimerPicker);
|
22
|
+
|
23
|
+
function TimerPicker(props) {
|
24
|
+
var _this;
|
25
|
+
|
26
|
+
_classCallCheck(this, TimerPicker);
|
27
|
+
|
28
|
+
_this = _super.call(this, props);
|
29
|
+
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "getTimeRange", function () {
|
31
|
+
var _this$props = _this.props,
|
32
|
+
start = _this$props.start,
|
33
|
+
end = _this$props.end;
|
34
|
+
var startArr = start.split(':');
|
35
|
+
var endArr = end.split(':');
|
36
|
+
var startHour = Number(startArr[0]);
|
37
|
+
var startMinute = Number(startArr[1]);
|
38
|
+
var endHour = Number(endArr[0]);
|
39
|
+
var endMinute = Number(endArr[1]);
|
40
|
+
return {
|
41
|
+
startHour: startHour,
|
42
|
+
startMinute: startMinute,
|
43
|
+
endHour: endHour,
|
44
|
+
endMinute: endMinute
|
45
|
+
};
|
46
|
+
});
|
47
|
+
|
48
|
+
_defineProperty(_assertThisInitialized(_this), "getRange", function (value) {
|
49
|
+
var rangeObj = {};
|
50
|
+
var range = [];
|
51
|
+
var valueArr = value.split(':');
|
52
|
+
var hour = valueArr[0];
|
53
|
+
var hourRange = [];
|
54
|
+
|
55
|
+
var _this$getTimeRange = _this.getTimeRange(),
|
56
|
+
startHour = _this$getTimeRange.startHour,
|
57
|
+
startMinute = _this$getTimeRange.startMinute,
|
58
|
+
endHour = _this$getTimeRange.endHour,
|
59
|
+
endMinute = _this$getTimeRange.endMinute;
|
60
|
+
|
61
|
+
for (var i = startHour; endMinute === 0 ? i < endHour : i <= endHour; i++) {
|
62
|
+
var minuteRange = [];
|
63
|
+
|
64
|
+
if (i === startHour) {
|
65
|
+
for (var j = startMinute; j <= 59; j++) {
|
66
|
+
minuteRange.push(_this.calculateValue(j));
|
67
|
+
}
|
68
|
+
} else if (i === endHour) {
|
69
|
+
for (var _j = 0; _j <= endMinute; _j++) {
|
70
|
+
minuteRange.push(_this.calculateValue(_j));
|
71
|
+
}
|
72
|
+
} else if (i < endHour && i > startHour) {
|
73
|
+
for (var _j2 = 0; _j2 <= 59; _j2++) {
|
74
|
+
minuteRange.push(_this.calculateValue(_j2));
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
hourRange.push(_this.calculateValue(i));
|
79
|
+
rangeObj[_this.calculateValue(i)] = minuteRange;
|
80
|
+
}
|
81
|
+
|
82
|
+
range.push(hourRange, rangeObj[hour]);
|
83
|
+
return {
|
84
|
+
range: range,
|
85
|
+
rangeObj: rangeObj
|
86
|
+
};
|
87
|
+
});
|
88
|
+
|
89
|
+
_defineProperty(_assertThisInitialized(_this), "calculateValue", function (value) {
|
90
|
+
if (value < 10) {
|
91
|
+
return "0".concat(value);
|
92
|
+
} else {
|
93
|
+
return "".concat(value);
|
94
|
+
}
|
95
|
+
});
|
96
|
+
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "valueToIndex", function () {
|
98
|
+
var _this$state = _this.state,
|
99
|
+
changeValue = _this$state.changeValue,
|
100
|
+
range = _this$state.range;
|
101
|
+
var valueArr = changeValue.split(':');
|
102
|
+
var hour = valueArr[0];
|
103
|
+
var Minute = valueArr[1];
|
104
|
+
var hourIndex = range[0].indexOf(hour);
|
105
|
+
var minuteIndex = range[1].indexOf(Minute);
|
106
|
+
return [hourIndex, minuteIndex];
|
107
|
+
});
|
108
|
+
|
109
|
+
_defineProperty(_assertThisInitialized(_this), "_handleCancel", function () {
|
110
|
+
var onCancel = _this.props.onCancel;
|
111
|
+
var value = _this.state.value;
|
112
|
+
|
113
|
+
var _this$getRange = _this.getRange(value),
|
114
|
+
range = _this$getRange.range;
|
115
|
+
|
116
|
+
typeof onCancel === 'function' && onCancel({
|
117
|
+
type: 'cancel',
|
118
|
+
origin: null
|
119
|
+
});
|
120
|
+
|
121
|
+
_this.setState({
|
122
|
+
visible: false,
|
123
|
+
changeValue: value,
|
124
|
+
range: range
|
125
|
+
});
|
126
|
+
});
|
127
|
+
|
128
|
+
_defineProperty(_assertThisInitialized(_this), "_handleConfirm", function () {
|
129
|
+
var onChange = _this.props.onChange;
|
130
|
+
var changeValue = _this.state.changeValue;
|
131
|
+
typeof onChange === 'function' && onChange({
|
132
|
+
type: 'change',
|
133
|
+
value: changeValue,
|
134
|
+
origin: null
|
135
|
+
});
|
136
|
+
|
137
|
+
_this.setState({
|
138
|
+
visible: false
|
139
|
+
});
|
140
|
+
});
|
141
|
+
|
142
|
+
_defineProperty(_assertThisInitialized(_this), "_handlePickerChange", function (event, range) {
|
143
|
+
var value = event.value,
|
144
|
+
column = event.column; // 滑动之前的时间
|
145
|
+
|
146
|
+
var changeValue = _this.state.changeValue; // 初始时间 - 结束时间的对象{ hour: minute[]}
|
147
|
+
|
148
|
+
var _this$getRange2 = _this.getRange(changeValue),
|
149
|
+
rangeObj = _this$getRange2.rangeObj;
|
150
|
+
|
151
|
+
var valueArr = changeValue.split(':'); // 滑动操作前的小时
|
152
|
+
|
153
|
+
Number(valueArr[0]); // 滑动操作前的分钟
|
154
|
+
|
155
|
+
var beforeMinute = Number(valueArr[1]);
|
156
|
+
|
157
|
+
var _this$getTimeRange2 = _this.getTimeRange(),
|
158
|
+
startHour = _this$getTimeRange2.startHour,
|
159
|
+
startMinute = _this$getTimeRange2.startMinute,
|
160
|
+
endHour = _this$getTimeRange2.endHour,
|
161
|
+
endMinute = _this$getTimeRange2.endMinute; // 滑动后的小时(字符串)
|
162
|
+
|
163
|
+
|
164
|
+
var hourString = range[0][value[0]]; // 滑动后的小时(数字)
|
165
|
+
|
166
|
+
var hour = Number(hourString); // 滑动后的分钟(数字)
|
167
|
+
|
168
|
+
var minute; // 滑动的是小时轴(第一列)
|
169
|
+
|
170
|
+
if (column === 0) {
|
171
|
+
if (hour === startHour) {
|
172
|
+
// 分钟选择 Max[初始时间的分钟, 滑动前的分钟]
|
173
|
+
minute = Math.max(startMinute, beforeMinute);
|
174
|
+
} else if (hour === endHour) {
|
175
|
+
// 分钟选择 Min[结束时间的分钟, 滑动前的分钟]
|
176
|
+
minute = Math.min(endMinute, beforeMinute);
|
177
|
+
} else {
|
178
|
+
minute = beforeMinute;
|
179
|
+
}
|
180
|
+
} else {
|
181
|
+
// 滑动的是分钟轴(第二列)
|
182
|
+
// 滑动后小时对应的分钟数组
|
183
|
+
var minuteArr = rangeObj[range[0][value[0]]];
|
184
|
+
minute = Number(minuteArr[value[1]]);
|
185
|
+
}
|
186
|
+
|
187
|
+
var newValue = "".concat(_this.calculateValue(hour), ":").concat(_this.calculateValue(minute));
|
188
|
+
|
189
|
+
var _this$getRange3 = _this.getRange(newValue),
|
190
|
+
newRange = _this$getRange3.range;
|
191
|
+
|
192
|
+
_this.setState({
|
193
|
+
changeValue: newValue,
|
194
|
+
range: newRange
|
195
|
+
});
|
196
|
+
});
|
197
|
+
|
198
|
+
_defineProperty(_assertThisInitialized(_this), "renderTitleView", function () {
|
199
|
+
var _this$props2 = _this.props,
|
200
|
+
confirmText = _this$props2.confirmText,
|
201
|
+
cancelText = _this$props2.cancelText;
|
202
|
+
return /*#__PURE__*/React.createElement(View, {
|
203
|
+
style: styles.title
|
204
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
205
|
+
style: styles.button,
|
206
|
+
activeOpacity: 0.8,
|
207
|
+
onPress: _this._handleCancel
|
208
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
209
|
+
style: styles.text
|
210
|
+
}, cancelText)), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
211
|
+
style: styles.button,
|
212
|
+
activeOpacity: 0.8,
|
213
|
+
onPress: _this._handleConfirm
|
214
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
215
|
+
style: [styles.text, {
|
216
|
+
color: '#007AFF'
|
217
|
+
}]
|
218
|
+
}, confirmText)));
|
219
|
+
});
|
220
|
+
|
221
|
+
var _value = props.value || props.start;
|
222
|
+
|
223
|
+
var _this$getRange4 = _this.getRange(_value),
|
224
|
+
_range = _this$getRange4.range;
|
225
|
+
|
226
|
+
_this.state = {
|
227
|
+
visible: false,
|
228
|
+
value: _value,
|
229
|
+
changeValue: _value,
|
230
|
+
range: _range
|
231
|
+
};
|
232
|
+
return _this;
|
233
|
+
}
|
234
|
+
|
235
|
+
_createClass(TimerPicker, [{
|
236
|
+
key: "componentDidUpdate",
|
237
|
+
value: function componentDidUpdate(prevProps) {
|
238
|
+
var value = this.props.value;
|
239
|
+
|
240
|
+
if (value !== prevProps.value) {
|
241
|
+
var _this$getRange5 = this.getRange(value),
|
242
|
+
range = _this$getRange5.range;
|
243
|
+
|
244
|
+
this.setState({
|
245
|
+
value: value,
|
246
|
+
changeValue: value,
|
247
|
+
range: range
|
248
|
+
});
|
249
|
+
}
|
250
|
+
} // 获取开始时间 - 结束时间范围
|
251
|
+
|
252
|
+
}, {
|
253
|
+
key: "render",
|
254
|
+
value: function render() {
|
255
|
+
var _this2 = this;
|
256
|
+
|
257
|
+
var _this$props3 = this.props,
|
258
|
+
children = _this$props3.children,
|
259
|
+
disabled = _this$props3.disabled;
|
260
|
+
var _this$state2 = this.state,
|
261
|
+
visible = _this$state2.visible,
|
262
|
+
range = _this$state2.range;
|
263
|
+
var newValue = this.valueToIndex();
|
264
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
265
|
+
onPress: function onPress() {
|
266
|
+
return _this2.setState({
|
267
|
+
visible: true
|
268
|
+
});
|
269
|
+
},
|
270
|
+
disabled: disabled,
|
271
|
+
activeOpacity: 0.8
|
272
|
+
}, children), /*#__PURE__*/React.createElement(Modal, {
|
273
|
+
show: visible,
|
274
|
+
position: 'bottom'
|
275
|
+
}, this.renderTitleView(), Platform.OS === 'android' && /*#__PURE__*/React.createElement(View, {
|
276
|
+
style: {
|
277
|
+
backgroundColor: '#fff',
|
278
|
+
height: 2
|
279
|
+
}
|
280
|
+
}), /*#__PURE__*/React.createElement(PickerView, {
|
281
|
+
range: range,
|
282
|
+
value: newValue,
|
283
|
+
style: {
|
284
|
+
backgroundColor: '#fff'
|
285
|
+
},
|
286
|
+
onChange: function onChange(e) {
|
287
|
+
return _this2._handlePickerChange(e, range);
|
288
|
+
}
|
289
|
+
})));
|
290
|
+
}
|
291
|
+
}]);
|
292
|
+
|
293
|
+
return TimerPicker;
|
294
|
+
}(React.Component);
|
295
|
+
|
296
|
+
_defineProperty(TimerPicker, "displayName", '_TimerPicker');
|
297
|
+
|
298
|
+
_defineProperty(TimerPicker, "defaultProps", IDefaultTimePickerProps);
|
299
|
+
|
300
|
+
export { TimerPicker as default };
|
301
|
+
var styles = StyleSheet.create({
|
302
|
+
button: {
|
303
|
+
height: 54,
|
304
|
+
width: 68,
|
305
|
+
alignItems: 'center',
|
306
|
+
justifyContent: 'center'
|
307
|
+
},
|
308
|
+
title: {
|
309
|
+
flexDirection: 'row',
|
310
|
+
justifyContent: 'space-between',
|
311
|
+
backgroundColor: '#fff',
|
312
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.05)',
|
313
|
+
borderBottomWidth: StyleSheet.hairlineWidth
|
314
|
+
},
|
315
|
+
text: {
|
316
|
+
fontSize: 18,
|
317
|
+
color: '#333'
|
318
|
+
}
|
319
|
+
});
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Picker as _Picker } from "@ray-core/wechat/esm/hostComponents/Picker/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 = ["className", "style", "id", "onLongClick", "onTouchStart", "onT
|
|
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 { Picker as RemaxPicker } from '@ray-core/wechat';
|
9
9
|
|
10
10
|
var TimePicker = function (props) {
|
11
11
|
var className = props.className,
|
@@ -33,7 +33,7 @@ var TimePicker = function (props) {
|
|
33
33
|
touching = _useTouch2[0],
|
34
34
|
handlers = _useTouch2[1];
|
35
35
|
|
36
|
-
return /*#__PURE__*/React.createElement(
|
36
|
+
return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
|
37
37
|
mode: "time",
|
38
38
|
onChange: function handleChange(e) {
|
39
39
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
4
|
+
var _excluded = ["style"];
|
5
|
+
import "core-js/modules/es.array.map.js";
|
6
|
+
import React from 'react';
|
7
|
+
import { View, Text } from 'react-native';
|
8
|
+
import ClickableSimplified from '../ClickableSimplified';
|
9
|
+
import { extracteTextStyle } from '../utils';
|
10
|
+
|
11
|
+
var stringToText = function (child, props) {
|
12
|
+
return typeof child === 'string' || typeof child === 'number' ? /*#__PURE__*/React.createElement(Text, props, child) : child;
|
13
|
+
};
|
14
|
+
|
15
|
+
var _View = function (props) {
|
16
|
+
var style = props.style,
|
17
|
+
rest = _objectWithoutProperties(props, _excluded);
|
18
|
+
|
19
|
+
var textStyle = extracteTextStyle(props.style);
|
20
|
+
var child = Array.isArray(props.children) ? props.children.map(function (c, i) {
|
21
|
+
return stringToText(c, _objectSpread(_objectSpread({
|
22
|
+
key: i
|
23
|
+
}, props), {}, {
|
24
|
+
style: textStyle
|
25
|
+
}));
|
26
|
+
}) : stringToText(props.children, _objectSpread(_objectSpread({}, props), {}, {
|
27
|
+
style: textStyle
|
28
|
+
}));
|
29
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, rest, {
|
30
|
+
style: style
|
31
|
+
}), child);
|
32
|
+
};
|
33
|
+
|
34
|
+
_View.displayName = 'View';
|
35
|
+
export default ClickableSimplified(_View);
|
package/lib/View/View.wechat.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { View as _View } from "@ray-core/wechat/esm/hostComponents/View/index";
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
@@ -7,6 +6,7 @@ var _excluded = ["id", "className", "style", "hoverClassName", "hoverStartTime",
|
|
7
6
|
import * as React from 'react';
|
8
7
|
import clsx from 'clsx';
|
9
8
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
9
|
+
import { View as RemaxView } from '@ray-core/wechat';
|
10
10
|
import PropTypes from 'prop-types';
|
11
11
|
import { defaultViewProps } from './props';
|
12
12
|
import styles from './index.module.less';
|
@@ -42,8 +42,8 @@ var View = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
42
42
|
touching = _useTouch2[0],
|
43
43
|
handlers = _useTouch2[1];
|
44
44
|
|
45
|
-
return /*#__PURE__*/React.createElement(
|
46
|
-
|
45
|
+
return /*#__PURE__*/React.createElement(RemaxView // @ts-ignore
|
46
|
+
, _extends({
|
47
47
|
ref: ref,
|
48
48
|
id: id,
|
49
49
|
className: className,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.5",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -24,10 +24,10 @@
|
|
24
24
|
"watch": "ray start --type=component"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@ray-core/macro": "^0.0.
|
28
|
-
"@ray-core/wechat": "^0.0.
|
29
|
-
"@ray-js/framework-shared": "^0.5.
|
30
|
-
"@ray-js/remax-tuya": "^0.5.
|
27
|
+
"@ray-core/macro": "^0.0.x",
|
28
|
+
"@ray-core/wechat": "^0.0.x",
|
29
|
+
"@ray-js/framework-shared": "^0.5.5",
|
30
|
+
"@ray-js/remax-tuya": "^0.5.5",
|
31
31
|
"antd-mobile": "^5.0.0-beta.17",
|
32
32
|
"antd-mobile-icons": "^0.2.2",
|
33
33
|
"clsx": "^1.1.1",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"tuya-panel-switch": "^0.1.1"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@ray-js/cli": "^0.5.
|
48
|
+
"@ray-js/cli": "^0.5.5"
|
49
49
|
},
|
50
50
|
"maintainers": [
|
51
51
|
{
|
@@ -53,6 +53,6 @@
|
|
53
53
|
"email": "tuyafe@tuya.com"
|
54
54
|
}
|
55
55
|
],
|
56
|
-
"gitHead": "
|
56
|
+
"gitHead": "a8ddeab1f4782e6b3772dc2deeae3e3e3af0de00",
|
57
57
|
"repository": {}
|
58
58
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../assets/icons");var _props=require("./props");var _utils=require("../utils");var _this=this,_jsxFileName="/drone/src/packages/components/src/Button/Button.native.tsx";function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var Loading=function(props){var rotate=_react.default.useRef(new _reactNative.Animated.Value(0)).current;var tintColor=props.tintColor;_react.default.useEffect(function(){var animation=_reactNative.Animated.loop(_reactNative.Animated.timing(rotate,{toValue:1,duration:1000,easing:_reactNative.Easing.linear,useNativeDriver:true,isInteraction:false}));animation.start();return function(){animation.stop();};},[]);var rotateDeg=rotate.interpolate({inputRange:[0,1],outputRange:['0deg','360deg']});return _react.default.createElement(_reactNative.Animated.View,{style:[styles.loading,{transform:[{rotate:rotateDeg}]}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:10}},_react.default.createElement(_reactNative.Image,{source:_icons.iconList.loading,style:[styles.loadingImg,{tintColor:tintColor}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:42,columnNumber:7}}));};var Button=function(_React$Component){(0,_inherits2.default)(Button,_React$Component);var _super=_createSuper(Button);function Button(){var _this2;(0,_classCallCheck2.default)(this,Button);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this2=_super.call.apply(_super,[this].concat(args));_this2.$touchable=_react.default.createRef();_this2.isTouchEnd=false;_this2.pressInTimer=null;_this2.pressOutTimer=null;_this2.state={isHover:false};_this2.onPress=function(){var _this2$props=_this2.props,disabled=_this2$props.disabled,onClick=_this2$props.onClick;!disabled&&typeof onClick==='function'&&onClick({type:'click'});};_this2.onPressIn=function(){var _this2$props2=_this2.props,hoverStartTime=_this2$props2.hoverStartTime,hoverStyle=_this2$props2.hoverStyle;_this2.isTouchEnd=false;if(hoverStyle){_this2.pressInTimer=setTimeout(function(){_this2.setState({isHover:true},function(){if(_this2.isTouchEnd){_this2.stopHover();}});clearTimeout(_this2.pressInTimer);},hoverStartTime);}};_this2.stopHover=function(){var hoverStayTime=_this2.props.hoverStayTime;_this2.pressOutTimer=setTimeout(function(){_this2.setState({isHover:false});clearTimeout(_this2.pressOutTimer);},hoverStayTime);};_this2.onPressOut=function(){var hoverStyle=_this2.props.hoverStyle;var isHover=_this2.state.isHover;_this2.isTouchEnd=true;if(hoverStyle&&isHover){_this2.stopHover();}};_this2._simulateNativePress=function(evt){var node=_this2.$touchable.current;node&&node.props.onPress&&node.props.onPress(evt);};return _this2;}(0,_createClass2.default)(Button,[{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this.pressOutTimer);clearTimeout(this.pressInTimer);}},{key:"render",value:function render(){var _this3=this;var _this$props=this.props,loading=_this$props.loading,style=_this$props.style,size=_this$props.size,children=_this$props.children,disabled=_this$props.disabled,type=_this$props.type,plain=_this$props.plain,hoverStyle=_this$props.hoverStyle;var isDefaultSize=size==='default';var isDefaultType=type==='default';var isPrimaryType=type==='primary';var borderColor=isPrimaryType?'#007AFF':isDefaultType?'rgba(0, 0, 0, 0.2)':'#FF4444';var backgroundColor=disabled?'rgba(0, 0, 0, 0.2)':plain?'transparent':isPrimaryType?'#007AFF':'#FFF';var textColor=disabled?'#FFF':plain?borderColor:isDefaultType?'#007AFF':type==='warn'?'#FF4444':'#FFFFFF';var textHoverStyle=this.state.isHover?(0,_utils.extracteTextStyle)(hoverStyle):{};return _react.default.createElement(_reactNative.TouchableWithoutFeedback,{onPress:this.onPress,onLongPress:this.onPress,onPressIn:this.onPressIn,onPressOut:this.onPressOut,ref:this.$touchable,disabled:disabled,__self:this,__source:{fileName:_jsxFileName,lineNumber:147,columnNumber:12}},_react.default.createElement(_reactNative.View,{style:[styles.btn,!isDefaultSize&&styles.btnMini,{backgroundColor:backgroundColor},plain&&{borderWidth:1,borderColor:borderColor},style,this.state.isHover&&hoverStyle],__self:this,__source:{fileName:_jsxFileName,lineNumber:148,columnNumber:9}},loading&&_react.default.createElement(Loading,{tintColor:textColor,__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:23}}),Array.isArray(children)?children.map(function(c,i){return _react.default.createElement(_reactNative.Text,{key:i,style:[styles.btnText,!isDefaultSize&&styles.btnTextMini,{color:textColor},textHoverStyle],__self:_this3,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:76}},c);}):['string','number'].indexOf(typeof children)>-1?_react.default.createElement(_reactNative.Text,{style:[styles.btnText,!isDefaultSize&&styles.btnTextMini,{color:textColor},textHoverStyle],__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:79}},children):children));}}]);return Button;}(_react.default.Component);Button.displayName='_Button';Button.defaultProps=_props.defaultButtonProps;var _default=Button;exports.default=_default;var styles=_reactNative.StyleSheet.create({btn:{flexDirection:'row',justifyContent:'center',alignItems:'center',paddingHorizontal:14,height:46,backgroundColor:'#F8F8F8',borderRadius:5},loading:{marginRight:5},loadingImg:{width:20,height:20},btnMini:{height:30},btnText:{fontSize:18,color:'#000'},btnTextMini:{fontSize:13}});
|
package/lib/Button/Button.ios.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../assets/icons");var _props=require("./props");var _utils=require("../utils");var _this=this,_jsxFileName="/drone/src/packages/components/src/Button/Button.native.tsx";function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var Loading=function(props){var rotate=_react.default.useRef(new _reactNative.Animated.Value(0)).current;var tintColor=props.tintColor;_react.default.useEffect(function(){var animation=_reactNative.Animated.loop(_reactNative.Animated.timing(rotate,{toValue:1,duration:1000,easing:_reactNative.Easing.linear,useNativeDriver:true,isInteraction:false}));animation.start();return function(){animation.stop();};},[]);var rotateDeg=rotate.interpolate({inputRange:[0,1],outputRange:['0deg','360deg']});return _react.default.createElement(_reactNative.Animated.View,{style:[styles.loading,{transform:[{rotate:rotateDeg}]}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:10}},_react.default.createElement(_reactNative.Image,{source:_icons.iconList.loading,style:[styles.loadingImg,{tintColor:tintColor}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:42,columnNumber:7}}));};var Button=function(_React$Component){(0,_inherits2.default)(Button,_React$Component);var _super=_createSuper(Button);function Button(){var _this2;(0,_classCallCheck2.default)(this,Button);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this2=_super.call.apply(_super,[this].concat(args));_this2.$touchable=_react.default.createRef();_this2.isTouchEnd=false;_this2.pressInTimer=null;_this2.pressOutTimer=null;_this2.state={isHover:false};_this2.onPress=function(){var _this2$props=_this2.props,disabled=_this2$props.disabled,onClick=_this2$props.onClick;!disabled&&typeof onClick==='function'&&onClick({type:'click'});};_this2.onPressIn=function(){var _this2$props2=_this2.props,hoverStartTime=_this2$props2.hoverStartTime,hoverStyle=_this2$props2.hoverStyle;_this2.isTouchEnd=false;if(hoverStyle){_this2.pressInTimer=setTimeout(function(){_this2.setState({isHover:true},function(){if(_this2.isTouchEnd){_this2.stopHover();}});clearTimeout(_this2.pressInTimer);},hoverStartTime);}};_this2.stopHover=function(){var hoverStayTime=_this2.props.hoverStayTime;_this2.pressOutTimer=setTimeout(function(){_this2.setState({isHover:false});clearTimeout(_this2.pressOutTimer);},hoverStayTime);};_this2.onPressOut=function(){var hoverStyle=_this2.props.hoverStyle;var isHover=_this2.state.isHover;_this2.isTouchEnd=true;if(hoverStyle&&isHover){_this2.stopHover();}};_this2._simulateNativePress=function(evt){var node=_this2.$touchable.current;node&&node.props.onPress&&node.props.onPress(evt);};return _this2;}(0,_createClass2.default)(Button,[{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this.pressOutTimer);clearTimeout(this.pressInTimer);}},{key:"render",value:function render(){var _this3=this;var _this$props=this.props,loading=_this$props.loading,style=_this$props.style,size=_this$props.size,children=_this$props.children,disabled=_this$props.disabled,type=_this$props.type,plain=_this$props.plain,hoverStyle=_this$props.hoverStyle;var isDefaultSize=size==='default';var isDefaultType=type==='default';var isPrimaryType=type==='primary';var borderColor=isPrimaryType?'#007AFF':isDefaultType?'rgba(0, 0, 0, 0.2)':'#FF4444';var backgroundColor=disabled?'rgba(0, 0, 0, 0.2)':plain?'transparent':isPrimaryType?'#007AFF':'#FFF';var textColor=disabled?'#FFF':plain?borderColor:isDefaultType?'#007AFF':type==='warn'?'#FF4444':'#FFFFFF';var textHoverStyle=this.state.isHover?(0,_utils.extracteTextStyle)(hoverStyle):{};return _react.default.createElement(_reactNative.TouchableWithoutFeedback,{onPress:this.onPress,onLongPress:this.onPress,onPressIn:this.onPressIn,onPressOut:this.onPressOut,ref:this.$touchable,disabled:disabled,__self:this,__source:{fileName:_jsxFileName,lineNumber:147,columnNumber:12}},_react.default.createElement(_reactNative.View,{style:[styles.btn,!isDefaultSize&&styles.btnMini,{backgroundColor:backgroundColor},plain&&{borderWidth:1,borderColor:borderColor},style,this.state.isHover&&hoverStyle],__self:this,__source:{fileName:_jsxFileName,lineNumber:148,columnNumber:9}},loading&&_react.default.createElement(Loading,{tintColor:textColor,__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:23}}),Array.isArray(children)?children.map(function(c,i){return _react.default.createElement(_reactNative.Text,{key:i,style:[styles.btnText,!isDefaultSize&&styles.btnTextMini,{color:textColor},textHoverStyle],__self:_this3,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:76}},c);}):['string','number'].indexOf(typeof children)>-1?_react.default.createElement(_reactNative.Text,{style:[styles.btnText,!isDefaultSize&&styles.btnTextMini,{color:textColor},textHoverStyle],__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:79}},children):children));}}]);return Button;}(_react.default.Component);Button.displayName='_Button';Button.defaultProps=_props.defaultButtonProps;var _default=Button;exports.default=_default;var styles=_reactNative.StyleSheet.create({btn:{flexDirection:'row',justifyContent:'center',alignItems:'center',paddingHorizontal:14,height:46,backgroundColor:'#F8F8F8',borderRadius:5},loading:{marginRight:5},loadingImg:{width:20,height:20},btnMini:{height:30},btnText:{fontSize:18,color:'#000'},btnTextMini:{fontSize:13}});
|
package/lib/Button/Button.web.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { defaultButtonProps } from './props';
|
3
|
-
import handleProps from '../utils/handleProps';
|
4
|
-
|
5
|
-
var Button = function (props) {
|
6
|
-
return (
|
7
|
-
/*#__PURE__*/
|
8
|
-
// @ts-ignore
|
9
|
-
React.createElement("v-button", handleProps(props), props.children)
|
10
|
-
);
|
11
|
-
};
|
12
|
-
|
13
|
-
Button.defaultProps = defaultButtonProps;
|
14
|
-
Button.displayName = 'Button';
|
15
|
-
export default Button;
|
@@ -1 +0,0 @@
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Button=_interopRequireDefault(require("./Button"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Button.default;exports.default=_default;
|
package/lib/Button/index.ios.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Button=_interopRequireDefault(require("./Button"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Button.default;exports.default=_default;
|
package/lib/Button/index.tuya.js
DELETED
package/lib/Button/index.web.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.defaultButtonProps=void 0;var defaultButtonProps={size:'default',type:'default',hoverStyle:{opacity:0.8},hoverStartTime:20,hoverStayTime:70,disabled:false};exports.defaultButtonProps=defaultButtonProps;
|
package/lib/Button/props.ios.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.defaultButtonProps=void 0;var defaultButtonProps={size:'default',type:'default',hoverStyle:{opacity:0.8},hoverStartTime:20,hoverStayTime:70,disabled:false};exports.defaultButtonProps=defaultButtonProps;
|