@ray-js/components 1.4.0-alpha.0 → 1.4.0-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/lib/Button/Button.js +1 -3
  2. package/lib/Button/Button.thing.js +15 -17
  3. package/lib/Button/Button.wechat.js +15 -17
  4. package/lib/Button/props.js +1 -1
  5. package/lib/Camera/Camera.d.ts +2 -1
  6. package/lib/Camera/Camera.js +3 -3
  7. package/lib/Camera/Camera.thing.js +1 -3
  8. package/lib/Camera/Camera.wechat.d.ts +2 -1
  9. package/lib/Camera/Camera.wechat.js +2 -2
  10. package/lib/Checkbox/Checkbox.js +1 -3
  11. package/lib/Checkbox/Checkbox.thing.js +8 -9
  12. package/lib/Checkbox/Checkbox.wechat.js +9 -10
  13. package/lib/CheckboxGroup/CheckboxGroup.js +15 -19
  14. package/lib/CheckboxGroup/CheckboxGroup.thing.js +12 -17
  15. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +12 -17
  16. package/lib/CheckboxGroup/props.d.ts +1 -1
  17. package/lib/CoverView/CoverView.js +1 -3
  18. package/lib/CoverView/CoverView.thing.js +1 -3
  19. package/lib/CoverView/CoverView.wechat.d.ts +2 -1
  20. package/lib/CoverView/CoverView.wechat.js +0 -2
  21. package/lib/CoverView/props.d.ts +1 -1
  22. package/lib/CoverView/props.js +1 -1
  23. package/lib/Form/Form.js +12 -12
  24. package/lib/Form/Form.thing.js +1 -3
  25. package/lib/Form/Form.wechat.js +20 -25
  26. package/lib/Form/props.d.ts +1 -1
  27. package/lib/Icon/Icon.js +7 -7
  28. package/lib/Icon/Icon.thing.js +7 -7
  29. package/lib/Icon/Icon.wechat.js +7 -7
  30. package/lib/Icon/iconfont/iconfont.js +13 -20
  31. package/lib/Icon/props.d.ts +1 -1
  32. package/lib/Icon/props.js +1 -1
  33. package/lib/Iframe/Iframe.d.ts +2 -1
  34. package/lib/Iframe/Iframe.js +3 -3
  35. package/lib/Iframe/Iframe.thing.js +1 -3
  36. package/lib/Iframe/Iframe.wechat.d.ts +2 -1
  37. package/lib/Iframe/Iframe.wechat.js +3 -3
  38. package/lib/Image/Image.js +6 -8
  39. package/lib/Image/Image.thing.js +8 -10
  40. package/lib/Image/Image.wechat.js +26 -32
  41. package/lib/Input/Input.js +29 -26
  42. package/lib/Input/Input.thing.js +36 -36
  43. package/lib/Input/Input.wechat.js +47 -47
  44. package/lib/Input/props.d.ts +11 -21
  45. package/lib/Input/props.js +1 -3
  46. package/lib/IpcPlayer/IpcPlayer.d.ts +2 -1
  47. package/lib/IpcPlayer/IpcPlayer.js +3 -3
  48. package/lib/IpcPlayer/IpcPlayer.thing.js +1 -3
  49. package/lib/IpcPlayer/IpcPlayer.wechat.d.ts +2 -1
  50. package/lib/IpcPlayer/IpcPlayer.wechat.js +2 -2
  51. package/lib/Label/Label.js +7 -8
  52. package/lib/Label/Label.thing.js +8 -8
  53. package/lib/Label/Label.wechat.js +8 -8
  54. package/lib/Map/Map.js +1 -3
  55. package/lib/Map/Map.thing.js +1 -3
  56. package/lib/Map/Map.wechat.js +1 -3
  57. package/lib/Modal/index.js +4 -2
  58. package/lib/Modal/index.web.js +6 -4
  59. package/lib/MovableArea/MovableArea.js +5 -4
  60. package/lib/MovableArea/MovableArea.thing.js +1 -3
  61. package/lib/MovableArea/MovableArea.wechat.js +1 -3
  62. package/lib/MovableView/MovableView.js +12 -11
  63. package/lib/MovableView/MovableView.thing.js +1 -3
  64. package/lib/MovableView/MovableView.wechat.js +1 -3
  65. package/lib/NativeVideo/NativeVideo.d.ts +2 -1
  66. package/lib/NativeVideo/NativeVideo.js +3 -3
  67. package/lib/NativeVideo/NativeVideo.thing.js +1 -3
  68. package/lib/NativeVideo/NativeVideo.wechat.d.ts +2 -1
  69. package/lib/NativeVideo/NativeVideo.wechat.js +2 -2
  70. package/lib/PageContainer/PageContainer.js +12 -19
  71. package/lib/PageContainer/PageContainer.thing.d.ts +2 -1
  72. package/lib/PageContainer/PageContainer.thing.js +0 -2
  73. package/lib/PageContainer/PageContainer.wechat.d.ts +2 -1
  74. package/lib/PageContainer/PageContainer.wechat.js +0 -2
  75. package/lib/PageContainer/props.d.ts +2 -2
  76. package/lib/PageContainer/props.js +3 -3
  77. package/lib/Picker/Picker.js +23 -31
  78. package/lib/Picker/Picker.thing.js +26 -31
  79. package/lib/Picker/Picker.wechat.js +26 -31
  80. package/lib/PickerView/PickerView.js +23 -34
  81. package/lib/PickerView/PickerView.thing.js +16 -19
  82. package/lib/PickerView/PickerView.wechat.js +16 -19
  83. package/lib/PickerViewColumn/PickerViewColumn.js +4 -4
  84. package/lib/PickerViewColumn/PickerViewColumn.thing.js +6 -7
  85. package/lib/PickerViewColumn/PickerViewColumn.wechat.js +6 -7
  86. package/lib/Progress/Progress.js +1 -3
  87. package/lib/Progress/Progress.thing.js +6 -7
  88. package/lib/Progress/Progress.wechat.js +6 -7
  89. package/lib/Radio/Radio.js +1 -3
  90. package/lib/Radio/Radio.thing.js +8 -9
  91. package/lib/Radio/Radio.wechat.js +9 -10
  92. package/lib/RadioGroup/RadioGroup.js +12 -18
  93. package/lib/RadioGroup/RadioGroup.thing.js +15 -21
  94. package/lib/RadioGroup/RadioGroup.wechat.js +12 -17
  95. package/lib/RadioGroup/props.d.ts +1 -1
  96. package/lib/RichText/RichText.js +1 -1
  97. package/lib/RichText/RichText.thing.js +1 -3
  98. package/lib/RichText/RichText.wechat.js +1 -3
  99. package/lib/ScrollView/ScrollView.js +12 -13
  100. package/lib/ScrollView/ScrollView.thing.js +6 -7
  101. package/lib/ScrollView/ScrollView.wechat.js +6 -7
  102. package/lib/Slider/Slider.js +4 -8
  103. package/lib/Slider/Slider.thing.js +13 -14
  104. package/lib/Slider/Slider.wechat.js +14 -15
  105. package/lib/Slider/props.js +1 -1
  106. package/lib/Swiper/Swiper.d.ts +1 -1
  107. package/lib/Swiper/Swiper.js +24 -33
  108. package/lib/Swiper/Swiper.thing.d.ts +1 -1
  109. package/lib/Swiper/Swiper.thing.js +18 -24
  110. package/lib/Swiper/Swiper.wechat.d.ts +1 -1
  111. package/lib/Swiper/Swiper.wechat.js +18 -24
  112. package/lib/Swiper/props.d.ts +1 -1
  113. package/lib/Swiper/props.js +2 -2
  114. package/lib/SwiperItem/SwiperItem.js +4 -4
  115. package/lib/SwiperItem/SwiperItem.thing.js +8 -9
  116. package/lib/SwiperItem/SwiperItem.wechat.js +8 -9
  117. package/lib/Switch/Switch.js +5 -8
  118. package/lib/Switch/Switch.thing.js +12 -14
  119. package/lib/Switch/Switch.wechat.js +12 -14
  120. package/lib/Switch/props.js +1 -1
  121. package/lib/Text/Text.js +1 -3
  122. package/lib/Text/Text.thing.js +1 -3
  123. package/lib/Text/Text.wechat.js +20 -25
  124. package/lib/Textarea/Textarea.js +13 -24
  125. package/lib/Textarea/Textarea.thing.js +26 -30
  126. package/lib/Textarea/Textarea.wechat.js +26 -30
  127. package/lib/Textarea/props.d.ts +4 -10
  128. package/lib/View/View.js +29 -32
  129. package/lib/View/View.thing.js +34 -35
  130. package/lib/View/View.wechat.js +34 -35
  131. package/lib/View/props.js +1 -1
  132. package/lib/WebView/WebView.js +1 -3
  133. package/lib/WebView/WebView.thing.js +1 -3
  134. package/lib/WebView/WebView.wechat.js +1 -3
  135. package/lib/assets/icons.js +1 -1
  136. package/lib/core/index.js +4 -11
  137. package/lib/types/event.d.ts +1 -1
  138. package/lib/types/index.js +1 -0
  139. package/lib/utils/handleProps.js +26 -40
  140. package/package.json +25 -25
  141. package/LICENSE.md +0 -9
  142. package/lib/Modal/index.web.d.ts +0 -2
@@ -2,12 +2,13 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import * as React from 'react';
3
3
  import { Text } from '@ray-js/components';
4
4
  import './index.less';
5
-
6
- var Icon = function (props) {
7
- var type = props.type,
8
- size = props.size,
9
- color = props.color,
10
- style = props.style;
5
+ const Icon = props => {
6
+ const {
7
+ type,
8
+ size,
9
+ color,
10
+ style
11
+ } = props;
11
12
  return /*#__PURE__*/React.createElement(Text, {
12
13
  className: "iconfont ".concat(type),
13
14
  style: _objectSpread(_objectSpread({}, style), {}, {
@@ -16,6 +17,5 @@ var Icon = function (props) {
16
17
  })
17
18
  });
18
19
  };
19
-
20
20
  Icon.displayName = 'Icon';
21
21
  export default Icon;
@@ -3,12 +3,13 @@ import * as React from 'react';
3
3
  import { Text } from '@ray-js/components';
4
4
  import { defaultIconProps } from './props';
5
5
  import './index.less';
6
-
7
- var Icon = function (props) {
8
- var type = props.type,
9
- size = props.size,
10
- color = props.color,
11
- style = props.style;
6
+ const Icon = props => {
7
+ const {
8
+ type,
9
+ size,
10
+ color,
11
+ style
12
+ } = props;
12
13
  return /*#__PURE__*/React.createElement(Text, {
13
14
  className: "iconfont ".concat(type),
14
15
  style: _objectSpread(_objectSpread({}, style), {}, {
@@ -17,7 +18,6 @@ var Icon = function (props) {
17
18
  })
18
19
  });
19
20
  };
20
-
21
21
  Icon.defaultProps = defaultIconProps;
22
22
  Icon.displayName = 'Icon';
23
23
  export default Icon;