@ray-js/components 0.3.0-beta.1c347991
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.android.js +1 -0
- package/lib/Button/Button.d.ts +4 -0
- package/lib/Button/Button.ios.js +1 -0
- package/lib/Button/Button.js +57 -0
- package/lib/Button/Button.native.d.ts +29 -0
- package/lib/Button/Button.tuya.d.ts +4 -0
- package/lib/Button/Button.tuya.js +43 -0
- package/lib/Button/Button.web.js +57 -0
- package/lib/Button/Button.wechat.d.ts +4 -0
- package/lib/Button/Button.wechat.js +44 -0
- package/lib/Button/index.android.js +1 -0
- package/lib/Button/index.d.ts +3 -0
- package/lib/Button/index.ios.js +1 -0
- package/lib/Button/index.js +3 -0
- package/lib/Button/index.md +41 -0
- package/lib/Button/index.module.less +129 -0
- package/lib/Button/index.tuya.js +3 -0
- package/lib/Button/index.web.js +3 -0
- package/lib/Button/index.wechat.js +3 -0
- package/lib/Button/props.android.js +1 -0
- package/lib/Button/props.d.ts +18 -0
- package/lib/Button/props.ios.js +1 -0
- package/lib/Button/props.js +10 -0
- package/lib/Button/props.tuya.js +10 -0
- package/lib/Button/props.web.js +10 -0
- package/lib/Button/props.wechat.js +10 -0
- package/lib/Checkbox/Checkbox.android.js +1 -0
- package/lib/Checkbox/Checkbox.d.ts +5 -0
- package/lib/Checkbox/Checkbox.ios.js +1 -0
- package/lib/Checkbox/Checkbox.js +36 -0
- package/lib/Checkbox/Checkbox.native.d.ts +28 -0
- package/lib/Checkbox/Checkbox.tuya.d.ts +4 -0
- package/lib/Checkbox/Checkbox.tuya.js +22 -0
- package/lib/Checkbox/Checkbox.web.js +36 -0
- package/lib/Checkbox/Checkbox.wechat.d.ts +4 -0
- package/lib/Checkbox/Checkbox.wechat.js +24 -0
- package/lib/Checkbox/index.android.js +1 -0
- package/lib/Checkbox/index.d.ts +3 -0
- package/lib/Checkbox/index.ios.js +1 -0
- package/lib/Checkbox/index.js +3 -0
- package/lib/Checkbox/index.md +33 -0
- package/lib/Checkbox/index.module.less +11 -0
- package/lib/Checkbox/index.tuya.js +3 -0
- package/lib/Checkbox/index.web.js +3 -0
- package/lib/Checkbox/index.wechat.js +3 -0
- package/lib/Checkbox/props.android.js +1 -0
- package/lib/Checkbox/props.d.ts +7 -0
- package/lib/Checkbox/props.ios.js +1 -0
- package/lib/Checkbox/props.js +1 -0
- package/lib/Checkbox/props.tuya.js +1 -0
- package/lib/Checkbox/props.web.js +1 -0
- package/lib/Checkbox/props.wechat.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.android.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.ios.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.js +9 -0
- package/lib/CheckboxGroup/CheckboxGroup.native.d.ts +18 -0
- package/lib/CheckboxGroup/CheckboxGroup.tuya.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.tuya.js +35 -0
- package/lib/CheckboxGroup/CheckboxGroup.web.js +9 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.d.ts +4 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.js +35 -0
- package/lib/CheckboxGroup/index.android.js +1 -0
- package/lib/CheckboxGroup/index.d.ts +3 -0
- package/lib/CheckboxGroup/index.ios.js +1 -0
- package/lib/CheckboxGroup/index.js +3 -0
- package/lib/CheckboxGroup/index.md +37 -0
- package/lib/CheckboxGroup/index.tuya.js +3 -0
- package/lib/CheckboxGroup/index.web.js +3 -0
- package/lib/CheckboxGroup/index.wechat.js +3 -0
- package/lib/CheckboxGroup/props.android.js +1 -0
- package/lib/CheckboxGroup/props.d.ts +13 -0
- package/lib/CheckboxGroup/props.ios.js +1 -0
- package/lib/CheckboxGroup/props.js +1 -0
- package/lib/CheckboxGroup/props.tuya.js +1 -0
- package/lib/CheckboxGroup/props.web.js +1 -0
- package/lib/CheckboxGroup/props.wechat.js +1 -0
- package/lib/ClickableSimplified/index.android.js +1 -0
- package/lib/ClickableSimplified/index.ios.js +1 -0
- package/lib/ClickableSimplified/index.native.d.ts +42 -0
- package/lib/DatePicker/DatePicker.android.js +1 -0
- package/lib/DatePicker/DatePicker.d.ts +4 -0
- package/lib/DatePicker/DatePicker.ios.js +1 -0
- package/lib/DatePicker/DatePicker.js +10 -0
- package/lib/DatePicker/DatePicker.native.d.ts +34 -0
- package/lib/DatePicker/DatePicker.tuya.d.ts +4 -0
- package/lib/DatePicker/DatePicker.tuya.js +56 -0
- package/lib/DatePicker/DatePicker.web.js +10 -0
- package/lib/DatePicker/DatePicker.wechat.d.ts +4 -0
- package/lib/DatePicker/DatePicker.wechat.js +56 -0
- package/lib/DatePicker/index.android.js +1 -0
- package/lib/DatePicker/index.d.ts +3 -0
- package/lib/DatePicker/index.ios.js +1 -0
- package/lib/DatePicker/index.js +3 -0
- package/lib/DatePicker/index.md +36 -0
- package/lib/DatePicker/index.module.less +0 -0
- package/lib/DatePicker/index.tuya.js +3 -0
- package/lib/DatePicker/index.web.js +3 -0
- package/lib/DatePicker/index.wechat.js +3 -0
- package/lib/DatePicker/props.android.js +1 -0
- package/lib/DatePicker/props.d.ts +31 -0
- package/lib/DatePicker/props.ios.js +1 -0
- package/lib/DatePicker/props.js +7 -0
- package/lib/DatePicker/props.tuya.js +7 -0
- package/lib/DatePicker/props.web.js +7 -0
- package/lib/DatePicker/props.wechat.js +7 -0
- package/lib/Icon/Icon.android.js +1 -0
- package/lib/Icon/Icon.d.ts +5 -0
- package/lib/Icon/Icon.ios.js +1 -0
- package/lib/Icon/Icon.js +23 -0
- package/lib/Icon/Icon.native.d.ts +15 -0
- package/lib/Icon/Icon.tuya.d.ts +5 -0
- package/lib/Icon/Icon.tuya.js +23 -0
- package/lib/Icon/Icon.web.js +23 -0
- package/lib/Icon/Icon.wechat.d.ts +5 -0
- package/lib/Icon/Icon.wechat.js +23 -0
- package/lib/Icon/iconfont/iconfont.android.js +1 -0
- package/lib/Icon/iconfont/iconfont.css +765 -0
- package/lib/Icon/iconfont/iconfont.ios.js +1 -0
- package/lib/Icon/iconfont/iconfont.js +47 -0
- package/lib/Icon/iconfont/iconfont.json +1318 -0
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.tuya.js +47 -0
- package/lib/Icon/iconfont/iconfont.web.js +47 -0
- package/lib/Icon/iconfont/iconfont.wechat.js +47 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Icon/iconfont-rn/iconfont.json +189 -0
- package/lib/Icon/index.android.js +1 -0
- package/lib/Icon/index.d.ts +3 -0
- package/lib/Icon/index.ios.js +1 -0
- package/lib/Icon/index.js +3 -0
- package/lib/Icon/index.less +5 -0
- package/lib/Icon/index.md +29 -0
- package/lib/Icon/index.tuya.js +3 -0
- package/lib/Icon/index.web.js +3 -0
- package/lib/Icon/index.wechat.js +3 -0
- package/lib/Icon/props.android.js +1 -0
- package/lib/Icon/props.d.ts +9 -0
- package/lib/Icon/props.ios.js +1 -0
- package/lib/Icon/props.js +5 -0
- package/lib/Icon/props.tuya.js +5 -0
- package/lib/Icon/props.web.js +5 -0
- package/lib/Icon/props.wechat.js +5 -0
- package/lib/Image/Image.android.js +1 -0
- package/lib/Image/Image.d.ts +4 -0
- package/lib/Image/Image.ios.js +1 -0
- package/lib/Image/Image.js +92 -0
- package/lib/Image/Image.native.d.ts +28 -0
- package/lib/Image/Image.tuya.d.ts +4 -0
- package/lib/Image/Image.tuya.js +23 -0
- package/lib/Image/Image.web.js +92 -0
- package/lib/Image/Image.wechat.d.ts +4 -0
- package/lib/Image/Image.wechat.js +51 -0
- package/lib/Image/index.android.js +1 -0
- package/lib/Image/index.d.ts +3 -0
- package/lib/Image/index.ios.js +1 -0
- package/lib/Image/index.js +3 -0
- package/lib/Image/index.md +50 -0
- package/lib/Image/index.module.less +6 -0
- package/lib/Image/index.tuya.js +3 -0
- package/lib/Image/index.web.js +3 -0
- package/lib/Image/index.wechat.js +3 -0
- package/lib/Image/props.android.js +1 -0
- package/lib/Image/props.d.ts +24 -0
- package/lib/Image/props.ios.js +1 -0
- package/lib/Image/props.js +4 -0
- package/lib/Image/props.tuya.js +4 -0
- package/lib/Image/props.web.js +4 -0
- package/lib/Image/props.wechat.js +4 -0
- package/lib/Input/Input.android.js +1 -0
- package/lib/Input/Input.d.ts +4 -0
- package/lib/Input/Input.ios.js +1 -0
- package/lib/Input/Input.js +100 -0
- package/lib/Input/Input.native.d.ts +32 -0
- package/lib/Input/Input.tuya.d.ts +4 -0
- package/lib/Input/Input.tuya.js +86 -0
- package/lib/Input/Input.web.js +100 -0
- package/lib/Input/Input.wechat.d.ts +4 -0
- package/lib/Input/Input.wechat.js +110 -0
- package/lib/Input/index.android.js +1 -0
- package/lib/Input/index.d.ts +3 -0
- package/lib/Input/index.ios.js +1 -0
- package/lib/Input/index.js +3 -0
- package/lib/Input/index.md +43 -0
- package/lib/Input/index.module.less +17 -0
- package/lib/Input/index.tuya.js +3 -0
- package/lib/Input/index.web.js +3 -0
- package/lib/Input/index.wechat.js +3 -0
- package/lib/Input/props.android.js +1 -0
- package/lib/Input/props.d.ts +36 -0
- package/lib/Input/props.ios.js +1 -0
- package/lib/Input/props.js +7 -0
- package/lib/Input/props.tuya.js +7 -0
- package/lib/Input/props.web.js +7 -0
- package/lib/Input/props.wechat.js +7 -0
- package/lib/Label/Label.android.js +1 -0
- package/lib/Label/Label.d.ts +4 -0
- package/lib/Label/Label.ios.js +1 -0
- package/lib/Label/Label.js +24 -0
- package/lib/Label/Label.native.d.ts +4 -0
- package/lib/Label/Label.tuya.d.ts +4 -0
- package/lib/Label/Label.tuya.js +21 -0
- package/lib/Label/Label.web.js +24 -0
- package/lib/Label/Label.wechat.d.ts +4 -0
- package/lib/Label/Label.wechat.js +21 -0
- package/lib/Label/index.android.js +1 -0
- package/lib/Label/index.d.ts +3 -0
- package/lib/Label/index.ios.js +1 -0
- package/lib/Label/index.js +3 -0
- package/lib/Label/index.module.less +4 -0
- package/lib/Label/index.tuya.js +3 -0
- package/lib/Label/index.web.js +3 -0
- package/lib/Label/index.wechat.js +3 -0
- package/lib/Label/props.android.js +1 -0
- package/lib/Label/props.d.ts +4 -0
- package/lib/Label/props.ios.js +1 -0
- package/lib/Label/props.js +1 -0
- package/lib/Label/props.tuya.js +1 -0
- package/lib/Label/props.web.js +1 -0
- package/lib/Label/props.wechat.js +1 -0
- package/lib/LinearGradient/LinearGradient.android.js +1 -0
- package/lib/LinearGradient/LinearGradient.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.ios.js +1 -0
- package/lib/LinearGradient/LinearGradient.js +8 -0
- package/lib/LinearGradient/LinearGradient.native.d.ts +16 -0
- package/lib/LinearGradient/LinearGradient.tuya.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.tuya.js +56 -0
- package/lib/LinearGradient/LinearGradient.web.js +8 -0
- package/lib/LinearGradient/LinearGradient.wechat.d.ts +4 -0
- package/lib/LinearGradient/LinearGradient.wechat.js +53 -0
- package/lib/LinearGradient/index.android.js +1 -0
- package/lib/LinearGradient/index.d.ts +3 -0
- package/lib/LinearGradient/index.ios.js +1 -0
- package/lib/LinearGradient/index.js +3 -0
- package/lib/LinearGradient/index.md +33 -0
- package/lib/LinearGradient/index.module.less +7 -0
- package/lib/LinearGradient/index.tuya.js +3 -0
- package/lib/LinearGradient/index.web.js +3 -0
- package/lib/LinearGradient/index.wechat.js +3 -0
- package/lib/LinearGradient/props.android.js +1 -0
- package/lib/LinearGradient/props.d.ts +48 -0
- package/lib/LinearGradient/props.ios.js +1 -0
- package/lib/LinearGradient/props.js +11 -0
- package/lib/LinearGradient/props.tuya.js +11 -0
- package/lib/LinearGradient/props.web.js +11 -0
- package/lib/LinearGradient/props.wechat.js +11 -0
- package/lib/Modal/Modal.android.js +1 -0
- package/lib/Modal/Modal.d.ts +4 -0
- package/lib/Modal/Modal.ios.js +1 -0
- package/lib/Modal/Modal.js +10 -0
- package/lib/Modal/Modal.native.d.ts +24 -0
- package/lib/Modal/Modal.tuya.d.ts +4 -0
- package/lib/Modal/Modal.tuya.js +75 -0
- package/lib/Modal/Modal.web.js +10 -0
- package/lib/Modal/Modal.wechat.d.ts +4 -0
- package/lib/Modal/Modal.wechat.js +75 -0
- package/lib/Modal/index.android.js +1 -0
- package/lib/Modal/index.d.ts +3 -0
- package/lib/Modal/index.ios.js +1 -0
- package/lib/Modal/index.js +3 -0
- package/lib/Modal/index.md +32 -0
- package/lib/Modal/index.module.less +46 -0
- package/lib/Modal/index.tuya.js +3 -0
- package/lib/Modal/index.web.js +3 -0
- package/lib/Modal/index.wechat.js +3 -0
- package/lib/Modal/props.android.js +1 -0
- package/lib/Modal/props.d.ts +16 -0
- package/lib/Modal/props.ios.js +1 -0
- package/lib/Modal/props.js +1 -0
- package/lib/Modal/props.tuya.js +1 -0
- package/lib/Modal/props.web.js +1 -0
- package/lib/Modal/props.wechat.js +1 -0
- package/lib/Motion/Fade/index.android.js +1 -0
- package/lib/Motion/Fade/index.d.ts +4 -0
- package/lib/Motion/Fade/index.ios.js +1 -0
- package/lib/Motion/Fade/index.js +28 -0
- package/lib/Motion/Fade/index.native.d.ts +2 -0
- package/lib/Motion/Fade/index.tuya.d.ts +4 -0
- package/lib/Motion/Fade/index.tuya.js +78 -0
- package/lib/Motion/Fade/index.web.js +28 -0
- package/lib/Motion/Fade/index.wechat.d.ts +4 -0
- package/lib/Motion/Fade/index.wechat.js +78 -0
- package/lib/Motion/PullUp/index.android.js +1 -0
- package/lib/Motion/PullUp/index.d.ts +4 -0
- package/lib/Motion/PullUp/index.ios.js +1 -0
- package/lib/Motion/PullUp/index.js +28 -0
- package/lib/Motion/PullUp/index.native.d.ts +2 -0
- package/lib/Motion/PullUp/index.tuya.d.ts +4 -0
- package/lib/Motion/PullUp/index.tuya.js +82 -0
- package/lib/Motion/PullUp/index.web.js +28 -0
- package/lib/Motion/PullUp/index.wechat.d.ts +4 -0
- package/lib/Motion/PullUp/index.wechat.js +82 -0
- package/lib/Motion/PushDown/index.android.js +1 -0
- package/lib/Motion/PushDown/index.d.ts +4 -0
- package/lib/Motion/PushDown/index.ios.js +1 -0
- package/lib/Motion/PushDown/index.js +28 -0
- package/lib/Motion/PushDown/index.native.d.ts +2 -0
- package/lib/Motion/PushDown/index.tuya.d.ts +4 -0
- package/lib/Motion/PushDown/index.tuya.js +82 -0
- package/lib/Motion/PushDown/index.web.js +28 -0
- package/lib/Motion/PushDown/index.wechat.d.ts +4 -0
- package/lib/Motion/PushDown/index.wechat.js +82 -0
- package/lib/Motion/ScaleFadeIn/index.android.js +1 -0
- package/lib/Motion/ScaleFadeIn/index.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.ios.js +1 -0
- package/lib/Motion/ScaleFadeIn/index.js +28 -0
- package/lib/Motion/ScaleFadeIn/index.native.d.ts +2 -0
- package/lib/Motion/ScaleFadeIn/index.tuya.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.tuya.js +83 -0
- package/lib/Motion/ScaleFadeIn/index.web.js +28 -0
- package/lib/Motion/ScaleFadeIn/index.wechat.d.ts +4 -0
- package/lib/Motion/ScaleFadeIn/index.wechat.js +83 -0
- package/lib/Motion/ScalePullDown/index.android.js +1 -0
- package/lib/Motion/ScalePullDown/index.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.ios.js +1 -0
- package/lib/Motion/ScalePullDown/index.js +28 -0
- package/lib/Motion/ScalePullDown/index.native.d.ts +2 -0
- package/lib/Motion/ScalePullDown/index.tuya.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.tuya.js +103 -0
- package/lib/Motion/ScalePullDown/index.web.js +28 -0
- package/lib/Motion/ScalePullDown/index.wechat.d.ts +4 -0
- package/lib/Motion/ScalePullDown/index.wechat.js +103 -0
- package/lib/Motion/index.android.js +1 -0
- package/lib/Motion/index.d.ts +14 -0
- package/lib/Motion/index.ios.js +1 -0
- package/lib/Motion/index.js +14 -0
- package/lib/Motion/index.md +68 -0
- package/lib/Motion/index.tuya.js +14 -0
- package/lib/Motion/index.web.js +14 -0
- package/lib/Motion/index.wechat.js +14 -0
- package/lib/Motion/props.android.js +1 -0
- package/lib/Motion/props.d.ts +92 -0
- package/lib/Motion/props.ios.js +1 -0
- package/lib/Motion/props.js +62 -0
- package/lib/Motion/props.tuya.js +62 -0
- package/lib/Motion/props.web.js +62 -0
- package/lib/Motion/props.wechat.js +62 -0
- package/lib/Picker/Picker.android.js +1 -0
- package/lib/Picker/Picker.d.ts +4 -0
- package/lib/Picker/Picker.ios.js +1 -0
- package/lib/Picker/Picker.js +11 -0
- package/lib/Picker/Picker.native.d.ts +22 -0
- package/lib/Picker/Picker.tuya.d.ts +4 -0
- package/lib/Picker/Picker.tuya.js +69 -0
- package/lib/Picker/Picker.web.js +11 -0
- package/lib/Picker/Picker.wechat.d.ts +4 -0
- package/lib/Picker/Picker.wechat.js +70 -0
- package/lib/Picker/index.android.js +1 -0
- package/lib/Picker/index.d.ts +3 -0
- package/lib/Picker/index.ios.js +1 -0
- package/lib/Picker/index.js +3 -0
- package/lib/Picker/index.md +35 -0
- package/lib/Picker/index.module.less +0 -0
- package/lib/Picker/index.tuya.js +3 -0
- package/lib/Picker/index.web.js +3 -0
- package/lib/Picker/index.wechat.js +3 -0
- package/lib/Picker/props.android.js +1 -0
- package/lib/Picker/props.d.ts +32 -0
- package/lib/Picker/props.ios.js +1 -0
- package/lib/Picker/props.js +4 -0
- package/lib/Picker/props.tuya.js +4 -0
- package/lib/Picker/props.web.js +4 -0
- package/lib/Picker/props.wechat.js +4 -0
- package/lib/PickerView/PickerView.android.js +1 -0
- package/lib/PickerView/PickerView.d.ts +4 -0
- package/lib/PickerView/PickerView.ios.js +1 -0
- package/lib/PickerView/PickerView.js +11 -0
- package/lib/PickerView/PickerView.native.d.ts +31 -0
- package/lib/PickerView/PickerView.tuya.d.ts +4 -0
- package/lib/PickerView/PickerView.tuya.js +71 -0
- package/lib/PickerView/PickerView.web.js +11 -0
- package/lib/PickerView/PickerView.wechat.d.ts +4 -0
- package/lib/PickerView/PickerView.wechat.js +72 -0
- package/lib/PickerView/index.android.js +1 -0
- package/lib/PickerView/index.d.ts +3 -0
- package/lib/PickerView/index.ios.js +1 -0
- package/lib/PickerView/index.js +3 -0
- package/lib/PickerView/index.md +32 -0
- package/lib/PickerView/index.module.less +8 -0
- package/lib/PickerView/index.tuya.js +3 -0
- package/lib/PickerView/index.web.js +3 -0
- package/lib/PickerView/index.wechat.js +3 -0
- package/lib/PickerView/props.android.js +1 -0
- package/lib/PickerView/props.d.ts +10 -0
- package/lib/PickerView/props.ios.js +1 -0
- package/lib/PickerView/props.js +1 -0
- package/lib/PickerView/props.tuya.js +1 -0
- package/lib/PickerView/props.web.js +1 -0
- package/lib/PickerView/props.wechat.js +1 -0
- package/lib/RadialGradient/RadialGradient.android.js +1 -0
- package/lib/RadialGradient/RadialGradient.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.ios.js +1 -0
- package/lib/RadialGradient/RadialGradient.js +8 -0
- package/lib/RadialGradient/RadialGradient.native.d.ts +17 -0
- package/lib/RadialGradient/RadialGradient.tuya.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.tuya.js +36 -0
- package/lib/RadialGradient/RadialGradient.web.js +8 -0
- package/lib/RadialGradient/RadialGradient.wechat.d.ts +4 -0
- package/lib/RadialGradient/RadialGradient.wechat.js +36 -0
- package/lib/RadialGradient/index.android.js +1 -0
- package/lib/RadialGradient/index.d.ts +3 -0
- package/lib/RadialGradient/index.ios.js +1 -0
- package/lib/RadialGradient/index.js +3 -0
- package/lib/RadialGradient/index.md +33 -0
- package/lib/RadialGradient/index.module.less +7 -0
- package/lib/RadialGradient/index.tuya.js +3 -0
- package/lib/RadialGradient/index.web.js +3 -0
- package/lib/RadialGradient/index.wechat.js +3 -0
- package/lib/RadialGradient/props.android.js +1 -0
- package/lib/RadialGradient/props.d.ts +54 -0
- package/lib/RadialGradient/props.ios.js +1 -0
- package/lib/RadialGradient/props.js +16 -0
- package/lib/RadialGradient/props.tuya.js +16 -0
- package/lib/RadialGradient/props.web.js +16 -0
- package/lib/RadialGradient/props.wechat.js +16 -0
- package/lib/Radio/Radio.android.js +1 -0
- package/lib/Radio/Radio.d.ts +4 -0
- package/lib/Radio/Radio.ios.js +1 -0
- package/lib/Radio/Radio.js +13 -0
- package/lib/Radio/Radio.native.d.ts +30 -0
- package/lib/Radio/Radio.tuya.d.ts +4 -0
- package/lib/Radio/Radio.tuya.js +22 -0
- package/lib/Radio/Radio.web.js +13 -0
- package/lib/Radio/Radio.wechat.d.ts +4 -0
- package/lib/Radio/Radio.wechat.js +24 -0
- package/lib/Radio/index.android.js +1 -0
- package/lib/Radio/index.d.ts +3 -0
- package/lib/Radio/index.ios.js +1 -0
- package/lib/Radio/index.js +3 -0
- package/lib/Radio/index.md +30 -0
- package/lib/Radio/index.module.less +0 -0
- package/lib/Radio/index.tuya.js +3 -0
- package/lib/Radio/index.web.js +3 -0
- package/lib/Radio/index.wechat.js +3 -0
- package/lib/Radio/props.android.js +1 -0
- package/lib/Radio/props.d.ts +7 -0
- package/lib/Radio/props.ios.js +1 -0
- package/lib/Radio/props.js +1 -0
- package/lib/Radio/props.tuya.js +1 -0
- package/lib/Radio/props.web.js +1 -0
- package/lib/Radio/props.wechat.js +1 -0
- package/lib/RadioGroup/RadioGroup.android.js +1 -0
- package/lib/RadioGroup/RadioGroup.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.ios.js +1 -0
- package/lib/RadioGroup/RadioGroup.js +9 -0
- package/lib/RadioGroup/RadioGroup.native.d.ts +18 -0
- package/lib/RadioGroup/RadioGroup.tuya.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.tuya.js +35 -0
- package/lib/RadioGroup/RadioGroup.web.js +9 -0
- package/lib/RadioGroup/RadioGroup.wechat.d.ts +4 -0
- package/lib/RadioGroup/RadioGroup.wechat.js +35 -0
- package/lib/RadioGroup/index.android.js +1 -0
- package/lib/RadioGroup/index.d.ts +3 -0
- package/lib/RadioGroup/index.ios.js +1 -0
- package/lib/RadioGroup/index.js +3 -0
- package/lib/RadioGroup/index.md +39 -0
- package/lib/RadioGroup/index.tuya.js +3 -0
- package/lib/RadioGroup/index.web.js +3 -0
- package/lib/RadioGroup/index.wechat.js +3 -0
- package/lib/RadioGroup/props.android.js +1 -0
- package/lib/RadioGroup/props.d.ts +14 -0
- package/lib/RadioGroup/props.ios.js +1 -0
- package/lib/RadioGroup/props.js +1 -0
- package/lib/RadioGroup/props.tuya.js +1 -0
- package/lib/RadioGroup/props.web.js +1 -0
- package/lib/RadioGroup/props.wechat.js +1 -0
- package/lib/ScrollView/ScrollView.android.js +1 -0
- package/lib/ScrollView/ScrollView.d.ts +4 -0
- package/lib/ScrollView/ScrollView.ios.js +1 -0
- package/lib/ScrollView/ScrollView.js +169 -0
- package/lib/ScrollView/ScrollView.native.d.ts +57 -0
- package/lib/ScrollView/ScrollView.tuya.d.ts +4 -0
- package/lib/ScrollView/ScrollView.tuya.js +20 -0
- package/lib/ScrollView/ScrollView.web.js +169 -0
- package/lib/ScrollView/ScrollView.wechat.d.ts +4 -0
- package/lib/ScrollView/ScrollView.wechat.js +20 -0
- package/lib/ScrollView/index.android.js +1 -0
- package/lib/ScrollView/index.d.ts +3 -0
- package/lib/ScrollView/index.ios.js +1 -0
- package/lib/ScrollView/index.js +3 -0
- package/lib/ScrollView/index.md +37 -0
- package/lib/ScrollView/index.module.less +6 -0
- package/lib/ScrollView/index.tuya.js +3 -0
- package/lib/ScrollView/index.web.js +3 -0
- package/lib/ScrollView/index.wechat.js +3 -0
- package/lib/ScrollView/props.android.js +1 -0
- package/lib/ScrollView/props.d.ts +43 -0
- package/lib/ScrollView/props.ios.js +1 -0
- package/lib/ScrollView/props.js +5 -0
- package/lib/ScrollView/props.tuya.js +5 -0
- package/lib/ScrollView/props.web.js +5 -0
- package/lib/ScrollView/props.wechat.js +5 -0
- package/lib/Slider/Slider.android.js +1 -0
- package/lib/Slider/Slider.d.ts +4 -0
- package/lib/Slider/Slider.ios.js +1 -0
- package/lib/Slider/Slider.js +20 -0
- package/lib/Slider/Slider.native.d.ts +21 -0
- package/lib/Slider/Slider.tuya.d.ts +4 -0
- package/lib/Slider/Slider.tuya.js +37 -0
- package/lib/Slider/Slider.web.js +20 -0
- package/lib/Slider/Slider.wechat.d.ts +4 -0
- package/lib/Slider/Slider.wechat.js +40 -0
- package/lib/Slider/index.android.js +1 -0
- package/lib/Slider/index.d.ts +3 -0
- package/lib/Slider/index.ios.js +1 -0
- package/lib/Slider/index.js +3 -0
- package/lib/Slider/index.md +42 -0
- package/lib/Slider/index.tuya.js +3 -0
- package/lib/Slider/index.web.js +3 -0
- package/lib/Slider/index.wechat.js +3 -0
- package/lib/Slider/props.android.js +1 -0
- package/lib/Slider/props.d.ts +34 -0
- package/lib/Slider/props.ios.js +1 -0
- package/lib/Slider/props.js +11 -0
- package/lib/Slider/props.tuya.js +11 -0
- package/lib/Slider/props.web.js +11 -0
- package/lib/Slider/props.wechat.js +11 -0
- package/lib/Swiper/Swiper.android.js +1 -0
- package/lib/Swiper/Swiper.d.ts +7 -0
- package/lib/Swiper/Swiper.ios.js +1 -0
- package/lib/Swiper/Swiper.js +10 -0
- package/lib/Swiper/Swiper.native.d.ts +6 -0
- package/lib/Swiper/Swiper.tuya.d.ts +7 -0
- package/lib/Swiper/Swiper.tuya.js +54 -0
- package/lib/Swiper/Swiper.web.js +10 -0
- package/lib/Swiper/Swiper.wechat.d.ts +7 -0
- package/lib/Swiper/Swiper.wechat.js +55 -0
- package/lib/Swiper/index.android.js +1 -0
- package/lib/Swiper/index.d.ts +3 -0
- package/lib/Swiper/index.ios.js +1 -0
- package/lib/Swiper/index.js +3 -0
- package/lib/Swiper/index.md +44 -0
- package/lib/Swiper/index.tuya.js +3 -0
- package/lib/Swiper/index.web.js +3 -0
- package/lib/Swiper/index.wechat.js +3 -0
- package/lib/Swiper/props.android.js +1 -0
- package/lib/Swiper/props.d.ts +44 -0
- package/lib/Swiper/props.ios.js +1 -0
- package/lib/Swiper/props.js +16 -0
- package/lib/Swiper/props.tuya.js +16 -0
- package/lib/Swiper/props.web.js +16 -0
- package/lib/Swiper/props.wechat.js +16 -0
- package/lib/Switch/Switch.android.js +1 -0
- package/lib/Switch/Switch.d.ts +4 -0
- package/lib/Switch/Switch.ios.js +1 -0
- package/lib/Switch/Switch.js +13 -0
- package/lib/Switch/Switch.native.d.ts +25 -0
- package/lib/Switch/Switch.tuya.d.ts +4 -0
- package/lib/Switch/Switch.tuya.js +35 -0
- package/lib/Switch/Switch.web.js +13 -0
- package/lib/Switch/Switch.wechat.d.ts +5 -0
- package/lib/Switch/Switch.wechat.js +36 -0
- package/lib/Switch/index.android.js +1 -0
- package/lib/Switch/index.d.ts +3 -0
- package/lib/Switch/index.ios.js +1 -0
- package/lib/Switch/index.js +3 -0
- package/lib/Switch/index.md +31 -0
- package/lib/Switch/index.module.less +7 -0
- package/lib/Switch/index.tuya.js +3 -0
- package/lib/Switch/index.web.js +3 -0
- package/lib/Switch/index.wechat.js +3 -0
- package/lib/Switch/props.android.js +1 -0
- package/lib/Switch/props.d.ts +20 -0
- package/lib/Switch/props.ios.js +1 -0
- package/lib/Switch/props.js +5 -0
- package/lib/Switch/props.tuya.js +5 -0
- package/lib/Switch/props.web.js +5 -0
- package/lib/Switch/props.wechat.js +5 -0
- package/lib/Text/Text.android.js +1 -0
- package/lib/Text/Text.d.ts +4 -0
- package/lib/Text/Text.ios.js +1 -0
- package/lib/Text/Text.js +41 -0
- package/lib/Text/Text.native.d.ts +8 -0
- package/lib/Text/Text.tuya.d.ts +4 -0
- package/lib/Text/Text.tuya.js +8 -0
- package/lib/Text/Text.web.js +41 -0
- package/lib/Text/Text.wechat.d.ts +4 -0
- package/lib/Text/Text.wechat.js +33 -0
- package/lib/Text/index.android.js +1 -0
- package/lib/Text/index.d.ts +3 -0
- package/lib/Text/index.ios.js +1 -0
- package/lib/Text/index.js +3 -0
- package/lib/Text/index.md +29 -0
- package/lib/Text/index.module.less +3 -0
- package/lib/Text/index.tuya.js +3 -0
- package/lib/Text/index.web.js +3 -0
- package/lib/Text/index.wechat.js +3 -0
- package/lib/Text/props.android.js +1 -0
- package/lib/Text/props.d.ts +14 -0
- package/lib/Text/props.ios.js +1 -0
- package/lib/Text/props.js +1 -0
- package/lib/Text/props.tuya.js +1 -0
- package/lib/Text/props.web.js +1 -0
- package/lib/Text/props.wechat.js +1 -0
- package/lib/Textarea/Textarea.android.js +1 -0
- package/lib/Textarea/Textarea.d.ts +4 -0
- package/lib/Textarea/Textarea.ios.js +1 -0
- package/lib/Textarea/Textarea.js +120 -0
- package/lib/Textarea/Textarea.native.d.ts +4 -0
- package/lib/Textarea/Textarea.tuya.d.ts +4 -0
- package/lib/Textarea/Textarea.tuya.js +60 -0
- package/lib/Textarea/Textarea.web.js +120 -0
- package/lib/Textarea/Textarea.wechat.d.ts +4 -0
- package/lib/Textarea/Textarea.wechat.js +60 -0
- package/lib/Textarea/index.android.js +1 -0
- package/lib/Textarea/index.d.ts +3 -0
- package/lib/Textarea/index.ios.js +1 -0
- package/lib/Textarea/index.js +3 -0
- package/lib/Textarea/index.md +46 -0
- package/lib/Textarea/index.module.less +12 -0
- package/lib/Textarea/index.tuya.js +3 -0
- package/lib/Textarea/index.web.js +3 -0
- package/lib/Textarea/index.wechat.js +3 -0
- package/lib/Textarea/props.android.js +1 -0
- package/lib/Textarea/props.d.ts +21 -0
- package/lib/Textarea/props.ios.js +1 -0
- package/lib/Textarea/props.js +1 -0
- package/lib/Textarea/props.tuya.js +1 -0
- package/lib/Textarea/props.web.js +1 -0
- package/lib/Textarea/props.wechat.js +1 -0
- package/lib/TimePicker/TimePicker.android.js +1 -0
- package/lib/TimePicker/TimePicker.d.ts +4 -0
- package/lib/TimePicker/TimePicker.ios.js +1 -0
- package/lib/TimePicker/TimePicker.js +10 -0
- package/lib/TimePicker/TimePicker.native.d.ts +39 -0
- package/lib/TimePicker/TimePicker.tuya.d.ts +4 -0
- package/lib/TimePicker/TimePicker.tuya.js +26 -0
- package/lib/TimePicker/TimePicker.web.js +10 -0
- package/lib/TimePicker/TimePicker.wechat.d.ts +4 -0
- package/lib/TimePicker/TimePicker.wechat.js +56 -0
- package/lib/TimePicker/index.android.js +1 -0
- package/lib/TimePicker/index.d.ts +3 -0
- package/lib/TimePicker/index.ios.js +1 -0
- package/lib/TimePicker/index.js +3 -0
- package/lib/TimePicker/index.md +35 -0
- package/lib/TimePicker/index.module.less +0 -0
- package/lib/TimePicker/index.tuya.js +3 -0
- package/lib/TimePicker/index.web.js +3 -0
- package/lib/TimePicker/index.wechat.js +3 -0
- package/lib/TimePicker/props.android.js +1 -0
- package/lib/TimePicker/props.d.ts +28 -0
- package/lib/TimePicker/props.ios.js +1 -0
- package/lib/TimePicker/props.js +6 -0
- package/lib/TimePicker/props.tuya.js +6 -0
- package/lib/TimePicker/props.web.js +6 -0
- package/lib/TimePicker/props.wechat.js +6 -0
- package/lib/View/View.android.js +1 -0
- package/lib/View/View.d.ts +4 -0
- package/lib/View/View.ios.js +1 -0
- package/lib/View/View.js +70 -0
- package/lib/View/View.native.d.ts +2 -0
- package/lib/View/View.tuya.d.ts +4 -0
- package/lib/View/View.tuya.js +76 -0
- package/lib/View/View.web.js +70 -0
- package/lib/View/View.wechat.d.ts +4 -0
- package/lib/View/View.wechat.js +76 -0
- package/lib/View/index.android.js +1 -0
- package/lib/View/index.d.ts +3 -0
- package/lib/View/index.ios.js +1 -0
- package/lib/View/index.js +3 -0
- package/lib/View/index.md +33 -0
- package/lib/View/index.module.less +10 -0
- package/lib/View/index.tuya.js +3 -0
- package/lib/View/index.web.js +3 -0
- package/lib/View/index.wechat.js +3 -0
- package/lib/View/props.android.js +1 -0
- package/lib/View/props.d.ts +11 -0
- package/lib/View/props.ios.js +1 -0
- package/lib/View/props.js +4 -0
- package/lib/View/props.tuya.js +4 -0
- package/lib/View/props.web.js +4 -0
- package/lib/View/props.wechat.js +4 -0
- package/lib/assets/back.png +0 -0
- package/lib/assets/edit.png +0 -0
- package/lib/assets/icons.android.js +1 -0
- package/lib/assets/icons.d.ts +7 -0
- package/lib/assets/icons.ios.js +1 -0
- package/lib/assets/icons.js +7 -0
- package/lib/assets/icons.tuya.js +7 -0
- package/lib/assets/icons.web.js +7 -0
- package/lib/assets/icons.wechat.js +7 -0
- package/lib/assets/loading-warn.png +0 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/success_no_circle.png +0 -0
- package/lib/core/index.android.js +1 -0
- package/lib/core/index.d.ts +6 -0
- package/lib/core/index.ios.js +1 -0
- package/lib/core/index.js +25 -0
- package/lib/core/index.tuya.js +25 -0
- package/lib/core/index.web.js +25 -0
- package/lib/core/index.wechat.js +25 -0
- package/lib/index.android.js +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.ios.js +1 -0
- package/lib/index.js +24 -0
- package/lib/index.tuya.js +24 -0
- package/lib/index.web.js +24 -0
- package/lib/index.wechat.js +24 -0
- package/lib/style/var.less +26 -0
- package/lib/types/event.android.js +0 -0
- package/lib/types/event.d.ts +3 -0
- package/lib/types/event.ios.js +0 -0
- package/lib/types/event.js +1 -0
- package/lib/types/event.tuya.js +1 -0
- package/lib/types/event.web.js +1 -0
- package/lib/types/event.wechat.js +1 -0
- package/lib/types/index.android.js +1 -0
- package/lib/types/index.d.ts +54 -0
- package/lib/types/index.ios.js +1 -0
- package/lib/types/index.js +9 -0
- package/lib/types/index.tuya.js +9 -0
- package/lib/types/index.web.js +9 -0
- package/lib/types/index.wechat.js +9 -0
- package/lib/utils/index.android.js +1 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.ios.js +1 -0
- package/lib/utils/index.js +90 -0
- package/lib/utils/index.tuya.js +90 -0
- package/lib/utils/index.web.js +90 -0
- package/lib/utils/index.wechat.js +90 -0
- package/lib/utils/interface.android.js +1 -0
- package/lib/utils/interface.d.ts +20 -0
- package/lib/utils/interface.ios.js +1 -0
- package/lib/utils/interface.js +1 -0
- package/lib/utils/interface.tuya.js +1 -0
- package/lib/utils/interface.web.js +1 -0
- package/lib/utils/interface.wechat.js +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1 @@
|
|
|
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 _jsxFileName="/drone/src/packages/components/src/Label/Label.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 Checkbox=function(_React$Component){(0,_inherits2.default)(Checkbox,_React$Component);var _super=_createSuper(Checkbox);function Checkbox(){(0,_classCallCheck2.default)(this,Checkbox);return _super.apply(this,arguments);}(0,_createClass2.default)(Checkbox,[{key:"render",value:function render(){return _react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:5,columnNumber:12}},_react.default.createElement(_reactNative.Text,{__self:this,__source:{fileName:_jsxFileName,lineNumber:6,columnNumber:9}},"\u672A\u5B9E\u73B0"));}}]);return Checkbox;}(_react.default.Component);exports.default=Checkbox;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "style", "className", "htmlFor", "children"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import styles from './index.module.less';
|
|
7
|
+
|
|
8
|
+
var Label = function (props) {
|
|
9
|
+
var id = props.id,
|
|
10
|
+
style = props.style,
|
|
11
|
+
className = props.className,
|
|
12
|
+
htmlFor = props.htmlFor,
|
|
13
|
+
children = props.children,
|
|
14
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
|
|
16
|
+
return /*#__PURE__*/React.createElement("label", _extends({
|
|
17
|
+
id: id,
|
|
18
|
+
style: style,
|
|
19
|
+
className: clsx('ray-label', styles.label, className),
|
|
20
|
+
htmlFor: htmlFor
|
|
21
|
+
}, restProps), children);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default Label;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { inlineStyle } from '@ray-js/framework-shared';
|
|
4
|
+
import { Label as RemaxLabel } from '@ray-js/remax-tuya';
|
|
5
|
+
import styles from './index.module.less';
|
|
6
|
+
|
|
7
|
+
var Label = function (props) {
|
|
8
|
+
var id = props.id,
|
|
9
|
+
style = props.style,
|
|
10
|
+
className = props.className,
|
|
11
|
+
htmlFor = props.htmlFor,
|
|
12
|
+
children = props.children;
|
|
13
|
+
return /*#__PURE__*/React.createElement(RemaxLabel, {
|
|
14
|
+
for: htmlFor,
|
|
15
|
+
id: id,
|
|
16
|
+
style: inlineStyle(style),
|
|
17
|
+
className: clsx('ray-label', styles.label, className)
|
|
18
|
+
}, children);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default Label;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "style", "className", "htmlFor", "children"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import styles from './index.module.less';
|
|
7
|
+
|
|
8
|
+
var Label = function (props) {
|
|
9
|
+
var id = props.id,
|
|
10
|
+
style = props.style,
|
|
11
|
+
className = props.className,
|
|
12
|
+
htmlFor = props.htmlFor,
|
|
13
|
+
children = props.children,
|
|
14
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
|
|
16
|
+
return /*#__PURE__*/React.createElement("label", _extends({
|
|
17
|
+
id: id,
|
|
18
|
+
style: style,
|
|
19
|
+
className: clsx('ray-label', styles.label, className),
|
|
20
|
+
htmlFor: htmlFor
|
|
21
|
+
}, restProps), children);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default Label;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Label as _Label } from "@remax/wechat/esm/hostComponents/Label/index";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { inlineStyle } from '@ray-js/framework-shared';
|
|
5
|
+
import styles from './index.module.less';
|
|
6
|
+
|
|
7
|
+
var Label = function (props) {
|
|
8
|
+
var id = props.id,
|
|
9
|
+
style = props.style,
|
|
10
|
+
className = props.className,
|
|
11
|
+
htmlFor = props.htmlFor,
|
|
12
|
+
children = props.children;
|
|
13
|
+
return /*#__PURE__*/React.createElement(_Label, {
|
|
14
|
+
for: htmlFor,
|
|
15
|
+
id: id,
|
|
16
|
+
style: inlineStyle(style),
|
|
17
|
+
className: clsx('ray-label', styles.label, className)
|
|
18
|
+
}, children);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default Label;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Label=_interopRequireDefault(require("./Label"));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=_Label.default;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Label=_interopRequireDefault(require("./Label"));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=_Label.default;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _color=_interopRequireDefault(require("color"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeSvg=_interopRequireWildcard(require("react-native-svg"));var _rayPanelUtils=require("@ray-js/ray-panel-utils");var _props=require("./props");var _this=this,_jsxFileName="/drone/src/packages/components/src/LinearGradient/LinearGradient.native.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var numToHexString=_rayPanelUtils.NumberUtils.numToHexString;var LinearGradient=function(props){var style=props.style,stops=props.stops,x1=props.x1,x2=props.x2,y1=props.y1,y2=props.y2,height=props.height,width=props.width,children=props.children;var gradientId=Math.random().toString(36).substring(7);var stopView=[];Object.keys(stops).forEach(function(k){var stopColor=(0,_color.default)(stops[k]);stopView.push(_react.default.createElement(_reactNativeSvg.Stop,{key:k,offset:k,stopColor:"#"+numToHexString(stopColor.rgbNumber(),6),stopOpacity:stopColor.alpha(),__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:19}}));});return _react.default.createElement(_reactNative.View,{style:[style,{width:width,height:height,overflow:'hidden'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:29,columnNumber:10}},_react.default.createElement(_reactNativeSvg.default,{height:height,width:width,__self:_this,__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:7}},_react.default.createElement(_reactNativeSvg.Defs,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:9}},_react.default.createElement(_reactNativeSvg.LinearGradient,{id:gradientId,x1:x1,x2:x2,y1:y1,y2:y2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:36,columnNumber:11}},stopView.map(function(d){return d;}))),_react.default.createElement(_reactNativeSvg.Rect,{width:width,height:height,fill:"url(#"+gradientId+")",__self:_this,__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:9}}),_react.default.isValidElement(children)&&children));};LinearGradient.default=_props.defaultLinearGradient;var _default=LinearGradient;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _color=_interopRequireDefault(require("color"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativeSvg=_interopRequireWildcard(require("react-native-svg"));var _rayPanelUtils=require("@ray-js/ray-panel-utils");var _props=require("./props");var _this=this,_jsxFileName="/drone/src/packages/components/src/LinearGradient/LinearGradient.native.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var numToHexString=_rayPanelUtils.NumberUtils.numToHexString;var LinearGradient=function(props){var style=props.style,stops=props.stops,x1=props.x1,x2=props.x2,y1=props.y1,y2=props.y2,height=props.height,width=props.width,children=props.children;var gradientId=Math.random().toString(36).substring(7);var stopView=[];Object.keys(stops).forEach(function(k){var stopColor=(0,_color.default)(stops[k]);stopView.push(_react.default.createElement(_reactNativeSvg.Stop,{key:k,offset:k,stopColor:"#"+numToHexString(stopColor.rgbNumber(),6),stopOpacity:stopColor.alpha(),__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:19}}));});return _react.default.createElement(_reactNative.View,{style:[style,{width:width,height:height,overflow:'hidden'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:29,columnNumber:10}},_react.default.createElement(_reactNativeSvg.default,{height:height,width:width,__self:_this,__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:7}},_react.default.createElement(_reactNativeSvg.Defs,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:9}},_react.default.createElement(_reactNativeSvg.LinearGradient,{id:gradientId,x1:x1,x2:x2,y1:y1,y2:y2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:36,columnNumber:11}},stopView.map(function(d){return d;}))),_react.default.createElement(_reactNativeSvg.Rect,{width:width,height:height,fill:"url(#"+gradientId+")",__self:_this,__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:9}}),_react.default.isValidElement(children)&&children));};LinearGradient.default=_props.defaultLinearGradient;var _default=LinearGradient;exports.default=_default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from '@ray-js/components';
|
|
3
|
+
|
|
4
|
+
var LinearGradient = function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(View, null, "web \u7EBF\u6027\u6E10\u53D8 \u6682\u672A\u5B9E\u73B0");
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default LinearGradient;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LinearGradientProps } from './props';
|
|
2
|
+
declare const LinearGradient: {
|
|
3
|
+
(props: LinearGradientProps): JSX.Element;
|
|
4
|
+
default: {
|
|
5
|
+
style: null;
|
|
6
|
+
stops: {
|
|
7
|
+
'0%': string;
|
|
8
|
+
'100%': string;
|
|
9
|
+
};
|
|
10
|
+
x1: string;
|
|
11
|
+
y1: string;
|
|
12
|
+
x2: string;
|
|
13
|
+
y2: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default LinearGradient;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
2
|
+
import "core-js/modules/es.string.replace.js";
|
|
3
|
+
import "core-js/modules/es.array.concat.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import * as React from 'react'; // import clsx from 'clsx';
|
|
6
|
+
// import { inlineStyle } from '@ray-js/framework-shared';
|
|
7
|
+
|
|
8
|
+
import { View } from '@ray-js/components';
|
|
9
|
+
|
|
10
|
+
// import styles from './index.module.less';
|
|
11
|
+
function toPoint(percent) {
|
|
12
|
+
var str = percent.replace('%', '');
|
|
13
|
+
str = str / 100;
|
|
14
|
+
return str;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var LinearGradient = function (props) {
|
|
18
|
+
var x1 = props.x1,
|
|
19
|
+
x2 = props.x2,
|
|
20
|
+
y1 = props.y1,
|
|
21
|
+
y2 = props.y2,
|
|
22
|
+
stops = props.stops,
|
|
23
|
+
width = props.width,
|
|
24
|
+
height = props.height,
|
|
25
|
+
children = props.children;
|
|
26
|
+
var linearGradientArr = [];
|
|
27
|
+
var linearGradientAngle = 0;
|
|
28
|
+
|
|
29
|
+
for (var prop in stops) {
|
|
30
|
+
linearGradientArr.push(stops[prop] + ' ' + prop);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var radian = Math.atan2((toPoint(y1) - toPoint(y2)) * height, (toPoint(x1) - toPoint(x2)) * width);
|
|
34
|
+
linearGradientAngle = 180 / Math.PI * radian;
|
|
35
|
+
console.log('linearGradientAngle', linearGradientAngle);
|
|
36
|
+
|
|
37
|
+
if (linearGradientAngle < 0 && linearGradientAngle > -90) {
|
|
38
|
+
linearGradientAngle = 180 - linearGradientAngle;
|
|
39
|
+
} else if (linearGradientAngle === -90) {
|
|
40
|
+
linearGradientAngle = 90 - linearGradientAngle;
|
|
41
|
+
} else {
|
|
42
|
+
linearGradientAngle = -linearGradientAngle;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var mixStyle = {
|
|
46
|
+
width: typeof width === 'number' ? "".concat(width, "px") : width,
|
|
47
|
+
height: typeof height === 'number' ? "".concat(height, "px") : height,
|
|
48
|
+
backgroundColor: 'pink',
|
|
49
|
+
backgroundImage: "linear-gradient(".concat(linearGradientAngle, "deg,").concat(linearGradientArr.toString(), " )")
|
|
50
|
+
};
|
|
51
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
52
|
+
style: mixStyle
|
|
53
|
+
}, children);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default LinearGradient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from '@ray-js/components';
|
|
3
|
+
|
|
4
|
+
var LinearGradient = function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(View, null, "web \u7EBF\u6027\u6E10\u53D8 \u6682\u672A\u5B9E\u73B0");
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default LinearGradient;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
2
|
+
import "core-js/modules/es.string.replace.js";
|
|
3
|
+
import "core-js/modules/es.array.concat.js";
|
|
4
|
+
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { View } from '@ray-js/components';
|
|
7
|
+
|
|
8
|
+
function toPoint(percent) {
|
|
9
|
+
var str = percent.replace('%', '');
|
|
10
|
+
str = str / 100;
|
|
11
|
+
return str;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var LinearGradient = function (props) {
|
|
15
|
+
var x1 = props.x1,
|
|
16
|
+
x2 = props.x2,
|
|
17
|
+
y1 = props.y1,
|
|
18
|
+
y2 = props.y2,
|
|
19
|
+
stops = props.stops,
|
|
20
|
+
width = props.width,
|
|
21
|
+
height = props.height,
|
|
22
|
+
children = props.children;
|
|
23
|
+
var linearGradientArr = [];
|
|
24
|
+
var linearGradientAngle = 0;
|
|
25
|
+
|
|
26
|
+
for (var prop in stops) {
|
|
27
|
+
linearGradientArr.push(stops[prop] + ' ' + prop);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var radian = Math.atan2((toPoint(y1) - toPoint(y2)) * height, (toPoint(x1) - toPoint(x2)) * width);
|
|
31
|
+
linearGradientAngle = 180 / Math.PI * radian;
|
|
32
|
+
console.log('linearGradientAngle', linearGradientAngle);
|
|
33
|
+
|
|
34
|
+
if (linearGradientAngle < 0 && linearGradientAngle > -90) {
|
|
35
|
+
linearGradientAngle = 180 - linearGradientAngle;
|
|
36
|
+
} else if (linearGradientAngle === -90) {
|
|
37
|
+
linearGradientAngle = 90 - linearGradientAngle;
|
|
38
|
+
} else {
|
|
39
|
+
linearGradientAngle = -linearGradientAngle;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var mixStyle = {
|
|
43
|
+
width: typeof width === 'number' ? "".concat(width, "px") : width,
|
|
44
|
+
height: typeof height === 'number' ? "".concat(height, "px") : height,
|
|
45
|
+
backgroundColor: 'pink',
|
|
46
|
+
backgroundImage: "linear-gradient(".concat(linearGradientAngle, "deg,").concat(linearGradientArr.toString(), " )")
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
49
|
+
style: mixStyle
|
|
50
|
+
}, children);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default LinearGradient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _LinearGradient=_interopRequireDefault(require("./LinearGradient"));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=_LinearGradient.default;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _LinearGradient=_interopRequireDefault(require("./LinearGradient"));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=_LinearGradient.default;exports.default=_default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
nav:
|
|
3
|
+
title: 组件
|
|
4
|
+
path: /components
|
|
5
|
+
group:
|
|
6
|
+
title: 视图容器
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# LinearGradient
|
|
10
|
+
|
|
11
|
+
LinearGradient 主要是给子节点提供一个线性渐变的效果。
|
|
12
|
+
|
|
13
|
+
## 导入
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { LinearGradient } from '@ray-js/components';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 示例代码
|
|
20
|
+
|
|
21
|
+
<code src="./demos/demo0.tsx" title="线性渐变" background="#f2f4f6" height="500px" />
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
| 属性 | 类型 | 默认值 | 说明 | 支持平台 |
|
|
26
|
+
| ------ | ---------------------- | ------ | ----------------- | -------------- |
|
|
27
|
+
| width | number | 300 | 宽度 | RN、涂鸦、微信 |
|
|
28
|
+
| height | number | 300 | 高度 | RN、涂鸦、微信 |
|
|
29
|
+
| x1 | string | 0% | 起始点的 x 轴坐标 | RN、涂鸦、微信 |
|
|
30
|
+
| x2 | string | 0% | 终点的 x 轴坐标 | RN、涂鸦、微信 |
|
|
31
|
+
| y1 | string | 0% | 起始点的 y 轴坐标 | RN、涂鸦、微信 |
|
|
32
|
+
| y2 | string | 0% | 终点的 y 轴坐标 | RN、涂鸦、微信 |
|
|
33
|
+
| stops | Record<string, string> | | 渐变梯度停点 | RN、涂鸦、微信 |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.defaultLinearGradient=void 0;var defaultLinearGradient={style:null,stops:{'0%':'rgb(255, 255, 255)','100%':'rgb(0, 0, 0)'},x1:'0%',y1:'0%',x2:'0%',y2:'100%'};exports.defaultLinearGradient=defaultLinearGradient;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseProps } from '../types';
|
|
3
|
+
export interface LinearGradientProps extends BaseProps {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
/**
|
|
7
|
+
* @description.zh 起始点的x轴坐标
|
|
8
|
+
* @description.en The x-axis coordinate of the starting point
|
|
9
|
+
* @default '0%'
|
|
10
|
+
*/
|
|
11
|
+
x1?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description.zh 终点的x轴坐标
|
|
14
|
+
* @description.en The x-axis coordinate of the ending point
|
|
15
|
+
* @default '0%'
|
|
16
|
+
*/
|
|
17
|
+
x2?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @description.zh 起始点的y轴坐标
|
|
20
|
+
* @description.en The y-axis coordinate of the starting point
|
|
21
|
+
* @default '0%'
|
|
22
|
+
*/
|
|
23
|
+
y1?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description.zh 终点的y轴坐标
|
|
26
|
+
* @description.en The y-axis coordinate of the ending point
|
|
27
|
+
* @default '0%'
|
|
28
|
+
*/
|
|
29
|
+
y2?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description.zh 渐变梯度停点
|
|
32
|
+
* @description.en The stop point of gradient
|
|
33
|
+
* @default { '0%': 'rgb(255, 255, 255)', '100%': 'rgb(0, 0, 0)' }
|
|
34
|
+
*/
|
|
35
|
+
stops?: Record<string, string>;
|
|
36
|
+
children?: React.ReactElement;
|
|
37
|
+
}
|
|
38
|
+
export declare const defaultLinearGradient: {
|
|
39
|
+
style: null;
|
|
40
|
+
stops: {
|
|
41
|
+
'0%': string;
|
|
42
|
+
'100%': string;
|
|
43
|
+
};
|
|
44
|
+
x1: string;
|
|
45
|
+
y1: string;
|
|
46
|
+
x2: string;
|
|
47
|
+
y2: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.defaultLinearGradient=void 0;var defaultLinearGradient={style:null,stops:{'0%':'rgb(255, 255, 255)','100%':'rgb(0, 0, 0)'},x1:'0%',y1:'0%',x2:'0%',y2:'100%'};exports.defaultLinearGradient=defaultLinearGradient;
|
|
@@ -0,0 +1 @@
|
|
|
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 _jsxFileName="/drone/src/packages/components/src/Modal/Modal.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 ALIGN={top:'flex-start',center:'center',bottom:'flex-end'};var TYModal=function(_React$Component){(0,_inherits2.default)(TYModal,_React$Component);var _super=_createSuper(TYModal);function TYModal(props){var _this;(0,_classCallCheck2.default)(this,TYModal);_this=_super.call(this,props);_this._handleMaskPress=function(){var onClickOverlay=_this.props.onClickOverlay;typeof onClickOverlay==='function'&&onClickOverlay({type:'clickoverlay'});};_this.state={visible:props.show};return _this;}(0,_createClass2.default)(TYModal,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var show=this.props.show;if(show!==prevProps.show){this.setState({visible:!!show});}}},{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,position=_this$props.position,overlayStyle=_this$props.overlayStyle,customStyle=_this$props.customStyle,overlay=_this$props.overlay;var visible=this.state.visible;var maskColor=overlay?'rgba(0, 0, 0, 0.7)':'transparent';var maskContainer=[_reactNative.StyleSheet.absoluteFill,position&&{justifyContent:ALIGN[position]},{flex:1,backgroundColor:maskColor},overlayStyle];return _react.default.createElement(_reactNative.Modal,{animationType:"fade",onRequestClose:this._handleMaskPress,visible:visible,transparent:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:12}},_react.default.createElement(_reactNative.TouchableHighlight,{style:maskContainer,underlayColor:maskColor,onPress:this._handleMaskPress,activeOpacity:1,__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:9}},_react.default.createElement(_reactNative.View,{onStartShouldSetResponder:function onStartShouldSetResponder(){return true;},style:customStyle,__self:this,__source:{fileName:_jsxFileName,lineNumber:74,columnNumber:11}},children)));}}]);return TYModal;}(_react.default.Component);TYModal.defaultProps={position:'center',onClickOverlay:null,overlayStyle:null,overlay:true,customStyle:null};var _default=TYModal;exports.default=_default;
|
|
@@ -0,0 +1 @@
|
|
|
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 _jsxFileName="/drone/src/packages/components/src/Modal/Modal.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 ALIGN={top:'flex-start',center:'center',bottom:'flex-end'};var TYModal=function(_React$Component){(0,_inherits2.default)(TYModal,_React$Component);var _super=_createSuper(TYModal);function TYModal(props){var _this;(0,_classCallCheck2.default)(this,TYModal);_this=_super.call(this,props);_this._handleMaskPress=function(){var onClickOverlay=_this.props.onClickOverlay;typeof onClickOverlay==='function'&&onClickOverlay({type:'clickoverlay'});};_this.state={visible:props.show};return _this;}(0,_createClass2.default)(TYModal,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var show=this.props.show;if(show!==prevProps.show){this.setState({visible:!!show});}}},{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,position=_this$props.position,overlayStyle=_this$props.overlayStyle,customStyle=_this$props.customStyle,overlay=_this$props.overlay;var visible=this.state.visible;var maskColor=overlay?'rgba(0, 0, 0, 0.7)':'transparent';var maskContainer=[_reactNative.StyleSheet.absoluteFill,position&&{justifyContent:ALIGN[position]},{flex:1,backgroundColor:maskColor},overlayStyle];return _react.default.createElement(_reactNative.Modal,{animationType:"fade",onRequestClose:this._handleMaskPress,visible:visible,transparent:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:12}},_react.default.createElement(_reactNative.TouchableHighlight,{style:maskContainer,underlayColor:maskColor,onPress:this._handleMaskPress,activeOpacity:1,__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:9}},_react.default.createElement(_reactNative.View,{onStartShouldSetResponder:function onStartShouldSetResponder(){return true;},style:customStyle,__self:this,__source:{fileName:_jsxFileName,lineNumber:74,columnNumber:11}},children)));}}]);return TYModal;}(_react.default.Component);TYModal.defaultProps={position:'center',onClickOverlay:null,overlayStyle:null,overlay:true,customStyle:null};var _default=TYModal;exports.default=_default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
// import styles from './index.module.less';
|
|
4
|
+
var Modal = function () {
|
|
5
|
+
// const { disabled, className, style } = props;
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B0");
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Modal.displayName = 'Modal';
|
|
10
|
+
export default Modal;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { ITYModalProps } from './props';
|
|
4
|
+
export interface IProps extends Omit<ITYModalProps, 'overlayStyle' | 'customStyle'> {
|
|
5
|
+
overlayStyle?: StyleProp<ViewStyle>;
|
|
6
|
+
customStyle?: StyleProp<ViewStyle>;
|
|
7
|
+
}
|
|
8
|
+
export interface ITYModalState {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare class TYModal extends React.Component<IProps, ITYModalState> {
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
position: string;
|
|
14
|
+
onClickOverlay: null;
|
|
15
|
+
overlayStyle: null;
|
|
16
|
+
overlay: boolean;
|
|
17
|
+
customStyle: null;
|
|
18
|
+
};
|
|
19
|
+
constructor(props: IProps);
|
|
20
|
+
componentDidUpdate(prevProps: Readonly<IProps>): void;
|
|
21
|
+
_handleMaskPress: () => void;
|
|
22
|
+
render(): React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export default TYModal;
|