@ray-js/components 1.7.21 → 1.7.22

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 (209) hide show
  1. package/lib/Button/Button.d.ts +2 -2
  2. package/lib/Button/Button.js +1 -2
  3. package/lib/Button/Button.thing.d.ts +2 -2
  4. package/lib/Button/Button.thing.js +1 -2
  5. package/lib/Button/Button.wechat.d.ts +2 -2
  6. package/lib/Button/Button.wechat.js +1 -2
  7. package/lib/Button/props.d.ts +2 -2
  8. package/lib/Camera/Camera.d.ts +2 -2
  9. package/lib/Camera/Camera.js +0 -1
  10. package/lib/Camera/Camera.thing.d.ts +2 -2
  11. package/lib/Camera/Camera.thing.js +0 -1
  12. package/lib/Camera/Camera.wechat.js +1 -1
  13. package/lib/Checkbox/Checkbox.d.ts +2 -2
  14. package/lib/Checkbox/Checkbox.js +0 -1
  15. package/lib/Checkbox/Checkbox.thing.d.ts +2 -2
  16. package/lib/Checkbox/Checkbox.thing.js +1 -2
  17. package/lib/Checkbox/Checkbox.wechat.d.ts +2 -2
  18. package/lib/Checkbox/Checkbox.wechat.js +1 -2
  19. package/lib/Checkbox/props.d.ts +1 -1
  20. package/lib/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  21. package/lib/CheckboxGroup/CheckboxGroup.js +3 -3
  22. package/lib/CheckboxGroup/CheckboxGroup.thing.d.ts +2 -2
  23. package/lib/CheckboxGroup/CheckboxGroup.thing.js +0 -1
  24. package/lib/CheckboxGroup/CheckboxGroup.wechat.d.ts +2 -2
  25. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +0 -1
  26. package/lib/CheckboxGroup/props.d.ts +3 -3
  27. package/lib/CoverView/CoverView.d.ts +2 -2
  28. package/lib/CoverView/CoverView.thing.d.ts +2 -2
  29. package/lib/CoverView/CoverView.thing.js +0 -1
  30. package/lib/CoverView/CoverView.wechat.d.ts +1 -1
  31. package/lib/CoverView/CoverView.wechat.js +1 -1
  32. package/lib/CoverView/props.d.ts +1 -1
  33. package/lib/Form/Form.d.ts +1 -1
  34. package/lib/Form/Form.js +1 -1
  35. package/lib/Form/Form.thing.d.ts +2 -2
  36. package/lib/Form/Form.thing.js +0 -1
  37. package/lib/Form/Form.wechat.d.ts +2 -2
  38. package/lib/Form/Form.wechat.js +0 -1
  39. package/lib/Form/props.d.ts +1 -1
  40. package/lib/Iframe/Iframe.thing.d.ts +2 -2
  41. package/lib/Iframe/Iframe.thing.js +0 -1
  42. package/lib/Image/Image.d.ts +1 -1
  43. package/lib/Image/Image.js +1 -1
  44. package/lib/Image/Image.thing.d.ts +2 -2
  45. package/lib/Image/Image.thing.js +1 -2
  46. package/lib/Image/Image.wechat.d.ts +2 -2
  47. package/lib/Image/Image.wechat.js +1 -2
  48. package/lib/Input/Input.d.ts +1 -1
  49. package/lib/Input/Input.js +5 -5
  50. package/lib/Input/Input.thing.d.ts +1 -1
  51. package/lib/Input/Input.thing.js +1 -1
  52. package/lib/Input/Input.wechat.d.ts +1 -1
  53. package/lib/Input/Input.wechat.js +2 -2
  54. package/lib/Input/props.d.ts +3 -3
  55. package/lib/IpcPlayer/IpcPlayer.d.ts +2 -2
  56. package/lib/IpcPlayer/IpcPlayer.js +0 -1
  57. package/lib/IpcPlayer/IpcPlayer.thing.d.ts +2 -2
  58. package/lib/IpcPlayer/IpcPlayer.thing.js +0 -1
  59. package/lib/IpcPlayer/IpcPlayer.wechat.js +1 -1
  60. package/lib/Label/Label.d.ts +2 -2
  61. package/lib/Label/Label.js +0 -1
  62. package/lib/Label/Label.thing.d.ts +2 -2
  63. package/lib/Label/Label.thing.js +1 -2
  64. package/lib/Label/Label.wechat.d.ts +2 -2
  65. package/lib/Label/Label.wechat.js +1 -2
  66. package/lib/Label/props.d.ts +1 -1
  67. package/lib/Map/Map.d.ts +2 -2
  68. package/lib/Map/Map.js +0 -1
  69. package/lib/Map/Map.thing.d.ts +2 -2
  70. package/lib/Map/Map.thing.js +0 -1
  71. package/lib/Map/Map.wechat.d.ts +2 -2
  72. package/lib/Map/Map.wechat.js +0 -1
  73. package/lib/Modal/index.d.ts +1 -1
  74. package/lib/Modal/index.js +1 -1
  75. package/lib/MovableArea/MovableArea.d.ts +2 -2
  76. package/lib/MovableArea/MovableArea.js +1 -2
  77. package/lib/MovableArea/MovableArea.thing.d.ts +2 -2
  78. package/lib/MovableArea/MovableArea.thing.js +0 -1
  79. package/lib/MovableArea/MovableArea.wechat.d.ts +2 -2
  80. package/lib/MovableArea/MovableArea.wechat.js +0 -1
  81. package/lib/MovableView/MovableView.d.ts +1 -1
  82. package/lib/MovableView/MovableView.js +2 -2
  83. package/lib/MovableView/MovableView.thing.d.ts +2 -2
  84. package/lib/MovableView/MovableView.thing.js +0 -1
  85. package/lib/MovableView/MovableView.wechat.d.ts +2 -2
  86. package/lib/MovableView/MovableView.wechat.js +0 -1
  87. package/lib/NativeVideo/NativeVideo.d.ts +2 -2
  88. package/lib/NativeVideo/NativeVideo.js +0 -1
  89. package/lib/NativeVideo/NativeVideo.thing.d.ts +2 -2
  90. package/lib/NativeVideo/NativeVideo.thing.js +0 -1
  91. package/lib/NativeVideo/NativeVideo.wechat.js +1 -1
  92. package/lib/PageContainer/PageContainer.d.ts +2 -2
  93. package/lib/PageContainer/PageContainer.js +2 -2
  94. package/lib/PageContainer/PageContainer.thing.d.ts +1 -1
  95. package/lib/PageContainer/PageContainer.wechat.d.ts +1 -1
  96. package/lib/PageContainer/props.d.ts +3 -3
  97. package/lib/Picker/Picker.d.ts +1 -1
  98. package/lib/Picker/Picker.js +1 -1
  99. package/lib/Picker/Picker.thing.d.ts +2 -2
  100. package/lib/Picker/Picker.thing.js +1 -2
  101. package/lib/Picker/Picker.wechat.d.ts +2 -2
  102. package/lib/Picker/Picker.wechat.js +1 -2
  103. package/lib/PickerView/PickerView.d.ts +1 -1
  104. package/lib/PickerView/PickerView.js +2 -2
  105. package/lib/PickerView/PickerView.thing.d.ts +2 -2
  106. package/lib/PickerView/PickerView.thing.js +2 -3
  107. package/lib/PickerView/PickerView.wechat.d.ts +2 -2
  108. package/lib/PickerView/PickerView.wechat.js +2 -3
  109. package/lib/PickerViewColumn/PickerViewColumn.d.ts +2 -2
  110. package/lib/PickerViewColumn/PickerViewColumn.js +0 -1
  111. package/lib/PickerViewColumn/PickerViewColumn.thing.d.ts +1 -1
  112. package/lib/PickerViewColumn/PickerViewColumn.thing.js +1 -2
  113. package/lib/PickerViewColumn/PickerViewColumn.wechat.d.ts +1 -1
  114. package/lib/PickerViewColumn/PickerViewColumn.wechat.js +1 -2
  115. package/lib/Progress/Progress.d.ts +2 -2
  116. package/lib/Progress/Progress.js +0 -1
  117. package/lib/Progress/Progress.thing.d.ts +2 -2
  118. package/lib/Progress/Progress.thing.js +1 -2
  119. package/lib/Progress/Progress.wechat.d.ts +2 -2
  120. package/lib/Progress/Progress.wechat.js +1 -2
  121. package/lib/Radio/Radio.d.ts +2 -2
  122. package/lib/Radio/Radio.js +0 -1
  123. package/lib/Radio/Radio.thing.d.ts +2 -2
  124. package/lib/Radio/Radio.thing.js +1 -2
  125. package/lib/Radio/Radio.wechat.d.ts +2 -2
  126. package/lib/Radio/Radio.wechat.js +1 -2
  127. package/lib/Radio/props.d.ts +1 -1
  128. package/lib/RadioGroup/RadioGroup.d.ts +1 -1
  129. package/lib/RadioGroup/RadioGroup.js +1 -1
  130. package/lib/RadioGroup/RadioGroup.thing.d.ts +2 -2
  131. package/lib/RadioGroup/RadioGroup.thing.js +2 -3
  132. package/lib/RadioGroup/RadioGroup.wechat.d.ts +2 -2
  133. package/lib/RadioGroup/RadioGroup.wechat.js +1 -2
  134. package/lib/RadioGroup/props.d.ts +3 -3
  135. package/lib/RichText/RichText.d.ts +2 -2
  136. package/lib/RichText/RichText.js +0 -1
  137. package/lib/RichText/RichText.thing.d.ts +2 -2
  138. package/lib/RichText/RichText.thing.js +0 -1
  139. package/lib/RichText/RichText.wechat.d.ts +2 -2
  140. package/lib/RichText/RichText.wechat.js +0 -1
  141. package/lib/ScrollView/ScrollView.d.ts +1 -1
  142. package/lib/ScrollView/ScrollView.js +2 -2
  143. package/lib/ScrollView/ScrollView.thing.d.ts +1 -1
  144. package/lib/ScrollView/ScrollView.thing.js +1 -2
  145. package/lib/ScrollView/ScrollView.wechat.d.ts +2 -2
  146. package/lib/ScrollView/ScrollView.wechat.js +1 -2
  147. package/lib/Slider/Slider.d.ts +1 -1
  148. package/lib/Slider/Slider.js +1 -1
  149. package/lib/Slider/Slider.thing.d.ts +2 -2
  150. package/lib/Slider/Slider.thing.js +1 -2
  151. package/lib/Slider/Slider.wechat.d.ts +2 -2
  152. package/lib/Slider/Slider.wechat.js +1 -2
  153. package/lib/Slider/props.d.ts +2 -2
  154. package/lib/Swiper/Swiper.d.ts +1 -1
  155. package/lib/Swiper/Swiper.js +1 -1
  156. package/lib/Swiper/Swiper.thing.d.ts +1 -1
  157. package/lib/Swiper/Swiper.thing.js +1 -1
  158. package/lib/Swiper/Swiper.wechat.d.ts +1 -1
  159. package/lib/Swiper/Swiper.wechat.js +1 -1
  160. package/lib/Swiper/props.d.ts +2 -2
  161. package/lib/SwiperItem/SwiperItem.d.ts +2 -2
  162. package/lib/SwiperItem/SwiperItem.js +0 -1
  163. package/lib/SwiperItem/SwiperItem.thing.d.ts +2 -2
  164. package/lib/SwiperItem/SwiperItem.thing.js +1 -2
  165. package/lib/SwiperItem/SwiperItem.wechat.d.ts +2 -2
  166. package/lib/SwiperItem/SwiperItem.wechat.js +1 -2
  167. package/lib/SwiperItem/props.d.ts +1 -1
  168. package/lib/Switch/Switch.d.ts +1 -1
  169. package/lib/Switch/Switch.js +1 -1
  170. package/lib/Switch/Switch.thing.d.ts +2 -2
  171. package/lib/Switch/Switch.thing.js +1 -2
  172. package/lib/Switch/Switch.wechat.d.ts +2 -2
  173. package/lib/Switch/Switch.wechat.js +1 -2
  174. package/lib/Switch/props.d.ts +2 -2
  175. package/lib/Text/Text.d.ts +2 -2
  176. package/lib/Text/Text.js +0 -1
  177. package/lib/Text/Text.thing.d.ts +2 -2
  178. package/lib/Text/Text.thing.js +0 -1
  179. package/lib/Text/Text.wechat.d.ts +2 -2
  180. package/lib/Text/Text.wechat.js +0 -1
  181. package/lib/Text/props.d.ts +1 -1
  182. package/lib/Textarea/Textarea.d.ts +1 -1
  183. package/lib/Textarea/Textarea.js +3 -3
  184. package/lib/Textarea/Textarea.thing.d.ts +1 -1
  185. package/lib/Textarea/Textarea.thing.js +2 -2
  186. package/lib/Textarea/Textarea.wechat.d.ts +1 -1
  187. package/lib/Textarea/Textarea.wechat.js +2 -2
  188. package/lib/Textarea/props.d.ts +3 -3
  189. package/lib/Video/Video.d.ts +2 -2
  190. package/lib/Video/Video.js +0 -1
  191. package/lib/Video/Video.thing.d.ts +2 -2
  192. package/lib/Video/Video.thing.js +0 -1
  193. package/lib/Video/Video.wechat.d.ts +2 -2
  194. package/lib/Video/Video.wechat.js +0 -1
  195. package/lib/View/View.d.ts +1 -1
  196. package/lib/View/View.js +2 -2
  197. package/lib/View/View.thing.d.ts +1 -1
  198. package/lib/View/View.thing.js +3 -3
  199. package/lib/View/View.wechat.d.ts +1 -1
  200. package/lib/View/View.wechat.js +2 -2
  201. package/lib/View/props.d.ts +1 -1
  202. package/lib/WebView/WebView.d.ts +2 -2
  203. package/lib/WebView/WebView.js +0 -1
  204. package/lib/WebView/WebView.thing.d.ts +2 -2
  205. package/lib/WebView/WebView.thing.js +0 -1
  206. package/lib/WebView/WebView.wechat.d.ts +2 -2
  207. package/lib/WebView/WebView.wechat.js +0 -1
  208. package/lib/types/index.d.ts +1 -1
  209. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from './props';
1
+ import type * as React from 'react';
2
+ import { type ButtonProps } from './props';
3
3
  declare const Button: React.FC<ButtonProps>;
4
4
  export default Button;
@@ -1,6 +1,5 @@
1
- import * as React from 'react';
2
- import { defaultButtonProps } from './props';
3
1
  import handleProps from '../utils/handleProps';
2
+ import { defaultButtonProps } from './props';
4
3
  const Button = props => {
5
4
  return (
6
5
  /*#__PURE__*/
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { ButtonProps } from './props';
3
3
  declare const Button: React.FC<ButtonProps>;
4
4
  export default Button;
@@ -1,10 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["style", "id", "className", "disabled", "loading", "onClick", "hoverClassName", "size", "formType"];
4
- import * as React from 'react';
5
4
  import clsx from 'clsx';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
5
  import { Button as RemaxButton } from '@ray-js/adapter';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
8
7
  const Button = props => {
9
8
  const {
10
9
  style,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from './props';
1
+ import type * as React from 'react';
2
+ import { type ButtonProps } from './props';
3
3
  declare const Button: React.FC<ButtonProps>;
4
4
  export default Button;
@@ -1,10 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["style", "id", "className", "disabled", "loading", "onClick", "hoverClassName", "size", "formType"];
4
- import * as React from 'react';
5
4
  import clsx from 'clsx';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
5
  import { Button as RemaxButton } from '@ray-core/wechat';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
8
7
  import { defaultButtonProps } from './props';
9
8
  import styles from './index.module.less';
10
9
  const Button = props => {
@@ -1,4 +1,4 @@
1
- import { BaseProps } from '../types';
1
+ import type { BaseProps } from '../types';
2
2
  export interface ButtonProps extends BaseProps {
3
3
  /**
4
4
  * @description.en disabled
@@ -35,7 +35,7 @@ export interface ButtonProps extends BaseProps {
35
35
  * @description.zh 按下去的样式
36
36
  * @default undefined
37
37
  */
38
- hoverStyle?: any;
38
+ hoverStyle?: React.CSSProperties;
39
39
  /**
40
40
  * @description.en Press down class on the style
41
41
  * @description.zh 按下去的样式class
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { CameraProps } from '@ray-js/adapter';
1
+ import type { CameraProps } from '@ray-js/adapter';
2
+ import type React from 'react';
3
3
  declare const Camera: React.FC<CameraProps>;
4
4
  export default Camera;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  const Camera = () => {
3
2
  return /*#__PURE__*/React.createElement("div", null, "The web side is not implemented yet.");
4
3
  };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CameraProps } from '@ray-js/adapter';
1
+ import type * as React from 'react';
2
+ import { type CameraProps } from '@ray-js/adapter';
3
3
  declare const Camera: React.FC<CameraProps>;
4
4
  export default Camera;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { Camera as RemaxCamera } from '@ray-js/adapter';
3
2
  const Camera = props => {
4
3
  return /*#__PURE__*/React.createElement(RemaxCamera, props);
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { View } from '@ray-js/components';
2
+ import * as React from 'react';
3
3
 
4
4
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
5
5
  function Camera() {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CheckboxProps } from './props';
3
3
  declare const Checkbox: React.FC<CheckboxProps>;
4
4
  export default Checkbox;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import handleProps from '../utils/handleProps';
3
2
  const Checkbox = props => {
4
3
  // @ts-ignore
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CheckboxProps } from './props';
3
3
  declare const Checkbox: React.FC<CheckboxProps>;
4
4
  export default Checkbox;
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["className", "style", "id"];
4
4
  import clsx from 'clsx';
5
- import * as React from 'react';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
5
  import { Checkbox as RemaxCheckbox } from '@ray-js/adapter';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
8
7
  const Checkbox = props => {
9
8
  const {
10
9
  className,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CheckboxProps } from './props';
3
3
  declare const Checkbox: React.FC<CheckboxProps>;
4
4
  export default Checkbox;
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["className", "style", "id", "color"];
4
4
  import clsx from 'clsx';
5
- import * as React from 'react';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
5
  import { Checkbox as RemaxCheckbox } from '@ray-core/wechat';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
8
7
  const Checkbox = props => {
9
8
  const {
10
9
  className,
@@ -1,4 +1,4 @@
1
- import { BaseProps } from '../types';
1
+ import type { BaseProps } from '../types';
2
2
  export interface CheckboxProps extends BaseProps {
3
3
  /**
4
4
  * @description.en If this parameter is selected, the change event of the checkbox-group is triggered and the value of the checkbox is carried
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { CheckboxGroupProps } from './props';
2
+ import type { CheckboxGroupProps } from './props';
3
3
  declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
4
4
  export default CheckboxGroup;
@@ -3,10 +3,10 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import "core-js/modules/esnext.iterator.constructor.js";
4
4
  import "core-js/modules/esnext.iterator.map.js";
5
5
  import * as React from 'react';
6
- import handleProps from '../utils/handleProps';
7
- import Label from '../Label';
8
- import CheckBox from '../Checkbox';
9
6
  import { useEventListener } from 'ahooks';
7
+ import CheckBox from '../Checkbox';
8
+ import Label from '../Label';
9
+ import handleProps from '../utils/handleProps';
10
10
  const CheckboxGroup = props => {
11
11
  const {
12
12
  options,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CheckboxGroupProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CheckboxGroupProps } from './props';
3
3
  declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
4
4
  export default CheckboxGroup;
@@ -1,6 +1,5 @@
1
1
  import "core-js/modules/esnext.iterator.constructor.js";
2
2
  import "core-js/modules/esnext.iterator.map.js";
3
- import * as React from 'react';
4
3
  import { CheckboxGroup as RemaxCheckboxGroup } from '@ray-js/adapter';
5
4
  import Checkbox from '../Checkbox';
6
5
  import Label from '../Label';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CheckboxGroupProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CheckboxGroupProps } from './props';
3
3
  declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
4
4
  export default CheckboxGroup;
@@ -1,6 +1,5 @@
1
1
  import "core-js/modules/esnext.iterator.constructor.js";
2
2
  import "core-js/modules/esnext.iterator.map.js";
3
- import * as React from 'react';
4
3
  import { CheckboxGroup as RemaxCheckboxGroup } from '@ray-core/wechat';
5
4
  import Checkbox from '../Checkbox';
6
5
  import Label from '../Label';
@@ -1,6 +1,6 @@
1
- import { BaseProps } from '../types';
2
- import { CheckboxProps } from '../Checkbox/props';
3
- import { GenericEvent } from '@ray-js/adapter';
1
+ import type { GenericEvent } from '@ray-js/adapter';
2
+ import type { CheckboxProps } from '../Checkbox/props';
3
+ import type { BaseProps } from '../types';
4
4
  export type CheckboxGroupOption = CheckboxProps & {
5
5
  label: string;
6
6
  };
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { CoverViewProps } from './props';
1
+ import { type FC } from 'react';
2
+ import type { CoverViewProps } from './props';
3
3
  declare const CoverView: FC<CoverViewProps>;
4
4
  export default CoverView;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { CoverViewProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { CoverViewProps } from './props';
3
3
  declare const CoverView: React.FC<CoverViewProps>;
4
4
  export default CoverView;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { CoverView as RemaxCoverView } from '@ray-js/adapter';
3
2
  const CoverView = props => {
4
3
  return /*#__PURE__*/React.createElement(RemaxCoverView, props, props.children);
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { CoverViewProps } from './props';
2
+ import type { CoverViewProps } from './props';
3
3
  declare function CoverView(props: CoverViewProps): React.JSX.Element;
4
4
  export default CoverView;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { View } from '@ray-js/components';
2
+ import * as React from 'react';
3
3
  function CoverView() {
4
4
  return /*#__PURE__*/React.createElement(View, null, "Wechat mini program side has not been implemented");
5
5
  }
@@ -1,4 +1,4 @@
1
- import { BaseProps } from '../types';
1
+ import type { BaseProps } from '../types';
2
2
  export type CoverViewProps = BaseProps & {
3
3
  children?: any;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { FormProps } from './props';
2
+ import type { FormProps } from './props';
3
3
  declare const Form: React.FC<FormProps>;
4
4
  export default Form;
package/lib/Form/Form.js CHANGED
@@ -3,8 +3,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  const _excluded = ["onSubmit", "onReset"];
5
5
  import * as React from 'react';
6
- import handleProps from '../utils/handleProps';
7
6
  import { useEventListener } from 'ahooks';
7
+ import handleProps from '../utils/handleProps';
8
8
  const Form = props => {
9
9
  const {
10
10
  onSubmit,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { FormProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { FormProps } from './props';
3
3
  declare const Form: React.FC<FormProps>;
4
4
  export default Form;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { Form as RemaxForm } from '@ray-js/adapter';
3
2
  const Form = props => {
4
3
  return /*#__PURE__*/React.createElement(RemaxForm, props);
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { FormProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { FormProps } from './props';
3
3
  declare const Form: React.FC<FormProps>;
4
4
  export default Form;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
4
- import * as React from 'react';
5
4
  import { Form as RemaxForm } from '@ray-core/wechat';
6
5
  import { useTouch } from '@ray-js/framework-shared';
7
6
  const Form = props => {
@@ -1,4 +1,4 @@
1
- import { BaseProps } from '../types';
1
+ import type { BaseProps } from '../types';
2
2
  export type FormProps = BaseProps & {
3
3
  /**
4
4
  * @description.en Trigger the Submit event with the data in the form
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { IframeProps } from '@ray-js/adapter';
1
+ import type * as React from 'react';
2
+ import { type IframeProps } from '@ray-js/adapter';
3
3
  declare const Iframe: React.FC<IframeProps>;
4
4
  export default Iframe;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { Iframe as RemaxIframe } from '@ray-js/adapter';
3
2
  const Iframe = props => {
4
3
  return /*#__PURE__*/React.createElement(RemaxIframe, props);
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { ImageProps } from './props';
2
+ import type { ImageProps } from './props';
3
3
  declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<any>>;
4
4
  export default Image;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
- import * as React from 'react';
4
3
  import { useEventListener } from 'ahooks';
4
+ import * as React from 'react';
5
5
  import handleProps from '../utils/handleProps';
6
6
  const Image = /*#__PURE__*/React.forwardRef((props, ref) => {
7
7
  const currentNode = ref || React.useRef(null);
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ImageProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { ImageProps } from './props';
3
3
  declare const Image: React.FC<ImageProps>;
4
4
  export default Image;
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["style", "className", "mode"];
4
4
  import clsx from 'clsx';
5
- import * as React from 'react';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
5
  import { Image as RemaxImage } from '@ray-js/adapter';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
8
7
  const Image = props => {
9
8
  const {
10
9
  style,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ImageProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { ImageProps } from './props';
3
3
  declare const Image: React.FC<ImageProps>;
4
4
  export default Image;
@@ -2,9 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["style", "className", "onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onLoad", "onError", "mode"];
4
4
  import clsx from 'clsx';
5
- import * as React from 'react';
6
- import { inlineStyle, useTouch } from '@ray-js/framework-shared';
7
5
  import { Image as RemaxImage } from '@ray-core/wechat';
6
+ import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
7
  const Image = props => {
9
8
  const {
10
9
  style,
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from './props';
2
+ import { type InputProps } from './props';
3
3
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
4
  export default Input;
@@ -2,13 +2,13 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  const _excluded = ["placeholderStyle", "className", "maxLength", "onBlur", "onFocus", "onConfirm"];
5
- import * as React from 'react';
6
- import clsx from 'clsx';
7
- import { useEventListener } from 'ahooks';
8
5
  import { inlineStyle, useStylesheet } from '@ray-js/framework-shared';
9
- import { defaultInputProps } from './props';
10
- import styles from './index.module.less';
6
+ import { useEventListener } from 'ahooks';
7
+ import clsx from 'clsx';
8
+ import * as React from 'react';
11
9
  import handleProps from '../utils/handleProps';
10
+ import styles from './index.module.less';
11
+ import { defaultInputProps } from './props';
12
12
  const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
13
13
  const {
14
14
  placeholderStyle,
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from './props';
2
+ import type { InputProps } from './props';
3
3
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
4
  export default Input;
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
4
- import * as React from 'react';
5
4
  import clsx from 'clsx';
5
+ import * as React from 'react';
6
6
  import { Input as RemaxInput } from '@ray-js/adapter';
7
7
  import { inlineStyle } from '@ray-js/framework-shared';
8
8
  import { nextFrame } from '../core';
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from './props';
2
+ import { type InputProps } from './props';
3
3
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
4
  export default Input;
@@ -2,13 +2,13 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  const _excluded = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
5
- import * as React from 'react';
6
5
  import clsx from 'clsx';
6
+ import * as React from 'react';
7
7
  import { Input as RemaxInput } from '@ray-core/wechat';
8
8
  import { inlineStyle } from '@ray-js/framework-shared';
9
- import { defaultInputProps } from './props';
10
9
  import { nextFrame } from '../core';
11
10
  import styles from './index.module.less';
11
+ import { defaultInputProps } from './props';
12
12
  const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
13
13
  const {
14
14
  name,
@@ -1,5 +1,5 @@
1
- import { GenericEvent } from '@ray-js/adapter';
2
- import { BaseProps } from '../types';
1
+ import type { GenericEvent } from '@ray-js/adapter';
2
+ import type { BaseProps } from '../types';
3
3
  export type InputType = 'text' | 'number' | 'digit' | 'idcard';
4
4
  export interface InputProps extends BaseProps {
5
5
  /**
@@ -31,7 +31,7 @@ export interface InputProps extends BaseProps {
31
31
  * @description.zh 占位符的样式
32
32
  * @default undefined
33
33
  */
34
- placeholderStyle?: string;
34
+ placeholderStyle?: React.CSSProperties;
35
35
  /**
36
36
  * @description.en disabled
37
37
  * @description.zh 是否禁用
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { IpcPlayerProps } from '@ray-js/adapter';
1
+ import type { IpcPlayerProps } from '@ray-js/adapter';
2
+ import type React from 'react';
3
3
  declare const IpcPlayer: React.FC<IpcPlayerProps>;
4
4
  export default IpcPlayer;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  const IpcPlayer = () => {
3
2
  return /*#__PURE__*/React.createElement("div", null, "The web side is not implemented yet.");
4
3
  };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { IpcPlayerProps } from '@ray-js/adapter';
1
+ import type * as React from 'react';
2
+ import { type IpcPlayerProps } from '@ray-js/adapter';
3
3
  declare const IpcPlayer: React.FC<IpcPlayerProps>;
4
4
  export default IpcPlayer;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IpcPlayer as RemaxIpcPlayer } from '@ray-js/adapter';
3
2
  const IpcPlayer = props => {
4
3
  return /*#__PURE__*/React.createElement(RemaxIpcPlayer, props);
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { View } from '@ray-js/components';
2
+ import * as React from 'react';
3
3
 
4
4
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
5
5
  function IpcPlayer() {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { LabelProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { LabelProps } from './props';
3
3
  declare const Label: React.FC<LabelProps>;
4
4
  export default Label;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["htmlFor"];
4
- import * as React from 'react';
5
4
  import handleProps from '../utils/handleProps';
6
5
  const Label = props => {
7
6
  const {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { LabelProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { LabelProps } from './props';
3
3
  declare const Label: React.FC<LabelProps>;
4
4
  export default Label;
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
1
  import clsx from 'clsx';
3
- import { inlineStyle } from '@ray-js/framework-shared';
4
2
  import { Label as RemaxLabel } from '@ray-js/adapter';
3
+ import { inlineStyle } from '@ray-js/framework-shared';
5
4
  import styles from './index.module.less';
6
5
  const Label = props => {
7
6
  const {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { LabelProps } from './props';
1
+ import type * as React from 'react';
2
+ import type { LabelProps } from './props';
3
3
  declare const Label: React.FC<LabelProps>;
4
4
  export default Label;
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
1
  import clsx from 'clsx';
3
- import { inlineStyle } from '@ray-js/framework-shared';
4
2
  import { Label as RemaxLabel } from '@ray-core/wechat';
3
+ import { inlineStyle } from '@ray-js/framework-shared';
5
4
  import styles from './index.module.less';
6
5
  const Label = props => {
7
6
  const {
@@ -1,4 +1,4 @@
1
- import { BaseProps } from '../types';
1
+ import type { BaseProps } from '../types';
2
2
  export interface LabelProps extends BaseProps {
3
3
  /**
4
4
  * @description.en htmlFor
package/lib/Map/Map.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { MapProps } from '@ray-js/adapter';
1
+ import type * as React from 'react';
2
+ import { type MapProps } from '@ray-js/adapter';
3
3
  declare const Map: React.FC<MapProps>;
4
4
  export default Map;