@ray-js/components 0.4.0 → 0.4.4-beta-1

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.
Files changed (94) hide show
  1. package/lib/Button/props.d.ts +61 -1
  2. package/lib/Checkbox/index.md +1 -1
  3. package/lib/Checkbox/props.d.ts +20 -0
  4. package/lib/CheckboxGroup/CheckboxGroup.tuya.js +5 -2
  5. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +5 -2
  6. package/lib/CheckboxGroup/props.d.ts +15 -0
  7. package/lib/DatePicker/index.md +2 -0
  8. package/lib/DatePicker/props.d.ts +70 -2
  9. package/lib/Form/props.d.ts +10 -0
  10. package/lib/Icon/iconfont/iconfont.android.js +1 -1
  11. package/lib/Icon/iconfont/iconfont.css +196 -193
  12. package/lib/Icon/iconfont/iconfont.ios.js +1 -1
  13. package/lib/Icon/iconfont/iconfont.js +9 -9
  14. package/lib/Icon/iconfont/iconfont.json +1 -1
  15. package/lib/Icon/iconfont/iconfont.tuya.js +9 -9
  16. package/lib/Icon/iconfont/iconfont.web.js +9 -9
  17. package/lib/Icon/iconfont/iconfont.wechat.js +9 -9
  18. package/lib/Icon/iconfont-rn/iconfont.json +1 -1
  19. package/lib/Icon/props.d.ts +15 -0
  20. package/lib/Image/props.d.ts +30 -4
  21. package/lib/Input/props.d.ts +105 -2
  22. package/lib/Label/props.d.ts +3 -5
  23. package/lib/LinearGradient/index.md +2 -1
  24. package/lib/LinearGradient/props.d.ts +10 -0
  25. package/lib/Modal/index.md +2 -1
  26. package/lib/Modal/props.d.ts +35 -0
  27. package/lib/Motion/index.md +2 -1
  28. package/lib/Motion/props.d.ts +5 -0
  29. package/lib/Picker/index.md +2 -0
  30. package/lib/Picker/props.d.ts +65 -2
  31. package/lib/PickerView/PickerView.tuya.js +5 -2
  32. package/lib/PickerView/PickerView.wechat.js +5 -2
  33. package/lib/PickerView/index.md +1 -1
  34. package/lib/PickerView/props.d.ts +30 -3
  35. package/lib/PickerViewColumn/PickerViewColumn.tuya.d.ts +3 -3
  36. package/lib/PickerViewColumn/PickerViewColumn.tuya.js +8 -57
  37. package/lib/PickerViewColumn/PickerViewColumn.wechat.d.ts +3 -3
  38. package/lib/PickerViewColumn/PickerViewColumn.wechat.js +8 -58
  39. package/lib/PickerViewColumn/index.md +5 -3
  40. package/lib/PickerViewColumn/props.d.ts +1 -12
  41. package/lib/RadialGradient/index.md +2 -1
  42. package/lib/RadialGradient/props.d.ts +10 -0
  43. package/lib/Radio/props.d.ts +20 -0
  44. package/lib/RadioGroup/RadioGroup.tuya.js +5 -2
  45. package/lib/RadioGroup/RadioGroup.wechat.js +5 -2
  46. package/lib/RadioGroup/index.md +1 -1
  47. package/lib/RadioGroup/props.d.ts +31 -3
  48. package/lib/ScrollView/props.d.ts +76 -3
  49. package/lib/Slider/props.d.ts +80 -0
  50. package/lib/Swiper/Swiper.js +12 -7
  51. package/lib/Swiper/Swiper.tuya.js +11 -6
  52. package/lib/Swiper/Swiper.web.js +12 -7
  53. package/lib/Swiper/Swiper.wechat.js +11 -6
  54. package/lib/Swiper/props.d.ts +45 -9
  55. package/lib/SwiperItem/SwiperItem.android.js +1 -0
  56. package/lib/SwiperItem/SwiperItem.d.ts +4 -0
  57. package/lib/SwiperItem/SwiperItem.ios.js +1 -0
  58. package/lib/SwiperItem/SwiperItem.js +1 -0
  59. package/lib/SwiperItem/SwiperItem.tuya.d.ts +4 -0
  60. package/lib/SwiperItem/SwiperItem.tuya.js +22 -0
  61. package/lib/SwiperItem/SwiperItem.web.js +14 -0
  62. package/lib/SwiperItem/SwiperItem.wechat.d.ts +4 -0
  63. package/lib/SwiperItem/SwiperItem.wechat.js +22 -0
  64. package/lib/SwiperItem/index.android.js +1 -0
  65. package/lib/SwiperItem/index.d.ts +3 -0
  66. package/lib/SwiperItem/index.ios.js +1 -0
  67. package/lib/SwiperItem/index.js +3 -0
  68. package/lib/SwiperItem/index.md +23 -0
  69. package/lib/SwiperItem/index.tuya.js +3 -0
  70. package/lib/SwiperItem/index.web.js +3 -0
  71. package/lib/SwiperItem/index.wechat.js +3 -0
  72. package/lib/SwiperItem/props.android.js +1 -0
  73. package/lib/SwiperItem/props.d.ts +5 -0
  74. package/lib/SwiperItem/props.ios.js +1 -0
  75. package/lib/SwiperItem/props.js +1 -0
  76. package/lib/SwiperItem/props.tuya.js +1 -0
  77. package/lib/SwiperItem/props.web.js +1 -0
  78. package/lib/SwiperItem/props.wechat.js +1 -0
  79. package/lib/Switch/props.d.ts +40 -0
  80. package/lib/Text/props.d.ts +15 -1
  81. package/lib/Textarea/index.md +1 -1
  82. package/lib/Textarea/props.d.ts +60 -2
  83. package/lib/TimePicker/index.md +2 -0
  84. package/lib/TimePicker/props.d.ts +55 -2
  85. package/lib/View/props.d.ts +20 -0
  86. package/lib/index.android.js +1 -1
  87. package/lib/index.d.ts +1 -0
  88. package/lib/index.ios.js +1 -1
  89. package/lib/index.js +1 -0
  90. package/lib/index.tuya.js +1 -0
  91. package/lib/index.web.js +1 -0
  92. package/lib/index.wechat.js +1 -0
  93. package/lib/types/index.d.ts +66 -3
  94. package/package.json +5 -5
@@ -13,6 +13,7 @@ export { default as Radio } from './Radio';
13
13
  export { default as RadioGroup } from './RadioGroup';
14
14
  export { default as ScrollView } from './ScrollView';
15
15
  export { default as Swiper } from './Swiper';
16
+ export { default as SwiperItem } from './SwiperItem';
16
17
  export { default as Switch } from './Switch';
17
18
  export { default as Slider } from './Slider';
18
19
  export { default as Picker } from './Picker';
@@ -1,15 +1,48 @@
1
1
  import * as React from 'react';
2
2
  export interface BaseProps {
3
+ /**
4
+ * @description.en id
5
+ * @description.zh ID
6
+ * @default undefined
7
+ */
3
8
  id?: string;
9
+ /**
10
+ * @description.en className
11
+ * @description.zh css 类名
12
+ * @default undefined
13
+ */
4
14
  className?: string;
15
+ /**
16
+ * @description.en style
17
+ * @description.zh 样式
18
+ * @default undefined
19
+ */
5
20
  style?: React.CSSProperties;
21
+ /**
22
+ * @description.en children
23
+ * @description.zh 子元素
24
+ * @default undefined
25
+ */
26
+ children?: React.ReactNode | React.ReactNode[] | string;
6
27
  }
7
28
  export interface HoverableProps {
8
- /** 指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果 */
29
+ /**
30
+ * @description.en Specifies the style class on which the button is pressed. Hover -class=" None ", no click effect
31
+ * @description.zh 指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果
32
+ * @default undefined
33
+ */
9
34
  hoverClassName?: string;
10
- /** 按住后多久出现点击态,单位毫秒 */
35
+ /**
36
+ * @description.en How long does it take for the click state to appear after holding, in milliseconds
37
+ * @description.zh 按住后多久出现点击态,单位毫秒
38
+ * @default undefined
39
+ */
11
40
  hoverStartTime?: number;
12
- /** 手指松开后点击态保留时间,单位毫秒 */
41
+ /**
42
+ * @description.en Click retention time after finger release, in milliseconds
43
+ * @description.zh 手指松开后点击态保留时间,单位毫秒
44
+ * @default undefined
45
+ */
13
46
  hoverStayTime?: number;
14
47
  }
15
48
  interface TouchObj {
@@ -27,11 +60,41 @@ interface TouchEvent {
27
60
  * 多端通用事件
28
61
  */
29
62
  export interface TouchEventHandler {
63
+ /**
64
+ * @description.en onClick
65
+ * @description.zh 点击回调
66
+ * @default undefined
67
+ */
30
68
  onClick?: (e: TouchEvent) => any;
69
+ /**
70
+ * @description.en Long press the trigger
71
+ * @description.zh 长按触发
72
+ * @default undefined
73
+ */
31
74
  onLongClick?: (e: TouchEvent) => any;
75
+ /**
76
+ * @description.en onTouchStart
77
+ * @description.zh 开始触摸事件回调
78
+ * @default undefined
79
+ */
32
80
  onTouchStart?: (e: TouchEvent) => any;
81
+ /**
82
+ * @description.en onTouchMove
83
+ * @description.zh 触摸移动事件回调
84
+ * @default undefined
85
+ */
33
86
  onTouchMove?: (e: TouchEvent) => any;
87
+ /**
88
+ * @description.en onTouchEnd
89
+ * @description.zh 触摸结束事件回调
90
+ * @default undefined
91
+ */
34
92
  onTouchEnd?: (e: TouchEvent) => any;
93
+ /**
94
+ * @description.en onTouchCancel
95
+ * @description.zh 触摸取消事件回调
96
+ * @default undefined
97
+ */
35
98
  onTouchCancel?: (e: TouchEvent) => any;
36
99
  }
37
100
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "0.4.0",
3
+ "version": "0.4.4-beta-1",
4
4
  "description": "Ray basic components",
5
5
  "keywords": [
6
6
  "ray"
@@ -24,8 +24,8 @@
24
24
  "watch": "ray start --type=component"
25
25
  },
26
26
  "dependencies": {
27
- "@ray-js/framework-shared": "^0.4.0",
28
- "@ray-js/remax-tuya": "^0.4.0",
27
+ "@ray-js/framework-shared": "^0.4.4-beta-1",
28
+ "@ray-js/remax-tuya": "^0.4.4-beta-1",
29
29
  "@remax/macro": "2.15.6",
30
30
  "@remax/wechat": "2.15.6",
31
31
  "antd-mobile": "^5.0.0-beta.17",
@@ -44,7 +44,7 @@
44
44
  "tuya-panel-switch": "^0.1.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@ray-js/cli": "^0.4.0"
47
+ "@ray-js/cli": "^0.4.4-beta-1"
48
48
  },
49
49
  "maintainers": [
50
50
  {
@@ -52,6 +52,6 @@
52
52
  "email": "tuyafe@tuya.com"
53
53
  }
54
54
  ],
55
- "gitHead": "12172a093490a1295c7a646bb02a663e536ae45b",
55
+ "gitHead": "16cd8d7ee5838b10ba70041b36632fb7d5afa7bc",
56
56
  "repository": {}
57
57
  }